configure revision 00994698
11.1015Swiz#! /bin/sh 21.1Slukem# Guess values for system-dependent variables and create Makefiles. 31.1Slukem# Generated by GNU Autoconf 2.72 for xditview 1.0.7. 41.1Slukem# 51.1Slukem# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/-/issues>. 61.1Slukem# 71.1Slukem# 81.1Slukem# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 91.1Slukem# Inc. 101.1Slukem# 111.1Slukem# 121.1Slukem# This configure script is free software; the Free Software Foundation 131.1Slukem# gives unlimited permission to copy, distribute and modify it. 141.1Slukem## -------------------- ## 151.1Slukem## M4sh Initialization. ## 161.821Sjakllsch## -------------------- ## 171.1Slukem 181.894Sriz# Be more Bourne compatible 191.894SrizDUALCASE=1; export DUALCASE # for MKS sh 201.894Srizif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 211.894Srizthen : 221.1Slukem emulate sh 231.1Slukem NULLCMD=: 241.894Sriz # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 251.1Slukem # is contrary to our usage. Disable this feature. 261.963Sapb alias -g '${1+"$@"}'='"$@"' 271.963Sapb setopt NO_GLOB_SUBST 281.963Sapbelse case e in #( 291.963Sapb e) case `(set -o) 2>/dev/null` in #( 301.963Sapb *posix*) : 311.963Sapb set -o posix ;; #( 321.963Sapb *) : 331.963Sapb ;; 341.963Sapbesac ;; 351.963Sapbesac 361.963Sapbfi 371.963Sapb 381.963Sapb 391.963Sapb 401.963Sapb# Reset variables that may have inherited troublesome values from 411.31Skanaoka# the environment. 421.31Skanaoka 431.910Sjruoho# IFS needs to be set, to space, tab, and newline, in precisely that order. 441.945Sjruoho# (If _AS_PATH_WALK were called with IFS unset, it would have the 451.814Sjruoho# side effect of setting IFS to empty, thus disabling word splitting.) 461.814Sjruoho# Quoting is to prevent editors from complaining about space-tab. 471.574Sjmcneillas_nl=' 481.574Sjmcneill' 491.816Sjruohoexport as_nl 501.910SjruohoIFS=" "" $as_nl" 511.913Sdrochner 521.31SkanaokaPS1='$ ' 531.169SkochiPS2='> ' 541.1SlukemPS4='+ ' 551.1Slukem 561.640Schristos# Ensure predictable behavior from utilities with locale-dependent output. 571.640SchristosLC_ALL=C 581.1Slukemexport LC_ALL 591.255SwizLANGUAGE=C 601.335Slukemexport LANGUAGE 611.262Schristos 621.506Srpaulo# We cannot yet rely on "unset" to work, but we need these variables 631.387Srpaulo# to be unset--not just set to an empty or harmless value--now, to 641.913Sdrochner# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 651.1Slukem# also avoids known problems related to "unset" and subshell syntax 661.1Slukem# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 671.262Schristosfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 681.913Sdrochnerdo eval test \${$as_var+y} \ 691.1Slukem && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 701.567Sjmmvdone 711.1002Sjmmv 721.1002Sjmmv# Ensure that fds 0, 1, and 2 are open. 731.827Sjmmvif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 741.917Sjmmvif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 751.917Sjmmvif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 761.570Sjmmv 771.567Sjmmv# The user is always right. 781.595Sjmmvif ${PATH_SEPARATOR+false} :; then 791.913Sdrochner PATH_SEPARATOR=: 801.567Sjmmv (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 811.663Sjmmv (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 821.827Sjmmv PATH_SEPARATOR=';' 831.567Sjmmv } 841.567Sjmmvfi 851.567Sjmmv 861.567Sjmmv 871.427Sgdamore# Find who we are. Look in the path if we contain no directory separator. 881.713Ssborrillas_myself= 891.713Ssborrillcase $0 in #(( 901.427Sgdamore *[\\/]* ) as_myself=$0 ;; 911.427Sgdamore *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 921.427Sgdamorefor as_dir in $PATH 931.427Sgdamoredo 941.713Ssborrill IFS=$as_save_IFS 951.962Swiz case $as_dir in #((( 961.913Sdrochner '') as_dir=./ ;; 971.427Sgdamore */) ;; 981.427Sgdamore *) as_dir=$as_dir/ ;; 991.1Slukem esac 1001.1Slukem test -r "$as_dir$0" && as_myself=$as_dir$0 && break 1011.1Slukem done 1021.1SlukemIFS=$as_save_IFS 1031.1Slukem 1041.335Slukem ;; 1051.1Slukemesac 1061.1Slukem# We did not find ourselves, most probably we were run as 'sh COMMAND' 1071.387Srpaulo# in which case we are not to be found in the path. 1081.913Sdrochnerif test "x$as_myself" = x; then 1091.1Slukem as_myself=$0 1101.1Slukemfi 1111.1Slukemif test ! -f "$as_myself"; then 1121.683Schristos printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1131.984Sspz exit 1 1141.984Sspzfi 1151.1Slukem 1161.246Swiz 1171.962Swiz# Use a proper internal environment variable to ensure we don't fall 1181.962Swiz # into an infinite loop, continuously re-executing ourselves. 1191.962Swiz if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 1201.569Swiz _as_can_reexec=no; export _as_can_reexec; 1211.387Srpaulo # We cannot yet assume a decent shell, so we have to provide a 1221.913Sdrochner# neutralization value for shells without unset; and this also 1231.1Slukem# works around shells that cannot unset nonexistent variables. 1241.683Schristos# Preserve -v and -x to the replacement shell. 1251.683SchristosBASH_ENV=/dev/null 1261.610SchristosENV=/dev/null 1271.683Schristos(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 1281.683Schristoscase $- in # (((( 1291.683Schristos *v*x* | *x*v* ) as_opts=-vx ;; 1301.683Schristos *v* ) as_opts=-v ;; 1311.684Schristos *x* ) as_opts=-x ;; 1321.962Swiz * ) as_opts= ;; 1331.683Schristosesac 1341.683Schristosexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 1351.962Swiz# Admittedly, this is quite paranoid, since all the known shells bail 1361.962Swiz# out after a failed 'exec'. 1371.683Schristosprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 1381.683Schristosexit 255 1391.913Sdrochner fi 1401.683Schristos # We don't want this to propagate to other subprocesses. 1411.683Schristos { _as_can_reexec=; unset _as_can_reexec;} 1421.252Schristosif test "x$CONFIG_SHELL" = x; then 1431.252Schristos as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 1441.252Schristosthen : 1451.252Schristos emulate sh 1461.252Schristos NULLCMD=: 1471.252Schristos # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1481.252Schristos # is contrary to our usage. Disable this feature. 1491.252Schristos alias -g '\${1+\"\$@\"}'='\"\$@\"' 1501.518Sghen setopt NO_GLOB_SUBST 1511.518Sghenelse case e in #( 1521.252Schristos e) case \`(set -o) 2>/dev/null\` in #( 1531.683Schristos *posix*) : 1541.1Slukem set -o posix ;; #( 1551.161Smrg *) : 1561.874Schristos ;; 1571.983Swizesac ;; 1581.1Slukemesac 1591.1Slukemfi 1601.335Slukem" 1611.1Slukem as_required="as_fn_return () { (exit \$1); } 1621.61Smrgas_fn_success () { as_fn_return 0; } 1631.807Stronas_fn_failure () { as_fn_return 1; } 1641.913Sdrochneras_fn_ret_success () { return 0; } 1651.1Slukemas_fn_ret_failure () { return 1; } 1661.1Slukem 1671.894Srizexitcode=0 1681.767Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1691.767Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1701.696Sdentas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1711.697Sdentas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1721.696Sdentif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 1731.696Sdentthen : 1741.696Sdent 1751.696Sdentelse case e in #( 1761.913Sdrochner e) exitcode=1; echo positional parameters were not saved. ;; 1771.696Sdentesac 1781.913Sdrochnerfi 1791.696Sdenttest x\$exitcode = x0 || exit 1 1801.1Slukemblah=\$(echo \$(echo blah)) 1811.962Swiztest x\"\$blah\" = xblah || exit 1 1821.962Swiztest -x / || exit 1" 1831.962Swiz as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1841.962Swiz as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1851.962Swiz eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1861.1Slukem test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 1871.675Sjmcneilltest \$(( 1 + 1 )) = 2 || exit 1" 1881.962Swiz if (eval "$as_required") 2>/dev/null 1891.913Sdrochnerthen : 1901.1Slukem as_have_required=yes 1911.1Slukemelse case e in #( 1921.650Sperry e) as_have_required=no ;; 1931.868Schristosesac 1941.868Schristosfi 1951.650Sperry if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 1961.650Sperrythen : 1971.650Sperry 1981.650Sperryelse case e in #( 1991.650Sperry e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2001.650Sperryas_found=false 2011.913Sdrochnerfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2021.650Sperrydo 2031.868Schristos IFS=$as_save_IFS 2041.650Sperry case $as_dir in #((( 2051.1Slukem '') as_dir=./ ;; 2061.937Swiz */) ;; 2071.936Swiz *) as_dir=$as_dir/ ;; 2081.1Slukem esac 2091.1Slukem as_found=: 2101.335Slukem case $as_dir in #( 2111.1Slukem /*) 2121.1Slukem for as_base in sh bash ksh sh5; do 2131.387Srpaulo # Try only shells that exist, to save several forks. 2141.936Swiz as_shell=$as_dir$as_base 2151.1Slukem if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2161.936Swiz as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2171.1Slukemthen : 2181.1Slukem CONFIG_SHELL=$as_shell as_have_required=yes 2191.696Sdent if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 2201.696Sdentthen : 2211.1Slukem break 2 2221.1Slukemfi 2231.335Slukemfi 2241.1Slukem done;; 2251.569Swiz esac 2261.387Srpaulo as_found=false 2271.387Srpaulodone 2281.913SdrochnerIFS=$as_save_IFS 2291.1Slukemif $as_found 2301.1Slukemthen : 2311.173Sitojun 2321.173Sitojunelse case e in #( 2331.1Slukem e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2341.173Sitojun as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2351.173Sitojunthen : 2361.173Sitojun CONFIG_SHELL=$SHELL as_have_required=yes 2371.173Sitojunfi ;; 2381.1Slukemesac 2391.1Slukemfi 2401.761Schristos 2411.680Swiz 2421.1Slukem if test "x$CONFIG_SHELL" != x 2431.376Smrgthen : 2441.349Sjunyoung export CONFIG_SHELL 2451.1Slukem # We cannot yet assume a decent shell, so we have to provide a 2461.1Slukem# neutralization value for shells without unset; and this also 2471.387Srpaulo# works around shells that cannot unset nonexistent variables. 2481.913Sdrochner# Preserve -v and -x to the replacement shell. 2491.1SlukemBASH_ENV=/dev/null 2501.1SlukemENV=/dev/null 2511.1Slukem(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2521.681Schristoscase $- in # (((( 2531.681Schristos *v*x* | *x*v* ) as_opts=-vx ;; 2541.1Slukem *v* ) as_opts=-v ;; 2551.375Swiz *x* ) as_opts=-x ;; 2561.375Swiz * ) as_opts= ;; 2571.1Slukemesac 2581.737Swizexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 2591.387Srpaulo# Admittedly, this is quite paranoid, since all the known shells bail 2601.913Sdrochner# out after a failed 'exec'. 2611.1Slukemprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 2621.913Sdrochnerexit 255 2631.1Slukemfi 2641.913Sdrochner 2651.913Sdrochner if test x$as_have_required = xno 2661.1Slukemthen : 2671.1Slukem printf "%s\n" "$0: This script requires a shell more modern than all" 2681.1Slukem printf "%s\n" "$0: the shells that I found on your system." 2691.696Sdent if test ${ZSH_VERSION+y} ; then 2701.1Slukem printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2711.584Stnn printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 2721.584Stnn else 2731.1Slukem printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 2741.1Slukem$0: https://gitlab.freedesktop.org/xorg/app/xditview/-/issues 2751.584Stnn$0: about your system, including any error possibly output 2761.913Sdrochner$0: before this message. Then install a modern shell, or 2771.1Slukem$0: manually run the script under such a shell if you do 2781.1Slukem$0: have one." 2791.1Slukem fi 2801.1Slukem exit 1 2811.1Slukemfi ;; 2821.1Slukemesac 2831.1Slukemfi 2841.1Slukemfi 2851.1SlukemSHELL=${CONFIG_SHELL-/bin/sh} 2861.352Sdrochnerexport SHELL 2871.954Staca# Unset more variables known to interfere with behavior of common tools. 2881.392SrpauloCLICOLOR_FORCE= GREP_OPTIONS= 2891.1Slukemunset CLICOLOR_FORCE GREP_OPTIONS 2901.696Sdent 2911.1Slukem## --------------------- ## 2921.1Slukem## M4sh Shell Functions. ## 2931.1Slukem## --------------------- ## 2941.1Slukem# as_fn_unset VAR 2951.1Slukem# --------------- 2961.387Srpaulo# Portably unset VAR. 2971.913Sdrochneras_fn_unset () 2981.1Slukem{ 2991.1Slukem { eval $1=; unset $1;} 3001.1Slukem} 3011.1Slukemas_unset=as_fn_unset 3021.604Sjoerg 3031.999Sroy 3041.999Sroy# as_fn_set_status STATUS 3051.654Sroy# ----------------------- 3061.666Sroy# Set $? to STATUS, without forking. 3071.654Sroyas_fn_set_status () 3081.654Sroy{ 3091.604Sjoerg return $1 3101.913Sdrochner} # as_fn_set_status 3111.604Sjoerg 3121.604Sjoerg# as_fn_exit STATUS 3131.654Sroy# ----------------- 3141.604Sjoerg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3151.1Slukemas_fn_exit () 3161.42Swiz{ 3171.878Swiz set +e 3181.1Slukem as_fn_set_status $1 3191.1Slukem exit $1 3201.335Slukem} # as_fn_exit 3211.918Swiz 3221.737Swiz# as_fn_mkdir_p 3231.918Swiz# ------------- 3241.913Sdrochner# Create "$as_dir" as a directory, including parents if necessary. 3251.1Slukemas_fn_mkdir_p () 3261.43Swiz{ 3271.43Swiz 3281.1Slukem case $as_dir in #( 3291.930Stron -*) as_dir=./$as_dir;; 3301.933Sspz esac 3311.930Stron test -d "$as_dir" || eval $as_mkdir_p || { 3321.931Stron as_dirs= 3331.930Stron while :; do 3341.981Sjdf case $as_dir in #( 3351.930Stron *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3361.930Stron *) as_qdir=$as_dir;; 3371.930Stron esac 3381.930Stron as_dirs="'$as_qdir' $as_dirs" 3391.930Stron as_dir=`$as_dirname -- "$as_dir" || 3401.930Stron$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3411.930Stron X"$as_dir" : 'X\(//\)[^/]' \| \ 3421.1Slukem X"$as_dir" : 'X\(//\)$' \| \ 3431.995Schristos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3441.1013Swizprintf "%s\n" X"$as_dir" | 3451.1Slukem sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3461.1Slukem s//\1/ 3471.946Swiz q 3481.1Slukem } 3491.1Slukem /^X\(\/\/\)[^/].*/{ 3501.387Srpaulo s//\1/ 3511.913Sdrochner q 3521.1Slukem } 3531.632Schristos /^X\(\/\/\)$/{ 3541.1Slukem s//\1/ 3551.1Slukem q 3561.726Schristos } 3571.651Sperry /^X\(\/\).*/{ 3581.651Sperry s//\1/ 3591.651Sperry q 3601.651Sperry } 3611.651Sperry s/.*/./; q'` 3621.651Sperry test -d "$as_dir" && break 3631.894Sriz done 3641.913Sdrochner test -z "$as_dirs" || eval "mkdir $as_dirs" 3651.1Slukem } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3661.726Schristos 3671.1Slukem 3681.1Slukem} # as_fn_mkdir_p 3691.969Swiz 3701.969Swiz# as_fn_executable_p FILE 3711.501Smrg# ----------------------- 3721.1Slukem# Test if FILE is an executable regular file. 3731.335Slukemas_fn_executable_p () 3741.1Slukem{ 3751.61Smrg test -f "$1" && test -x "$1" 3761.847Smrg} # as_fn_executable_p 3771.913Sdrochner# as_fn_append VAR VALUE 3781.1Slukem# ---------------------- 3791.185Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3801.185Smrg# advantage of any shell optimizations that allow amortized linear growth over 3811.185Smrg# repeated appends, instead of the typical quadratic growth present in naive 3821.439Smrg# implementations. 3831.439Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 3841.439Smrgthen : 3851.448Smrg eval 'as_fn_append () 3861.847Smrg { 3871.847Smrg eval $1+=\$2 3881.847Smrg }' 3891.847Smrgelse case e in #( 3901.847Smrg e) as_fn_append () 3911.847Smrg { 3921.1Slukem eval $1=\$$1\$2 3931.1Slukem } ;; 3941.885Schristosesac 3951.959Swizfi # as_fn_append 3961.1Slukem 3971.1Slukem# as_fn_arith ARG... 3981.335Slukem# ------------------ 3991.1Slukem# Perform arithmetic evaluation on the ARGs, and store the result in the 4001.885Schristos# global $as_val. Take advantage of shells that can avoid forks. The arguments 4011.885Schristos# must be portable across $(()) and expr. 4021.913Sdrochnerif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 4031.1Slukemthen : 4041.473Stls eval 'as_fn_arith () 4051.474Schristos { 4061.473Stls as_val=$(( $* )) 4071.473Stls }' 4081.1Slukemelse case e in #( 4091.929Stron e) as_fn_arith () 4101.929Stron { 4111.929Stron as_val=`expr "$@" || test $? -eq 1` 4121.929Stron } ;; 4131.929Stronesac 4141.929Stronfi # as_fn_arith 4151.929Stron 4161.929Stron 4171.929Stron# as_fn_error STATUS ERROR [LINENO LOG_FD] 4181.929Stron# ---------------------------------------- 4191.929Stron# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4201.929Stron# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4211.929Stron# script with STATUS, using 1 if that was 0. 4221.929Stronas_fn_error () 4231.929Stron{ 4241.1Slukem as_status=$1; test $as_status -eq 0 && as_status=1 4251.328Schristos if test "$4"; then 4261.568Swiz as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4271.1Slukem printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4281.1Slukem fi 4291.335Slukem printf "%s\n" "$as_me: error: $2" >&2 4301.1Slukem as_fn_exit $as_status 4311.569Swiz} # as_fn_error 4321.387Srpaulo 4331.913Sdrochnerif expr a : '\(a\)' >/dev/null 2>&1 && 4341.1Slukem test "X`expr 00001 : '.*\(...\)'`" = X001; then 4351.1Slukem as_expr=expr 4361.1Slukemelse 4371.1Slukem as_expr=false 4381.1Slukemfi 4391.478Sapb 4401.478Sapbif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4411.478Sapb as_basename=basename 4421.478Sapbelse 4431.478Sapb as_basename=false 4441.478Sapbfi 4451.478Sapb 4461.478Sapbif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4471.478Sapb as_dirname=dirname 4481.913Sdrochnerelse 4491.478Sapb as_dirname=false 4501.478Sapbfi 4511.1Slukem 4521.52Swizas_me=`$as_basename -- "$0" || 4531.960Swiz$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4541.1Slukem X"$0" : 'X\(//\)$' \| \ 4551.1Slukem X"$0" : 'X\(/\)' \| . 2>/dev/null || 4561.335Slukemprintf "%s\n" X/"$0" | 4571.1Slukem sed '/^.*\/\([^/][^/]*\)\/*$/{ 4581.737Swiz s//\1/ 4591.909Sriz q 4601.913Sdrochner } 4611.1Slukem /^X\/\(\/\/\)$/{ 4621.44Swiz s//\1/ 4631.44Swiz q 4641.918Swiz } 4651.918Swiz /^X\/\(\/\).*/{ 4661.918Swiz s//\1/ 4671.918Swiz q 4681.918Swiz } 4691.918Swiz s/.*/./; q'` 4701.1Slukem 4711.1Slukem# Avoid depending upon Character Ranges. 4721.408Swizas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4731.801Swizas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4741.216Swizas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4751.1Slukemas_cr_digits='0123456789' 4761.335Slukemas_cr_alnum=$as_cr_Letters$as_cr_digits 4771.1Slukem 4781.737Swiz 4791.387Srpaulo as_lineno_1=$LINENO as_lineno_1a=$LINENO 4801.913Sdrochner as_lineno_2=$LINENO as_lineno_2a=$LINENO 4811.1Slukem eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4821.38Swiz test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4831.1Slukem # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4841.1Slukem sed -n ' 4851.1Slukem p 4861.837Selric /[$]LINENO/= 4871.837Selric ' <$as_myself | 4881.1Slukem sed ' 4891.1Slukem t clear 4901.335Slukem :clear 4911.1Slukem s/[$]LINENO.*/&-/ 4921.411Swiz t lineno 4931.387Srpaulo b 4941.913Sdrochner :lineno 4951.1Slukem N 4961.1Slukem :loop 4971.1Slukem s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4981.117Swiz t loop 4991.107Swiz s/-\n.*// 5001.335Slukem ' >$as_me.lineno && 5011.107Swiz chmod +x "$as_me.lineno" || 5021.335Slukem { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 5031.1Slukem 5041.387Srpaulo # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 5051.913Sdrochner # already done that, so ensure we don't try to do so again and fall 5061.1Slukem # in an infinite loop. This has already happened in practice. 5071.1Slukem _as_can_reexec=no; export _as_can_reexec 5081.202Smartti # Don't try to exec as it changes $[0], causing all sort of problems 5091.923Schristos # (the dirname of $[0] is not the place where we might find the 5101.923Schristos # original and so on. Autoconf is especially sensitive to this). 5111.1Slukem . "./$as_me.lineno" 5121.267Staca # Exit status is that of the last command. 5131.335Slukem exit 5141.1Slukem} 5151.923Schristos 5161.923Schristos 5171.923Schristos# Determine whether it's possible to make 'echo' print without a newline. 5181.1Slukem# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 5191.1Slukem# for compatibility with existing Makefiles. 5201.1SlukemECHO_C= ECHO_N= ECHO_T= 5211.284Sthorpejcase `echo -n x` in #((((( 5221.548Sgdt-n*) 5231.284Sthorpej case `echo 'xy\c'` in 5241.335Slukem *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5251.335Slukem xy) ECHO_C='\c';; 5261.284Sthorpej *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5271.549Smanu ECHO_T=' ';; 5281.387Srpaulo esac;; 5291.913Sdrochner*) 5301.284Sthorpej ECHO_N='-n';; 5311.548Sgdtesac 5321.550Smanu 5331.550Smanu# For backward compatibility with old third-party macros, we provide 5341.550Smanu# the shell variables $as_echo and $as_echo_n. New code should use 5351.550Smanu# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 5361.550Smanuas_echo='printf %s\n' 5371.550Smanuas_echo_n='printf %s' 5381.550Smanu 5391.550Smanurm -f conf$$ conf$$.exe conf$$.file 5401.894Srizif test -d conf$$.dir; then 5411.550Smanu rm -f conf$$.dir/conf$$.file 5421.550Smanuelse 5431.550Smanu rm -f conf$$.dir 5441.894Sriz mkdir conf$$.dir 2>/dev/null 5451.550Smanufi 5461.894Srizif (echo >conf$$.file) 2>/dev/null; then 5471.550Smanu if ln -s conf$$.file conf$$ 2>/dev/null; then 5481.550Smanu as_ln_s='ln -s' 5491.284Sthorpej # ... but there are two gotchas: 5501.1Slukem # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 5511.1Slukem # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 5521.1Slukem # In both cases, we have to default to 'cp -pR'. 5531.1Slukem ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5541.1Slukem as_ln_s='cp -pR' 5551.335Slukem elif ln conf$$.file conf$$ 2>/dev/null; then 5561.1Slukem as_ln_s=ln 5571.569Swiz else 5581.387Srpaulo as_ln_s='cp -pR' 5591.913Sdrochner fi 5601.1Slukemelse 5611.1Slukem as_ln_s='cp -pR' 5621.1Slukemfi 5631.1Slukemrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5641.1Slukemrmdir conf$$.dir 2>/dev/null 5651.1Slukem 5661.1Slukemif mkdir -p . 2>/dev/null; then 5671.1Slukem as_mkdir_p='mkdir -p "$as_dir"' 5681.1Slukemelse 5691.1Slukem test -d ./-p && rmdir ./-p 5701.1Slukem as_mkdir_p=false 5711.1Slukemfi 5721.1007Sjmmv 5731.1007Sjmmvas_test_x='test -x' 5741.1007Sjmmvas_executable_p=as_fn_executable_p 5751.1007Sjmmv 5761.1007Sjmmv# Sed expression to map a string onto a valid CPP name. 5771.1007Sjmmvas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 5781.1007Sjmmvas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 5791.1007Sjmmv 5801.1007Sjmmv# Sed expression to map a string onto a valid variable name. 5811.1007Sjmmvas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 5821.1007Sjmmvas_tr_sh="eval sed '$as_sed_sh'" # deprecated 5831.1007Sjmmv 5841.1007Sjmmv 5851.1007Sjmmvtest -n "$DJDIR" || exec 7<&0 </dev/null 5861.1007Sjmmvexec 6>&1 5871.1006Sjmmv 5881.1006Sjmmv# Name of the host. 5891.1006Sjmmv# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5901.1006Sjmmv# so uname gets run too. 5911.1006Sjmmvac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5921.1006Sjmmv 5931.1006Sjmmv# 5941.1006Sjmmv# Initializations. 5951.1006Sjmmv# 5961.1006Sjmmvac_default_prefix=/usr/local 5971.1006Sjmmvac_clean_files= 5981.1006Sjmmvac_config_libobj_dir=. 5991.1006SjmmvLIBOBJS= 6001.1006Sjmmvcross_compiling=no 6011.1004Sjmmvsubdirs= 6021.1004SjmmvMFLAGS= 6031.1004SjmmvMAKEFLAGS= 6041.1004Sjmmv 6051.1004Sjmmv# Identity of this package. 6061.1004SjmmvPACKAGE_NAME='xditview' 6071.1004SjmmvPACKAGE_TARNAME='xditview' 6081.1004SjmmvPACKAGE_VERSION='1.0.7' 6091.1004SjmmvPACKAGE_STRING='xditview 1.0.7' 6101.1004SjmmvPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xditview/-/issues' 6111.1004SjmmvPACKAGE_URL='' 6121.1004Sjmmv 6131.1004Sjmmvac_unique_file="Makefile.am" 6141.1004Sjmmv# Factoring default headers for most tests. 6151.1004Sjmmvac_includes_default="\ 6161.1Slukem#include <stddef.h> 6171.850Stron#ifdef HAVE_STDIO_H 6181.967Swiz# include <stdio.h> 6191.823Sjakllsch#endif 6201.467Sjnemeth#ifdef HAVE_STDLIB_H 6211.467Sjnemeth# include <stdlib.h> 6221.823Sjakllsch#endif 6231.1Slukem#ifdef HAVE_STRING_H 6241.968Sjdf# include <string.h> 6251.913Sdrochner#endif 6261.1Slukem#ifdef HAVE_INTTYPES_H 6271.1Slukem# include <inttypes.h> 6281.850Stron#endif 6291.918Swiz#ifdef HAVE_STDINT_H 6301.850Stron# include <stdint.h> 6311.1Slukem#endif 6321.543Sjoerg#ifdef HAVE_STRINGS_H 6331.918Swiz# include <strings.h> 6341.918Swiz#endif 6351.748Sjoerg#ifdef HAVE_SYS_TYPES_H 6361.918Swiz# include <sys/types.h> 6371.918Swiz#endif 6381.543Sjoerg#ifdef HAVE_SYS_STAT_H 6391.918Swiz# include <sys/stat.h> 6401.913Sdrochner#endif 6411.543Sjoerg#ifdef HAVE_UNISTD_H 6421.748Sjoerg# include <unistd.h> 6431.543Sjoerg#endif" 6441.696Sdent 6451.735Shaadac_header_c_list= 6461.735Shaadenable_year2038=no 6471.696Sdentac_subst_vars='am__EXEEXT_FALSE 6481.696Sdentam__EXEEXT_TRUE 6491.696SdentLTLIBOBJS 6501.696SdentLIBOBJS 6511.696SdentXFT_LIBS 6521.913SdrochnerXFT_CFLAGS 6531.656Shaadappdefaultdir 6541.894SrizAPPDEFS_LIBS 6551.729SsnjAPPDEFS_CFLAGS 6561.656ShaadXDITVIEW_LIBS 6571.263SwizXDITVIEW_CFLAGS 6581.732SplunkyMAN_SUBSTS 6591.732SplunkyXORG_MAN_PAGE 6601.263SwizADMIN_MAN_DIR 6611.263SwizDRIVER_MAN_DIR 6621.335SlukemMISC_MAN_DIR 6631.263SwizFILE_MAN_DIR 6641.387SrpauloLIB_MAN_DIR 6651.913SdrochnerAPP_MAN_DIR 6661.263SwizADMIN_MAN_SUFFIX 6671.263SwizDRIVER_MAN_SUFFIX 6681.696SdentMISC_MAN_SUFFIX 6691.735ShaadFILE_MAN_SUFFIX 6701.735ShaadLIB_MAN_SUFFIX 6711.696SdentAPP_MAN_SUFFIX 6721.696SdentSED 6731.696Sdenthost_os 6741.696Sdenthost_vendor 6751.696Sdenthost_cpu 6761.913Sdrochnerhost 6771.894Srizbuild_os 6781.894Srizbuild_vendor 6791.656Shaadbuild_cpu 6801.894Srizbuild 6811.656ShaadINSTALL_CMD 6821.656ShaadPKG_CONFIG_LIBDIR 6831.1SlukemPKG_CONFIG_PATH 6841.792SchristosPKG_CONFIG 6851.792SchristosCHANGELOG_CMD 6861.1SlukemSTRICT_CFLAGS 6871.1SlukemCWARNFLAGS 6881.335SlukemBASE_CFLAGS 6891.1Slukemam__fastdepCC_FALSE 6901.569Swizam__fastdepCC_TRUE 6911.387SrpauloCCDEPMODE 6921.913Sdrochneram__nodep 6931.1SlukemAMDEPBACKSLASH 6941.792SchristosAMDEP_FALSE 6951.792SchristosAMDEP_TRUE 6961.1Slukemam__include 6971.1SlukemDEPDIR 6981.1SlukemOBJEXT 6991.954StacaEXEEXT 7001.1Slukemac_ct_CC 7011.1SlukemCPPFLAGS 7021.335SlukemLDFLAGS 7031.230SjunyoungCFLAGS 7041.569SwizCC 7051.387SrpauloAM_BACKSLASH 7061.913SdrochnerAM_DEFAULT_VERBOSITY 7071.1SlukemAM_DEFAULT_V 7081.1SlukemAM_V 7091.1SlukemCSCOPE 7101.1SlukemETAGS 7111.1SlukemCTAGS 7121.782Smbalmeram__untar 7131.782Smbalmeram__tar 7141.943SdrochnerAMTAR 7151.782Smbalmeram__leading_dot 7161.782SmbalmerSET_MAKE 7171.782SmbalmerAWK 7181.782Smbalmermkdir_p 7191.782SmbalmerMKDIR_P 7201.913SdrochnerINSTALL_STRIP_PROGRAM 7211.782SmbalmerSTRIP 7221.782Smbalmerinstall_sh 7231.783SsnjMAKEINFO 7241.782SmbalmerAUTOHEADER 7251.1003SjmmvAUTOMAKE 7261.1003SjmmvAUTOCONF 7271.1003SjmmvACLOCAL 7281.1003SjmmvVERSION 7291.1003SjmmvPACKAGE 7301.1003SjmmvCYGPATH_W 7311.1003Sjmmvam__isrc 7321.1003SjmmvINSTALL_DATA 7331.1003SjmmvINSTALL_SCRIPT 7341.1003SjmmvINSTALL_PROGRAM 7351.1003Sjmmvtarget_alias 7361.1003Sjmmvhost_alias 7371.1003Sjmmvbuild_alias 7381.1003SjmmvLIBS 7391.728SchristosECHO_T 7401.728SchristosECHO_N 7411.728SchristosECHO_C 7421.962SwizDEFS 7431.728Schristosmandir 7441.962Swizlocaledir 7451.728Schristoslibdir 7461.728Schristospsdir 7471.728Schristospdfdir 7481.913Sdrochnerdvidir 7491.728Schristoshtmldir 7501.913Sdrochnerinfodir 7511.728Schristosdocdir 7521.718Stsarnaoldincludedir 7531.718Stsarnaincludedir 7541.804Swizrunstatedir 7551.718Stsarnalocalstatedir 7561.718Stsarnasharedstatedir 7571.718Stsarnasysconfdir 7581.718Stsarnadatadir 7591.718Stsarnadatarootdir 7601.718Stsarnalibexecdir 7611.718Stsarnasbindir 7621.913Sdrochnerbindir 7631.718Stsarnaprogram_transform_name 7641.718Stsarnaprefix 7651.723Swizexec_prefix 7661.878SwizPACKAGE_URL 7671.924SwizPACKAGE_BUGREPORT 7681.723SwizPACKAGE_STRING 7691.723SwizPACKAGE_VERSION 7701.723SwizPACKAGE_TARNAME 7711.723SwizPACKAGE_NAME 7721.723SwizPATH_SEPARATOR 7731.723SwizSHELL 7741.913Sdrochneram__quote' 7751.723Swizac_subst_files='' 7761.723Swizac_user_opts=' 7771.696Sdentenable_option_checking 7781.703Smrgenable_silent_rules 7791.696Sdentenable_dependency_tracking 7801.696Sdentenable_selective_werror 7811.696Sdentenable_strict_compilation 7821.696Sdentenable_largefile 7831.696Sdentwith_appdefaultdir 7841.696Sdentwith_xft 7851.696Sdentenable_year2038 7861.913Sdrochner' 7871.696Sdent ac_precious_vars='build_alias 7881.696Sdenthost_alias 7891.1Slukemtarget_alias 7901.1SlukemCC 7911.1SlukemCFLAGS 7921.1SlukemLDFLAGS 7931.696SdentLIBS 7941.335SlukemCPPFLAGS 7951.230SjunyoungPKG_CONFIG 7961.1SlukemPKG_CONFIG_PATH 7971.387SrpauloPKG_CONFIG_LIBDIR 7981.913SdrochnerXDITVIEW_CFLAGS 7991.1SlukemXDITVIEW_LIBS 8001.1SlukemAPPDEFS_CFLAGS 8011.1SlukemAPPDEFS_LIBS 8021.1SlukemXFT_CFLAGS 8031.993SchristosXFT_LIBS' 8041.993Schristos 8051.696Sdent 8061.696Sdent# Initialize some variables set by options. 8071.696Sdentac_init_help= 8081.1Slukemac_init_version=false 8091.1Slukemac_unrecognized_opts= 8101.387Srpauloac_unrecognized_sep= 8111.913Sdrochner# The variables have the same names as the options, with 8121.1Slukem# dashes changed to underlines. 8131.1Slukemcache_file=/dev/null 8141.776Schristosexec_prefix=NONE 8151.776Schristosno_create= 8161.1Slukemno_recursion= 8171.1Slukemprefix=NONE 8181.1Slukemprogram_prefix=NONE 8191.1Slukemprogram_suffix=NONE 8201.1Slukemprogram_transform_name=s,x,x, 8211.696Sdentsilent= 8221.696Sdentsite= 8231.1Slukemsrcdir= 8241.387Srpauloverbose= 8251.913Sdrochnerx_includes=NONE 8261.1Slukemx_libraries=NONE 8271.1Slukem 8281.1Slukem# Installation directory options. 8291.1Slukem# These are left unexpanded so users can "make install exec_prefix=/foo" 8301.1Slukem# and all the variables that are supposed to be based on exec_prefix 8311.421Swiz# by default will actually change. 8321.904Skardel# Use braces instead of parens because sh, perl, etc. also accept them. 8331.903Skardel# (The list follows the same order as the GNU Coding Standards.) 8341.421Swizbindir='${exec_prefix}/bin' 8351.421Swizsbindir='${exec_prefix}/sbin' 8361.702Skardellibexecdir='${exec_prefix}/libexec' 8371.421Swizdatarootdir='${prefix}/share' 8381.455Skardeldatadir='${datarootdir}' 8391.421Swizsysconfdir='${prefix}/etc' 8401.913Sdrochnersharedstatedir='${prefix}/com' 8411.421Swizlocalstatedir='${prefix}/var' 8421.421Swizrunstatedir='${localstatedir}/run' 8431.421Swizincludedir='${prefix}/include' 8441.1Slukemoldincludedir='/usr/include' 8451.652Stsutsuidocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 8461.652Stsutsuiinfodir='${datarootdir}/info' 8471.1Slukemhtmldir='${docdir}' 8481.1Slukemdvidir='${docdir}' 8491.335Slukempdfdir='${docdir}' 8501.230Sjunyoungpsdir='${docdir}' 8511.652Stsutsuilibdir='${exec_prefix}/lib' 8521.387Srpaulolocaledir='${datarootdir}/locale' 8531.913Sdrochnermandir='${datarootdir}/man' 8541.1Slukem 8551.652Stsutsuiac_prev= 8561.1Slukemac_dashdash= 8571.603Slukemfor ac_option 8581.794Sadamdo 8591.1009Swiz # If the previous option needs an argument, assign it. 8601.603Slukem if test -n "$ac_prev"; then 8611.603Slukem eval $ac_prev=\$ac_option 8621.603Slukem ac_prev= 8631.603Slukem continue 8641.603Slukem fi 8651.603Slukem 8661.913Sdrochner case $ac_option in 8671.603Slukem *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8681.603Slukem *=) ac_optarg= ;; 8691.293Schristos *) ac_optarg=yes ;; 8701.892Sdrochner esac 8711.942Sdrochner 8721.638Swiz case $ac_dashdash$ac_option in 8731.276Swiz --) 8741.335Slukem ac_dashdash=yes ;; 8751.276Swiz 8761.276Swiz -bindir | --bindir | --bindi | --bind | --bin | --bi) 8771.387Srpaulo ac_prev=bindir ;; 8781.913Sdrochner -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8791.276Swiz bindir=$ac_optarg ;; 8801.579Schristos 8811.276Swiz -build | --build | --buil | --bui | --bu) 8821.734Sroy ac_prev=build_alias ;; 8831.986Sroy -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8841.986Sroy build_alias=$ac_optarg ;; 8851.734Sroy 8861.734Sroy -cache-file | --cache-file | --cache-fil | --cache-fi \ 8871.734Sroy | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8881.734Sroy ac_prev=cache_file ;; 8891.734Sroy -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8901.913Sdrochner | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8911.734Sroy cache_file=$ac_optarg ;; 8921.734Sroy 8931.734Sroy --config-cache | -C) 8941.612Schristos cache_file=config.cache ;; 8951.988Schristos 8961.988Schristos -datadir | --datadir | --datadi | --datad) 8971.612Schristos ac_prev=datadir ;; 8981.988Schristos -datadir=* | --datadir=* | --datadi=* | --datad=*) 8991.988Schristos datadir=$ac_optarg ;; 9001.612Schristos 9011.612Schristos -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 9021.612Schristos | --dataroo | --dataro | --datar) 9031.913Sdrochner ac_prev=datarootdir ;; 9041.612Schristos -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 9051.612Schristos | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 9061.612Schristos datarootdir=$ac_optarg ;; 9071.1Slukem 9081.987Schristos -disable-* | --disable-*) 9091.965Sis ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 9101.1Slukem # Reject names that are not valid shell variable names. 9111.1Slukem expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9121.335Slukem as_fn_error $? "invalid feature name: '$ac_useropt'" 9131.1Slukem ac_useropt_orig=$ac_useropt 9141.298Sitojun ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9151.701Schristos case $ac_user_opts in 9161.913Sdrochner *" 9171.1Slukem"enable_$ac_useropt" 9181.701Schristos"*) ;; 9191.913Sdrochner *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 9201.1Slukem ac_unrecognized_sep=', ';; 9211.1Slukem esac 9221.1Slukem eval enable_$ac_useropt=no ;; 9231.1Slukem 9241.1Slukem -docdir | --docdir | --docdi | --doc | --do) 9251.469Schristos ac_prev=docdir ;; 9261.405Schristos -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 9271.279Schristos docdir=$ac_optarg ;; 9281.280Schristos 9291.280Schristos -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 9301.786Schristos ac_prev=dvidir ;; 9311.786Schristos -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 9321.701Schristos dvidir=$ac_optarg ;; 9331.701Schristos 9341.701Schristos -enable-* | --enable-*) 9351.701Schristos ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 9361.701Schristos # Reject names that are not valid shell variable names. 9371.701Schristos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9381.701Schristos as_fn_error $? "invalid feature name: '$ac_useropt'" 9391.701Schristos ac_useropt_orig=$ac_useropt 9401.701Schristos ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 9411.701Schristos case $ac_user_opts in 9421.701Schristos *" 9431.701Schristos"enable_$ac_useropt" 9441.701Schristos"*) ;; 9451.384Schristos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9461.854Schristos ac_unrecognized_sep=', ';; 9471.1Slukem esac 9481.1Slukem eval enable_$ac_useropt=\$ac_optarg ;; 9491.1001Schristos 9501.1001Schristos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9511.1Slukem | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9521.1Slukem | --exec | --exe | --ex) 9531.335Slukem ac_prev=exec_prefix ;; 9541.1Slukem -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9551.569Swiz | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9561.387Srpaulo | --exec=* | --exe=* | --ex=*) 9571.913Sdrochner exec_prefix=$ac_optarg ;; 9581.1Slukem 9591.380Schristos -gas | --gas | --ga | --g) 9601.708Schristos # Obsolete; use --with-gas. 9611.708Schristos with_gas=yes ;; 9621.953Schristos 9631.953Schristos -help | --help | --hel | --he | -h) 9641.1Slukem ac_init_help=long ;; 9651.926Splunky -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9661.926Splunky ac_init_help=recursive ;; 9671.926Splunky -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9681.932Sriz ac_init_help=short ;; 9691.926Splunky 9701.926Splunky -host | --host | --hos | --ho) 9711.926Splunky ac_prev=host_alias ;; 9721.926Splunky -host=* | --host=* | --hos=* | --ho=*) 9731.926Splunky host_alias=$ac_optarg ;; 9741.926Splunky 9751.926Splunky -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9761.926Splunky ac_prev=htmldir ;; 9771.926Splunky -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9781.926Splunky | --ht=*) 9791.926Splunky htmldir=$ac_optarg ;; 9801.19Swiz 9811.19Swiz -includedir | --includedir | --includedi | --included | --include \ 9821.19Swiz | --includ | --inclu | --incl | --inc) 9831.19Swiz ac_prev=includedir ;; 9841.19Swiz -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9851.335Slukem | --includ=* | --inclu=* | --incl=* | --inc=*) 9861.19Swiz includedir=$ac_optarg ;; 9871.19Swiz 9881.387Srpaulo -infodir | --infodir | --infodi | --infod | --info | --inf) 9891.913Sdrochner ac_prev=infodir ;; 9901.19Swiz -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9911.729Ssnj infodir=$ac_optarg ;; 9921.1015Swiz 9931.19Swiz -libdir | --libdir | --libdi | --libd) 9941.1Slukem ac_prev=libdir ;; 9951.1Slukem -libdir=* | --libdir=* | --libdi=* | --libd=*) 9961.1Slukem libdir=$ac_optarg ;; 9971.1Slukem 9981.1Slukem -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9991.335Slukem | --libexe | --libex | --libe) 10001.1Slukem ac_prev=libexecdir ;; 10011.457Sjdolecek -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 10021.387Srpaulo | --libexe=* | --libex=* | --libe=*) 10031.913Sdrochner libexecdir=$ac_optarg ;; 10041.880Sreed 10051.1Slukem -localedir | --localedir | --localedi | --localed | --locale) 10061.1Slukem ac_prev=localedir ;; 10071.421Swiz -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 10081.609Speter localedir=$ac_optarg ;; 10091.609Speter 10101.422Speter -localstatedir | --localstatedir | --localstatedi | --localstated \ 10111.421Swiz | --localstate | --localstat | --localsta | --localst | --locals) 10121.421Swiz ac_prev=localstatedir ;; 10131.421Swiz -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 10141.569Swiz | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 10151.421Swiz localstatedir=$ac_optarg ;; 10161.913Sdrochner 10171.421Swiz -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 10181.421Swiz ac_prev=mandir ;; 10191.421Swiz -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 10201.421Swiz mandir=$ac_optarg ;; 10211.421Swiz 10221.538Sjoerg -nfp | --nfp | --nf) 10231.915Swiz # Obsolete; use --without-fp. 10241.915Swiz with_fp=no ;; 10251.538Sjoerg 10261.894Sriz -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 10271.539Sheinz | --no-cr | --no-c | -n) 10281.538Sjoerg no_create=yes ;; 10291.538Sjoerg 10301.913Sdrochner -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 10311.538Sjoerg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 10321.913Sdrochner no_recursion=yes ;; 10331.538Sjoerg 10341.1Slukem -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 10351.1Slukem | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 10361.1Slukem | --oldin | --oldi | --old | --ol | --o) 10371.993Schristos ac_prev=oldincludedir ;; 10381.993Schristos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10391.993Schristos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10401.1Slukem | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10411.392Srpaulo oldincludedir=$ac_optarg ;; 10421.387Srpaulo 10431.913Sdrochner -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10441.1Slukem ac_prev=prefix ;; 10451.1Slukem -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10461.729Ssnj prefix=$ac_optarg ;; 10471.993Schristos 10481.993Schristos -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10491.1Slukem | --program-pre | --program-pr | --program-p) 10501.934Swiz ac_prev=program_prefix ;; 10511.994Stron -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10521.994Stron | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10531.1Slukem program_prefix=$ac_optarg ;; 10541.1Slukem 10551.335Slukem -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10561.1Slukem | --program-suf | --program-su | --program-s) 10571.705Stron ac_prev=program_suffix ;; 10581.704Stron -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10591.913Sdrochner | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10601.1Slukem program_suffix=$ac_optarg ;; 10611.432Srpaulo 10621.432Srpaulo -program-transform-name | --program-transform-name \ 10631.432Srpaulo | --program-transform-nam | --program-transform-na \ 10641.432Srpaulo | --program-transform-n | --program-transform- \ 10651.1Slukem | --program-transform | --program-transfor \ 10661.1Slukem | --program-transfo | --program-transf \ 10671.447Schristos | --program-trans | --program-tran \ 10681.446Sdan | --progr-tra | --program-tr | --program-t) 10691.1Slukem ac_prev=program_transform_name ;; 10701.1Slukem -program-transform-name=* | --program-transform-name=* \ 10711.349Sjunyoung | --program-transform-nam=* | --program-transform-na=* \ 10721.1Slukem | --program-transform-n=* | --program-transform-=* \ 10731.1Slukem | --program-transform=* | --program-transfor=* \ 10741.447Schristos | --program-transfo=* | --program-transf=* \ 10751.387Srpaulo | --program-trans=* | --program-tran=* \ 10761.913Sdrochner | --progr-tra=* | --program-tr=* | --program-t=*) 10771.1Slukem program_transform_name=$ac_optarg ;; 10781.1Slukem 10791.1Slukem -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10801.1Slukem ac_prev=pdfdir ;; 10811.397Schristos -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10821.1Slukem pdfdir=$ac_optarg ;; 10831.1Slukem 10841.1Slukem -psdir | --psdir | --psdi | --psd | --ps) 10851.447Schristos ac_prev=psdir ;; 10861.447Schristos -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10871.1Slukem psdir=$ac_optarg ;; 10881.1Slukem 10891.1Slukem -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10901.972Swiz | -silent | --silent | --silen | --sile | --sil) 10911.1Slukem silent=yes ;; 10921.1Slukem 10931.1Slukem -runstatedir | --runstatedir | --runstatedi | --runstated \ 10941.335Slukem | --runstate | --runstat | --runsta | --runst | --runs \ 10951.463Sagc | --run | --ru | --r) 10961.972Swiz ac_prev=runstatedir ;; 10971.913Sdrochner -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 10981.1Slukem | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 10991.894Sriz | --run=* | --ru=* | --r=*) 11001.1Slukem runstatedir=$ac_optarg ;; 11011.1Slukem 11021.996Staca -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 11031.996Staca ac_prev=sbindir ;; 11041.14Sperry -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 11051.14Sperry | --sbi=* | --sb=*) 11061.335Slukem sbindir=$ac_optarg ;; 11071.1Slukem 11081.507Sperry -sharedstatedir | --sharedstatedir | --sharedstatedi \ 11091.387Srpaulo | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 11101.913Sdrochner | --sharedst | --shareds | --shared | --share | --shar \ 11111.1Slukem | --sha | --sh) 11121.1Slukem ac_prev=sharedstatedir ;; 11131.1Slukem -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 11141.1Slukem | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 11151.1Slukem | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 11161.727Schristos | --sha=* | --sh=*) 11171.727Schristos sharedstatedir=$ac_optarg ;; 11181.1Slukem 11191.1Slukem -site | --site | --sit) 11201.335Slukem ac_prev=site ;; 11211.1Slukem -site=* | --site=* | --sit=*) 11221.392Srpaulo site=$ac_optarg ;; 11231.387Srpaulo 11241.913Sdrochner -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 11251.1Slukem ac_prev=srcdir ;; 11261.1Slukem -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 11271.1Slukem srcdir=$ac_optarg ;; 11281.201Schristos 11291.201Schristos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 11301.1Slukem | --syscon | --sysco | --sysc | --sys | --sy) 11311.1Slukem ac_prev=sysconfdir ;; 11321.1Slukem -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 11331.359Srpaulo | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 11341.1Slukem sysconfdir=$ac_optarg ;; 11351.1Slukem 11361.335Slukem -target | --target | --targe | --targ | --tar | --ta | --t) 11371.1Slukem ac_prev=target_alias ;; 11381.387Srpaulo -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 11391.1Slukem target_alias=$ac_optarg ;; 11401.913Sdrochner 11411.1Slukem -v | -verbose | --verbose | --verbos | --verbo | --verb) 11421.1Slukem verbose=yes ;; 11431.1Slukem 11441.1Slukem -version | --version | --versio | --versi | --vers | -V) 11451.1Slukem ac_init_version=: ;; 11461.144Sdent 11471.144Sdent -with-* | --with-*) 11481.335Slukem ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11491.1Slukem # Reject names that are not valid shell variable names. 11501.1Slukem expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11511.387Srpaulo as_fn_error $? "invalid package name: '$ac_useropt'" 11521.913Sdrochner ac_useropt_orig=$ac_useropt 11531.1Slukem ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11541.1Slukem case $ac_user_opts in 11551.1Slukem *" 11561.1Slukem"with_$ac_useropt" 11571.1Slukem"*) ;; 11581.877Sjoerg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11591.877Sjoerg ac_unrecognized_sep=', ';; 11601.990Swiz esac 11611.877Sjoerg eval with_$ac_useropt=\$ac_optarg ;; 11621.877Sjoerg 11631.877Sjoerg -without-* | --without-*) 11641.877Sjoerg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11651.913Sdrochner # Reject names that are not valid shell variable names. 11661.877Sjoerg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11671.877Sjoerg as_fn_error $? "invalid package name: '$ac_useropt'" 11681.877Sjoerg ac_useropt_orig=$ac_useropt 11691.877Sjoerg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 11701.1Slukem case $ac_user_opts in 11711.792Schristos *" 11721.792Schristos"with_$ac_useropt" 11731.429Shubertf"*) ;; 11741.1Slukem *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11751.335Slukem ac_unrecognized_sep=', ';; 11761.429Shubertf esac 11771.569Swiz eval with_$ac_useropt=no ;; 11781.387Srpaulo 11791.913Sdrochner --x) 11801.1Slukem # Obsolete; use --with-x. 11811.792Schristos with_x=yes ;; 11821.792Schristos 11831.1Slukem -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11841.1Slukem | --x-incl | --x-inc | --x-in | --x-i) 11851.1Slukem ac_prev=x_includes ;; 11861.1Slukem -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11871.144Sdent | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11881.144Sdent x_includes=$ac_optarg ;; 11891.335Slukem 11901.1Slukem -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11911.1Slukem | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11921.387Srpaulo ac_prev=x_libraries ;; 11931.913Sdrochner -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11941.1Slukem | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11951.1Slukem x_libraries=$ac_optarg ;; 11961.1Slukem 11971.634Schristos -*) as_fn_error $? "unrecognized option: '$ac_option' 11981.642SwizTry '$0 --help' for more information" 11991.1Slukem ;; 12001.1Slukem 12011.335Slukem *=*) 12021.1Slukem ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 12031.737Swiz # Reject names that are not valid shell variable names. 12041.909Sriz case $ac_envvar in #( 12051.913Sdrochner '' | [0-9]* | *[!_$as_cr_alnum]* ) 12061.1Slukem as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 12071.38Swiz esac 12081.38Swiz eval $ac_envvar=\$ac_optarg 12091.1Slukem export $ac_envvar ;; 12101.819Sjmmv 12111.860Sjmmv *) 12121.974Swiz # FIXME: should be removed in autoconf 3.0. 12131.819Sjmmv printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 12141.819Sjmmv expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 12151.819Sjmmv printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 12161.819Sjmmv : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 12171.819Sjmmv ;; 12181.819Sjmmv 12191.913Sdrochner esac 12201.819Sjmmvdone 12211.819Sjmmv 12221.819Sjmmvif test -n "$ac_prev"; then 12231.819Sjmmv ac_option=--`echo $ac_prev | sed 's/_/-/g'` 12241.1Slukem as_fn_error $? "missing argument to $ac_option" 12251.614Schristosfi 12261.614Schristos 12271.1Slukemif test -n "$ac_unrecognized_opts"; then 12281.614Schristos case $enable_option_checking in 12291.335Slukem no) ;; 12301.1Slukem fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 12311.614Schristos *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 12321.387Srpaulo esac 12331.913Sdrochnerfi 12341.1Slukem 12351.1Slukem# Check all directory arguments for consistency. 12361.1Slukemfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 12371.869Schristos datadir sysconfdir sharedstatedir localstatedir includedir \ 12381.1Slukem oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 12391.1Slukem libdir localedir mandir runstatedir 12401.1Slukemdo 12411.335Slukem eval ac_val=\$$ac_var 12421.1Slukem # Remove trailing slashes. 12431.1Slukem case $ac_val in 12441.387Srpaulo */ ) 12451.913Sdrochner ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 12461.1Slukem eval $ac_var=\$ac_val;; 12471.869Schristos esac 12481.1Slukem # Be sure to have absolute directory names. 12491.1Slukem case $ac_val in 12501.1012Schristos [\\/$]* | ?:[\\/]* ) continue;; 12511.1011Sapb NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 12521.975Sapb esac 12531.956Schristos as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12541.876Sapbdone 12551.956Schristos 12561.920Sapb# There might be people who depend on the old broken behavior: '$host' 12571.876Sapb# used to hold the argument of --host etc. 12581.920Sapb# FIXME: To remove some day. 12591.387Srpaulobuild=$build_alias 12601.913Sdrochnerhost=$host_alias 12611.1Slukemtarget=$target_alias 12621.863Schristos 12631.976Schristos# FIXME: To remove some day. 12641.863Schristosif test "x$host_alias" != x; then 12651.955Sapb if test "x$build_alias" = x; then 12661.955Sapb cross_compiling=maybe 12671.1Slukem elif test "x$build_alias" != "x$host_alias"; then 12681.578Schristos cross_compiling=yes 12691.973Schristos fi 12701.973Schristosfi 12711.365Swiz 12721.365Swizac_tool_prefix= 12731.582Sjoergtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12741.365Swiz 12751.578Schristostest "$silent" = yes && exec 6>/dev/null 12761.387Srpaulo 12771.913Sdrochner 12781.365Swizac_pwd=`pwd` && test -n "$ac_pwd" && 12791.772Schristosac_ls_di=`ls -di .` && 12801.365Swizac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12811.1Slukem as_fn_error $? "working directory cannot be determined" 12821.307Strontest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12831.655Swiz as_fn_error $? "pwd does not report name of working directory" 12841.349Sjunyoung 12851.1Slukem 12861.335Slukem# Find the source files, if location was not specified. 12871.349Sjunyoungif test -z "$srcdir"; then 12881.1Slukem ac_srcdir_defaulted=yes 12891.387Srpaulo # Try the directory containing this script, then the parent directory. 12901.913Sdrochner ac_confdir=`$as_dirname -- "$as_myself" || 12911.1Slukem$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12921.1Slukem X"$as_myself" : 'X\(//\)[^/]' \| \ 12931.60Stron X"$as_myself" : 'X\(//\)$' \| \ 12941.1Slukem X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12951.1Slukemprintf "%s\n" X"$as_myself" | 12961.305Stron sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12971.1Slukem s//\1/ 12981.1Slukem q 12991.397Schristos } 13001.937Swiz /^X\(\/\/\)[^/].*/{ 13011.1Slukem s//\1/ 13021.512Staca q 13031.512Staca } 13041.1Slukem /^X\(\/\/\)$/{ 13051.397Schristos s//\1/ 13061.387Srpaulo q 13071.913Sdrochner } 13081.1Slukem /^X\(\/\).*/{ 13091.397Schristos s//\1/ 13101.534Schristos q 13111.534Schristos } 13121.1005Schristos s/.*/./; q'` 13131.1005Schristos srcdir=$ac_confdir 13141.534Schristos if test ! -r "$srcdir/$ac_unique_file"; then 13151.961Schristos srcdir=.. 13161.894Sriz fi 13171.894Srizelse 13181.534Schristos ac_srcdir_defaulted=no 13191.534Schristosfi 13201.534Schristosif test ! -r "$srcdir/$ac_unique_file"; then 13211.913Sdrochner test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 13221.534Schristos as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 13231.961Schristosfi 13241.961Schristosac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 13251.961Schristosac_abs_confdir=`( 13261.961Schristos cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 13271.961Schristos pwd)` 13281.534Schristos# When building in place, set srcdir=. 13291.534Schristosif test "$ac_abs_confdir" = "$ac_pwd"; then 13301.964Schristos srcdir=. 13311.964Schristosfi 13321.964Schristos# Remove unnecessary trailing slashes from srcdir. 13331.964Schristos# Double slashes in file names in object file debugging info 13341.964Schristos# mess up M-x gdb in Emacs. 13351.769Smrgcase $srcdir in 13361.769Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 13371.769Smrgesac 13381.769Smrgfor ac_var in $ac_precious_vars; do 13391.769Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 13401.769Smrg eval ac_env_${ac_var}_value=\$${ac_var} 13411.769Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 13421.769Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 13431.769Smrgdone 13441.769Smrg 13451.913Sdrochner# 13461.769Smrg# Report the --help message. 13471.784Sjoerg# 13481.784Sjoergif test "$ac_init_help" = "long"; then 13491.784Sjoerg # Omit some internal or obsolete options to make the list less imposing. 13501.944Swiz # This message is too long to be a string in the A/UX 3.1 sh. 13511.784Sjoerg cat <<_ACEOF 13521.784Sjoerg'configure' configures xditview 1.0.7 to adapt to many kinds of systems. 13531.784Sjoerg 13541.784SjoergUsage: $0 [OPTION]... [VAR=VALUE]... 13551.784Sjoerg 13561.913SdrochnerTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13571.784SjoergVAR=VALUE. See below for descriptions of some of the useful variables. 13581.784Sjoerg 13591.784SjoergDefaults for the options are specified in brackets. 13601.784Sjoerg 13611.847SmrgConfiguration: 13621.847Smrg -h, --help display this help and exit 13631.847Smrg --help=short display options specific to this package 13641.847Smrg --help=recursive display the short help of all the included packages 13651.847Smrg -V, --version display version information and exit 13661.847Smrg -q, --quiet, --silent do not print 'checking ...' messages 13671.847Smrg --cache-file=FILE cache test results in FILE [disabled] 13681.847Smrg -C, --config-cache alias for '--cache-file=config.cache' 13691.847Smrg -n, --no-create do not create output files 13701.847Smrg --srcdir=DIR find the sources in DIR [configure dir or '..'] 13711.913Sdrochner 13721.847SmrgInstallation directories: 13731.847Smrg --prefix=PREFIX install architecture-independent files in PREFIX 13741.847Smrg [$ac_default_prefix] 13751.847Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13761.847Smrg [PREFIX] 13771.847Smrg 13781.847SmrgBy default, 'make install' will install all the files in 13791.847Smrg'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 13801.847Smrgan installation prefix other than '$ac_default_prefix' using '--prefix', 13811.847Smrgfor instance '--prefix=\$HOME'. 13821.847Smrg 13831.913SdrochnerFor better control, use the options below. 13841.847Smrg 13851.847SmrgFine tuning of the installation directories: 13861.847Smrg --bindir=DIR user executables [EPREFIX/bin] 13871.847Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13881.847Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 13891.847Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13901.847Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13911.847Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13921.847Smrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 13931.847Smrg --libdir=DIR object code libraries [EPREFIX/lib] 13941.847Smrg --includedir=DIR C header files [PREFIX/include] 13951.913Sdrochner --oldincludedir=DIR C header files for non-gcc [/usr/include] 13961.847Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13971.886Schristos --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 13981.980Salnsn --infodir=DIR info documentation [DATAROOTDIR/info] 13991.980Salnsn --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 14001.980Salnsn --mandir=DIR man documentation [DATAROOTDIR/man] 14011.980Salnsn --docdir=DIR documentation root [DATAROOTDIR/doc/xditview] 14021.980Salnsn --htmldir=DIR html documentation [DOCDIR] 14031.980Salnsn --dvidir=DIR dvi documentation [DOCDIR] 14041.980Salnsn --pdfdir=DIR pdf documentation [DOCDIR] 14051.980Salnsn --psdir=DIR ps documentation [DOCDIR] 14061.980Salnsn_ACEOF 14071.980Salnsn 14081.980Salnsn cat <<\_ACEOF 14091.980Salnsn 14101.980SalnsnProgram names: 14111.886Schristos --program-prefix=PREFIX prepend PREFIX to installed program names 14121.886Schristos --program-suffix=SUFFIX append SUFFIX to installed program names 14131.886Schristos --program-transform-name=PROGRAM run sed PROGRAM on installed program names 14141.886Schristos 14151.886SchristosSystem types: 14161.886Schristos --build=BUILD configure for building on BUILD [guessed] 14171.962Swiz --host=HOST cross-compile to build programs to run on HOST [BUILD] 14181.886Schristos_ACEOF 14191.962Swizfi 14201.913Sdrochner 14211.886Schristosif test -n "$ac_init_help"; then 14221.886Schristos case $ac_init_help in 14231.901Schristos short | recursive ) echo "Configuration of xditview 1.0.7:";; 14241.901Schristos esac 14251.901Schristos cat <<\_ACEOF 14261.901Schristos 14271.901SchristosOptional Features: 14281.901Schristos --disable-option-checking ignore unrecognized --enable/--with options 14291.901Schristos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 14301.901Schristos --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 14311.901Schristos --enable-silent-rules less verbose build output (undo: "make V=1") 14321.901Schristos --disable-silent-rules verbose build output (undo: "make V=0") 14331.913Sdrochner --enable-dependency-tracking 14341.901Schristos do not reject slow dependency extractors 14351.901Schristos --disable-dependency-tracking 14361.902Schristos speeds up one-time build 14371.902Schristos --disable-selective-werror 14381.902Schristos Turn off selective compiler errors. (default: 14391.902Schristos enabled) 14401.902Schristos --enable-strict-compilation 14411.902Schristos Enable all warnings from compiler and make them 14421.902Schristos errors (default: disabled) 14431.902Schristos --disable-largefile omit support for large files 14441.902Schristos --enable-year2038 support timestamps after 2038 14451.902Schristos 14461.913SdrochnerOptional Packages: 14471.902Schristos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 14481.902Schristos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 14491.997Schristos --with-appdefaultdir=<pathname> 14501.997Schristos specify directory for app-defaults files (default is 14511.997Schristos autodetected) 14521.998Schristos --with-xft Use Xft to draw text (default is YES if installed) 14531.997Schristos 14541.997SchristosSome influential environment variables: 14551.997Schristos CC C compiler command 14561.997Schristos CFLAGS C compiler flags 14571.997Schristos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14581.997Schristos nonstandard directory <lib dir> 14591.997Schristos LIBS libraries to pass to the linker, e.g. -l<library> 14601.997Schristos CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14611.997Schristos you have headers in a nonstandard directory <include dir> 14621.997Schristos PKG_CONFIG path to pkg-config utility 1463 PKG_CONFIG_PATH 1464 directories to add to pkg-config's search path 1465 PKG_CONFIG_LIBDIR 1466 path overriding pkg-config's built-in search path 1467 XDITVIEW_CFLAGS 1468 C compiler flags for XDITVIEW, overriding pkg-config 1469 XDITVIEW_LIBS 1470 linker flags for XDITVIEW, overriding pkg-config 1471 APPDEFS_CFLAGS 1472 C compiler flags for APPDEFS, overriding pkg-config 1473 APPDEFS_LIBS 1474 linker flags for APPDEFS, overriding pkg-config 1475 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config 1476 XFT_LIBS linker flags for XFT, overriding pkg-config 1477 1478Use these variables to override the choices made by 'configure' or to help 1479it to find libraries and programs with nonstandard names/locations. 1480 1481Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/-/issues>. 1482_ACEOF 1483ac_status=$? 1484fi 1485 1486if test "$ac_init_help" = "recursive"; then 1487 # If there are subdirs, report their specific --help. 1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1489 test -d "$ac_dir" || 1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1491 continue 1492 ac_builddir=. 1493 1494case "$ac_dir" in 1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1496*) 1497 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1498 # A ".." for each directory in $ac_dir_suffix. 1499 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1500 case $ac_top_builddir_sub in 1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1503 esac ;; 1504esac 1505ac_abs_top_builddir=$ac_pwd 1506ac_abs_builddir=$ac_pwd$ac_dir_suffix 1507# for backward compatibility: 1508ac_top_builddir=$ac_top_build_prefix 1509 1510case $srcdir in 1511 .) # We are building in place. 1512 ac_srcdir=. 1513 ac_top_srcdir=$ac_top_builddir_sub 1514 ac_abs_top_srcdir=$ac_pwd ;; 1515 [\\/]* | ?:[\\/]* ) # Absolute name. 1516 ac_srcdir=$srcdir$ac_dir_suffix; 1517 ac_top_srcdir=$srcdir 1518 ac_abs_top_srcdir=$srcdir ;; 1519 *) # Relative name. 1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1521 ac_top_srcdir=$ac_top_build_prefix$srcdir 1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1523esac 1524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1525 1526 cd "$ac_dir" || { ac_status=$?; continue; } 1527 # Check for configure.gnu first; this name is used for a wrapper for 1528 # Metaconfig's "Configure" on case-insensitive file systems. 1529 if test -f "$ac_srcdir/configure.gnu"; then 1530 echo && 1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1532 elif test -f "$ac_srcdir/configure"; then 1533 echo && 1534 $SHELL "$ac_srcdir/configure" --help=recursive 1535 else 1536 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1537 fi || ac_status=$? 1538 cd "$ac_pwd" || { ac_status=$?; break; } 1539 done 1540fi 1541 1542test -n "$ac_init_help" && exit $ac_status 1543if $ac_init_version; then 1544 cat <<\_ACEOF 1545xditview configure 1.0.7 1546generated by GNU Autoconf 2.72 1547 1548Copyright (C) 2023 Free Software Foundation, Inc. 1549This configure script is free software; the Free Software Foundation 1550gives unlimited permission to copy, distribute and modify it. 1551_ACEOF 1552 exit 1553fi 1554 1555## ------------------------ ## 1556## Autoconf initialization. ## 1557## ------------------------ ## 1558 1559# ac_fn_c_try_compile LINENO 1560# -------------------------- 1561# Try to compile conftest.$ac_ext, and return whether this succeeded. 1562ac_fn_c_try_compile () 1563{ 1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1565 rm -f conftest.$ac_objext conftest.beam 1566 if { { ac_try="$ac_compile" 1567case "(($ac_try" in 1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1569 *) ac_try_echo=$ac_try;; 1570esac 1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1572printf "%s\n" "$ac_try_echo"; } >&5 1573 (eval "$ac_compile") 2>conftest.err 1574 ac_status=$? 1575 if test -s conftest.err; then 1576 grep -v '^ *+' conftest.err >conftest.er1 1577 cat conftest.er1 >&5 1578 mv -f conftest.er1 conftest.err 1579 fi 1580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1581 test $ac_status = 0; } && { 1582 test -z "$ac_c_werror_flag" || 1583 test ! -s conftest.err 1584 } && test -s conftest.$ac_objext 1585then : 1586 ac_retval=0 1587else case e in #( 1588 e) printf "%s\n" "$as_me: failed program was:" >&5 1589sed 's/^/| /' conftest.$ac_ext >&5 1590 1591 ac_retval=1 ;; 1592esac 1593fi 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 as_fn_set_status $ac_retval 1596 1597} # ac_fn_c_try_compile 1598 1599# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1600# ------------------------------------------------------------------ 1601# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1602# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1603ac_fn_check_decl () 1604{ 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606 as_decl_name=`echo $2|sed 's/ *(.*//'` 1607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1608printf %s "checking whether $as_decl_name is declared... " >&6; } 1609if eval test \${$3+y} 1610then : 1611 printf %s "(cached) " >&6 1612else case e in #( 1613 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1614 eval ac_save_FLAGS=\$$6 1615 as_fn_append $6 " $5" 1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1617/* end confdefs.h. */ 1618$4 1619int 1620main (void) 1621{ 1622#ifndef $as_decl_name 1623#ifdef __cplusplus 1624 (void) $as_decl_use; 1625#else 1626 (void) $as_decl_name; 1627#endif 1628#endif 1629 1630 ; 1631 return 0; 1632} 1633_ACEOF 1634if ac_fn_c_try_compile "$LINENO" 1635then : 1636 eval "$3=yes" 1637else case e in #( 1638 e) eval "$3=no" ;; 1639esac 1640fi 1641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1642 eval $6=\$ac_save_FLAGS 1643 ;; 1644esac 1645fi 1646eval ac_res=\$$3 1647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1648printf "%s\n" "$ac_res" >&6; } 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 1651} # ac_fn_check_decl 1652 1653# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1654# ------------------------------------------------------- 1655# Tests whether HEADER exists and can be compiled using the include files in 1656# INCLUDES, setting the cache variable VAR accordingly. 1657ac_fn_c_check_header_compile () 1658{ 1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1661printf %s "checking for $2... " >&6; } 1662if eval test \${$3+y} 1663then : 1664 printf %s "(cached) " >&6 1665else case e in #( 1666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1667/* end confdefs.h. */ 1668$4 1669#include <$2> 1670_ACEOF 1671if ac_fn_c_try_compile "$LINENO" 1672then : 1673 eval "$3=yes" 1674else case e in #( 1675 e) eval "$3=no" ;; 1676esac 1677fi 1678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1679esac 1680fi 1681eval ac_res=\$$3 1682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1683printf "%s\n" "$ac_res" >&6; } 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 1686} # ac_fn_c_check_header_compile 1687 1688# ac_fn_c_try_link LINENO 1689# ----------------------- 1690# Try to link conftest.$ac_ext, and return whether this succeeded. 1691ac_fn_c_try_link () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1695 if { { ac_try="$ac_link" 1696case "(($ac_try" in 1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1698 *) ac_try_echo=$ac_try;; 1699esac 1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1701printf "%s\n" "$ac_try_echo"; } >&5 1702 (eval "$ac_link") 2>conftest.err 1703 ac_status=$? 1704 if test -s conftest.err; then 1705 grep -v '^ *+' conftest.err >conftest.er1 1706 cat conftest.er1 >&5 1707 mv -f conftest.er1 conftest.err 1708 fi 1709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; } && { 1711 test -z "$ac_c_werror_flag" || 1712 test ! -s conftest.err 1713 } && test -s conftest$ac_exeext && { 1714 test "$cross_compiling" = yes || 1715 test -x conftest$ac_exeext 1716 } 1717then : 1718 ac_retval=0 1719else case e in #( 1720 e) printf "%s\n" "$as_me: failed program was:" >&5 1721sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=1 ;; 1724esac 1725fi 1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1728 # interfere with the next link command; also delete a directory that is 1729 # left behind by Apple's compiler. We do this before executing the actions. 1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1732 as_fn_set_status $ac_retval 1733 1734} # ac_fn_c_try_link 1735 1736# ac_fn_c_check_func LINENO FUNC VAR 1737# ---------------------------------- 1738# Tests whether FUNC exists, setting the cache variable VAR accordingly 1739ac_fn_c_check_func () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1743printf %s "checking for $2... " >&6; } 1744if eval test \${$3+y} 1745then : 1746 printf %s "(cached) " >&6 1747else case e in #( 1748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1749/* end confdefs.h. */ 1750/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1752#define $2 innocuous_$2 1753 1754/* System header to define __stub macros and hopefully few prototypes, 1755 which can conflict with char $2 (void); below. */ 1756 1757#include <limits.h> 1758#undef $2 1759 1760/* Override any GCC internal prototype to avoid an error. 1761 Use char because int might match the return type of a GCC 1762 builtin and then its argument prototype would still apply. */ 1763#ifdef __cplusplus 1764extern "C" 1765#endif 1766char $2 (void); 1767/* The GNU C library defines this for functions which it implements 1768 to always fail with ENOSYS. Some functions are actually named 1769 something starting with __ and the normal name is an alias. */ 1770#if defined __stub_$2 || defined __stub___$2 1771choke me 1772#endif 1773 1774int 1775main (void) 1776{ 1777return $2 (); 1778 ; 1779 return 0; 1780} 1781_ACEOF 1782if ac_fn_c_try_link "$LINENO" 1783then : 1784 eval "$3=yes" 1785else case e in #( 1786 e) eval "$3=no" ;; 1787esac 1788fi 1789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1790 conftest$ac_exeext conftest.$ac_ext ;; 1791esac 1792fi 1793eval ac_res=\$$3 1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795printf "%s\n" "$ac_res" >&6; } 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 1798} # ac_fn_c_check_func 1799ac_configure_args_raw= 1800for ac_arg 1801do 1802 case $ac_arg in 1803 *\'*) 1804 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1805 esac 1806 as_fn_append ac_configure_args_raw " '$ac_arg'" 1807done 1808 1809case $ac_configure_args_raw in 1810 *$as_nl*) 1811 ac_safe_unquote= ;; 1812 *) 1813 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1814 ac_unsafe_a="$ac_unsafe_z#~" 1815 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1816 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1817esac 1818 1819cat >config.log <<_ACEOF 1820This file contains any messages produced by compilers while 1821running configure, to aid debugging if configure makes a mistake. 1822 1823It was created by xditview $as_me 1.0.7, which was 1824generated by GNU Autoconf 2.72. Invocation command line was 1825 1826 $ $0$ac_configure_args_raw 1827 1828_ACEOF 1829exec 5>>config.log 1830{ 1831cat <<_ASUNAME 1832## --------- ## 1833## Platform. ## 1834## --------- ## 1835 1836hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1837uname -m = `(uname -m) 2>/dev/null || echo unknown` 1838uname -r = `(uname -r) 2>/dev/null || echo unknown` 1839uname -s = `(uname -s) 2>/dev/null || echo unknown` 1840uname -v = `(uname -v) 2>/dev/null || echo unknown` 1841 1842/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1843/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1844 1845/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1846/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1847/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1848/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1849/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1850/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1851/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1852 1853_ASUNAME 1854 1855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1856for as_dir in $PATH 1857do 1858 IFS=$as_save_IFS 1859 case $as_dir in #((( 1860 '') as_dir=./ ;; 1861 */) ;; 1862 *) as_dir=$as_dir/ ;; 1863 esac 1864 printf "%s\n" "PATH: $as_dir" 1865 done 1866IFS=$as_save_IFS 1867 1868} >&5 1869 1870cat >&5 <<_ACEOF 1871 1872 1873## ----------- ## 1874## Core tests. ## 1875## ----------- ## 1876 1877_ACEOF 1878 1879 1880# Keep a trace of the command line. 1881# Strip out --no-create and --no-recursion so they do not pile up. 1882# Strip out --silent because we don't want to record it for future runs. 1883# Also quote any args containing shell meta-characters. 1884# Make two passes to allow for proper duplicate-argument suppression. 1885ac_configure_args= 1886ac_configure_args0= 1887ac_configure_args1= 1888ac_must_keep_next=false 1889for ac_pass in 1 2 1890do 1891 for ac_arg 1892 do 1893 case $ac_arg in 1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1896 | -silent | --silent | --silen | --sile | --sil) 1897 continue ;; 1898 *\'*) 1899 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1900 esac 1901 case $ac_pass in 1902 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1903 2) 1904 as_fn_append ac_configure_args1 " '$ac_arg'" 1905 if test $ac_must_keep_next = true; then 1906 ac_must_keep_next=false # Got value, back to normal. 1907 else 1908 case $ac_arg in 1909 *=* | --config-cache | -C | -disable-* | --disable-* \ 1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1912 | -with-* | --with-* | -without-* | --without-* | --x) 1913 case "$ac_configure_args0 " in 1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1915 esac 1916 ;; 1917 -* ) ac_must_keep_next=true ;; 1918 esac 1919 fi 1920 as_fn_append ac_configure_args " '$ac_arg'" 1921 ;; 1922 esac 1923 done 1924done 1925{ ac_configure_args0=; unset ac_configure_args0;} 1926{ ac_configure_args1=; unset ac_configure_args1;} 1927 1928# When interrupted or exit'd, cleanup temporary files, and complete 1929# config.log. We remove comments because anyway the quotes in there 1930# would cause problems or look ugly. 1931# WARNING: Use '\'' to represent an apostrophe within the trap. 1932# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1933trap 'exit_status=$? 1934 # Sanitize IFS. 1935 IFS=" "" $as_nl" 1936 # Save into config.log some information that might help in debugging. 1937 { 1938 echo 1939 1940 printf "%s\n" "## ---------------- ## 1941## Cache variables. ## 1942## ---------------- ##" 1943 echo 1944 # The following way of writing the cache mishandles newlines in values, 1945( 1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1947 eval ac_val=\$$ac_var 1948 case $ac_val in #( 1949 *${as_nl}*) 1950 case $ac_var in #( 1951 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1952printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1953 esac 1954 case $ac_var in #( 1955 _ | IFS | as_nl) ;; #( 1956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1957 *) { eval $ac_var=; unset $ac_var;} ;; 1958 esac ;; 1959 esac 1960 done 1961 (set) 2>&1 | 1962 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1963 *${as_nl}ac_space=\ *) 1964 sed -n \ 1965 "s/'\''/'\''\\\\'\'''\''/g; 1966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1967 ;; #( 1968 *) 1969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1970 ;; 1971 esac | 1972 sort 1973) 1974 echo 1975 1976 printf "%s\n" "## ----------------- ## 1977## Output variables. ## 1978## ----------------- ##" 1979 echo 1980 for ac_var in $ac_subst_vars 1981 do 1982 eval ac_val=\$$ac_var 1983 case $ac_val in 1984 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1985 esac 1986 printf "%s\n" "$ac_var='\''$ac_val'\''" 1987 done | sort 1988 echo 1989 1990 if test -n "$ac_subst_files"; then 1991 printf "%s\n" "## ------------------- ## 1992## File substitutions. ## 1993## ------------------- ##" 1994 echo 1995 for ac_var in $ac_subst_files 1996 do 1997 eval ac_val=\$$ac_var 1998 case $ac_val in 1999 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2000 esac 2001 printf "%s\n" "$ac_var='\''$ac_val'\''" 2002 done | sort 2003 echo 2004 fi 2005 2006 if test -s confdefs.h; then 2007 printf "%s\n" "## ----------- ## 2008## confdefs.h. ## 2009## ----------- ##" 2010 echo 2011 cat confdefs.h 2012 echo 2013 fi 2014 test "$ac_signal" != 0 && 2015 printf "%s\n" "$as_me: caught signal $ac_signal" 2016 printf "%s\n" "$as_me: exit $exit_status" 2017 } >&5 2018 rm -f core *.core core.conftest.* && 2019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2020 exit $exit_status 2021' 0 2022for ac_signal in 1 2 13 15; do 2023 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2024done 2025ac_signal=0 2026 2027# confdefs.h avoids OS command line length limits that DEFS can exceed. 2028rm -f -r conftest* confdefs.h 2029 2030printf "%s\n" "/* confdefs.h */" > confdefs.h 2031 2032# Predefined preprocessor variables. 2033 2034printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2035 2036printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2037 2038printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2039 2040printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2041 2042printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2043 2044printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2045 2046 2047# Let the site file select an alternate cache file if it wants to. 2048# Prefer an explicitly selected file to automatically selected ones. 2049if test -n "$CONFIG_SITE"; then 2050 ac_site_files="$CONFIG_SITE" 2051elif test "x$prefix" != xNONE; then 2052 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2053else 2054 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2055fi 2056 2057for ac_site_file in $ac_site_files 2058do 2059 case $ac_site_file in #( 2060 */*) : 2061 ;; #( 2062 *) : 2063 ac_site_file=./$ac_site_file ;; 2064esac 2065 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2067printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2068 sed 's/^/| /' "$ac_site_file" >&5 2069 . "$ac_site_file" \ 2070 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2071printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2072as_fn_error $? "failed to load site script $ac_site_file 2073See 'config.log' for more details" "$LINENO" 5; } 2074 fi 2075done 2076 2077if test -r "$cache_file"; then 2078 # Some versions of bash will fail to source /dev/null (special files 2079 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2080 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2082printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2083 case $cache_file in 2084 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2085 *) . "./$cache_file";; 2086 esac 2087 fi 2088else 2089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2090printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2091 >$cache_file 2092fi 2093 2094# Test code for whether the C compiler supports C89 (global declarations) 2095ac_c_conftest_c89_globals=' 2096/* Does the compiler advertise C89 conformance? 2097 Do not test the value of __STDC__, because some compilers set it to 0 2098 while being otherwise adequately conformant. */ 2099#if !defined __STDC__ 2100# error "Compiler does not advertise C89 conformance" 2101#endif 2102 2103#include <stddef.h> 2104#include <stdarg.h> 2105struct stat; 2106/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2107struct buf { int x; }; 2108struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2109static char *e (char **p, int i) 2110{ 2111 return p[i]; 2112} 2113static char *f (char * (*g) (char **, int), char **p, ...) 2114{ 2115 char *s; 2116 va_list v; 2117 va_start (v,p); 2118 s = g (p, va_arg (v,int)); 2119 va_end (v); 2120 return s; 2121} 2122 2123/* C89 style stringification. */ 2124#define noexpand_stringify(a) #a 2125const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2126 2127/* C89 style token pasting. Exercises some of the corner cases that 2128 e.g. old MSVC gets wrong, but not very hard. */ 2129#define noexpand_concat(a,b) a##b 2130#define expand_concat(a,b) noexpand_concat(a,b) 2131extern int vA; 2132extern int vbee; 2133#define aye A 2134#define bee B 2135int *pvA = &expand_concat(v,aye); 2136int *pvbee = &noexpand_concat(v,bee); 2137 2138/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2139 function prototypes and stuff, but not \xHH hex character constants. 2140 These do not provoke an error unfortunately, instead are silently treated 2141 as an "x". The following induces an error, until -std is added to get 2142 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2143 array size at least. It is necessary to write \x00 == 0 to get something 2144 that is true only with -std. */ 2145int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2146 2147/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2148 inside strings and character constants. */ 2149#define FOO(x) '\''x'\'' 2150int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2151 2152int test (int i, double x); 2153struct s1 {int (*f) (int a);}; 2154struct s2 {int (*f) (double a);}; 2155int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2156 int, int);' 2157 2158# Test code for whether the C compiler supports C89 (body of main). 2159ac_c_conftest_c89_main=' 2160ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2161' 2162 2163# Test code for whether the C compiler supports C99 (global declarations) 2164ac_c_conftest_c99_globals=' 2165/* Does the compiler advertise C99 conformance? */ 2166#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2167# error "Compiler does not advertise C99 conformance" 2168#endif 2169 2170// See if C++-style comments work. 2171 2172#include <stdbool.h> 2173extern int puts (const char *); 2174extern int printf (const char *, ...); 2175extern int dprintf (int, const char *, ...); 2176extern void *malloc (size_t); 2177extern void free (void *); 2178 2179// Check varargs macros. These examples are taken from C99 6.10.3.5. 2180// dprintf is used instead of fprintf to avoid needing to declare 2181// FILE and stderr. 2182#define debug(...) dprintf (2, __VA_ARGS__) 2183#define showlist(...) puts (#__VA_ARGS__) 2184#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2185static void 2186test_varargs_macros (void) 2187{ 2188 int x = 1234; 2189 int y = 5678; 2190 debug ("Flag"); 2191 debug ("X = %d\n", x); 2192 showlist (The first, second, and third items.); 2193 report (x>y, "x is %d but y is %d", x, y); 2194} 2195 2196// Check long long types. 2197#define BIG64 18446744073709551615ull 2198#define BIG32 4294967295ul 2199#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2200#if !BIG_OK 2201 #error "your preprocessor is broken" 2202#endif 2203#if BIG_OK 2204#else 2205 #error "your preprocessor is broken" 2206#endif 2207static long long int bignum = -9223372036854775807LL; 2208static unsigned long long int ubignum = BIG64; 2209 2210struct incomplete_array 2211{ 2212 int datasize; 2213 double data[]; 2214}; 2215 2216struct named_init { 2217 int number; 2218 const wchar_t *name; 2219 double average; 2220}; 2221 2222typedef const char *ccp; 2223 2224static inline int 2225test_restrict (ccp restrict text) 2226{ 2227 // Iterate through items via the restricted pointer. 2228 // Also check for declarations in for loops. 2229 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2230 continue; 2231 return 0; 2232} 2233 2234// Check varargs and va_copy. 2235static bool 2236test_varargs (const char *format, ...) 2237{ 2238 va_list args; 2239 va_start (args, format); 2240 va_list args_copy; 2241 va_copy (args_copy, args); 2242 2243 const char *str = ""; 2244 int number = 0; 2245 float fnumber = 0; 2246 2247 while (*format) 2248 { 2249 switch (*format++) 2250 { 2251 case '\''s'\'': // string 2252 str = va_arg (args_copy, const char *); 2253 break; 2254 case '\''d'\'': // int 2255 number = va_arg (args_copy, int); 2256 break; 2257 case '\''f'\'': // float 2258 fnumber = va_arg (args_copy, double); 2259 break; 2260 default: 2261 break; 2262 } 2263 } 2264 va_end (args_copy); 2265 va_end (args); 2266 2267 return *str && number && fnumber; 2268} 2269' 2270 2271# Test code for whether the C compiler supports C99 (body of main). 2272ac_c_conftest_c99_main=' 2273 // Check bool. 2274 _Bool success = false; 2275 success |= (argc != 0); 2276 2277 // Check restrict. 2278 if (test_restrict ("String literal") == 0) 2279 success = true; 2280 char *restrict newvar = "Another string"; 2281 2282 // Check varargs. 2283 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2284 test_varargs_macros (); 2285 2286 // Check flexible array members. 2287 struct incomplete_array *ia = 2288 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2289 ia->datasize = 10; 2290 for (int i = 0; i < ia->datasize; ++i) 2291 ia->data[i] = i * 1.234; 2292 // Work around memory leak warnings. 2293 free (ia); 2294 2295 // Check named initializers. 2296 struct named_init ni = { 2297 .number = 34, 2298 .name = L"Test wide string", 2299 .average = 543.34343, 2300 }; 2301 2302 ni.number = 58; 2303 2304 int dynamic_array[ni.number]; 2305 dynamic_array[0] = argv[0][0]; 2306 dynamic_array[ni.number - 1] = 543; 2307 2308 // work around unused variable warnings 2309 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2310 || dynamic_array[ni.number - 1] != 543); 2311' 2312 2313# Test code for whether the C compiler supports C11 (global declarations) 2314ac_c_conftest_c11_globals=' 2315/* Does the compiler advertise C11 conformance? */ 2316#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2317# error "Compiler does not advertise C11 conformance" 2318#endif 2319 2320// Check _Alignas. 2321char _Alignas (double) aligned_as_double; 2322char _Alignas (0) no_special_alignment; 2323extern char aligned_as_int; 2324char _Alignas (0) _Alignas (int) aligned_as_int; 2325 2326// Check _Alignof. 2327enum 2328{ 2329 int_alignment = _Alignof (int), 2330 int_array_alignment = _Alignof (int[100]), 2331 char_alignment = _Alignof (char) 2332}; 2333_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2334 2335// Check _Noreturn. 2336int _Noreturn does_not_return (void) { for (;;) continue; } 2337 2338// Check _Static_assert. 2339struct test_static_assert 2340{ 2341 int x; 2342 _Static_assert (sizeof (int) <= sizeof (long int), 2343 "_Static_assert does not work in struct"); 2344 long int y; 2345}; 2346 2347// Check UTF-8 literals. 2348#define u8 syntax error! 2349char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2350 2351// Check duplicate typedefs. 2352typedef long *long_ptr; 2353typedef long int *long_ptr; 2354typedef long_ptr long_ptr; 2355 2356// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2357struct anonymous 2358{ 2359 union { 2360 struct { int i; int j; }; 2361 struct { int k; long int l; } w; 2362 }; 2363 int m; 2364} v1; 2365' 2366 2367# Test code for whether the C compiler supports C11 (body of main). 2368ac_c_conftest_c11_main=' 2369 _Static_assert ((offsetof (struct anonymous, i) 2370 == offsetof (struct anonymous, w.k)), 2371 "Anonymous union alignment botch"); 2372 v1.i = 2; 2373 v1.w.k = 5; 2374 ok |= v1.i != 5; 2375' 2376 2377# Test code for whether the C compiler supports C11 (complete). 2378ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2379${ac_c_conftest_c99_globals} 2380${ac_c_conftest_c11_globals} 2381 2382int 2383main (int argc, char **argv) 2384{ 2385 int ok = 0; 2386 ${ac_c_conftest_c89_main} 2387 ${ac_c_conftest_c99_main} 2388 ${ac_c_conftest_c11_main} 2389 return ok; 2390} 2391" 2392 2393# Test code for whether the C compiler supports C99 (complete). 2394ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2395${ac_c_conftest_c99_globals} 2396 2397int 2398main (int argc, char **argv) 2399{ 2400 int ok = 0; 2401 ${ac_c_conftest_c89_main} 2402 ${ac_c_conftest_c99_main} 2403 return ok; 2404} 2405" 2406 2407# Test code for whether the C compiler supports C89 (complete). 2408ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2409 2410int 2411main (int argc, char **argv) 2412{ 2413 int ok = 0; 2414 ${ac_c_conftest_c89_main} 2415 return ok; 2416} 2417" 2418 2419as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2420as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2421as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2422as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2423as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2424as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2425as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2426as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2427as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2428 2429# Auxiliary files required by this configure script. 2430ac_aux_files="config.guess config.sub compile missing install-sh" 2431 2432# Locations in which to look for auxiliary files. 2433ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2434 2435# Search for a directory containing all of the required auxiliary files, 2436# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2437# If we don't find one directory that contains all the files we need, 2438# we report the set of missing files from the *first* directory in 2439# $ac_aux_dir_candidates and give up. 2440ac_missing_aux_files="" 2441ac_first_candidate=: 2442printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2444as_found=false 2445for as_dir in $ac_aux_dir_candidates 2446do 2447 IFS=$as_save_IFS 2448 case $as_dir in #((( 2449 '') as_dir=./ ;; 2450 */) ;; 2451 *) as_dir=$as_dir/ ;; 2452 esac 2453 as_found=: 2454 2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2456 ac_aux_dir_found=yes 2457 ac_install_sh= 2458 for ac_aux in $ac_aux_files 2459 do 2460 # As a special case, if "install-sh" is required, that requirement 2461 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2462 # and $ac_install_sh is set appropriately for whichever one is found. 2463 if test x"$ac_aux" = x"install-sh" 2464 then 2465 if test -f "${as_dir}install-sh"; then 2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2467 ac_install_sh="${as_dir}install-sh -c" 2468 elif test -f "${as_dir}install.sh"; then 2469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2470 ac_install_sh="${as_dir}install.sh -c" 2471 elif test -f "${as_dir}shtool"; then 2472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2473 ac_install_sh="${as_dir}shtool install -c" 2474 else 2475 ac_aux_dir_found=no 2476 if $ac_first_candidate; then 2477 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2478 else 2479 break 2480 fi 2481 fi 2482 else 2483 if test -f "${as_dir}${ac_aux}"; then 2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2485 else 2486 ac_aux_dir_found=no 2487 if $ac_first_candidate; then 2488 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2489 else 2490 break 2491 fi 2492 fi 2493 fi 2494 done 2495 if test "$ac_aux_dir_found" = yes; then 2496 ac_aux_dir="$as_dir" 2497 break 2498 fi 2499 ac_first_candidate=false 2500 2501 as_found=false 2502done 2503IFS=$as_save_IFS 2504if $as_found 2505then : 2506 2507else case e in #( 2508 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2509esac 2510fi 2511 2512 2513# These three variables are undocumented and unsupported, 2514# and are intended to be withdrawn in a future Autoconf release. 2515# They can cause serious problems if a builder's source tree is in a directory 2516# whose full name contains unusual characters. 2517if test -f "${ac_aux_dir}config.guess"; then 2518 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2519fi 2520if test -f "${ac_aux_dir}config.sub"; then 2521 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2522fi 2523if test -f "$ac_aux_dir/configure"; then 2524 ac_configure="$SHELL ${ac_aux_dir}configure" 2525fi 2526 2527# Check that the precious variables saved in the cache have kept the same 2528# value. 2529ac_cache_corrupted=false 2530for ac_var in $ac_precious_vars; do 2531 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2532 eval ac_new_set=\$ac_env_${ac_var}_set 2533 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2534 eval ac_new_val=\$ac_env_${ac_var}_value 2535 case $ac_old_set,$ac_new_set in 2536 set,) 2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2538printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2539 ac_cache_corrupted=: ;; 2540 ,set) 2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2542printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2543 ac_cache_corrupted=: ;; 2544 ,);; 2545 *) 2546 if test "x$ac_old_val" != "x$ac_new_val"; then 2547 # differences in whitespace do not lead to failure. 2548 ac_old_val_w=`echo x $ac_old_val` 2549 ac_new_val_w=`echo x $ac_new_val` 2550 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2552printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2553 ac_cache_corrupted=: 2554 else 2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2556printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2557 eval $ac_var=\$ac_old_val 2558 fi 2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2560printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2562printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2563 fi;; 2564 esac 2565 # Pass precious variables to config.status. 2566 if test "$ac_new_set" = set; then 2567 case $ac_new_val in 2568 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2569 *) ac_arg=$ac_var=$ac_new_val ;; 2570 esac 2571 case " $ac_configure_args " in 2572 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2573 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2574 esac 2575 fi 2576done 2577if $ac_cache_corrupted; then 2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2579printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2581printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2582 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2583 and start over" "$LINENO" 5 2584fi 2585## -------------------- ## 2586## Main body of script. ## 2587## -------------------- ## 2588 2589ac_ext=c 2590ac_cpp='$CPP $CPPFLAGS' 2591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2593ac_compiler_gnu=$ac_cv_c_compiler_gnu 2594 2595 2596 2597ac_config_headers="$ac_config_headers config.h" 2598 2599 2600# Initialize Automake 2601am__api_version='1.16' 2602 2603 2604 2605 # Find a good install program. We prefer a C program (faster), 2606# so one script is as good as another. But avoid the broken or 2607# incompatible versions: 2608# SysV /etc/install, /usr/sbin/install 2609# SunOS /usr/etc/install 2610# IRIX /sbin/install 2611# AIX /bin/install 2612# AmigaOS /C/install, which installs bootblocks on floppy discs 2613# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2614# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2615# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2616# OS/2's system install, which has a completely different semantic 2617# ./install, which can be erroneously created by make from ./install.sh. 2618# Reject install programs that cannot install multiple files. 2619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2620printf %s "checking for a BSD-compatible install... " >&6; } 2621if test -z "$INSTALL"; then 2622if test ${ac_cv_path_install+y} 2623then : 2624 printf %s "(cached) " >&6 2625else case e in #( 2626 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2627for as_dir in $PATH 2628do 2629 IFS=$as_save_IFS 2630 case $as_dir in #((( 2631 '') as_dir=./ ;; 2632 */) ;; 2633 *) as_dir=$as_dir/ ;; 2634 esac 2635 # Account for fact that we put trailing slashes in our PATH walk. 2636case $as_dir in #(( 2637 ./ | /[cC]/* | \ 2638 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2639 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2640 /usr/ucb/* ) ;; 2641 *) 2642 # OSF1 and SCO ODT 3.0 have their own names for install. 2643 # Don't use installbsd from OSF since it installs stuff as root 2644 # by default. 2645 for ac_prog in ginstall scoinst install; do 2646 for ac_exec_ext in '' $ac_executable_extensions; do 2647 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2648 if test $ac_prog = install && 2649 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2650 # AIX install. It has an incompatible calling convention. 2651 : 2652 elif test $ac_prog = install && 2653 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2654 # program-specific install script used by HP pwplus--don't use. 2655 : 2656 else 2657 rm -rf conftest.one conftest.two conftest.dir 2658 echo one > conftest.one 2659 echo two > conftest.two 2660 mkdir conftest.dir 2661 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2662 test -s conftest.one && test -s conftest.two && 2663 test -s conftest.dir/conftest.one && 2664 test -s conftest.dir/conftest.two 2665 then 2666 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2667 break 3 2668 fi 2669 fi 2670 fi 2671 done 2672 done 2673 ;; 2674esac 2675 2676 done 2677IFS=$as_save_IFS 2678 2679rm -rf conftest.one conftest.two conftest.dir 2680 ;; 2681esac 2682fi 2683 if test ${ac_cv_path_install+y}; then 2684 INSTALL=$ac_cv_path_install 2685 else 2686 # As a last resort, use the slow shell script. Don't cache a 2687 # value for INSTALL within a source directory, because that will 2688 # break other packages using the cache if that directory is 2689 # removed, or if the value is a relative name. 2690 INSTALL=$ac_install_sh 2691 fi 2692fi 2693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2694printf "%s\n" "$INSTALL" >&6; } 2695 2696# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2697# It thinks the first close brace ends the variable substitution. 2698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2699 2700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2701 2702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2703 2704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2705printf %s "checking whether build environment is sane... " >&6; } 2706# Reject unsafe characters in $srcdir or the absolute working directory 2707# name. Accept space and tab only in the latter. 2708am_lf=' 2709' 2710case `pwd` in 2711 *[\\\"\#\$\&\'\`$am_lf]*) 2712 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2713esac 2714case $srcdir in 2715 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2716 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2717esac 2718 2719# Do 'set' in a subshell so we don't clobber the current shell's 2720# arguments. Must try -L first in case configure is actually a 2721# symlink; some systems play weird games with the mod time of symlinks 2722# (eg FreeBSD returns the mod time of the symlink's containing 2723# directory). 2724if ( 2725 am_has_slept=no 2726 for am_try in 1 2; do 2727 echo "timestamp, slept: $am_has_slept" > conftest.file 2728 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2729 if test "$*" = "X"; then 2730 # -L didn't work. 2731 set X `ls -t "$srcdir/configure" conftest.file` 2732 fi 2733 if test "$*" != "X $srcdir/configure conftest.file" \ 2734 && test "$*" != "X conftest.file $srcdir/configure"; then 2735 2736 # If neither matched, then we have a broken ls. This can happen 2737 # if, for instance, CONFIG_SHELL is bash and it inherits a 2738 # broken ls alias from the environment. This has actually 2739 # happened. Such a system could not be considered "sane". 2740 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2741 alias in your environment" "$LINENO" 5 2742 fi 2743 if test "$2" = conftest.file || test $am_try -eq 2; then 2744 break 2745 fi 2746 # Just in case. 2747 sleep 1 2748 am_has_slept=yes 2749 done 2750 test "$2" = conftest.file 2751 ) 2752then 2753 # Ok. 2754 : 2755else 2756 as_fn_error $? "newly created file is older than distributed files! 2757Check your system clock" "$LINENO" 5 2758fi 2759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2760printf "%s\n" "yes" >&6; } 2761# If we didn't sleep, we still need to ensure time stamps of config.status and 2762# generated files are strictly newer. 2763am_sleep_pid= 2764if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2765 ( sleep 1 ) & 2766 am_sleep_pid=$! 2767fi 2768 2769rm -f conftest.file 2770 2771test "$program_prefix" != NONE && 2772 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2773# Use a double $ so make ignores it. 2774test "$program_suffix" != NONE && 2775 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2776# Double any \ or $. 2777# By default was 's,x,x', remove it if useless. 2778ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2779program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2780 2781 2782# Expand $ac_aux_dir to an absolute path. 2783am_aux_dir=`cd "$ac_aux_dir" && pwd` 2784 2785 2786 if test x"${MISSING+set}" != xset; then 2787 MISSING="\${SHELL} '$am_aux_dir/missing'" 2788fi 2789# Use eval to expand $SHELL 2790if eval "$MISSING --is-lightweight"; then 2791 am_missing_run="$MISSING " 2792else 2793 am_missing_run= 2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2795printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2796fi 2797 2798if test x"${install_sh+set}" != xset; then 2799 case $am_aux_dir in 2800 *\ * | *\ *) 2801 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2802 *) 2803 install_sh="\${SHELL} $am_aux_dir/install-sh" 2804 esac 2805fi 2806 2807# Installed binaries are usually stripped using 'strip' when the user 2808# run "make install-strip". However 'strip' might not be the right 2809# tool to use in cross-compilation environments, therefore Automake 2810# will honor the 'STRIP' environment variable to overrule this program. 2811if test "$cross_compiling" != no; then 2812 if test -n "$ac_tool_prefix"; then 2813 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2814set dummy ${ac_tool_prefix}strip; ac_word=$2 2815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2816printf %s "checking for $ac_word... " >&6; } 2817if test ${ac_cv_prog_STRIP+y} 2818then : 2819 printf %s "(cached) " >&6 2820else case e in #( 2821 e) if test -n "$STRIP"; then 2822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2823else 2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2825for as_dir in $PATH 2826do 2827 IFS=$as_save_IFS 2828 case $as_dir in #((( 2829 '') as_dir=./ ;; 2830 */) ;; 2831 *) as_dir=$as_dir/ ;; 2832 esac 2833 for ac_exec_ext in '' $ac_executable_extensions; do 2834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2835 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2837 break 2 2838 fi 2839done 2840 done 2841IFS=$as_save_IFS 2842 2843fi ;; 2844esac 2845fi 2846STRIP=$ac_cv_prog_STRIP 2847if test -n "$STRIP"; then 2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2849printf "%s\n" "$STRIP" >&6; } 2850else 2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2852printf "%s\n" "no" >&6; } 2853fi 2854 2855 2856fi 2857if test -z "$ac_cv_prog_STRIP"; then 2858 ac_ct_STRIP=$STRIP 2859 # Extract the first word of "strip", so it can be a program name with args. 2860set dummy strip; ac_word=$2 2861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2862printf %s "checking for $ac_word... " >&6; } 2863if test ${ac_cv_prog_ac_ct_STRIP+y} 2864then : 2865 printf %s "(cached) " >&6 2866else case e in #( 2867 e) if test -n "$ac_ct_STRIP"; then 2868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2869else 2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2871for as_dir in $PATH 2872do 2873 IFS=$as_save_IFS 2874 case $as_dir in #((( 2875 '') as_dir=./ ;; 2876 */) ;; 2877 *) as_dir=$as_dir/ ;; 2878 esac 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2881 ac_cv_prog_ac_ct_STRIP="strip" 2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885done 2886 done 2887IFS=$as_save_IFS 2888 2889fi ;; 2890esac 2891fi 2892ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2893if test -n "$ac_ct_STRIP"; then 2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2895printf "%s\n" "$ac_ct_STRIP" >&6; } 2896else 2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2898printf "%s\n" "no" >&6; } 2899fi 2900 2901 if test "x$ac_ct_STRIP" = x; then 2902 STRIP=":" 2903 else 2904 case $cross_compiling:$ac_tool_warned in 2905yes:) 2906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2907printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2908ac_tool_warned=yes ;; 2909esac 2910 STRIP=$ac_ct_STRIP 2911 fi 2912else 2913 STRIP="$ac_cv_prog_STRIP" 2914fi 2915 2916fi 2917INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2918 2919 2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2921printf %s "checking for a race-free mkdir -p... " >&6; } 2922if test -z "$MKDIR_P"; then 2923 if test ${ac_cv_path_mkdir+y} 2924then : 2925 printf %s "(cached) " >&6 2926else case e in #( 2927 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2928for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2929do 2930 IFS=$as_save_IFS 2931 case $as_dir in #((( 2932 '') as_dir=./ ;; 2933 */) ;; 2934 *) as_dir=$as_dir/ ;; 2935 esac 2936 for ac_prog in mkdir gmkdir; do 2937 for ac_exec_ext in '' $ac_executable_extensions; do 2938 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2939 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2940 'mkdir ('*'coreutils) '* | \ 2941 *'BusyBox '* | \ 2942 'mkdir (fileutils) '4.1*) 2943 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2944 break 3;; 2945 esac 2946 done 2947 done 2948 done 2949IFS=$as_save_IFS 2950 ;; 2951esac 2952fi 2953 2954 test -d ./--version && rmdir ./--version 2955 if test ${ac_cv_path_mkdir+y}; then 2956 MKDIR_P="$ac_cv_path_mkdir -p" 2957 else 2958 # As a last resort, use plain mkdir -p, 2959 # in the hope it doesn't have the bugs of ancient mkdir. 2960 MKDIR_P='mkdir -p' 2961 fi 2962fi 2963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2964printf "%s\n" "$MKDIR_P" >&6; } 2965 2966for ac_prog in gawk mawk nawk awk 2967do 2968 # Extract the first word of "$ac_prog", so it can be a program name with args. 2969set dummy $ac_prog; ac_word=$2 2970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2971printf %s "checking for $ac_word... " >&6; } 2972if test ${ac_cv_prog_AWK+y} 2973then : 2974 printf %s "(cached) " >&6 2975else case e in #( 2976 e) if test -n "$AWK"; then 2977 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2978else 2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2980for as_dir in $PATH 2981do 2982 IFS=$as_save_IFS 2983 case $as_dir in #((( 2984 '') as_dir=./ ;; 2985 */) ;; 2986 *) as_dir=$as_dir/ ;; 2987 esac 2988 for ac_exec_ext in '' $ac_executable_extensions; do 2989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2990 ac_cv_prog_AWK="$ac_prog" 2991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2992 break 2 2993 fi 2994done 2995 done 2996IFS=$as_save_IFS 2997 2998fi ;; 2999esac 3000fi 3001AWK=$ac_cv_prog_AWK 3002if test -n "$AWK"; then 3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3004printf "%s\n" "$AWK" >&6; } 3005else 3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3007printf "%s\n" "no" >&6; } 3008fi 3009 3010 3011 test -n "$AWK" && break 3012done 3013 3014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3015printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3016set x ${MAKE-make} 3017ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3018if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3019then : 3020 printf %s "(cached) " >&6 3021else case e in #( 3022 e) cat >conftest.make <<\_ACEOF 3023SHELL = /bin/sh 3024all: 3025 @echo '@@@%%%=$(MAKE)=@@@%%%' 3026_ACEOF 3027# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3028case `${MAKE-make} -f conftest.make 2>/dev/null` in 3029 *@@@%%%=?*=@@@%%%*) 3030 eval ac_cv_prog_make_${ac_make}_set=yes;; 3031 *) 3032 eval ac_cv_prog_make_${ac_make}_set=no;; 3033esac 3034rm -f conftest.make ;; 3035esac 3036fi 3037if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3039printf "%s\n" "yes" >&6; } 3040 SET_MAKE= 3041else 3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3043printf "%s\n" "no" >&6; } 3044 SET_MAKE="MAKE=${MAKE-make}" 3045fi 3046 3047rm -rf .tst 2>/dev/null 3048mkdir .tst 2>/dev/null 3049if test -d .tst; then 3050 am__leading_dot=. 3051else 3052 am__leading_dot=_ 3053fi 3054rmdir .tst 2>/dev/null 3055 3056# Check whether --enable-silent-rules was given. 3057if test ${enable_silent_rules+y} 3058then : 3059 enableval=$enable_silent_rules; 3060fi 3061 3062case $enable_silent_rules in # ((( 3063 yes) AM_DEFAULT_VERBOSITY=0;; 3064 no) AM_DEFAULT_VERBOSITY=1;; 3065 *) AM_DEFAULT_VERBOSITY=1;; 3066esac 3067am_make=${MAKE-make} 3068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3069printf %s "checking whether $am_make supports nested variables... " >&6; } 3070if test ${am_cv_make_support_nested_variables+y} 3071then : 3072 printf %s "(cached) " >&6 3073else case e in #( 3074 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3075BAR0=false 3076BAR1=true 3077V=1 3078am__doit: 3079 @$(TRUE) 3080.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3081 am_cv_make_support_nested_variables=yes 3082else 3083 am_cv_make_support_nested_variables=no 3084fi ;; 3085esac 3086fi 3087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3088printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3089if test $am_cv_make_support_nested_variables = yes; then 3090 AM_V='$(V)' 3091 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3092else 3093 AM_V=$AM_DEFAULT_VERBOSITY 3094 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3095fi 3096AM_BACKSLASH='\' 3097 3098if test "`cd $srcdir && pwd`" != "`pwd`"; then 3099 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3100 # is not polluted with repeated "-I." 3101 am__isrc=' -I$(srcdir)' 3102 # test to see if srcdir already configured 3103 if test -f $srcdir/config.status; then 3104 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3105 fi 3106fi 3107 3108# test whether we have cygpath 3109if test -z "$CYGPATH_W"; then 3110 if (cygpath --version) >/dev/null 2>/dev/null; then 3111 CYGPATH_W='cygpath -w' 3112 else 3113 CYGPATH_W=echo 3114 fi 3115fi 3116 3117 3118# Define the identity of the package. 3119 PACKAGE='xditview' 3120 VERSION='1.0.7' 3121 3122 3123printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3124 3125 3126printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3127 3128# Some tools Automake needs. 3129 3130ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3131 3132 3133AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3134 3135 3136AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3137 3138 3139AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3140 3141 3142MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3143 3144# For better backward compatibility. To be removed once Automake 1.9.x 3145# dies out for good. For more background, see: 3146# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3147# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3148mkdir_p='$(MKDIR_P)' 3149 3150# We need awk for the "check" target (and possibly the TAP driver). The 3151# system "awk" is bad on some platforms. 3152# Always define AMTAR for backward compatibility. Yes, it's still used 3153# in the wild :-( We should find a proper way to deprecate it ... 3154AMTAR='$${TAR-tar}' 3155 3156 3157# We'll loop over all known methods to create a tar archive until one works. 3158_am_tools='gnutar pax cpio none' 3159 3160am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3161 3162 3163 3164 3165 3166# Variables for tags utilities; see am/tags.am 3167if test -z "$CTAGS"; then 3168 CTAGS=ctags 3169fi 3170 3171if test -z "$ETAGS"; then 3172 ETAGS=etags 3173fi 3174 3175if test -z "$CSCOPE"; then 3176 CSCOPE=cscope 3177fi 3178 3179 3180 3181# POSIX will say in a future version that running "rm -f" with no argument 3182# is OK; and we want to be able to make that assumption in our Makefile 3183# recipes. So use an aggressive probe to check that the usage we want is 3184# actually supported "in the wild" to an acceptable degree. 3185# See automake bug#10828. 3186# To make any issue more visible, cause the running configure to be aborted 3187# by default if the 'rm' program in use doesn't match our expectations; the 3188# user can still override this though. 3189if rm -f && rm -fr && rm -rf; then : OK; else 3190 cat >&2 <<'END' 3191Oops! 3192 3193Your 'rm' program seems unable to run without file operands specified 3194on the command line, even when the '-f' option is present. This is contrary 3195to the behaviour of most rm programs out there, and not conforming with 3196the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3197 3198Please tell bug-automake@gnu.org about your system, including the value 3199of your $PATH and any error possibly output before this message. This 3200can help us improve future automake versions. 3201 3202END 3203 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3204 echo 'Configuration will proceed anyway, since you have set the' >&2 3205 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3206 echo >&2 3207 else 3208 cat >&2 <<'END' 3209Aborting the configuration process, to ensure you take notice of the issue. 3210 3211You can download and install GNU coreutils to get an 'rm' implementation 3212that behaves properly: <https://www.gnu.org/software/coreutils/>. 3213 3214If you want to complete the configuration process using your problematic 3215'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3216to "yes", and re-run configure. 3217 3218END 3219 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3220 fi 3221fi 3222 3223 3224# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245DEPDIR="${am__leading_dot}deps" 3246 3247ac_config_commands="$ac_config_commands depfiles" 3248 3249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3250printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3251cat > confinc.mk << 'END' 3252am__doit: 3253 @echo this is the am__doit target >confinc.out 3254.PHONY: am__doit 3255END 3256am__include="#" 3257am__quote= 3258# BSD make does it like this. 3259echo '.include "confinc.mk" # ignored' > confmf.BSD 3260# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3261echo 'include confinc.mk # ignored' > confmf.GNU 3262_am_result=no 3263for s in GNU BSD; do 3264 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3265 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3266 ac_status=$? 3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3268 (exit $ac_status); } 3269 case $?:`cat confinc.out 2>/dev/null` in #( 3270 '0:this is the am__doit target') : 3271 case $s in #( 3272 BSD) : 3273 am__include='.include' am__quote='"' ;; #( 3274 *) : 3275 am__include='include' am__quote='' ;; 3276esac ;; #( 3277 *) : 3278 ;; 3279esac 3280 if test "$am__include" != "#"; then 3281 _am_result="yes ($s style)" 3282 break 3283 fi 3284done 3285rm -f confinc.* confmf.* 3286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3287printf "%s\n" "${_am_result}" >&6; } 3288 3289# Check whether --enable-dependency-tracking was given. 3290if test ${enable_dependency_tracking+y} 3291then : 3292 enableval=$enable_dependency_tracking; 3293fi 3294 3295if test "x$enable_dependency_tracking" != xno; then 3296 am_depcomp="$ac_aux_dir/depcomp" 3297 AMDEPBACKSLASH='\' 3298 am__nodep='_no' 3299fi 3300 if test "x$enable_dependency_tracking" != xno; then 3301 AMDEP_TRUE= 3302 AMDEP_FALSE='#' 3303else 3304 AMDEP_TRUE='#' 3305 AMDEP_FALSE= 3306fi 3307 3308 3309ac_ext=c 3310ac_cpp='$CPP $CPPFLAGS' 3311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3313ac_compiler_gnu=$ac_cv_c_compiler_gnu 3314if test -n "$ac_tool_prefix"; then 3315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3316set dummy ${ac_tool_prefix}gcc; ac_word=$2 3317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3318printf %s "checking for $ac_word... " >&6; } 3319if test ${ac_cv_prog_CC+y} 3320then : 3321 printf %s "(cached) " >&6 3322else case e in #( 3323 e) if test -n "$CC"; then 3324 ac_cv_prog_CC="$CC" # Let the user override the test. 3325else 3326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3327for as_dir in $PATH 3328do 3329 IFS=$as_save_IFS 3330 case $as_dir in #((( 3331 '') as_dir=./ ;; 3332 */) ;; 3333 *) as_dir=$as_dir/ ;; 3334 esac 3335 for ac_exec_ext in '' $ac_executable_extensions; do 3336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3337 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3339 break 2 3340 fi 3341done 3342 done 3343IFS=$as_save_IFS 3344 3345fi ;; 3346esac 3347fi 3348CC=$ac_cv_prog_CC 3349if test -n "$CC"; then 3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3351printf "%s\n" "$CC" >&6; } 3352else 3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3354printf "%s\n" "no" >&6; } 3355fi 3356 3357 3358fi 3359if test -z "$ac_cv_prog_CC"; then 3360 ac_ct_CC=$CC 3361 # Extract the first word of "gcc", so it can be a program name with args. 3362set dummy gcc; ac_word=$2 3363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3364printf %s "checking for $ac_word... " >&6; } 3365if test ${ac_cv_prog_ac_ct_CC+y} 3366then : 3367 printf %s "(cached) " >&6 3368else case e in #( 3369 e) if test -n "$ac_ct_CC"; then 3370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3371else 3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3373for as_dir in $PATH 3374do 3375 IFS=$as_save_IFS 3376 case $as_dir in #((( 3377 '') as_dir=./ ;; 3378 */) ;; 3379 *) as_dir=$as_dir/ ;; 3380 esac 3381 for ac_exec_ext in '' $ac_executable_extensions; do 3382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3383 ac_cv_prog_ac_ct_CC="gcc" 3384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3385 break 2 3386 fi 3387done 3388 done 3389IFS=$as_save_IFS 3390 3391fi ;; 3392esac 3393fi 3394ac_ct_CC=$ac_cv_prog_ac_ct_CC 3395if test -n "$ac_ct_CC"; then 3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3397printf "%s\n" "$ac_ct_CC" >&6; } 3398else 3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3400printf "%s\n" "no" >&6; } 3401fi 3402 3403 if test "x$ac_ct_CC" = x; then 3404 CC="" 3405 else 3406 case $cross_compiling:$ac_tool_warned in 3407yes:) 3408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3409printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3410ac_tool_warned=yes ;; 3411esac 3412 CC=$ac_ct_CC 3413 fi 3414else 3415 CC="$ac_cv_prog_CC" 3416fi 3417 3418if test -z "$CC"; then 3419 if test -n "$ac_tool_prefix"; then 3420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3421set dummy ${ac_tool_prefix}cc; ac_word=$2 3422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3423printf %s "checking for $ac_word... " >&6; } 3424if test ${ac_cv_prog_CC+y} 3425then : 3426 printf %s "(cached) " >&6 3427else case e in #( 3428 e) if test -n "$CC"; then 3429 ac_cv_prog_CC="$CC" # Let the user override the test. 3430else 3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3432for as_dir in $PATH 3433do 3434 IFS=$as_save_IFS 3435 case $as_dir in #((( 3436 '') as_dir=./ ;; 3437 */) ;; 3438 *) as_dir=$as_dir/ ;; 3439 esac 3440 for ac_exec_ext in '' $ac_executable_extensions; do 3441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3442 ac_cv_prog_CC="${ac_tool_prefix}cc" 3443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3444 break 2 3445 fi 3446done 3447 done 3448IFS=$as_save_IFS 3449 3450fi ;; 3451esac 3452fi 3453CC=$ac_cv_prog_CC 3454if test -n "$CC"; then 3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3456printf "%s\n" "$CC" >&6; } 3457else 3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3459printf "%s\n" "no" >&6; } 3460fi 3461 3462 3463 fi 3464fi 3465if test -z "$CC"; then 3466 # Extract the first word of "cc", so it can be a program name with args. 3467set dummy cc; ac_word=$2 3468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3469printf %s "checking for $ac_word... " >&6; } 3470if test ${ac_cv_prog_CC+y} 3471then : 3472 printf %s "(cached) " >&6 3473else case e in #( 3474 e) if test -n "$CC"; then 3475 ac_cv_prog_CC="$CC" # Let the user override the test. 3476else 3477 ac_prog_rejected=no 3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3479for as_dir in $PATH 3480do 3481 IFS=$as_save_IFS 3482 case $as_dir in #((( 3483 '') as_dir=./ ;; 3484 */) ;; 3485 *) as_dir=$as_dir/ ;; 3486 esac 3487 for ac_exec_ext in '' $ac_executable_extensions; do 3488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3489 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3490 ac_prog_rejected=yes 3491 continue 3492 fi 3493 ac_cv_prog_CC="cc" 3494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3495 break 2 3496 fi 3497done 3498 done 3499IFS=$as_save_IFS 3500 3501if test $ac_prog_rejected = yes; then 3502 # We found a bogon in the path, so make sure we never use it. 3503 set dummy $ac_cv_prog_CC 3504 shift 3505 if test $# != 0; then 3506 # We chose a different compiler from the bogus one. 3507 # However, it has the same basename, so the bogon will be chosen 3508 # first if we set CC to just the basename; use the full file name. 3509 shift 3510 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3511 fi 3512fi 3513fi ;; 3514esac 3515fi 3516CC=$ac_cv_prog_CC 3517if test -n "$CC"; then 3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3519printf "%s\n" "$CC" >&6; } 3520else 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3522printf "%s\n" "no" >&6; } 3523fi 3524 3525 3526fi 3527if test -z "$CC"; then 3528 if test -n "$ac_tool_prefix"; then 3529 for ac_prog in cl.exe 3530 do 3531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3532set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3534printf %s "checking for $ac_word... " >&6; } 3535if test ${ac_cv_prog_CC+y} 3536then : 3537 printf %s "(cached) " >&6 3538else case e in #( 3539 e) if test -n "$CC"; then 3540 ac_cv_prog_CC="$CC" # Let the user override the test. 3541else 3542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3543for as_dir in $PATH 3544do 3545 IFS=$as_save_IFS 3546 case $as_dir in #((( 3547 '') as_dir=./ ;; 3548 */) ;; 3549 *) as_dir=$as_dir/ ;; 3550 esac 3551 for ac_exec_ext in '' $ac_executable_extensions; do 3552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3555 break 2 3556 fi 3557done 3558 done 3559IFS=$as_save_IFS 3560 3561fi ;; 3562esac 3563fi 3564CC=$ac_cv_prog_CC 3565if test -n "$CC"; then 3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3567printf "%s\n" "$CC" >&6; } 3568else 3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3570printf "%s\n" "no" >&6; } 3571fi 3572 3573 3574 test -n "$CC" && break 3575 done 3576fi 3577if test -z "$CC"; then 3578 ac_ct_CC=$CC 3579 for ac_prog in cl.exe 3580do 3581 # Extract the first word of "$ac_prog", so it can be a program name with args. 3582set dummy $ac_prog; ac_word=$2 3583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3584printf %s "checking for $ac_word... " >&6; } 3585if test ${ac_cv_prog_ac_ct_CC+y} 3586then : 3587 printf %s "(cached) " >&6 3588else case e in #( 3589 e) if test -n "$ac_ct_CC"; then 3590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3591else 3592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3593for as_dir in $PATH 3594do 3595 IFS=$as_save_IFS 3596 case $as_dir in #((( 3597 '') as_dir=./ ;; 3598 */) ;; 3599 *) as_dir=$as_dir/ ;; 3600 esac 3601 for ac_exec_ext in '' $ac_executable_extensions; do 3602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3603 ac_cv_prog_ac_ct_CC="$ac_prog" 3604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3605 break 2 3606 fi 3607done 3608 done 3609IFS=$as_save_IFS 3610 3611fi ;; 3612esac 3613fi 3614ac_ct_CC=$ac_cv_prog_ac_ct_CC 3615if test -n "$ac_ct_CC"; then 3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3617printf "%s\n" "$ac_ct_CC" >&6; } 3618else 3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3620printf "%s\n" "no" >&6; } 3621fi 3622 3623 3624 test -n "$ac_ct_CC" && break 3625done 3626 3627 if test "x$ac_ct_CC" = x; then 3628 CC="" 3629 else 3630 case $cross_compiling:$ac_tool_warned in 3631yes:) 3632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3633printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3634ac_tool_warned=yes ;; 3635esac 3636 CC=$ac_ct_CC 3637 fi 3638fi 3639 3640fi 3641if test -z "$CC"; then 3642 if test -n "$ac_tool_prefix"; then 3643 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3644set dummy ${ac_tool_prefix}clang; ac_word=$2 3645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3646printf %s "checking for $ac_word... " >&6; } 3647if test ${ac_cv_prog_CC+y} 3648then : 3649 printf %s "(cached) " >&6 3650else case e in #( 3651 e) if test -n "$CC"; then 3652 ac_cv_prog_CC="$CC" # Let the user override the test. 3653else 3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3655for as_dir in $PATH 3656do 3657 IFS=$as_save_IFS 3658 case $as_dir in #((( 3659 '') as_dir=./ ;; 3660 */) ;; 3661 *) as_dir=$as_dir/ ;; 3662 esac 3663 for ac_exec_ext in '' $ac_executable_extensions; do 3664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3665 ac_cv_prog_CC="${ac_tool_prefix}clang" 3666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3667 break 2 3668 fi 3669done 3670 done 3671IFS=$as_save_IFS 3672 3673fi ;; 3674esac 3675fi 3676CC=$ac_cv_prog_CC 3677if test -n "$CC"; then 3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3679printf "%s\n" "$CC" >&6; } 3680else 3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3682printf "%s\n" "no" >&6; } 3683fi 3684 3685 3686fi 3687if test -z "$ac_cv_prog_CC"; then 3688 ac_ct_CC=$CC 3689 # Extract the first word of "clang", so it can be a program name with args. 3690set dummy clang; ac_word=$2 3691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3692printf %s "checking for $ac_word... " >&6; } 3693if test ${ac_cv_prog_ac_ct_CC+y} 3694then : 3695 printf %s "(cached) " >&6 3696else case e in #( 3697 e) if test -n "$ac_ct_CC"; then 3698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3699else 3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3701for as_dir in $PATH 3702do 3703 IFS=$as_save_IFS 3704 case $as_dir in #((( 3705 '') as_dir=./ ;; 3706 */) ;; 3707 *) as_dir=$as_dir/ ;; 3708 esac 3709 for ac_exec_ext in '' $ac_executable_extensions; do 3710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3711 ac_cv_prog_ac_ct_CC="clang" 3712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3713 break 2 3714 fi 3715done 3716 done 3717IFS=$as_save_IFS 3718 3719fi ;; 3720esac 3721fi 3722ac_ct_CC=$ac_cv_prog_ac_ct_CC 3723if test -n "$ac_ct_CC"; then 3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3725printf "%s\n" "$ac_ct_CC" >&6; } 3726else 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3728printf "%s\n" "no" >&6; } 3729fi 3730 3731 if test "x$ac_ct_CC" = x; then 3732 CC="" 3733 else 3734 case $cross_compiling:$ac_tool_warned in 3735yes:) 3736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3737printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3738ac_tool_warned=yes ;; 3739esac 3740 CC=$ac_ct_CC 3741 fi 3742else 3743 CC="$ac_cv_prog_CC" 3744fi 3745 3746fi 3747 3748 3749test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3750printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3751as_fn_error $? "no acceptable C compiler found in \$PATH 3752See 'config.log' for more details" "$LINENO" 5; } 3753 3754# Provide some information about the compiler. 3755printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3756set X $ac_compile 3757ac_compiler=$2 3758for ac_option in --version -v -V -qversion -version; do 3759 { { ac_try="$ac_compiler $ac_option >&5" 3760case "(($ac_try" in 3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3762 *) ac_try_echo=$ac_try;; 3763esac 3764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3765printf "%s\n" "$ac_try_echo"; } >&5 3766 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3767 ac_status=$? 3768 if test -s conftest.err; then 3769 sed '10a\ 3770... rest of stderr output deleted ... 3771 10q' conftest.err >conftest.er1 3772 cat conftest.er1 >&5 3773 fi 3774 rm -f conftest.er1 conftest.err 3775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3776 test $ac_status = 0; } 3777done 3778 3779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780/* end confdefs.h. */ 3781 3782int 3783main (void) 3784{ 3785 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790ac_clean_files_save=$ac_clean_files 3791ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3792# Try to create an executable without -o first, disregard a.out. 3793# It will help us diagnose broken compilers, and finding out an intuition 3794# of exeext. 3795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3796printf %s "checking whether the C compiler works... " >&6; } 3797ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3798 3799# The possible output files: 3800ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3801 3802ac_rmfiles= 3803for ac_file in $ac_files 3804do 3805 case $ac_file in 3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3807 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3808 esac 3809done 3810rm -f $ac_rmfiles 3811 3812if { { ac_try="$ac_link_default" 3813case "(($ac_try" in 3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3815 *) ac_try_echo=$ac_try;; 3816esac 3817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3818printf "%s\n" "$ac_try_echo"; } >&5 3819 (eval "$ac_link_default") 2>&5 3820 ac_status=$? 3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3822 test $ac_status = 0; } 3823then : 3824 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3825# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3826# in a Makefile. We should not override ac_cv_exeext if it was cached, 3827# so that the user can short-circuit this test for compilers unknown to 3828# Autoconf. 3829for ac_file in $ac_files '' 3830do 3831 test -f "$ac_file" || continue 3832 case $ac_file in 3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3834 ;; 3835 [ab].out ) 3836 # We found the default executable, but exeext='' is most 3837 # certainly right. 3838 break;; 3839 *.* ) 3840 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3841 then :; else 3842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3843 fi 3844 # We set ac_cv_exeext here because the later test for it is not 3845 # safe: cross compilers may not add the suffix if given an '-o' 3846 # argument, so we may need to know it at that point already. 3847 # Even if this section looks crufty: it has the advantage of 3848 # actually working. 3849 break;; 3850 * ) 3851 break;; 3852 esac 3853done 3854test "$ac_cv_exeext" = no && ac_cv_exeext= 3855 3856else case e in #( 3857 e) ac_file='' ;; 3858esac 3859fi 3860if test -z "$ac_file" 3861then : 3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3863printf "%s\n" "no" >&6; } 3864printf "%s\n" "$as_me: failed program was:" >&5 3865sed 's/^/| /' conftest.$ac_ext >&5 3866 3867{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3868printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3869as_fn_error 77 "C compiler cannot create executables 3870See 'config.log' for more details" "$LINENO" 5; } 3871else case e in #( 3872 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3873printf "%s\n" "yes" >&6; } ;; 3874esac 3875fi 3876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3877printf %s "checking for C compiler default output file name... " >&6; } 3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3879printf "%s\n" "$ac_file" >&6; } 3880ac_exeext=$ac_cv_exeext 3881 3882rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3883ac_clean_files=$ac_clean_files_save 3884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3885printf %s "checking for suffix of executables... " >&6; } 3886if { { ac_try="$ac_link" 3887case "(($ac_try" in 3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3889 *) ac_try_echo=$ac_try;; 3890esac 3891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3892printf "%s\n" "$ac_try_echo"; } >&5 3893 (eval "$ac_link") 2>&5 3894 ac_status=$? 3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3896 test $ac_status = 0; } 3897then : 3898 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3899# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3900# work properly (i.e., refer to 'conftest.exe'), while it won't with 3901# 'rm'. 3902for ac_file in conftest.exe conftest conftest.*; do 3903 test -f "$ac_file" || continue 3904 case $ac_file in 3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3907 break;; 3908 * ) break;; 3909 esac 3910done 3911else case e in #( 3912 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3913printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3914as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3915See 'config.log' for more details" "$LINENO" 5; } ;; 3916esac 3917fi 3918rm -f conftest conftest$ac_cv_exeext 3919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3920printf "%s\n" "$ac_cv_exeext" >&6; } 3921 3922rm -f conftest.$ac_ext 3923EXEEXT=$ac_cv_exeext 3924ac_exeext=$EXEEXT 3925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3926/* end confdefs.h. */ 3927#include <stdio.h> 3928int 3929main (void) 3930{ 3931FILE *f = fopen ("conftest.out", "w"); 3932 if (!f) 3933 return 1; 3934 return ferror (f) || fclose (f) != 0; 3935 3936 ; 3937 return 0; 3938} 3939_ACEOF 3940ac_clean_files="$ac_clean_files conftest.out" 3941# Check that the compiler produces executables we can run. If not, either 3942# the compiler is broken, or we cross compile. 3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3944printf %s "checking whether we are cross compiling... " >&6; } 3945if test "$cross_compiling" != yes; then 3946 { { ac_try="$ac_link" 3947case "(($ac_try" in 3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3949 *) ac_try_echo=$ac_try;; 3950esac 3951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3952printf "%s\n" "$ac_try_echo"; } >&5 3953 (eval "$ac_link") 2>&5 3954 ac_status=$? 3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3956 test $ac_status = 0; } 3957 if { ac_try='./conftest$ac_cv_exeext' 3958 { { case "(($ac_try" in 3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3960 *) ac_try_echo=$ac_try;; 3961esac 3962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3963printf "%s\n" "$ac_try_echo"; } >&5 3964 (eval "$ac_try") 2>&5 3965 ac_status=$? 3966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3967 test $ac_status = 0; }; }; then 3968 cross_compiling=no 3969 else 3970 if test "$cross_compiling" = maybe; then 3971 cross_compiling=yes 3972 else 3973 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3974printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3975as_fn_error 77 "cannot run C compiled programs. 3976If you meant to cross compile, use '--host'. 3977See 'config.log' for more details" "$LINENO" 5; } 3978 fi 3979 fi 3980fi 3981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3982printf "%s\n" "$cross_compiling" >&6; } 3983 3984rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3985 conftest.o conftest.obj conftest.out 3986ac_clean_files=$ac_clean_files_save 3987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3988printf %s "checking for suffix of object files... " >&6; } 3989if test ${ac_cv_objext+y} 3990then : 3991 printf %s "(cached) " >&6 3992else case e in #( 3993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995 3996int 3997main (void) 3998{ 3999 4000 ; 4001 return 0; 4002} 4003_ACEOF 4004rm -f conftest.o conftest.obj 4005if { { ac_try="$ac_compile" 4006case "(($ac_try" in 4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4008 *) ac_try_echo=$ac_try;; 4009esac 4010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4011printf "%s\n" "$ac_try_echo"; } >&5 4012 (eval "$ac_compile") 2>&5 4013 ac_status=$? 4014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4015 test $ac_status = 0; } 4016then : 4017 for ac_file in conftest.o conftest.obj conftest.*; do 4018 test -f "$ac_file" || continue; 4019 case $ac_file in 4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4022 break;; 4023 esac 4024done 4025else case e in #( 4026 e) printf "%s\n" "$as_me: failed program was:" >&5 4027sed 's/^/| /' conftest.$ac_ext >&5 4028 4029{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4030printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4031as_fn_error $? "cannot compute suffix of object files: cannot compile 4032See 'config.log' for more details" "$LINENO" 5; } ;; 4033esac 4034fi 4035rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4036esac 4037fi 4038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4039printf "%s\n" "$ac_cv_objext" >&6; } 4040OBJEXT=$ac_cv_objext 4041ac_objext=$OBJEXT 4042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4043printf %s "checking whether the compiler supports GNU C... " >&6; } 4044if test ${ac_cv_c_compiler_gnu+y} 4045then : 4046 printf %s "(cached) " >&6 4047else case e in #( 4048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4049/* end confdefs.h. */ 4050 4051int 4052main (void) 4053{ 4054#ifndef __GNUC__ 4055 choke me 4056#endif 4057 4058 ; 4059 return 0; 4060} 4061_ACEOF 4062if ac_fn_c_try_compile "$LINENO" 4063then : 4064 ac_compiler_gnu=yes 4065else case e in #( 4066 e) ac_compiler_gnu=no ;; 4067esac 4068fi 4069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4070ac_cv_c_compiler_gnu=$ac_compiler_gnu 4071 ;; 4072esac 4073fi 4074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4075printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4076ac_compiler_gnu=$ac_cv_c_compiler_gnu 4077 4078if test $ac_compiler_gnu = yes; then 4079 GCC=yes 4080else 4081 GCC= 4082fi 4083ac_test_CFLAGS=${CFLAGS+y} 4084ac_save_CFLAGS=$CFLAGS 4085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4086printf %s "checking whether $CC accepts -g... " >&6; } 4087if test ${ac_cv_prog_cc_g+y} 4088then : 4089 printf %s "(cached) " >&6 4090else case e in #( 4091 e) ac_save_c_werror_flag=$ac_c_werror_flag 4092 ac_c_werror_flag=yes 4093 ac_cv_prog_cc_g=no 4094 CFLAGS="-g" 4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4096/* end confdefs.h. */ 4097 4098int 4099main (void) 4100{ 4101 4102 ; 4103 return 0; 4104} 4105_ACEOF 4106if ac_fn_c_try_compile "$LINENO" 4107then : 4108 ac_cv_prog_cc_g=yes 4109else case e in #( 4110 e) CFLAGS="" 4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4112/* end confdefs.h. */ 4113 4114int 4115main (void) 4116{ 4117 4118 ; 4119 return 0; 4120} 4121_ACEOF 4122if ac_fn_c_try_compile "$LINENO" 4123then : 4124 4125else case e in #( 4126 e) ac_c_werror_flag=$ac_save_c_werror_flag 4127 CFLAGS="-g" 4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129/* end confdefs.h. */ 4130 4131int 4132main (void) 4133{ 4134 4135 ; 4136 return 0; 4137} 4138_ACEOF 4139if ac_fn_c_try_compile "$LINENO" 4140then : 4141 ac_cv_prog_cc_g=yes 4142fi 4143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4144esac 4145fi 4146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4147esac 4148fi 4149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4150 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4151esac 4152fi 4153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4154printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4155if test $ac_test_CFLAGS; then 4156 CFLAGS=$ac_save_CFLAGS 4157elif test $ac_cv_prog_cc_g = yes; then 4158 if test "$GCC" = yes; then 4159 CFLAGS="-g -O2" 4160 else 4161 CFLAGS="-g" 4162 fi 4163else 4164 if test "$GCC" = yes; then 4165 CFLAGS="-O2" 4166 else 4167 CFLAGS= 4168 fi 4169fi 4170ac_prog_cc_stdc=no 4171if test x$ac_prog_cc_stdc = xno 4172then : 4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4174printf %s "checking for $CC option to enable C11 features... " >&6; } 4175if test ${ac_cv_prog_cc_c11+y} 4176then : 4177 printf %s "(cached) " >&6 4178else case e in #( 4179 e) ac_cv_prog_cc_c11=no 4180ac_save_CC=$CC 4181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4182/* end confdefs.h. */ 4183$ac_c_conftest_c11_program 4184_ACEOF 4185for ac_arg in '' -std=gnu11 4186do 4187 CC="$ac_save_CC $ac_arg" 4188 if ac_fn_c_try_compile "$LINENO" 4189then : 4190 ac_cv_prog_cc_c11=$ac_arg 4191fi 4192rm -f core conftest.err conftest.$ac_objext conftest.beam 4193 test "x$ac_cv_prog_cc_c11" != "xno" && break 4194done 4195rm -f conftest.$ac_ext 4196CC=$ac_save_CC ;; 4197esac 4198fi 4199 4200if test "x$ac_cv_prog_cc_c11" = xno 4201then : 4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4203printf "%s\n" "unsupported" >&6; } 4204else case e in #( 4205 e) if test "x$ac_cv_prog_cc_c11" = x 4206then : 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4208printf "%s\n" "none needed" >&6; } 4209else case e in #( 4210 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4211printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4212 CC="$CC $ac_cv_prog_cc_c11" ;; 4213esac 4214fi 4215 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4216 ac_prog_cc_stdc=c11 ;; 4217esac 4218fi 4219fi 4220if test x$ac_prog_cc_stdc = xno 4221then : 4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4223printf %s "checking for $CC option to enable C99 features... " >&6; } 4224if test ${ac_cv_prog_cc_c99+y} 4225then : 4226 printf %s "(cached) " >&6 4227else case e in #( 4228 e) ac_cv_prog_cc_c99=no 4229ac_save_CC=$CC 4230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4231/* end confdefs.h. */ 4232$ac_c_conftest_c99_program 4233_ACEOF 4234for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4235do 4236 CC="$ac_save_CC $ac_arg" 4237 if ac_fn_c_try_compile "$LINENO" 4238then : 4239 ac_cv_prog_cc_c99=$ac_arg 4240fi 4241rm -f core conftest.err conftest.$ac_objext conftest.beam 4242 test "x$ac_cv_prog_cc_c99" != "xno" && break 4243done 4244rm -f conftest.$ac_ext 4245CC=$ac_save_CC ;; 4246esac 4247fi 4248 4249if test "x$ac_cv_prog_cc_c99" = xno 4250then : 4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4252printf "%s\n" "unsupported" >&6; } 4253else case e in #( 4254 e) if test "x$ac_cv_prog_cc_c99" = x 4255then : 4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4257printf "%s\n" "none needed" >&6; } 4258else case e in #( 4259 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4260printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4261 CC="$CC $ac_cv_prog_cc_c99" ;; 4262esac 4263fi 4264 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4265 ac_prog_cc_stdc=c99 ;; 4266esac 4267fi 4268fi 4269if test x$ac_prog_cc_stdc = xno 4270then : 4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4272printf %s "checking for $CC option to enable C89 features... " >&6; } 4273if test ${ac_cv_prog_cc_c89+y} 4274then : 4275 printf %s "(cached) " >&6 4276else case e in #( 4277 e) ac_cv_prog_cc_c89=no 4278ac_save_CC=$CC 4279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4280/* end confdefs.h. */ 4281$ac_c_conftest_c89_program 4282_ACEOF 4283for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4284do 4285 CC="$ac_save_CC $ac_arg" 4286 if ac_fn_c_try_compile "$LINENO" 4287then : 4288 ac_cv_prog_cc_c89=$ac_arg 4289fi 4290rm -f core conftest.err conftest.$ac_objext conftest.beam 4291 test "x$ac_cv_prog_cc_c89" != "xno" && break 4292done 4293rm -f conftest.$ac_ext 4294CC=$ac_save_CC ;; 4295esac 4296fi 4297 4298if test "x$ac_cv_prog_cc_c89" = xno 4299then : 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4301printf "%s\n" "unsupported" >&6; } 4302else case e in #( 4303 e) if test "x$ac_cv_prog_cc_c89" = x 4304then : 4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4306printf "%s\n" "none needed" >&6; } 4307else case e in #( 4308 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4309printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4310 CC="$CC $ac_cv_prog_cc_c89" ;; 4311esac 4312fi 4313 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4314 ac_prog_cc_stdc=c89 ;; 4315esac 4316fi 4317fi 4318 4319ac_ext=c 4320ac_cpp='$CPP $CPPFLAGS' 4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4323ac_compiler_gnu=$ac_cv_c_compiler_gnu 4324 4325 4326 ac_ext=c 4327ac_cpp='$CPP $CPPFLAGS' 4328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4330ac_compiler_gnu=$ac_cv_c_compiler_gnu 4331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4332printf %s "checking whether $CC understands -c and -o together... " >&6; } 4333if test ${am_cv_prog_cc_c_o+y} 4334then : 4335 printf %s "(cached) " >&6 4336else case e in #( 4337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4338/* end confdefs.h. */ 4339 4340int 4341main (void) 4342{ 4343 4344 ; 4345 return 0; 4346} 4347_ACEOF 4348 # Make sure it works both with $CC and with simple cc. 4349 # Following AC_PROG_CC_C_O, we do the test twice because some 4350 # compilers refuse to overwrite an existing .o file with -o, 4351 # though they will create one. 4352 am_cv_prog_cc_c_o=yes 4353 for am_i in 1 2; do 4354 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4355 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4356 ac_status=$? 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4358 (exit $ac_status); } \ 4359 && test -f conftest2.$ac_objext; then 4360 : OK 4361 else 4362 am_cv_prog_cc_c_o=no 4363 break 4364 fi 4365 done 4366 rm -f core conftest* 4367 unset am_i ;; 4368esac 4369fi 4370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4371printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4372if test "$am_cv_prog_cc_c_o" != yes; then 4373 # Losing compiler, so override with the script. 4374 # FIXME: It is wrong to rewrite CC. 4375 # But if we don't then we get into trouble of one sort or another. 4376 # A longer-term fix would be to have automake use am__CC in this case, 4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4378 CC="$am_aux_dir/compile $CC" 4379fi 4380ac_ext=c 4381ac_cpp='$CPP $CPPFLAGS' 4382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4384ac_compiler_gnu=$ac_cv_c_compiler_gnu 4385 4386 4387depcc="$CC" am_compiler_list= 4388 4389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4390printf %s "checking dependency style of $depcc... " >&6; } 4391if test ${am_cv_CC_dependencies_compiler_type+y} 4392then : 4393 printf %s "(cached) " >&6 4394else case e in #( 4395 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4396 # We make a subdir and do the tests there. Otherwise we can end up 4397 # making bogus files that we don't know about and never remove. For 4398 # instance it was reported that on HP-UX the gcc test will end up 4399 # making a dummy file named 'D' -- because '-MD' means "put the output 4400 # in D". 4401 rm -rf conftest.dir 4402 mkdir conftest.dir 4403 # Copy depcomp to subdir because otherwise we won't find it if we're 4404 # using a relative directory. 4405 cp "$am_depcomp" conftest.dir 4406 cd conftest.dir 4407 # We will build objects and dependencies in a subdirectory because 4408 # it helps to detect inapplicable dependency modes. For instance 4409 # both Tru64's cc and ICC support -MD to output dependencies as a 4410 # side effect of compilation, but ICC will put the dependencies in 4411 # the current directory while Tru64 will put them in the object 4412 # directory. 4413 mkdir sub 4414 4415 am_cv_CC_dependencies_compiler_type=none 4416 if test "$am_compiler_list" = ""; then 4417 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4418 fi 4419 am__universal=false 4420 case " $depcc " in #( 4421 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4422 esac 4423 4424 for depmode in $am_compiler_list; do 4425 # Setup a source with many dependencies, because some compilers 4426 # like to wrap large dependency lists on column 80 (with \), and 4427 # we should not choose a depcomp mode which is confused by this. 4428 # 4429 # We need to recreate these files for each test, as the compiler may 4430 # overwrite some of them when testing with obscure command lines. 4431 # This happens at least with the AIX C compiler. 4432 : > sub/conftest.c 4433 for i in 1 2 3 4 5 6; do 4434 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4435 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4436 # Solaris 10 /bin/sh. 4437 echo '/* dummy */' > sub/conftst$i.h 4438 done 4439 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4440 4441 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4442 # mode. It turns out that the SunPro C++ compiler does not properly 4443 # handle '-M -o', and we need to detect this. Also, some Intel 4444 # versions had trouble with output in subdirs. 4445 am__obj=sub/conftest.${OBJEXT-o} 4446 am__minus_obj="-o $am__obj" 4447 case $depmode in 4448 gcc) 4449 # This depmode causes a compiler race in universal mode. 4450 test "$am__universal" = false || continue 4451 ;; 4452 nosideeffect) 4453 # After this tag, mechanisms are not by side-effect, so they'll 4454 # only be used when explicitly requested. 4455 if test "x$enable_dependency_tracking" = xyes; then 4456 continue 4457 else 4458 break 4459 fi 4460 ;; 4461 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4462 # This compiler won't grok '-c -o', but also, the minuso test has 4463 # not run yet. These depmodes are late enough in the game, and 4464 # so weak that their functioning should not be impacted. 4465 am__obj=conftest.${OBJEXT-o} 4466 am__minus_obj= 4467 ;; 4468 none) break ;; 4469 esac 4470 if depmode=$depmode \ 4471 source=sub/conftest.c object=$am__obj \ 4472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4473 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4474 >/dev/null 2>conftest.err && 4475 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4476 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4477 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4478 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4479 # icc doesn't choke on unknown options, it will just issue warnings 4480 # or remarks (even with -Werror). So we grep stderr for any message 4481 # that says an option was ignored or not supported. 4482 # When given -MP, icc 7.0 and 7.1 complain thusly: 4483 # icc: Command line warning: ignoring option '-M'; no argument required 4484 # The diagnosis changed in icc 8.0: 4485 # icc: Command line remark: option '-MP' not supported 4486 if (grep 'ignoring option' conftest.err || 4487 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4488 am_cv_CC_dependencies_compiler_type=$depmode 4489 break 4490 fi 4491 fi 4492 done 4493 4494 cd .. 4495 rm -rf conftest.dir 4496else 4497 am_cv_CC_dependencies_compiler_type=none 4498fi 4499 ;; 4500esac 4501fi 4502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4503printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4504CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4505 4506 if 4507 test "x$enable_dependency_tracking" != xno \ 4508 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4509 am__fastdepCC_TRUE= 4510 am__fastdepCC_FALSE='#' 4511else 4512 am__fastdepCC_TRUE='#' 4513 am__fastdepCC_FALSE= 4514fi 4515 4516 4517 4518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4519printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4520if test ${ac_cv_c_undeclared_builtin_options+y} 4521then : 4522 printf %s "(cached) " >&6 4523else case e in #( 4524 e) ac_save_CFLAGS=$CFLAGS 4525 ac_cv_c_undeclared_builtin_options='cannot detect' 4526 for ac_arg in '' -fno-builtin; do 4527 CFLAGS="$ac_save_CFLAGS $ac_arg" 4528 # This test program should *not* compile successfully. 4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4530/* end confdefs.h. */ 4531 4532int 4533main (void) 4534{ 4535(void) strchr; 4536 ; 4537 return 0; 4538} 4539_ACEOF 4540if ac_fn_c_try_compile "$LINENO" 4541then : 4542 4543else case e in #( 4544 e) # This test program should compile successfully. 4545 # No library function is consistently available on 4546 # freestanding implementations, so test against a dummy 4547 # declaration. Include always-available headers on the 4548 # off chance that they somehow elicit warnings. 4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4550/* end confdefs.h. */ 4551#include <float.h> 4552#include <limits.h> 4553#include <stdarg.h> 4554#include <stddef.h> 4555extern void ac_decl (int, char *); 4556 4557int 4558main (void) 4559{ 4560(void) ac_decl (0, (char *) 0); 4561 (void) ac_decl; 4562 4563 ; 4564 return 0; 4565} 4566_ACEOF 4567if ac_fn_c_try_compile "$LINENO" 4568then : 4569 if test x"$ac_arg" = x 4570then : 4571 ac_cv_c_undeclared_builtin_options='none needed' 4572else case e in #( 4573 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4574esac 4575fi 4576 break 4577fi 4578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4579esac 4580fi 4581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4582 done 4583 CFLAGS=$ac_save_CFLAGS 4584 ;; 4585esac 4586fi 4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4588printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4589 case $ac_cv_c_undeclared_builtin_options in #( 4590 'cannot detect') : 4591 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4592printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4593as_fn_error $? "cannot make $CC report undeclared builtins 4594See 'config.log' for more details" "$LINENO" 5; } ;; #( 4595 'none needed') : 4596 ac_c_undeclared_builtin_options='' ;; #( 4597 *) : 4598 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4599esac 4600 4601ac_header= ac_cache= 4602for ac_item in $ac_header_c_list 4603do 4604 if test $ac_cache; then 4605 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4606 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4607 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4608 fi 4609 ac_header= ac_cache= 4610 elif test $ac_header; then 4611 ac_cache=$ac_item 4612 else 4613 ac_header=$ac_item 4614 fi 4615done 4616 4617 4618 4619 4620 4621 4622 4623 4624if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4625then : 4626 4627printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4628 4629fi 4630 4631 4632 4633 4634ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4635if test "x$ac_cv_have_decl___clang__" = xyes 4636then : 4637 CLANGCC="yes" 4638else case e in #( 4639 e) CLANGCC="no" ;; 4640esac 4641fi 4642ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4643if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4644then : 4645 INTELCC="yes" 4646else case e in #( 4647 e) INTELCC="no" ;; 4648esac 4649fi 4650ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4651if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4652then : 4653 SUNCC="yes" 4654else case e in #( 4655 e) SUNCC="no" ;; 4656esac 4657fi 4658 4659 4660 4661 4662 4663 4664 4665 4666if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4667 if test -n "$ac_tool_prefix"; then 4668 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4669set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4671printf %s "checking for $ac_word... " >&6; } 4672if test ${ac_cv_path_PKG_CONFIG+y} 4673then : 4674 printf %s "(cached) " >&6 4675else case e in #( 4676 e) case $PKG_CONFIG in 4677 [\\/]* | ?:[\\/]*) 4678 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4679 ;; 4680 *) 4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4682for as_dir in $PATH 4683do 4684 IFS=$as_save_IFS 4685 case $as_dir in #((( 4686 '') as_dir=./ ;; 4687 */) ;; 4688 *) as_dir=$as_dir/ ;; 4689 esac 4690 for ac_exec_ext in '' $ac_executable_extensions; do 4691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4692 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4694 break 2 4695 fi 4696done 4697 done 4698IFS=$as_save_IFS 4699 4700 ;; 4701esac ;; 4702esac 4703fi 4704PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4705if test -n "$PKG_CONFIG"; then 4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4707printf "%s\n" "$PKG_CONFIG" >&6; } 4708else 4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4710printf "%s\n" "no" >&6; } 4711fi 4712 4713 4714fi 4715if test -z "$ac_cv_path_PKG_CONFIG"; then 4716 ac_pt_PKG_CONFIG=$PKG_CONFIG 4717 # Extract the first word of "pkg-config", so it can be a program name with args. 4718set dummy pkg-config; ac_word=$2 4719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4720printf %s "checking for $ac_word... " >&6; } 4721if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4722then : 4723 printf %s "(cached) " >&6 4724else case e in #( 4725 e) case $ac_pt_PKG_CONFIG in 4726 [\\/]* | ?:[\\/]*) 4727 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4728 ;; 4729 *) 4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4731for as_dir in $PATH 4732do 4733 IFS=$as_save_IFS 4734 case $as_dir in #((( 4735 '') as_dir=./ ;; 4736 */) ;; 4737 *) as_dir=$as_dir/ ;; 4738 esac 4739 for ac_exec_ext in '' $ac_executable_extensions; do 4740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4741 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4743 break 2 4744 fi 4745done 4746 done 4747IFS=$as_save_IFS 4748 4749 ;; 4750esac ;; 4751esac 4752fi 4753ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4754if test -n "$ac_pt_PKG_CONFIG"; then 4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4756printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4757else 4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4759printf "%s\n" "no" >&6; } 4760fi 4761 4762 if test "x$ac_pt_PKG_CONFIG" = x; then 4763 PKG_CONFIG="" 4764 else 4765 case $cross_compiling:$ac_tool_warned in 4766yes:) 4767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4768printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4769ac_tool_warned=yes ;; 4770esac 4771 PKG_CONFIG=$ac_pt_PKG_CONFIG 4772 fi 4773else 4774 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4775fi 4776 4777fi 4778if test -n "$PKG_CONFIG"; then 4779 _pkg_min_version=0.9.0 4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4781printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4782 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4784printf "%s\n" "yes" >&6; } 4785 else 4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4787printf "%s\n" "no" >&6; } 4788 PKG_CONFIG="" 4789 fi 4790fi 4791 4792 4793 # Make sure we can run config.sub. 4794$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4795 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4796 4797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4798printf %s "checking build system type... " >&6; } 4799if test ${ac_cv_build+y} 4800then : 4801 printf %s "(cached) " >&6 4802else case e in #( 4803 e) ac_build_alias=$build_alias 4804test "x$ac_build_alias" = x && 4805 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4806test "x$ac_build_alias" = x && 4807 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4808ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4809 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4810 ;; 4811esac 4812fi 4813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4814printf "%s\n" "$ac_cv_build" >&6; } 4815case $ac_cv_build in 4816*-*-*) ;; 4817*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4818esac 4819build=$ac_cv_build 4820ac_save_IFS=$IFS; IFS='-' 4821set x $ac_cv_build 4822shift 4823build_cpu=$1 4824build_vendor=$2 4825shift; shift 4826# Remember, the first character of IFS is used to create $*, 4827# except with old shells: 4828build_os=$* 4829IFS=$ac_save_IFS 4830case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4831 4832 4833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4834printf %s "checking host system type... " >&6; } 4835if test ${ac_cv_host+y} 4836then : 4837 printf %s "(cached) " >&6 4838else case e in #( 4839 e) if test "x$host_alias" = x; then 4840 ac_cv_host=$ac_cv_build 4841else 4842 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4843 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4844fi 4845 ;; 4846esac 4847fi 4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4849printf "%s\n" "$ac_cv_host" >&6; } 4850case $ac_cv_host in 4851*-*-*) ;; 4852*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4853esac 4854host=$ac_cv_host 4855ac_save_IFS=$IFS; IFS='-' 4856set x $ac_cv_host 4857shift 4858host_cpu=$1 4859host_vendor=$2 4860shift; shift 4861# Remember, the first character of IFS is used to create $*, 4862# except with old shells: 4863host_os=$* 4864IFS=$ac_save_IFS 4865case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4866 4867 4868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4869printf %s "checking for a sed that does not truncate output... " >&6; } 4870if test ${ac_cv_path_SED+y} 4871then : 4872 printf %s "(cached) " >&6 4873else case e in #( 4874 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4875 for ac_i in 1 2 3 4 5 6 7; do 4876 ac_script="$ac_script$as_nl$ac_script" 4877 done 4878 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4879 { ac_script=; unset ac_script;} 4880 if test -z "$SED"; then 4881 ac_path_SED_found=false 4882 # Loop through the user's path and test for each of PROGNAME-LIST 4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4884for as_dir in $PATH 4885do 4886 IFS=$as_save_IFS 4887 case $as_dir in #((( 4888 '') as_dir=./ ;; 4889 */) ;; 4890 *) as_dir=$as_dir/ ;; 4891 esac 4892 for ac_prog in sed gsed 4893 do 4894 for ac_exec_ext in '' $ac_executable_extensions; do 4895 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4896 as_fn_executable_p "$ac_path_SED" || continue 4897# Check for GNU ac_path_SED and select it if it is found. 4898 # Check for GNU $ac_path_SED 4899case `"$ac_path_SED" --version 2>&1` in #( 4900*GNU*) 4901 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4902#( 4903*) 4904 ac_count=0 4905 printf %s 0123456789 >"conftest.in" 4906 while : 4907 do 4908 cat "conftest.in" "conftest.in" >"conftest.tmp" 4909 mv "conftest.tmp" "conftest.in" 4910 cp "conftest.in" "conftest.nl" 4911 printf "%s\n" '' >> "conftest.nl" 4912 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4914 as_fn_arith $ac_count + 1 && ac_count=$as_val 4915 if test $ac_count -gt ${ac_path_SED_max-0}; then 4916 # Best one so far, save it but keep looking for a better one 4917 ac_cv_path_SED="$ac_path_SED" 4918 ac_path_SED_max=$ac_count 4919 fi 4920 # 10*(2^10) chars as input seems more than enough 4921 test $ac_count -gt 10 && break 4922 done 4923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4924esac 4925 4926 $ac_path_SED_found && break 3 4927 done 4928 done 4929 done 4930IFS=$as_save_IFS 4931 if test -z "$ac_cv_path_SED"; then 4932 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4933 fi 4934else 4935 ac_cv_path_SED=$SED 4936fi 4937 ;; 4938esac 4939fi 4940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4941printf "%s\n" "$ac_cv_path_SED" >&6; } 4942 SED="$ac_cv_path_SED" 4943 rm -f conftest.sed 4944 4945 4946 4947 4948 4949 4950# Check whether --enable-selective-werror was given. 4951if test ${enable_selective_werror+y} 4952then : 4953 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4954else case e in #( 4955 e) SELECTIVE_WERROR=yes ;; 4956esac 4957fi 4958 4959 4960 4961 4962 4963# -v is too short to test reliably with XORG_TESTSET_CFLAG 4964if test "x$SUNCC" = "xyes"; then 4965 BASE_CFLAGS="-v" 4966else 4967 BASE_CFLAGS="" 4968fi 4969 4970# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984xorg_testset_save_CFLAGS="$CFLAGS" 4985 4986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4989printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4990if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4991then : 4992 printf %s "(cached) " >&6 4993else case e in #( 4994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4995/* end confdefs.h. */ 4996int i; 4997_ACEOF 4998if ac_fn_c_try_compile "$LINENO" 4999then : 5000 xorg_cv_cc_flag_unknown_warning_option=yes 5001else case e in #( 5002 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5003esac 5004fi 5005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5006esac 5007fi 5008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5009printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5011 CFLAGS="$xorg_testset_save_CFLAGS" 5012fi 5013 5014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5017 fi 5018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5020printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5021if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5022then : 5023 printf %s "(cached) " >&6 5024else case e in #( 5025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5026/* end confdefs.h. */ 5027int i; 5028_ACEOF 5029if ac_fn_c_try_compile "$LINENO" 5030then : 5031 xorg_cv_cc_flag_unused_command_line_argument=yes 5032else case e in #( 5033 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5034esac 5035fi 5036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5037esac 5038fi 5039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5040printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5042 CFLAGS="$xorg_testset_save_CFLAGS" 5043fi 5044 5045found="no" 5046 5047 if test $found = "no" ; then 5048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5050 fi 5051 5052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5054 fi 5055 5056 CFLAGS="$CFLAGS -Wall" 5057 5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5059printf %s "checking if $CC supports -Wall... " >&6; } 5060 cacheid=xorg_cv_cc_flag__Wall 5061 if eval test \${$cacheid+y} 5062then : 5063 printf %s "(cached) " >&6 5064else case e in #( 5065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5066/* end confdefs.h. */ 5067int i; 5068int 5069main (void) 5070{ 5071 5072 ; 5073 return 0; 5074} 5075_ACEOF 5076if ac_fn_c_try_link "$LINENO" 5077then : 5078 eval $cacheid=yes 5079else case e in #( 5080 e) eval $cacheid=no ;; 5081esac 5082fi 5083rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5084 conftest$ac_exeext conftest.$ac_ext ;; 5085esac 5086fi 5087 5088 5089 CFLAGS="$xorg_testset_save_CFLAGS" 5090 5091 eval supported=\$$cacheid 5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5093printf "%s\n" "$supported" >&6; } 5094 if test "$supported" = "yes" ; then 5095 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5096 found="yes" 5097 fi 5098 fi 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114xorg_testset_save_CFLAGS="$CFLAGS" 5115 5116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5119printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5120if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5121then : 5122 printf %s "(cached) " >&6 5123else case e in #( 5124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5125/* end confdefs.h. */ 5126int i; 5127_ACEOF 5128if ac_fn_c_try_compile "$LINENO" 5129then : 5130 xorg_cv_cc_flag_unknown_warning_option=yes 5131else case e in #( 5132 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5133esac 5134fi 5135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5136esac 5137fi 5138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5139printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5141 CFLAGS="$xorg_testset_save_CFLAGS" 5142fi 5143 5144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5147 fi 5148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5150printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5151if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5152then : 5153 printf %s "(cached) " >&6 5154else case e in #( 5155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5156/* end confdefs.h. */ 5157int i; 5158_ACEOF 5159if ac_fn_c_try_compile "$LINENO" 5160then : 5161 xorg_cv_cc_flag_unused_command_line_argument=yes 5162else case e in #( 5163 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5164esac 5165fi 5166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5167esac 5168fi 5169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5170printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5172 CFLAGS="$xorg_testset_save_CFLAGS" 5173fi 5174 5175found="no" 5176 5177 if test $found = "no" ; then 5178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5180 fi 5181 5182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5184 fi 5185 5186 CFLAGS="$CFLAGS -Wpointer-arith" 5187 5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5189printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5190 cacheid=xorg_cv_cc_flag__Wpointer_arith 5191 if eval test \${$cacheid+y} 5192then : 5193 printf %s "(cached) " >&6 5194else case e in #( 5195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196/* end confdefs.h. */ 5197int i; 5198int 5199main (void) 5200{ 5201 5202 ; 5203 return 0; 5204} 5205_ACEOF 5206if ac_fn_c_try_link "$LINENO" 5207then : 5208 eval $cacheid=yes 5209else case e in #( 5210 e) eval $cacheid=no ;; 5211esac 5212fi 5213rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5214 conftest$ac_exeext conftest.$ac_ext ;; 5215esac 5216fi 5217 5218 5219 CFLAGS="$xorg_testset_save_CFLAGS" 5220 5221 eval supported=\$$cacheid 5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5223printf "%s\n" "$supported" >&6; } 5224 if test "$supported" = "yes" ; then 5225 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5226 found="yes" 5227 fi 5228 fi 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244xorg_testset_save_CFLAGS="$CFLAGS" 5245 5246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5249printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5250if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5251then : 5252 printf %s "(cached) " >&6 5253else case e in #( 5254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5255/* end confdefs.h. */ 5256int i; 5257_ACEOF 5258if ac_fn_c_try_compile "$LINENO" 5259then : 5260 xorg_cv_cc_flag_unknown_warning_option=yes 5261else case e in #( 5262 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5263esac 5264fi 5265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5266esac 5267fi 5268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5269printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5271 CFLAGS="$xorg_testset_save_CFLAGS" 5272fi 5273 5274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5277 fi 5278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5280printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5281if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5282then : 5283 printf %s "(cached) " >&6 5284else case e in #( 5285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5286/* end confdefs.h. */ 5287int i; 5288_ACEOF 5289if ac_fn_c_try_compile "$LINENO" 5290then : 5291 xorg_cv_cc_flag_unused_command_line_argument=yes 5292else case e in #( 5293 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5294esac 5295fi 5296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5297esac 5298fi 5299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5300printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5302 CFLAGS="$xorg_testset_save_CFLAGS" 5303fi 5304 5305found="no" 5306 5307 if test $found = "no" ; then 5308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5310 fi 5311 5312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5314 fi 5315 5316 CFLAGS="$CFLAGS -Wmissing-declarations" 5317 5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5319printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5320 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5321 if eval test \${$cacheid+y} 5322then : 5323 printf %s "(cached) " >&6 5324else case e in #( 5325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5326/* end confdefs.h. */ 5327int i; 5328int 5329main (void) 5330{ 5331 5332 ; 5333 return 0; 5334} 5335_ACEOF 5336if ac_fn_c_try_link "$LINENO" 5337then : 5338 eval $cacheid=yes 5339else case e in #( 5340 e) eval $cacheid=no ;; 5341esac 5342fi 5343rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5344 conftest$ac_exeext conftest.$ac_ext ;; 5345esac 5346fi 5347 5348 5349 CFLAGS="$xorg_testset_save_CFLAGS" 5350 5351 eval supported=\$$cacheid 5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5353printf "%s\n" "$supported" >&6; } 5354 if test "$supported" = "yes" ; then 5355 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5356 found="yes" 5357 fi 5358 fi 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374xorg_testset_save_CFLAGS="$CFLAGS" 5375 5376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5379printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5380if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5381then : 5382 printf %s "(cached) " >&6 5383else case e in #( 5384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5385/* end confdefs.h. */ 5386int i; 5387_ACEOF 5388if ac_fn_c_try_compile "$LINENO" 5389then : 5390 xorg_cv_cc_flag_unknown_warning_option=yes 5391else case e in #( 5392 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5393esac 5394fi 5395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5396esac 5397fi 5398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5399printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5401 CFLAGS="$xorg_testset_save_CFLAGS" 5402fi 5403 5404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5407 fi 5408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5410printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5411if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5412then : 5413 printf %s "(cached) " >&6 5414else case e in #( 5415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5416/* end confdefs.h. */ 5417int i; 5418_ACEOF 5419if ac_fn_c_try_compile "$LINENO" 5420then : 5421 xorg_cv_cc_flag_unused_command_line_argument=yes 5422else case e in #( 5423 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5424esac 5425fi 5426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5427esac 5428fi 5429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5430printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5432 CFLAGS="$xorg_testset_save_CFLAGS" 5433fi 5434 5435found="no" 5436 5437 if test $found = "no" ; then 5438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5440 fi 5441 5442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5444 fi 5445 5446 CFLAGS="$CFLAGS -Wformat=2" 5447 5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5449printf %s "checking if $CC supports -Wformat=2... " >&6; } 5450 cacheid=xorg_cv_cc_flag__Wformat_2 5451 if eval test \${$cacheid+y} 5452then : 5453 printf %s "(cached) " >&6 5454else case e in #( 5455 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5456/* end confdefs.h. */ 5457int i; 5458int 5459main (void) 5460{ 5461 5462 ; 5463 return 0; 5464} 5465_ACEOF 5466if ac_fn_c_try_link "$LINENO" 5467then : 5468 eval $cacheid=yes 5469else case e in #( 5470 e) eval $cacheid=no ;; 5471esac 5472fi 5473rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5474 conftest$ac_exeext conftest.$ac_ext ;; 5475esac 5476fi 5477 5478 5479 CFLAGS="$xorg_testset_save_CFLAGS" 5480 5481 eval supported=\$$cacheid 5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5483printf "%s\n" "$supported" >&6; } 5484 if test "$supported" = "yes" ; then 5485 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5486 found="yes" 5487 fi 5488 fi 5489 5490 if test $found = "no" ; then 5491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5493 fi 5494 5495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5497 fi 5498 5499 CFLAGS="$CFLAGS -Wformat" 5500 5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5502printf %s "checking if $CC supports -Wformat... " >&6; } 5503 cacheid=xorg_cv_cc_flag__Wformat 5504 if eval test \${$cacheid+y} 5505then : 5506 printf %s "(cached) " >&6 5507else case e in #( 5508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5509/* end confdefs.h. */ 5510int i; 5511int 5512main (void) 5513{ 5514 5515 ; 5516 return 0; 5517} 5518_ACEOF 5519if ac_fn_c_try_link "$LINENO" 5520then : 5521 eval $cacheid=yes 5522else case e in #( 5523 e) eval $cacheid=no ;; 5524esac 5525fi 5526rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5527 conftest$ac_exeext conftest.$ac_ext ;; 5528esac 5529fi 5530 5531 5532 CFLAGS="$xorg_testset_save_CFLAGS" 5533 5534 eval supported=\$$cacheid 5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5536printf "%s\n" "$supported" >&6; } 5537 if test "$supported" = "yes" ; then 5538 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5539 found="yes" 5540 fi 5541 fi 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559xorg_testset_save_CFLAGS="$CFLAGS" 5560 5561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5564printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5565if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5566then : 5567 printf %s "(cached) " >&6 5568else case e in #( 5569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5570/* end confdefs.h. */ 5571int i; 5572_ACEOF 5573if ac_fn_c_try_compile "$LINENO" 5574then : 5575 xorg_cv_cc_flag_unknown_warning_option=yes 5576else case e in #( 5577 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5578esac 5579fi 5580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5581esac 5582fi 5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5584printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5586 CFLAGS="$xorg_testset_save_CFLAGS" 5587fi 5588 5589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5592 fi 5593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5595printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5596if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5597then : 5598 printf %s "(cached) " >&6 5599else case e in #( 5600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5601/* end confdefs.h. */ 5602int i; 5603_ACEOF 5604if ac_fn_c_try_compile "$LINENO" 5605then : 5606 xorg_cv_cc_flag_unused_command_line_argument=yes 5607else case e in #( 5608 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5609esac 5610fi 5611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5612esac 5613fi 5614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5615printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5617 CFLAGS="$xorg_testset_save_CFLAGS" 5618fi 5619 5620found="no" 5621 5622 if test $found = "no" ; then 5623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5625 fi 5626 5627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5629 fi 5630 5631 CFLAGS="$CFLAGS -Wstrict-prototypes" 5632 5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5634printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5635 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5636 if eval test \${$cacheid+y} 5637then : 5638 printf %s "(cached) " >&6 5639else case e in #( 5640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5641/* end confdefs.h. */ 5642int i; 5643int 5644main (void) 5645{ 5646 5647 ; 5648 return 0; 5649} 5650_ACEOF 5651if ac_fn_c_try_link "$LINENO" 5652then : 5653 eval $cacheid=yes 5654else case e in #( 5655 e) eval $cacheid=no ;; 5656esac 5657fi 5658rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5659 conftest$ac_exeext conftest.$ac_ext ;; 5660esac 5661fi 5662 5663 5664 CFLAGS="$xorg_testset_save_CFLAGS" 5665 5666 eval supported=\$$cacheid 5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5668printf "%s\n" "$supported" >&6; } 5669 if test "$supported" = "yes" ; then 5670 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5671 found="yes" 5672 fi 5673 fi 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689xorg_testset_save_CFLAGS="$CFLAGS" 5690 5691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5694printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5695if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5696then : 5697 printf %s "(cached) " >&6 5698else case e in #( 5699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5700/* end confdefs.h. */ 5701int i; 5702_ACEOF 5703if ac_fn_c_try_compile "$LINENO" 5704then : 5705 xorg_cv_cc_flag_unknown_warning_option=yes 5706else case e in #( 5707 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5708esac 5709fi 5710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5711esac 5712fi 5713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5714printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5716 CFLAGS="$xorg_testset_save_CFLAGS" 5717fi 5718 5719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5722 fi 5723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5725printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5726if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5727then : 5728 printf %s "(cached) " >&6 5729else case e in #( 5730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5731/* end confdefs.h. */ 5732int i; 5733_ACEOF 5734if ac_fn_c_try_compile "$LINENO" 5735then : 5736 xorg_cv_cc_flag_unused_command_line_argument=yes 5737else case e in #( 5738 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5739esac 5740fi 5741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5742esac 5743fi 5744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5745printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5747 CFLAGS="$xorg_testset_save_CFLAGS" 5748fi 5749 5750found="no" 5751 5752 if test $found = "no" ; then 5753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5755 fi 5756 5757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5759 fi 5760 5761 CFLAGS="$CFLAGS -Wmissing-prototypes" 5762 5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5764printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5765 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5766 if eval test \${$cacheid+y} 5767then : 5768 printf %s "(cached) " >&6 5769else case e in #( 5770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5771/* end confdefs.h. */ 5772int i; 5773int 5774main (void) 5775{ 5776 5777 ; 5778 return 0; 5779} 5780_ACEOF 5781if ac_fn_c_try_link "$LINENO" 5782then : 5783 eval $cacheid=yes 5784else case e in #( 5785 e) eval $cacheid=no ;; 5786esac 5787fi 5788rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5789 conftest$ac_exeext conftest.$ac_ext ;; 5790esac 5791fi 5792 5793 5794 CFLAGS="$xorg_testset_save_CFLAGS" 5795 5796 eval supported=\$$cacheid 5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5798printf "%s\n" "$supported" >&6; } 5799 if test "$supported" = "yes" ; then 5800 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5801 found="yes" 5802 fi 5803 fi 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819xorg_testset_save_CFLAGS="$CFLAGS" 5820 5821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5824printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5825if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5826then : 5827 printf %s "(cached) " >&6 5828else case e in #( 5829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5830/* end confdefs.h. */ 5831int i; 5832_ACEOF 5833if ac_fn_c_try_compile "$LINENO" 5834then : 5835 xorg_cv_cc_flag_unknown_warning_option=yes 5836else case e in #( 5837 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5838esac 5839fi 5840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5841esac 5842fi 5843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5846 CFLAGS="$xorg_testset_save_CFLAGS" 5847fi 5848 5849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5852 fi 5853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5856if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5857then : 5858 printf %s "(cached) " >&6 5859else case e in #( 5860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5861/* end confdefs.h. */ 5862int i; 5863_ACEOF 5864if ac_fn_c_try_compile "$LINENO" 5865then : 5866 xorg_cv_cc_flag_unused_command_line_argument=yes 5867else case e in #( 5868 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5869esac 5870fi 5871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5872esac 5873fi 5874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5875printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5877 CFLAGS="$xorg_testset_save_CFLAGS" 5878fi 5879 5880found="no" 5881 5882 if test $found = "no" ; then 5883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5885 fi 5886 5887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5889 fi 5890 5891 CFLAGS="$CFLAGS -Wnested-externs" 5892 5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5894printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5895 cacheid=xorg_cv_cc_flag__Wnested_externs 5896 if eval test \${$cacheid+y} 5897then : 5898 printf %s "(cached) " >&6 5899else case e in #( 5900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5901/* end confdefs.h. */ 5902int i; 5903int 5904main (void) 5905{ 5906 5907 ; 5908 return 0; 5909} 5910_ACEOF 5911if ac_fn_c_try_link "$LINENO" 5912then : 5913 eval $cacheid=yes 5914else case e in #( 5915 e) eval $cacheid=no ;; 5916esac 5917fi 5918rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5919 conftest$ac_exeext conftest.$ac_ext ;; 5920esac 5921fi 5922 5923 5924 CFLAGS="$xorg_testset_save_CFLAGS" 5925 5926 eval supported=\$$cacheid 5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5928printf "%s\n" "$supported" >&6; } 5929 if test "$supported" = "yes" ; then 5930 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5931 found="yes" 5932 fi 5933 fi 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949xorg_testset_save_CFLAGS="$CFLAGS" 5950 5951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5954printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5955if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5956then : 5957 printf %s "(cached) " >&6 5958else case e in #( 5959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5960/* end confdefs.h. */ 5961int i; 5962_ACEOF 5963if ac_fn_c_try_compile "$LINENO" 5964then : 5965 xorg_cv_cc_flag_unknown_warning_option=yes 5966else case e in #( 5967 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5968esac 5969fi 5970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5971esac 5972fi 5973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5974printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5976 CFLAGS="$xorg_testset_save_CFLAGS" 5977fi 5978 5979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5982 fi 5983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5985printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5986if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5987then : 5988 printf %s "(cached) " >&6 5989else case e in #( 5990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5991/* end confdefs.h. */ 5992int i; 5993_ACEOF 5994if ac_fn_c_try_compile "$LINENO" 5995then : 5996 xorg_cv_cc_flag_unused_command_line_argument=yes 5997else case e in #( 5998 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5999esac 6000fi 6001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6002esac 6003fi 6004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6005printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6007 CFLAGS="$xorg_testset_save_CFLAGS" 6008fi 6009 6010found="no" 6011 6012 if test $found = "no" ; then 6013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6015 fi 6016 6017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6019 fi 6020 6021 CFLAGS="$CFLAGS -Wbad-function-cast" 6022 6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6024printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6025 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6026 if eval test \${$cacheid+y} 6027then : 6028 printf %s "(cached) " >&6 6029else case e in #( 6030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6031/* end confdefs.h. */ 6032int i; 6033int 6034main (void) 6035{ 6036 6037 ; 6038 return 0; 6039} 6040_ACEOF 6041if ac_fn_c_try_link "$LINENO" 6042then : 6043 eval $cacheid=yes 6044else case e in #( 6045 e) eval $cacheid=no ;; 6046esac 6047fi 6048rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6049 conftest$ac_exeext conftest.$ac_ext ;; 6050esac 6051fi 6052 6053 6054 CFLAGS="$xorg_testset_save_CFLAGS" 6055 6056 eval supported=\$$cacheid 6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6058printf "%s\n" "$supported" >&6; } 6059 if test "$supported" = "yes" ; then 6060 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6061 found="yes" 6062 fi 6063 fi 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079xorg_testset_save_CFLAGS="$CFLAGS" 6080 6081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6084printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6085if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6086then : 6087 printf %s "(cached) " >&6 6088else case e in #( 6089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6090/* end confdefs.h. */ 6091int i; 6092_ACEOF 6093if ac_fn_c_try_compile "$LINENO" 6094then : 6095 xorg_cv_cc_flag_unknown_warning_option=yes 6096else case e in #( 6097 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6098esac 6099fi 6100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6101esac 6102fi 6103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6104printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6106 CFLAGS="$xorg_testset_save_CFLAGS" 6107fi 6108 6109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6112 fi 6113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6115printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6116if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6117then : 6118 printf %s "(cached) " >&6 6119else case e in #( 6120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6121/* end confdefs.h. */ 6122int i; 6123_ACEOF 6124if ac_fn_c_try_compile "$LINENO" 6125then : 6126 xorg_cv_cc_flag_unused_command_line_argument=yes 6127else case e in #( 6128 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6129esac 6130fi 6131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6132esac 6133fi 6134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6135printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6137 CFLAGS="$xorg_testset_save_CFLAGS" 6138fi 6139 6140found="no" 6141 6142 if test $found = "no" ; then 6143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6145 fi 6146 6147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6149 fi 6150 6151 CFLAGS="$CFLAGS -Wold-style-definition" 6152 6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6154printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6155 cacheid=xorg_cv_cc_flag__Wold_style_definition 6156 if eval test \${$cacheid+y} 6157then : 6158 printf %s "(cached) " >&6 6159else case e in #( 6160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6161/* end confdefs.h. */ 6162int i; 6163int 6164main (void) 6165{ 6166 6167 ; 6168 return 0; 6169} 6170_ACEOF 6171if ac_fn_c_try_link "$LINENO" 6172then : 6173 eval $cacheid=yes 6174else case e in #( 6175 e) eval $cacheid=no ;; 6176esac 6177fi 6178rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6179 conftest$ac_exeext conftest.$ac_ext ;; 6180esac 6181fi 6182 6183 6184 CFLAGS="$xorg_testset_save_CFLAGS" 6185 6186 eval supported=\$$cacheid 6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6188printf "%s\n" "$supported" >&6; } 6189 if test "$supported" = "yes" ; then 6190 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6191 found="yes" 6192 fi 6193 fi 6194 6195 if test $found = "no" ; then 6196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6198 fi 6199 6200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6202 fi 6203 6204 CFLAGS="$CFLAGS -fd" 6205 6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6207printf %s "checking if $CC supports -fd... " >&6; } 6208 cacheid=xorg_cv_cc_flag__fd 6209 if eval test \${$cacheid+y} 6210then : 6211 printf %s "(cached) " >&6 6212else case e in #( 6213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6214/* end confdefs.h. */ 6215int i; 6216int 6217main (void) 6218{ 6219 6220 ; 6221 return 0; 6222} 6223_ACEOF 6224if ac_fn_c_try_link "$LINENO" 6225then : 6226 eval $cacheid=yes 6227else case e in #( 6228 e) eval $cacheid=no ;; 6229esac 6230fi 6231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6232 conftest$ac_exeext conftest.$ac_ext ;; 6233esac 6234fi 6235 6236 6237 CFLAGS="$xorg_testset_save_CFLAGS" 6238 6239 eval supported=\$$cacheid 6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6241printf "%s\n" "$supported" >&6; } 6242 if test "$supported" = "yes" ; then 6243 BASE_CFLAGS="$BASE_CFLAGS -fd" 6244 found="yes" 6245 fi 6246 fi 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262xorg_testset_save_CFLAGS="$CFLAGS" 6263 6264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6267printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6268if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6269then : 6270 printf %s "(cached) " >&6 6271else case e in #( 6272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6273/* end confdefs.h. */ 6274int i; 6275_ACEOF 6276if ac_fn_c_try_compile "$LINENO" 6277then : 6278 xorg_cv_cc_flag_unknown_warning_option=yes 6279else case e in #( 6280 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6281esac 6282fi 6283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6284esac 6285fi 6286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6287printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6289 CFLAGS="$xorg_testset_save_CFLAGS" 6290fi 6291 6292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6295 fi 6296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6298printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6299if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6300then : 6301 printf %s "(cached) " >&6 6302else case e in #( 6303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6304/* end confdefs.h. */ 6305int i; 6306_ACEOF 6307if ac_fn_c_try_compile "$LINENO" 6308then : 6309 xorg_cv_cc_flag_unused_command_line_argument=yes 6310else case e in #( 6311 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6312esac 6313fi 6314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6315esac 6316fi 6317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6318printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6320 CFLAGS="$xorg_testset_save_CFLAGS" 6321fi 6322 6323found="no" 6324 6325 if test $found = "no" ; then 6326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6328 fi 6329 6330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6332 fi 6333 6334 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6335 6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6337printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6338 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6339 if eval test \${$cacheid+y} 6340then : 6341 printf %s "(cached) " >&6 6342else case e in #( 6343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6344/* end confdefs.h. */ 6345int i; 6346int 6347main (void) 6348{ 6349 6350 ; 6351 return 0; 6352} 6353_ACEOF 6354if ac_fn_c_try_link "$LINENO" 6355then : 6356 eval $cacheid=yes 6357else case e in #( 6358 e) eval $cacheid=no ;; 6359esac 6360fi 6361rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6362 conftest$ac_exeext conftest.$ac_ext ;; 6363esac 6364fi 6365 6366 6367 CFLAGS="$xorg_testset_save_CFLAGS" 6368 6369 eval supported=\$$cacheid 6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6371printf "%s\n" "$supported" >&6; } 6372 if test "$supported" = "yes" ; then 6373 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6374 found="yes" 6375 fi 6376 fi 6377 6378 6379 6380 6381 6382# This chunk adds additional warnings that could catch undesired effects. 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396xorg_testset_save_CFLAGS="$CFLAGS" 6397 6398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6401printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6402if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6403then : 6404 printf %s "(cached) " >&6 6405else case e in #( 6406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6407/* end confdefs.h. */ 6408int i; 6409_ACEOF 6410if ac_fn_c_try_compile "$LINENO" 6411then : 6412 xorg_cv_cc_flag_unknown_warning_option=yes 6413else case e in #( 6414 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6415esac 6416fi 6417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6418esac 6419fi 6420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6423 CFLAGS="$xorg_testset_save_CFLAGS" 6424fi 6425 6426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6429 fi 6430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6433if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6434then : 6435 printf %s "(cached) " >&6 6436else case e in #( 6437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6438/* end confdefs.h. */ 6439int i; 6440_ACEOF 6441if ac_fn_c_try_compile "$LINENO" 6442then : 6443 xorg_cv_cc_flag_unused_command_line_argument=yes 6444else case e in #( 6445 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6446esac 6447fi 6448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6449esac 6450fi 6451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6452printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6454 CFLAGS="$xorg_testset_save_CFLAGS" 6455fi 6456 6457found="no" 6458 6459 if test $found = "no" ; then 6460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6462 fi 6463 6464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6466 fi 6467 6468 CFLAGS="$CFLAGS -Wunused" 6469 6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6471printf %s "checking if $CC supports -Wunused... " >&6; } 6472 cacheid=xorg_cv_cc_flag__Wunused 6473 if eval test \${$cacheid+y} 6474then : 6475 printf %s "(cached) " >&6 6476else case e in #( 6477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6478/* end confdefs.h. */ 6479int i; 6480int 6481main (void) 6482{ 6483 6484 ; 6485 return 0; 6486} 6487_ACEOF 6488if ac_fn_c_try_link "$LINENO" 6489then : 6490 eval $cacheid=yes 6491else case e in #( 6492 e) eval $cacheid=no ;; 6493esac 6494fi 6495rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6496 conftest$ac_exeext conftest.$ac_ext ;; 6497esac 6498fi 6499 6500 6501 CFLAGS="$xorg_testset_save_CFLAGS" 6502 6503 eval supported=\$$cacheid 6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6505printf "%s\n" "$supported" >&6; } 6506 if test "$supported" = "yes" ; then 6507 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6508 found="yes" 6509 fi 6510 fi 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526xorg_testset_save_CFLAGS="$CFLAGS" 6527 6528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6531printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6532if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6533then : 6534 printf %s "(cached) " >&6 6535else case e in #( 6536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6537/* end confdefs.h. */ 6538int i; 6539_ACEOF 6540if ac_fn_c_try_compile "$LINENO" 6541then : 6542 xorg_cv_cc_flag_unknown_warning_option=yes 6543else case e in #( 6544 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6545esac 6546fi 6547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6548esac 6549fi 6550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6551printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6553 CFLAGS="$xorg_testset_save_CFLAGS" 6554fi 6555 6556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6559 fi 6560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6562printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6563if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6564then : 6565 printf %s "(cached) " >&6 6566else case e in #( 6567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6568/* end confdefs.h. */ 6569int i; 6570_ACEOF 6571if ac_fn_c_try_compile "$LINENO" 6572then : 6573 xorg_cv_cc_flag_unused_command_line_argument=yes 6574else case e in #( 6575 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6576esac 6577fi 6578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6579esac 6580fi 6581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6582printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6584 CFLAGS="$xorg_testset_save_CFLAGS" 6585fi 6586 6587found="no" 6588 6589 if test $found = "no" ; then 6590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6592 fi 6593 6594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6596 fi 6597 6598 CFLAGS="$CFLAGS -Wuninitialized" 6599 6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6601printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6602 cacheid=xorg_cv_cc_flag__Wuninitialized 6603 if eval test \${$cacheid+y} 6604then : 6605 printf %s "(cached) " >&6 6606else case e in #( 6607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6608/* end confdefs.h. */ 6609int i; 6610int 6611main (void) 6612{ 6613 6614 ; 6615 return 0; 6616} 6617_ACEOF 6618if ac_fn_c_try_link "$LINENO" 6619then : 6620 eval $cacheid=yes 6621else case e in #( 6622 e) eval $cacheid=no ;; 6623esac 6624fi 6625rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6626 conftest$ac_exeext conftest.$ac_ext ;; 6627esac 6628fi 6629 6630 6631 CFLAGS="$xorg_testset_save_CFLAGS" 6632 6633 eval supported=\$$cacheid 6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6635printf "%s\n" "$supported" >&6; } 6636 if test "$supported" = "yes" ; then 6637 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6638 found="yes" 6639 fi 6640 fi 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656xorg_testset_save_CFLAGS="$CFLAGS" 6657 6658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6661printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6662if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6663then : 6664 printf %s "(cached) " >&6 6665else case e in #( 6666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6667/* end confdefs.h. */ 6668int i; 6669_ACEOF 6670if ac_fn_c_try_compile "$LINENO" 6671then : 6672 xorg_cv_cc_flag_unknown_warning_option=yes 6673else case e in #( 6674 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6675esac 6676fi 6677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6678esac 6679fi 6680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6681printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6683 CFLAGS="$xorg_testset_save_CFLAGS" 6684fi 6685 6686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6689 fi 6690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6692printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6693if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6694then : 6695 printf %s "(cached) " >&6 6696else case e in #( 6697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6698/* end confdefs.h. */ 6699int i; 6700_ACEOF 6701if ac_fn_c_try_compile "$LINENO" 6702then : 6703 xorg_cv_cc_flag_unused_command_line_argument=yes 6704else case e in #( 6705 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6706esac 6707fi 6708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6709esac 6710fi 6711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6714 CFLAGS="$xorg_testset_save_CFLAGS" 6715fi 6716 6717found="no" 6718 6719 if test $found = "no" ; then 6720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6722 fi 6723 6724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6726 fi 6727 6728 CFLAGS="$CFLAGS -Wshadow" 6729 6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6731printf %s "checking if $CC supports -Wshadow... " >&6; } 6732 cacheid=xorg_cv_cc_flag__Wshadow 6733 if eval test \${$cacheid+y} 6734then : 6735 printf %s "(cached) " >&6 6736else case e in #( 6737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6738/* end confdefs.h. */ 6739int i; 6740int 6741main (void) 6742{ 6743 6744 ; 6745 return 0; 6746} 6747_ACEOF 6748if ac_fn_c_try_link "$LINENO" 6749then : 6750 eval $cacheid=yes 6751else case e in #( 6752 e) eval $cacheid=no ;; 6753esac 6754fi 6755rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6756 conftest$ac_exeext conftest.$ac_ext ;; 6757esac 6758fi 6759 6760 6761 CFLAGS="$xorg_testset_save_CFLAGS" 6762 6763 eval supported=\$$cacheid 6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6765printf "%s\n" "$supported" >&6; } 6766 if test "$supported" = "yes" ; then 6767 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6768 found="yes" 6769 fi 6770 fi 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786xorg_testset_save_CFLAGS="$CFLAGS" 6787 6788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6792if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6793then : 6794 printf %s "(cached) " >&6 6795else case e in #( 6796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6797/* end confdefs.h. */ 6798int i; 6799_ACEOF 6800if ac_fn_c_try_compile "$LINENO" 6801then : 6802 xorg_cv_cc_flag_unknown_warning_option=yes 6803else case e in #( 6804 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6805esac 6806fi 6807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6808esac 6809fi 6810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6811printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6813 CFLAGS="$xorg_testset_save_CFLAGS" 6814fi 6815 6816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6819 fi 6820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6822printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6823if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6824then : 6825 printf %s "(cached) " >&6 6826else case e in #( 6827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6828/* end confdefs.h. */ 6829int i; 6830_ACEOF 6831if ac_fn_c_try_compile "$LINENO" 6832then : 6833 xorg_cv_cc_flag_unused_command_line_argument=yes 6834else case e in #( 6835 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6836esac 6837fi 6838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6839esac 6840fi 6841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6842printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6844 CFLAGS="$xorg_testset_save_CFLAGS" 6845fi 6846 6847found="no" 6848 6849 if test $found = "no" ; then 6850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6852 fi 6853 6854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6856 fi 6857 6858 CFLAGS="$CFLAGS -Wmissing-noreturn" 6859 6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6861printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6862 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6863 if eval test \${$cacheid+y} 6864then : 6865 printf %s "(cached) " >&6 6866else case e in #( 6867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6868/* end confdefs.h. */ 6869int i; 6870int 6871main (void) 6872{ 6873 6874 ; 6875 return 0; 6876} 6877_ACEOF 6878if ac_fn_c_try_link "$LINENO" 6879then : 6880 eval $cacheid=yes 6881else case e in #( 6882 e) eval $cacheid=no ;; 6883esac 6884fi 6885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6886 conftest$ac_exeext conftest.$ac_ext ;; 6887esac 6888fi 6889 6890 6891 CFLAGS="$xorg_testset_save_CFLAGS" 6892 6893 eval supported=\$$cacheid 6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6895printf "%s\n" "$supported" >&6; } 6896 if test "$supported" = "yes" ; then 6897 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6898 found="yes" 6899 fi 6900 fi 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916xorg_testset_save_CFLAGS="$CFLAGS" 6917 6918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6922if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6923then : 6924 printf %s "(cached) " >&6 6925else case e in #( 6926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6927/* end confdefs.h. */ 6928int i; 6929_ACEOF 6930if ac_fn_c_try_compile "$LINENO" 6931then : 6932 xorg_cv_cc_flag_unknown_warning_option=yes 6933else case e in #( 6934 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6935esac 6936fi 6937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6938esac 6939fi 6940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6943 CFLAGS="$xorg_testset_save_CFLAGS" 6944fi 6945 6946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6949 fi 6950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6953if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6954then : 6955 printf %s "(cached) " >&6 6956else case e in #( 6957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6958/* end confdefs.h. */ 6959int i; 6960_ACEOF 6961if ac_fn_c_try_compile "$LINENO" 6962then : 6963 xorg_cv_cc_flag_unused_command_line_argument=yes 6964else case e in #( 6965 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6966esac 6967fi 6968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6969esac 6970fi 6971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6974 CFLAGS="$xorg_testset_save_CFLAGS" 6975fi 6976 6977found="no" 6978 6979 if test $found = "no" ; then 6980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6982 fi 6983 6984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6986 fi 6987 6988 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6989 6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6991printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6992 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6993 if eval test \${$cacheid+y} 6994then : 6995 printf %s "(cached) " >&6 6996else case e in #( 6997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6998/* end confdefs.h. */ 6999int i; 7000int 7001main (void) 7002{ 7003 7004 ; 7005 return 0; 7006} 7007_ACEOF 7008if ac_fn_c_try_link "$LINENO" 7009then : 7010 eval $cacheid=yes 7011else case e in #( 7012 e) eval $cacheid=no ;; 7013esac 7014fi 7015rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7016 conftest$ac_exeext conftest.$ac_ext ;; 7017esac 7018fi 7019 7020 7021 CFLAGS="$xorg_testset_save_CFLAGS" 7022 7023 eval supported=\$$cacheid 7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7025printf "%s\n" "$supported" >&6; } 7026 if test "$supported" = "yes" ; then 7027 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7028 found="yes" 7029 fi 7030 fi 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046xorg_testset_save_CFLAGS="$CFLAGS" 7047 7048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7051printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7052if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7053then : 7054 printf %s "(cached) " >&6 7055else case e in #( 7056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7057/* end confdefs.h. */ 7058int i; 7059_ACEOF 7060if ac_fn_c_try_compile "$LINENO" 7061then : 7062 xorg_cv_cc_flag_unknown_warning_option=yes 7063else case e in #( 7064 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7065esac 7066fi 7067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7068esac 7069fi 7070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7071printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7073 CFLAGS="$xorg_testset_save_CFLAGS" 7074fi 7075 7076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7079 fi 7080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7082printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7083if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7084then : 7085 printf %s "(cached) " >&6 7086else case e in #( 7087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088/* end confdefs.h. */ 7089int i; 7090_ACEOF 7091if ac_fn_c_try_compile "$LINENO" 7092then : 7093 xorg_cv_cc_flag_unused_command_line_argument=yes 7094else case e in #( 7095 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7096esac 7097fi 7098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7099esac 7100fi 7101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7102printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7104 CFLAGS="$xorg_testset_save_CFLAGS" 7105fi 7106 7107found="no" 7108 7109 if test $found = "no" ; then 7110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7112 fi 7113 7114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7116 fi 7117 7118 CFLAGS="$CFLAGS -Wredundant-decls" 7119 7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7121printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7122 cacheid=xorg_cv_cc_flag__Wredundant_decls 7123 if eval test \${$cacheid+y} 7124then : 7125 printf %s "(cached) " >&6 7126else case e in #( 7127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7128/* end confdefs.h. */ 7129int i; 7130int 7131main (void) 7132{ 7133 7134 ; 7135 return 0; 7136} 7137_ACEOF 7138if ac_fn_c_try_link "$LINENO" 7139then : 7140 eval $cacheid=yes 7141else case e in #( 7142 e) eval $cacheid=no ;; 7143esac 7144fi 7145rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7146 conftest$ac_exeext conftest.$ac_ext ;; 7147esac 7148fi 7149 7150 7151 CFLAGS="$xorg_testset_save_CFLAGS" 7152 7153 eval supported=\$$cacheid 7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7155printf "%s\n" "$supported" >&6; } 7156 if test "$supported" = "yes" ; then 7157 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7158 found="yes" 7159 fi 7160 fi 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176xorg_testset_save_CFLAGS="$CFLAGS" 7177 7178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7182if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7183then : 7184 printf %s "(cached) " >&6 7185else case e in #( 7186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187/* end confdefs.h. */ 7188int i; 7189_ACEOF 7190if ac_fn_c_try_compile "$LINENO" 7191then : 7192 xorg_cv_cc_flag_unknown_warning_option=yes 7193else case e in #( 7194 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7195esac 7196fi 7197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7198esac 7199fi 7200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7201printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7203 CFLAGS="$xorg_testset_save_CFLAGS" 7204fi 7205 7206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7209 fi 7210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7212printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7213if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7214then : 7215 printf %s "(cached) " >&6 7216else case e in #( 7217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218/* end confdefs.h. */ 7219int i; 7220_ACEOF 7221if ac_fn_c_try_compile "$LINENO" 7222then : 7223 xorg_cv_cc_flag_unused_command_line_argument=yes 7224else case e in #( 7225 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7226esac 7227fi 7228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7229esac 7230fi 7231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7234 CFLAGS="$xorg_testset_save_CFLAGS" 7235fi 7236 7237found="no" 7238 7239 if test $found = "no" ; then 7240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7242 fi 7243 7244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7246 fi 7247 7248 CFLAGS="$CFLAGS -Wlogical-op" 7249 7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7251printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7252 cacheid=xorg_cv_cc_flag__Wlogical_op 7253 if eval test \${$cacheid+y} 7254then : 7255 printf %s "(cached) " >&6 7256else case e in #( 7257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7258/* end confdefs.h. */ 7259int i; 7260int 7261main (void) 7262{ 7263 7264 ; 7265 return 0; 7266} 7267_ACEOF 7268if ac_fn_c_try_link "$LINENO" 7269then : 7270 eval $cacheid=yes 7271else case e in #( 7272 e) eval $cacheid=no ;; 7273esac 7274fi 7275rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7276 conftest$ac_exeext conftest.$ac_ext ;; 7277esac 7278fi 7279 7280 7281 CFLAGS="$xorg_testset_save_CFLAGS" 7282 7283 eval supported=\$$cacheid 7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7285printf "%s\n" "$supported" >&6; } 7286 if test "$supported" = "yes" ; then 7287 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7288 found="yes" 7289 fi 7290 fi 7291 7292 7293 7294# These are currently disabled because they are noisy. They will be enabled 7295# in the future once the codebase is sufficiently modernized to silence 7296# them. For now, I don't want them to drown out the other warnings. 7297# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7298# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7299# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7300 7301# Turn some warnings into errors, so we don't accidentally get successful builds 7302# when there are problems that should be fixed. 7303 7304if test "x$SELECTIVE_WERROR" = "xyes" ; then 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318xorg_testset_save_CFLAGS="$CFLAGS" 7319 7320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7323printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7324if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7325then : 7326 printf %s "(cached) " >&6 7327else case e in #( 7328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7329/* end confdefs.h. */ 7330int i; 7331_ACEOF 7332if ac_fn_c_try_compile "$LINENO" 7333then : 7334 xorg_cv_cc_flag_unknown_warning_option=yes 7335else case e in #( 7336 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7337esac 7338fi 7339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7340esac 7341fi 7342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7345 CFLAGS="$xorg_testset_save_CFLAGS" 7346fi 7347 7348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7351 fi 7352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7355if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7356then : 7357 printf %s "(cached) " >&6 7358else case e in #( 7359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7360/* end confdefs.h. */ 7361int i; 7362_ACEOF 7363if ac_fn_c_try_compile "$LINENO" 7364then : 7365 xorg_cv_cc_flag_unused_command_line_argument=yes 7366else case e in #( 7367 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7368esac 7369fi 7370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7371esac 7372fi 7373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7374printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7376 CFLAGS="$xorg_testset_save_CFLAGS" 7377fi 7378 7379found="no" 7380 7381 if test $found = "no" ; then 7382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7384 fi 7385 7386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7388 fi 7389 7390 CFLAGS="$CFLAGS -Werror=implicit" 7391 7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7393printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7394 cacheid=xorg_cv_cc_flag__Werror_implicit 7395 if eval test \${$cacheid+y} 7396then : 7397 printf %s "(cached) " >&6 7398else case e in #( 7399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7400/* end confdefs.h. */ 7401int i; 7402int 7403main (void) 7404{ 7405 7406 ; 7407 return 0; 7408} 7409_ACEOF 7410if ac_fn_c_try_link "$LINENO" 7411then : 7412 eval $cacheid=yes 7413else case e in #( 7414 e) eval $cacheid=no ;; 7415esac 7416fi 7417rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7418 conftest$ac_exeext conftest.$ac_ext ;; 7419esac 7420fi 7421 7422 7423 CFLAGS="$xorg_testset_save_CFLAGS" 7424 7425 eval supported=\$$cacheid 7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7427printf "%s\n" "$supported" >&6; } 7428 if test "$supported" = "yes" ; then 7429 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7430 found="yes" 7431 fi 7432 fi 7433 7434 if test $found = "no" ; then 7435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7437 fi 7438 7439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7441 fi 7442 7443 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7444 7445 { 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 7446printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7447 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7448 if eval test \${$cacheid+y} 7449then : 7450 printf %s "(cached) " >&6 7451else case e in #( 7452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453/* end confdefs.h. */ 7454int i; 7455int 7456main (void) 7457{ 7458 7459 ; 7460 return 0; 7461} 7462_ACEOF 7463if ac_fn_c_try_link "$LINENO" 7464then : 7465 eval $cacheid=yes 7466else case e in #( 7467 e) eval $cacheid=no ;; 7468esac 7469fi 7470rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7471 conftest$ac_exeext conftest.$ac_ext ;; 7472esac 7473fi 7474 7475 7476 CFLAGS="$xorg_testset_save_CFLAGS" 7477 7478 eval supported=\$$cacheid 7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7480printf "%s\n" "$supported" >&6; } 7481 if test "$supported" = "yes" ; then 7482 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7483 found="yes" 7484 fi 7485 fi 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501xorg_testset_save_CFLAGS="$CFLAGS" 7502 7503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7506printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7507if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7508then : 7509 printf %s "(cached) " >&6 7510else case e in #( 7511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7512/* end confdefs.h. */ 7513int i; 7514_ACEOF 7515if ac_fn_c_try_compile "$LINENO" 7516then : 7517 xorg_cv_cc_flag_unknown_warning_option=yes 7518else case e in #( 7519 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7520esac 7521fi 7522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7523esac 7524fi 7525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7526printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7528 CFLAGS="$xorg_testset_save_CFLAGS" 7529fi 7530 7531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7534 fi 7535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7537printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7538if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7539then : 7540 printf %s "(cached) " >&6 7541else case e in #( 7542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7543/* end confdefs.h. */ 7544int i; 7545_ACEOF 7546if ac_fn_c_try_compile "$LINENO" 7547then : 7548 xorg_cv_cc_flag_unused_command_line_argument=yes 7549else case e in #( 7550 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7551esac 7552fi 7553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7554esac 7555fi 7556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7557printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7559 CFLAGS="$xorg_testset_save_CFLAGS" 7560fi 7561 7562found="no" 7563 7564 if test $found = "no" ; then 7565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7567 fi 7568 7569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7571 fi 7572 7573 CFLAGS="$CFLAGS -Werror=nonnull" 7574 7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7576printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7577 cacheid=xorg_cv_cc_flag__Werror_nonnull 7578 if eval test \${$cacheid+y} 7579then : 7580 printf %s "(cached) " >&6 7581else case e in #( 7582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7583/* end confdefs.h. */ 7584int i; 7585int 7586main (void) 7587{ 7588 7589 ; 7590 return 0; 7591} 7592_ACEOF 7593if ac_fn_c_try_link "$LINENO" 7594then : 7595 eval $cacheid=yes 7596else case e in #( 7597 e) eval $cacheid=no ;; 7598esac 7599fi 7600rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7601 conftest$ac_exeext conftest.$ac_ext ;; 7602esac 7603fi 7604 7605 7606 CFLAGS="$xorg_testset_save_CFLAGS" 7607 7608 eval supported=\$$cacheid 7609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7610printf "%s\n" "$supported" >&6; } 7611 if test "$supported" = "yes" ; then 7612 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7613 found="yes" 7614 fi 7615 fi 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631xorg_testset_save_CFLAGS="$CFLAGS" 7632 7633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7636printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7637if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7638then : 7639 printf %s "(cached) " >&6 7640else case e in #( 7641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7642/* end confdefs.h. */ 7643int i; 7644_ACEOF 7645if ac_fn_c_try_compile "$LINENO" 7646then : 7647 xorg_cv_cc_flag_unknown_warning_option=yes 7648else case e in #( 7649 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7650esac 7651fi 7652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7653esac 7654fi 7655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7656printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7658 CFLAGS="$xorg_testset_save_CFLAGS" 7659fi 7660 7661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7664 fi 7665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7667printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7668if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7669then : 7670 printf %s "(cached) " >&6 7671else case e in #( 7672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674int i; 7675_ACEOF 7676if ac_fn_c_try_compile "$LINENO" 7677then : 7678 xorg_cv_cc_flag_unused_command_line_argument=yes 7679else case e in #( 7680 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7681esac 7682fi 7683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7684esac 7685fi 7686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7687printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7689 CFLAGS="$xorg_testset_save_CFLAGS" 7690fi 7691 7692found="no" 7693 7694 if test $found = "no" ; then 7695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7697 fi 7698 7699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7701 fi 7702 7703 CFLAGS="$CFLAGS -Werror=init-self" 7704 7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7706printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7707 cacheid=xorg_cv_cc_flag__Werror_init_self 7708 if eval test \${$cacheid+y} 7709then : 7710 printf %s "(cached) " >&6 7711else case e in #( 7712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7713/* end confdefs.h. */ 7714int i; 7715int 7716main (void) 7717{ 7718 7719 ; 7720 return 0; 7721} 7722_ACEOF 7723if ac_fn_c_try_link "$LINENO" 7724then : 7725 eval $cacheid=yes 7726else case e in #( 7727 e) eval $cacheid=no ;; 7728esac 7729fi 7730rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7731 conftest$ac_exeext conftest.$ac_ext ;; 7732esac 7733fi 7734 7735 7736 CFLAGS="$xorg_testset_save_CFLAGS" 7737 7738 eval supported=\$$cacheid 7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7740printf "%s\n" "$supported" >&6; } 7741 if test "$supported" = "yes" ; then 7742 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7743 found="yes" 7744 fi 7745 fi 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761xorg_testset_save_CFLAGS="$CFLAGS" 7762 7763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7766printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7767if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7768then : 7769 printf %s "(cached) " >&6 7770else case e in #( 7771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7772/* end confdefs.h. */ 7773int i; 7774_ACEOF 7775if ac_fn_c_try_compile "$LINENO" 7776then : 7777 xorg_cv_cc_flag_unknown_warning_option=yes 7778else case e in #( 7779 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7780esac 7781fi 7782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7783esac 7784fi 7785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7786printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7788 CFLAGS="$xorg_testset_save_CFLAGS" 7789fi 7790 7791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7794 fi 7795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7797printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7798if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7799then : 7800 printf %s "(cached) " >&6 7801else case e in #( 7802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7803/* end confdefs.h. */ 7804int i; 7805_ACEOF 7806if ac_fn_c_try_compile "$LINENO" 7807then : 7808 xorg_cv_cc_flag_unused_command_line_argument=yes 7809else case e in #( 7810 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7811esac 7812fi 7813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7814esac 7815fi 7816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7817printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7818 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7819 CFLAGS="$xorg_testset_save_CFLAGS" 7820fi 7821 7822found="no" 7823 7824 if test $found = "no" ; then 7825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7827 fi 7828 7829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7831 fi 7832 7833 CFLAGS="$CFLAGS -Werror=main" 7834 7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7836printf %s "checking if $CC supports -Werror=main... " >&6; } 7837 cacheid=xorg_cv_cc_flag__Werror_main 7838 if eval test \${$cacheid+y} 7839then : 7840 printf %s "(cached) " >&6 7841else case e in #( 7842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7843/* end confdefs.h. */ 7844int i; 7845int 7846main (void) 7847{ 7848 7849 ; 7850 return 0; 7851} 7852_ACEOF 7853if ac_fn_c_try_link "$LINENO" 7854then : 7855 eval $cacheid=yes 7856else case e in #( 7857 e) eval $cacheid=no ;; 7858esac 7859fi 7860rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7861 conftest$ac_exeext conftest.$ac_ext ;; 7862esac 7863fi 7864 7865 7866 CFLAGS="$xorg_testset_save_CFLAGS" 7867 7868 eval supported=\$$cacheid 7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7870printf "%s\n" "$supported" >&6; } 7871 if test "$supported" = "yes" ; then 7872 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7873 found="yes" 7874 fi 7875 fi 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891xorg_testset_save_CFLAGS="$CFLAGS" 7892 7893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7896printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7897if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7898then : 7899 printf %s "(cached) " >&6 7900else case e in #( 7901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7902/* end confdefs.h. */ 7903int i; 7904_ACEOF 7905if ac_fn_c_try_compile "$LINENO" 7906then : 7907 xorg_cv_cc_flag_unknown_warning_option=yes 7908else case e in #( 7909 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7910esac 7911fi 7912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7913esac 7914fi 7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7916printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7918 CFLAGS="$xorg_testset_save_CFLAGS" 7919fi 7920 7921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7924 fi 7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7927printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7928if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7929then : 7930 printf %s "(cached) " >&6 7931else case e in #( 7932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7933/* end confdefs.h. */ 7934int i; 7935_ACEOF 7936if ac_fn_c_try_compile "$LINENO" 7937then : 7938 xorg_cv_cc_flag_unused_command_line_argument=yes 7939else case e in #( 7940 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7941esac 7942fi 7943rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7944esac 7945fi 7946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7947printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7949 CFLAGS="$xorg_testset_save_CFLAGS" 7950fi 7951 7952found="no" 7953 7954 if test $found = "no" ; then 7955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7957 fi 7958 7959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7961 fi 7962 7963 CFLAGS="$CFLAGS -Werror=missing-braces" 7964 7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7966printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7967 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7968 if eval test \${$cacheid+y} 7969then : 7970 printf %s "(cached) " >&6 7971else case e in #( 7972 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7973/* end confdefs.h. */ 7974int i; 7975int 7976main (void) 7977{ 7978 7979 ; 7980 return 0; 7981} 7982_ACEOF 7983if ac_fn_c_try_link "$LINENO" 7984then : 7985 eval $cacheid=yes 7986else case e in #( 7987 e) eval $cacheid=no ;; 7988esac 7989fi 7990rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7991 conftest$ac_exeext conftest.$ac_ext ;; 7992esac 7993fi 7994 7995 7996 CFLAGS="$xorg_testset_save_CFLAGS" 7997 7998 eval supported=\$$cacheid 7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8000printf "%s\n" "$supported" >&6; } 8001 if test "$supported" = "yes" ; then 8002 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8003 found="yes" 8004 fi 8005 fi 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021xorg_testset_save_CFLAGS="$CFLAGS" 8022 8023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8027if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8028then : 8029 printf %s "(cached) " >&6 8030else case e in #( 8031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8032/* end confdefs.h. */ 8033int i; 8034_ACEOF 8035if ac_fn_c_try_compile "$LINENO" 8036then : 8037 xorg_cv_cc_flag_unknown_warning_option=yes 8038else case e in #( 8039 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8040esac 8041fi 8042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8043esac 8044fi 8045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8046printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8048 CFLAGS="$xorg_testset_save_CFLAGS" 8049fi 8050 8051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8054 fi 8055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8057printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8058if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8059then : 8060 printf %s "(cached) " >&6 8061else case e in #( 8062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8063/* end confdefs.h. */ 8064int i; 8065_ACEOF 8066if ac_fn_c_try_compile "$LINENO" 8067then : 8068 xorg_cv_cc_flag_unused_command_line_argument=yes 8069else case e in #( 8070 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8071esac 8072fi 8073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8074esac 8075fi 8076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8077printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8079 CFLAGS="$xorg_testset_save_CFLAGS" 8080fi 8081 8082found="no" 8083 8084 if test $found = "no" ; then 8085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8087 fi 8088 8089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8091 fi 8092 8093 CFLAGS="$CFLAGS -Werror=sequence-point" 8094 8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8096printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8097 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8098 if eval test \${$cacheid+y} 8099then : 8100 printf %s "(cached) " >&6 8101else case e in #( 8102 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8103/* end confdefs.h. */ 8104int i; 8105int 8106main (void) 8107{ 8108 8109 ; 8110 return 0; 8111} 8112_ACEOF 8113if ac_fn_c_try_link "$LINENO" 8114then : 8115 eval $cacheid=yes 8116else case e in #( 8117 e) eval $cacheid=no ;; 8118esac 8119fi 8120rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8121 conftest$ac_exeext conftest.$ac_ext ;; 8122esac 8123fi 8124 8125 8126 CFLAGS="$xorg_testset_save_CFLAGS" 8127 8128 eval supported=\$$cacheid 8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8130printf "%s\n" "$supported" >&6; } 8131 if test "$supported" = "yes" ; then 8132 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8133 found="yes" 8134 fi 8135 fi 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151xorg_testset_save_CFLAGS="$CFLAGS" 8152 8153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8156printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8157if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8158then : 8159 printf %s "(cached) " >&6 8160else case e in #( 8161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8162/* end confdefs.h. */ 8163int i; 8164_ACEOF 8165if ac_fn_c_try_compile "$LINENO" 8166then : 8167 xorg_cv_cc_flag_unknown_warning_option=yes 8168else case e in #( 8169 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8170esac 8171fi 8172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8173esac 8174fi 8175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8176printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8178 CFLAGS="$xorg_testset_save_CFLAGS" 8179fi 8180 8181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8184 fi 8185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8187printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8188if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8189then : 8190 printf %s "(cached) " >&6 8191else case e in #( 8192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8193/* end confdefs.h. */ 8194int i; 8195_ACEOF 8196if ac_fn_c_try_compile "$LINENO" 8197then : 8198 xorg_cv_cc_flag_unused_command_line_argument=yes 8199else case e in #( 8200 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8201esac 8202fi 8203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8204esac 8205fi 8206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8207printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8209 CFLAGS="$xorg_testset_save_CFLAGS" 8210fi 8211 8212found="no" 8213 8214 if test $found = "no" ; then 8215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8217 fi 8218 8219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8221 fi 8222 8223 CFLAGS="$CFLAGS -Werror=return-type" 8224 8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8226printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8227 cacheid=xorg_cv_cc_flag__Werror_return_type 8228 if eval test \${$cacheid+y} 8229then : 8230 printf %s "(cached) " >&6 8231else case e in #( 8232 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8233/* end confdefs.h. */ 8234int i; 8235int 8236main (void) 8237{ 8238 8239 ; 8240 return 0; 8241} 8242_ACEOF 8243if ac_fn_c_try_link "$LINENO" 8244then : 8245 eval $cacheid=yes 8246else case e in #( 8247 e) eval $cacheid=no ;; 8248esac 8249fi 8250rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8251 conftest$ac_exeext conftest.$ac_ext ;; 8252esac 8253fi 8254 8255 8256 CFLAGS="$xorg_testset_save_CFLAGS" 8257 8258 eval supported=\$$cacheid 8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8260printf "%s\n" "$supported" >&6; } 8261 if test "$supported" = "yes" ; then 8262 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8263 found="yes" 8264 fi 8265 fi 8266 8267 if test $found = "no" ; then 8268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8270 fi 8271 8272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8274 fi 8275 8276 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8277 8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8279printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8280 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8281 if eval test \${$cacheid+y} 8282then : 8283 printf %s "(cached) " >&6 8284else case e in #( 8285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8286/* end confdefs.h. */ 8287int i; 8288int 8289main (void) 8290{ 8291 8292 ; 8293 return 0; 8294} 8295_ACEOF 8296if ac_fn_c_try_link "$LINENO" 8297then : 8298 eval $cacheid=yes 8299else case e in #( 8300 e) eval $cacheid=no ;; 8301esac 8302fi 8303rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8304 conftest$ac_exeext conftest.$ac_ext ;; 8305esac 8306fi 8307 8308 8309 CFLAGS="$xorg_testset_save_CFLAGS" 8310 8311 eval supported=\$$cacheid 8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8313printf "%s\n" "$supported" >&6; } 8314 if test "$supported" = "yes" ; then 8315 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8316 found="yes" 8317 fi 8318 fi 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334xorg_testset_save_CFLAGS="$CFLAGS" 8335 8336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8339printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8340if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8341then : 8342 printf %s "(cached) " >&6 8343else case e in #( 8344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8345/* end confdefs.h. */ 8346int i; 8347_ACEOF 8348if ac_fn_c_try_compile "$LINENO" 8349then : 8350 xorg_cv_cc_flag_unknown_warning_option=yes 8351else case e in #( 8352 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8353esac 8354fi 8355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8356esac 8357fi 8358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8359printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8361 CFLAGS="$xorg_testset_save_CFLAGS" 8362fi 8363 8364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8367 fi 8368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8370printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8371if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8372then : 8373 printf %s "(cached) " >&6 8374else case e in #( 8375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8376/* end confdefs.h. */ 8377int i; 8378_ACEOF 8379if ac_fn_c_try_compile "$LINENO" 8380then : 8381 xorg_cv_cc_flag_unused_command_line_argument=yes 8382else case e in #( 8383 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8384esac 8385fi 8386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8387esac 8388fi 8389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8390printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8392 CFLAGS="$xorg_testset_save_CFLAGS" 8393fi 8394 8395found="no" 8396 8397 if test $found = "no" ; then 8398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8400 fi 8401 8402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8404 fi 8405 8406 CFLAGS="$CFLAGS -Werror=trigraphs" 8407 8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8409printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8410 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8411 if eval test \${$cacheid+y} 8412then : 8413 printf %s "(cached) " >&6 8414else case e in #( 8415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8416/* end confdefs.h. */ 8417int i; 8418int 8419main (void) 8420{ 8421 8422 ; 8423 return 0; 8424} 8425_ACEOF 8426if ac_fn_c_try_link "$LINENO" 8427then : 8428 eval $cacheid=yes 8429else case e in #( 8430 e) eval $cacheid=no ;; 8431esac 8432fi 8433rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8434 conftest$ac_exeext conftest.$ac_ext ;; 8435esac 8436fi 8437 8438 8439 CFLAGS="$xorg_testset_save_CFLAGS" 8440 8441 eval supported=\$$cacheid 8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8443printf "%s\n" "$supported" >&6; } 8444 if test "$supported" = "yes" ; then 8445 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8446 found="yes" 8447 fi 8448 fi 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464xorg_testset_save_CFLAGS="$CFLAGS" 8465 8466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8469printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8470if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8471then : 8472 printf %s "(cached) " >&6 8473else case e in #( 8474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8475/* end confdefs.h. */ 8476int i; 8477_ACEOF 8478if ac_fn_c_try_compile "$LINENO" 8479then : 8480 xorg_cv_cc_flag_unknown_warning_option=yes 8481else case e in #( 8482 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8483esac 8484fi 8485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8486esac 8487fi 8488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8491 CFLAGS="$xorg_testset_save_CFLAGS" 8492fi 8493 8494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8497 fi 8498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8501if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8502then : 8503 printf %s "(cached) " >&6 8504else case e in #( 8505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8506/* end confdefs.h. */ 8507int i; 8508_ACEOF 8509if ac_fn_c_try_compile "$LINENO" 8510then : 8511 xorg_cv_cc_flag_unused_command_line_argument=yes 8512else case e in #( 8513 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8514esac 8515fi 8516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8517esac 8518fi 8519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8520printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8522 CFLAGS="$xorg_testset_save_CFLAGS" 8523fi 8524 8525found="no" 8526 8527 if test $found = "no" ; then 8528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8530 fi 8531 8532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8534 fi 8535 8536 CFLAGS="$CFLAGS -Werror=array-bounds" 8537 8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8539printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8540 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8541 if eval test \${$cacheid+y} 8542then : 8543 printf %s "(cached) " >&6 8544else case e in #( 8545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8546/* end confdefs.h. */ 8547int i; 8548int 8549main (void) 8550{ 8551 8552 ; 8553 return 0; 8554} 8555_ACEOF 8556if ac_fn_c_try_link "$LINENO" 8557then : 8558 eval $cacheid=yes 8559else case e in #( 8560 e) eval $cacheid=no ;; 8561esac 8562fi 8563rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8564 conftest$ac_exeext conftest.$ac_ext ;; 8565esac 8566fi 8567 8568 8569 CFLAGS="$xorg_testset_save_CFLAGS" 8570 8571 eval supported=\$$cacheid 8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8573printf "%s\n" "$supported" >&6; } 8574 if test "$supported" = "yes" ; then 8575 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8576 found="yes" 8577 fi 8578 fi 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594xorg_testset_save_CFLAGS="$CFLAGS" 8595 8596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8600if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8601then : 8602 printf %s "(cached) " >&6 8603else case e in #( 8604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8605/* end confdefs.h. */ 8606int i; 8607_ACEOF 8608if ac_fn_c_try_compile "$LINENO" 8609then : 8610 xorg_cv_cc_flag_unknown_warning_option=yes 8611else case e in #( 8612 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8613esac 8614fi 8615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8616esac 8617fi 8618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8619printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8621 CFLAGS="$xorg_testset_save_CFLAGS" 8622fi 8623 8624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8627 fi 8628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8630printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8631if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8632then : 8633 printf %s "(cached) " >&6 8634else case e in #( 8635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8636/* end confdefs.h. */ 8637int i; 8638_ACEOF 8639if ac_fn_c_try_compile "$LINENO" 8640then : 8641 xorg_cv_cc_flag_unused_command_line_argument=yes 8642else case e in #( 8643 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8644esac 8645fi 8646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8647esac 8648fi 8649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8650printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8652 CFLAGS="$xorg_testset_save_CFLAGS" 8653fi 8654 8655found="no" 8656 8657 if test $found = "no" ; then 8658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8660 fi 8661 8662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8664 fi 8665 8666 CFLAGS="$CFLAGS -Werror=write-strings" 8667 8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8669printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8670 cacheid=xorg_cv_cc_flag__Werror_write_strings 8671 if eval test \${$cacheid+y} 8672then : 8673 printf %s "(cached) " >&6 8674else case e in #( 8675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8676/* end confdefs.h. */ 8677int i; 8678int 8679main (void) 8680{ 8681 8682 ; 8683 return 0; 8684} 8685_ACEOF 8686if ac_fn_c_try_link "$LINENO" 8687then : 8688 eval $cacheid=yes 8689else case e in #( 8690 e) eval $cacheid=no ;; 8691esac 8692fi 8693rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8694 conftest$ac_exeext conftest.$ac_ext ;; 8695esac 8696fi 8697 8698 8699 CFLAGS="$xorg_testset_save_CFLAGS" 8700 8701 eval supported=\$$cacheid 8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8703printf "%s\n" "$supported" >&6; } 8704 if test "$supported" = "yes" ; then 8705 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8706 found="yes" 8707 fi 8708 fi 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724xorg_testset_save_CFLAGS="$CFLAGS" 8725 8726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8729printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8730if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8731then : 8732 printf %s "(cached) " >&6 8733else case e in #( 8734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8735/* end confdefs.h. */ 8736int i; 8737_ACEOF 8738if ac_fn_c_try_compile "$LINENO" 8739then : 8740 xorg_cv_cc_flag_unknown_warning_option=yes 8741else case e in #( 8742 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8743esac 8744fi 8745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8746esac 8747fi 8748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8749printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8751 CFLAGS="$xorg_testset_save_CFLAGS" 8752fi 8753 8754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8757 fi 8758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8760printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8761if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8762then : 8763 printf %s "(cached) " >&6 8764else case e in #( 8765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8766/* end confdefs.h. */ 8767int i; 8768_ACEOF 8769if ac_fn_c_try_compile "$LINENO" 8770then : 8771 xorg_cv_cc_flag_unused_command_line_argument=yes 8772else case e in #( 8773 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8774esac 8775fi 8776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8777esac 8778fi 8779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8780printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8782 CFLAGS="$xorg_testset_save_CFLAGS" 8783fi 8784 8785found="no" 8786 8787 if test $found = "no" ; then 8788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8790 fi 8791 8792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8794 fi 8795 8796 CFLAGS="$CFLAGS -Werror=address" 8797 8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8799printf %s "checking if $CC supports -Werror=address... " >&6; } 8800 cacheid=xorg_cv_cc_flag__Werror_address 8801 if eval test \${$cacheid+y} 8802then : 8803 printf %s "(cached) " >&6 8804else case e in #( 8805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8806/* end confdefs.h. */ 8807int i; 8808int 8809main (void) 8810{ 8811 8812 ; 8813 return 0; 8814} 8815_ACEOF 8816if ac_fn_c_try_link "$LINENO" 8817then : 8818 eval $cacheid=yes 8819else case e in #( 8820 e) eval $cacheid=no ;; 8821esac 8822fi 8823rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8824 conftest$ac_exeext conftest.$ac_ext ;; 8825esac 8826fi 8827 8828 8829 CFLAGS="$xorg_testset_save_CFLAGS" 8830 8831 eval supported=\$$cacheid 8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8833printf "%s\n" "$supported" >&6; } 8834 if test "$supported" = "yes" ; then 8835 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8836 found="yes" 8837 fi 8838 fi 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854xorg_testset_save_CFLAGS="$CFLAGS" 8855 8856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8859printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8860if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8861then : 8862 printf %s "(cached) " >&6 8863else case e in #( 8864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8865/* end confdefs.h. */ 8866int i; 8867_ACEOF 8868if ac_fn_c_try_compile "$LINENO" 8869then : 8870 xorg_cv_cc_flag_unknown_warning_option=yes 8871else case e in #( 8872 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8873esac 8874fi 8875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8876esac 8877fi 8878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8879printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8881 CFLAGS="$xorg_testset_save_CFLAGS" 8882fi 8883 8884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8887 fi 8888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8890printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8891if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8892then : 8893 printf %s "(cached) " >&6 8894else case e in #( 8895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8896/* end confdefs.h. */ 8897int i; 8898_ACEOF 8899if ac_fn_c_try_compile "$LINENO" 8900then : 8901 xorg_cv_cc_flag_unused_command_line_argument=yes 8902else case e in #( 8903 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8904esac 8905fi 8906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8907esac 8908fi 8909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8912 CFLAGS="$xorg_testset_save_CFLAGS" 8913fi 8914 8915found="no" 8916 8917 if test $found = "no" ; then 8918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8920 fi 8921 8922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8924 fi 8925 8926 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8927 8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8929printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8930 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8931 if eval test \${$cacheid+y} 8932then : 8933 printf %s "(cached) " >&6 8934else case e in #( 8935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8936/* end confdefs.h. */ 8937int i; 8938int 8939main (void) 8940{ 8941 8942 ; 8943 return 0; 8944} 8945_ACEOF 8946if ac_fn_c_try_link "$LINENO" 8947then : 8948 eval $cacheid=yes 8949else case e in #( 8950 e) eval $cacheid=no ;; 8951esac 8952fi 8953rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8954 conftest$ac_exeext conftest.$ac_ext ;; 8955esac 8956fi 8957 8958 8959 CFLAGS="$xorg_testset_save_CFLAGS" 8960 8961 eval supported=\$$cacheid 8962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8963printf "%s\n" "$supported" >&6; } 8964 if test "$supported" = "yes" ; then 8965 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8966 found="yes" 8967 fi 8968 fi 8969 8970 if test $found = "no" ; then 8971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8973 fi 8974 8975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8977 fi 8978 8979 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8980 8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8982printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8983 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8984 if eval test \${$cacheid+y} 8985then : 8986 printf %s "(cached) " >&6 8987else case e in #( 8988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8989/* end confdefs.h. */ 8990int i; 8991int 8992main (void) 8993{ 8994 8995 ; 8996 return 0; 8997} 8998_ACEOF 8999if ac_fn_c_try_link "$LINENO" 9000then : 9001 eval $cacheid=yes 9002else case e in #( 9003 e) eval $cacheid=no ;; 9004esac 9005fi 9006rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9007 conftest$ac_exeext conftest.$ac_ext ;; 9008esac 9009fi 9010 9011 9012 CFLAGS="$xorg_testset_save_CFLAGS" 9013 9014 eval supported=\$$cacheid 9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9016printf "%s\n" "$supported" >&6; } 9017 if test "$supported" = "yes" ; then 9018 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9019 found="yes" 9020 fi 9021 fi 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037xorg_testset_save_CFLAGS="$CFLAGS" 9038 9039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9042printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9043if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9044then : 9045 printf %s "(cached) " >&6 9046else case e in #( 9047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9048/* end confdefs.h. */ 9049int i; 9050_ACEOF 9051if ac_fn_c_try_compile "$LINENO" 9052then : 9053 xorg_cv_cc_flag_unknown_warning_option=yes 9054else case e in #( 9055 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9056esac 9057fi 9058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9059esac 9060fi 9061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9062printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9064 CFLAGS="$xorg_testset_save_CFLAGS" 9065fi 9066 9067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9070 fi 9071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9073printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9074if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9075then : 9076 printf %s "(cached) " >&6 9077else case e in #( 9078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9079/* end confdefs.h. */ 9080int i; 9081_ACEOF 9082if ac_fn_c_try_compile "$LINENO" 9083then : 9084 xorg_cv_cc_flag_unused_command_line_argument=yes 9085else case e in #( 9086 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9087esac 9088fi 9089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9090esac 9091fi 9092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9093printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9095 CFLAGS="$xorg_testset_save_CFLAGS" 9096fi 9097 9098found="no" 9099 9100 if test $found = "no" ; then 9101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9103 fi 9104 9105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9107 fi 9108 9109 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9110 9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9112printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9113 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9114 if eval test \${$cacheid+y} 9115then : 9116 printf %s "(cached) " >&6 9117else case e in #( 9118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9119/* end confdefs.h. */ 9120int i; 9121int 9122main (void) 9123{ 9124 9125 ; 9126 return 0; 9127} 9128_ACEOF 9129if ac_fn_c_try_link "$LINENO" 9130then : 9131 eval $cacheid=yes 9132else case e in #( 9133 e) eval $cacheid=no ;; 9134esac 9135fi 9136rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9137 conftest$ac_exeext conftest.$ac_ext ;; 9138esac 9139fi 9140 9141 9142 CFLAGS="$xorg_testset_save_CFLAGS" 9143 9144 eval supported=\$$cacheid 9145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9146printf "%s\n" "$supported" >&6; } 9147 if test "$supported" = "yes" ; then 9148 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9149 found="yes" 9150 fi 9151 fi 9152 9153 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9154else 9155{ 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 9156printf "%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;} 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170xorg_testset_save_CFLAGS="$CFLAGS" 9171 9172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9176if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9177then : 9178 printf %s "(cached) " >&6 9179else case e in #( 9180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9181/* end confdefs.h. */ 9182int i; 9183_ACEOF 9184if ac_fn_c_try_compile "$LINENO" 9185then : 9186 xorg_cv_cc_flag_unknown_warning_option=yes 9187else case e in #( 9188 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9189esac 9190fi 9191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9192esac 9193fi 9194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9197 CFLAGS="$xorg_testset_save_CFLAGS" 9198fi 9199 9200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9203 fi 9204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9207if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9208then : 9209 printf %s "(cached) " >&6 9210else case e in #( 9211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9212/* end confdefs.h. */ 9213int i; 9214_ACEOF 9215if ac_fn_c_try_compile "$LINENO" 9216then : 9217 xorg_cv_cc_flag_unused_command_line_argument=yes 9218else case e in #( 9219 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9220esac 9221fi 9222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9223esac 9224fi 9225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9226printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9228 CFLAGS="$xorg_testset_save_CFLAGS" 9229fi 9230 9231found="no" 9232 9233 if test $found = "no" ; then 9234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9236 fi 9237 9238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9240 fi 9241 9242 CFLAGS="$CFLAGS -Wimplicit" 9243 9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9245printf %s "checking if $CC supports -Wimplicit... " >&6; } 9246 cacheid=xorg_cv_cc_flag__Wimplicit 9247 if eval test \${$cacheid+y} 9248then : 9249 printf %s "(cached) " >&6 9250else case e in #( 9251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9252/* end confdefs.h. */ 9253int i; 9254int 9255main (void) 9256{ 9257 9258 ; 9259 return 0; 9260} 9261_ACEOF 9262if ac_fn_c_try_link "$LINENO" 9263then : 9264 eval $cacheid=yes 9265else case e in #( 9266 e) eval $cacheid=no ;; 9267esac 9268fi 9269rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9270 conftest$ac_exeext conftest.$ac_ext ;; 9271esac 9272fi 9273 9274 9275 CFLAGS="$xorg_testset_save_CFLAGS" 9276 9277 eval supported=\$$cacheid 9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9279printf "%s\n" "$supported" >&6; } 9280 if test "$supported" = "yes" ; then 9281 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9282 found="yes" 9283 fi 9284 fi 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300xorg_testset_save_CFLAGS="$CFLAGS" 9301 9302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9306if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9307then : 9308 printf %s "(cached) " >&6 9309else case e in #( 9310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311/* end confdefs.h. */ 9312int i; 9313_ACEOF 9314if ac_fn_c_try_compile "$LINENO" 9315then : 9316 xorg_cv_cc_flag_unknown_warning_option=yes 9317else case e in #( 9318 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9319esac 9320fi 9321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9322esac 9323fi 9324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9325printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9327 CFLAGS="$xorg_testset_save_CFLAGS" 9328fi 9329 9330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9333 fi 9334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9336printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9337if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9338then : 9339 printf %s "(cached) " >&6 9340else case e in #( 9341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9342/* end confdefs.h. */ 9343int i; 9344_ACEOF 9345if ac_fn_c_try_compile "$LINENO" 9346then : 9347 xorg_cv_cc_flag_unused_command_line_argument=yes 9348else case e in #( 9349 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9350esac 9351fi 9352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9353esac 9354fi 9355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9356printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9358 CFLAGS="$xorg_testset_save_CFLAGS" 9359fi 9360 9361found="no" 9362 9363 if test $found = "no" ; then 9364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9366 fi 9367 9368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9370 fi 9371 9372 CFLAGS="$CFLAGS -Wnonnull" 9373 9374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9375printf %s "checking if $CC supports -Wnonnull... " >&6; } 9376 cacheid=xorg_cv_cc_flag__Wnonnull 9377 if eval test \${$cacheid+y} 9378then : 9379 printf %s "(cached) " >&6 9380else case e in #( 9381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9382/* end confdefs.h. */ 9383int i; 9384int 9385main (void) 9386{ 9387 9388 ; 9389 return 0; 9390} 9391_ACEOF 9392if ac_fn_c_try_link "$LINENO" 9393then : 9394 eval $cacheid=yes 9395else case e in #( 9396 e) eval $cacheid=no ;; 9397esac 9398fi 9399rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9400 conftest$ac_exeext conftest.$ac_ext ;; 9401esac 9402fi 9403 9404 9405 CFLAGS="$xorg_testset_save_CFLAGS" 9406 9407 eval supported=\$$cacheid 9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9409printf "%s\n" "$supported" >&6; } 9410 if test "$supported" = "yes" ; then 9411 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9412 found="yes" 9413 fi 9414 fi 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430xorg_testset_save_CFLAGS="$CFLAGS" 9431 9432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9435printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9436if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9437then : 9438 printf %s "(cached) " >&6 9439else case e in #( 9440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9441/* end confdefs.h. */ 9442int i; 9443_ACEOF 9444if ac_fn_c_try_compile "$LINENO" 9445then : 9446 xorg_cv_cc_flag_unknown_warning_option=yes 9447else case e in #( 9448 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9449esac 9450fi 9451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9452esac 9453fi 9454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9455printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9457 CFLAGS="$xorg_testset_save_CFLAGS" 9458fi 9459 9460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9463 fi 9464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9466printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9467if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9468then : 9469 printf %s "(cached) " >&6 9470else case e in #( 9471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9472/* end confdefs.h. */ 9473int i; 9474_ACEOF 9475if ac_fn_c_try_compile "$LINENO" 9476then : 9477 xorg_cv_cc_flag_unused_command_line_argument=yes 9478else case e in #( 9479 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9480esac 9481fi 9482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9483esac 9484fi 9485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9486printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9488 CFLAGS="$xorg_testset_save_CFLAGS" 9489fi 9490 9491found="no" 9492 9493 if test $found = "no" ; then 9494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9496 fi 9497 9498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9500 fi 9501 9502 CFLAGS="$CFLAGS -Winit-self" 9503 9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9505printf %s "checking if $CC supports -Winit-self... " >&6; } 9506 cacheid=xorg_cv_cc_flag__Winit_self 9507 if eval test \${$cacheid+y} 9508then : 9509 printf %s "(cached) " >&6 9510else case e in #( 9511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9512/* end confdefs.h. */ 9513int i; 9514int 9515main (void) 9516{ 9517 9518 ; 9519 return 0; 9520} 9521_ACEOF 9522if ac_fn_c_try_link "$LINENO" 9523then : 9524 eval $cacheid=yes 9525else case e in #( 9526 e) eval $cacheid=no ;; 9527esac 9528fi 9529rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9530 conftest$ac_exeext conftest.$ac_ext ;; 9531esac 9532fi 9533 9534 9535 CFLAGS="$xorg_testset_save_CFLAGS" 9536 9537 eval supported=\$$cacheid 9538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9539printf "%s\n" "$supported" >&6; } 9540 if test "$supported" = "yes" ; then 9541 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9542 found="yes" 9543 fi 9544 fi 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560xorg_testset_save_CFLAGS="$CFLAGS" 9561 9562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9565printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9566if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9567then : 9568 printf %s "(cached) " >&6 9569else case e in #( 9570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9571/* end confdefs.h. */ 9572int i; 9573_ACEOF 9574if ac_fn_c_try_compile "$LINENO" 9575then : 9576 xorg_cv_cc_flag_unknown_warning_option=yes 9577else case e in #( 9578 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9579esac 9580fi 9581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9582esac 9583fi 9584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9585printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9587 CFLAGS="$xorg_testset_save_CFLAGS" 9588fi 9589 9590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9593 fi 9594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9596printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9597if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9598then : 9599 printf %s "(cached) " >&6 9600else case e in #( 9601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9602/* end confdefs.h. */ 9603int i; 9604_ACEOF 9605if ac_fn_c_try_compile "$LINENO" 9606then : 9607 xorg_cv_cc_flag_unused_command_line_argument=yes 9608else case e in #( 9609 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9610esac 9611fi 9612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9613esac 9614fi 9615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9616printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9618 CFLAGS="$xorg_testset_save_CFLAGS" 9619fi 9620 9621found="no" 9622 9623 if test $found = "no" ; then 9624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9626 fi 9627 9628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9630 fi 9631 9632 CFLAGS="$CFLAGS -Wmain" 9633 9634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9635printf %s "checking if $CC supports -Wmain... " >&6; } 9636 cacheid=xorg_cv_cc_flag__Wmain 9637 if eval test \${$cacheid+y} 9638then : 9639 printf %s "(cached) " >&6 9640else case e in #( 9641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9642/* end confdefs.h. */ 9643int i; 9644int 9645main (void) 9646{ 9647 9648 ; 9649 return 0; 9650} 9651_ACEOF 9652if ac_fn_c_try_link "$LINENO" 9653then : 9654 eval $cacheid=yes 9655else case e in #( 9656 e) eval $cacheid=no ;; 9657esac 9658fi 9659rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9660 conftest$ac_exeext conftest.$ac_ext ;; 9661esac 9662fi 9663 9664 9665 CFLAGS="$xorg_testset_save_CFLAGS" 9666 9667 eval supported=\$$cacheid 9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9669printf "%s\n" "$supported" >&6; } 9670 if test "$supported" = "yes" ; then 9671 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9672 found="yes" 9673 fi 9674 fi 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690xorg_testset_save_CFLAGS="$CFLAGS" 9691 9692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9695printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9696if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9697then : 9698 printf %s "(cached) " >&6 9699else case e in #( 9700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9701/* end confdefs.h. */ 9702int i; 9703_ACEOF 9704if ac_fn_c_try_compile "$LINENO" 9705then : 9706 xorg_cv_cc_flag_unknown_warning_option=yes 9707else case e in #( 9708 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9709esac 9710fi 9711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9712esac 9713fi 9714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9715printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9717 CFLAGS="$xorg_testset_save_CFLAGS" 9718fi 9719 9720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9723 fi 9724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9726printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9727if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9728then : 9729 printf %s "(cached) " >&6 9730else case e in #( 9731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9732/* end confdefs.h. */ 9733int i; 9734_ACEOF 9735if ac_fn_c_try_compile "$LINENO" 9736then : 9737 xorg_cv_cc_flag_unused_command_line_argument=yes 9738else case e in #( 9739 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9740esac 9741fi 9742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9743esac 9744fi 9745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9746printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9748 CFLAGS="$xorg_testset_save_CFLAGS" 9749fi 9750 9751found="no" 9752 9753 if test $found = "no" ; then 9754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9756 fi 9757 9758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9760 fi 9761 9762 CFLAGS="$CFLAGS -Wmissing-braces" 9763 9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9765printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9766 cacheid=xorg_cv_cc_flag__Wmissing_braces 9767 if eval test \${$cacheid+y} 9768then : 9769 printf %s "(cached) " >&6 9770else case e in #( 9771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9772/* end confdefs.h. */ 9773int i; 9774int 9775main (void) 9776{ 9777 9778 ; 9779 return 0; 9780} 9781_ACEOF 9782if ac_fn_c_try_link "$LINENO" 9783then : 9784 eval $cacheid=yes 9785else case e in #( 9786 e) eval $cacheid=no ;; 9787esac 9788fi 9789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9790 conftest$ac_exeext conftest.$ac_ext ;; 9791esac 9792fi 9793 9794 9795 CFLAGS="$xorg_testset_save_CFLAGS" 9796 9797 eval supported=\$$cacheid 9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9799printf "%s\n" "$supported" >&6; } 9800 if test "$supported" = "yes" ; then 9801 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9802 found="yes" 9803 fi 9804 fi 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820xorg_testset_save_CFLAGS="$CFLAGS" 9821 9822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9825printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9826if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9827then : 9828 printf %s "(cached) " >&6 9829else case e in #( 9830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9831/* end confdefs.h. */ 9832int i; 9833_ACEOF 9834if ac_fn_c_try_compile "$LINENO" 9835then : 9836 xorg_cv_cc_flag_unknown_warning_option=yes 9837else case e in #( 9838 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9839esac 9840fi 9841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9842esac 9843fi 9844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9845printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9847 CFLAGS="$xorg_testset_save_CFLAGS" 9848fi 9849 9850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9853 fi 9854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9856printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9857if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9858then : 9859 printf %s "(cached) " >&6 9860else case e in #( 9861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9862/* end confdefs.h. */ 9863int i; 9864_ACEOF 9865if ac_fn_c_try_compile "$LINENO" 9866then : 9867 xorg_cv_cc_flag_unused_command_line_argument=yes 9868else case e in #( 9869 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9870esac 9871fi 9872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9873esac 9874fi 9875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9876printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9878 CFLAGS="$xorg_testset_save_CFLAGS" 9879fi 9880 9881found="no" 9882 9883 if test $found = "no" ; then 9884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9886 fi 9887 9888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9890 fi 9891 9892 CFLAGS="$CFLAGS -Wsequence-point" 9893 9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9895printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9896 cacheid=xorg_cv_cc_flag__Wsequence_point 9897 if eval test \${$cacheid+y} 9898then : 9899 printf %s "(cached) " >&6 9900else case e in #( 9901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9902/* end confdefs.h. */ 9903int i; 9904int 9905main (void) 9906{ 9907 9908 ; 9909 return 0; 9910} 9911_ACEOF 9912if ac_fn_c_try_link "$LINENO" 9913then : 9914 eval $cacheid=yes 9915else case e in #( 9916 e) eval $cacheid=no ;; 9917esac 9918fi 9919rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9920 conftest$ac_exeext conftest.$ac_ext ;; 9921esac 9922fi 9923 9924 9925 CFLAGS="$xorg_testset_save_CFLAGS" 9926 9927 eval supported=\$$cacheid 9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9929printf "%s\n" "$supported" >&6; } 9930 if test "$supported" = "yes" ; then 9931 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9932 found="yes" 9933 fi 9934 fi 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950xorg_testset_save_CFLAGS="$CFLAGS" 9951 9952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9955printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9956if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9957then : 9958 printf %s "(cached) " >&6 9959else case e in #( 9960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9961/* end confdefs.h. */ 9962int i; 9963_ACEOF 9964if ac_fn_c_try_compile "$LINENO" 9965then : 9966 xorg_cv_cc_flag_unknown_warning_option=yes 9967else case e in #( 9968 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9969esac 9970fi 9971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9972esac 9973fi 9974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9977 CFLAGS="$xorg_testset_save_CFLAGS" 9978fi 9979 9980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9983 fi 9984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9987if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9988then : 9989 printf %s "(cached) " >&6 9990else case e in #( 9991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9992/* end confdefs.h. */ 9993int i; 9994_ACEOF 9995if ac_fn_c_try_compile "$LINENO" 9996then : 9997 xorg_cv_cc_flag_unused_command_line_argument=yes 9998else case e in #( 9999 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10000esac 10001fi 10002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10003esac 10004fi 10005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10006printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10008 CFLAGS="$xorg_testset_save_CFLAGS" 10009fi 10010 10011found="no" 10012 10013 if test $found = "no" ; then 10014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10016 fi 10017 10018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10020 fi 10021 10022 CFLAGS="$CFLAGS -Wreturn-type" 10023 10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10025printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10026 cacheid=xorg_cv_cc_flag__Wreturn_type 10027 if eval test \${$cacheid+y} 10028then : 10029 printf %s "(cached) " >&6 10030else case e in #( 10031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10032/* end confdefs.h. */ 10033int i; 10034int 10035main (void) 10036{ 10037 10038 ; 10039 return 0; 10040} 10041_ACEOF 10042if ac_fn_c_try_link "$LINENO" 10043then : 10044 eval $cacheid=yes 10045else case e in #( 10046 e) eval $cacheid=no ;; 10047esac 10048fi 10049rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10050 conftest$ac_exeext conftest.$ac_ext ;; 10051esac 10052fi 10053 10054 10055 CFLAGS="$xorg_testset_save_CFLAGS" 10056 10057 eval supported=\$$cacheid 10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10059printf "%s\n" "$supported" >&6; } 10060 if test "$supported" = "yes" ; then 10061 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10062 found="yes" 10063 fi 10064 fi 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080xorg_testset_save_CFLAGS="$CFLAGS" 10081 10082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10085printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10086if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10087then : 10088 printf %s "(cached) " >&6 10089else case e in #( 10090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10091/* end confdefs.h. */ 10092int i; 10093_ACEOF 10094if ac_fn_c_try_compile "$LINENO" 10095then : 10096 xorg_cv_cc_flag_unknown_warning_option=yes 10097else case e in #( 10098 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10099esac 10100fi 10101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10102esac 10103fi 10104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10105printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10107 CFLAGS="$xorg_testset_save_CFLAGS" 10108fi 10109 10110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10113 fi 10114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10116printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10117if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10118then : 10119 printf %s "(cached) " >&6 10120else case e in #( 10121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10122/* end confdefs.h. */ 10123int i; 10124_ACEOF 10125if ac_fn_c_try_compile "$LINENO" 10126then : 10127 xorg_cv_cc_flag_unused_command_line_argument=yes 10128else case e in #( 10129 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10130esac 10131fi 10132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10133esac 10134fi 10135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10136printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10138 CFLAGS="$xorg_testset_save_CFLAGS" 10139fi 10140 10141found="no" 10142 10143 if test $found = "no" ; then 10144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10146 fi 10147 10148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10150 fi 10151 10152 CFLAGS="$CFLAGS -Wtrigraphs" 10153 10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10155printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10156 cacheid=xorg_cv_cc_flag__Wtrigraphs 10157 if eval test \${$cacheid+y} 10158then : 10159 printf %s "(cached) " >&6 10160else case e in #( 10161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10162/* end confdefs.h. */ 10163int i; 10164int 10165main (void) 10166{ 10167 10168 ; 10169 return 0; 10170} 10171_ACEOF 10172if ac_fn_c_try_link "$LINENO" 10173then : 10174 eval $cacheid=yes 10175else case e in #( 10176 e) eval $cacheid=no ;; 10177esac 10178fi 10179rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10180 conftest$ac_exeext conftest.$ac_ext ;; 10181esac 10182fi 10183 10184 10185 CFLAGS="$xorg_testset_save_CFLAGS" 10186 10187 eval supported=\$$cacheid 10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10189printf "%s\n" "$supported" >&6; } 10190 if test "$supported" = "yes" ; then 10191 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10192 found="yes" 10193 fi 10194 fi 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210xorg_testset_save_CFLAGS="$CFLAGS" 10211 10212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10215printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10216if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10217then : 10218 printf %s "(cached) " >&6 10219else case e in #( 10220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10221/* end confdefs.h. */ 10222int i; 10223_ACEOF 10224if ac_fn_c_try_compile "$LINENO" 10225then : 10226 xorg_cv_cc_flag_unknown_warning_option=yes 10227else case e in #( 10228 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10229esac 10230fi 10231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10232esac 10233fi 10234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10235printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10237 CFLAGS="$xorg_testset_save_CFLAGS" 10238fi 10239 10240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10243 fi 10244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10246printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10247if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10248then : 10249 printf %s "(cached) " >&6 10250else case e in #( 10251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10252/* end confdefs.h. */ 10253int i; 10254_ACEOF 10255if ac_fn_c_try_compile "$LINENO" 10256then : 10257 xorg_cv_cc_flag_unused_command_line_argument=yes 10258else case e in #( 10259 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10260esac 10261fi 10262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10263esac 10264fi 10265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10268 CFLAGS="$xorg_testset_save_CFLAGS" 10269fi 10270 10271found="no" 10272 10273 if test $found = "no" ; then 10274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10276 fi 10277 10278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10280 fi 10281 10282 CFLAGS="$CFLAGS -Warray-bounds" 10283 10284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10285printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10286 cacheid=xorg_cv_cc_flag__Warray_bounds 10287 if eval test \${$cacheid+y} 10288then : 10289 printf %s "(cached) " >&6 10290else case e in #( 10291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10292/* end confdefs.h. */ 10293int i; 10294int 10295main (void) 10296{ 10297 10298 ; 10299 return 0; 10300} 10301_ACEOF 10302if ac_fn_c_try_link "$LINENO" 10303then : 10304 eval $cacheid=yes 10305else case e in #( 10306 e) eval $cacheid=no ;; 10307esac 10308fi 10309rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10310 conftest$ac_exeext conftest.$ac_ext ;; 10311esac 10312fi 10313 10314 10315 CFLAGS="$xorg_testset_save_CFLAGS" 10316 10317 eval supported=\$$cacheid 10318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10319printf "%s\n" "$supported" >&6; } 10320 if test "$supported" = "yes" ; then 10321 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10322 found="yes" 10323 fi 10324 fi 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340xorg_testset_save_CFLAGS="$CFLAGS" 10341 10342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10345printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10346if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10347then : 10348 printf %s "(cached) " >&6 10349else case e in #( 10350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10351/* end confdefs.h. */ 10352int i; 10353_ACEOF 10354if ac_fn_c_try_compile "$LINENO" 10355then : 10356 xorg_cv_cc_flag_unknown_warning_option=yes 10357else case e in #( 10358 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10359esac 10360fi 10361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10362esac 10363fi 10364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10367 CFLAGS="$xorg_testset_save_CFLAGS" 10368fi 10369 10370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10373 fi 10374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10377if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10378then : 10379 printf %s "(cached) " >&6 10380else case e in #( 10381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10382/* end confdefs.h. */ 10383int i; 10384_ACEOF 10385if ac_fn_c_try_compile "$LINENO" 10386then : 10387 xorg_cv_cc_flag_unused_command_line_argument=yes 10388else case e in #( 10389 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10390esac 10391fi 10392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10393esac 10394fi 10395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10396printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10398 CFLAGS="$xorg_testset_save_CFLAGS" 10399fi 10400 10401found="no" 10402 10403 if test $found = "no" ; then 10404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10406 fi 10407 10408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10410 fi 10411 10412 CFLAGS="$CFLAGS -Wwrite-strings" 10413 10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10415printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10416 cacheid=xorg_cv_cc_flag__Wwrite_strings 10417 if eval test \${$cacheid+y} 10418then : 10419 printf %s "(cached) " >&6 10420else case e in #( 10421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10422/* end confdefs.h. */ 10423int i; 10424int 10425main (void) 10426{ 10427 10428 ; 10429 return 0; 10430} 10431_ACEOF 10432if ac_fn_c_try_link "$LINENO" 10433then : 10434 eval $cacheid=yes 10435else case e in #( 10436 e) eval $cacheid=no ;; 10437esac 10438fi 10439rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10440 conftest$ac_exeext conftest.$ac_ext ;; 10441esac 10442fi 10443 10444 10445 CFLAGS="$xorg_testset_save_CFLAGS" 10446 10447 eval supported=\$$cacheid 10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10449printf "%s\n" "$supported" >&6; } 10450 if test "$supported" = "yes" ; then 10451 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10452 found="yes" 10453 fi 10454 fi 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470xorg_testset_save_CFLAGS="$CFLAGS" 10471 10472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10476if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10477then : 10478 printf %s "(cached) " >&6 10479else case e in #( 10480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10481/* end confdefs.h. */ 10482int i; 10483_ACEOF 10484if ac_fn_c_try_compile "$LINENO" 10485then : 10486 xorg_cv_cc_flag_unknown_warning_option=yes 10487else case e in #( 10488 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10489esac 10490fi 10491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10492esac 10493fi 10494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10495printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10497 CFLAGS="$xorg_testset_save_CFLAGS" 10498fi 10499 10500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10503 fi 10504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10506printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10507if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10508then : 10509 printf %s "(cached) " >&6 10510else case e in #( 10511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10512/* end confdefs.h. */ 10513int i; 10514_ACEOF 10515if ac_fn_c_try_compile "$LINENO" 10516then : 10517 xorg_cv_cc_flag_unused_command_line_argument=yes 10518else case e in #( 10519 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10520esac 10521fi 10522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10523esac 10524fi 10525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10526printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10528 CFLAGS="$xorg_testset_save_CFLAGS" 10529fi 10530 10531found="no" 10532 10533 if test $found = "no" ; then 10534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10536 fi 10537 10538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10540 fi 10541 10542 CFLAGS="$CFLAGS -Waddress" 10543 10544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10545printf %s "checking if $CC supports -Waddress... " >&6; } 10546 cacheid=xorg_cv_cc_flag__Waddress 10547 if eval test \${$cacheid+y} 10548then : 10549 printf %s "(cached) " >&6 10550else case e in #( 10551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10552/* end confdefs.h. */ 10553int i; 10554int 10555main (void) 10556{ 10557 10558 ; 10559 return 0; 10560} 10561_ACEOF 10562if ac_fn_c_try_link "$LINENO" 10563then : 10564 eval $cacheid=yes 10565else case e in #( 10566 e) eval $cacheid=no ;; 10567esac 10568fi 10569rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10570 conftest$ac_exeext conftest.$ac_ext ;; 10571esac 10572fi 10573 10574 10575 CFLAGS="$xorg_testset_save_CFLAGS" 10576 10577 eval supported=\$$cacheid 10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10579printf "%s\n" "$supported" >&6; } 10580 if test "$supported" = "yes" ; then 10581 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10582 found="yes" 10583 fi 10584 fi 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600xorg_testset_save_CFLAGS="$CFLAGS" 10601 10602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10605printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10606if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10607then : 10608 printf %s "(cached) " >&6 10609else case e in #( 10610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10611/* end confdefs.h. */ 10612int i; 10613_ACEOF 10614if ac_fn_c_try_compile "$LINENO" 10615then : 10616 xorg_cv_cc_flag_unknown_warning_option=yes 10617else case e in #( 10618 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10619esac 10620fi 10621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10622esac 10623fi 10624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10627 CFLAGS="$xorg_testset_save_CFLAGS" 10628fi 10629 10630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10633 fi 10634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10637if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10638then : 10639 printf %s "(cached) " >&6 10640else case e in #( 10641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10642/* end confdefs.h. */ 10643int i; 10644_ACEOF 10645if ac_fn_c_try_compile "$LINENO" 10646then : 10647 xorg_cv_cc_flag_unused_command_line_argument=yes 10648else case e in #( 10649 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10650esac 10651fi 10652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10653esac 10654fi 10655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10656printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10658 CFLAGS="$xorg_testset_save_CFLAGS" 10659fi 10660 10661found="no" 10662 10663 if test $found = "no" ; then 10664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10666 fi 10667 10668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10670 fi 10671 10672 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10673 10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10675printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10676 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10677 if eval test \${$cacheid+y} 10678then : 10679 printf %s "(cached) " >&6 10680else case e in #( 10681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10682/* end confdefs.h. */ 10683int i; 10684int 10685main (void) 10686{ 10687 10688 ; 10689 return 0; 10690} 10691_ACEOF 10692if ac_fn_c_try_link "$LINENO" 10693then : 10694 eval $cacheid=yes 10695else case e in #( 10696 e) eval $cacheid=no ;; 10697esac 10698fi 10699rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10700 conftest$ac_exeext conftest.$ac_ext ;; 10701esac 10702fi 10703 10704 10705 CFLAGS="$xorg_testset_save_CFLAGS" 10706 10707 eval supported=\$$cacheid 10708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10709printf "%s\n" "$supported" >&6; } 10710 if test "$supported" = "yes" ; then 10711 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10712 found="yes" 10713 fi 10714 fi 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730xorg_testset_save_CFLAGS="$CFLAGS" 10731 10732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10735printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10736if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10737then : 10738 printf %s "(cached) " >&6 10739else case e in #( 10740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10741/* end confdefs.h. */ 10742int i; 10743_ACEOF 10744if ac_fn_c_try_compile "$LINENO" 10745then : 10746 xorg_cv_cc_flag_unknown_warning_option=yes 10747else case e in #( 10748 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10749esac 10750fi 10751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10752esac 10753fi 10754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10755printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10757 CFLAGS="$xorg_testset_save_CFLAGS" 10758fi 10759 10760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10763 fi 10764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10766printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10767if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10768then : 10769 printf %s "(cached) " >&6 10770else case e in #( 10771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10772/* end confdefs.h. */ 10773int i; 10774_ACEOF 10775if ac_fn_c_try_compile "$LINENO" 10776then : 10777 xorg_cv_cc_flag_unused_command_line_argument=yes 10778else case e in #( 10779 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10780esac 10781fi 10782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10783esac 10784fi 10785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10788 CFLAGS="$xorg_testset_save_CFLAGS" 10789fi 10790 10791found="no" 10792 10793 if test $found = "no" ; then 10794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10796 fi 10797 10798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10800 fi 10801 10802 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10803 10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10805printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10806 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10807 if eval test \${$cacheid+y} 10808then : 10809 printf %s "(cached) " >&6 10810else case e in #( 10811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10812/* end confdefs.h. */ 10813int i; 10814int 10815main (void) 10816{ 10817 10818 ; 10819 return 0; 10820} 10821_ACEOF 10822if ac_fn_c_try_link "$LINENO" 10823then : 10824 eval $cacheid=yes 10825else case e in #( 10826 e) eval $cacheid=no ;; 10827esac 10828fi 10829rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10830 conftest$ac_exeext conftest.$ac_ext ;; 10831esac 10832fi 10833 10834 10835 CFLAGS="$xorg_testset_save_CFLAGS" 10836 10837 eval supported=\$$cacheid 10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10839printf "%s\n" "$supported" >&6; } 10840 if test "$supported" = "yes" ; then 10841 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10842 found="yes" 10843 fi 10844 fi 10845 10846 10847fi 10848 10849 10850 10851 10852 10853 10854 10855 CWARNFLAGS="$BASE_CFLAGS" 10856 if test "x$GCC" = xyes ; then 10857 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10858 fi 10859 10860 10861 10862 10863 10864 10865 10866 10867# Check whether --enable-strict-compilation was given. 10868if test ${enable_strict_compilation+y} 10869then : 10870 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10871else case e in #( 10872 e) STRICT_COMPILE=no ;; 10873esac 10874fi 10875 10876 10877 10878 10879 10880 10881STRICT_CFLAGS="" 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895xorg_testset_save_CFLAGS="$CFLAGS" 10896 10897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10900printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10901if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10902then : 10903 printf %s "(cached) " >&6 10904else case e in #( 10905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10906/* end confdefs.h. */ 10907int i; 10908_ACEOF 10909if ac_fn_c_try_compile "$LINENO" 10910then : 10911 xorg_cv_cc_flag_unknown_warning_option=yes 10912else case e in #( 10913 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10914esac 10915fi 10916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10917esac 10918fi 10919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10922 CFLAGS="$xorg_testset_save_CFLAGS" 10923fi 10924 10925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10928 fi 10929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10932if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10933then : 10934 printf %s "(cached) " >&6 10935else case e in #( 10936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10937/* end confdefs.h. */ 10938int i; 10939_ACEOF 10940if ac_fn_c_try_compile "$LINENO" 10941then : 10942 xorg_cv_cc_flag_unused_command_line_argument=yes 10943else case e in #( 10944 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10945esac 10946fi 10947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10948esac 10949fi 10950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10951printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10953 CFLAGS="$xorg_testset_save_CFLAGS" 10954fi 10955 10956found="no" 10957 10958 if test $found = "no" ; then 10959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10961 fi 10962 10963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10965 fi 10966 10967 CFLAGS="$CFLAGS -pedantic" 10968 10969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10970printf %s "checking if $CC supports -pedantic... " >&6; } 10971 cacheid=xorg_cv_cc_flag__pedantic 10972 if eval test \${$cacheid+y} 10973then : 10974 printf %s "(cached) " >&6 10975else case e in #( 10976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10977/* end confdefs.h. */ 10978int i; 10979int 10980main (void) 10981{ 10982 10983 ; 10984 return 0; 10985} 10986_ACEOF 10987if ac_fn_c_try_link "$LINENO" 10988then : 10989 eval $cacheid=yes 10990else case e in #( 10991 e) eval $cacheid=no ;; 10992esac 10993fi 10994rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10995 conftest$ac_exeext conftest.$ac_ext ;; 10996esac 10997fi 10998 10999 11000 CFLAGS="$xorg_testset_save_CFLAGS" 11001 11002 eval supported=\$$cacheid 11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11004printf "%s\n" "$supported" >&6; } 11005 if test "$supported" = "yes" ; then 11006 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11007 found="yes" 11008 fi 11009 fi 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025xorg_testset_save_CFLAGS="$CFLAGS" 11026 11027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11030printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11031if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11032then : 11033 printf %s "(cached) " >&6 11034else case e in #( 11035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11036/* end confdefs.h. */ 11037int i; 11038_ACEOF 11039if ac_fn_c_try_compile "$LINENO" 11040then : 11041 xorg_cv_cc_flag_unknown_warning_option=yes 11042else case e in #( 11043 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11044esac 11045fi 11046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11047esac 11048fi 11049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11050printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11052 CFLAGS="$xorg_testset_save_CFLAGS" 11053fi 11054 11055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11058 fi 11059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11061printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11062if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11063then : 11064 printf %s "(cached) " >&6 11065else case e in #( 11066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11067/* end confdefs.h. */ 11068int i; 11069_ACEOF 11070if ac_fn_c_try_compile "$LINENO" 11071then : 11072 xorg_cv_cc_flag_unused_command_line_argument=yes 11073else case e in #( 11074 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11075esac 11076fi 11077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11078esac 11079fi 11080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11081printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11083 CFLAGS="$xorg_testset_save_CFLAGS" 11084fi 11085 11086found="no" 11087 11088 if test $found = "no" ; then 11089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11091 fi 11092 11093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11095 fi 11096 11097 CFLAGS="$CFLAGS -Werror" 11098 11099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11100printf %s "checking if $CC supports -Werror... " >&6; } 11101 cacheid=xorg_cv_cc_flag__Werror 11102 if eval test \${$cacheid+y} 11103then : 11104 printf %s "(cached) " >&6 11105else case e in #( 11106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11107/* end confdefs.h. */ 11108int i; 11109int 11110main (void) 11111{ 11112 11113 ; 11114 return 0; 11115} 11116_ACEOF 11117if ac_fn_c_try_link "$LINENO" 11118then : 11119 eval $cacheid=yes 11120else case e in #( 11121 e) eval $cacheid=no ;; 11122esac 11123fi 11124rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11125 conftest$ac_exeext conftest.$ac_ext ;; 11126esac 11127fi 11128 11129 11130 CFLAGS="$xorg_testset_save_CFLAGS" 11131 11132 eval supported=\$$cacheid 11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11134printf "%s\n" "$supported" >&6; } 11135 if test "$supported" = "yes" ; then 11136 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11137 found="yes" 11138 fi 11139 fi 11140 11141 if test $found = "no" ; then 11142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11144 fi 11145 11146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11148 fi 11149 11150 CFLAGS="$CFLAGS -errwarn" 11151 11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11153printf %s "checking if $CC supports -errwarn... " >&6; } 11154 cacheid=xorg_cv_cc_flag__errwarn 11155 if eval test \${$cacheid+y} 11156then : 11157 printf %s "(cached) " >&6 11158else case e in #( 11159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11160/* end confdefs.h. */ 11161int i; 11162int 11163main (void) 11164{ 11165 11166 ; 11167 return 0; 11168} 11169_ACEOF 11170if ac_fn_c_try_link "$LINENO" 11171then : 11172 eval $cacheid=yes 11173else case e in #( 11174 e) eval $cacheid=no ;; 11175esac 11176fi 11177rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11178 conftest$ac_exeext conftest.$ac_ext ;; 11179esac 11180fi 11181 11182 11183 CFLAGS="$xorg_testset_save_CFLAGS" 11184 11185 eval supported=\$$cacheid 11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11187printf "%s\n" "$supported" >&6; } 11188 if test "$supported" = "yes" ; then 11189 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11190 found="yes" 11191 fi 11192 fi 11193 11194 11195 11196# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11197# activate it with -Werror, so we add it here explicitly. 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211xorg_testset_save_CFLAGS="$CFLAGS" 11212 11213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11217if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11218then : 11219 printf %s "(cached) " >&6 11220else case e in #( 11221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11222/* end confdefs.h. */ 11223int i; 11224_ACEOF 11225if ac_fn_c_try_compile "$LINENO" 11226then : 11227 xorg_cv_cc_flag_unknown_warning_option=yes 11228else case e in #( 11229 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11230esac 11231fi 11232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11233esac 11234fi 11235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11238 CFLAGS="$xorg_testset_save_CFLAGS" 11239fi 11240 11241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11244 fi 11245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11248if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11249then : 11250 printf %s "(cached) " >&6 11251else case e in #( 11252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11253/* end confdefs.h. */ 11254int i; 11255_ACEOF 11256if ac_fn_c_try_compile "$LINENO" 11257then : 11258 xorg_cv_cc_flag_unused_command_line_argument=yes 11259else case e in #( 11260 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11261esac 11262fi 11263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11264esac 11265fi 11266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11267printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11269 CFLAGS="$xorg_testset_save_CFLAGS" 11270fi 11271 11272found="no" 11273 11274 if test $found = "no" ; then 11275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11277 fi 11278 11279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11281 fi 11282 11283 CFLAGS="$CFLAGS -Werror=attributes" 11284 11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11286printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11287 cacheid=xorg_cv_cc_flag__Werror_attributes 11288 if eval test \${$cacheid+y} 11289then : 11290 printf %s "(cached) " >&6 11291else case e in #( 11292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11293/* end confdefs.h. */ 11294int i; 11295int 11296main (void) 11297{ 11298 11299 ; 11300 return 0; 11301} 11302_ACEOF 11303if ac_fn_c_try_link "$LINENO" 11304then : 11305 eval $cacheid=yes 11306else case e in #( 11307 e) eval $cacheid=no ;; 11308esac 11309fi 11310rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11311 conftest$ac_exeext conftest.$ac_ext ;; 11312esac 11313fi 11314 11315 11316 CFLAGS="$xorg_testset_save_CFLAGS" 11317 11318 eval supported=\$$cacheid 11319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11320printf "%s\n" "$supported" >&6; } 11321 if test "$supported" = "yes" ; then 11322 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11323 found="yes" 11324 fi 11325 fi 11326 11327 11328 11329if test "x$STRICT_COMPILE" = "xyes"; then 11330 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11331 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11332fi 11333 11334 11335 11336 11337 11338 11339 11340 11341cat >>confdefs.h <<_ACEOF 11342#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11343_ACEOF 11344 11345 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11346 if test "x$PVM" = "x"; then 11347 PVM="0" 11348 fi 11349 11350printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11351 11352 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11353 if test "x$PVP" = "x"; then 11354 PVP="0" 11355 fi 11356 11357printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11358 11359 11360 11361CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11362mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11363|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11364touch \$(top_srcdir)/ChangeLog; \ 11365echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11366 11367 11368 11369 11370macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11371INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11372mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11373|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11374touch \$(top_srcdir)/INSTALL; \ 11375echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11376 11377 11378 11379 11380 11381 11382case $host_os in 11383 solaris*) 11384 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11385 # check for a man page file found in later versions that use 11386 # traditional section numbers instead 11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11388printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11389if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11390then : 11391 printf %s "(cached) " >&6 11392else case e in #( 11393 e) test "$cross_compiling" = yes && 11394 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11395if test -r "/usr/share/man/man7/attributes.7"; then 11396 ac_cv_file__usr_share_man_man7_attributes_7=yes 11397else 11398 ac_cv_file__usr_share_man_man7_attributes_7=no 11399fi ;; 11400esac 11401fi 11402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11403printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11404if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11405then : 11406 SYSV_MAN_SECTIONS=false 11407else case e in #( 11408 e) SYSV_MAN_SECTIONS=true ;; 11409esac 11410fi 11411 11412 ;; 11413 *) SYSV_MAN_SECTIONS=false ;; 11414esac 11415 11416if test x$APP_MAN_SUFFIX = x ; then 11417 APP_MAN_SUFFIX=1 11418fi 11419if test x$APP_MAN_DIR = x ; then 11420 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11421fi 11422 11423if test x$LIB_MAN_SUFFIX = x ; then 11424 LIB_MAN_SUFFIX=3 11425fi 11426if test x$LIB_MAN_DIR = x ; then 11427 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11428fi 11429 11430if test x$FILE_MAN_SUFFIX = x ; then 11431 case $SYSV_MAN_SECTIONS in 11432 true) FILE_MAN_SUFFIX=4 ;; 11433 *) FILE_MAN_SUFFIX=5 ;; 11434 esac 11435fi 11436if test x$FILE_MAN_DIR = x ; then 11437 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11438fi 11439 11440if test x$MISC_MAN_SUFFIX = x ; then 11441 case $SYSV_MAN_SECTIONS in 11442 true) MISC_MAN_SUFFIX=5 ;; 11443 *) MISC_MAN_SUFFIX=7 ;; 11444 esac 11445fi 11446if test x$MISC_MAN_DIR = x ; then 11447 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11448fi 11449 11450if test x$DRIVER_MAN_SUFFIX = x ; then 11451 case $SYSV_MAN_SECTIONS in 11452 true) DRIVER_MAN_SUFFIX=7 ;; 11453 *) DRIVER_MAN_SUFFIX=4 ;; 11454 esac 11455fi 11456if test x$DRIVER_MAN_DIR = x ; then 11457 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11458fi 11459 11460if test x$ADMIN_MAN_SUFFIX = x ; then 11461 case $SYSV_MAN_SECTIONS in 11462 true) ADMIN_MAN_SUFFIX=1m ;; 11463 *) ADMIN_MAN_SUFFIX=8 ;; 11464 esac 11465fi 11466if test x$ADMIN_MAN_DIR = x ; then 11467 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11468fi 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484XORG_MAN_PAGE="X Version 11" 11485 11486MAN_SUBSTS="\ 11487 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11488 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11489 -e 's|__xservername__|Xorg|g' \ 11490 -e 's|__xconfigfile__|xorg.conf|g' \ 11491 -e 's|__projectroot__|\$(prefix)|g' \ 11492 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11493 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11494 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11495 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11496 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11497 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11498 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11499 11500 11501 11502# Check whether --enable-silent-rules was given. 11503if test ${enable_silent_rules+y} 11504then : 11505 enableval=$enable_silent_rules; 11506fi 11507 11508case $enable_silent_rules in # ((( 11509 yes) AM_DEFAULT_VERBOSITY=0;; 11510 no) AM_DEFAULT_VERBOSITY=1;; 11511 *) AM_DEFAULT_VERBOSITY=0;; 11512esac 11513am_make=${MAKE-make} 11514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11515printf %s "checking whether $am_make supports nested variables... " >&6; } 11516if test ${am_cv_make_support_nested_variables+y} 11517then : 11518 printf %s "(cached) " >&6 11519else case e in #( 11520 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11521BAR0=false 11522BAR1=true 11523V=1 11524am__doit: 11525 @$(TRUE) 11526.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11527 am_cv_make_support_nested_variables=yes 11528else 11529 am_cv_make_support_nested_variables=no 11530fi ;; 11531esac 11532fi 11533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11534printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11535if test $am_cv_make_support_nested_variables = yes; then 11536 AM_V='$(V)' 11537 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11538else 11539 AM_V=$AM_DEFAULT_VERBOSITY 11540 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11541fi 11542AM_BACKSLASH='\' 11543 11544 11545 11546 11547# Checks for typedefs, structures, and compiler characteristics. 11548# Check whether --enable-largefile was given. 11549if test ${enable_largefile+y} 11550then : 11551 enableval=$enable_largefile; 11552fi 11553if test "$enable_largefile,$enable_year2038" != no,no 11554then : 11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11556printf %s "checking for $CC option to enable large file support... " >&6; } 11557if test ${ac_cv_sys_largefile_opts+y} 11558then : 11559 printf %s "(cached) " >&6 11560else case e in #( 11561 e) ac_save_CC="$CC" 11562 ac_opt_found=no 11563 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11564 if test x"$ac_opt" != x"none needed" 11565then : 11566 CC="$ac_save_CC $ac_opt" 11567fi 11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11569/* end confdefs.h. */ 11570#include <sys/types.h> 11571#ifndef FTYPE 11572# define FTYPE off_t 11573#endif 11574 /* Check that FTYPE can represent 2**63 - 1 correctly. 11575 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11576 since some C++ compilers masquerading as C compilers 11577 incorrectly reject 9223372036854775807. */ 11578#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11579 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11580 && LARGE_FTYPE % 2147483647 == 1) 11581 ? 1 : -1]; 11582int 11583main (void) 11584{ 11585 11586 ; 11587 return 0; 11588} 11589_ACEOF 11590if ac_fn_c_try_compile "$LINENO" 11591then : 11592 if test x"$ac_opt" = x"none needed" 11593then : 11594 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11595 CC="$CC -DFTYPE=ino_t" 11596 if ac_fn_c_try_compile "$LINENO" 11597then : 11598 11599else case e in #( 11600 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11601 if ac_fn_c_try_compile "$LINENO" 11602then : 11603 ac_opt='-D_FILE_OFFSET_BITS=64' 11604fi 11605rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11606esac 11607fi 11608rm -f core conftest.err conftest.$ac_objext conftest.beam 11609fi 11610 ac_cv_sys_largefile_opts=$ac_opt 11611 ac_opt_found=yes 11612fi 11613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11614 test $ac_opt_found = no || break 11615 done 11616 CC="$ac_save_CC" 11617 11618 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11619esac 11620fi 11621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11622printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11623 11624ac_have_largefile=yes 11625case $ac_cv_sys_largefile_opts in #( 11626 "none needed") : 11627 ;; #( 11628 "supported through gnulib") : 11629 ;; #( 11630 "support not detected") : 11631 ac_have_largefile=no ;; #( 11632 "-D_FILE_OFFSET_BITS=64") : 11633 11634printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11635 ;; #( 11636 "-D_LARGE_FILES=1") : 11637 11638printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11639 ;; #( 11640 "-n32") : 11641 CC="$CC -n32" ;; #( 11642 *) : 11643 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11644esac 11645 11646if test "$enable_year2038" != no 11647then : 11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11649printf %s "checking for $CC option for timestamps after 2038... " >&6; } 11650if test ${ac_cv_sys_year2038_opts+y} 11651then : 11652 printf %s "(cached) " >&6 11653else case e in #( 11654 e) ac_save_CPPFLAGS="$CPPFLAGS" 11655 ac_opt_found=no 11656 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 11657 if test x"$ac_opt" != x"none needed" 11658then : 11659 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 11660fi 11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11662/* end confdefs.h. */ 11663 11664 #include <time.h> 11665 /* Check that time_t can represent 2**32 - 1 correctly. */ 11666 #define LARGE_TIME_T \\ 11667 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11668 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11669 && LARGE_TIME_T % 65537 == 0) 11670 ? 1 : -1]; 11671 11672int 11673main (void) 11674{ 11675 11676 ; 11677 return 0; 11678} 11679_ACEOF 11680if ac_fn_c_try_compile "$LINENO" 11681then : 11682 ac_cv_sys_year2038_opts="$ac_opt" 11683 ac_opt_found=yes 11684fi 11685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11686 test $ac_opt_found = no || break 11687 done 11688 CPPFLAGS="$ac_save_CPPFLAGS" 11689 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11690esac 11691fi 11692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11693printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11694 11695ac_have_year2038=yes 11696case $ac_cv_sys_year2038_opts in #( 11697 "none needed") : 11698 ;; #( 11699 "support not detected") : 11700 ac_have_year2038=no ;; #( 11701 "-D_TIME_BITS=64") : 11702 11703printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11704 ;; #( 11705 "-D__MINGW_USE_VC2005_COMPAT") : 11706 11707printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 11708 ;; #( 11709 "-U_USE_32_BIT_TIME_T"*) : 11710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11711printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11712as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 11713will stop working after mid-January 2038. Remove 11714_USE_32BIT_TIME_T from the compiler flags. 11715See 'config.log' for more details" "$LINENO" 5; } ;; #( 11716 *) : 11717 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 11718esac 11719 11720fi 11721 11722fi 11723 11724# Checks for library functions. 11725ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 11726if test "x$ac_cv_func_mkstemp" = xyes 11727then : 11728 11729printf "%s\n" "#define HAS_MKSTEMP 1" >>confdefs.h 11730 11731fi 11732 11733 11734# Checks for pkg-config packages 11735 11736pkg_failed=no 11737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDITVIEW" >&5 11738printf %s "checking for XDITVIEW... " >&6; } 11739 11740if test -n "$XDITVIEW_CFLAGS"; then 11741 pkg_cv_XDITVIEW_CFLAGS="$XDITVIEW_CFLAGS" 11742 elif test -n "$PKG_CONFIG"; then 11743 if test -n "$PKG_CONFIG" && \ 11744 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5 11745 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5 11746 ac_status=$? 11747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11748 test $ac_status = 0; }; then 11749 pkg_cv_XDITVIEW_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null` 11750 test "x$?" != "x0" && pkg_failed=yes 11751else 11752 pkg_failed=yes 11753fi 11754 else 11755 pkg_failed=untried 11756fi 11757if test -n "$XDITVIEW_LIBS"; then 11758 pkg_cv_XDITVIEW_LIBS="$XDITVIEW_LIBS" 11759 elif test -n "$PKG_CONFIG"; then 11760 if test -n "$PKG_CONFIG" && \ 11761 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5 11762 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5 11763 ac_status=$? 11764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11765 test $ac_status = 0; }; then 11766 pkg_cv_XDITVIEW_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null` 11767 test "x$?" != "x0" && pkg_failed=yes 11768else 11769 pkg_failed=yes 11770fi 11771 else 11772 pkg_failed=untried 11773fi 11774 11775 11776 11777if test $pkg_failed = yes; then 11778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11779printf "%s\n" "no" >&6; } 11780 11781if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11782 _pkg_short_errors_supported=yes 11783else 11784 _pkg_short_errors_supported=no 11785fi 11786 if test $_pkg_short_errors_supported = yes; then 11787 XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1` 11788 else 11789 XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1` 11790 fi 11791 # Put the nasty error message in config.log where it belongs 11792 echo "$XDITVIEW_PKG_ERRORS" >&5 11793 11794 as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met: 11795 11796$XDITVIEW_PKG_ERRORS 11797 11798Consider adjusting the PKG_CONFIG_PATH environment variable if you 11799installed software in a non-standard prefix. 11800 11801Alternatively, you may set the environment variables XDITVIEW_CFLAGS 11802and XDITVIEW_LIBS to avoid the need to call pkg-config. 11803See the pkg-config man page for more details." "$LINENO" 5 11804elif test $pkg_failed = untried; then 11805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11806printf "%s\n" "no" >&6; } 11807 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11808printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11809as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11810is in your PATH or set the PKG_CONFIG environment variable to the full 11811path to pkg-config. 11812 11813Alternatively, you may set the environment variables XDITVIEW_CFLAGS 11814and XDITVIEW_LIBS to avoid the need to call pkg-config. 11815See the pkg-config man page for more details. 11816 11817To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11818See 'config.log' for more details" "$LINENO" 5; } 11819else 11820 XDITVIEW_CFLAGS=$pkg_cv_XDITVIEW_CFLAGS 11821 XDITVIEW_LIBS=$pkg_cv_XDITVIEW_LIBS 11822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11823printf "%s\n" "yes" >&6; } 11824 11825fi 11826 11827 11828pkg_failed=no 11829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11830printf %s "checking for APPDEFS... " >&6; } 11831 11832if test -n "$APPDEFS_CFLAGS"; then 11833 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11834 elif test -n "$PKG_CONFIG"; then 11835 if test -n "$PKG_CONFIG" && \ 11836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11837 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11838 ac_status=$? 11839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11840 test $ac_status = 0; }; then 11841 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11842 test "x$?" != "x0" && pkg_failed=yes 11843else 11844 pkg_failed=yes 11845fi 11846 else 11847 pkg_failed=untried 11848fi 11849if test -n "$APPDEFS_LIBS"; then 11850 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11851 elif test -n "$PKG_CONFIG"; then 11852 if test -n "$PKG_CONFIG" && \ 11853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11854 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11855 ac_status=$? 11856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11857 test $ac_status = 0; }; then 11858 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11859 test "x$?" != "x0" && pkg_failed=yes 11860else 11861 pkg_failed=yes 11862fi 11863 else 11864 pkg_failed=untried 11865fi 11866 11867 11868 11869if test $pkg_failed = yes; then 11870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11871printf "%s\n" "no" >&6; } 11872 11873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11874 _pkg_short_errors_supported=yes 11875else 11876 _pkg_short_errors_supported=no 11877fi 11878 if test $_pkg_short_errors_supported = yes; then 11879 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11880 else 11881 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11882 fi 11883 # Put the nasty error message in config.log where it belongs 11884 echo "$APPDEFS_PKG_ERRORS" >&5 11885 11886 as_fn_error $? "Package requirements (xt) were not met: 11887 11888$APPDEFS_PKG_ERRORS 11889 11890Consider adjusting the PKG_CONFIG_PATH environment variable if you 11891installed software in a non-standard prefix. 11892 11893Alternatively, you may set the environment variables APPDEFS_CFLAGS 11894and APPDEFS_LIBS to avoid the need to call pkg-config. 11895See the pkg-config man page for more details." "$LINENO" 5 11896elif test $pkg_failed = untried; then 11897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11898printf "%s\n" "no" >&6; } 11899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11900printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11901as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11902is in your PATH or set the PKG_CONFIG environment variable to the full 11903path to pkg-config. 11904 11905Alternatively, you may set the environment variables APPDEFS_CFLAGS 11906and APPDEFS_LIBS to avoid the need to call pkg-config. 11907See the pkg-config man page for more details. 11908 11909To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11910See 'config.log' for more details" "$LINENO" 5; } 11911else 11912 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11913 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11915printf "%s\n" "yes" >&6; } 11916 11917fi 11918xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11919 11920# Check whether --with-appdefaultdir was given. 11921if test ${with_appdefaultdir+y} 11922then : 11923 withval=$with_appdefaultdir; appdefaultdir="$withval" 11924else case e in #( 11925 e) appdefaultdir="${xt_appdefaultdir}" ;; 11926esac 11927fi 11928 11929 11930 11931# Check whether to use Xft to draw text 11932 11933# Check whether --with-xft was given. 11934if test ${with_xft+y} 11935then : 11936 withval=$with_xft; USE_XFT="$withval" 11937else case e in #( 11938 e) if test -n "$PKG_CONFIG" && \ 11939 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender fontconfig\""; } >&5 11940 ($PKG_CONFIG --exists --print-errors "xft xrender fontconfig") 2>&5 11941 ac_status=$? 11942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11943 test $ac_status = 0; }; then 11944 USE_XFT="yes" 11945else 11946 USE_XFT="no" 11947fi ;; 11948esac 11949fi 11950 11951 11952if test "x$USE_XFT" = "xyes" ; then 11953 11954pkg_failed=no 11955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5 11956printf %s "checking for XFT... " >&6; } 11957 11958if test -n "$XFT_CFLAGS"; then 11959 pkg_cv_XFT_CFLAGS="$XFT_CFLAGS" 11960 elif test -n "$PKG_CONFIG"; then 11961 if test -n "$PKG_CONFIG" && \ 11962 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender fontconfig\""; } >&5 11963 ($PKG_CONFIG --exists --print-errors "xft xrender fontconfig") 2>&5 11964 ac_status=$? 11965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11966 test $ac_status = 0; }; then 11967 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft xrender fontconfig" 2>/dev/null` 11968 test "x$?" != "x0" && pkg_failed=yes 11969else 11970 pkg_failed=yes 11971fi 11972 else 11973 pkg_failed=untried 11974fi 11975if test -n "$XFT_LIBS"; then 11976 pkg_cv_XFT_LIBS="$XFT_LIBS" 11977 elif test -n "$PKG_CONFIG"; then 11978 if test -n "$PKG_CONFIG" && \ 11979 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender fontconfig\""; } >&5 11980 ($PKG_CONFIG --exists --print-errors "xft xrender fontconfig") 2>&5 11981 ac_status=$? 11982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11983 test $ac_status = 0; }; then 11984 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft xrender fontconfig" 2>/dev/null` 11985 test "x$?" != "x0" && pkg_failed=yes 11986else 11987 pkg_failed=yes 11988fi 11989 else 11990 pkg_failed=untried 11991fi 11992 11993 11994 11995if test $pkg_failed = yes; then 11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11997printf "%s\n" "no" >&6; } 11998 11999if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12000 _pkg_short_errors_supported=yes 12001else 12002 _pkg_short_errors_supported=no 12003fi 12004 if test $_pkg_short_errors_supported = yes; then 12005 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft xrender fontconfig" 2>&1` 12006 else 12007 XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft xrender fontconfig" 2>&1` 12008 fi 12009 # Put the nasty error message in config.log where it belongs 12010 echo "$XFT_PKG_ERRORS" >&5 12011 12012 as_fn_error $? "Package requirements (xft xrender fontconfig) were not met: 12013 12014$XFT_PKG_ERRORS 12015 12016Consider adjusting the PKG_CONFIG_PATH environment variable if you 12017installed software in a non-standard prefix. 12018 12019Alternatively, you may set the environment variables XFT_CFLAGS 12020and XFT_LIBS to avoid the need to call pkg-config. 12021See the pkg-config man page for more details." "$LINENO" 5 12022elif test $pkg_failed = untried; then 12023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12024printf "%s\n" "no" >&6; } 12025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12026printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12027as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12028is in your PATH or set the PKG_CONFIG environment variable to the full 12029path to pkg-config. 12030 12031Alternatively, you may set the environment variables XFT_CFLAGS 12032and XFT_LIBS to avoid the need to call pkg-config. 12033See the pkg-config man page for more details. 12034 12035To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12036See 'config.log' for more details" "$LINENO" 5; } 12037else 12038 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS 12039 XFT_LIBS=$pkg_cv_XFT_LIBS 12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12041printf "%s\n" "yes" >&6; } 12042 12043fi 12044 12045printf "%s\n" "#define USE_XFT 1" >>confdefs.h 12046 12047fi 12048 12049 12050ac_config_files="$ac_config_files Makefile man/Makefile" 12051 12052cat >confcache <<\_ACEOF 12053# This file is a shell script that caches the results of configure 12054# tests run on this system so they can be shared between configure 12055# scripts and configure runs, see configure's option --config-cache. 12056# It is not useful on other systems. If it contains results you don't 12057# want to keep, you may remove or edit it. 12058# 12059# config.status only pays attention to the cache file if you give it 12060# the --recheck option to rerun configure. 12061# 12062# 'ac_cv_env_foo' variables (set or unset) will be overridden when 12063# loading this file, other *unset* 'ac_cv_foo' will be assigned the 12064# following values. 12065 12066_ACEOF 12067 12068# The following way of writing the cache mishandles newlines in values, 12069# but we know of no workaround that is simple, portable, and efficient. 12070# So, we kill variables containing newlines. 12071# Ultrix sh set writes to stderr and can't be redirected directly, 12072# and sets the high bit in the cache file unless we assign to the vars. 12073( 12074 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12075 eval ac_val=\$$ac_var 12076 case $ac_val in #( 12077 *${as_nl}*) 12078 case $ac_var in #( 12079 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12080printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12081 esac 12082 case $ac_var in #( 12083 _ | IFS | as_nl) ;; #( 12084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12085 *) { eval $ac_var=; unset $ac_var;} ;; 12086 esac ;; 12087 esac 12088 done 12089 12090 (set) 2>&1 | 12091 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12092 *${as_nl}ac_space=\ *) 12093 # 'set' does not quote correctly, so add quotes: double-quote 12094 # substitution turns \\\\ into \\, and sed turns \\ into \. 12095 sed -n \ 12096 "s/'/'\\\\''/g; 12097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12098 ;; #( 12099 *) 12100 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12102 ;; 12103 esac | 12104 sort 12105) | 12106 sed ' 12107 /^ac_cv_env_/b end 12108 t clear 12109 :clear 12110 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12111 t end 12112 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12113 :end' >>confcache 12114if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12115 if test -w "$cache_file"; then 12116 if test "x$cache_file" != "x/dev/null"; then 12117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12118printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12119 if test ! -f "$cache_file" || test -h "$cache_file"; then 12120 cat confcache >"$cache_file" 12121 else 12122 case $cache_file in #( 12123 */* | ?:*) 12124 mv -f confcache "$cache_file"$$ && 12125 mv -f "$cache_file"$$ "$cache_file" ;; #( 12126 *) 12127 mv -f confcache "$cache_file" ;; 12128 esac 12129 fi 12130 fi 12131 else 12132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12133printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12134 fi 12135fi 12136rm -f confcache 12137 12138test "x$prefix" = xNONE && prefix=$ac_default_prefix 12139# Let make expand exec_prefix. 12140test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12141 12142DEFS=-DHAVE_CONFIG_H 12143 12144ac_libobjs= 12145ac_ltlibobjs= 12146U= 12147for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12148 # 1. Remove the extension, and $U if already installed. 12149 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12150 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12151 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12152 # will be set to the directory where LIBOBJS objects are built. 12153 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12154 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12155done 12156LIBOBJS=$ac_libobjs 12157 12158LTLIBOBJS=$ac_ltlibobjs 12159 12160 12161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12162printf %s "checking that generated files are newer than configure... " >&6; } 12163 if test -n "$am_sleep_pid"; then 12164 # Hide warnings about reused PIDs. 12165 wait $am_sleep_pid 2>/dev/null 12166 fi 12167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12168printf "%s\n" "done" >&6; } 12169 if test -n "$EXEEXT"; then 12170 am__EXEEXT_TRUE= 12171 am__EXEEXT_FALSE='#' 12172else 12173 am__EXEEXT_TRUE='#' 12174 am__EXEEXT_FALSE= 12175fi 12176 12177if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12178 as_fn_error $? "conditional \"AMDEP\" was never defined. 12179Usually this means the macro was only invoked conditionally." "$LINENO" 5 12180fi 12181if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12182 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12183Usually this means the macro was only invoked conditionally." "$LINENO" 5 12184fi 12185# Check whether --enable-year2038 was given. 12186if test ${enable_year2038+y} 12187then : 12188 enableval=$enable_year2038; 12189fi 12190 12191 12192: "${CONFIG_STATUS=./config.status}" 12193ac_write_fail=0 12194ac_clean_files_save=$ac_clean_files 12195ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12197printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12198as_write_fail=0 12199cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12200#! $SHELL 12201# Generated by $as_me. 12202# Run this file to recreate the current configuration. 12203# Compiler output produced by configure, useful for debugging 12204# configure, is in config.log if it exists. 12205 12206debug=false 12207ac_cs_recheck=false 12208ac_cs_silent=false 12209 12210SHELL=\${CONFIG_SHELL-$SHELL} 12211export SHELL 12212_ASEOF 12213cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12214## -------------------- ## 12215## M4sh Initialization. ## 12216## -------------------- ## 12217 12218# Be more Bourne compatible 12219DUALCASE=1; export DUALCASE # for MKS sh 12220if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12221then : 12222 emulate sh 12223 NULLCMD=: 12224 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12225 # is contrary to our usage. Disable this feature. 12226 alias -g '${1+"$@"}'='"$@"' 12227 setopt NO_GLOB_SUBST 12228else case e in #( 12229 e) case `(set -o) 2>/dev/null` in #( 12230 *posix*) : 12231 set -o posix ;; #( 12232 *) : 12233 ;; 12234esac ;; 12235esac 12236fi 12237 12238 12239 12240# Reset variables that may have inherited troublesome values from 12241# the environment. 12242 12243# IFS needs to be set, to space, tab, and newline, in precisely that order. 12244# (If _AS_PATH_WALK were called with IFS unset, it would have the 12245# side effect of setting IFS to empty, thus disabling word splitting.) 12246# Quoting is to prevent editors from complaining about space-tab. 12247as_nl=' 12248' 12249export as_nl 12250IFS=" "" $as_nl" 12251 12252PS1='$ ' 12253PS2='> ' 12254PS4='+ ' 12255 12256# Ensure predictable behavior from utilities with locale-dependent output. 12257LC_ALL=C 12258export LC_ALL 12259LANGUAGE=C 12260export LANGUAGE 12261 12262# We cannot yet rely on "unset" to work, but we need these variables 12263# to be unset--not just set to an empty or harmless value--now, to 12264# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12265# also avoids known problems related to "unset" and subshell syntax 12266# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12267for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12268do eval test \${$as_var+y} \ 12269 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12270done 12271 12272# Ensure that fds 0, 1, and 2 are open. 12273if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12274if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12275if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12276 12277# The user is always right. 12278if ${PATH_SEPARATOR+false} :; then 12279 PATH_SEPARATOR=: 12280 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12281 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12282 PATH_SEPARATOR=';' 12283 } 12284fi 12285 12286 12287# Find who we are. Look in the path if we contain no directory separator. 12288as_myself= 12289case $0 in #(( 12290 *[\\/]* ) as_myself=$0 ;; 12291 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12292for as_dir in $PATH 12293do 12294 IFS=$as_save_IFS 12295 case $as_dir in #((( 12296 '') as_dir=./ ;; 12297 */) ;; 12298 *) as_dir=$as_dir/ ;; 12299 esac 12300 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12301 done 12302IFS=$as_save_IFS 12303 12304 ;; 12305esac 12306# We did not find ourselves, most probably we were run as 'sh COMMAND' 12307# in which case we are not to be found in the path. 12308if test "x$as_myself" = x; then 12309 as_myself=$0 12310fi 12311if test ! -f "$as_myself"; then 12312 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12313 exit 1 12314fi 12315 12316 12317 12318# as_fn_error STATUS ERROR [LINENO LOG_FD] 12319# ---------------------------------------- 12320# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12321# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12322# script with STATUS, using 1 if that was 0. 12323as_fn_error () 12324{ 12325 as_status=$1; test $as_status -eq 0 && as_status=1 12326 if test "$4"; then 12327 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12329 fi 12330 printf "%s\n" "$as_me: error: $2" >&2 12331 as_fn_exit $as_status 12332} # as_fn_error 12333 12334 12335# as_fn_set_status STATUS 12336# ----------------------- 12337# Set $? to STATUS, without forking. 12338as_fn_set_status () 12339{ 12340 return $1 12341} # as_fn_set_status 12342 12343# as_fn_exit STATUS 12344# ----------------- 12345# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12346as_fn_exit () 12347{ 12348 set +e 12349 as_fn_set_status $1 12350 exit $1 12351} # as_fn_exit 12352 12353# as_fn_unset VAR 12354# --------------- 12355# Portably unset VAR. 12356as_fn_unset () 12357{ 12358 { eval $1=; unset $1;} 12359} 12360as_unset=as_fn_unset 12361 12362# as_fn_append VAR VALUE 12363# ---------------------- 12364# Append the text in VALUE to the end of the definition contained in VAR. Take 12365# advantage of any shell optimizations that allow amortized linear growth over 12366# repeated appends, instead of the typical quadratic growth present in naive 12367# implementations. 12368if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12369then : 12370 eval 'as_fn_append () 12371 { 12372 eval $1+=\$2 12373 }' 12374else case e in #( 12375 e) as_fn_append () 12376 { 12377 eval $1=\$$1\$2 12378 } ;; 12379esac 12380fi # as_fn_append 12381 12382# as_fn_arith ARG... 12383# ------------------ 12384# Perform arithmetic evaluation on the ARGs, and store the result in the 12385# global $as_val. Take advantage of shells that can avoid forks. The arguments 12386# must be portable across $(()) and expr. 12387if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12388then : 12389 eval 'as_fn_arith () 12390 { 12391 as_val=$(( $* )) 12392 }' 12393else case e in #( 12394 e) as_fn_arith () 12395 { 12396 as_val=`expr "$@" || test $? -eq 1` 12397 } ;; 12398esac 12399fi # as_fn_arith 12400 12401 12402if expr a : '\(a\)' >/dev/null 2>&1 && 12403 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12404 as_expr=expr 12405else 12406 as_expr=false 12407fi 12408 12409if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12410 as_basename=basename 12411else 12412 as_basename=false 12413fi 12414 12415if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12416 as_dirname=dirname 12417else 12418 as_dirname=false 12419fi 12420 12421as_me=`$as_basename -- "$0" || 12422$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12423 X"$0" : 'X\(//\)$' \| \ 12424 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12425printf "%s\n" X/"$0" | 12426 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12427 s//\1/ 12428 q 12429 } 12430 /^X\/\(\/\/\)$/{ 12431 s//\1/ 12432 q 12433 } 12434 /^X\/\(\/\).*/{ 12435 s//\1/ 12436 q 12437 } 12438 s/.*/./; q'` 12439 12440# Avoid depending upon Character Ranges. 12441as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12442as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12443as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12444as_cr_digits='0123456789' 12445as_cr_alnum=$as_cr_Letters$as_cr_digits 12446 12447 12448# Determine whether it's possible to make 'echo' print without a newline. 12449# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12450# for compatibility with existing Makefiles. 12451ECHO_C= ECHO_N= ECHO_T= 12452case `echo -n x` in #((((( 12453-n*) 12454 case `echo 'xy\c'` in 12455 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12456 xy) ECHO_C='\c';; 12457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12458 ECHO_T=' ';; 12459 esac;; 12460*) 12461 ECHO_N='-n';; 12462esac 12463 12464# For backward compatibility with old third-party macros, we provide 12465# the shell variables $as_echo and $as_echo_n. New code should use 12466# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12467as_echo='printf %s\n' 12468as_echo_n='printf %s' 12469 12470rm -f conf$$ conf$$.exe conf$$.file 12471if test -d conf$$.dir; then 12472 rm -f conf$$.dir/conf$$.file 12473else 12474 rm -f conf$$.dir 12475 mkdir conf$$.dir 2>/dev/null 12476fi 12477if (echo >conf$$.file) 2>/dev/null; then 12478 if ln -s conf$$.file conf$$ 2>/dev/null; then 12479 as_ln_s='ln -s' 12480 # ... but there are two gotchas: 12481 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12482 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12483 # In both cases, we have to default to 'cp -pR'. 12484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12485 as_ln_s='cp -pR' 12486 elif ln conf$$.file conf$$ 2>/dev/null; then 12487 as_ln_s=ln 12488 else 12489 as_ln_s='cp -pR' 12490 fi 12491else 12492 as_ln_s='cp -pR' 12493fi 12494rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12495rmdir conf$$.dir 2>/dev/null 12496 12497 12498# as_fn_mkdir_p 12499# ------------- 12500# Create "$as_dir" as a directory, including parents if necessary. 12501as_fn_mkdir_p () 12502{ 12503 12504 case $as_dir in #( 12505 -*) as_dir=./$as_dir;; 12506 esac 12507 test -d "$as_dir" || eval $as_mkdir_p || { 12508 as_dirs= 12509 while :; do 12510 case $as_dir in #( 12511 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12512 *) as_qdir=$as_dir;; 12513 esac 12514 as_dirs="'$as_qdir' $as_dirs" 12515 as_dir=`$as_dirname -- "$as_dir" || 12516$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12517 X"$as_dir" : 'X\(//\)[^/]' \| \ 12518 X"$as_dir" : 'X\(//\)$' \| \ 12519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12520printf "%s\n" X"$as_dir" | 12521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12522 s//\1/ 12523 q 12524 } 12525 /^X\(\/\/\)[^/].*/{ 12526 s//\1/ 12527 q 12528 } 12529 /^X\(\/\/\)$/{ 12530 s//\1/ 12531 q 12532 } 12533 /^X\(\/\).*/{ 12534 s//\1/ 12535 q 12536 } 12537 s/.*/./; q'` 12538 test -d "$as_dir" && break 12539 done 12540 test -z "$as_dirs" || eval "mkdir $as_dirs" 12541 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12542 12543 12544} # as_fn_mkdir_p 12545if mkdir -p . 2>/dev/null; then 12546 as_mkdir_p='mkdir -p "$as_dir"' 12547else 12548 test -d ./-p && rmdir ./-p 12549 as_mkdir_p=false 12550fi 12551 12552 12553# as_fn_executable_p FILE 12554# ----------------------- 12555# Test if FILE is an executable regular file. 12556as_fn_executable_p () 12557{ 12558 test -f "$1" && test -x "$1" 12559} # as_fn_executable_p 12560as_test_x='test -x' 12561as_executable_p=as_fn_executable_p 12562 12563# Sed expression to map a string onto a valid CPP name. 12564as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12565as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12566 12567# Sed expression to map a string onto a valid variable name. 12568as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12569as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12570 12571 12572exec 6>&1 12573## ----------------------------------- ## 12574## Main body of $CONFIG_STATUS script. ## 12575## ----------------------------------- ## 12576_ASEOF 12577test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12578 12579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12580# Save the log message, to keep $0 and so on meaningful, and to 12581# report actual input values of CONFIG_FILES etc. instead of their 12582# values after options handling. 12583ac_log=" 12584This file was extended by xditview $as_me 1.0.7, which was 12585generated by GNU Autoconf 2.72. Invocation command line was 12586 12587 CONFIG_FILES = $CONFIG_FILES 12588 CONFIG_HEADERS = $CONFIG_HEADERS 12589 CONFIG_LINKS = $CONFIG_LINKS 12590 CONFIG_COMMANDS = $CONFIG_COMMANDS 12591 $ $0 $@ 12592 12593on `(hostname || uname -n) 2>/dev/null | sed 1q` 12594" 12595 12596_ACEOF 12597 12598case $ac_config_files in *" 12599"*) set x $ac_config_files; shift; ac_config_files=$*;; 12600esac 12601 12602case $ac_config_headers in *" 12603"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12604esac 12605 12606 12607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12608# Files that config.status was made for. 12609config_files="$ac_config_files" 12610config_headers="$ac_config_headers" 12611config_commands="$ac_config_commands" 12612 12613_ACEOF 12614 12615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12616ac_cs_usage="\ 12617'$as_me' instantiates files and other configuration actions 12618from templates according to the current configuration. Unless the files 12619and actions are specified as TAGs, all are instantiated by default. 12620 12621Usage: $0 [OPTION]... [TAG]... 12622 12623 -h, --help print this help, then exit 12624 -V, --version print version number and configuration settings, then exit 12625 --config print configuration, then exit 12626 -q, --quiet, --silent 12627 do not print progress messages 12628 -d, --debug don't remove temporary files 12629 --recheck update $as_me by reconfiguring in the same conditions 12630 --file=FILE[:TEMPLATE] 12631 instantiate the configuration file FILE 12632 --header=FILE[:TEMPLATE] 12633 instantiate the configuration header FILE 12634 12635Configuration files: 12636$config_files 12637 12638Configuration headers: 12639$config_headers 12640 12641Configuration commands: 12642$config_commands 12643 12644Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/-/issues>." 12645 12646_ACEOF 12647ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12648ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12650ac_cs_config='$ac_cs_config_escaped' 12651ac_cs_version="\\ 12652xditview config.status 1.0.7 12653configured by $0, generated by GNU Autoconf 2.72, 12654 with options \\"\$ac_cs_config\\" 12655 12656Copyright (C) 2023 Free Software Foundation, Inc. 12657This config.status script is free software; the Free Software Foundation 12658gives unlimited permission to copy, distribute and modify it." 12659 12660ac_pwd='$ac_pwd' 12661srcdir='$srcdir' 12662INSTALL='$INSTALL' 12663MKDIR_P='$MKDIR_P' 12664AWK='$AWK' 12665test -n "\$AWK" || AWK=awk 12666_ACEOF 12667 12668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12669# The default lists apply if the user does not specify any file. 12670ac_need_defaults=: 12671while test $# != 0 12672do 12673 case $1 in 12674 --*=?*) 12675 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12676 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12677 ac_shift=: 12678 ;; 12679 --*=) 12680 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12681 ac_optarg= 12682 ac_shift=: 12683 ;; 12684 *) 12685 ac_option=$1 12686 ac_optarg=$2 12687 ac_shift=shift 12688 ;; 12689 esac 12690 12691 case $ac_option in 12692 # Handling of the options. 12693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12694 ac_cs_recheck=: ;; 12695 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12696 printf "%s\n" "$ac_cs_version"; exit ;; 12697 --config | --confi | --conf | --con | --co | --c ) 12698 printf "%s\n" "$ac_cs_config"; exit ;; 12699 --debug | --debu | --deb | --de | --d | -d ) 12700 debug=: ;; 12701 --file | --fil | --fi | --f ) 12702 $ac_shift 12703 case $ac_optarg in 12704 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12705 '') as_fn_error $? "missing file argument" ;; 12706 esac 12707 as_fn_append CONFIG_FILES " '$ac_optarg'" 12708 ac_need_defaults=false;; 12709 --header | --heade | --head | --hea ) 12710 $ac_shift 12711 case $ac_optarg in 12712 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12713 esac 12714 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12715 ac_need_defaults=false;; 12716 --he | --h) 12717 # Conflict between --help and --header 12718 as_fn_error $? "ambiguous option: '$1' 12719Try '$0 --help' for more information.";; 12720 --help | --hel | -h ) 12721 printf "%s\n" "$ac_cs_usage"; exit ;; 12722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12723 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12724 ac_cs_silent=: ;; 12725 12726 # This is an error. 12727 -*) as_fn_error $? "unrecognized option: '$1' 12728Try '$0 --help' for more information." ;; 12729 12730 *) as_fn_append ac_config_targets " $1" 12731 ac_need_defaults=false ;; 12732 12733 esac 12734 shift 12735done 12736 12737ac_configure_extra_args= 12738 12739if $ac_cs_silent; then 12740 exec 6>/dev/null 12741 ac_configure_extra_args="$ac_configure_extra_args --silent" 12742fi 12743 12744_ACEOF 12745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12746if \$ac_cs_recheck; then 12747 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12748 shift 12749 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12750 CONFIG_SHELL='$SHELL' 12751 export CONFIG_SHELL 12752 exec "\$@" 12753fi 12754 12755_ACEOF 12756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12757exec 5>>config.log 12758{ 12759 echo 12760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12761## Running $as_me. ## 12762_ASBOX 12763 printf "%s\n" "$ac_log" 12764} >&5 12765 12766_ACEOF 12767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12768# 12769# INIT-COMMANDS 12770# 12771AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12772 12773_ACEOF 12774 12775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12776 12777# Handling of arguments. 12778for ac_config_target in $ac_config_targets 12779do 12780 case $ac_config_target in 12781 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12782 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12783 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12784 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12785 12786 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12787 esac 12788done 12789 12790 12791# If the user did not use the arguments to specify the items to instantiate, 12792# then the envvar interface is used. Set only those that are not. 12793# We use the long form for the default assignment because of an extremely 12794# bizarre bug on SunOS 4.1.3. 12795if $ac_need_defaults; then 12796 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12797 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12798 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12799fi 12800 12801# Have a temporary directory for convenience. Make it in the build tree 12802# simply because there is no reason against having it here, and in addition, 12803# creating and moving files from /tmp can sometimes cause problems. 12804# Hook for its removal unless debugging. 12805# Note that there is a small window in which the directory will not be cleaned: 12806# after its creation but before its name has been assigned to '$tmp'. 12807$debug || 12808{ 12809 tmp= ac_tmp= 12810 trap 'exit_status=$? 12811 : "${ac_tmp:=$tmp}" 12812 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12813' 0 12814 trap 'as_fn_exit 1' 1 2 13 15 12815} 12816# Create a (secure) tmp directory for tmp files. 12817 12818{ 12819 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12820 test -d "$tmp" 12821} || 12822{ 12823 tmp=./conf$$-$RANDOM 12824 (umask 077 && mkdir "$tmp") 12825} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12826ac_tmp=$tmp 12827 12828# Set up the scripts for CONFIG_FILES section. 12829# No need to generate them if there are no CONFIG_FILES. 12830# This happens for instance with './config.status config.h'. 12831if test -n "$CONFIG_FILES"; then 12832 12833 12834ac_cr=`echo X | tr X '\015'` 12835# On cygwin, bash can eat \r inside `` if the user requested igncr. 12836# But we know of no other shell where ac_cr would be empty at this 12837# point, so we can use a bashism as a fallback. 12838if test "x$ac_cr" = x; then 12839 eval ac_cr=\$\'\\r\' 12840fi 12841ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12842if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12843 ac_cs_awk_cr='\\r' 12844else 12845 ac_cs_awk_cr=$ac_cr 12846fi 12847 12848echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12849_ACEOF 12850 12851 12852{ 12853 echo "cat >conf$$subs.awk <<_ACEOF" && 12854 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12855 echo "_ACEOF" 12856} >conf$$subs.sh || 12857 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12858ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12859ac_delim='%!_!# ' 12860for ac_last_try in false false false false false :; do 12861 . ./conf$$subs.sh || 12862 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12863 12864 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12865 if test $ac_delim_n = $ac_delim_num; then 12866 break 12867 elif $ac_last_try; then 12868 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12869 else 12870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12871 fi 12872done 12873rm -f conf$$subs.sh 12874 12875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12876cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12877_ACEOF 12878sed -n ' 12879h 12880s/^/S["/; s/!.*/"]=/ 12881p 12882g 12883s/^[^!]*!// 12884:repl 12885t repl 12886s/'"$ac_delim"'$// 12887t delim 12888:nl 12889h 12890s/\(.\{148\}\)..*/\1/ 12891t more1 12892s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12893p 12894n 12895b repl 12896:more1 12897s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12898p 12899g 12900s/.\{148\}// 12901t nl 12902:delim 12903h 12904s/\(.\{148\}\)..*/\1/ 12905t more2 12906s/["\\]/\\&/g; s/^/"/; s/$/"/ 12907p 12908b 12909:more2 12910s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12911p 12912g 12913s/.\{148\}// 12914t delim 12915' <conf$$subs.awk | sed ' 12916/^[^""]/{ 12917 N 12918 s/\n// 12919} 12920' >>$CONFIG_STATUS || ac_write_fail=1 12921rm -f conf$$subs.awk 12922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12923_ACAWK 12924cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12925 for (key in S) S_is_set[key] = 1 12926 FS = "" 12927 12928} 12929{ 12930 line = $ 0 12931 nfields = split(line, field, "@") 12932 substed = 0 12933 len = length(field[1]) 12934 for (i = 2; i < nfields; i++) { 12935 key = field[i] 12936 keylen = length(key) 12937 if (S_is_set[key]) { 12938 value = S[key] 12939 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12940 len += length(value) + length(field[++i]) 12941 substed = 1 12942 } else 12943 len += 1 + keylen 12944 } 12945 12946 print line 12947} 12948 12949_ACAWK 12950_ACEOF 12951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12952if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12953 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12954else 12955 cat 12956fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12957 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12958_ACEOF 12959 12960# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12961# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12962# trailing colons and then remove the whole line if VPATH becomes empty 12963# (actually we leave an empty line to preserve line numbers). 12964if test "x$srcdir" = x.; then 12965 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12966h 12967s/// 12968s/^/:/ 12969s/[ ]*$/:/ 12970s/:\$(srcdir):/:/g 12971s/:\${srcdir}:/:/g 12972s/:@srcdir@:/:/g 12973s/^:*// 12974s/:*$// 12975x 12976s/\(=[ ]*\).*/\1/ 12977G 12978s/\n// 12979s/^[^=]*=[ ]*$// 12980}' 12981fi 12982 12983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12984fi # test -n "$CONFIG_FILES" 12985 12986# Set up the scripts for CONFIG_HEADERS section. 12987# No need to generate them if there are no CONFIG_HEADERS. 12988# This happens for instance with './config.status Makefile'. 12989if test -n "$CONFIG_HEADERS"; then 12990cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12991BEGIN { 12992_ACEOF 12993 12994# Transform confdefs.h into an awk script 'defines.awk', embedded as 12995# here-document in config.status, that substitutes the proper values into 12996# config.h.in to produce config.h. 12997 12998# Create a delimiter string that does not exist in confdefs.h, to ease 12999# handling of long lines. 13000ac_delim='%!_!# ' 13001for ac_last_try in false false :; do 13002 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13003 if test -z "$ac_tt"; then 13004 break 13005 elif $ac_last_try; then 13006 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13007 else 13008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13009 fi 13010done 13011 13012# For the awk script, D is an array of macro values keyed by name, 13013# likewise P contains macro parameters if any. Preserve backslash 13014# newline sequences. 13015 13016ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13017sed -n ' 13018s/.\{148\}/&'"$ac_delim"'/g 13019t rset 13020:rset 13021s/^[ ]*#[ ]*define[ ][ ]*/ / 13022t def 13023d 13024:def 13025s/\\$// 13026t bsnl 13027s/["\\]/\\&/g 13028s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13029D["\1"]=" \3"/p 13030s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13031d 13032:bsnl 13033s/["\\]/\\&/g 13034s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13035D["\1"]=" \3\\\\\\n"\\/p 13036t cont 13037s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13038t cont 13039d 13040:cont 13041n 13042s/.\{148\}/&'"$ac_delim"'/g 13043t clear 13044:clear 13045s/\\$// 13046t bsnlc 13047s/["\\]/\\&/g; s/^/"/; s/$/"/p 13048d 13049:bsnlc 13050s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13051b cont 13052' <confdefs.h | sed ' 13053s/'"$ac_delim"'/"\\\ 13054"/g' >>$CONFIG_STATUS || ac_write_fail=1 13055 13056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13057 for (key in D) D_is_set[key] = 1 13058 FS = "" 13059} 13060/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13061 line = \$ 0 13062 split(line, arg, " ") 13063 if (arg[1] == "#") { 13064 defundef = arg[2] 13065 mac1 = arg[3] 13066 } else { 13067 defundef = substr(arg[1], 2) 13068 mac1 = arg[2] 13069 } 13070 split(mac1, mac2, "(") #) 13071 macro = mac2[1] 13072 prefix = substr(line, 1, index(line, defundef) - 1) 13073 if (D_is_set[macro]) { 13074 # Preserve the white space surrounding the "#". 13075 print prefix "define", macro P[macro] D[macro] 13076 next 13077 } else { 13078 # Replace #undef with comments. This is necessary, for example, 13079 # in the case of _POSIX_SOURCE, which is predefined and required 13080 # on some systems where configure will not decide to define it. 13081 if (defundef == "undef") { 13082 print "/*", prefix defundef, macro, "*/" 13083 next 13084 } 13085 } 13086} 13087{ print } 13088_ACAWK 13089_ACEOF 13090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13091 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13092fi # test -n "$CONFIG_HEADERS" 13093 13094 13095eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13096shift 13097for ac_tag 13098do 13099 case $ac_tag in 13100 :[FHLC]) ac_mode=$ac_tag; continue;; 13101 esac 13102 case $ac_mode$ac_tag in 13103 :[FHL]*:*);; 13104 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13105 :[FH]-) ac_tag=-:-;; 13106 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13107 esac 13108 ac_save_IFS=$IFS 13109 IFS=: 13110 set x $ac_tag 13111 IFS=$ac_save_IFS 13112 shift 13113 ac_file=$1 13114 shift 13115 13116 case $ac_mode in 13117 :L) ac_source=$1;; 13118 :[FH]) 13119 ac_file_inputs= 13120 for ac_f 13121 do 13122 case $ac_f in 13123 -) ac_f="$ac_tmp/stdin";; 13124 *) # Look for the file first in the build tree, then in the source tree 13125 # (if the path is not absolute). The absolute path cannot be DOS-style, 13126 # because $ac_f cannot contain ':'. 13127 test -f "$ac_f" || 13128 case $ac_f in 13129 [\\/$]*) false;; 13130 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13131 esac || 13132 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13133 esac 13134 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13135 as_fn_append ac_file_inputs " '$ac_f'" 13136 done 13137 13138 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13139 # use $as_me), people would be surprised to read: 13140 # /* config.h. Generated by config.status. */ 13141 configure_input='Generated from '` 13142 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13143 `' by configure.' 13144 if test x"$ac_file" != x-; then 13145 configure_input="$ac_file. $configure_input" 13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13147printf "%s\n" "$as_me: creating $ac_file" >&6;} 13148 fi 13149 # Neutralize special characters interpreted by sed in replacement strings. 13150 case $configure_input in #( 13151 *\&* | *\|* | *\\* ) 13152 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13153 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13154 *) ac_sed_conf_input=$configure_input;; 13155 esac 13156 13157 case $ac_tag in 13158 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13160 esac 13161 ;; 13162 esac 13163 13164 ac_dir=`$as_dirname -- "$ac_file" || 13165$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13166 X"$ac_file" : 'X\(//\)[^/]' \| \ 13167 X"$ac_file" : 'X\(//\)$' \| \ 13168 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13169printf "%s\n" X"$ac_file" | 13170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13171 s//\1/ 13172 q 13173 } 13174 /^X\(\/\/\)[^/].*/{ 13175 s//\1/ 13176 q 13177 } 13178 /^X\(\/\/\)$/{ 13179 s//\1/ 13180 q 13181 } 13182 /^X\(\/\).*/{ 13183 s//\1/ 13184 q 13185 } 13186 s/.*/./; q'` 13187 as_dir="$ac_dir"; as_fn_mkdir_p 13188 ac_builddir=. 13189 13190case "$ac_dir" in 13191.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13192*) 13193 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13194 # A ".." for each directory in $ac_dir_suffix. 13195 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13196 case $ac_top_builddir_sub in 13197 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13198 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13199 esac ;; 13200esac 13201ac_abs_top_builddir=$ac_pwd 13202ac_abs_builddir=$ac_pwd$ac_dir_suffix 13203# for backward compatibility: 13204ac_top_builddir=$ac_top_build_prefix 13205 13206case $srcdir in 13207 .) # We are building in place. 13208 ac_srcdir=. 13209 ac_top_srcdir=$ac_top_builddir_sub 13210 ac_abs_top_srcdir=$ac_pwd ;; 13211 [\\/]* | ?:[\\/]* ) # Absolute name. 13212 ac_srcdir=$srcdir$ac_dir_suffix; 13213 ac_top_srcdir=$srcdir 13214 ac_abs_top_srcdir=$srcdir ;; 13215 *) # Relative name. 13216 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13217 ac_top_srcdir=$ac_top_build_prefix$srcdir 13218 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13219esac 13220ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13221 13222 13223 case $ac_mode in 13224 :F) 13225 # 13226 # CONFIG_FILE 13227 # 13228 13229 case $INSTALL in 13230 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13231 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13232 esac 13233 ac_MKDIR_P=$MKDIR_P 13234 case $MKDIR_P in 13235 [\\/$]* | ?:[\\/]* ) ;; 13236 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13237 esac 13238_ACEOF 13239 13240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13241# If the template does not know about datarootdir, expand it. 13242# FIXME: This hack should be removed a few years after 2.60. 13243ac_datarootdir_hack=; ac_datarootdir_seen= 13244ac_sed_dataroot=' 13245/datarootdir/ { 13246 p 13247 q 13248} 13249/@datadir@/p 13250/@docdir@/p 13251/@infodir@/p 13252/@localedir@/p 13253/@mandir@/p' 13254case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13255*datarootdir*) ac_datarootdir_seen=yes;; 13256*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13258printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13259_ACEOF 13260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13261 ac_datarootdir_hack=' 13262 s&@datadir@&$datadir&g 13263 s&@docdir@&$docdir&g 13264 s&@infodir@&$infodir&g 13265 s&@localedir@&$localedir&g 13266 s&@mandir@&$mandir&g 13267 s&\\\${datarootdir}&$datarootdir&g' ;; 13268esac 13269_ACEOF 13270 13271# Neutralize VPATH when '$srcdir' = '.'. 13272# Shell code in configure.ac might set extrasub. 13273# FIXME: do we really want to maintain this feature? 13274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13275ac_sed_extra="$ac_vpsub 13276$extrasub 13277_ACEOF 13278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13279:t 13280/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13281s|@configure_input@|$ac_sed_conf_input|;t t 13282s&@top_builddir@&$ac_top_builddir_sub&;t t 13283s&@top_build_prefix@&$ac_top_build_prefix&;t t 13284s&@srcdir@&$ac_srcdir&;t t 13285s&@abs_srcdir@&$ac_abs_srcdir&;t t 13286s&@top_srcdir@&$ac_top_srcdir&;t t 13287s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13288s&@builddir@&$ac_builddir&;t t 13289s&@abs_builddir@&$ac_abs_builddir&;t t 13290s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13291s&@INSTALL@&$ac_INSTALL&;t t 13292s&@MKDIR_P@&$ac_MKDIR_P&;t t 13293$ac_datarootdir_hack 13294" 13295eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13296 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13297 13298test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13299 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13300 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13301 "$ac_tmp/out"`; test -z "$ac_out"; } && 13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13303which seems to be undefined. Please make sure it is defined" >&5 13304printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13305which seems to be undefined. Please make sure it is defined" >&2;} 13306 13307 rm -f "$ac_tmp/stdin" 13308 case $ac_file in 13309 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13310 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13311 esac \ 13312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13313 ;; 13314 :H) 13315 # 13316 # CONFIG_HEADER 13317 # 13318 if test x"$ac_file" != x-; then 13319 { 13320 printf "%s\n" "/* $configure_input */" >&1 \ 13321 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13322 } >"$ac_tmp/config.h" \ 13323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13324 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13326printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13327 else 13328 rm -f "$ac_file" 13329 mv "$ac_tmp/config.h" "$ac_file" \ 13330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13331 fi 13332 else 13333 printf "%s\n" "/* $configure_input */" >&1 \ 13334 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13335 || as_fn_error $? "could not create -" "$LINENO" 5 13336 fi 13337# Compute "$ac_file"'s index in $config_headers. 13338_am_arg="$ac_file" 13339_am_stamp_count=1 13340for _am_header in $config_headers :; do 13341 case $_am_header in 13342 $_am_arg | $_am_arg:* ) 13343 break ;; 13344 * ) 13345 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13346 esac 13347done 13348echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13349$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13350 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13351 X"$_am_arg" : 'X\(//\)$' \| \ 13352 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13353printf "%s\n" X"$_am_arg" | 13354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13355 s//\1/ 13356 q 13357 } 13358 /^X\(\/\/\)[^/].*/{ 13359 s//\1/ 13360 q 13361 } 13362 /^X\(\/\/\)$/{ 13363 s//\1/ 13364 q 13365 } 13366 /^X\(\/\).*/{ 13367 s//\1/ 13368 q 13369 } 13370 s/.*/./; q'`/stamp-h$_am_stamp_count 13371 ;; 13372 13373 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13374printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13375 ;; 13376 esac 13377 13378 13379 case $ac_file$ac_mode in 13380 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13381 # Older Autoconf quotes --file arguments for eval, but not when files 13382 # are listed without --file. Let's play safe and only enable the eval 13383 # if we detect the quoting. 13384 # TODO: see whether this extra hack can be removed once we start 13385 # requiring Autoconf 2.70 or later. 13386 case $CONFIG_FILES in #( 13387 *\'*) : 13388 eval set x "$CONFIG_FILES" ;; #( 13389 *) : 13390 set x $CONFIG_FILES ;; #( 13391 *) : 13392 ;; 13393esac 13394 shift 13395 # Used to flag and report bootstrapping failures. 13396 am_rc=0 13397 for am_mf 13398 do 13399 # Strip MF so we end up with the name of the file. 13400 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13401 # Check whether this is an Automake generated Makefile which includes 13402 # dependency-tracking related rules and includes. 13403 # Grep'ing the whole file directly is not great: AIX grep has a line 13404 # limit of 2048, but all sed's we know have understand at least 4000. 13405 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13406 || continue 13407 am_dirpart=`$as_dirname -- "$am_mf" || 13408$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13409 X"$am_mf" : 'X\(//\)[^/]' \| \ 13410 X"$am_mf" : 'X\(//\)$' \| \ 13411 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13412printf "%s\n" X"$am_mf" | 13413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13414 s//\1/ 13415 q 13416 } 13417 /^X\(\/\/\)[^/].*/{ 13418 s//\1/ 13419 q 13420 } 13421 /^X\(\/\/\)$/{ 13422 s//\1/ 13423 q 13424 } 13425 /^X\(\/\).*/{ 13426 s//\1/ 13427 q 13428 } 13429 s/.*/./; q'` 13430 am_filepart=`$as_basename -- "$am_mf" || 13431$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13432 X"$am_mf" : 'X\(//\)$' \| \ 13433 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13434printf "%s\n" X/"$am_mf" | 13435 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13436 s//\1/ 13437 q 13438 } 13439 /^X\/\(\/\/\)$/{ 13440 s//\1/ 13441 q 13442 } 13443 /^X\/\(\/\).*/{ 13444 s//\1/ 13445 q 13446 } 13447 s/.*/./; q'` 13448 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13449 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13450 | $MAKE -f - am--depfiles" >&5 13451 (cd "$am_dirpart" \ 13452 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13453 | $MAKE -f - am--depfiles) >&5 2>&5 13454 ac_status=$? 13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13456 (exit $ac_status); } || am_rc=$? 13457 done 13458 if test $am_rc -ne 0; then 13459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13460printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13461as_fn_error $? "Something went wrong bootstrapping makefile fragments 13462 for automatic dependency tracking. If GNU make was not used, consider 13463 re-running the configure script with MAKE=\"gmake\" (or whatever is 13464 necessary). You can also try re-running configure with the 13465 '--disable-dependency-tracking' option to at least be able to build 13466 the package (albeit without support for automatic dependency tracking). 13467See 'config.log' for more details" "$LINENO" 5; } 13468 fi 13469 { am_dirpart=; unset am_dirpart;} 13470 { am_filepart=; unset am_filepart;} 13471 { am_mf=; unset am_mf;} 13472 { am_rc=; unset am_rc;} 13473 rm -f conftest-deps.mk 13474} 13475 ;; 13476 13477 esac 13478done # for ac_tag 13479 13480 13481as_fn_exit 0 13482_ACEOF 13483ac_clean_files=$ac_clean_files_save 13484 13485test $ac_write_fail = 0 || 13486 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13487 13488 13489# configure is writing to config.log, and then calls config.status. 13490# config.status does its own redirection, appending to config.log. 13491# Unfortunately, on DOS this fails, as config.log is still kept open 13492# by configure, so config.status won't be able to write to it; its 13493# output is simply discarded. So we exec the FD to /dev/null, 13494# effectively closing config.log, so it can be properly (re)opened and 13495# appended to by config.status. When coming back to configure, we 13496# need to make the FD available again. 13497if test "$no_create" != yes; then 13498 ac_cs_success=: 13499 ac_config_status_args= 13500 test "$silent" = yes && 13501 ac_config_status_args="$ac_config_status_args --quiet" 13502 exec 5>/dev/null 13503 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13504 exec 5>>config.log 13505 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13506 # would make configure fail if this is the last instruction. 13507 $ac_cs_success || as_fn_exit 1 13508fi 13509if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13511printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13512fi 13513 13514 13515echo "" 13516echo "$PACKAGE_STRING will be built with the following settings:" 13517echo " XFT: "$USE_XFT 13518 13519