167f05d30Smrg#! /bin/sh 267f05d30Smrg# Guess values for system-dependent variables and create Makefiles. 3051ceee6Smrg# Generated by GNU Autoconf 2.71 for viewres 1.0.7. 467f05d30Smrg# 5051ceee6Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/viewres/-/issues>. 667f05d30Smrg# 7fffe5102Smrg# 8051ceee6Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9051ceee6Smrg# Inc. 10fffe5102Smrg# 11fffe5102Smrg# 1267f05d30Smrg# This configure script is free software; the Free Software Foundation 1367f05d30Smrg# gives unlimited permission to copy, distribute and modify it. 14fffe5102Smrg## -------------------- ## 15fffe5102Smrg## M4sh Initialization. ## 16fffe5102Smrg## -------------------- ## 1767f05d30Smrg 18fffe5102Smrg# Be more Bourne compatible 19fffe5102SmrgDUALCASE=1; export DUALCASE # for MKS sh 20051ceee6Smrgas_nop=: 21051ceee6Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22051ceee6Smrgthen : 2367f05d30Smrg emulate sh 2467f05d30Smrg NULLCMD=: 25fffe5102Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2667f05d30Smrg # is contrary to our usage. Disable this feature. 2767f05d30Smrg alias -g '${1+"$@"}'='"$@"' 28fffe5102Smrg setopt NO_GLOB_SUBST 29051ceee6Smrgelse $as_nop 30fffe5102Smrg case `(set -o) 2>/dev/null` in #( 31fffe5102Smrg *posix*) : 32fffe5102Smrg set -o posix ;; #( 33fffe5102Smrg *) : 34fffe5102Smrg ;; 35fffe5102Smrgesac 3667f05d30Smrgfi 3767f05d30Smrg 38fffe5102Smrg 39051ceee6Smrg 40051ceee6Smrg# Reset variables that may have inherited troublesome values from 41051ceee6Smrg# the environment. 42051ceee6Smrg 43051ceee6Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 44051ceee6Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 45051ceee6Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 46051ceee6Smrg# Quoting is to prevent editors from complaining about space-tab. 47fffe5102Smrgas_nl=' 48fffe5102Smrg' 49fffe5102Smrgexport as_nl 50051ceee6SmrgIFS=" "" $as_nl" 51051ceee6Smrg 52051ceee6SmrgPS1='$ ' 53051ceee6SmrgPS2='> ' 54051ceee6SmrgPS4='+ ' 55051ceee6Smrg 56051ceee6Smrg# Ensure predictable behavior from utilities with locale-dependent output. 57051ceee6SmrgLC_ALL=C 58051ceee6Smrgexport LC_ALL 59051ceee6SmrgLANGUAGE=C 60051ceee6Smrgexport LANGUAGE 61051ceee6Smrg 62051ceee6Smrg# We cannot yet rely on "unset" to work, but we need these variables 63051ceee6Smrg# to be unset--not just set to an empty or harmless value--now, to 64051ceee6Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65051ceee6Smrg# also avoids known problems related to "unset" and subshell syntax 66051ceee6Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67051ceee6Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68051ceee6Smrgdo eval test \${$as_var+y} \ 69051ceee6Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70051ceee6Smrgdone 71051ceee6Smrg 72051ceee6Smrg# Ensure that fds 0, 1, and 2 are open. 73051ceee6Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74051ceee6Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75051ceee6Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76fffe5102Smrg 77fffe5102Smrg# The user is always right. 78051ceee6Smrgif ${PATH_SEPARATOR+false} :; then 79fffe5102Smrg PATH_SEPARATOR=: 80fffe5102Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81fffe5102Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82fffe5102Smrg PATH_SEPARATOR=';' 83fffe5102Smrg } 8467f05d30Smrgfi 8567f05d30Smrg 8667f05d30Smrg 87fffe5102Smrg# Find who we are. Look in the path if we contain no directory separator. 88fc51f767Smrgas_myself= 89fffe5102Smrgcase $0 in #(( 90fffe5102Smrg *[\\/]* ) as_myself=$0 ;; 91fffe5102Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92fffe5102Smrgfor as_dir in $PATH 93fffe5102Smrgdo 94fffe5102Smrg IFS=$as_save_IFS 95051ceee6Smrg case $as_dir in #((( 96051ceee6Smrg '') as_dir=./ ;; 97051ceee6Smrg */) ;; 98051ceee6Smrg *) as_dir=$as_dir/ ;; 99051ceee6Smrg esac 100051ceee6Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101fffe5102Smrg done 102fffe5102SmrgIFS=$as_save_IFS 103fffe5102Smrg 104fffe5102Smrg ;; 105fffe5102Smrgesac 106fffe5102Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 107fffe5102Smrg# in which case we are not to be found in the path. 108fffe5102Smrgif test "x$as_myself" = x; then 109fffe5102Smrg as_myself=$0 110fffe5102Smrgfi 111fffe5102Smrgif test ! -f "$as_myself"; then 112051ceee6Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113fffe5102Smrg exit 1 114fffe5102Smrgfi 115fffe5102Smrg 116fffe5102Smrg 117e90eff46Smrg# Use a proper internal environment variable to ensure we don't fall 118e90eff46Smrg # into an infinite loop, continuously re-executing ourselves. 119e90eff46Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120e90eff46Smrg _as_can_reexec=no; export _as_can_reexec; 121e90eff46Smrg # We cannot yet assume a decent shell, so we have to provide a 122e90eff46Smrg# neutralization value for shells without unset; and this also 123e90eff46Smrg# works around shells that cannot unset nonexistent variables. 124e90eff46Smrg# Preserve -v and -x to the replacement shell. 125e90eff46SmrgBASH_ENV=/dev/null 126e90eff46SmrgENV=/dev/null 127e90eff46Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128e90eff46Smrgcase $- in # (((( 129e90eff46Smrg *v*x* | *x*v* ) as_opts=-vx ;; 130e90eff46Smrg *v* ) as_opts=-v ;; 131e90eff46Smrg *x* ) as_opts=-x ;; 132e90eff46Smrg * ) as_opts= ;; 133e90eff46Smrgesac 134e90eff46Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135e90eff46Smrg# Admittedly, this is quite paranoid, since all the known shells bail 136e90eff46Smrg# out after a failed `exec'. 137051ceee6Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138051ceee6Smrgexit 255 139e90eff46Smrg fi 140e90eff46Smrg # We don't want this to propagate to other subprocesses. 141e90eff46Smrg { _as_can_reexec=; unset _as_can_reexec;} 142fffe5102Smrgif test "x$CONFIG_SHELL" = x; then 143051ceee6Smrg as_bourne_compatible="as_nop=: 144051ceee6Smrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145051ceee6Smrgthen : 146fffe5102Smrg emulate sh 147fffe5102Smrg NULLCMD=: 148fffe5102Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149fffe5102Smrg # is contrary to our usage. Disable this feature. 150fffe5102Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 151fffe5102Smrg setopt NO_GLOB_SUBST 152051ceee6Smrgelse \$as_nop 153fffe5102Smrg case \`(set -o) 2>/dev/null\` in #( 154fffe5102Smrg *posix*) : 155fffe5102Smrg set -o posix ;; #( 156fffe5102Smrg *) : 157fffe5102Smrg ;; 158fffe5102Smrgesac 159fffe5102Smrgfi 160fffe5102Smrg" 161fffe5102Smrg as_required="as_fn_return () { (exit \$1); } 162fffe5102Smrgas_fn_success () { as_fn_return 0; } 163fffe5102Smrgas_fn_failure () { as_fn_return 1; } 164fffe5102Smrgas_fn_ret_success () { return 0; } 165fffe5102Smrgas_fn_ret_failure () { return 1; } 166fffe5102Smrg 167fffe5102Smrgexitcode=0 168fffe5102Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 169fffe5102Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170fffe5102Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171fffe5102Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172051ceee6Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173051ceee6Smrgthen : 174fffe5102Smrg 175051ceee6Smrgelse \$as_nop 176fffe5102Smrg exitcode=1; echo positional parameters were not saved. 177fffe5102Smrgfi 178e90eff46Smrgtest x\$exitcode = x0 || exit 1 179051ceee6Smrgblah=\$(echo \$(echo blah)) 180051ceee6Smrgtest x\"\$blah\" = xblah || exit 1 181e90eff46Smrgtest -x / || exit 1" 182fffe5102Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183fffe5102Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184fffe5102Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185fffe5102Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186fffe5102Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 187051ceee6Smrg if (eval "$as_required") 2>/dev/null 188051ceee6Smrgthen : 189fffe5102Smrg as_have_required=yes 190051ceee6Smrgelse $as_nop 191fffe5102Smrg as_have_required=no 192fffe5102Smrgfi 193051ceee6Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194051ceee6Smrgthen : 195fffe5102Smrg 196051ceee6Smrgelse $as_nop 197fffe5102Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198fffe5102Smrgas_found=false 199fffe5102Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20067f05d30Smrgdo 201fffe5102Smrg IFS=$as_save_IFS 202051ceee6Smrg case $as_dir in #((( 203051ceee6Smrg '') as_dir=./ ;; 204051ceee6Smrg */) ;; 205051ceee6Smrg *) as_dir=$as_dir/ ;; 206051ceee6Smrg esac 207fffe5102Smrg as_found=: 208fffe5102Smrg case $as_dir in #( 209fffe5102Smrg /*) 210fffe5102Smrg for as_base in sh bash ksh sh5; do 211fffe5102Smrg # Try only shells that exist, to save several forks. 212051ceee6Smrg as_shell=$as_dir$as_base 213fffe5102Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214051ceee6Smrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215051ceee6Smrgthen : 216fffe5102Smrg CONFIG_SHELL=$as_shell as_have_required=yes 217051ceee6Smrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218051ceee6Smrgthen : 219fffe5102Smrg break 2 220fffe5102Smrgfi 221fffe5102Smrgfi 222fffe5102Smrg done;; 223fffe5102Smrg esac 224fffe5102Smrg as_found=false 225fffe5102Smrgdone 226fffe5102SmrgIFS=$as_save_IFS 227051ceee6Smrgif $as_found 228051ceee6Smrgthen : 229051ceee6Smrg 230051ceee6Smrgelse $as_nop 231051ceee6Smrg if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232051ceee6Smrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233051ceee6Smrgthen : 234051ceee6Smrg CONFIG_SHELL=$SHELL as_have_required=yes 235051ceee6Smrgfi 236051ceee6Smrgfi 237fffe5102Smrg 238fffe5102Smrg 239051ceee6Smrg if test "x$CONFIG_SHELL" != x 240051ceee6Smrgthen : 241e90eff46Smrg export CONFIG_SHELL 242e90eff46Smrg # We cannot yet assume a decent shell, so we have to provide a 243e90eff46Smrg# neutralization value for shells without unset; and this also 244e90eff46Smrg# works around shells that cannot unset nonexistent variables. 245e90eff46Smrg# Preserve -v and -x to the replacement shell. 246e90eff46SmrgBASH_ENV=/dev/null 247e90eff46SmrgENV=/dev/null 248e90eff46Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249e90eff46Smrgcase $- in # (((( 250e90eff46Smrg *v*x* | *x*v* ) as_opts=-vx ;; 251e90eff46Smrg *v* ) as_opts=-v ;; 252e90eff46Smrg *x* ) as_opts=-x ;; 253e90eff46Smrg * ) as_opts= ;; 254e90eff46Smrgesac 255e90eff46Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256e90eff46Smrg# Admittedly, this is quite paranoid, since all the known shells bail 257e90eff46Smrg# out after a failed `exec'. 258051ceee6Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259e90eff46Smrgexit 255 260fffe5102Smrgfi 261fffe5102Smrg 262051ceee6Smrg if test x$as_have_required = xno 263051ceee6Smrgthen : 264051ceee6Smrg printf "%s\n" "$0: This script requires a shell more modern than all" 265051ceee6Smrg printf "%s\n" "$0: the shells that I found on your system." 266051ceee6Smrg if test ${ZSH_VERSION+y} ; then 267051ceee6Smrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268051ceee6Smrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 26967f05d30Smrg else 270051ceee6Smrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271051ceee6Smrg$0: https://gitlab.freedesktop.org/xorg/app/viewres/-/issues 272fffe5102Smrg$0: about your system, including any error possibly output 273fffe5102Smrg$0: before this message. Then install a modern shell, or 274fffe5102Smrg$0: manually run the script under such a shell if you do 275fffe5102Smrg$0: have one." 27667f05d30Smrg fi 277fffe5102Smrg exit 1 278fffe5102Smrgfi 279fffe5102Smrgfi 280fffe5102Smrgfi 281fffe5102SmrgSHELL=${CONFIG_SHELL-/bin/sh} 282fffe5102Smrgexport SHELL 283fffe5102Smrg# Unset more variables known to interfere with behavior of common tools. 284fffe5102SmrgCLICOLOR_FORCE= GREP_OPTIONS= 285fffe5102Smrgunset CLICOLOR_FORCE GREP_OPTIONS 286fffe5102Smrg 287fffe5102Smrg## --------------------- ## 288fffe5102Smrg## M4sh Shell Functions. ## 289fffe5102Smrg## --------------------- ## 290fffe5102Smrg# as_fn_unset VAR 291fffe5102Smrg# --------------- 292fffe5102Smrg# Portably unset VAR. 293fffe5102Smrgas_fn_unset () 294fffe5102Smrg{ 295fffe5102Smrg { eval $1=; unset $1;} 296fffe5102Smrg} 297fffe5102Smrgas_unset=as_fn_unset 298fffe5102Smrg 299051ceee6Smrg 300fffe5102Smrg# as_fn_set_status STATUS 301fffe5102Smrg# ----------------------- 302fffe5102Smrg# Set $? to STATUS, without forking. 303fffe5102Smrgas_fn_set_status () 304fffe5102Smrg{ 305fffe5102Smrg return $1 306fffe5102Smrg} # as_fn_set_status 307fffe5102Smrg 308fffe5102Smrg# as_fn_exit STATUS 309fffe5102Smrg# ----------------- 310fffe5102Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311fffe5102Smrgas_fn_exit () 312fffe5102Smrg{ 313fffe5102Smrg set +e 314fffe5102Smrg as_fn_set_status $1 315fffe5102Smrg exit $1 316fffe5102Smrg} # as_fn_exit 317051ceee6Smrg# as_fn_nop 318051ceee6Smrg# --------- 319051ceee6Smrg# Do nothing but, unlike ":", preserve the value of $?. 320051ceee6Smrgas_fn_nop () 321051ceee6Smrg{ 322051ceee6Smrg return $? 323051ceee6Smrg} 324051ceee6Smrgas_nop=as_fn_nop 325fffe5102Smrg 326fffe5102Smrg# as_fn_mkdir_p 327fffe5102Smrg# ------------- 328fffe5102Smrg# Create "$as_dir" as a directory, including parents if necessary. 329fffe5102Smrgas_fn_mkdir_p () 330fffe5102Smrg{ 33167f05d30Smrg 332fffe5102Smrg case $as_dir in #( 333fffe5102Smrg -*) as_dir=./$as_dir;; 334fffe5102Smrg esac 335fffe5102Smrg test -d "$as_dir" || eval $as_mkdir_p || { 336fffe5102Smrg as_dirs= 337fffe5102Smrg while :; do 338fffe5102Smrg case $as_dir in #( 339051ceee6Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340fffe5102Smrg *) as_qdir=$as_dir;; 341fffe5102Smrg esac 342fffe5102Smrg as_dirs="'$as_qdir' $as_dirs" 343fffe5102Smrg as_dir=`$as_dirname -- "$as_dir" || 344fffe5102Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345fffe5102Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 346fffe5102Smrg X"$as_dir" : 'X\(//\)$' \| \ 347fffe5102Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348051ceee6Smrgprintf "%s\n" X"$as_dir" | 349fffe5102Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350fffe5102Smrg s//\1/ 351fffe5102Smrg q 352fffe5102Smrg } 353fffe5102Smrg /^X\(\/\/\)[^/].*/{ 354fffe5102Smrg s//\1/ 355fffe5102Smrg q 356fffe5102Smrg } 357fffe5102Smrg /^X\(\/\/\)$/{ 358fffe5102Smrg s//\1/ 359fffe5102Smrg q 360fffe5102Smrg } 361fffe5102Smrg /^X\(\/\).*/{ 362fffe5102Smrg s//\1/ 363fffe5102Smrg q 364fffe5102Smrg } 365fffe5102Smrg s/.*/./; q'` 366fffe5102Smrg test -d "$as_dir" && break 367fffe5102Smrg done 368fffe5102Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 369fc51f767Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370fffe5102Smrg 371fffe5102Smrg 372fffe5102Smrg} # as_fn_mkdir_p 373e90eff46Smrg 374e90eff46Smrg# as_fn_executable_p FILE 375e90eff46Smrg# ----------------------- 376e90eff46Smrg# Test if FILE is an executable regular file. 377e90eff46Smrgas_fn_executable_p () 378e90eff46Smrg{ 379e90eff46Smrg test -f "$1" && test -x "$1" 380e90eff46Smrg} # as_fn_executable_p 381fffe5102Smrg# as_fn_append VAR VALUE 382fffe5102Smrg# ---------------------- 383fffe5102Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 384fffe5102Smrg# advantage of any shell optimizations that allow amortized linear growth over 385fffe5102Smrg# repeated appends, instead of the typical quadratic growth present in naive 386fffe5102Smrg# implementations. 387051ceee6Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388051ceee6Smrgthen : 389fffe5102Smrg eval 'as_fn_append () 390fffe5102Smrg { 391fffe5102Smrg eval $1+=\$2 392fffe5102Smrg }' 393051ceee6Smrgelse $as_nop 394fffe5102Smrg as_fn_append () 395fffe5102Smrg { 396fffe5102Smrg eval $1=\$$1\$2 397fffe5102Smrg } 398fffe5102Smrgfi # as_fn_append 399fffe5102Smrg 400fffe5102Smrg# as_fn_arith ARG... 401fffe5102Smrg# ------------------ 402fffe5102Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 403fffe5102Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 404fffe5102Smrg# must be portable across $(()) and expr. 405051ceee6Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406051ceee6Smrgthen : 407fffe5102Smrg eval 'as_fn_arith () 408fffe5102Smrg { 409fffe5102Smrg as_val=$(( $* )) 410fffe5102Smrg }' 411051ceee6Smrgelse $as_nop 412fffe5102Smrg as_fn_arith () 413fffe5102Smrg { 414fffe5102Smrg as_val=`expr "$@" || test $? -eq 1` 415fffe5102Smrg } 416fffe5102Smrgfi # as_fn_arith 417fffe5102Smrg 418051ceee6Smrg# as_fn_nop 419051ceee6Smrg# --------- 420051ceee6Smrg# Do nothing but, unlike ":", preserve the value of $?. 421051ceee6Smrgas_fn_nop () 422051ceee6Smrg{ 423051ceee6Smrg return $? 424051ceee6Smrg} 425051ceee6Smrgas_nop=as_fn_nop 426fffe5102Smrg 427fc51f767Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 428fc51f767Smrg# ---------------------------------------- 429fffe5102Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430fffe5102Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431fc51f767Smrg# script with STATUS, using 1 if that was 0. 432fffe5102Smrgas_fn_error () 433fffe5102Smrg{ 434fc51f767Smrg as_status=$1; test $as_status -eq 0 && as_status=1 435fc51f767Smrg if test "$4"; then 436fc51f767Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438fffe5102Smrg fi 439051ceee6Smrg printf "%s\n" "$as_me: error: $2" >&2 440fffe5102Smrg as_fn_exit $as_status 441fffe5102Smrg} # as_fn_error 442fffe5102Smrg 443fffe5102Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 444fffe5102Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 44567f05d30Smrg as_expr=expr 44667f05d30Smrgelse 44767f05d30Smrg as_expr=false 44867f05d30Smrgfi 44967f05d30Smrg 450fffe5102Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 45167f05d30Smrg as_basename=basename 45267f05d30Smrgelse 45367f05d30Smrg as_basename=false 45467f05d30Smrgfi 45567f05d30Smrg 456fffe5102Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457fffe5102Smrg as_dirname=dirname 458fffe5102Smrgelse 459fffe5102Smrg as_dirname=false 460fffe5102Smrgfi 46167f05d30Smrg 462fffe5102Smrgas_me=`$as_basename -- "$0" || 46367f05d30Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 46467f05d30Smrg X"$0" : 'X\(//\)$' \| \ 465fffe5102Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 466051ceee6Smrgprintf "%s\n" X/"$0" | 467fffe5102Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 468fffe5102Smrg s//\1/ 469fffe5102Smrg q 470fffe5102Smrg } 471fffe5102Smrg /^X\/\(\/\/\)$/{ 472fffe5102Smrg s//\1/ 473fffe5102Smrg q 474fffe5102Smrg } 475fffe5102Smrg /^X\/\(\/\).*/{ 476fffe5102Smrg s//\1/ 477fffe5102Smrg q 478fffe5102Smrg } 479fffe5102Smrg s/.*/./; q'` 48067f05d30Smrg 48167f05d30Smrg# Avoid depending upon Character Ranges. 48267f05d30Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 48367f05d30Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 48467f05d30Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 48567f05d30Smrgas_cr_digits='0123456789' 48667f05d30Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 48767f05d30Smrg 48867f05d30Smrg 489fffe5102Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 490fffe5102Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 491fffe5102Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492fffe5102Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493fffe5102Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494fffe5102Smrg sed -n ' 495fffe5102Smrg p 496fffe5102Smrg /[$]LINENO/= 497fffe5102Smrg ' <$as_myself | 49867f05d30Smrg sed ' 499fffe5102Smrg s/[$]LINENO.*/&-/ 500fffe5102Smrg t lineno 501fffe5102Smrg b 502fffe5102Smrg :lineno 50367f05d30Smrg N 504fffe5102Smrg :loop 505fffe5102Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 50667f05d30Smrg t loop 507fffe5102Smrg s/-\n.*// 50867f05d30Smrg ' >$as_me.lineno && 509fffe5102Smrg chmod +x "$as_me.lineno" || 510051ceee6Smrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 51167f05d30Smrg 512e90eff46Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513e90eff46Smrg # already done that, so ensure we don't try to do so again and fall 514e90eff46Smrg # in an infinite loop. This has already happened in practice. 515e90eff46Smrg _as_can_reexec=no; export _as_can_reexec 51667f05d30Smrg # Don't try to exec as it changes $[0], causing all sort of problems 51767f05d30Smrg # (the dirname of $[0] is not the place where we might find the 518fffe5102Smrg # original and so on. Autoconf is especially sensitive to this). 519fffe5102Smrg . "./$as_me.lineno" 52067f05d30Smrg # Exit status is that of the last command. 52167f05d30Smrg exit 52267f05d30Smrg} 52367f05d30Smrg 524051ceee6Smrg 525051ceee6Smrg# Determine whether it's possible to make 'echo' print without a newline. 526051ceee6Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527051ceee6Smrg# for compatibility with existing Makefiles. 528fffe5102SmrgECHO_C= ECHO_N= ECHO_T= 529fffe5102Smrgcase `echo -n x` in #((((( 530fffe5102Smrg-n*) 531fffe5102Smrg case `echo 'xy\c'` in 532fffe5102Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533fffe5102Smrg xy) ECHO_C='\c';; 534fffe5102Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535fffe5102Smrg ECHO_T=' ';; 536fffe5102Smrg esac;; 537fffe5102Smrg*) 538fffe5102Smrg ECHO_N='-n';; 53967f05d30Smrgesac 54067f05d30Smrg 541051ceee6Smrg# For backward compatibility with old third-party macros, we provide 542051ceee6Smrg# the shell variables $as_echo and $as_echo_n. New code should use 543051ceee6Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544051ceee6Smrgas_echo='printf %s\n' 545051ceee6Smrgas_echo_n='printf %s' 546051ceee6Smrg 547051ceee6Smrg 548fffe5102Smrgrm -f conf$$ conf$$.exe conf$$.file 549fffe5102Smrgif test -d conf$$.dir; then 550fffe5102Smrg rm -f conf$$.dir/conf$$.file 55167f05d30Smrgelse 552fffe5102Smrg rm -f conf$$.dir 553fffe5102Smrg mkdir conf$$.dir 2>/dev/null 55467f05d30Smrgfi 555fffe5102Smrgif (echo >conf$$.file) 2>/dev/null; then 556fffe5102Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 55767f05d30Smrg as_ln_s='ln -s' 558fffe5102Smrg # ... but there are two gotchas: 559fffe5102Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560fffe5102Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561e90eff46Smrg # In both cases, we have to default to `cp -pR'. 562fffe5102Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563e90eff46Smrg as_ln_s='cp -pR' 564fffe5102Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 565fffe5102Smrg as_ln_s=ln 566fffe5102Smrg else 567e90eff46Smrg as_ln_s='cp -pR' 56867f05d30Smrg fi 56967f05d30Smrgelse 570e90eff46Smrg as_ln_s='cp -pR' 57167f05d30Smrgfi 572fffe5102Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573fffe5102Smrgrmdir conf$$.dir 2>/dev/null 57467f05d30Smrg 57567f05d30Smrgif mkdir -p . 2>/dev/null; then 576fffe5102Smrg as_mkdir_p='mkdir -p "$as_dir"' 57767f05d30Smrgelse 57867f05d30Smrg test -d ./-p && rmdir ./-p 57967f05d30Smrg as_mkdir_p=false 58067f05d30Smrgfi 58167f05d30Smrg 582e90eff46Smrgas_test_x='test -x' 583e90eff46Smrgas_executable_p=as_fn_executable_p 58467f05d30Smrg 58567f05d30Smrg# Sed expression to map a string onto a valid CPP name. 58667f05d30Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 58767f05d30Smrg 58867f05d30Smrg# Sed expression to map a string onto a valid variable name. 58967f05d30Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 59067f05d30Smrg 59167f05d30Smrg 592fffe5102Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 593fffe5102Smrgexec 6>&1 59467f05d30Smrg 59567f05d30Smrg# Name of the host. 596fc51f767Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 59767f05d30Smrg# so uname gets run too. 59867f05d30Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 59967f05d30Smrg 60067f05d30Smrg# 60167f05d30Smrg# Initializations. 60267f05d30Smrg# 60367f05d30Smrgac_default_prefix=/usr/local 604fffe5102Smrgac_clean_files= 60567f05d30Smrgac_config_libobj_dir=. 606fffe5102SmrgLIBOBJS= 60767f05d30Smrgcross_compiling=no 60867f05d30Smrgsubdirs= 60967f05d30SmrgMFLAGS= 61067f05d30SmrgMAKEFLAGS= 61167f05d30Smrg 61267f05d30Smrg# Identity of this package. 61367f05d30SmrgPACKAGE_NAME='viewres' 61467f05d30SmrgPACKAGE_TARNAME='viewres' 615051ceee6SmrgPACKAGE_VERSION='1.0.7' 616051ceee6SmrgPACKAGE_STRING='viewres 1.0.7' 617051ceee6SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/viewres/-/issues' 618fffe5102SmrgPACKAGE_URL='' 61967f05d30Smrg 620e90eff46Smrgac_unique_file="Makefile.am" 621fffe5102Smrg# Factoring default headers for most tests. 622fffe5102Smrgac_includes_default="\ 623051ceee6Smrg#include <stddef.h> 624051ceee6Smrg#ifdef HAVE_STDIO_H 625051ceee6Smrg# include <stdio.h> 626fffe5102Smrg#endif 627051ceee6Smrg#ifdef HAVE_STDLIB_H 628fffe5102Smrg# include <stdlib.h> 629fffe5102Smrg#endif 630fffe5102Smrg#ifdef HAVE_STRING_H 631fffe5102Smrg# include <string.h> 632fffe5102Smrg#endif 633fffe5102Smrg#ifdef HAVE_INTTYPES_H 634fffe5102Smrg# include <inttypes.h> 635fffe5102Smrg#endif 636fffe5102Smrg#ifdef HAVE_STDINT_H 637fffe5102Smrg# include <stdint.h> 638fffe5102Smrg#endif 639051ceee6Smrg#ifdef HAVE_STRINGS_H 640051ceee6Smrg# include <strings.h> 641051ceee6Smrg#endif 642051ceee6Smrg#ifdef HAVE_SYS_TYPES_H 643051ceee6Smrg# include <sys/types.h> 644051ceee6Smrg#endif 645051ceee6Smrg#ifdef HAVE_SYS_STAT_H 646051ceee6Smrg# include <sys/stat.h> 647051ceee6Smrg#endif 648fffe5102Smrg#ifdef HAVE_UNISTD_H 649fffe5102Smrg# include <unistd.h> 650fffe5102Smrg#endif" 651fffe5102Smrg 652051ceee6Smrgac_header_c_list= 653fffe5102Smrgac_subst_vars='am__EXEEXT_FALSE 654fffe5102Smrgam__EXEEXT_TRUE 655fffe5102SmrgLTLIBOBJS 656fffe5102SmrgLIBOBJS 657fffe5102Smrgappdefaultdir 658fffe5102SmrgVIEWRES_LIBS 659fffe5102SmrgVIEWRES_CFLAGS 660fc51f767SmrgMAN_SUBSTS 661fc51f767SmrgXORG_MAN_PAGE 662fffe5102SmrgADMIN_MAN_DIR 663fffe5102SmrgDRIVER_MAN_DIR 664fffe5102SmrgMISC_MAN_DIR 665fffe5102SmrgFILE_MAN_DIR 666fffe5102SmrgLIB_MAN_DIR 667fffe5102SmrgAPP_MAN_DIR 668fffe5102SmrgADMIN_MAN_SUFFIX 669fffe5102SmrgDRIVER_MAN_SUFFIX 670fffe5102SmrgMISC_MAN_SUFFIX 671fffe5102SmrgFILE_MAN_SUFFIX 672fffe5102SmrgLIB_MAN_SUFFIX 673fffe5102SmrgAPP_MAN_SUFFIX 674fc51f767SmrgSED 675fffe5102Smrghost_os 676fffe5102Smrghost_vendor 677fffe5102Smrghost_cpu 678fffe5102Smrghost 679fffe5102Smrgbuild_os 680fffe5102Smrgbuild_vendor 681fffe5102Smrgbuild_cpu 682fffe5102Smrgbuild 683fffe5102SmrgINSTALL_CMD 684e90eff46SmrgPKG_CONFIG_LIBDIR 685e90eff46SmrgPKG_CONFIG_PATH 686fffe5102SmrgPKG_CONFIG 687fffe5102SmrgCHANGELOG_CMD 6886dbd43aaSmrgSTRICT_CFLAGS 689fffe5102SmrgCWARNFLAGS 6906dbd43aaSmrgBASE_CFLAGS 691fffe5102Smrgam__fastdepCC_FALSE 692fffe5102Smrgam__fastdepCC_TRUE 693fffe5102SmrgCCDEPMODE 6946dbd43aaSmrgam__nodep 695fffe5102SmrgAMDEPBACKSLASH 696fffe5102SmrgAMDEP_FALSE 697fffe5102SmrgAMDEP_TRUE 698fffe5102Smrgam__include 699fffe5102SmrgDEPDIR 700fffe5102SmrgOBJEXT 701fffe5102SmrgEXEEXT 702fffe5102Smrgac_ct_CC 703fffe5102SmrgCPPFLAGS 704fffe5102SmrgLDFLAGS 705fffe5102SmrgCFLAGS 706fffe5102SmrgCC 707e90eff46SmrgAM_BACKSLASH 708e90eff46SmrgAM_DEFAULT_VERBOSITY 709e90eff46SmrgAM_DEFAULT_V 710e90eff46SmrgAM_V 711051ceee6SmrgCSCOPE 712051ceee6SmrgETAGS 713051ceee6SmrgCTAGS 714fffe5102Smrgam__untar 715fffe5102Smrgam__tar 716fffe5102SmrgAMTAR 717fffe5102Smrgam__leading_dot 718fffe5102SmrgSET_MAKE 719fffe5102SmrgAWK 720fffe5102Smrgmkdir_p 721fffe5102SmrgMKDIR_P 722fffe5102SmrgINSTALL_STRIP_PROGRAM 723fffe5102SmrgSTRIP 724fffe5102Smrginstall_sh 725fffe5102SmrgMAKEINFO 726fffe5102SmrgAUTOHEADER 727fffe5102SmrgAUTOMAKE 728fffe5102SmrgAUTOCONF 729fffe5102SmrgACLOCAL 730fffe5102SmrgVERSION 731fffe5102SmrgPACKAGE 732fffe5102SmrgCYGPATH_W 733fffe5102Smrgam__isrc 734fffe5102SmrgINSTALL_DATA 735fffe5102SmrgINSTALL_SCRIPT 736fffe5102SmrgINSTALL_PROGRAM 737fffe5102Smrgtarget_alias 738fffe5102Smrghost_alias 739fffe5102Smrgbuild_alias 740fffe5102SmrgLIBS 741fffe5102SmrgECHO_T 742fffe5102SmrgECHO_N 743fffe5102SmrgECHO_C 744fffe5102SmrgDEFS 745fffe5102Smrgmandir 746fffe5102Smrglocaledir 747fffe5102Smrglibdir 748fffe5102Smrgpsdir 749fffe5102Smrgpdfdir 750fffe5102Smrgdvidir 751fffe5102Smrghtmldir 752fffe5102Smrginfodir 753fffe5102Smrgdocdir 754fffe5102Smrgoldincludedir 755fffe5102Smrgincludedir 756051ceee6Smrgrunstatedir 757fffe5102Smrglocalstatedir 758fffe5102Smrgsharedstatedir 759fffe5102Smrgsysconfdir 760fffe5102Smrgdatadir 761fffe5102Smrgdatarootdir 762fffe5102Smrglibexecdir 763fffe5102Smrgsbindir 764fffe5102Smrgbindir 765fffe5102Smrgprogram_transform_name 766fffe5102Smrgprefix 767fffe5102Smrgexec_prefix 768fffe5102SmrgPACKAGE_URL 769fffe5102SmrgPACKAGE_BUGREPORT 770fffe5102SmrgPACKAGE_STRING 771fffe5102SmrgPACKAGE_VERSION 772fffe5102SmrgPACKAGE_TARNAME 773fffe5102SmrgPACKAGE_NAME 774fffe5102SmrgPATH_SEPARATOR 775051ceee6SmrgSHELL 776051ceee6Smrgam__quote' 77767f05d30Smrgac_subst_files='' 778fffe5102Smrgac_user_opts=' 779fffe5102Smrgenable_option_checking 780e90eff46Smrgenable_silent_rules 781fffe5102Smrgenable_dependency_tracking 7826dbd43aaSmrgenable_selective_werror 783fffe5102Smrgenable_strict_compilation 784fffe5102Smrgwith_appdefaultdir 785fffe5102Smrg' 786fffe5102Smrg ac_precious_vars='build_alias 787fffe5102Smrghost_alias 788fffe5102Smrgtarget_alias 789fffe5102SmrgCC 790fffe5102SmrgCFLAGS 791fffe5102SmrgLDFLAGS 792fffe5102SmrgLIBS 793fffe5102SmrgCPPFLAGS 794fffe5102SmrgPKG_CONFIG 795e90eff46SmrgPKG_CONFIG_PATH 796e90eff46SmrgPKG_CONFIG_LIBDIR 797fffe5102SmrgVIEWRES_CFLAGS 798fc51f767SmrgVIEWRES_LIBS' 799fffe5102Smrg 80067f05d30Smrg 80167f05d30Smrg# Initialize some variables set by options. 80267f05d30Smrgac_init_help= 80367f05d30Smrgac_init_version=false 804fffe5102Smrgac_unrecognized_opts= 805fffe5102Smrgac_unrecognized_sep= 80667f05d30Smrg# The variables have the same names as the options, with 80767f05d30Smrg# dashes changed to underlines. 80867f05d30Smrgcache_file=/dev/null 80967f05d30Smrgexec_prefix=NONE 81067f05d30Smrgno_create= 81167f05d30Smrgno_recursion= 81267f05d30Smrgprefix=NONE 81367f05d30Smrgprogram_prefix=NONE 81467f05d30Smrgprogram_suffix=NONE 81567f05d30Smrgprogram_transform_name=s,x,x, 81667f05d30Smrgsilent= 81767f05d30Smrgsite= 81867f05d30Smrgsrcdir= 81967f05d30Smrgverbose= 82067f05d30Smrgx_includes=NONE 82167f05d30Smrgx_libraries=NONE 82267f05d30Smrg 82367f05d30Smrg# Installation directory options. 82467f05d30Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 82567f05d30Smrg# and all the variables that are supposed to be based on exec_prefix 82667f05d30Smrg# by default will actually change. 82767f05d30Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 828fffe5102Smrg# (The list follows the same order as the GNU Coding Standards.) 82967f05d30Smrgbindir='${exec_prefix}/bin' 83067f05d30Smrgsbindir='${exec_prefix}/sbin' 83167f05d30Smrglibexecdir='${exec_prefix}/libexec' 832fffe5102Smrgdatarootdir='${prefix}/share' 833fffe5102Smrgdatadir='${datarootdir}' 83467f05d30Smrgsysconfdir='${prefix}/etc' 83567f05d30Smrgsharedstatedir='${prefix}/com' 83667f05d30Smrglocalstatedir='${prefix}/var' 837051ceee6Smrgrunstatedir='${localstatedir}/run' 83867f05d30Smrgincludedir='${prefix}/include' 83967f05d30Smrgoldincludedir='/usr/include' 840fffe5102Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841fffe5102Smrginfodir='${datarootdir}/info' 842fffe5102Smrghtmldir='${docdir}' 843fffe5102Smrgdvidir='${docdir}' 844fffe5102Smrgpdfdir='${docdir}' 845fffe5102Smrgpsdir='${docdir}' 846fffe5102Smrglibdir='${exec_prefix}/lib' 847fffe5102Smrglocaledir='${datarootdir}/locale' 848fffe5102Smrgmandir='${datarootdir}/man' 84967f05d30Smrg 85067f05d30Smrgac_prev= 851fffe5102Smrgac_dashdash= 85267f05d30Smrgfor ac_option 85367f05d30Smrgdo 85467f05d30Smrg # If the previous option needs an argument, assign it. 85567f05d30Smrg if test -n "$ac_prev"; then 856fffe5102Smrg eval $ac_prev=\$ac_option 85767f05d30Smrg ac_prev= 85867f05d30Smrg continue 85967f05d30Smrg fi 86067f05d30Smrg 861fffe5102Smrg case $ac_option in 862fc51f767Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863fc51f767Smrg *=) ac_optarg= ;; 864fc51f767Smrg *) ac_optarg=yes ;; 865fffe5102Smrg esac 86667f05d30Smrg 867fffe5102Smrg case $ac_dashdash$ac_option in 868fffe5102Smrg --) 869fffe5102Smrg ac_dashdash=yes ;; 87067f05d30Smrg 87167f05d30Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 87267f05d30Smrg ac_prev=bindir ;; 87367f05d30Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 87467f05d30Smrg bindir=$ac_optarg ;; 87567f05d30Smrg 87667f05d30Smrg -build | --build | --buil | --bui | --bu) 87767f05d30Smrg ac_prev=build_alias ;; 87867f05d30Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 87967f05d30Smrg build_alias=$ac_optarg ;; 88067f05d30Smrg 88167f05d30Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 88267f05d30Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 88367f05d30Smrg ac_prev=cache_file ;; 88467f05d30Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 88567f05d30Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 88667f05d30Smrg cache_file=$ac_optarg ;; 88767f05d30Smrg 88867f05d30Smrg --config-cache | -C) 88967f05d30Smrg cache_file=config.cache ;; 89067f05d30Smrg 891fffe5102Smrg -datadir | --datadir | --datadi | --datad) 89267f05d30Smrg ac_prev=datadir ;; 893fffe5102Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 89467f05d30Smrg datadir=$ac_optarg ;; 89567f05d30Smrg 896fffe5102Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897fffe5102Smrg | --dataroo | --dataro | --datar) 898fffe5102Smrg ac_prev=datarootdir ;; 899fffe5102Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900fffe5102Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901fffe5102Smrg datarootdir=$ac_optarg ;; 902fffe5102Smrg 90367f05d30Smrg -disable-* | --disable-*) 904fffe5102Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 90567f05d30Smrg # Reject names that are not valid shell variable names. 906fffe5102Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907051ceee6Smrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 908fffe5102Smrg ac_useropt_orig=$ac_useropt 909051ceee6Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 910fffe5102Smrg case $ac_user_opts in 911fffe5102Smrg *" 912fffe5102Smrg"enable_$ac_useropt" 913fffe5102Smrg"*) ;; 914fffe5102Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915fffe5102Smrg ac_unrecognized_sep=', ';; 916fffe5102Smrg esac 917fffe5102Smrg eval enable_$ac_useropt=no ;; 918fffe5102Smrg 919fffe5102Smrg -docdir | --docdir | --docdi | --doc | --do) 920fffe5102Smrg ac_prev=docdir ;; 921fffe5102Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922fffe5102Smrg docdir=$ac_optarg ;; 923fffe5102Smrg 924fffe5102Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925fffe5102Smrg ac_prev=dvidir ;; 926fffe5102Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927fffe5102Smrg dvidir=$ac_optarg ;; 92867f05d30Smrg 92967f05d30Smrg -enable-* | --enable-*) 930fffe5102Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 93167f05d30Smrg # Reject names that are not valid shell variable names. 932fffe5102Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933051ceee6Smrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 934fffe5102Smrg ac_useropt_orig=$ac_useropt 935051ceee6Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 936fffe5102Smrg case $ac_user_opts in 937fffe5102Smrg *" 938fffe5102Smrg"enable_$ac_useropt" 939fffe5102Smrg"*) ;; 940fffe5102Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941fffe5102Smrg ac_unrecognized_sep=', ';; 94267f05d30Smrg esac 943fffe5102Smrg eval enable_$ac_useropt=\$ac_optarg ;; 94467f05d30Smrg 94567f05d30Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 94667f05d30Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 94767f05d30Smrg | --exec | --exe | --ex) 94867f05d30Smrg ac_prev=exec_prefix ;; 94967f05d30Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 95067f05d30Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 95167f05d30Smrg | --exec=* | --exe=* | --ex=*) 95267f05d30Smrg exec_prefix=$ac_optarg ;; 95367f05d30Smrg 95467f05d30Smrg -gas | --gas | --ga | --g) 95567f05d30Smrg # Obsolete; use --with-gas. 95667f05d30Smrg with_gas=yes ;; 95767f05d30Smrg 95867f05d30Smrg -help | --help | --hel | --he | -h) 95967f05d30Smrg ac_init_help=long ;; 96067f05d30Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 96167f05d30Smrg ac_init_help=recursive ;; 96267f05d30Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 96367f05d30Smrg ac_init_help=short ;; 96467f05d30Smrg 96567f05d30Smrg -host | --host | --hos | --ho) 96667f05d30Smrg ac_prev=host_alias ;; 96767f05d30Smrg -host=* | --host=* | --hos=* | --ho=*) 96867f05d30Smrg host_alias=$ac_optarg ;; 96967f05d30Smrg 970fffe5102Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971fffe5102Smrg ac_prev=htmldir ;; 972fffe5102Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973fffe5102Smrg | --ht=*) 974fffe5102Smrg htmldir=$ac_optarg ;; 975fffe5102Smrg 97667f05d30Smrg -includedir | --includedir | --includedi | --included | --include \ 97767f05d30Smrg | --includ | --inclu | --incl | --inc) 97867f05d30Smrg ac_prev=includedir ;; 97967f05d30Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 98067f05d30Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 98167f05d30Smrg includedir=$ac_optarg ;; 98267f05d30Smrg 98367f05d30Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 98467f05d30Smrg ac_prev=infodir ;; 98567f05d30Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 98667f05d30Smrg infodir=$ac_optarg ;; 98767f05d30Smrg 98867f05d30Smrg -libdir | --libdir | --libdi | --libd) 98967f05d30Smrg ac_prev=libdir ;; 99067f05d30Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 99167f05d30Smrg libdir=$ac_optarg ;; 99267f05d30Smrg 99367f05d30Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 99467f05d30Smrg | --libexe | --libex | --libe) 99567f05d30Smrg ac_prev=libexecdir ;; 99667f05d30Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 99767f05d30Smrg | --libexe=* | --libex=* | --libe=*) 99867f05d30Smrg libexecdir=$ac_optarg ;; 99967f05d30Smrg 1000fffe5102Smrg -localedir | --localedir | --localedi | --localed | --locale) 1001fffe5102Smrg ac_prev=localedir ;; 1002fffe5102Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003fffe5102Smrg localedir=$ac_optarg ;; 1004fffe5102Smrg 100567f05d30Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006fffe5102Smrg | --localstate | --localstat | --localsta | --localst | --locals) 100767f05d30Smrg ac_prev=localstatedir ;; 100867f05d30Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009fffe5102Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 101067f05d30Smrg localstatedir=$ac_optarg ;; 101167f05d30Smrg 101267f05d30Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 101367f05d30Smrg ac_prev=mandir ;; 101467f05d30Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 101567f05d30Smrg mandir=$ac_optarg ;; 101667f05d30Smrg 101767f05d30Smrg -nfp | --nfp | --nf) 101867f05d30Smrg # Obsolete; use --without-fp. 101967f05d30Smrg with_fp=no ;; 102067f05d30Smrg 102167f05d30Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 102267f05d30Smrg | --no-cr | --no-c | -n) 102367f05d30Smrg no_create=yes ;; 102467f05d30Smrg 102567f05d30Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 102667f05d30Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 102767f05d30Smrg no_recursion=yes ;; 102867f05d30Smrg 102967f05d30Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 103067f05d30Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 103167f05d30Smrg | --oldin | --oldi | --old | --ol | --o) 103267f05d30Smrg ac_prev=oldincludedir ;; 103367f05d30Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 103467f05d30Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 103567f05d30Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 103667f05d30Smrg oldincludedir=$ac_optarg ;; 103767f05d30Smrg 103867f05d30Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 103967f05d30Smrg ac_prev=prefix ;; 104067f05d30Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 104167f05d30Smrg prefix=$ac_optarg ;; 104267f05d30Smrg 104367f05d30Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 104467f05d30Smrg | --program-pre | --program-pr | --program-p) 104567f05d30Smrg ac_prev=program_prefix ;; 104667f05d30Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 104767f05d30Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 104867f05d30Smrg program_prefix=$ac_optarg ;; 104967f05d30Smrg 105067f05d30Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 105167f05d30Smrg | --program-suf | --program-su | --program-s) 105267f05d30Smrg ac_prev=program_suffix ;; 105367f05d30Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 105467f05d30Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 105567f05d30Smrg program_suffix=$ac_optarg ;; 105667f05d30Smrg 105767f05d30Smrg -program-transform-name | --program-transform-name \ 105867f05d30Smrg | --program-transform-nam | --program-transform-na \ 105967f05d30Smrg | --program-transform-n | --program-transform- \ 106067f05d30Smrg | --program-transform | --program-transfor \ 106167f05d30Smrg | --program-transfo | --program-transf \ 106267f05d30Smrg | --program-trans | --program-tran \ 106367f05d30Smrg | --progr-tra | --program-tr | --program-t) 106467f05d30Smrg ac_prev=program_transform_name ;; 106567f05d30Smrg -program-transform-name=* | --program-transform-name=* \ 106667f05d30Smrg | --program-transform-nam=* | --program-transform-na=* \ 106767f05d30Smrg | --program-transform-n=* | --program-transform-=* \ 106867f05d30Smrg | --program-transform=* | --program-transfor=* \ 106967f05d30Smrg | --program-transfo=* | --program-transf=* \ 107067f05d30Smrg | --program-trans=* | --program-tran=* \ 107167f05d30Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 107267f05d30Smrg program_transform_name=$ac_optarg ;; 107367f05d30Smrg 1074fffe5102Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075fffe5102Smrg ac_prev=pdfdir ;; 1076fffe5102Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077fffe5102Smrg pdfdir=$ac_optarg ;; 1078fffe5102Smrg 1079fffe5102Smrg -psdir | --psdir | --psdi | --psd | --ps) 1080fffe5102Smrg ac_prev=psdir ;; 1081fffe5102Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082fffe5102Smrg psdir=$ac_optarg ;; 1083fffe5102Smrg 108467f05d30Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 108567f05d30Smrg | -silent | --silent | --silen | --sile | --sil) 108667f05d30Smrg silent=yes ;; 108767f05d30Smrg 1088051ceee6Smrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 1089051ceee6Smrg | --runstate | --runstat | --runsta | --runst | --runs \ 1090051ceee6Smrg | --run | --ru | --r) 1091051ceee6Smrg ac_prev=runstatedir ;; 1092051ceee6Smrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1093051ceee6Smrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1094051ceee6Smrg | --run=* | --ru=* | --r=*) 1095051ceee6Smrg runstatedir=$ac_optarg ;; 1096051ceee6Smrg 109767f05d30Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 109867f05d30Smrg ac_prev=sbindir ;; 109967f05d30Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 110067f05d30Smrg | --sbi=* | --sb=*) 110167f05d30Smrg sbindir=$ac_optarg ;; 110267f05d30Smrg 110367f05d30Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 110467f05d30Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 110567f05d30Smrg | --sharedst | --shareds | --shared | --share | --shar \ 110667f05d30Smrg | --sha | --sh) 110767f05d30Smrg ac_prev=sharedstatedir ;; 110867f05d30Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 110967f05d30Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 111067f05d30Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 111167f05d30Smrg | --sha=* | --sh=*) 111267f05d30Smrg sharedstatedir=$ac_optarg ;; 111367f05d30Smrg 111467f05d30Smrg -site | --site | --sit) 111567f05d30Smrg ac_prev=site ;; 111667f05d30Smrg -site=* | --site=* | --sit=*) 111767f05d30Smrg site=$ac_optarg ;; 111867f05d30Smrg 111967f05d30Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 112067f05d30Smrg ac_prev=srcdir ;; 112167f05d30Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 112267f05d30Smrg srcdir=$ac_optarg ;; 112367f05d30Smrg 112467f05d30Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 112567f05d30Smrg | --syscon | --sysco | --sysc | --sys | --sy) 112667f05d30Smrg ac_prev=sysconfdir ;; 112767f05d30Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 112867f05d30Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 112967f05d30Smrg sysconfdir=$ac_optarg ;; 113067f05d30Smrg 113167f05d30Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 113267f05d30Smrg ac_prev=target_alias ;; 113367f05d30Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 113467f05d30Smrg target_alias=$ac_optarg ;; 113567f05d30Smrg 113667f05d30Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 113767f05d30Smrg verbose=yes ;; 113867f05d30Smrg 113967f05d30Smrg -version | --version | --versio | --versi | --vers | -V) 114067f05d30Smrg ac_init_version=: ;; 114167f05d30Smrg 114267f05d30Smrg -with-* | --with-*) 1143fffe5102Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 114467f05d30Smrg # Reject names that are not valid shell variable names. 1145fffe5102Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146051ceee6Smrg as_fn_error $? "invalid package name: \`$ac_useropt'" 1147fffe5102Smrg ac_useropt_orig=$ac_useropt 1148051ceee6Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1149fffe5102Smrg case $ac_user_opts in 1150fffe5102Smrg *" 1151fffe5102Smrg"with_$ac_useropt" 1152fffe5102Smrg"*) ;; 1153fffe5102Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154fffe5102Smrg ac_unrecognized_sep=', ';; 115567f05d30Smrg esac 1156fffe5102Smrg eval with_$ac_useropt=\$ac_optarg ;; 115767f05d30Smrg 115867f05d30Smrg -without-* | --without-*) 1159fffe5102Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 116067f05d30Smrg # Reject names that are not valid shell variable names. 1161fffe5102Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162051ceee6Smrg as_fn_error $? "invalid package name: \`$ac_useropt'" 1163fffe5102Smrg ac_useropt_orig=$ac_useropt 1164051ceee6Smrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1165fffe5102Smrg case $ac_user_opts in 1166fffe5102Smrg *" 1167fffe5102Smrg"with_$ac_useropt" 1168fffe5102Smrg"*) ;; 1169fffe5102Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170fffe5102Smrg ac_unrecognized_sep=', ';; 1171fffe5102Smrg esac 1172fffe5102Smrg eval with_$ac_useropt=no ;; 117367f05d30Smrg 117467f05d30Smrg --x) 117567f05d30Smrg # Obsolete; use --with-x. 117667f05d30Smrg with_x=yes ;; 117767f05d30Smrg 117867f05d30Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 117967f05d30Smrg | --x-incl | --x-inc | --x-in | --x-i) 118067f05d30Smrg ac_prev=x_includes ;; 118167f05d30Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 118267f05d30Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 118367f05d30Smrg x_includes=$ac_optarg ;; 118467f05d30Smrg 118567f05d30Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 118667f05d30Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 118767f05d30Smrg ac_prev=x_libraries ;; 118867f05d30Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 118967f05d30Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 119067f05d30Smrg x_libraries=$ac_optarg ;; 119167f05d30Smrg 1192fc51f767Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1193fc51f767SmrgTry \`$0 --help' for more information" 119467f05d30Smrg ;; 119567f05d30Smrg 119667f05d30Smrg *=*) 119767f05d30Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 119867f05d30Smrg # Reject names that are not valid shell variable names. 1199fffe5102Smrg case $ac_envvar in #( 1200fffe5102Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201fc51f767Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1202fffe5102Smrg esac 1203fffe5102Smrg eval $ac_envvar=\$ac_optarg 120467f05d30Smrg export $ac_envvar ;; 120567f05d30Smrg 120667f05d30Smrg *) 120767f05d30Smrg # FIXME: should be removed in autoconf 3.0. 1208051ceee6Smrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 120967f05d30Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210051ceee6Smrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1211fc51f767Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 121267f05d30Smrg ;; 121367f05d30Smrg 121467f05d30Smrg esac 121567f05d30Smrgdone 121667f05d30Smrg 121767f05d30Smrgif test -n "$ac_prev"; then 121867f05d30Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219fc51f767Smrg as_fn_error $? "missing argument to $ac_option" 122067f05d30Smrgfi 122167f05d30Smrg 1222fffe5102Smrgif test -n "$ac_unrecognized_opts"; then 1223fffe5102Smrg case $enable_option_checking in 1224fffe5102Smrg no) ;; 1225fc51f767Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1226051ceee6Smrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 122767f05d30Smrg esac 1228fffe5102Smrgfi 122967f05d30Smrg 1230fffe5102Smrg# Check all directory arguments for consistency. 1231fffe5102Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232fffe5102Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1233fffe5102Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234051ceee6Smrg libdir localedir mandir runstatedir 123567f05d30Smrgdo 1236fffe5102Smrg eval ac_val=\$$ac_var 1237fffe5102Smrg # Remove trailing slashes. 123867f05d30Smrg case $ac_val in 1239fffe5102Smrg */ ) 1240fffe5102Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241fffe5102Smrg eval $ac_var=\$ac_val;; 124267f05d30Smrg esac 1243fffe5102Smrg # Be sure to have absolute directory names. 1244fffe5102Smrg case $ac_val in 1245fffe5102Smrg [\\/$]* | ?:[\\/]* ) continue;; 1246fffe5102Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247fffe5102Smrg esac 1248fc51f767Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 124967f05d30Smrgdone 125067f05d30Smrg 125167f05d30Smrg# There might be people who depend on the old broken behavior: `$host' 125267f05d30Smrg# used to hold the argument of --host etc. 125367f05d30Smrg# FIXME: To remove some day. 125467f05d30Smrgbuild=$build_alias 125567f05d30Smrghost=$host_alias 125667f05d30Smrgtarget=$target_alias 125767f05d30Smrg 125867f05d30Smrg# FIXME: To remove some day. 125967f05d30Smrgif test "x$host_alias" != x; then 126067f05d30Smrg if test "x$build_alias" = x; then 126167f05d30Smrg cross_compiling=maybe 126267f05d30Smrg elif test "x$build_alias" != "x$host_alias"; then 126367f05d30Smrg cross_compiling=yes 126467f05d30Smrg fi 126567f05d30Smrgfi 126667f05d30Smrg 126767f05d30Smrgac_tool_prefix= 126867f05d30Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 126967f05d30Smrg 127067f05d30Smrgtest "$silent" = yes && exec 6>/dev/null 127167f05d30Smrg 127267f05d30Smrg 1273fffe5102Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1274fffe5102Smrgac_ls_di=`ls -di .` && 1275fffe5102Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1276fc51f767Smrg as_fn_error $? "working directory cannot be determined" 1277fffe5102Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1278fc51f767Smrg as_fn_error $? "pwd does not report name of working directory" 1279fffe5102Smrg 1280fffe5102Smrg 128167f05d30Smrg# Find the source files, if location was not specified. 128267f05d30Smrgif test -z "$srcdir"; then 128367f05d30Smrg ac_srcdir_defaulted=yes 1284fffe5102Smrg # Try the directory containing this script, then the parent directory. 1285fffe5102Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1286fffe5102Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1287fffe5102Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1288fffe5102Smrg X"$as_myself" : 'X\(//\)$' \| \ 1289fffe5102Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1290051ceee6Smrgprintf "%s\n" X"$as_myself" | 1291fffe5102Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1292fffe5102Smrg s//\1/ 1293fffe5102Smrg q 1294fffe5102Smrg } 1295fffe5102Smrg /^X\(\/\/\)[^/].*/{ 1296fffe5102Smrg s//\1/ 1297fffe5102Smrg q 1298fffe5102Smrg } 1299fffe5102Smrg /^X\(\/\/\)$/{ 1300fffe5102Smrg s//\1/ 1301fffe5102Smrg q 1302fffe5102Smrg } 1303fffe5102Smrg /^X\(\/\).*/{ 1304fffe5102Smrg s//\1/ 1305fffe5102Smrg q 1306fffe5102Smrg } 1307fffe5102Smrg s/.*/./; q'` 130867f05d30Smrg srcdir=$ac_confdir 1309fffe5102Smrg if test ! -r "$srcdir/$ac_unique_file"; then 131067f05d30Smrg srcdir=.. 131167f05d30Smrg fi 131267f05d30Smrgelse 131367f05d30Smrg ac_srcdir_defaulted=no 131467f05d30Smrgfi 1315fffe5102Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1316fffe5102Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1317fc51f767Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1318fffe5102Smrgfi 1319fffe5102Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1320fffe5102Smrgac_abs_confdir=`( 1321fc51f767Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1322fffe5102Smrg pwd)` 1323fffe5102Smrg# When building in place, set srcdir=. 1324fffe5102Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1325fffe5102Smrg srcdir=. 1326fffe5102Smrgfi 1327fffe5102Smrg# Remove unnecessary trailing slashes from srcdir. 1328fffe5102Smrg# Double slashes in file names in object file debugging info 1329fffe5102Smrg# mess up M-x gdb in Emacs. 1330fffe5102Smrgcase $srcdir in 1331fffe5102Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1332fffe5102Smrgesac 1333fffe5102Smrgfor ac_var in $ac_precious_vars; do 1334fffe5102Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1335fffe5102Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1336fffe5102Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1337fffe5102Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1338fffe5102Smrgdone 133967f05d30Smrg 134067f05d30Smrg# 134167f05d30Smrg# Report the --help message. 134267f05d30Smrg# 134367f05d30Smrgif test "$ac_init_help" = "long"; then 134467f05d30Smrg # Omit some internal or obsolete options to make the list less imposing. 134567f05d30Smrg # This message is too long to be a string in the A/UX 3.1 sh. 134667f05d30Smrg cat <<_ACEOF 1347051ceee6Smrg\`configure' configures viewres 1.0.7 to adapt to many kinds of systems. 134867f05d30Smrg 134967f05d30SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 135067f05d30Smrg 135167f05d30SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 135267f05d30SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 135367f05d30Smrg 135467f05d30SmrgDefaults for the options are specified in brackets. 135567f05d30Smrg 135667f05d30SmrgConfiguration: 135767f05d30Smrg -h, --help display this help and exit 135867f05d30Smrg --help=short display options specific to this package 135967f05d30Smrg --help=recursive display the short help of all the included packages 136067f05d30Smrg -V, --version display version information and exit 1361fc51f767Smrg -q, --quiet, --silent do not print \`checking ...' messages 136267f05d30Smrg --cache-file=FILE cache test results in FILE [disabled] 136367f05d30Smrg -C, --config-cache alias for \`--cache-file=config.cache' 136467f05d30Smrg -n, --no-create do not create output files 136567f05d30Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 136667f05d30Smrg 136767f05d30SmrgInstallation directories: 136867f05d30Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1369fffe5102Smrg [$ac_default_prefix] 137067f05d30Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1371fffe5102Smrg [PREFIX] 137267f05d30Smrg 137367f05d30SmrgBy default, \`make install' will install all the files in 137467f05d30Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 137567f05d30Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 137667f05d30Smrgfor instance \`--prefix=\$HOME'. 137767f05d30Smrg 137867f05d30SmrgFor better control, use the options below. 137967f05d30Smrg 138067f05d30SmrgFine tuning of the installation directories: 1381fffe5102Smrg --bindir=DIR user executables [EPREFIX/bin] 1382fffe5102Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1383fffe5102Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1384fffe5102Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1385fffe5102Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1386fffe5102Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1387051ceee6Smrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1388fffe5102Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1389fffe5102Smrg --includedir=DIR C header files [PREFIX/include] 1390fffe5102Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391fffe5102Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392fffe5102Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393fffe5102Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1394fffe5102Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395fffe5102Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1396fffe5102Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/viewres] 1397fffe5102Smrg --htmldir=DIR html documentation [DOCDIR] 1398fffe5102Smrg --dvidir=DIR dvi documentation [DOCDIR] 1399fffe5102Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1400fffe5102Smrg --psdir=DIR ps documentation [DOCDIR] 140167f05d30Smrg_ACEOF 140267f05d30Smrg 140367f05d30Smrg cat <<\_ACEOF 140467f05d30Smrg 140567f05d30SmrgProgram names: 140667f05d30Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 140767f05d30Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 140867f05d30Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 140967f05d30Smrg 141067f05d30SmrgSystem types: 141167f05d30Smrg --build=BUILD configure for building on BUILD [guessed] 141267f05d30Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 141367f05d30Smrg_ACEOF 141467f05d30Smrgfi 141567f05d30Smrg 141667f05d30Smrgif test -n "$ac_init_help"; then 141767f05d30Smrg case $ac_init_help in 1418051ceee6Smrg short | recursive ) echo "Configuration of viewres 1.0.7:";; 141967f05d30Smrg esac 142067f05d30Smrg cat <<\_ACEOF 142167f05d30Smrg 142267f05d30SmrgOptional Features: 1423fffe5102Smrg --disable-option-checking ignore unrecognized --enable/--with options 142467f05d30Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 142567f05d30Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426e90eff46Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 1427e90eff46Smrg --disable-silent-rules verbose build output (undo: "make V=0") 1428e90eff46Smrg --enable-dependency-tracking 1429e90eff46Smrg do not reject slow dependency extractors 1430e90eff46Smrg --disable-dependency-tracking 1431e90eff46Smrg speeds up one-time build 14326dbd43aaSmrg --disable-selective-werror 14336dbd43aaSmrg Turn off selective compiler errors. (default: 14346dbd43aaSmrg enabled) 1435fffe5102Smrg --enable-strict-compilation 1436fffe5102Smrg Enable all warnings from compiler and make them 1437fffe5102Smrg errors (default: disabled) 143867f05d30Smrg 143967f05d30SmrgOptional Packages: 144067f05d30Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 144167f05d30Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1442fffe5102Smrg --with-appdefaultdir=<pathname> 1443fffe5102Smrg specify directory for app-defaults files (default is 1444fffe5102Smrg autodetected) 144567f05d30Smrg 144667f05d30SmrgSome influential environment variables: 144767f05d30Smrg CC C compiler command 144867f05d30Smrg CFLAGS C compiler flags 144967f05d30Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 145067f05d30Smrg nonstandard directory <lib dir> 1451fffe5102Smrg LIBS libraries to pass to the linker, e.g. -l<library> 1452fffe5102Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1453fffe5102Smrg you have headers in a nonstandard directory <include dir> 145467f05d30Smrg PKG_CONFIG path to pkg-config utility 1455e90eff46Smrg PKG_CONFIG_PATH 1456e90eff46Smrg directories to add to pkg-config's search path 1457e90eff46Smrg PKG_CONFIG_LIBDIR 1458e90eff46Smrg path overriding pkg-config's built-in search path 1459fffe5102Smrg VIEWRES_CFLAGS 1460fffe5102Smrg C compiler flags for VIEWRES, overriding pkg-config 1461fffe5102Smrg VIEWRES_LIBS 1462fffe5102Smrg linker flags for VIEWRES, overriding pkg-config 146367f05d30Smrg 146467f05d30SmrgUse these variables to override the choices made by `configure' or to help 146567f05d30Smrgit to find libraries and programs with nonstandard names/locations. 146667f05d30Smrg 1467051ceee6SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/viewres/-/issues>. 146867f05d30Smrg_ACEOF 1469fffe5102Smrgac_status=$? 147067f05d30Smrgfi 147167f05d30Smrg 147267f05d30Smrgif test "$ac_init_help" = "recursive"; then 147367f05d30Smrg # If there are subdirs, report their specific --help. 147467f05d30Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1475fffe5102Smrg test -d "$ac_dir" || 1476fffe5102Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1477fffe5102Smrg continue 147867f05d30Smrg ac_builddir=. 147967f05d30Smrg 1480fffe5102Smrgcase "$ac_dir" in 1481fffe5102Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482fffe5102Smrg*) 1483051ceee6Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1484fffe5102Smrg # A ".." for each directory in $ac_dir_suffix. 1485051ceee6Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1486fffe5102Smrg case $ac_top_builddir_sub in 1487fffe5102Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488fffe5102Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1489fffe5102Smrg esac ;; 1490fffe5102Smrgesac 1491fffe5102Smrgac_abs_top_builddir=$ac_pwd 1492fffe5102Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1493fffe5102Smrg# for backward compatibility: 1494fffe5102Smrgac_top_builddir=$ac_top_build_prefix 149567f05d30Smrg 149667f05d30Smrgcase $srcdir in 1497fffe5102Smrg .) # We are building in place. 149867f05d30Smrg ac_srcdir=. 1499fffe5102Smrg ac_top_srcdir=$ac_top_builddir_sub 1500fffe5102Smrg ac_abs_top_srcdir=$ac_pwd ;; 1501fffe5102Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 150267f05d30Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1503fffe5102Smrg ac_top_srcdir=$srcdir 1504fffe5102Smrg ac_abs_top_srcdir=$srcdir ;; 1505fffe5102Smrg *) # Relative name. 1506fffe5102Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1507fffe5102Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1508fffe5102Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 150967f05d30Smrgesac 1510fffe5102Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1511fffe5102Smrg 1512fffe5102Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1513051ceee6Smrg # Check for configure.gnu first; this name is used for a wrapper for 1514051ceee6Smrg # Metaconfig's "Configure" on case-insensitive file systems. 1515fffe5102Smrg if test -f "$ac_srcdir/configure.gnu"; then 1516fffe5102Smrg echo && 1517fffe5102Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1518fffe5102Smrg elif test -f "$ac_srcdir/configure"; then 1519fffe5102Smrg echo && 1520fffe5102Smrg $SHELL "$ac_srcdir/configure" --help=recursive 152167f05d30Smrg else 1522051ceee6Smrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1523fffe5102Smrg fi || ac_status=$? 1524fffe5102Smrg cd "$ac_pwd" || { ac_status=$?; break; } 152567f05d30Smrg done 152667f05d30Smrgfi 152767f05d30Smrg 1528fffe5102Smrgtest -n "$ac_init_help" && exit $ac_status 152967f05d30Smrgif $ac_init_version; then 153067f05d30Smrg cat <<\_ACEOF 1531051ceee6Smrgviewres configure 1.0.7 1532051ceee6Smrggenerated by GNU Autoconf 2.71 153367f05d30Smrg 1534051ceee6SmrgCopyright (C) 2021 Free Software Foundation, Inc. 153567f05d30SmrgThis configure script is free software; the Free Software Foundation 153667f05d30Smrggives unlimited permission to copy, distribute and modify it. 153767f05d30Smrg_ACEOF 1538fffe5102Smrg exit 153967f05d30Smrgfi 154067f05d30Smrg 1541fffe5102Smrg## ------------------------ ## 1542fffe5102Smrg## Autoconf initialization. ## 1543fffe5102Smrg## ------------------------ ## 154467f05d30Smrg 1545fffe5102Smrg# ac_fn_c_try_compile LINENO 1546fffe5102Smrg# -------------------------- 1547fffe5102Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1548fffe5102Smrgac_fn_c_try_compile () 154967f05d30Smrg{ 1550fffe5102Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1551051ceee6Smrg rm -f conftest.$ac_objext conftest.beam 1552fffe5102Smrg if { { ac_try="$ac_compile" 1553fffe5102Smrgcase "(($ac_try" in 1554fffe5102Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1555fffe5102Smrg *) ac_try_echo=$ac_try;; 1556fffe5102Smrgesac 1557fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1558051ceee6Smrgprintf "%s\n" "$ac_try_echo"; } >&5 1559fffe5102Smrg (eval "$ac_compile") 2>conftest.err 1560fffe5102Smrg ac_status=$? 1561fffe5102Smrg if test -s conftest.err; then 1562fffe5102Smrg grep -v '^ *+' conftest.err >conftest.er1 1563fffe5102Smrg cat conftest.er1 >&5 1564fffe5102Smrg mv -f conftest.er1 conftest.err 1565fffe5102Smrg fi 1566051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1567fffe5102Smrg test $ac_status = 0; } && { 1568fffe5102Smrg test -z "$ac_c_werror_flag" || 1569fffe5102Smrg test ! -s conftest.err 1570051ceee6Smrg } && test -s conftest.$ac_objext 1571051ceee6Smrgthen : 1572fffe5102Smrg ac_retval=0 1573051ceee6Smrgelse $as_nop 1574051ceee6Smrg printf "%s\n" "$as_me: failed program was:" >&5 1575fffe5102Smrgsed 's/^/| /' conftest.$ac_ext >&5 157667f05d30Smrg 1577fffe5102Smrg ac_retval=1 1578fffe5102Smrgfi 1579fc51f767Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1580fffe5102Smrg as_fn_set_status $ac_retval 158167f05d30Smrg 1582fffe5102Smrg} # ac_fn_c_try_compile 158367f05d30Smrg 1584051ceee6Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1585051ceee6Smrg# ------------------------------------------------------------------ 1586fc51f767Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1587051ceee6Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1588051ceee6Smrgac_fn_check_decl () 1589fffe5102Smrg{ 1590fffe5102Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1591fc51f767Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1592051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1593051ceee6Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 1594051ceee6Smrgif eval test \${$3+y} 1595051ceee6Smrgthen : 1596051ceee6Smrg printf %s "(cached) " >&6 1597051ceee6Smrgelse $as_nop 1598fc51f767Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1599051ceee6Smrg eval ac_save_FLAGS=\$$6 1600051ceee6Smrg as_fn_append $6 " $5" 1601fffe5102Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1602fffe5102Smrg/* end confdefs.h. */ 1603fffe5102Smrg$4 1604fffe5102Smrgint 1605051ceee6Smrgmain (void) 1606fffe5102Smrg{ 1607fc51f767Smrg#ifndef $as_decl_name 1608fc51f767Smrg#ifdef __cplusplus 1609fc51f767Smrg (void) $as_decl_use; 1610fc51f767Smrg#else 1611fc51f767Smrg (void) $as_decl_name; 1612fc51f767Smrg#endif 1613fffe5102Smrg#endif 161467f05d30Smrg 1615fffe5102Smrg ; 1616fffe5102Smrg return 0; 1617fffe5102Smrg} 1618fffe5102Smrg_ACEOF 1619051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 1620051ceee6Smrgthen : 1621fffe5102Smrg eval "$3=yes" 1622051ceee6Smrgelse $as_nop 1623fffe5102Smrg eval "$3=no" 1624fffe5102Smrgfi 1625051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1626051ceee6Smrg eval $6=\$ac_save_FLAGS 1627fffe5102Smrg 1628fffe5102Smrgfi 1629051ceee6Smrgeval ac_res=\$$3 1630051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1631051ceee6Smrgprintf "%s\n" "$ac_res" >&6; } 1632fc51f767Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1633fffe5102Smrg 1634051ceee6Smrg} # ac_fn_check_decl 1635fffe5102Smrg 1636fffe5102Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1637fffe5102Smrg# ------------------------------------------------------- 1638fffe5102Smrg# Tests whether HEADER exists and can be compiled using the include files in 1639fffe5102Smrg# INCLUDES, setting the cache variable VAR accordingly. 1640fffe5102Smrgac_fn_c_check_header_compile () 1641fffe5102Smrg{ 1642fffe5102Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1644051ceee6Smrgprintf %s "checking for $2... " >&6; } 1645051ceee6Smrgif eval test \${$3+y} 1646051ceee6Smrgthen : 1647051ceee6Smrg printf %s "(cached) " >&6 1648051ceee6Smrgelse $as_nop 1649fffe5102Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1650fffe5102Smrg/* end confdefs.h. */ 1651fffe5102Smrg$4 1652fffe5102Smrg#include <$2> 1653fffe5102Smrg_ACEOF 1654051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 1655051ceee6Smrgthen : 1656fffe5102Smrg eval "$3=yes" 1657051ceee6Smrgelse $as_nop 1658fffe5102Smrg eval "$3=no" 1659fffe5102Smrgfi 1660051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1661fffe5102Smrgfi 1662fffe5102Smrgeval ac_res=\$$3 1663051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1664051ceee6Smrgprintf "%s\n" "$ac_res" >&6; } 1665fc51f767Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666fffe5102Smrg 1667fffe5102Smrg} # ac_fn_c_check_header_compile 16686dbd43aaSmrg 16696dbd43aaSmrg# ac_fn_c_try_link LINENO 16706dbd43aaSmrg# ----------------------- 16716dbd43aaSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 16726dbd43aaSmrgac_fn_c_try_link () 16736dbd43aaSmrg{ 16746dbd43aaSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675051ceee6Smrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 16766dbd43aaSmrg if { { ac_try="$ac_link" 16776dbd43aaSmrgcase "(($ac_try" in 16786dbd43aaSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16796dbd43aaSmrg *) ac_try_echo=$ac_try;; 16806dbd43aaSmrgesac 16816dbd43aaSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682051ceee6Smrgprintf "%s\n" "$ac_try_echo"; } >&5 16836dbd43aaSmrg (eval "$ac_link") 2>conftest.err 16846dbd43aaSmrg ac_status=$? 16856dbd43aaSmrg if test -s conftest.err; then 16866dbd43aaSmrg grep -v '^ *+' conftest.err >conftest.er1 16876dbd43aaSmrg cat conftest.er1 >&5 16886dbd43aaSmrg mv -f conftest.er1 conftest.err 16896dbd43aaSmrg fi 1690051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16916dbd43aaSmrg test $ac_status = 0; } && { 16926dbd43aaSmrg test -z "$ac_c_werror_flag" || 16936dbd43aaSmrg test ! -s conftest.err 16946dbd43aaSmrg } && test -s conftest$ac_exeext && { 16956dbd43aaSmrg test "$cross_compiling" = yes || 1696e90eff46Smrg test -x conftest$ac_exeext 1697051ceee6Smrg } 1698051ceee6Smrgthen : 16996dbd43aaSmrg ac_retval=0 1700051ceee6Smrgelse $as_nop 1701051ceee6Smrg printf "%s\n" "$as_me: failed program was:" >&5 17026dbd43aaSmrgsed 's/^/| /' conftest.$ac_ext >&5 17036dbd43aaSmrg 17046dbd43aaSmrg ac_retval=1 17056dbd43aaSmrgfi 17066dbd43aaSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 17076dbd43aaSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 17086dbd43aaSmrg # interfere with the next link command; also delete a directory that is 17096dbd43aaSmrg # left behind by Apple's compiler. We do this before executing the actions. 17106dbd43aaSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17116dbd43aaSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17126dbd43aaSmrg as_fn_set_status $ac_retval 17136dbd43aaSmrg 17146dbd43aaSmrg} # ac_fn_c_try_link 1715051ceee6Smrgac_configure_args_raw= 1716051ceee6Smrgfor ac_arg 1717051ceee6Smrgdo 1718051ceee6Smrg case $ac_arg in 1719051ceee6Smrg *\'*) 1720051ceee6Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1721051ceee6Smrg esac 1722051ceee6Smrg as_fn_append ac_configure_args_raw " '$ac_arg'" 1723051ceee6Smrgdone 1724051ceee6Smrg 1725051ceee6Smrgcase $ac_configure_args_raw in 1726051ceee6Smrg *$as_nl*) 1727051ceee6Smrg ac_safe_unquote= ;; 1728051ceee6Smrg *) 1729051ceee6Smrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1730051ceee6Smrg ac_unsafe_a="$ac_unsafe_z#~" 1731051ceee6Smrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1732051ceee6Smrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1733051ceee6Smrgesac 1734051ceee6Smrg 1735fffe5102Smrgcat >config.log <<_ACEOF 1736fffe5102SmrgThis file contains any messages produced by compilers while 1737fffe5102Smrgrunning configure, to aid debugging if configure makes a mistake. 1738fffe5102Smrg 1739051ceee6SmrgIt was created by viewres $as_me 1.0.7, which was 1740051ceee6Smrggenerated by GNU Autoconf 2.71. Invocation command line was 1741fffe5102Smrg 1742051ceee6Smrg $ $0$ac_configure_args_raw 1743fffe5102Smrg 1744fffe5102Smrg_ACEOF 1745fffe5102Smrgexec 5>>config.log 1746fffe5102Smrg{ 1747fffe5102Smrgcat <<_ASUNAME 1748fffe5102Smrg## --------- ## 1749fffe5102Smrg## Platform. ## 1750fffe5102Smrg## --------- ## 1751fffe5102Smrg 1752fffe5102Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1753fffe5102Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1754fffe5102Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1755fffe5102Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1756fffe5102Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1757fffe5102Smrg 1758fffe5102Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1759fffe5102Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1760fffe5102Smrg 1761fffe5102Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1762fffe5102Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1763fffe5102Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1764fffe5102Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1765fffe5102Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1766fffe5102Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1767fffe5102Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1768fffe5102Smrg 1769fffe5102Smrg_ASUNAME 1770fffe5102Smrg 1771fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1772fffe5102Smrgfor as_dir in $PATH 1773fffe5102Smrgdo 1774fffe5102Smrg IFS=$as_save_IFS 1775051ceee6Smrg case $as_dir in #((( 1776051ceee6Smrg '') as_dir=./ ;; 1777051ceee6Smrg */) ;; 1778051ceee6Smrg *) as_dir=$as_dir/ ;; 1779051ceee6Smrg esac 1780051ceee6Smrg printf "%s\n" "PATH: $as_dir" 1781fffe5102Smrg done 1782fffe5102SmrgIFS=$as_save_IFS 178367f05d30Smrg 178467f05d30Smrg} >&5 178567f05d30Smrg 178667f05d30Smrgcat >&5 <<_ACEOF 178767f05d30Smrg 178867f05d30Smrg 178967f05d30Smrg## ----------- ## 179067f05d30Smrg## Core tests. ## 179167f05d30Smrg## ----------- ## 179267f05d30Smrg 179367f05d30Smrg_ACEOF 179467f05d30Smrg 179567f05d30Smrg 179667f05d30Smrg# Keep a trace of the command line. 179767f05d30Smrg# Strip out --no-create and --no-recursion so they do not pile up. 179867f05d30Smrg# Strip out --silent because we don't want to record it for future runs. 179967f05d30Smrg# Also quote any args containing shell meta-characters. 180067f05d30Smrg# Make two passes to allow for proper duplicate-argument suppression. 180167f05d30Smrgac_configure_args= 180267f05d30Smrgac_configure_args0= 180367f05d30Smrgac_configure_args1= 180467f05d30Smrgac_must_keep_next=false 180567f05d30Smrgfor ac_pass in 1 2 180667f05d30Smrgdo 180767f05d30Smrg for ac_arg 180867f05d30Smrg do 180967f05d30Smrg case $ac_arg in 181067f05d30Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 181167f05d30Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 181267f05d30Smrg | -silent | --silent | --silen | --sile | --sil) 181367f05d30Smrg continue ;; 1814fffe5102Smrg *\'*) 1815051ceee6Smrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 181667f05d30Smrg esac 181767f05d30Smrg case $ac_pass in 1818fffe5102Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 181967f05d30Smrg 2) 1820fffe5102Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 182167f05d30Smrg if test $ac_must_keep_next = true; then 182267f05d30Smrg ac_must_keep_next=false # Got value, back to normal. 182367f05d30Smrg else 182467f05d30Smrg case $ac_arg in 182567f05d30Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 182667f05d30Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 182767f05d30Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 182867f05d30Smrg | -with-* | --with-* | -without-* | --without-* | --x) 182967f05d30Smrg case "$ac_configure_args0 " in 183067f05d30Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 183167f05d30Smrg esac 183267f05d30Smrg ;; 183367f05d30Smrg -* ) ac_must_keep_next=true ;; 183467f05d30Smrg esac 183567f05d30Smrg fi 1836fffe5102Smrg as_fn_append ac_configure_args " '$ac_arg'" 183767f05d30Smrg ;; 183867f05d30Smrg esac 183967f05d30Smrg done 184067f05d30Smrgdone 1841fffe5102Smrg{ ac_configure_args0=; unset ac_configure_args0;} 1842fffe5102Smrg{ ac_configure_args1=; unset ac_configure_args1;} 184367f05d30Smrg 184467f05d30Smrg# When interrupted or exit'd, cleanup temporary files, and complete 184567f05d30Smrg# config.log. We remove comments because anyway the quotes in there 184667f05d30Smrg# would cause problems or look ugly. 1847fffe5102Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1848fffe5102Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 184967f05d30Smrgtrap 'exit_status=$? 1850051ceee6Smrg # Sanitize IFS. 1851051ceee6Smrg IFS=" "" $as_nl" 185267f05d30Smrg # Save into config.log some information that might help in debugging. 185367f05d30Smrg { 185467f05d30Smrg echo 185567f05d30Smrg 1856051ceee6Smrg printf "%s\n" "## ---------------- ## 185767f05d30Smrg## Cache variables. ## 1858fc51f767Smrg## ---------------- ##" 185967f05d30Smrg echo 186067f05d30Smrg # The following way of writing the cache mishandles newlines in values, 1861fffe5102Smrg( 1862fffe5102Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1863fffe5102Smrg eval ac_val=\$$ac_var 1864fffe5102Smrg case $ac_val in #( 1865fffe5102Smrg *${as_nl}*) 1866fffe5102Smrg case $ac_var in #( 1867051ceee6Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1868051ceee6Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1869fffe5102Smrg esac 1870fffe5102Smrg case $ac_var in #( 1871fffe5102Smrg _ | IFS | as_nl) ;; #( 1872fffe5102Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1873fffe5102Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1874fffe5102Smrg esac ;; 1875fffe5102Smrg esac 1876fffe5102Smrg done 187767f05d30Smrg (set) 2>&1 | 1878fffe5102Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1879fffe5102Smrg *${as_nl}ac_space=\ *) 188067f05d30Smrg sed -n \ 1881fffe5102Smrg "s/'\''/'\''\\\\'\'''\''/g; 1882fffe5102Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1883fffe5102Smrg ;; #( 188467f05d30Smrg *) 1885fffe5102Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 188667f05d30Smrg ;; 1887fffe5102Smrg esac | 1888fffe5102Smrg sort 1889fffe5102Smrg) 189067f05d30Smrg echo 189167f05d30Smrg 1892051ceee6Smrg printf "%s\n" "## ----------------- ## 189367f05d30Smrg## Output variables. ## 1894fc51f767Smrg## ----------------- ##" 189567f05d30Smrg echo 189667f05d30Smrg for ac_var in $ac_subst_vars 189767f05d30Smrg do 1898fffe5102Smrg eval ac_val=\$$ac_var 1899fffe5102Smrg case $ac_val in 1900051ceee6Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1901fffe5102Smrg esac 1902051ceee6Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 190367f05d30Smrg done | sort 190467f05d30Smrg echo 190567f05d30Smrg 190667f05d30Smrg if test -n "$ac_subst_files"; then 1907051ceee6Smrg printf "%s\n" "## ------------------- ## 1908fffe5102Smrg## File substitutions. ## 1909fc51f767Smrg## ------------------- ##" 191067f05d30Smrg echo 191167f05d30Smrg for ac_var in $ac_subst_files 191267f05d30Smrg do 1913fffe5102Smrg eval ac_val=\$$ac_var 1914fffe5102Smrg case $ac_val in 1915051ceee6Smrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1916fffe5102Smrg esac 1917051ceee6Smrg printf "%s\n" "$ac_var='\''$ac_val'\''" 191867f05d30Smrg done | sort 191967f05d30Smrg echo 192067f05d30Smrg fi 192167f05d30Smrg 192267f05d30Smrg if test -s confdefs.h; then 1923051ceee6Smrg printf "%s\n" "## ----------- ## 192467f05d30Smrg## confdefs.h. ## 1925fc51f767Smrg## ----------- ##" 192667f05d30Smrg echo 1927fffe5102Smrg cat confdefs.h 192867f05d30Smrg echo 192967f05d30Smrg fi 193067f05d30Smrg test "$ac_signal" != 0 && 1931051ceee6Smrg printf "%s\n" "$as_me: caught signal $ac_signal" 1932051ceee6Smrg printf "%s\n" "$as_me: exit $exit_status" 193367f05d30Smrg } >&5 1934fffe5102Smrg rm -f core *.core core.conftest.* && 1935fffe5102Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 193667f05d30Smrg exit $exit_status 1937fffe5102Smrg' 0 193867f05d30Smrgfor ac_signal in 1 2 13 15; do 1939fffe5102Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 194067f05d30Smrgdone 194167f05d30Smrgac_signal=0 194267f05d30Smrg 194367f05d30Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1944fffe5102Smrgrm -f -r conftest* confdefs.h 1945fffe5102Smrg 1946051ceee6Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 194767f05d30Smrg 194867f05d30Smrg# Predefined preprocessor variables. 194967f05d30Smrg 1950051ceee6Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 195167f05d30Smrg 1952051ceee6Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 195367f05d30Smrg 1954051ceee6Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 195567f05d30Smrg 1956051ceee6Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 195767f05d30Smrg 1958051ceee6Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 195967f05d30Smrg 1960051ceee6Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1961fffe5102Smrg 196267f05d30Smrg 196367f05d30Smrg# Let the site file select an alternate cache file if it wants to. 1964fffe5102Smrg# Prefer an explicitly selected file to automatically selected ones. 1965fffe5102Smrgif test -n "$CONFIG_SITE"; then 1966051ceee6Smrg ac_site_files="$CONFIG_SITE" 1967fffe5102Smrgelif test "x$prefix" != xNONE; then 1968051ceee6Smrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1969fffe5102Smrgelse 1970051ceee6Smrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 197167f05d30Smrgfi 1972051ceee6Smrg 1973051ceee6Smrgfor ac_site_file in $ac_site_files 1974fffe5102Smrgdo 1975051ceee6Smrg case $ac_site_file in #( 1976051ceee6Smrg */*) : 1977051ceee6Smrg ;; #( 1978051ceee6Smrg *) : 1979051ceee6Smrg ac_site_file=./$ac_site_file ;; 1980051ceee6Smrgesac 1981051ceee6Smrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1982051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1983051ceee6Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 198467f05d30Smrg sed 's/^/| /' "$ac_site_file" >&5 1985fc51f767Smrg . "$ac_site_file" \ 1986051ceee6Smrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1987051ceee6Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1988fc51f767Smrgas_fn_error $? "failed to load site script $ac_site_file 1989fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; } 199067f05d30Smrg fi 199167f05d30Smrgdone 199267f05d30Smrg 199367f05d30Smrgif test -r "$cache_file"; then 1994fffe5102Smrg # Some versions of bash will fail to source /dev/null (special files 1995fffe5102Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1996fffe5102Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1997051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1998051ceee6Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 199967f05d30Smrg case $cache_file in 2000fffe5102Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2001fffe5102Smrg *) . "./$cache_file";; 200267f05d30Smrg esac 200367f05d30Smrg fi 200467f05d30Smrgelse 2005051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2006051ceee6Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 200767f05d30Smrg >$cache_file 200867f05d30Smrgfi 200967f05d30Smrg 2010051ceee6Smrg# Test code for whether the C compiler supports C89 (global declarations) 2011051ceee6Smrgac_c_conftest_c89_globals=' 2012051ceee6Smrg/* Does the compiler advertise C89 conformance? 2013051ceee6Smrg Do not test the value of __STDC__, because some compilers set it to 0 2014051ceee6Smrg while being otherwise adequately conformant. */ 2015051ceee6Smrg#if !defined __STDC__ 2016051ceee6Smrg# error "Compiler does not advertise C89 conformance" 2017051ceee6Smrg#endif 201867f05d30Smrg 2019051ceee6Smrg#include <stddef.h> 2020051ceee6Smrg#include <stdarg.h> 2021051ceee6Smrgstruct stat; 2022051ceee6Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2023051ceee6Smrgstruct buf { int x; }; 2024051ceee6Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 2025051ceee6Smrgstatic char *e (p, i) 2026051ceee6Smrg char **p; 2027051ceee6Smrg int i; 2028051ceee6Smrg{ 2029051ceee6Smrg return p[i]; 2030051ceee6Smrg} 2031051ceee6Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 2032051ceee6Smrg{ 2033051ceee6Smrg char *s; 2034051ceee6Smrg va_list v; 2035051ceee6Smrg va_start (v,p); 2036051ceee6Smrg s = g (p, va_arg (v,int)); 2037051ceee6Smrg va_end (v); 2038051ceee6Smrg return s; 2039051ceee6Smrg} 2040e90eff46Smrg 2041051ceee6Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2042051ceee6Smrg function prototypes and stuff, but not \xHH hex character constants. 2043051ceee6Smrg These do not provoke an error unfortunately, instead are silently treated 2044051ceee6Smrg as an "x". The following induces an error, until -std is added to get 2045051ceee6Smrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 2046051ceee6Smrg array size at least. It is necessary to write \x00 == 0 to get something 2047051ceee6Smrg that is true only with -std. */ 2048051ceee6Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2049e90eff46Smrg 2050051ceee6Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2051051ceee6Smrg inside strings and character constants. */ 2052051ceee6Smrg#define FOO(x) '\''x'\'' 2053051ceee6Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2054e90eff46Smrg 2055051ceee6Smrgint test (int i, double x); 2056051ceee6Smrgstruct s1 {int (*f) (int a);}; 2057051ceee6Smrgstruct s2 {int (*f) (double a);}; 2058051ceee6Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2059051ceee6Smrg int, int);' 206067f05d30Smrg 2061051ceee6Smrg# Test code for whether the C compiler supports C89 (body of main). 2062051ceee6Smrgac_c_conftest_c89_main=' 2063051ceee6Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2064051ceee6Smrg' 2065fffe5102Smrg 2066051ceee6Smrg# Test code for whether the C compiler supports C99 (global declarations) 2067051ceee6Smrgac_c_conftest_c99_globals=' 2068051ceee6Smrg// Does the compiler advertise C99 conformance? 2069051ceee6Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2070051ceee6Smrg# error "Compiler does not advertise C99 conformance" 2071051ceee6Smrg#endif 2072fffe5102Smrg 2073051ceee6Smrg#include <stdbool.h> 2074051ceee6Smrgextern int puts (const char *); 2075051ceee6Smrgextern int printf (const char *, ...); 2076051ceee6Smrgextern int dprintf (int, const char *, ...); 2077051ceee6Smrgextern void *malloc (size_t); 207867f05d30Smrg 2079051ceee6Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 2080051ceee6Smrg// dprintf is used instead of fprintf to avoid needing to declare 2081051ceee6Smrg// FILE and stderr. 2082051ceee6Smrg#define debug(...) dprintf (2, __VA_ARGS__) 2083051ceee6Smrg#define showlist(...) puts (#__VA_ARGS__) 2084051ceee6Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2085051ceee6Smrgstatic void 2086051ceee6Smrgtest_varargs_macros (void) 2087051ceee6Smrg{ 2088051ceee6Smrg int x = 1234; 2089051ceee6Smrg int y = 5678; 2090051ceee6Smrg debug ("Flag"); 2091051ceee6Smrg debug ("X = %d\n", x); 2092051ceee6Smrg showlist (The first, second, and third items.); 2093051ceee6Smrg report (x>y, "x is %d but y is %d", x, y); 2094051ceee6Smrg} 2095051ceee6Smrg 2096051ceee6Smrg// Check long long types. 2097051ceee6Smrg#define BIG64 18446744073709551615ull 2098051ceee6Smrg#define BIG32 4294967295ul 2099051ceee6Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2100051ceee6Smrg#if !BIG_OK 2101051ceee6Smrg #error "your preprocessor is broken" 2102051ceee6Smrg#endif 2103051ceee6Smrg#if BIG_OK 2104051ceee6Smrg#else 2105051ceee6Smrg #error "your preprocessor is broken" 2106051ceee6Smrg#endif 2107051ceee6Smrgstatic long long int bignum = -9223372036854775807LL; 2108051ceee6Smrgstatic unsigned long long int ubignum = BIG64; 2109051ceee6Smrg 2110051ceee6Smrgstruct incomplete_array 2111051ceee6Smrg{ 2112051ceee6Smrg int datasize; 2113051ceee6Smrg double data[]; 2114051ceee6Smrg}; 2115051ceee6Smrg 2116051ceee6Smrgstruct named_init { 2117051ceee6Smrg int number; 2118051ceee6Smrg const wchar_t *name; 2119051ceee6Smrg double average; 2120051ceee6Smrg}; 2121051ceee6Smrg 2122051ceee6Smrgtypedef const char *ccp; 2123051ceee6Smrg 2124051ceee6Smrgstatic inline int 2125051ceee6Smrgtest_restrict (ccp restrict text) 2126051ceee6Smrg{ 2127051ceee6Smrg // See if C++-style comments work. 2128051ceee6Smrg // Iterate through items via the restricted pointer. 2129051ceee6Smrg // Also check for declarations in for loops. 2130051ceee6Smrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2131051ceee6Smrg continue; 2132051ceee6Smrg return 0; 2133051ceee6Smrg} 2134051ceee6Smrg 2135051ceee6Smrg// Check varargs and va_copy. 2136051ceee6Smrgstatic bool 2137051ceee6Smrgtest_varargs (const char *format, ...) 2138051ceee6Smrg{ 2139051ceee6Smrg va_list args; 2140051ceee6Smrg va_start (args, format); 2141051ceee6Smrg va_list args_copy; 2142051ceee6Smrg va_copy (args_copy, args); 2143051ceee6Smrg 2144051ceee6Smrg const char *str = ""; 2145051ceee6Smrg int number = 0; 2146051ceee6Smrg float fnumber = 0; 2147051ceee6Smrg 2148051ceee6Smrg while (*format) 2149051ceee6Smrg { 2150051ceee6Smrg switch (*format++) 2151051ceee6Smrg { 2152051ceee6Smrg case '\''s'\'': // string 2153051ceee6Smrg str = va_arg (args_copy, const char *); 2154051ceee6Smrg break; 2155051ceee6Smrg case '\''d'\'': // int 2156051ceee6Smrg number = va_arg (args_copy, int); 2157051ceee6Smrg break; 2158051ceee6Smrg case '\''f'\'': // float 2159051ceee6Smrg fnumber = va_arg (args_copy, double); 2160051ceee6Smrg break; 2161051ceee6Smrg default: 2162051ceee6Smrg break; 2163051ceee6Smrg } 2164051ceee6Smrg } 2165051ceee6Smrg va_end (args_copy); 2166051ceee6Smrg va_end (args); 2167051ceee6Smrg 2168051ceee6Smrg return *str && number && fnumber; 2169051ceee6Smrg} 2170051ceee6Smrg' 2171051ceee6Smrg 2172051ceee6Smrg# Test code for whether the C compiler supports C99 (body of main). 2173051ceee6Smrgac_c_conftest_c99_main=' 2174051ceee6Smrg // Check bool. 2175051ceee6Smrg _Bool success = false; 2176051ceee6Smrg success |= (argc != 0); 2177051ceee6Smrg 2178051ceee6Smrg // Check restrict. 2179051ceee6Smrg if (test_restrict ("String literal") == 0) 2180051ceee6Smrg success = true; 2181051ceee6Smrg char *restrict newvar = "Another string"; 2182051ceee6Smrg 2183051ceee6Smrg // Check varargs. 2184051ceee6Smrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2185051ceee6Smrg test_varargs_macros (); 2186051ceee6Smrg 2187051ceee6Smrg // Check flexible array members. 2188051ceee6Smrg struct incomplete_array *ia = 2189051ceee6Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2190051ceee6Smrg ia->datasize = 10; 2191051ceee6Smrg for (int i = 0; i < ia->datasize; ++i) 2192051ceee6Smrg ia->data[i] = i * 1.234; 2193051ceee6Smrg 2194051ceee6Smrg // Check named initializers. 2195051ceee6Smrg struct named_init ni = { 2196051ceee6Smrg .number = 34, 2197051ceee6Smrg .name = L"Test wide string", 2198051ceee6Smrg .average = 543.34343, 2199051ceee6Smrg }; 2200051ceee6Smrg 2201051ceee6Smrg ni.number = 58; 2202051ceee6Smrg 2203051ceee6Smrg int dynamic_array[ni.number]; 2204051ceee6Smrg dynamic_array[0] = argv[0][0]; 2205051ceee6Smrg dynamic_array[ni.number - 1] = 543; 2206051ceee6Smrg 2207051ceee6Smrg // work around unused variable warnings 2208051ceee6Smrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2209051ceee6Smrg || dynamic_array[ni.number - 1] != 543); 2210051ceee6Smrg' 2211051ceee6Smrg 2212051ceee6Smrg# Test code for whether the C compiler supports C11 (global declarations) 2213051ceee6Smrgac_c_conftest_c11_globals=' 2214051ceee6Smrg// Does the compiler advertise C11 conformance? 2215051ceee6Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2216051ceee6Smrg# error "Compiler does not advertise C11 conformance" 2217051ceee6Smrg#endif 2218051ceee6Smrg 2219051ceee6Smrg// Check _Alignas. 2220051ceee6Smrgchar _Alignas (double) aligned_as_double; 2221051ceee6Smrgchar _Alignas (0) no_special_alignment; 2222051ceee6Smrgextern char aligned_as_int; 2223051ceee6Smrgchar _Alignas (0) _Alignas (int) aligned_as_int; 2224051ceee6Smrg 2225051ceee6Smrg// Check _Alignof. 2226051ceee6Smrgenum 2227051ceee6Smrg{ 2228051ceee6Smrg int_alignment = _Alignof (int), 2229051ceee6Smrg int_array_alignment = _Alignof (int[100]), 2230051ceee6Smrg char_alignment = _Alignof (char) 2231051ceee6Smrg}; 2232051ceee6Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2233051ceee6Smrg 2234051ceee6Smrg// Check _Noreturn. 2235051ceee6Smrgint _Noreturn does_not_return (void) { for (;;) continue; } 2236051ceee6Smrg 2237051ceee6Smrg// Check _Static_assert. 2238051ceee6Smrgstruct test_static_assert 2239051ceee6Smrg{ 2240051ceee6Smrg int x; 2241051ceee6Smrg _Static_assert (sizeof (int) <= sizeof (long int), 2242051ceee6Smrg "_Static_assert does not work in struct"); 2243051ceee6Smrg long int y; 2244051ceee6Smrg}; 2245051ceee6Smrg 2246051ceee6Smrg// Check UTF-8 literals. 2247051ceee6Smrg#define u8 syntax error! 2248051ceee6Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 2249051ceee6Smrg 2250051ceee6Smrg// Check duplicate typedefs. 2251051ceee6Smrgtypedef long *long_ptr; 2252051ceee6Smrgtypedef long int *long_ptr; 2253051ceee6Smrgtypedef long_ptr long_ptr; 2254051ceee6Smrg 2255051ceee6Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2256051ceee6Smrgstruct anonymous 2257051ceee6Smrg{ 2258051ceee6Smrg union { 2259051ceee6Smrg struct { int i; int j; }; 2260051ceee6Smrg struct { int k; long int l; } w; 2261051ceee6Smrg }; 2262051ceee6Smrg int m; 2263051ceee6Smrg} v1; 2264051ceee6Smrg' 2265051ceee6Smrg 2266051ceee6Smrg# Test code for whether the C compiler supports C11 (body of main). 2267051ceee6Smrgac_c_conftest_c11_main=' 2268051ceee6Smrg _Static_assert ((offsetof (struct anonymous, i) 2269051ceee6Smrg == offsetof (struct anonymous, w.k)), 2270051ceee6Smrg "Anonymous union alignment botch"); 2271051ceee6Smrg v1.i = 2; 2272051ceee6Smrg v1.w.k = 5; 2273051ceee6Smrg ok |= v1.i != 5; 2274051ceee6Smrg' 2275051ceee6Smrg 2276051ceee6Smrg# Test code for whether the C compiler supports C11 (complete). 2277051ceee6Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2278051ceee6Smrg${ac_c_conftest_c99_globals} 2279051ceee6Smrg${ac_c_conftest_c11_globals} 2280051ceee6Smrg 2281051ceee6Smrgint 2282051ceee6Smrgmain (int argc, char **argv) 2283051ceee6Smrg{ 2284051ceee6Smrg int ok = 0; 2285051ceee6Smrg ${ac_c_conftest_c89_main} 2286051ceee6Smrg ${ac_c_conftest_c99_main} 2287051ceee6Smrg ${ac_c_conftest_c11_main} 2288051ceee6Smrg return ok; 2289051ceee6Smrg} 2290051ceee6Smrg" 2291051ceee6Smrg 2292051ceee6Smrg# Test code for whether the C compiler supports C99 (complete). 2293051ceee6Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2294051ceee6Smrg${ac_c_conftest_c99_globals} 2295051ceee6Smrg 2296051ceee6Smrgint 2297051ceee6Smrgmain (int argc, char **argv) 2298051ceee6Smrg{ 2299051ceee6Smrg int ok = 0; 2300051ceee6Smrg ${ac_c_conftest_c89_main} 2301051ceee6Smrg ${ac_c_conftest_c99_main} 2302051ceee6Smrg return ok; 2303051ceee6Smrg} 2304051ceee6Smrg" 2305051ceee6Smrg 2306051ceee6Smrg# Test code for whether the C compiler supports C89 (complete). 2307051ceee6Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2308051ceee6Smrg 2309051ceee6Smrgint 2310051ceee6Smrgmain (int argc, char **argv) 2311051ceee6Smrg{ 2312051ceee6Smrg int ok = 0; 2313051ceee6Smrg ${ac_c_conftest_c89_main} 2314051ceee6Smrg return ok; 2315051ceee6Smrg} 2316051ceee6Smrg" 2317051ceee6Smrg 2318051ceee6Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2319051ceee6Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2320051ceee6Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2321051ceee6Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2322051ceee6Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2323051ceee6Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2324051ceee6Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2325051ceee6Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2326051ceee6Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2327051ceee6Smrg 2328051ceee6Smrg# Auxiliary files required by this configure script. 2329051ceee6Smrgac_aux_files="config.guess config.sub compile missing install-sh" 2330051ceee6Smrg 2331051ceee6Smrg# Locations in which to look for auxiliary files. 2332051ceee6Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2333051ceee6Smrg 2334051ceee6Smrg# Search for a directory containing all of the required auxiliary files, 2335051ceee6Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2336051ceee6Smrg# If we don't find one directory that contains all the files we need, 2337051ceee6Smrg# we report the set of missing files from the *first* directory in 2338051ceee6Smrg# $ac_aux_dir_candidates and give up. 2339051ceee6Smrgac_missing_aux_files="" 2340051ceee6Smrgac_first_candidate=: 2341051ceee6Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2342051ceee6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343051ceee6Smrgas_found=false 2344051ceee6Smrgfor as_dir in $ac_aux_dir_candidates 2345051ceee6Smrgdo 2346051ceee6Smrg IFS=$as_save_IFS 2347051ceee6Smrg case $as_dir in #((( 2348051ceee6Smrg '') as_dir=./ ;; 2349051ceee6Smrg */) ;; 2350051ceee6Smrg *) as_dir=$as_dir/ ;; 2351051ceee6Smrg esac 2352051ceee6Smrg as_found=: 2353051ceee6Smrg 2354051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2355051ceee6Smrg ac_aux_dir_found=yes 2356051ceee6Smrg ac_install_sh= 2357051ceee6Smrg for ac_aux in $ac_aux_files 2358051ceee6Smrg do 2359051ceee6Smrg # As a special case, if "install-sh" is required, that requirement 2360051ceee6Smrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2361051ceee6Smrg # and $ac_install_sh is set appropriately for whichever one is found. 2362051ceee6Smrg if test x"$ac_aux" = x"install-sh" 2363051ceee6Smrg then 2364051ceee6Smrg if test -f "${as_dir}install-sh"; then 2365051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2366051ceee6Smrg ac_install_sh="${as_dir}install-sh -c" 2367051ceee6Smrg elif test -f "${as_dir}install.sh"; then 2368051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2369051ceee6Smrg ac_install_sh="${as_dir}install.sh -c" 2370051ceee6Smrg elif test -f "${as_dir}shtool"; then 2371051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2372051ceee6Smrg ac_install_sh="${as_dir}shtool install -c" 2373051ceee6Smrg else 2374051ceee6Smrg ac_aux_dir_found=no 2375051ceee6Smrg if $ac_first_candidate; then 2376051ceee6Smrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2377051ceee6Smrg else 2378051ceee6Smrg break 2379051ceee6Smrg fi 2380051ceee6Smrg fi 2381051ceee6Smrg else 2382051ceee6Smrg if test -f "${as_dir}${ac_aux}"; then 2383051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2384051ceee6Smrg else 2385051ceee6Smrg ac_aux_dir_found=no 2386051ceee6Smrg if $ac_first_candidate; then 2387051ceee6Smrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2388051ceee6Smrg else 2389051ceee6Smrg break 2390051ceee6Smrg fi 2391051ceee6Smrg fi 2392051ceee6Smrg fi 2393051ceee6Smrg done 2394051ceee6Smrg if test "$ac_aux_dir_found" = yes; then 2395051ceee6Smrg ac_aux_dir="$as_dir" 2396051ceee6Smrg break 2397051ceee6Smrg fi 2398051ceee6Smrg ac_first_candidate=false 2399051ceee6Smrg 2400051ceee6Smrg as_found=false 2401051ceee6Smrgdone 2402051ceee6SmrgIFS=$as_save_IFS 2403051ceee6Smrgif $as_found 2404051ceee6Smrgthen : 2405051ceee6Smrg 2406051ceee6Smrgelse $as_nop 2407051ceee6Smrg as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2408051ceee6Smrgfi 2409051ceee6Smrg 2410051ceee6Smrg 2411051ceee6Smrg# These three variables are undocumented and unsupported, 2412051ceee6Smrg# and are intended to be withdrawn in a future Autoconf release. 2413051ceee6Smrg# They can cause serious problems if a builder's source tree is in a directory 2414051ceee6Smrg# whose full name contains unusual characters. 2415051ceee6Smrgif test -f "${ac_aux_dir}config.guess"; then 2416051ceee6Smrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2417051ceee6Smrgfi 2418051ceee6Smrgif test -f "${ac_aux_dir}config.sub"; then 2419051ceee6Smrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2420051ceee6Smrgfi 2421051ceee6Smrgif test -f "$ac_aux_dir/configure"; then 2422051ceee6Smrg ac_configure="$SHELL ${ac_aux_dir}configure" 2423051ceee6Smrgfi 2424051ceee6Smrg 2425051ceee6Smrg# Check that the precious variables saved in the cache have kept the same 2426051ceee6Smrg# value. 2427051ceee6Smrgac_cache_corrupted=false 2428051ceee6Smrgfor ac_var in $ac_precious_vars; do 2429051ceee6Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2430051ceee6Smrg eval ac_new_set=\$ac_env_${ac_var}_set 2431051ceee6Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2432051ceee6Smrg eval ac_new_val=\$ac_env_${ac_var}_value 2433051ceee6Smrg case $ac_old_set,$ac_new_set in 2434051ceee6Smrg set,) 2435051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2436051ceee6Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2437051ceee6Smrg ac_cache_corrupted=: ;; 2438051ceee6Smrg ,set) 2439051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2440051ceee6Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2441051ceee6Smrg ac_cache_corrupted=: ;; 2442051ceee6Smrg ,);; 2443051ceee6Smrg *) 2444051ceee6Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 2445051ceee6Smrg # differences in whitespace do not lead to failure. 2446051ceee6Smrg ac_old_val_w=`echo x $ac_old_val` 2447051ceee6Smrg ac_new_val_w=`echo x $ac_new_val` 2448051ceee6Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2449051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2450051ceee6Smrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2451051ceee6Smrg ac_cache_corrupted=: 2452051ceee6Smrg else 2453051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2454051ceee6Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2455051ceee6Smrg eval $ac_var=\$ac_old_val 2456051ceee6Smrg fi 2457051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2458051ceee6Smrgprintf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2459051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2460051ceee6Smrgprintf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2461051ceee6Smrg fi;; 2462051ceee6Smrg esac 2463051ceee6Smrg # Pass precious variables to config.status. 2464051ceee6Smrg if test "$ac_new_set" = set; then 2465051ceee6Smrg case $ac_new_val in 2466051ceee6Smrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2467051ceee6Smrg *) ac_arg=$ac_var=$ac_new_val ;; 2468051ceee6Smrg esac 2469051ceee6Smrg case " $ac_configure_args " in 2470051ceee6Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2471051ceee6Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2472051ceee6Smrg esac 2473051ceee6Smrg fi 2474051ceee6Smrgdone 2475051ceee6Smrgif $ac_cache_corrupted; then 2476051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2477051ceee6Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2478051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2479051ceee6Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2480051ceee6Smrg as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2481051ceee6Smrg and start over" "$LINENO" 5 2482051ceee6Smrgfi 2483051ceee6Smrg## -------------------- ## 2484051ceee6Smrg## Main body of script. ## 2485051ceee6Smrg## -------------------- ## 2486051ceee6Smrg 2487051ceee6Smrgac_ext=c 2488051ceee6Smrgac_cpp='$CPP $CPPFLAGS' 2489051ceee6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2490051ceee6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2491051ceee6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2492051ceee6Smrg 2493051ceee6Smrg 2494051ceee6Smrg 2495051ceee6Smrgac_config_headers="$ac_config_headers config.h" 2496051ceee6Smrg 2497051ceee6Smrg 2498051ceee6Smrg# Initialize Automake 2499051ceee6Smrgam__api_version='1.16' 2500051ceee6Smrg 2501051ceee6Smrg 2502051ceee6Smrg 2503051ceee6Smrg # Find a good install program. We prefer a C program (faster), 2504051ceee6Smrg# so one script is as good as another. But avoid the broken or 2505051ceee6Smrg# incompatible versions: 2506051ceee6Smrg# SysV /etc/install, /usr/sbin/install 2507051ceee6Smrg# SunOS /usr/etc/install 2508051ceee6Smrg# IRIX /sbin/install 2509051ceee6Smrg# AIX /bin/install 251067f05d30Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 251167f05d30Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 251267f05d30Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 251367f05d30Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 251467f05d30Smrg# OS/2's system install, which has a completely different semantic 251567f05d30Smrg# ./install, which can be erroneously created by make from ./install.sh. 2516fffe5102Smrg# Reject install programs that cannot install multiple files. 2517051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2518051ceee6Smrgprintf %s "checking for a BSD-compatible install... " >&6; } 251967f05d30Smrgif test -z "$INSTALL"; then 2520051ceee6Smrgif test ${ac_cv_path_install+y} 2521051ceee6Smrgthen : 2522051ceee6Smrg printf %s "(cached) " >&6 2523051ceee6Smrgelse $as_nop 252467f05d30Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 252567f05d30Smrgfor as_dir in $PATH 252667f05d30Smrgdo 252767f05d30Smrg IFS=$as_save_IFS 2528051ceee6Smrg case $as_dir in #((( 2529051ceee6Smrg '') as_dir=./ ;; 2530051ceee6Smrg */) ;; 2531051ceee6Smrg *) as_dir=$as_dir/ ;; 2532051ceee6Smrg esac 2533051ceee6Smrg # Account for fact that we put trailing slashes in our PATH walk. 2534051ceee6Smrgcase $as_dir in #(( 2535051ceee6Smrg ./ | /[cC]/* | \ 253667f05d30Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2537fffe5102Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 253867f05d30Smrg /usr/ucb/* ) ;; 253967f05d30Smrg *) 254067f05d30Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 254167f05d30Smrg # Don't use installbsd from OSF since it installs stuff as root 254267f05d30Smrg # by default. 254367f05d30Smrg for ac_prog in ginstall scoinst install; do 254467f05d30Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2545051ceee6Smrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 254667f05d30Smrg if test $ac_prog = install && 2547051ceee6Smrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 254867f05d30Smrg # AIX install. It has an incompatible calling convention. 254967f05d30Smrg : 255067f05d30Smrg elif test $ac_prog = install && 2551051ceee6Smrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 255267f05d30Smrg # program-specific install script used by HP pwplus--don't use. 255367f05d30Smrg : 255467f05d30Smrg else 2555fffe5102Smrg rm -rf conftest.one conftest.two conftest.dir 2556fffe5102Smrg echo one > conftest.one 2557fffe5102Smrg echo two > conftest.two 2558fffe5102Smrg mkdir conftest.dir 2559051ceee6Smrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2560fffe5102Smrg test -s conftest.one && test -s conftest.two && 2561fffe5102Smrg test -s conftest.dir/conftest.one && 2562fffe5102Smrg test -s conftest.dir/conftest.two 2563fffe5102Smrg then 2564051ceee6Smrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2565fffe5102Smrg break 3 2566fffe5102Smrg fi 256767f05d30Smrg fi 256867f05d30Smrg fi 256967f05d30Smrg done 257067f05d30Smrg done 257167f05d30Smrg ;; 257267f05d30Smrgesac 257367f05d30Smrg 2574fffe5102Smrg done 2575fffe5102SmrgIFS=$as_save_IFS 2576fffe5102Smrg 2577fffe5102Smrgrm -rf conftest.one conftest.two conftest.dir 257867f05d30Smrg 257967f05d30Smrgfi 2580051ceee6Smrg if test ${ac_cv_path_install+y}; then 258167f05d30Smrg INSTALL=$ac_cv_path_install 258267f05d30Smrg else 2583fffe5102Smrg # As a last resort, use the slow shell script. Don't cache a 2584fffe5102Smrg # value for INSTALL within a source directory, because that will 258567f05d30Smrg # break other packages using the cache if that directory is 2586fffe5102Smrg # removed, or if the value is a relative name. 258767f05d30Smrg INSTALL=$ac_install_sh 258867f05d30Smrg fi 258967f05d30Smrgfi 2590051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2591051ceee6Smrgprintf "%s\n" "$INSTALL" >&6; } 259267f05d30Smrg 259367f05d30Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 259467f05d30Smrg# It thinks the first close brace ends the variable substitution. 259567f05d30Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 259667f05d30Smrg 259767f05d30Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 259867f05d30Smrg 259967f05d30Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 260067f05d30Smrg 2601051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2602051ceee6Smrgprintf %s "checking whether build environment is sane... " >&6; } 2603fffe5102Smrg# Reject unsafe characters in $srcdir or the absolute working directory 2604fffe5102Smrg# name. Accept space and tab only in the latter. 2605fffe5102Smrgam_lf=' 2606fffe5102Smrg' 2607fffe5102Smrgcase `pwd` in 2608fffe5102Smrg *[\\\"\#\$\&\'\`$am_lf]*) 2609fc51f767Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2610fffe5102Smrgesac 2611fffe5102Smrgcase $srcdir in 2612fffe5102Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2613e90eff46Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2614fffe5102Smrgesac 2615fffe5102Smrg 2616e90eff46Smrg# Do 'set' in a subshell so we don't clobber the current shell's 261767f05d30Smrg# arguments. Must try -L first in case configure is actually a 261867f05d30Smrg# symlink; some systems play weird games with the mod time of symlinks 261967f05d30Smrg# (eg FreeBSD returns the mod time of the symlink's containing 262067f05d30Smrg# directory). 262167f05d30Smrgif ( 2622e90eff46Smrg am_has_slept=no 2623e90eff46Smrg for am_try in 1 2; do 2624e90eff46Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 2625e90eff46Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2626e90eff46Smrg if test "$*" = "X"; then 2627e90eff46Smrg # -L didn't work. 2628e90eff46Smrg set X `ls -t "$srcdir/configure" conftest.file` 2629e90eff46Smrg fi 2630e90eff46Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 2631e90eff46Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 2632e90eff46Smrg 2633e90eff46Smrg # If neither matched, then we have a broken ls. This can happen 2634e90eff46Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2635e90eff46Smrg # broken ls alias from the environment. This has actually 2636e90eff46Smrg # happened. Such a system could not be considered "sane". 2637e90eff46Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2638e90eff46Smrg alias in your environment" "$LINENO" 5 2639e90eff46Smrg fi 2640e90eff46Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 2641e90eff46Smrg break 2642e90eff46Smrg fi 2643e90eff46Smrg # Just in case. 2644e90eff46Smrg sleep 1 2645e90eff46Smrg am_has_slept=yes 2646e90eff46Smrg done 264767f05d30Smrg test "$2" = conftest.file 264867f05d30Smrg ) 264967f05d30Smrgthen 265067f05d30Smrg # Ok. 265167f05d30Smrg : 265267f05d30Smrgelse 2653fc51f767Smrg as_fn_error $? "newly created file is older than distributed files! 2654fffe5102SmrgCheck your system clock" "$LINENO" 5 265567f05d30Smrgfi 2656051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2657051ceee6Smrgprintf "%s\n" "yes" >&6; } 2658e90eff46Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 2659e90eff46Smrg# generated files are strictly newer. 2660e90eff46Smrgam_sleep_pid= 2661e90eff46Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 2662e90eff46Smrg ( sleep 1 ) & 2663e90eff46Smrg am_sleep_pid=$! 2664e90eff46Smrgfi 2665e90eff46Smrg 2666e90eff46Smrgrm -f conftest.file 2667e90eff46Smrg 266867f05d30Smrgtest "$program_prefix" != NONE && 2669fffe5102Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 267067f05d30Smrg# Use a double $ so make ignores it. 267167f05d30Smrgtest "$program_suffix" != NONE && 2672fffe5102Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2673fffe5102Smrg# Double any \ or $. 267467f05d30Smrg# By default was `s,x,x', remove it if useless. 2675fffe5102Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2676051ceee6Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2677051ceee6Smrg 267867f05d30Smrg 2679e90eff46Smrg# Expand $ac_aux_dir to an absolute path. 2680e90eff46Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 268167f05d30Smrg 2682051ceee6Smrg 2683051ceee6Smrg if test x"${MISSING+set}" != xset; then 2684051ceee6Smrg MISSING="\${SHELL} '$am_aux_dir/missing'" 2685fffe5102Smrgfi 268667f05d30Smrg# Use eval to expand $SHELL 2687e90eff46Smrgif eval "$MISSING --is-lightweight"; then 2688e90eff46Smrg am_missing_run="$MISSING " 268967f05d30Smrgelse 269067f05d30Smrg am_missing_run= 2691051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2692051ceee6Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2693fffe5102Smrgfi 2694fffe5102Smrg 2695e90eff46Smrgif test x"${install_sh+set}" != xset; then 2696fffe5102Smrg case $am_aux_dir in 2697fffe5102Smrg *\ * | *\ *) 2698fffe5102Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2699fffe5102Smrg *) 2700fffe5102Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2701fffe5102Smrg esac 2702fffe5102Smrgfi 2703fffe5102Smrg 2704e90eff46Smrg# Installed binaries are usually stripped using 'strip' when the user 2705e90eff46Smrg# run "make install-strip". However 'strip' might not be the right 2706fffe5102Smrg# tool to use in cross-compilation environments, therefore Automake 2707e90eff46Smrg# will honor the 'STRIP' environment variable to overrule this program. 2708fffe5102Smrgif test "$cross_compiling" != no; then 2709fffe5102Smrg if test -n "$ac_tool_prefix"; then 2710fffe5102Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2711fffe5102Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2712051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2713051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 2714051ceee6Smrgif test ${ac_cv_prog_STRIP+y} 2715051ceee6Smrgthen : 2716051ceee6Smrg printf %s "(cached) " >&6 2717051ceee6Smrgelse $as_nop 2718fffe5102Smrg if test -n "$STRIP"; then 2719fffe5102Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2720fffe5102Smrgelse 2721fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722fffe5102Smrgfor as_dir in $PATH 2723fffe5102Smrgdo 2724fffe5102Smrg IFS=$as_save_IFS 2725051ceee6Smrg case $as_dir in #((( 2726051ceee6Smrg '') as_dir=./ ;; 2727051ceee6Smrg */) ;; 2728051ceee6Smrg *) as_dir=$as_dir/ ;; 2729051ceee6Smrg esac 2730fffe5102Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2731051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2732fffe5102Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2733051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2734fffe5102Smrg break 2 2735fffe5102Smrg fi 2736fffe5102Smrgdone 2737fffe5102Smrg done 2738fffe5102SmrgIFS=$as_save_IFS 2739fffe5102Smrg 2740fffe5102Smrgfi 2741fffe5102Smrgfi 2742fffe5102SmrgSTRIP=$ac_cv_prog_STRIP 2743fffe5102Smrgif test -n "$STRIP"; then 2744051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2745051ceee6Smrgprintf "%s\n" "$STRIP" >&6; } 2746fffe5102Smrgelse 2747051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2748051ceee6Smrgprintf "%s\n" "no" >&6; } 2749fffe5102Smrgfi 2750fffe5102Smrg 2751fffe5102Smrg 2752fffe5102Smrgfi 2753fffe5102Smrgif test -z "$ac_cv_prog_STRIP"; then 2754fffe5102Smrg ac_ct_STRIP=$STRIP 2755fffe5102Smrg # Extract the first word of "strip", so it can be a program name with args. 2756fffe5102Smrgset dummy strip; ac_word=$2 2757051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2758051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 2759051ceee6Smrgif test ${ac_cv_prog_ac_ct_STRIP+y} 2760051ceee6Smrgthen : 2761051ceee6Smrg printf %s "(cached) " >&6 2762051ceee6Smrgelse $as_nop 2763fffe5102Smrg if test -n "$ac_ct_STRIP"; then 2764fffe5102Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2765fffe5102Smrgelse 2766fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2767fffe5102Smrgfor as_dir in $PATH 2768fffe5102Smrgdo 2769fffe5102Smrg IFS=$as_save_IFS 2770051ceee6Smrg case $as_dir in #((( 2771051ceee6Smrg '') as_dir=./ ;; 2772051ceee6Smrg */) ;; 2773051ceee6Smrg *) as_dir=$as_dir/ ;; 2774051ceee6Smrg esac 2775fffe5102Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2776051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2777fffe5102Smrg ac_cv_prog_ac_ct_STRIP="strip" 2778051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2779fffe5102Smrg break 2 2780fffe5102Smrg fi 2781fffe5102Smrgdone 2782fffe5102Smrg done 2783fffe5102SmrgIFS=$as_save_IFS 2784fffe5102Smrg 2785fffe5102Smrgfi 2786fffe5102Smrgfi 2787fffe5102Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2788fffe5102Smrgif test -n "$ac_ct_STRIP"; then 2789051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2790051ceee6Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 2791fffe5102Smrgelse 2792051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2793051ceee6Smrgprintf "%s\n" "no" >&6; } 2794fffe5102Smrgfi 2795fffe5102Smrg 2796fffe5102Smrg if test "x$ac_ct_STRIP" = x; then 2797fffe5102Smrg STRIP=":" 2798fffe5102Smrg else 2799fffe5102Smrg case $cross_compiling:$ac_tool_warned in 2800fffe5102Smrgyes:) 2801051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2802051ceee6Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2803fffe5102Smrgac_tool_warned=yes ;; 2804fffe5102Smrgesac 2805fffe5102Smrg STRIP=$ac_ct_STRIP 2806fffe5102Smrg fi 2807fffe5102Smrgelse 2808fffe5102Smrg STRIP="$ac_cv_prog_STRIP" 2809fffe5102Smrgfi 2810fffe5102Smrg 281167f05d30Smrgfi 2812fffe5102SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2813fffe5102Smrg 2814051ceee6Smrg 2815051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2816051ceee6Smrgprintf %s "checking for a race-free mkdir -p... " >&6; } 2817fffe5102Smrgif test -z "$MKDIR_P"; then 2818051ceee6Smrg if test ${ac_cv_path_mkdir+y} 2819051ceee6Smrgthen : 2820051ceee6Smrg printf %s "(cached) " >&6 2821051ceee6Smrgelse $as_nop 2822fffe5102Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2823fffe5102Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2824fffe5102Smrgdo 2825fffe5102Smrg IFS=$as_save_IFS 2826051ceee6Smrg case $as_dir in #((( 2827051ceee6Smrg '') as_dir=./ ;; 2828051ceee6Smrg */) ;; 2829051ceee6Smrg *) as_dir=$as_dir/ ;; 2830051ceee6Smrg esac 2831fffe5102Smrg for ac_prog in mkdir gmkdir; do 2832fffe5102Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2833051ceee6Smrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2834051ceee6Smrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2835051ceee6Smrg 'mkdir ('*'coreutils) '* | \ 2836051ceee6Smrg 'BusyBox '* | \ 2837fffe5102Smrg 'mkdir (fileutils) '4.1*) 2838051ceee6Smrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2839fffe5102Smrg break 3;; 2840fffe5102Smrg esac 2841fffe5102Smrg done 2842fffe5102Smrg done 2843fffe5102Smrg done 2844fffe5102SmrgIFS=$as_save_IFS 2845fffe5102Smrg 2846fffe5102Smrgfi 2847fffe5102Smrg 2848fffe5102Smrg test -d ./--version && rmdir ./--version 2849051ceee6Smrg if test ${ac_cv_path_mkdir+y}; then 2850fffe5102Smrg MKDIR_P="$ac_cv_path_mkdir -p" 2851fffe5102Smrg else 2852fffe5102Smrg # As a last resort, use the slow shell script. Don't cache a 2853fffe5102Smrg # value for MKDIR_P within a source directory, because that will 2854fffe5102Smrg # break other packages using the cache if that directory is 2855fffe5102Smrg # removed, or if the value is a relative name. 2856fffe5102Smrg MKDIR_P="$ac_install_sh -d" 2857fffe5102Smrg fi 2858fffe5102Smrgfi 2859051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2860051ceee6Smrgprintf "%s\n" "$MKDIR_P" >&6; } 2861fffe5102Smrg 286267f05d30Smrgfor ac_prog in gawk mawk nawk awk 286367f05d30Smrgdo 286467f05d30Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 286567f05d30Smrgset dummy $ac_prog; ac_word=$2 2866051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2867051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 2868051ceee6Smrgif test ${ac_cv_prog_AWK+y} 2869051ceee6Smrgthen : 2870051ceee6Smrg printf %s "(cached) " >&6 2871051ceee6Smrgelse $as_nop 287267f05d30Smrg if test -n "$AWK"; then 287367f05d30Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 287467f05d30Smrgelse 287567f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 287667f05d30Smrgfor as_dir in $PATH 287767f05d30Smrgdo 287867f05d30Smrg IFS=$as_save_IFS 2879051ceee6Smrg case $as_dir in #((( 2880051ceee6Smrg '') as_dir=./ ;; 2881051ceee6Smrg */) ;; 2882051ceee6Smrg *) as_dir=$as_dir/ ;; 2883051ceee6Smrg esac 2884fffe5102Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2885051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 288667f05d30Smrg ac_cv_prog_AWK="$ac_prog" 2887051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 288867f05d30Smrg break 2 288967f05d30Smrg fi 289067f05d30Smrgdone 2891fffe5102Smrg done 2892fffe5102SmrgIFS=$as_save_IFS 289367f05d30Smrg 289467f05d30Smrgfi 289567f05d30Smrgfi 289667f05d30SmrgAWK=$ac_cv_prog_AWK 289767f05d30Smrgif test -n "$AWK"; then 2898051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2899051ceee6Smrgprintf "%s\n" "$AWK" >&6; } 290067f05d30Smrgelse 2901051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2902051ceee6Smrgprintf "%s\n" "no" >&6; } 290367f05d30Smrgfi 290467f05d30Smrg 2905fffe5102Smrg 290667f05d30Smrg test -n "$AWK" && break 290767f05d30Smrgdone 290867f05d30Smrg 2909051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2910051ceee6Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2911fffe5102Smrgset x ${MAKE-make} 2912051ceee6Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2913051ceee6Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 2914051ceee6Smrgthen : 2915051ceee6Smrg printf %s "(cached) " >&6 2916051ceee6Smrgelse $as_nop 291767f05d30Smrg cat >conftest.make <<\_ACEOF 2918fffe5102SmrgSHELL = /bin/sh 291967f05d30Smrgall: 2920fffe5102Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 292167f05d30Smrg_ACEOF 2922fc51f767Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2923fffe5102Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2924fffe5102Smrg *@@@%%%=?*=@@@%%%*) 2925fffe5102Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2926fffe5102Smrg *) 2927fffe5102Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2928fffe5102Smrgesac 292967f05d30Smrgrm -f conftest.make 293067f05d30Smrgfi 2931fffe5102Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2932051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2933051ceee6Smrgprintf "%s\n" "yes" >&6; } 293467f05d30Smrg SET_MAKE= 293567f05d30Smrgelse 2936051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2937051ceee6Smrgprintf "%s\n" "no" >&6; } 293867f05d30Smrg SET_MAKE="MAKE=${MAKE-make}" 293967f05d30Smrgfi 294067f05d30Smrg 294167f05d30Smrgrm -rf .tst 2>/dev/null 294267f05d30Smrgmkdir .tst 2>/dev/null 294367f05d30Smrgif test -d .tst; then 294467f05d30Smrg am__leading_dot=. 294567f05d30Smrgelse 294667f05d30Smrg am__leading_dot=_ 294767f05d30Smrgfi 294867f05d30Smrgrmdir .tst 2>/dev/null 294967f05d30Smrg 2950e90eff46Smrg# Check whether --enable-silent-rules was given. 2951051ceee6Smrgif test ${enable_silent_rules+y} 2952051ceee6Smrgthen : 2953e90eff46Smrg enableval=$enable_silent_rules; 2954e90eff46Smrgfi 2955e90eff46Smrg 2956e90eff46Smrgcase $enable_silent_rules in # ((( 2957e90eff46Smrg yes) AM_DEFAULT_VERBOSITY=0;; 2958e90eff46Smrg no) AM_DEFAULT_VERBOSITY=1;; 2959e90eff46Smrg *) AM_DEFAULT_VERBOSITY=1;; 2960e90eff46Smrgesac 2961e90eff46Smrgam_make=${MAKE-make} 2962051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2963051ceee6Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 2964051ceee6Smrgif test ${am_cv_make_support_nested_variables+y} 2965051ceee6Smrgthen : 2966051ceee6Smrg printf %s "(cached) " >&6 2967051ceee6Smrgelse $as_nop 2968051ceee6Smrg if printf "%s\n" 'TRUE=$(BAR$(V)) 2969e90eff46SmrgBAR0=false 2970e90eff46SmrgBAR1=true 2971e90eff46SmrgV=1 2972e90eff46Smrgam__doit: 2973e90eff46Smrg @$(TRUE) 2974e90eff46Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2975e90eff46Smrg am_cv_make_support_nested_variables=yes 2976e90eff46Smrgelse 2977e90eff46Smrg am_cv_make_support_nested_variables=no 2978e90eff46Smrgfi 2979e90eff46Smrgfi 2980051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2981051ceee6Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2982e90eff46Smrgif test $am_cv_make_support_nested_variables = yes; then 2983e90eff46Smrg AM_V='$(V)' 2984e90eff46Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2985e90eff46Smrgelse 2986e90eff46Smrg AM_V=$AM_DEFAULT_VERBOSITY 2987e90eff46Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2988e90eff46Smrgfi 2989e90eff46SmrgAM_BACKSLASH='\' 2990e90eff46Smrg 2991fffe5102Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2992fffe5102Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2993fffe5102Smrg # is not polluted with repeated "-I." 2994fffe5102Smrg am__isrc=' -I$(srcdir)' 2995fffe5102Smrg # test to see if srcdir already configured 2996fffe5102Smrg if test -f $srcdir/config.status; then 2997fc51f767Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2998fffe5102Smrg fi 299967f05d30Smrgfi 300067f05d30Smrg 300167f05d30Smrg# test whether we have cygpath 300267f05d30Smrgif test -z "$CYGPATH_W"; then 300367f05d30Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 300467f05d30Smrg CYGPATH_W='cygpath -w' 300567f05d30Smrg else 300667f05d30Smrg CYGPATH_W=echo 300767f05d30Smrg fi 300867f05d30Smrgfi 300967f05d30Smrg 301067f05d30Smrg 301167f05d30Smrg# Define the identity of the package. 301267f05d30Smrg PACKAGE='viewres' 3013051ceee6Smrg VERSION='1.0.7' 301467f05d30Smrg 301567f05d30Smrg 3016051ceee6Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 301767f05d30Smrg 301867f05d30Smrg 3019051ceee6Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 302067f05d30Smrg 302167f05d30Smrg# Some tools Automake needs. 302267f05d30Smrg 302367f05d30SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 302467f05d30Smrg 302567f05d30Smrg 302667f05d30SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 302767f05d30Smrg 302867f05d30Smrg 302967f05d30SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 303067f05d30Smrg 303167f05d30Smrg 303267f05d30SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 303367f05d30Smrg 303467f05d30Smrg 303567f05d30SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 303667f05d30Smrg 3037e90eff46Smrg# For better backward compatibility. To be removed once Automake 1.9.x 3038e90eff46Smrg# dies out for good. For more background, see: 3039051ceee6Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3040051ceee6Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3041e90eff46Smrgmkdir_p='$(MKDIR_P)' 304267f05d30Smrg 3043e90eff46Smrg# We need awk for the "check" target (and possibly the TAP driver). The 3044e90eff46Smrg# system "awk" is bad on some platforms. 3045e90eff46Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 3046e90eff46Smrg# in the wild :-( We should find a proper way to deprecate it ... 3047e90eff46SmrgAMTAR='$${TAR-tar}' 304867f05d30Smrg 304967f05d30Smrg 3050e90eff46Smrg# We'll loop over all known methods to create a tar archive until one works. 3051e90eff46Smrg_am_tools='gnutar pax cpio none' 3052fffe5102Smrg 3053e90eff46Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3054fffe5102Smrg 3055fffe5102Smrg 3056fffe5102Smrg 3057fffe5102Smrg 3058fffe5102Smrg 3059051ceee6Smrg# Variables for tags utilities; see am/tags.am 3060051ceee6Smrgif test -z "$CTAGS"; then 3061051ceee6Smrg CTAGS=ctags 3062051ceee6Smrgfi 3063051ceee6Smrg 3064051ceee6Smrgif test -z "$ETAGS"; then 3065051ceee6Smrg ETAGS=etags 3066051ceee6Smrgfi 3067051ceee6Smrg 3068051ceee6Smrgif test -z "$CSCOPE"; then 3069051ceee6Smrg CSCOPE=cscope 3070051ceee6Smrgfi 3071051ceee6Smrg 3072051ceee6Smrg 307367f05d30Smrg 3074e90eff46Smrg# POSIX will say in a future version that running "rm -f" with no argument 3075e90eff46Smrg# is OK; and we want to be able to make that assumption in our Makefile 3076e90eff46Smrg# recipes. So use an aggressive probe to check that the usage we want is 3077e90eff46Smrg# actually supported "in the wild" to an acceptable degree. 3078e90eff46Smrg# See automake bug#10828. 3079e90eff46Smrg# To make any issue more visible, cause the running configure to be aborted 3080e90eff46Smrg# by default if the 'rm' program in use doesn't match our expectations; the 3081e90eff46Smrg# user can still override this though. 3082e90eff46Smrgif rm -f && rm -fr && rm -rf; then : OK; else 3083e90eff46Smrg cat >&2 <<'END' 3084e90eff46SmrgOops! 308567f05d30Smrg 3086e90eff46SmrgYour 'rm' program seems unable to run without file operands specified 3087e90eff46Smrgon the command line, even when the '-f' option is present. This is contrary 3088e90eff46Smrgto the behaviour of most rm programs out there, and not conforming with 3089e90eff46Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3090e90eff46Smrg 3091e90eff46SmrgPlease tell bug-automake@gnu.org about your system, including the value 3092e90eff46Smrgof your $PATH and any error possibly output before this message. This 3093e90eff46Smrgcan help us improve future automake versions. 3094e90eff46Smrg 3095e90eff46SmrgEND 3096e90eff46Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3097e90eff46Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 3098e90eff46Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3099e90eff46Smrg echo >&2 3100e90eff46Smrg else 3101e90eff46Smrg cat >&2 <<'END' 3102e90eff46SmrgAborting the configuration process, to ensure you take notice of the issue. 3103e90eff46Smrg 3104e90eff46SmrgYou can download and install GNU coreutils to get an 'rm' implementation 3105051ceee6Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 3106e90eff46Smrg 3107e90eff46SmrgIf you want to complete the configuration process using your problematic 3108e90eff46Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3109e90eff46Smrgto "yes", and re-run configure. 3110e90eff46Smrg 3111e90eff46SmrgEND 3112e90eff46Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3113e90eff46Smrg fi 3114e90eff46Smrgfi 311567f05d30Smrg 311667f05d30Smrg 3117fc51f767Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 311867f05d30Smrg 311967f05d30Smrg 312067f05d30Smrg 312167f05d30Smrg 312267f05d30Smrg 312367f05d30Smrg 3124fffe5102Smrg 3125fffe5102Smrg 3126fffe5102Smrg 3127fffe5102Smrg 3128fffe5102Smrg 3129051ceee6Smrg 3130051ceee6Smrg 3131051ceee6Smrg 3132051ceee6Smrg 3133051ceee6Smrg 3134051ceee6Smrg 3135051ceee6Smrg 3136051ceee6Smrg 3137051ceee6Smrg 3138fffe5102SmrgDEPDIR="${am__leading_dot}deps" 3139fffe5102Smrg 3140fffe5102Smrgac_config_commands="$ac_config_commands depfiles" 3141fffe5102Smrg 3142051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3143051ceee6Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3144051ceee6Smrgcat > confinc.mk << 'END' 3145fffe5102Smrgam__doit: 3146051ceee6Smrg @echo this is the am__doit target >confinc.out 3147fffe5102Smrg.PHONY: am__doit 3148fffe5102SmrgEND 3149fffe5102Smrgam__include="#" 3150fffe5102Smrgam__quote= 3151051ceee6Smrg# BSD make does it like this. 3152051ceee6Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD 3153051ceee6Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3154051ceee6Smrgecho 'include confinc.mk # ignored' > confmf.GNU 3155051ceee6Smrg_am_result=no 3156051ceee6Smrgfor s in GNU BSD; do 3157051ceee6Smrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3158051ceee6Smrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3159051ceee6Smrg ac_status=$? 3160051ceee6Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 3161051ceee6Smrg (exit $ac_status); } 3162051ceee6Smrg case $?:`cat confinc.out 2>/dev/null` in #( 3163051ceee6Smrg '0:this is the am__doit target') : 3164051ceee6Smrg case $s in #( 3165051ceee6Smrg BSD) : 3166051ceee6Smrg am__include='.include' am__quote='"' ;; #( 3167051ceee6Smrg *) : 3168051ceee6Smrg am__include='include' am__quote='' ;; 3169051ceee6Smrgesac ;; #( 3170051ceee6Smrg *) : 3171fffe5102Smrg ;; 3172051ceee6Smrgesac 3173051ceee6Smrg if test "$am__include" != "#"; then 3174051ceee6Smrg _am_result="yes ($s style)" 3175051ceee6Smrg break 3176051ceee6Smrg fi 3177051ceee6Smrgdone 3178051ceee6Smrgrm -f confinc.* confmf.* 3179051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3180051ceee6Smrgprintf "%s\n" "${_am_result}" >&6; } 318167f05d30Smrg 3182fffe5102Smrg# Check whether --enable-dependency-tracking was given. 3183051ceee6Smrgif test ${enable_dependency_tracking+y} 3184051ceee6Smrgthen : 3185fffe5102Smrg enableval=$enable_dependency_tracking; 3186fffe5102Smrgfi 318767f05d30Smrg 3188fffe5102Smrgif test "x$enable_dependency_tracking" != xno; then 3189fffe5102Smrg am_depcomp="$ac_aux_dir/depcomp" 3190fffe5102Smrg AMDEPBACKSLASH='\' 31916dbd43aaSmrg am__nodep='_no' 3192fffe5102Smrgfi 3193fffe5102Smrg if test "x$enable_dependency_tracking" != xno; then 3194fffe5102Smrg AMDEP_TRUE= 3195fffe5102Smrg AMDEP_FALSE='#' 3196fffe5102Smrgelse 3197fffe5102Smrg AMDEP_TRUE='#' 3198fffe5102Smrg AMDEP_FALSE= 3199fffe5102Smrgfi 320067f05d30Smrg 320167f05d30Smrg 320267f05d30Smrgac_ext=c 320367f05d30Smrgac_cpp='$CPP $CPPFLAGS' 320467f05d30Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 320567f05d30Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 320667f05d30Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 320767f05d30Smrgif test -n "$ac_tool_prefix"; then 320867f05d30Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 320967f05d30Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 3210051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3211051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 3212051ceee6Smrgif test ${ac_cv_prog_CC+y} 3213051ceee6Smrgthen : 3214051ceee6Smrg printf %s "(cached) " >&6 3215051ceee6Smrgelse $as_nop 321667f05d30Smrg if test -n "$CC"; then 321767f05d30Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 321867f05d30Smrgelse 321967f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 322067f05d30Smrgfor as_dir in $PATH 322167f05d30Smrgdo 322267f05d30Smrg IFS=$as_save_IFS 3223051ceee6Smrg case $as_dir in #((( 3224051ceee6Smrg '') as_dir=./ ;; 3225051ceee6Smrg */) ;; 3226051ceee6Smrg *) as_dir=$as_dir/ ;; 3227051ceee6Smrg esac 3228fffe5102Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3229051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 323067f05d30Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 3231051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 323267f05d30Smrg break 2 323367f05d30Smrg fi 323467f05d30Smrgdone 3235fffe5102Smrg done 3236fffe5102SmrgIFS=$as_save_IFS 323767f05d30Smrg 323867f05d30Smrgfi 323967f05d30Smrgfi 324067f05d30SmrgCC=$ac_cv_prog_CC 324167f05d30Smrgif test -n "$CC"; then 3242051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3243051ceee6Smrgprintf "%s\n" "$CC" >&6; } 324467f05d30Smrgelse 3245051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3246051ceee6Smrgprintf "%s\n" "no" >&6; } 324767f05d30Smrgfi 324867f05d30Smrg 3249fffe5102Smrg 325067f05d30Smrgfi 325167f05d30Smrgif test -z "$ac_cv_prog_CC"; then 325267f05d30Smrg ac_ct_CC=$CC 325367f05d30Smrg # Extract the first word of "gcc", so it can be a program name with args. 325467f05d30Smrgset dummy gcc; ac_word=$2 3255051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3256051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 3257051ceee6Smrgif test ${ac_cv_prog_ac_ct_CC+y} 3258051ceee6Smrgthen : 3259051ceee6Smrg printf %s "(cached) " >&6 3260051ceee6Smrgelse $as_nop 326167f05d30Smrg if test -n "$ac_ct_CC"; then 326267f05d30Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 326367f05d30Smrgelse 326467f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 326567f05d30Smrgfor as_dir in $PATH 326667f05d30Smrgdo 326767f05d30Smrg IFS=$as_save_IFS 3268051ceee6Smrg case $as_dir in #((( 3269051ceee6Smrg '') as_dir=./ ;; 3270051ceee6Smrg */) ;; 3271051ceee6Smrg *) as_dir=$as_dir/ ;; 3272051ceee6Smrg esac 3273fffe5102Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3274051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 327567f05d30Smrg ac_cv_prog_ac_ct_CC="gcc" 3276051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 327767f05d30Smrg break 2 327867f05d30Smrg fi 327967f05d30Smrgdone 3280fffe5102Smrg done 3281fffe5102SmrgIFS=$as_save_IFS 328267f05d30Smrg 328367f05d30Smrgfi 328467f05d30Smrgfi 328567f05d30Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 328667f05d30Smrgif test -n "$ac_ct_CC"; then 3287051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3288051ceee6Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 328967f05d30Smrgelse 3290051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3291051ceee6Smrgprintf "%s\n" "no" >&6; } 329267f05d30Smrgfi 329367f05d30Smrg 3294fffe5102Smrg if test "x$ac_ct_CC" = x; then 3295fffe5102Smrg CC="" 3296fffe5102Smrg else 3297fffe5102Smrg case $cross_compiling:$ac_tool_warned in 3298fffe5102Smrgyes:) 3299051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3300051ceee6Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3301fffe5102Smrgac_tool_warned=yes ;; 3302fffe5102Smrgesac 3303fffe5102Smrg CC=$ac_ct_CC 3304fffe5102Smrg fi 330567f05d30Smrgelse 330667f05d30Smrg CC="$ac_cv_prog_CC" 330767f05d30Smrgfi 330867f05d30Smrg 330967f05d30Smrgif test -z "$CC"; then 3310fffe5102Smrg if test -n "$ac_tool_prefix"; then 3311fffe5102Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 331267f05d30Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 3313051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3314051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 3315051ceee6Smrgif test ${ac_cv_prog_CC+y} 3316051ceee6Smrgthen : 3317051ceee6Smrg printf %s "(cached) " >&6 3318051ceee6Smrgelse $as_nop 331967f05d30Smrg if test -n "$CC"; then 332067f05d30Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 332167f05d30Smrgelse 332267f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 332367f05d30Smrgfor as_dir in $PATH 332467f05d30Smrgdo 332567f05d30Smrg IFS=$as_save_IFS 3326051ceee6Smrg case $as_dir in #((( 3327051ceee6Smrg '') as_dir=./ ;; 3328051ceee6Smrg */) ;; 3329051ceee6Smrg *) as_dir=$as_dir/ ;; 3330051ceee6Smrg esac 3331fffe5102Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3332051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 333367f05d30Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 3334051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 333567f05d30Smrg break 2 333667f05d30Smrg fi 333767f05d30Smrgdone 3338fffe5102Smrg done 3339fffe5102SmrgIFS=$as_save_IFS 334067f05d30Smrg 334167f05d30Smrgfi 334267f05d30Smrgfi 334367f05d30SmrgCC=$ac_cv_prog_CC 334467f05d30Smrgif test -n "$CC"; then 3345051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3346051ceee6Smrgprintf "%s\n" "$CC" >&6; } 334767f05d30Smrgelse 3348051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3349051ceee6Smrgprintf "%s\n" "no" >&6; } 335067f05d30Smrgfi 335167f05d30Smrg 335267f05d30Smrg 3353fffe5102Smrg fi 335467f05d30Smrgfi 335567f05d30Smrgif test -z "$CC"; then 335667f05d30Smrg # Extract the first word of "cc", so it can be a program name with args. 335767f05d30Smrgset dummy cc; ac_word=$2 3358051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3359051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 3360051ceee6Smrgif test ${ac_cv_prog_CC+y} 3361051ceee6Smrgthen : 3362051ceee6Smrg printf %s "(cached) " >&6 3363051ceee6Smrgelse $as_nop 336467f05d30Smrg if test -n "$CC"; then 336567f05d30Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 336667f05d30Smrgelse 336767f05d30Smrg ac_prog_rejected=no 336867f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 336967f05d30Smrgfor as_dir in $PATH 337067f05d30Smrgdo 337167f05d30Smrg IFS=$as_save_IFS 3372051ceee6Smrg case $as_dir in #((( 3373051ceee6Smrg '') as_dir=./ ;; 3374051ceee6Smrg */) ;; 3375051ceee6Smrg *) as_dir=$as_dir/ ;; 3376051ceee6Smrg esac 3377fffe5102Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3378051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3379051ceee6Smrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 338067f05d30Smrg ac_prog_rejected=yes 338167f05d30Smrg continue 338267f05d30Smrg fi 338367f05d30Smrg ac_cv_prog_CC="cc" 3384051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 338567f05d30Smrg break 2 338667f05d30Smrg fi 338767f05d30Smrgdone 3388fffe5102Smrg done 3389fffe5102SmrgIFS=$as_save_IFS 339067f05d30Smrg 339167f05d30Smrgif test $ac_prog_rejected = yes; then 339267f05d30Smrg # We found a bogon in the path, so make sure we never use it. 339367f05d30Smrg set dummy $ac_cv_prog_CC 339467f05d30Smrg shift 339567f05d30Smrg if test $# != 0; then 339667f05d30Smrg # We chose a different compiler from the bogus one. 339767f05d30Smrg # However, it has the same basename, so the bogon will be chosen 339867f05d30Smrg # first if we set CC to just the basename; use the full file name. 339967f05d30Smrg shift 3400051ceee6Smrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 340167f05d30Smrg fi 340267f05d30Smrgfi 340367f05d30Smrgfi 340467f05d30Smrgfi 340567f05d30SmrgCC=$ac_cv_prog_CC 340667f05d30Smrgif test -n "$CC"; then 3407051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3408051ceee6Smrgprintf "%s\n" "$CC" >&6; } 340967f05d30Smrgelse 3410051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3411051ceee6Smrgprintf "%s\n" "no" >&6; } 341267f05d30Smrgfi 341367f05d30Smrg 3414fffe5102Smrg 341567f05d30Smrgfi 341667f05d30Smrgif test -z "$CC"; then 341767f05d30Smrg if test -n "$ac_tool_prefix"; then 3418fffe5102Smrg for ac_prog in cl.exe 341967f05d30Smrg do 342067f05d30Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 342167f05d30Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3422051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3423051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 3424051ceee6Smrgif test ${ac_cv_prog_CC+y} 3425051ceee6Smrgthen : 3426051ceee6Smrg printf %s "(cached) " >&6 3427051ceee6Smrgelse $as_nop 342867f05d30Smrg if test -n "$CC"; then 342967f05d30Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 343067f05d30Smrgelse 343167f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 343267f05d30Smrgfor as_dir in $PATH 343367f05d30Smrgdo 343467f05d30Smrg IFS=$as_save_IFS 3435051ceee6Smrg case $as_dir in #((( 3436051ceee6Smrg '') as_dir=./ ;; 3437051ceee6Smrg */) ;; 3438051ceee6Smrg *) as_dir=$as_dir/ ;; 3439051ceee6Smrg esac 3440fffe5102Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3441051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 344267f05d30Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3443051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 344467f05d30Smrg break 2 344567f05d30Smrg fi 344667f05d30Smrgdone 3447fffe5102Smrg done 3448fffe5102SmrgIFS=$as_save_IFS 344967f05d30Smrg 345067f05d30Smrgfi 345167f05d30Smrgfi 345267f05d30SmrgCC=$ac_cv_prog_CC 345367f05d30Smrgif test -n "$CC"; then 3454051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3455051ceee6Smrgprintf "%s\n" "$CC" >&6; } 345667f05d30Smrgelse 3457051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3458051ceee6Smrgprintf "%s\n" "no" >&6; } 345967f05d30Smrgfi 346067f05d30Smrg 3461fffe5102Smrg 346267f05d30Smrg test -n "$CC" && break 346367f05d30Smrg done 346467f05d30Smrgfi 346567f05d30Smrgif test -z "$CC"; then 346667f05d30Smrg ac_ct_CC=$CC 3467fffe5102Smrg for ac_prog in cl.exe 346867f05d30Smrgdo 346967f05d30Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 347067f05d30Smrgset dummy $ac_prog; ac_word=$2 3471051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3472051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 3473051ceee6Smrgif test ${ac_cv_prog_ac_ct_CC+y} 3474051ceee6Smrgthen : 3475051ceee6Smrg printf %s "(cached) " >&6 3476051ceee6Smrgelse $as_nop 347767f05d30Smrg if test -n "$ac_ct_CC"; then 347867f05d30Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 347967f05d30Smrgelse 348067f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 348167f05d30Smrgfor as_dir in $PATH 348267f05d30Smrgdo 348367f05d30Smrg IFS=$as_save_IFS 3484051ceee6Smrg case $as_dir in #((( 3485051ceee6Smrg '') as_dir=./ ;; 3486051ceee6Smrg */) ;; 3487051ceee6Smrg *) as_dir=$as_dir/ ;; 3488051ceee6Smrg esac 3489fffe5102Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3490051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 349167f05d30Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 3492051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 349367f05d30Smrg break 2 349467f05d30Smrg fi 349567f05d30Smrgdone 3496fffe5102Smrg done 3497fffe5102SmrgIFS=$as_save_IFS 349867f05d30Smrg 349967f05d30Smrgfi 350067f05d30Smrgfi 350167f05d30Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 350267f05d30Smrgif test -n "$ac_ct_CC"; then 3503051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3504051ceee6Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 350567f05d30Smrgelse 3506051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3507051ceee6Smrgprintf "%s\n" "no" >&6; } 350867f05d30Smrgfi 350967f05d30Smrg 3510fffe5102Smrg 351167f05d30Smrg test -n "$ac_ct_CC" && break 351267f05d30Smrgdone 351367f05d30Smrg 3514fffe5102Smrg if test "x$ac_ct_CC" = x; then 3515fffe5102Smrg CC="" 3516fffe5102Smrg else 3517fffe5102Smrg case $cross_compiling:$ac_tool_warned in 3518fffe5102Smrgyes:) 3519051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3520051ceee6Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3521fffe5102Smrgac_tool_warned=yes ;; 3522fffe5102Smrgesac 3523fffe5102Smrg CC=$ac_ct_CC 3524fffe5102Smrg fi 352567f05d30Smrgfi 352667f05d30Smrg 352767f05d30Smrgfi 3528051ceee6Smrgif test -z "$CC"; then 3529051ceee6Smrg if test -n "$ac_tool_prefix"; then 3530051ceee6Smrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3531051ceee6Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2 3532051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3533051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 3534051ceee6Smrgif test ${ac_cv_prog_CC+y} 3535051ceee6Smrgthen : 3536051ceee6Smrg printf %s "(cached) " >&6 3537051ceee6Smrgelse $as_nop 3538051ceee6Smrg if test -n "$CC"; then 3539051ceee6Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 3540051ceee6Smrgelse 3541051ceee6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3542051ceee6Smrgfor as_dir in $PATH 3543051ceee6Smrgdo 3544051ceee6Smrg IFS=$as_save_IFS 3545051ceee6Smrg case $as_dir in #((( 3546051ceee6Smrg '') as_dir=./ ;; 3547051ceee6Smrg */) ;; 3548051ceee6Smrg *) as_dir=$as_dir/ ;; 3549051ceee6Smrg esac 3550051ceee6Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3551051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3552051ceee6Smrg ac_cv_prog_CC="${ac_tool_prefix}clang" 3553051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3554051ceee6Smrg break 2 3555051ceee6Smrg fi 3556051ceee6Smrgdone 3557051ceee6Smrg done 3558051ceee6SmrgIFS=$as_save_IFS 3559051ceee6Smrg 3560051ceee6Smrgfi 3561051ceee6Smrgfi 3562051ceee6SmrgCC=$ac_cv_prog_CC 3563051ceee6Smrgif test -n "$CC"; then 3564051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3565051ceee6Smrgprintf "%s\n" "$CC" >&6; } 3566051ceee6Smrgelse 3567051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3568051ceee6Smrgprintf "%s\n" "no" >&6; } 3569051ceee6Smrgfi 357067f05d30Smrg 357167f05d30Smrg 3572051ceee6Smrgfi 3573051ceee6Smrgif test -z "$ac_cv_prog_CC"; then 3574051ceee6Smrg ac_ct_CC=$CC 3575051ceee6Smrg # Extract the first word of "clang", so it can be a program name with args. 3576051ceee6Smrgset dummy clang; ac_word=$2 3577051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3578051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 3579051ceee6Smrgif test ${ac_cv_prog_ac_ct_CC+y} 3580051ceee6Smrgthen : 3581051ceee6Smrg printf %s "(cached) " >&6 3582051ceee6Smrgelse $as_nop 3583051ceee6Smrg if test -n "$ac_ct_CC"; then 3584051ceee6Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3585051ceee6Smrgelse 3586051ceee6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3587051ceee6Smrgfor as_dir in $PATH 3588051ceee6Smrgdo 3589051ceee6Smrg IFS=$as_save_IFS 3590051ceee6Smrg case $as_dir in #((( 3591051ceee6Smrg '') as_dir=./ ;; 3592051ceee6Smrg */) ;; 3593051ceee6Smrg *) as_dir=$as_dir/ ;; 3594051ceee6Smrg esac 3595051ceee6Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3596051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3597051ceee6Smrg ac_cv_prog_ac_ct_CC="clang" 3598051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3599051ceee6Smrg break 2 3600051ceee6Smrg fi 3601051ceee6Smrgdone 3602051ceee6Smrg done 3603051ceee6SmrgIFS=$as_save_IFS 3604051ceee6Smrg 3605051ceee6Smrgfi 3606051ceee6Smrgfi 3607051ceee6Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3608051ceee6Smrgif test -n "$ac_ct_CC"; then 3609051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3610051ceee6Smrgprintf "%s\n" "$ac_ct_CC" >&6; } 3611051ceee6Smrgelse 3612051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3613051ceee6Smrgprintf "%s\n" "no" >&6; } 3614051ceee6Smrgfi 3615051ceee6Smrg 3616051ceee6Smrg if test "x$ac_ct_CC" = x; then 3617051ceee6Smrg CC="" 3618051ceee6Smrg else 3619051ceee6Smrg case $cross_compiling:$ac_tool_warned in 3620051ceee6Smrgyes:) 3621051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3622051ceee6Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3623051ceee6Smrgac_tool_warned=yes ;; 3624051ceee6Smrgesac 3625051ceee6Smrg CC=$ac_ct_CC 3626051ceee6Smrg fi 3627051ceee6Smrgelse 3628051ceee6Smrg CC="$ac_cv_prog_CC" 3629051ceee6Smrgfi 3630051ceee6Smrg 3631051ceee6Smrgfi 3632051ceee6Smrg 3633051ceee6Smrg 3634051ceee6Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3635051ceee6Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3636fc51f767Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 3637fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; } 363867f05d30Smrg 363967f05d30Smrg# Provide some information about the compiler. 3640051ceee6Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3641fffe5102Smrgset X $ac_compile 3642fffe5102Smrgac_compiler=$2 3643051ceee6Smrgfor ac_option in --version -v -V -qversion -version; do 3644fffe5102Smrg { { ac_try="$ac_compiler $ac_option >&5" 3645fffe5102Smrgcase "(($ac_try" in 3646fffe5102Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3647fffe5102Smrg *) ac_try_echo=$ac_try;; 3648fffe5102Smrgesac 3649fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3650051ceee6Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3651fffe5102Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 365267f05d30Smrg ac_status=$? 3653fffe5102Smrg if test -s conftest.err; then 3654fffe5102Smrg sed '10a\ 3655fffe5102Smrg... rest of stderr output deleted ... 3656fffe5102Smrg 10q' conftest.err >conftest.er1 3657fffe5102Smrg cat conftest.er1 >&5 3658fffe5102Smrg fi 3659fffe5102Smrg rm -f conftest.er1 conftest.err 3660051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3661fffe5102Smrg test $ac_status = 0; } 3662fffe5102Smrgdone 366367f05d30Smrg 3664fffe5102Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 366567f05d30Smrg/* end confdefs.h. */ 366667f05d30Smrg 366767f05d30Smrgint 3668051ceee6Smrgmain (void) 366967f05d30Smrg{ 367067f05d30Smrg 367167f05d30Smrg ; 367267f05d30Smrg return 0; 367367f05d30Smrg} 367467f05d30Smrg_ACEOF 367567f05d30Smrgac_clean_files_save=$ac_clean_files 3676fffe5102Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 367767f05d30Smrg# Try to create an executable without -o first, disregard a.out. 367867f05d30Smrg# It will help us diagnose broken compilers, and finding out an intuition 367967f05d30Smrg# of exeext. 3680051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3681051ceee6Smrgprintf %s "checking whether the C compiler works... " >&6; } 3682051ceee6Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3683fffe5102Smrg 3684fffe5102Smrg# The possible output files: 3685fffe5102Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3686fffe5102Smrg 3687fffe5102Smrgac_rmfiles= 3688fffe5102Smrgfor ac_file in $ac_files 3689fffe5102Smrgdo 3690fffe5102Smrg case $ac_file in 3691fffe5102Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3692fffe5102Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3693fffe5102Smrg esac 3694fffe5102Smrgdone 3695fffe5102Smrgrm -f $ac_rmfiles 3696fffe5102Smrg 3697fffe5102Smrgif { { ac_try="$ac_link_default" 3698fffe5102Smrgcase "(($ac_try" in 3699fffe5102Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3700fffe5102Smrg *) ac_try_echo=$ac_try;; 3701fffe5102Smrgesac 3702fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3703051ceee6Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3704fffe5102Smrg (eval "$ac_link_default") 2>&5 370567f05d30Smrg ac_status=$? 3706051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3707051ceee6Smrg test $ac_status = 0; } 3708051ceee6Smrgthen : 3709fffe5102Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3710fffe5102Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3711fffe5102Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3712fffe5102Smrg# so that the user can short-circuit this test for compilers unknown to 3713fffe5102Smrg# Autoconf. 3714fffe5102Smrgfor ac_file in $ac_files '' 371567f05d30Smrgdo 371667f05d30Smrg test -f "$ac_file" || continue 371767f05d30Smrg case $ac_file in 3718fffe5102Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 371967f05d30Smrg ;; 372067f05d30Smrg [ab].out ) 372167f05d30Smrg # We found the default executable, but exeext='' is most 372267f05d30Smrg # certainly right. 372367f05d30Smrg break;; 372467f05d30Smrg *.* ) 3725051ceee6Smrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3726fffe5102Smrg then :; else 3727fffe5102Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3728fffe5102Smrg fi 3729fffe5102Smrg # We set ac_cv_exeext here because the later test for it is not 3730fffe5102Smrg # safe: cross compilers may not add the suffix if given an `-o' 3731fffe5102Smrg # argument, so we may need to know it at that point already. 3732fffe5102Smrg # Even if this section looks crufty: it has the advantage of 3733fffe5102Smrg # actually working. 373467f05d30Smrg break;; 373567f05d30Smrg * ) 373667f05d30Smrg break;; 373767f05d30Smrg esac 373867f05d30Smrgdone 3739fffe5102Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3740fffe5102Smrg 3741051ceee6Smrgelse $as_nop 3742fffe5102Smrg ac_file='' 3743fffe5102Smrgfi 3744051ceee6Smrgif test -z "$ac_file" 3745051ceee6Smrgthen : 3746051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3747051ceee6Smrgprintf "%s\n" "no" >&6; } 3748051ceee6Smrgprintf "%s\n" "$as_me: failed program was:" >&5 374967f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5 375067f05d30Smrg 3751051ceee6Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3752051ceee6Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3753fc51f767Smrgas_fn_error 77 "C compiler cannot create executables 3754fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; } 3755051ceee6Smrgelse $as_nop 3756051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3757051ceee6Smrgprintf "%s\n" "yes" >&6; } 3758051ceee6Smrgfi 3759051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3760051ceee6Smrgprintf %s "checking for C compiler default output file name... " >&6; } 3761051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3762051ceee6Smrgprintf "%s\n" "$ac_file" >&6; } 376367f05d30Smrgac_exeext=$ac_cv_exeext 376467f05d30Smrg 3765fffe5102Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 376667f05d30Smrgac_clean_files=$ac_clean_files_save 3767051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3768051ceee6Smrgprintf %s "checking for suffix of executables... " >&6; } 3769fffe5102Smrgif { { ac_try="$ac_link" 3770fffe5102Smrgcase "(($ac_try" in 3771fffe5102Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3772fffe5102Smrg *) ac_try_echo=$ac_try;; 3773fffe5102Smrgesac 3774fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3775051ceee6Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3776fffe5102Smrg (eval "$ac_link") 2>&5 377767f05d30Smrg ac_status=$? 3778051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3779051ceee6Smrg test $ac_status = 0; } 3780051ceee6Smrgthen : 378167f05d30Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 378267f05d30Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 378367f05d30Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 378467f05d30Smrg# `rm'. 378567f05d30Smrgfor ac_file in conftest.exe conftest conftest.*; do 378667f05d30Smrg test -f "$ac_file" || continue 378767f05d30Smrg case $ac_file in 3788fffe5102Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 378967f05d30Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 379067f05d30Smrg break;; 379167f05d30Smrg * ) break;; 379267f05d30Smrg esac 379367f05d30Smrgdone 3794051ceee6Smrgelse $as_nop 3795051ceee6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3796051ceee6Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3797fc51f767Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3798fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; } 379967f05d30Smrgfi 3800fffe5102Smrgrm -f conftest conftest$ac_cv_exeext 3801051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3802051ceee6Smrgprintf "%s\n" "$ac_cv_exeext" >&6; } 380367f05d30Smrg 380467f05d30Smrgrm -f conftest.$ac_ext 380567f05d30SmrgEXEEXT=$ac_cv_exeext 380667f05d30Smrgac_exeext=$EXEEXT 3807fffe5102Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3808fffe5102Smrg/* end confdefs.h. */ 3809fffe5102Smrg#include <stdio.h> 3810fffe5102Smrgint 3811051ceee6Smrgmain (void) 3812fffe5102Smrg{ 3813fffe5102SmrgFILE *f = fopen ("conftest.out", "w"); 3814fffe5102Smrg return ferror (f) || fclose (f) != 0; 3815fffe5102Smrg 3816fffe5102Smrg ; 3817fffe5102Smrg return 0; 3818fffe5102Smrg} 381967f05d30Smrg_ACEOF 3820fffe5102Smrgac_clean_files="$ac_clean_files conftest.out" 3821fffe5102Smrg# Check that the compiler produces executables we can run. If not, either 3822fffe5102Smrg# the compiler is broken, or we cross compile. 3823051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3824051ceee6Smrgprintf %s "checking whether we are cross compiling... " >&6; } 3825fffe5102Smrgif test "$cross_compiling" != yes; then 3826fffe5102Smrg { { ac_try="$ac_link" 3827fffe5102Smrgcase "(($ac_try" in 3828fffe5102Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3829fffe5102Smrg *) ac_try_echo=$ac_try;; 3830fffe5102Smrgesac 3831fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3832051ceee6Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3833fffe5102Smrg (eval "$ac_link") 2>&5 3834fffe5102Smrg ac_status=$? 3835051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3836fffe5102Smrg test $ac_status = 0; } 3837fffe5102Smrg if { ac_try='./conftest$ac_cv_exeext' 3838fffe5102Smrg { { case "(($ac_try" in 3839fffe5102Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3840fffe5102Smrg *) ac_try_echo=$ac_try;; 3841fffe5102Smrgesac 3842fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3843051ceee6Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3844fffe5102Smrg (eval "$ac_try") 2>&5 3845fffe5102Smrg ac_status=$? 3846051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3847fffe5102Smrg test $ac_status = 0; }; }; then 3848fffe5102Smrg cross_compiling=no 3849fffe5102Smrg else 3850fffe5102Smrg if test "$cross_compiling" = maybe; then 3851fffe5102Smrg cross_compiling=yes 3852fffe5102Smrg else 3853051ceee6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3854051ceee6Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3855051ceee6Smrgas_fn_error 77 "cannot run C compiled programs. 3856fffe5102SmrgIf you meant to cross compile, use \`--host'. 3857fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; } 3858fffe5102Smrg fi 3859fffe5102Smrg fi 3860fffe5102Smrgfi 3861051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3862051ceee6Smrgprintf "%s\n" "$cross_compiling" >&6; } 3863fffe5102Smrg 3864fffe5102Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3865fffe5102Smrgac_clean_files=$ac_clean_files_save 3866051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3867051ceee6Smrgprintf %s "checking for suffix of object files... " >&6; } 3868051ceee6Smrgif test ${ac_cv_objext+y} 3869051ceee6Smrgthen : 3870051ceee6Smrg printf %s "(cached) " >&6 3871051ceee6Smrgelse $as_nop 3872fffe5102Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 387367f05d30Smrg/* end confdefs.h. */ 387467f05d30Smrg 387567f05d30Smrgint 3876051ceee6Smrgmain (void) 387767f05d30Smrg{ 387867f05d30Smrg 387967f05d30Smrg ; 388067f05d30Smrg return 0; 388167f05d30Smrg} 388267f05d30Smrg_ACEOF 388367f05d30Smrgrm -f conftest.o conftest.obj 3884fffe5102Smrgif { { ac_try="$ac_compile" 3885fffe5102Smrgcase "(($ac_try" in 3886fffe5102Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3887fffe5102Smrg *) ac_try_echo=$ac_try;; 3888fffe5102Smrgesac 3889fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3890051ceee6Smrgprintf "%s\n" "$ac_try_echo"; } >&5 3891fffe5102Smrg (eval "$ac_compile") 2>&5 389267f05d30Smrg ac_status=$? 3893051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3894051ceee6Smrg test $ac_status = 0; } 3895051ceee6Smrgthen : 3896fffe5102Smrg for ac_file in conftest.o conftest.obj conftest.*; do 3897fffe5102Smrg test -f "$ac_file" || continue; 389867f05d30Smrg case $ac_file in 3899fffe5102Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 390067f05d30Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 390167f05d30Smrg break;; 390267f05d30Smrg esac 390367f05d30Smrgdone 3904051ceee6Smrgelse $as_nop 3905051ceee6Smrg printf "%s\n" "$as_me: failed program was:" >&5 390667f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5 390767f05d30Smrg 3908051ceee6Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3909051ceee6Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3910fc51f767Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3911fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; } 391267f05d30Smrgfi 391367f05d30Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 391467f05d30Smrgfi 3915051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3916051ceee6Smrgprintf "%s\n" "$ac_cv_objext" >&6; } 391767f05d30SmrgOBJEXT=$ac_cv_objext 391867f05d30Smrgac_objext=$OBJEXT 3919051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3920051ceee6Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 3921051ceee6Smrgif test ${ac_cv_c_compiler_gnu+y} 3922051ceee6Smrgthen : 3923051ceee6Smrg printf %s "(cached) " >&6 3924051ceee6Smrgelse $as_nop 3925fffe5102Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 392667f05d30Smrg/* end confdefs.h. */ 392767f05d30Smrg 392867f05d30Smrgint 3929051ceee6Smrgmain (void) 393067f05d30Smrg{ 393167f05d30Smrg#ifndef __GNUC__ 393267f05d30Smrg choke me 393367f05d30Smrg#endif 393467f05d30Smrg 393567f05d30Smrg ; 393667f05d30Smrg return 0; 393767f05d30Smrg} 393867f05d30Smrg_ACEOF 3939051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 3940051ceee6Smrgthen : 394167f05d30Smrg ac_compiler_gnu=yes 3942051ceee6Smrgelse $as_nop 3943fffe5102Smrg ac_compiler_gnu=no 394467f05d30Smrgfi 3945051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 394667f05d30Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 394767f05d30Smrg 394867f05d30Smrgfi 3949051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3950051ceee6Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3951051ceee6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3952051ceee6Smrg 3953fffe5102Smrgif test $ac_compiler_gnu = yes; then 3954fffe5102Smrg GCC=yes 3955fffe5102Smrgelse 3956fffe5102Smrg GCC= 3957fffe5102Smrgfi 3958051ceee6Smrgac_test_CFLAGS=${CFLAGS+y} 395967f05d30Smrgac_save_CFLAGS=$CFLAGS 3960051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3961051ceee6Smrgprintf %s "checking whether $CC accepts -g... " >&6; } 3962051ceee6Smrgif test ${ac_cv_prog_cc_g+y} 3963051ceee6Smrgthen : 3964051ceee6Smrg printf %s "(cached) " >&6 3965051ceee6Smrgelse $as_nop 3966fffe5102Smrg ac_save_c_werror_flag=$ac_c_werror_flag 3967fffe5102Smrg ac_c_werror_flag=yes 3968fffe5102Smrg ac_cv_prog_cc_g=no 3969fffe5102Smrg CFLAGS="-g" 3970fffe5102Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 397167f05d30Smrg/* end confdefs.h. */ 397267f05d30Smrg 397367f05d30Smrgint 3974051ceee6Smrgmain (void) 397567f05d30Smrg{ 397667f05d30Smrg 397767f05d30Smrg ; 397867f05d30Smrg return 0; 397967f05d30Smrg} 398067f05d30Smrg_ACEOF 3981051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 3982051ceee6Smrgthen : 398367f05d30Smrg ac_cv_prog_cc_g=yes 3984051ceee6Smrgelse $as_nop 3985fffe5102Smrg CFLAGS="" 3986fffe5102Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3987fffe5102Smrg/* end confdefs.h. */ 3988fffe5102Smrg 3989fffe5102Smrgint 3990051ceee6Smrgmain (void) 3991fffe5102Smrg{ 3992fffe5102Smrg 3993fffe5102Smrg ; 3994fffe5102Smrg return 0; 3995fffe5102Smrg} 3996fffe5102Smrg_ACEOF 3997051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 3998051ceee6Smrgthen : 3999fffe5102Smrg 4000051ceee6Smrgelse $as_nop 4001fffe5102Smrg ac_c_werror_flag=$ac_save_c_werror_flag 4002fffe5102Smrg CFLAGS="-g" 4003fffe5102Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4004fffe5102Smrg/* end confdefs.h. */ 4005fffe5102Smrg 4006fffe5102Smrgint 4007051ceee6Smrgmain (void) 4008fffe5102Smrg{ 400967f05d30Smrg 4010fffe5102Smrg ; 4011fffe5102Smrg return 0; 4012fffe5102Smrg} 4013fffe5102Smrg_ACEOF 4014051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 4015051ceee6Smrgthen : 4016fffe5102Smrg ac_cv_prog_cc_g=yes 4017fffe5102Smrgfi 4018051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 401967f05d30Smrgfi 4020051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 402167f05d30Smrgfi 4022051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4023fffe5102Smrg ac_c_werror_flag=$ac_save_c_werror_flag 4024fffe5102Smrgfi 4025051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4026051ceee6Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4027051ceee6Smrgif test $ac_test_CFLAGS; then 402867f05d30Smrg CFLAGS=$ac_save_CFLAGS 402967f05d30Smrgelif test $ac_cv_prog_cc_g = yes; then 403067f05d30Smrg if test "$GCC" = yes; then 403167f05d30Smrg CFLAGS="-g -O2" 403267f05d30Smrg else 403367f05d30Smrg CFLAGS="-g" 403467f05d30Smrg fi 403567f05d30Smrgelse 403667f05d30Smrg if test "$GCC" = yes; then 403767f05d30Smrg CFLAGS="-O2" 403867f05d30Smrg else 403967f05d30Smrg CFLAGS= 404067f05d30Smrg fi 404167f05d30Smrgfi 4042051ceee6Smrgac_prog_cc_stdc=no 4043051ceee6Smrgif test x$ac_prog_cc_stdc = xno 4044051ceee6Smrgthen : 4045051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4046051ceee6Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 4047051ceee6Smrgif test ${ac_cv_prog_cc_c11+y} 4048051ceee6Smrgthen : 4049051ceee6Smrg printf %s "(cached) " >&6 4050051ceee6Smrgelse $as_nop 4051051ceee6Smrg ac_cv_prog_cc_c11=no 405267f05d30Smrgac_save_CC=$CC 4053fffe5102Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 405467f05d30Smrg/* end confdefs.h. */ 4055051ceee6Smrg$ac_c_conftest_c11_program 4056051ceee6Smrg_ACEOF 4057051ceee6Smrgfor ac_arg in '' -std=gnu11 4058051ceee6Smrgdo 4059051ceee6Smrg CC="$ac_save_CC $ac_arg" 4060051ceee6Smrg if ac_fn_c_try_compile "$LINENO" 4061051ceee6Smrgthen : 4062051ceee6Smrg ac_cv_prog_cc_c11=$ac_arg 4063051ceee6Smrgfi 4064051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4065051ceee6Smrg test "x$ac_cv_prog_cc_c11" != "xno" && break 4066051ceee6Smrgdone 4067051ceee6Smrgrm -f conftest.$ac_ext 4068051ceee6SmrgCC=$ac_save_CC 4069051ceee6Smrgfi 407067f05d30Smrg 4071051ceee6Smrgif test "x$ac_cv_prog_cc_c11" = xno 4072051ceee6Smrgthen : 4073051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4074051ceee6Smrgprintf "%s\n" "unsupported" >&6; } 4075051ceee6Smrgelse $as_nop 4076051ceee6Smrg if test "x$ac_cv_prog_cc_c11" = x 4077051ceee6Smrgthen : 4078051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4079051ceee6Smrgprintf "%s\n" "none needed" >&6; } 4080051ceee6Smrgelse $as_nop 4081051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4082051ceee6Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4083051ceee6Smrg CC="$CC $ac_cv_prog_cc_c11" 4084051ceee6Smrgfi 4085051ceee6Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4086051ceee6Smrg ac_prog_cc_stdc=c11 4087051ceee6Smrgfi 4088051ceee6Smrgfi 4089051ceee6Smrgif test x$ac_prog_cc_stdc = xno 4090051ceee6Smrgthen : 4091051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4092051ceee6Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 4093051ceee6Smrgif test ${ac_cv_prog_cc_c99+y} 4094051ceee6Smrgthen : 4095051ceee6Smrg printf %s "(cached) " >&6 4096051ceee6Smrgelse $as_nop 4097051ceee6Smrg ac_cv_prog_cc_c99=no 4098051ceee6Smrgac_save_CC=$CC 4099051ceee6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4100051ceee6Smrg/* end confdefs.h. */ 4101051ceee6Smrg$ac_c_conftest_c99_program 4102051ceee6Smrg_ACEOF 4103051ceee6Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4104051ceee6Smrgdo 4105051ceee6Smrg CC="$ac_save_CC $ac_arg" 4106051ceee6Smrg if ac_fn_c_try_compile "$LINENO" 4107051ceee6Smrgthen : 4108051ceee6Smrg ac_cv_prog_cc_c99=$ac_arg 4109051ceee6Smrgfi 4110051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4111051ceee6Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 4112051ceee6Smrgdone 4113051ceee6Smrgrm -f conftest.$ac_ext 4114051ceee6SmrgCC=$ac_save_CC 4115051ceee6Smrgfi 4116fffe5102Smrg 4117051ceee6Smrgif test "x$ac_cv_prog_cc_c99" = xno 4118051ceee6Smrgthen : 4119051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4120051ceee6Smrgprintf "%s\n" "unsupported" >&6; } 4121051ceee6Smrgelse $as_nop 4122051ceee6Smrg if test "x$ac_cv_prog_cc_c99" = x 4123051ceee6Smrgthen : 4124051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4125051ceee6Smrgprintf "%s\n" "none needed" >&6; } 4126051ceee6Smrgelse $as_nop 4127051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4128051ceee6Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4129051ceee6Smrg CC="$CC $ac_cv_prog_cc_c99" 4130051ceee6Smrgfi 4131051ceee6Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4132051ceee6Smrg ac_prog_cc_stdc=c99 4133051ceee6Smrgfi 4134051ceee6Smrgfi 4135051ceee6Smrgif test x$ac_prog_cc_stdc = xno 4136051ceee6Smrgthen : 4137051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4138051ceee6Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 4139051ceee6Smrgif test ${ac_cv_prog_cc_c89+y} 4140051ceee6Smrgthen : 4141051ceee6Smrg printf %s "(cached) " >&6 4142051ceee6Smrgelse $as_nop 4143051ceee6Smrg ac_cv_prog_cc_c89=no 4144051ceee6Smrgac_save_CC=$CC 4145051ceee6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146051ceee6Smrg/* end confdefs.h. */ 4147051ceee6Smrg$ac_c_conftest_c89_program 414867f05d30Smrg_ACEOF 4149051ceee6Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 415067f05d30Smrgdo 415167f05d30Smrg CC="$ac_save_CC $ac_arg" 4152051ceee6Smrg if ac_fn_c_try_compile "$LINENO" 4153051ceee6Smrgthen : 4154fffe5102Smrg ac_cv_prog_cc_c89=$ac_arg 415567f05d30Smrgfi 4156051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam 4157fffe5102Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 415867f05d30Smrgdone 4159fffe5102Smrgrm -f conftest.$ac_ext 416067f05d30SmrgCC=$ac_save_CC 416167f05d30Smrgfi 416267f05d30Smrg 4163051ceee6Smrgif test "x$ac_cv_prog_cc_c89" = xno 4164051ceee6Smrgthen : 4165051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4166051ceee6Smrgprintf "%s\n" "unsupported" >&6; } 4167051ceee6Smrgelse $as_nop 4168051ceee6Smrg if test "x$ac_cv_prog_cc_c89" = x 4169051ceee6Smrgthen : 4170051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4171051ceee6Smrgprintf "%s\n" "none needed" >&6; } 4172051ceee6Smrgelse $as_nop 4173051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4174051ceee6Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4175051ceee6Smrg CC="$CC $ac_cv_prog_cc_c89" 4176051ceee6Smrgfi 4177051ceee6Smrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4178051ceee6Smrg ac_prog_cc_stdc=c89 4179051ceee6Smrgfi 418067f05d30Smrgfi 418167f05d30Smrg 418267f05d30Smrgac_ext=c 418367f05d30Smrgac_cpp='$CPP $CPPFLAGS' 418467f05d30Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 418567f05d30Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 418667f05d30Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 418767f05d30Smrg 4188051ceee6Smrg 4189051ceee6Smrg ac_ext=c 4190e90eff46Smrgac_cpp='$CPP $CPPFLAGS' 4191e90eff46Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4192e90eff46Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4193e90eff46Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4194051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4195051ceee6Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 4196051ceee6Smrgif test ${am_cv_prog_cc_c_o+y} 4197051ceee6Smrgthen : 4198051ceee6Smrg printf %s "(cached) " >&6 4199051ceee6Smrgelse $as_nop 4200e90eff46Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4201e90eff46Smrg/* end confdefs.h. */ 4202e90eff46Smrg 4203e90eff46Smrgint 4204051ceee6Smrgmain (void) 4205e90eff46Smrg{ 4206e90eff46Smrg 4207e90eff46Smrg ; 4208e90eff46Smrg return 0; 4209e90eff46Smrg} 4210e90eff46Smrg_ACEOF 4211e90eff46Smrg # Make sure it works both with $CC and with simple cc. 4212e90eff46Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 4213e90eff46Smrg # compilers refuse to overwrite an existing .o file with -o, 4214e90eff46Smrg # though they will create one. 4215e90eff46Smrg am_cv_prog_cc_c_o=yes 4216e90eff46Smrg for am_i in 1 2; do 4217e90eff46Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4218e90eff46Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4219e90eff46Smrg ac_status=$? 4220e90eff46Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 4221e90eff46Smrg (exit $ac_status); } \ 4222e90eff46Smrg && test -f conftest2.$ac_objext; then 4223e90eff46Smrg : OK 4224e90eff46Smrg else 4225e90eff46Smrg am_cv_prog_cc_c_o=no 4226e90eff46Smrg break 4227e90eff46Smrg fi 4228e90eff46Smrg done 4229e90eff46Smrg rm -f core conftest* 4230e90eff46Smrg unset am_i 4231e90eff46Smrgfi 4232051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4233051ceee6Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4234e90eff46Smrgif test "$am_cv_prog_cc_c_o" != yes; then 4235e90eff46Smrg # Losing compiler, so override with the script. 4236e90eff46Smrg # FIXME: It is wrong to rewrite CC. 4237e90eff46Smrg # But if we don't then we get into trouble of one sort or another. 4238e90eff46Smrg # A longer-term fix would be to have automake use am__CC in this case, 4239e90eff46Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4240e90eff46Smrg CC="$am_aux_dir/compile $CC" 4241e90eff46Smrgfi 4242e90eff46Smrgac_ext=c 4243e90eff46Smrgac_cpp='$CPP $CPPFLAGS' 4244e90eff46Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4245e90eff46Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4246e90eff46Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4247e90eff46Smrg 4248e90eff46Smrg 424967f05d30Smrgdepcc="$CC" am_compiler_list= 425067f05d30Smrg 4251051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4252051ceee6Smrgprintf %s "checking dependency style of $depcc... " >&6; } 4253051ceee6Smrgif test ${am_cv_CC_dependencies_compiler_type+y} 4254051ceee6Smrgthen : 4255051ceee6Smrg printf %s "(cached) " >&6 4256051ceee6Smrgelse $as_nop 425767f05d30Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 425867f05d30Smrg # We make a subdir and do the tests there. Otherwise we can end up 425967f05d30Smrg # making bogus files that we don't know about and never remove. For 426067f05d30Smrg # instance it was reported that on HP-UX the gcc test will end up 4261e90eff46Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 4262e90eff46Smrg # in D". 42636dbd43aaSmrg rm -rf conftest.dir 426467f05d30Smrg mkdir conftest.dir 426567f05d30Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 426667f05d30Smrg # using a relative directory. 426767f05d30Smrg cp "$am_depcomp" conftest.dir 426867f05d30Smrg cd conftest.dir 426967f05d30Smrg # We will build objects and dependencies in a subdirectory because 427067f05d30Smrg # it helps to detect inapplicable dependency modes. For instance 427167f05d30Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 427267f05d30Smrg # side effect of compilation, but ICC will put the dependencies in 427367f05d30Smrg # the current directory while Tru64 will put them in the object 427467f05d30Smrg # directory. 427567f05d30Smrg mkdir sub 427667f05d30Smrg 427767f05d30Smrg am_cv_CC_dependencies_compiler_type=none 427867f05d30Smrg if test "$am_compiler_list" = ""; then 427967f05d30Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 428067f05d30Smrg fi 4281fffe5102Smrg am__universal=false 4282fffe5102Smrg case " $depcc " in #( 4283fffe5102Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 4284fffe5102Smrg esac 4285fffe5102Smrg 428667f05d30Smrg for depmode in $am_compiler_list; do 428767f05d30Smrg # Setup a source with many dependencies, because some compilers 428867f05d30Smrg # like to wrap large dependency lists on column 80 (with \), and 428967f05d30Smrg # we should not choose a depcomp mode which is confused by this. 429067f05d30Smrg # 429167f05d30Smrg # We need to recreate these files for each test, as the compiler may 429267f05d30Smrg # overwrite some of them when testing with obscure command lines. 429367f05d30Smrg # This happens at least with the AIX C compiler. 429467f05d30Smrg : > sub/conftest.c 429567f05d30Smrg for i in 1 2 3 4 5 6; do 429667f05d30Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 4297e90eff46Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4298e90eff46Smrg # Solaris 10 /bin/sh. 4299e90eff46Smrg echo '/* dummy */' > sub/conftst$i.h 430067f05d30Smrg done 430167f05d30Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 430267f05d30Smrg 4303e90eff46Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 4304fffe5102Smrg # mode. It turns out that the SunPro C++ compiler does not properly 4305e90eff46Smrg # handle '-M -o', and we need to detect this. Also, some Intel 4306e90eff46Smrg # versions had trouble with output in subdirs. 4307fffe5102Smrg am__obj=sub/conftest.${OBJEXT-o} 4308fffe5102Smrg am__minus_obj="-o $am__obj" 430967f05d30Smrg case $depmode in 4310fffe5102Smrg gcc) 4311fffe5102Smrg # This depmode causes a compiler race in universal mode. 4312fffe5102Smrg test "$am__universal" = false || continue 4313fffe5102Smrg ;; 431467f05d30Smrg nosideeffect) 4315e90eff46Smrg # After this tag, mechanisms are not by side-effect, so they'll 4316e90eff46Smrg # only be used when explicitly requested. 431767f05d30Smrg if test "x$enable_dependency_tracking" = xyes; then 431867f05d30Smrg continue 431967f05d30Smrg else 432067f05d30Smrg break 432167f05d30Smrg fi 432267f05d30Smrg ;; 43236dbd43aaSmrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4324e90eff46Smrg # This compiler won't grok '-c -o', but also, the minuso test has 4325fffe5102Smrg # not run yet. These depmodes are late enough in the game, and 4326fffe5102Smrg # so weak that their functioning should not be impacted. 4327fffe5102Smrg am__obj=conftest.${OBJEXT-o} 4328fffe5102Smrg am__minus_obj= 4329fffe5102Smrg ;; 433067f05d30Smrg none) break ;; 433167f05d30Smrg esac 433267f05d30Smrg if depmode=$depmode \ 4333fffe5102Smrg source=sub/conftest.c object=$am__obj \ 433467f05d30Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4335051ceee6Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4336051ceee6Smrg >/dev/null 2>conftest.err && 4337051ceee6Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4338051ceee6Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4339051ceee6Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4340051ceee6Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4341051ceee6Smrg # icc doesn't choke on unknown options, it will just issue warnings 4342051ceee6Smrg # or remarks (even with -Werror). So we grep stderr for any message 4343051ceee6Smrg # that says an option was ignored or not supported. 4344051ceee6Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 4345051ceee6Smrg # icc: Command line warning: ignoring option '-M'; no argument required 4346051ceee6Smrg # The diagnosis changed in icc 8.0: 4347051ceee6Smrg # icc: Command line remark: option '-MP' not supported 4348051ceee6Smrg if (grep 'ignoring option' conftest.err || 4349051ceee6Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4350051ceee6Smrg am_cv_CC_dependencies_compiler_type=$depmode 4351051ceee6Smrg break 4352051ceee6Smrg fi 4353fffe5102Smrg fi 4354fffe5102Smrg done 435567f05d30Smrg 4356051ceee6Smrg cd .. 4357051ceee6Smrg rm -rf conftest.dir 435867f05d30Smrgelse 4359051ceee6Smrg am_cv_CC_dependencies_compiler_type=none 436067f05d30Smrgfi 436167f05d30Smrg 436267f05d30Smrgfi 4363051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4364051ceee6Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4365051ceee6SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4366fffe5102Smrg 4367051ceee6Smrg if 4368051ceee6Smrg test "x$enable_dependency_tracking" != xno \ 4369051ceee6Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4370051ceee6Smrg am__fastdepCC_TRUE= 4371051ceee6Smrg am__fastdepCC_FALSE='#' 4372fffe5102Smrgelse 4373051ceee6Smrg am__fastdepCC_TRUE='#' 4374051ceee6Smrg am__fastdepCC_FALSE= 4375fffe5102Smrgfi 4376fffe5102Smrg 4377fffe5102Smrg 4378fffe5102Smrg 4379051ceee6Smrg 4380051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4381051ceee6Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4382051ceee6Smrgif test ${ac_cv_c_undeclared_builtin_options+y} 4383051ceee6Smrgthen : 4384051ceee6Smrg printf %s "(cached) " >&6 4385051ceee6Smrgelse $as_nop 4386051ceee6Smrg ac_save_CFLAGS=$CFLAGS 4387051ceee6Smrg ac_cv_c_undeclared_builtin_options='cannot detect' 4388051ceee6Smrg for ac_arg in '' -fno-builtin; do 4389051ceee6Smrg CFLAGS="$ac_save_CFLAGS $ac_arg" 4390051ceee6Smrg # This test program should *not* compile successfully. 4391051ceee6Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4392fffe5102Smrg/* end confdefs.h. */ 4393fffe5102Smrg 4394fffe5102Smrgint 4395051ceee6Smrgmain (void) 4396fffe5102Smrg{ 4397051ceee6Smrg(void) strchr; 4398fffe5102Smrg ; 4399fffe5102Smrg return 0; 4400fffe5102Smrg} 4401fffe5102Smrg_ACEOF 4402051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 4403051ceee6Smrgthen : 4404fffe5102Smrg 4405051ceee6Smrgelse $as_nop 4406051ceee6Smrg # This test program should compile successfully. 4407051ceee6Smrg # No library function is consistently available on 4408051ceee6Smrg # freestanding implementations, so test against a dummy 4409051ceee6Smrg # declaration. Include always-available headers on the 4410051ceee6Smrg # off chance that they somehow elicit warnings. 4411051ceee6Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4412fffe5102Smrg/* end confdefs.h. */ 4413051ceee6Smrg#include <float.h> 4414051ceee6Smrg#include <limits.h> 4415051ceee6Smrg#include <stdarg.h> 4416051ceee6Smrg#include <stddef.h> 4417051ceee6Smrgextern void ac_decl (int, char *); 4418fffe5102Smrg 4419fffe5102Smrgint 4420051ceee6Smrgmain (void) 4421fffe5102Smrg{ 4422051ceee6Smrg(void) ac_decl (0, (char *) 0); 4423051ceee6Smrg (void) ac_decl; 4424051ceee6Smrg 4425051ceee6Smrg ; 4426fffe5102Smrg return 0; 4427fffe5102Smrg} 4428fffe5102Smrg_ACEOF 4429051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 4430051ceee6Smrgthen : 4431051ceee6Smrg if test x"$ac_arg" = x 4432051ceee6Smrgthen : 4433051ceee6Smrg ac_cv_c_undeclared_builtin_options='none needed' 4434051ceee6Smrgelse $as_nop 4435051ceee6Smrg ac_cv_c_undeclared_builtin_options=$ac_arg 4436fffe5102Smrgfi 4437051ceee6Smrg break 4438fffe5102Smrgfi 4439051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4440fffe5102Smrgfi 4441051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4442051ceee6Smrg done 4443051ceee6Smrg CFLAGS=$ac_save_CFLAGS 4444051ceee6Smrg 4445051ceee6Smrgfi 4446051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4447051ceee6Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4448051ceee6Smrg case $ac_cv_c_undeclared_builtin_options in #( 4449051ceee6Smrg 'cannot detect') : 4450051ceee6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4451051ceee6Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4452051ceee6Smrgas_fn_error $? "cannot make $CC report undeclared builtins 4453051ceee6SmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #( 4454051ceee6Smrg 'none needed') : 4455051ceee6Smrg ac_c_undeclared_builtin_options='' ;; #( 4456051ceee6Smrg *) : 4457051ceee6Smrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4458051ceee6Smrgesac 4459051ceee6Smrg 4460051ceee6Smrgac_header= ac_cache= 4461051ceee6Smrgfor ac_item in $ac_header_c_list 4462051ceee6Smrgdo 4463051ceee6Smrg if test $ac_cache; then 4464051ceee6Smrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4465051ceee6Smrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4466051ceee6Smrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 4467051ceee6Smrg fi 4468051ceee6Smrg ac_header= ac_cache= 4469051ceee6Smrg elif test $ac_header; then 4470051ceee6Smrg ac_cache=$ac_item 4471051ceee6Smrg else 4472051ceee6Smrg ac_header=$ac_item 4473051ceee6Smrg fi 4474051ceee6Smrgdone 4475fffe5102Smrg 4476fffe5102Smrg 4477fffe5102Smrg 4478fffe5102Smrg 4479fffe5102Smrg 4480fffe5102Smrg 4481fffe5102Smrg 4482fc51f767Smrg 4483051ceee6Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4484051ceee6Smrgthen : 4485051ceee6Smrg 4486051ceee6Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4487051ceee6Smrg 4488051ceee6Smrgfi 4489051ceee6Smrg 4490fc51f767Smrg 44916dbd43aaSmrg 44926dbd43aaSmrg 4493051ceee6Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4494051ceee6Smrgif test "x$ac_cv_have_decl___clang__" = xyes 4495051ceee6Smrgthen : 44966dbd43aaSmrg CLANGCC="yes" 4497051ceee6Smrgelse $as_nop 44986dbd43aaSmrg CLANGCC="no" 44996dbd43aaSmrgfi 4500051ceee6Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4501051ceee6Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4502051ceee6Smrgthen : 45036dbd43aaSmrg INTELCC="yes" 4504051ceee6Smrgelse $as_nop 45056dbd43aaSmrg INTELCC="no" 45066dbd43aaSmrgfi 4507051ceee6Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4508051ceee6Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4509051ceee6Smrgthen : 45106dbd43aaSmrg SUNCC="yes" 4511051ceee6Smrgelse $as_nop 45126dbd43aaSmrg SUNCC="no" 45136dbd43aaSmrgfi 45146dbd43aaSmrg 45156dbd43aaSmrg 45166dbd43aaSmrg 45176dbd43aaSmrg 4518e90eff46Smrg 4519e90eff46Smrg 4520e90eff46Smrg 4521e90eff46Smrg 4522fc51f767Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4523fc51f767Smrg if test -n "$ac_tool_prefix"; then 4524fc51f767Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4525fc51f767Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4526051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4527051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 4528051ceee6Smrgif test ${ac_cv_path_PKG_CONFIG+y} 4529051ceee6Smrgthen : 4530051ceee6Smrg printf %s "(cached) " >&6 4531051ceee6Smrgelse $as_nop 4532fc51f767Smrg case $PKG_CONFIG in 4533fc51f767Smrg [\\/]* | ?:[\\/]*) 4534fc51f767Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4535fc51f767Smrg ;; 4536fc51f767Smrg *) 4537fc51f767Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4538fc51f767Smrgfor as_dir in $PATH 4539fc51f767Smrgdo 4540fc51f767Smrg IFS=$as_save_IFS 4541051ceee6Smrg case $as_dir in #((( 4542051ceee6Smrg '') as_dir=./ ;; 4543051ceee6Smrg */) ;; 4544051ceee6Smrg *) as_dir=$as_dir/ ;; 4545051ceee6Smrg esac 4546fc51f767Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4547051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4548051ceee6Smrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4549051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4550fc51f767Smrg break 2 4551fc51f767Smrg fi 4552fc51f767Smrgdone 4553fc51f767Smrg done 4554fc51f767SmrgIFS=$as_save_IFS 4555fffe5102Smrg 4556fffe5102Smrg ;; 4557fffe5102Smrgesac 4558fffe5102Smrgfi 4559fffe5102SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4560fffe5102Smrgif test -n "$PKG_CONFIG"; then 4561051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4562051ceee6Smrgprintf "%s\n" "$PKG_CONFIG" >&6; } 4563fffe5102Smrgelse 4564051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4565051ceee6Smrgprintf "%s\n" "no" >&6; } 4566fffe5102Smrgfi 4567fffe5102Smrg 4568fffe5102Smrg 4569fffe5102Smrgfi 4570fffe5102Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4571fffe5102Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4572fffe5102Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 4573fffe5102Smrgset dummy pkg-config; ac_word=$2 4574051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4575051ceee6Smrgprintf %s "checking for $ac_word... " >&6; } 4576051ceee6Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4577051ceee6Smrgthen : 4578051ceee6Smrg printf %s "(cached) " >&6 4579051ceee6Smrgelse $as_nop 4580fffe5102Smrg case $ac_pt_PKG_CONFIG in 4581fffe5102Smrg [\\/]* | ?:[\\/]*) 4582fffe5102Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4583fffe5102Smrg ;; 4584fffe5102Smrg *) 4585fffe5102Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4586fffe5102Smrgfor as_dir in $PATH 4587fffe5102Smrgdo 4588fffe5102Smrg IFS=$as_save_IFS 4589051ceee6Smrg case $as_dir in #((( 4590051ceee6Smrg '') as_dir=./ ;; 4591051ceee6Smrg */) ;; 4592051ceee6Smrg *) as_dir=$as_dir/ ;; 4593051ceee6Smrg esac 4594fffe5102Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4595051ceee6Smrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4596051ceee6Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4597051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4598fffe5102Smrg break 2 4599fffe5102Smrg fi 4600fffe5102Smrgdone 4601fffe5102Smrg done 4602fffe5102SmrgIFS=$as_save_IFS 460367f05d30Smrg 4604fffe5102Smrg ;; 4605fffe5102Smrgesac 4606fffe5102Smrgfi 4607fffe5102Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 460867f05d30Smrgif test -n "$ac_pt_PKG_CONFIG"; then 4609051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4610051ceee6Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4611fffe5102Smrgelse 4612051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4613051ceee6Smrgprintf "%s\n" "no" >&6; } 4614fffe5102Smrgfi 4615fffe5102Smrg 4616fffe5102Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 4617fffe5102Smrg PKG_CONFIG="" 4618fffe5102Smrg else 4619fffe5102Smrg case $cross_compiling:$ac_tool_warned in 4620fffe5102Smrgyes:) 4621051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4622051ceee6Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4623fffe5102Smrgac_tool_warned=yes ;; 4624fffe5102Smrgesac 4625fffe5102Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4626fffe5102Smrg fi 4627fffe5102Smrgelse 4628fffe5102Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4629fffe5102Smrgfi 4630fffe5102Smrg 4631fffe5102Smrgfi 4632fffe5102Smrgif test -n "$PKG_CONFIG"; then 4633fffe5102Smrg _pkg_min_version=0.9.0 4634051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4635051ceee6Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4636fffe5102Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4637051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4638051ceee6Smrgprintf "%s\n" "yes" >&6; } 4639fffe5102Smrg else 4640051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4641051ceee6Smrgprintf "%s\n" "no" >&6; } 4642fffe5102Smrg PKG_CONFIG="" 4643fffe5102Smrg fi 4644fffe5102Smrgfi 4645fffe5102Smrg 4646051ceee6Smrg 4647051ceee6Smrg # Make sure we can run config.sub. 4648051ceee6Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4649051ceee6Smrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4650051ceee6Smrg 4651051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4652051ceee6Smrgprintf %s "checking build system type... " >&6; } 4653051ceee6Smrgif test ${ac_cv_build+y} 4654051ceee6Smrgthen : 4655051ceee6Smrg printf %s "(cached) " >&6 4656051ceee6Smrgelse $as_nop 4657fffe5102Smrg ac_build_alias=$build_alias 4658fffe5102Smrgtest "x$ac_build_alias" = x && 4659051ceee6Smrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4660fffe5102Smrgtest "x$ac_build_alias" = x && 4661fc51f767Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4662051ceee6Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4663051ceee6Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4664fffe5102Smrg 4665fffe5102Smrgfi 4666051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4667051ceee6Smrgprintf "%s\n" "$ac_cv_build" >&6; } 4668fffe5102Smrgcase $ac_cv_build in 4669fffe5102Smrg*-*-*) ;; 4670fc51f767Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4671fffe5102Smrgesac 4672fffe5102Smrgbuild=$ac_cv_build 4673fffe5102Smrgac_save_IFS=$IFS; IFS='-' 4674fffe5102Smrgset x $ac_cv_build 4675fffe5102Smrgshift 4676fffe5102Smrgbuild_cpu=$1 4677fffe5102Smrgbuild_vendor=$2 4678fffe5102Smrgshift; shift 4679fffe5102Smrg# Remember, the first character of IFS is used to create $*, 4680fffe5102Smrg# except with old shells: 4681fffe5102Smrgbuild_os=$* 4682fffe5102SmrgIFS=$ac_save_IFS 4683fffe5102Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4684fffe5102Smrg 4685fffe5102Smrg 4686051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4687051ceee6Smrgprintf %s "checking host system type... " >&6; } 4688051ceee6Smrgif test ${ac_cv_host+y} 4689051ceee6Smrgthen : 4690051ceee6Smrg printf %s "(cached) " >&6 4691051ceee6Smrgelse $as_nop 4692fffe5102Smrg if test "x$host_alias" = x; then 4693fffe5102Smrg ac_cv_host=$ac_cv_build 4694fffe5102Smrgelse 4695051ceee6Smrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4696051ceee6Smrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4697fffe5102Smrgfi 4698fffe5102Smrg 4699fffe5102Smrgfi 4700051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4701051ceee6Smrgprintf "%s\n" "$ac_cv_host" >&6; } 4702fffe5102Smrgcase $ac_cv_host in 4703fffe5102Smrg*-*-*) ;; 4704fc51f767Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4705fffe5102Smrgesac 4706fffe5102Smrghost=$ac_cv_host 4707fffe5102Smrgac_save_IFS=$IFS; IFS='-' 4708fffe5102Smrgset x $ac_cv_host 4709fffe5102Smrgshift 4710fffe5102Smrghost_cpu=$1 4711fffe5102Smrghost_vendor=$2 4712fffe5102Smrgshift; shift 4713fffe5102Smrg# Remember, the first character of IFS is used to create $*, 4714fffe5102Smrg# except with old shells: 4715fffe5102Smrghost_os=$* 4716fffe5102SmrgIFS=$ac_save_IFS 4717fffe5102Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4718fffe5102Smrg 4719fffe5102Smrg 4720051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4721051ceee6Smrgprintf %s "checking for a sed that does not truncate output... " >&6; } 4722051ceee6Smrgif test ${ac_cv_path_SED+y} 4723051ceee6Smrgthen : 4724051ceee6Smrg printf %s "(cached) " >&6 4725051ceee6Smrgelse $as_nop 4726fc51f767Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4727fc51f767Smrg for ac_i in 1 2 3 4 5 6 7; do 4728fc51f767Smrg ac_script="$ac_script$as_nl$ac_script" 4729fc51f767Smrg done 4730fc51f767Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4731fc51f767Smrg { ac_script=; unset ac_script;} 4732fc51f767Smrg if test -z "$SED"; then 4733fc51f767Smrg ac_path_SED_found=false 4734fc51f767Smrg # Loop through the user's path and test for each of PROGNAME-LIST 4735fc51f767Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4736fc51f767Smrgfor as_dir in $PATH 4737fc51f767Smrgdo 4738fc51f767Smrg IFS=$as_save_IFS 4739051ceee6Smrg case $as_dir in #((( 4740051ceee6Smrg '') as_dir=./ ;; 4741051ceee6Smrg */) ;; 4742051ceee6Smrg *) as_dir=$as_dir/ ;; 4743051ceee6Smrg esac 4744051ceee6Smrg for ac_prog in sed gsed 4745051ceee6Smrg do 4746fc51f767Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4747051ceee6Smrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4748e90eff46Smrg as_fn_executable_p "$ac_path_SED" || continue 4749fc51f767Smrg# Check for GNU ac_path_SED and select it if it is found. 4750fc51f767Smrg # Check for GNU $ac_path_SED 4751fc51f767Smrgcase `"$ac_path_SED" --version 2>&1` in 4752fc51f767Smrg*GNU*) 4753fc51f767Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4754fc51f767Smrg*) 4755fc51f767Smrg ac_count=0 4756051ceee6Smrg printf %s 0123456789 >"conftest.in" 4757fc51f767Smrg while : 4758fc51f767Smrg do 4759fc51f767Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4760fc51f767Smrg mv "conftest.tmp" "conftest.in" 4761fc51f767Smrg cp "conftest.in" "conftest.nl" 4762051ceee6Smrg printf "%s\n" '' >> "conftest.nl" 4763fc51f767Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4764fc51f767Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4765fc51f767Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4766fc51f767Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4767fc51f767Smrg # Best one so far, save it but keep looking for a better one 4768fc51f767Smrg ac_cv_path_SED="$ac_path_SED" 4769fc51f767Smrg ac_path_SED_max=$ac_count 4770fffe5102Smrg fi 4771fc51f767Smrg # 10*(2^10) chars as input seems more than enough 4772fc51f767Smrg test $ac_count -gt 10 && break 4773fc51f767Smrg done 4774fc51f767Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4775fffe5102Smrgesac 4776fffe5102Smrg 4777fc51f767Smrg $ac_path_SED_found && break 3 4778fffe5102Smrg done 4779fffe5102Smrg done 4780fc51f767Smrg done 4781fc51f767SmrgIFS=$as_save_IFS 4782fc51f767Smrg if test -z "$ac_cv_path_SED"; then 4783fc51f767Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4784fc51f767Smrg fi 478567f05d30Smrgelse 4786fc51f767Smrg ac_cv_path_SED=$SED 478767f05d30Smrgfi 478867f05d30Smrg 4789fffe5102Smrgfi 4790051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4791051ceee6Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 4792fc51f767Smrg SED="$ac_cv_path_SED" 4793fc51f767Smrg rm -f conftest.sed 4794fffe5102Smrg 4795fc51f767Smrg 4796fc51f767Smrg 4797fc51f767Smrg 4798fc51f767Smrg 47996dbd43aaSmrg 48006dbd43aaSmrg# Check whether --enable-selective-werror was given. 4801051ceee6Smrgif test ${enable_selective_werror+y} 4802051ceee6Smrgthen : 48036dbd43aaSmrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4804051ceee6Smrgelse $as_nop 48056dbd43aaSmrg SELECTIVE_WERROR=yes 48066dbd43aaSmrgfi 48076dbd43aaSmrg 48086dbd43aaSmrg 48096dbd43aaSmrg 48106dbd43aaSmrg 48116dbd43aaSmrg 48126dbd43aaSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 48136dbd43aaSmrgif test "x$SUNCC" = "xyes"; then 48146dbd43aaSmrg BASE_CFLAGS="-v" 4815fc51f767Smrgelse 48166dbd43aaSmrg BASE_CFLAGS="" 481767f05d30Smrgfi 481867f05d30Smrg 48196dbd43aaSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 48206dbd43aaSmrg 48216dbd43aaSmrg 48226dbd43aaSmrg 48236dbd43aaSmrg 48246dbd43aaSmrg 48256dbd43aaSmrg 48266dbd43aaSmrg 48276dbd43aaSmrg 48286dbd43aaSmrg 48296dbd43aaSmrg 48306dbd43aaSmrg 48316dbd43aaSmrg 48326dbd43aaSmrg 48336dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 48346dbd43aaSmrg 48356dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 48366dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4837051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4838051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4839051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 4840051ceee6Smrgthen : 4841051ceee6Smrg printf %s "(cached) " >&6 4842051ceee6Smrgelse $as_nop 48436dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48446dbd43aaSmrg/* end confdefs.h. */ 48456dbd43aaSmrgint i; 48466dbd43aaSmrg_ACEOF 4847051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 4848051ceee6Smrgthen : 48496dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 4850051ceee6Smrgelse $as_nop 48516dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 48526dbd43aaSmrgfi 4853051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 48546dbd43aaSmrgfi 4855051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4856051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 48576dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 48586dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 48596dbd43aaSmrgfi 48606dbd43aaSmrg 48616dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 48626dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 48636dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48646dbd43aaSmrg fi 48656dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4866051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4867051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4868051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4869051ceee6Smrgthen : 4870051ceee6Smrg printf %s "(cached) " >&6 4871051ceee6Smrgelse $as_nop 48726dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48736dbd43aaSmrg/* end confdefs.h. */ 48746dbd43aaSmrgint i; 48756dbd43aaSmrg_ACEOF 4876051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 4877051ceee6Smrgthen : 48786dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 4879051ceee6Smrgelse $as_nop 48806dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 48816dbd43aaSmrgfi 4882051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 48836dbd43aaSmrgfi 4884051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4885051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 48866dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 48876dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 4888fc51f767Smrgfi 488967f05d30Smrg 48906dbd43aaSmrgfound="no" 4891fffe5102Smrg 48926dbd43aaSmrg if test $found = "no" ; then 4893e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 48946dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48956dbd43aaSmrg fi 4896fffe5102Smrg 4897e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 48986dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 48996dbd43aaSmrg fi 4900fffe5102Smrg 49016dbd43aaSmrg CFLAGS="$CFLAGS -Wall" 4902fffe5102Smrg 4903051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4904051ceee6Smrgprintf %s "checking if $CC supports -Wall... " >&6; } 49056dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wall 4906051ceee6Smrg if eval test \${$cacheid+y} 4907051ceee6Smrgthen : 4908051ceee6Smrg printf %s "(cached) " >&6 4909051ceee6Smrgelse $as_nop 49106dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49116dbd43aaSmrg/* end confdefs.h. */ 49126dbd43aaSmrgint i; 49136dbd43aaSmrgint 4914051ceee6Smrgmain (void) 49156dbd43aaSmrg{ 4916fffe5102Smrg 49176dbd43aaSmrg ; 49186dbd43aaSmrg return 0; 49196dbd43aaSmrg} 49206dbd43aaSmrg_ACEOF 4921051ceee6Smrgif ac_fn_c_try_link "$LINENO" 4922051ceee6Smrgthen : 49236dbd43aaSmrg eval $cacheid=yes 4924051ceee6Smrgelse $as_nop 49256dbd43aaSmrg eval $cacheid=no 49266dbd43aaSmrgfi 4927051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 49286dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 492967f05d30Smrgfi 4930fc51f767Smrg 49316dbd43aaSmrg 49326dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 49336dbd43aaSmrg 49346dbd43aaSmrg eval supported=\$$cacheid 4935051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4936051ceee6Smrgprintf "%s\n" "$supported" >&6; } 49376dbd43aaSmrg if test "$supported" = "yes" ; then 49386dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 49396dbd43aaSmrg found="yes" 49406dbd43aaSmrg fi 49416dbd43aaSmrg fi 49426dbd43aaSmrg 49436dbd43aaSmrg 49446dbd43aaSmrg 49456dbd43aaSmrg 49466dbd43aaSmrg 49476dbd43aaSmrg 49486dbd43aaSmrg 49496dbd43aaSmrg 49506dbd43aaSmrg 49516dbd43aaSmrg 49526dbd43aaSmrg 49536dbd43aaSmrg 49546dbd43aaSmrg 49556dbd43aaSmrg 49566dbd43aaSmrg 49576dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 49586dbd43aaSmrg 49596dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 49606dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4961051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4962051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4963051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 4964051ceee6Smrgthen : 4965051ceee6Smrg printf %s "(cached) " >&6 4966051ceee6Smrgelse $as_nop 49676dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49686dbd43aaSmrg/* end confdefs.h. */ 49696dbd43aaSmrgint i; 49706dbd43aaSmrg_ACEOF 4971051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 4972051ceee6Smrgthen : 49736dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 4974051ceee6Smrgelse $as_nop 49756dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 49766dbd43aaSmrgfi 4977051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 49786dbd43aaSmrgfi 4979051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4980051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 49816dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 49826dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 498367f05d30Smrgfi 4984fc51f767Smrg 49856dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 49866dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 49876dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49886dbd43aaSmrg fi 49896dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4990051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4991051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4992051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4993051ceee6Smrgthen : 4994051ceee6Smrg printf %s "(cached) " >&6 4995051ceee6Smrgelse $as_nop 49966dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49976dbd43aaSmrg/* end confdefs.h. */ 49986dbd43aaSmrgint i; 49996dbd43aaSmrg_ACEOF 5000051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5001051ceee6Smrgthen : 50026dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5003051ceee6Smrgelse $as_nop 50046dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 50056dbd43aaSmrgfi 5006051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 50076dbd43aaSmrgfi 5008051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5009051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 50106dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 50116dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 50126dbd43aaSmrgfi 50136dbd43aaSmrg 50146dbd43aaSmrgfound="no" 50156dbd43aaSmrg 50166dbd43aaSmrg if test $found = "no" ; then 5017e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 50186dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50196dbd43aaSmrg fi 50206dbd43aaSmrg 5021e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 50226dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50236dbd43aaSmrg fi 50246dbd43aaSmrg 50256dbd43aaSmrg CFLAGS="$CFLAGS -Wpointer-arith" 50266dbd43aaSmrg 5027051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5028051ceee6Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 50296dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wpointer_arith 5030051ceee6Smrg if eval test \${$cacheid+y} 5031051ceee6Smrgthen : 5032051ceee6Smrg printf %s "(cached) " >&6 5033051ceee6Smrgelse $as_nop 50346dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50356dbd43aaSmrg/* end confdefs.h. */ 50366dbd43aaSmrgint i; 50376dbd43aaSmrgint 5038051ceee6Smrgmain (void) 50396dbd43aaSmrg{ 50406dbd43aaSmrg 50416dbd43aaSmrg ; 50426dbd43aaSmrg return 0; 50436dbd43aaSmrg} 50446dbd43aaSmrg_ACEOF 5045051ceee6Smrgif ac_fn_c_try_link "$LINENO" 5046051ceee6Smrgthen : 50476dbd43aaSmrg eval $cacheid=yes 5048051ceee6Smrgelse $as_nop 50496dbd43aaSmrg eval $cacheid=no 50506dbd43aaSmrgfi 5051051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 50526dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 50536dbd43aaSmrgfi 50546dbd43aaSmrg 50556dbd43aaSmrg 50566dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 50576dbd43aaSmrg 50586dbd43aaSmrg eval supported=\$$cacheid 5059051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5060051ceee6Smrgprintf "%s\n" "$supported" >&6; } 50616dbd43aaSmrg if test "$supported" = "yes" ; then 50626dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 50636dbd43aaSmrg found="yes" 50646dbd43aaSmrg fi 50656dbd43aaSmrg fi 50666dbd43aaSmrg 50676dbd43aaSmrg 50686dbd43aaSmrg 50696dbd43aaSmrg 50706dbd43aaSmrg 50716dbd43aaSmrg 50726dbd43aaSmrg 50736dbd43aaSmrg 50746dbd43aaSmrg 50756dbd43aaSmrg 50766dbd43aaSmrg 50776dbd43aaSmrg 50786dbd43aaSmrg 50796dbd43aaSmrg 50806dbd43aaSmrg 50816dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 50826dbd43aaSmrg 50836dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 50846dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5085051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5086051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5087051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5088051ceee6Smrgthen : 5089051ceee6Smrg printf %s "(cached) " >&6 5090051ceee6Smrgelse $as_nop 50916dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50926dbd43aaSmrg/* end confdefs.h. */ 50936dbd43aaSmrgint i; 50946dbd43aaSmrg_ACEOF 5095051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5096051ceee6Smrgthen : 50976dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5098051ceee6Smrgelse $as_nop 50996dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 51006dbd43aaSmrgfi 5101051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 51026dbd43aaSmrgfi 5103051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5104051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 51056dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 51066dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 510767f05d30Smrgfi 5108fc51f767Smrg 51096dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 51106dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 51116dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5112fc51f767Smrg fi 51136dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5114051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5115051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5116051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5117051ceee6Smrgthen : 5118051ceee6Smrg printf %s "(cached) " >&6 5119051ceee6Smrgelse $as_nop 51206dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51216dbd43aaSmrg/* end confdefs.h. */ 51226dbd43aaSmrgint i; 51236dbd43aaSmrg_ACEOF 5124051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5125051ceee6Smrgthen : 51266dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5127051ceee6Smrgelse $as_nop 51286dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 51296dbd43aaSmrgfi 5130051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 51316dbd43aaSmrgfi 5132051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5133051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 51346dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 51356dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 51366dbd43aaSmrgfi 51376dbd43aaSmrg 51386dbd43aaSmrgfound="no" 51396dbd43aaSmrg 51406dbd43aaSmrg if test $found = "no" ; then 5141e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 51426dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51436dbd43aaSmrg fi 51446dbd43aaSmrg 5145e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 51466dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 51476dbd43aaSmrg fi 51486dbd43aaSmrg 51496dbd43aaSmrg CFLAGS="$CFLAGS -Wmissing-declarations" 51506dbd43aaSmrg 5151051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5152051ceee6Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 51536dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 5154051ceee6Smrg if eval test \${$cacheid+y} 5155051ceee6Smrgthen : 5156051ceee6Smrg printf %s "(cached) " >&6 5157051ceee6Smrgelse $as_nop 51586dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51596dbd43aaSmrg/* end confdefs.h. */ 51606dbd43aaSmrgint i; 51616dbd43aaSmrgint 5162051ceee6Smrgmain (void) 51636dbd43aaSmrg{ 51646dbd43aaSmrg 51656dbd43aaSmrg ; 51666dbd43aaSmrg return 0; 51676dbd43aaSmrg} 51686dbd43aaSmrg_ACEOF 5169051ceee6Smrgif ac_fn_c_try_link "$LINENO" 5170051ceee6Smrgthen : 51716dbd43aaSmrg eval $cacheid=yes 5172051ceee6Smrgelse $as_nop 51736dbd43aaSmrg eval $cacheid=no 51746dbd43aaSmrgfi 5175051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 51766dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 517767f05d30Smrgfi 51786dbd43aaSmrg 51796dbd43aaSmrg 51806dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 51816dbd43aaSmrg 51826dbd43aaSmrg eval supported=\$$cacheid 5183051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5184051ceee6Smrgprintf "%s\n" "$supported" >&6; } 51856dbd43aaSmrg if test "$supported" = "yes" ; then 51866dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 51876dbd43aaSmrg found="yes" 51886dbd43aaSmrg fi 51896dbd43aaSmrg fi 51906dbd43aaSmrg 51916dbd43aaSmrg 51926dbd43aaSmrg 51936dbd43aaSmrg 51946dbd43aaSmrg 51956dbd43aaSmrg 51966dbd43aaSmrg 51976dbd43aaSmrg 51986dbd43aaSmrg 51996dbd43aaSmrg 52006dbd43aaSmrg 52016dbd43aaSmrg 52026dbd43aaSmrg 52036dbd43aaSmrg 52046dbd43aaSmrg 52056dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 52066dbd43aaSmrg 52076dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 52086dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5209051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5210051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5211051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5212051ceee6Smrgthen : 5213051ceee6Smrg printf %s "(cached) " >&6 5214051ceee6Smrgelse $as_nop 52156dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52166dbd43aaSmrg/* end confdefs.h. */ 52176dbd43aaSmrgint i; 52186dbd43aaSmrg_ACEOF 5219051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5220051ceee6Smrgthen : 52216dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5222051ceee6Smrgelse $as_nop 52236dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 52246dbd43aaSmrgfi 5225051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 52266dbd43aaSmrgfi 5227051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5228051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 52296dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 52306dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 52316dbd43aaSmrgfi 52326dbd43aaSmrg 52336dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 52346dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 52356dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52366dbd43aaSmrg fi 52376dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5238051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5239051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5240051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5241051ceee6Smrgthen : 5242051ceee6Smrg printf %s "(cached) " >&6 5243051ceee6Smrgelse $as_nop 52446dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52456dbd43aaSmrg/* end confdefs.h. */ 52466dbd43aaSmrgint i; 52476dbd43aaSmrg_ACEOF 5248051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5249051ceee6Smrgthen : 52506dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5251051ceee6Smrgelse $as_nop 52526dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 52536dbd43aaSmrgfi 5254051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 52556dbd43aaSmrgfi 5256051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5257051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 52586dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 52596dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 52606dbd43aaSmrgfi 52616dbd43aaSmrg 52626dbd43aaSmrgfound="no" 52636dbd43aaSmrg 52646dbd43aaSmrg if test $found = "no" ; then 5265e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 52666dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52676dbd43aaSmrg fi 52686dbd43aaSmrg 5269e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 52706dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52716dbd43aaSmrg fi 52726dbd43aaSmrg 52736dbd43aaSmrg CFLAGS="$CFLAGS -Wformat=2" 52746dbd43aaSmrg 5275051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5276051ceee6Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 5277e90eff46Smrg cacheid=xorg_cv_cc_flag__Wformat_2 5278051ceee6Smrg if eval test \${$cacheid+y} 5279051ceee6Smrgthen : 5280051ceee6Smrg printf %s "(cached) " >&6 5281051ceee6Smrgelse $as_nop 52826dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52836dbd43aaSmrg/* end confdefs.h. */ 52846dbd43aaSmrgint i; 52856dbd43aaSmrgint 5286051ceee6Smrgmain (void) 52876dbd43aaSmrg{ 52886dbd43aaSmrg 52896dbd43aaSmrg ; 52906dbd43aaSmrg return 0; 52916dbd43aaSmrg} 52926dbd43aaSmrg_ACEOF 5293051ceee6Smrgif ac_fn_c_try_link "$LINENO" 5294051ceee6Smrgthen : 52956dbd43aaSmrg eval $cacheid=yes 5296051ceee6Smrgelse $as_nop 52976dbd43aaSmrg eval $cacheid=no 52986dbd43aaSmrgfi 5299051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 53006dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 53016dbd43aaSmrgfi 53026dbd43aaSmrg 53036dbd43aaSmrg 53046dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 53056dbd43aaSmrg 53066dbd43aaSmrg eval supported=\$$cacheid 5307051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5308051ceee6Smrgprintf "%s\n" "$supported" >&6; } 53096dbd43aaSmrg if test "$supported" = "yes" ; then 53106dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 53116dbd43aaSmrg found="yes" 53126dbd43aaSmrg fi 53136dbd43aaSmrg fi 53146dbd43aaSmrg 53156dbd43aaSmrg if test $found = "no" ; then 5316e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 53176dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53186dbd43aaSmrg fi 53196dbd43aaSmrg 5320e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 53216dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53226dbd43aaSmrg fi 53236dbd43aaSmrg 53246dbd43aaSmrg CFLAGS="$CFLAGS -Wformat" 53256dbd43aaSmrg 5326051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5327051ceee6Smrgprintf %s "checking if $CC supports -Wformat... " >&6; } 53286dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wformat 5329051ceee6Smrg if eval test \${$cacheid+y} 5330051ceee6Smrgthen : 5331051ceee6Smrg printf %s "(cached) " >&6 5332051ceee6Smrgelse $as_nop 53336dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53346dbd43aaSmrg/* end confdefs.h. */ 53356dbd43aaSmrgint i; 53366dbd43aaSmrgint 5337051ceee6Smrgmain (void) 53386dbd43aaSmrg{ 53396dbd43aaSmrg 53406dbd43aaSmrg ; 53416dbd43aaSmrg return 0; 53426dbd43aaSmrg} 53436dbd43aaSmrg_ACEOF 5344051ceee6Smrgif ac_fn_c_try_link "$LINENO" 5345051ceee6Smrgthen : 53466dbd43aaSmrg eval $cacheid=yes 5347051ceee6Smrgelse $as_nop 53486dbd43aaSmrg eval $cacheid=no 53496dbd43aaSmrgfi 5350051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 53516dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 53526dbd43aaSmrgfi 53536dbd43aaSmrg 53546dbd43aaSmrg 53556dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 53566dbd43aaSmrg 53576dbd43aaSmrg eval supported=\$$cacheid 5358051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5359051ceee6Smrgprintf "%s\n" "$supported" >&6; } 53606dbd43aaSmrg if test "$supported" = "yes" ; then 53616dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 53626dbd43aaSmrg found="yes" 53636dbd43aaSmrg fi 53646dbd43aaSmrg fi 53656dbd43aaSmrg 53666dbd43aaSmrg 53676dbd43aaSmrg 53686dbd43aaSmrg 53696dbd43aaSmrg 53706dbd43aaSmrg 53716dbd43aaSmrg 53726dbd43aaSmrg 53736dbd43aaSmrg 53746dbd43aaSmrg 53756dbd43aaSmrg 53766dbd43aaSmrg 53776dbd43aaSmrg 53786dbd43aaSmrg 53796dbd43aaSmrg 53806dbd43aaSmrg 53816dbd43aaSmrg 53826dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 53836dbd43aaSmrg 53846dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 53856dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5386051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5387051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5388051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5389051ceee6Smrgthen : 5390051ceee6Smrg printf %s "(cached) " >&6 5391051ceee6Smrgelse $as_nop 53926dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53936dbd43aaSmrg/* end confdefs.h. */ 53946dbd43aaSmrgint i; 53956dbd43aaSmrg_ACEOF 5396051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5397051ceee6Smrgthen : 53986dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5399051ceee6Smrgelse $as_nop 54006dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 54016dbd43aaSmrgfi 5402051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 54036dbd43aaSmrgfi 5404051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5405051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 54066dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 54076dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 54086dbd43aaSmrgfi 54096dbd43aaSmrg 54106dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 54116dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 54126dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54136dbd43aaSmrg fi 54146dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5415051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5416051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5417051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5418051ceee6Smrgthen : 5419051ceee6Smrg printf %s "(cached) " >&6 5420051ceee6Smrgelse $as_nop 54216dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54226dbd43aaSmrg/* end confdefs.h. */ 54236dbd43aaSmrgint i; 54246dbd43aaSmrg_ACEOF 5425051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5426051ceee6Smrgthen : 54276dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5428051ceee6Smrgelse $as_nop 54296dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 54306dbd43aaSmrgfi 5431051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 54326dbd43aaSmrgfi 5433051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5434051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 54356dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 54366dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 54376dbd43aaSmrgfi 54386dbd43aaSmrg 54396dbd43aaSmrgfound="no" 54406dbd43aaSmrg 54416dbd43aaSmrg if test $found = "no" ; then 5442e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 54436dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54446dbd43aaSmrg fi 54456dbd43aaSmrg 5446e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 54476dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54486dbd43aaSmrg fi 54496dbd43aaSmrg 54506dbd43aaSmrg CFLAGS="$CFLAGS -Wstrict-prototypes" 54516dbd43aaSmrg 5452051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5453051ceee6Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 54546dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5455051ceee6Smrg if eval test \${$cacheid+y} 5456051ceee6Smrgthen : 5457051ceee6Smrg printf %s "(cached) " >&6 5458051ceee6Smrgelse $as_nop 54596dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54606dbd43aaSmrg/* end confdefs.h. */ 54616dbd43aaSmrgint i; 54626dbd43aaSmrgint 5463051ceee6Smrgmain (void) 54646dbd43aaSmrg{ 54656dbd43aaSmrg 54666dbd43aaSmrg ; 54676dbd43aaSmrg return 0; 54686dbd43aaSmrg} 54696dbd43aaSmrg_ACEOF 5470051ceee6Smrgif ac_fn_c_try_link "$LINENO" 5471051ceee6Smrgthen : 54726dbd43aaSmrg eval $cacheid=yes 5473051ceee6Smrgelse $as_nop 54746dbd43aaSmrg eval $cacheid=no 54756dbd43aaSmrgfi 5476051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 54776dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 54786dbd43aaSmrgfi 54796dbd43aaSmrg 54806dbd43aaSmrg 54816dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 54826dbd43aaSmrg 54836dbd43aaSmrg eval supported=\$$cacheid 5484051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5485051ceee6Smrgprintf "%s\n" "$supported" >&6; } 54866dbd43aaSmrg if test "$supported" = "yes" ; then 54876dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 54886dbd43aaSmrg found="yes" 54896dbd43aaSmrg fi 54906dbd43aaSmrg fi 54916dbd43aaSmrg 54926dbd43aaSmrg 54936dbd43aaSmrg 54946dbd43aaSmrg 54956dbd43aaSmrg 54966dbd43aaSmrg 54976dbd43aaSmrg 54986dbd43aaSmrg 54996dbd43aaSmrg 55006dbd43aaSmrg 55016dbd43aaSmrg 55026dbd43aaSmrg 55036dbd43aaSmrg 55046dbd43aaSmrg 55056dbd43aaSmrg 55066dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 55076dbd43aaSmrg 55086dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 55096dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5510051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5511051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5512051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5513051ceee6Smrgthen : 5514051ceee6Smrg printf %s "(cached) " >&6 5515051ceee6Smrgelse $as_nop 55166dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55176dbd43aaSmrg/* end confdefs.h. */ 55186dbd43aaSmrgint i; 55196dbd43aaSmrg_ACEOF 5520051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5521051ceee6Smrgthen : 55226dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5523051ceee6Smrgelse $as_nop 55246dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 55256dbd43aaSmrgfi 5526051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 55276dbd43aaSmrgfi 5528051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5529051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 55306dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 55316dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 55326dbd43aaSmrgfi 55336dbd43aaSmrg 55346dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 55356dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 55366dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55376dbd43aaSmrg fi 55386dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5539051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5540051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5541051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5542051ceee6Smrgthen : 5543051ceee6Smrg printf %s "(cached) " >&6 5544051ceee6Smrgelse $as_nop 55456dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55466dbd43aaSmrg/* end confdefs.h. */ 55476dbd43aaSmrgint i; 55486dbd43aaSmrg_ACEOF 5549051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5550051ceee6Smrgthen : 55516dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5552051ceee6Smrgelse $as_nop 55536dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 55546dbd43aaSmrgfi 5555051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 55566dbd43aaSmrgfi 5557051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5558051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 55596dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 55606dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 55616dbd43aaSmrgfi 55626dbd43aaSmrg 55636dbd43aaSmrgfound="no" 55646dbd43aaSmrg 55656dbd43aaSmrg if test $found = "no" ; then 5566e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 55676dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55686dbd43aaSmrg fi 55696dbd43aaSmrg 5570e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 55716dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55726dbd43aaSmrg fi 55736dbd43aaSmrg 55746dbd43aaSmrg CFLAGS="$CFLAGS -Wmissing-prototypes" 55756dbd43aaSmrg 5576051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5577051ceee6Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 55786dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5579051ceee6Smrg if eval test \${$cacheid+y} 5580051ceee6Smrgthen : 5581051ceee6Smrg printf %s "(cached) " >&6 5582051ceee6Smrgelse $as_nop 55836dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55846dbd43aaSmrg/* end confdefs.h. */ 55856dbd43aaSmrgint i; 55866dbd43aaSmrgint 5587051ceee6Smrgmain (void) 55886dbd43aaSmrg{ 55896dbd43aaSmrg 55906dbd43aaSmrg ; 55916dbd43aaSmrg return 0; 55926dbd43aaSmrg} 55936dbd43aaSmrg_ACEOF 5594051ceee6Smrgif ac_fn_c_try_link "$LINENO" 5595051ceee6Smrgthen : 55966dbd43aaSmrg eval $cacheid=yes 5597051ceee6Smrgelse $as_nop 55986dbd43aaSmrg eval $cacheid=no 55996dbd43aaSmrgfi 5600051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 56016dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 56026dbd43aaSmrgfi 56036dbd43aaSmrg 56046dbd43aaSmrg 56056dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 56066dbd43aaSmrg 56076dbd43aaSmrg eval supported=\$$cacheid 5608051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5609051ceee6Smrgprintf "%s\n" "$supported" >&6; } 56106dbd43aaSmrg if test "$supported" = "yes" ; then 56116dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 56126dbd43aaSmrg found="yes" 56136dbd43aaSmrg fi 56146dbd43aaSmrg fi 56156dbd43aaSmrg 56166dbd43aaSmrg 56176dbd43aaSmrg 56186dbd43aaSmrg 56196dbd43aaSmrg 56206dbd43aaSmrg 56216dbd43aaSmrg 56226dbd43aaSmrg 56236dbd43aaSmrg 56246dbd43aaSmrg 56256dbd43aaSmrg 56266dbd43aaSmrg 56276dbd43aaSmrg 56286dbd43aaSmrg 56296dbd43aaSmrg 56306dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 56316dbd43aaSmrg 56326dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 56336dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5634051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5635051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5636051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5637051ceee6Smrgthen : 5638051ceee6Smrg printf %s "(cached) " >&6 5639051ceee6Smrgelse $as_nop 56406dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56416dbd43aaSmrg/* end confdefs.h. */ 56426dbd43aaSmrgint i; 56436dbd43aaSmrg_ACEOF 5644051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5645051ceee6Smrgthen : 56466dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5647051ceee6Smrgelse $as_nop 56486dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 56496dbd43aaSmrgfi 5650051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 56516dbd43aaSmrgfi 5652051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5653051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 56546dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 56556dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 56566dbd43aaSmrgfi 56576dbd43aaSmrg 56586dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 56596dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 56606dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56616dbd43aaSmrg fi 56626dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5663051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5664051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5665051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5666051ceee6Smrgthen : 5667051ceee6Smrg printf %s "(cached) " >&6 5668051ceee6Smrgelse $as_nop 56696dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56706dbd43aaSmrg/* end confdefs.h. */ 56716dbd43aaSmrgint i; 56726dbd43aaSmrg_ACEOF 5673051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5674051ceee6Smrgthen : 56756dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5676051ceee6Smrgelse $as_nop 56776dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 56786dbd43aaSmrgfi 5679051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 56806dbd43aaSmrgfi 5681051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5682051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 56836dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 56846dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 56856dbd43aaSmrgfi 56866dbd43aaSmrg 56876dbd43aaSmrgfound="no" 56886dbd43aaSmrg 56896dbd43aaSmrg if test $found = "no" ; then 5690e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 56916dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56926dbd43aaSmrg fi 56936dbd43aaSmrg 5694e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 56956dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56966dbd43aaSmrg fi 56976dbd43aaSmrg 56986dbd43aaSmrg CFLAGS="$CFLAGS -Wnested-externs" 56996dbd43aaSmrg 5700051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5701051ceee6Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 57026dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wnested_externs 5703051ceee6Smrg if eval test \${$cacheid+y} 5704051ceee6Smrgthen : 5705051ceee6Smrg printf %s "(cached) " >&6 5706051ceee6Smrgelse $as_nop 57076dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57086dbd43aaSmrg/* end confdefs.h. */ 57096dbd43aaSmrgint i; 57106dbd43aaSmrgint 5711051ceee6Smrgmain (void) 57126dbd43aaSmrg{ 57136dbd43aaSmrg 57146dbd43aaSmrg ; 57156dbd43aaSmrg return 0; 57166dbd43aaSmrg} 57176dbd43aaSmrg_ACEOF 5718051ceee6Smrgif ac_fn_c_try_link "$LINENO" 5719051ceee6Smrgthen : 57206dbd43aaSmrg eval $cacheid=yes 5721051ceee6Smrgelse $as_nop 57226dbd43aaSmrg eval $cacheid=no 57236dbd43aaSmrgfi 5724051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 57256dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 57266dbd43aaSmrgfi 57276dbd43aaSmrg 57286dbd43aaSmrg 57296dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 57306dbd43aaSmrg 57316dbd43aaSmrg eval supported=\$$cacheid 5732051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5733051ceee6Smrgprintf "%s\n" "$supported" >&6; } 57346dbd43aaSmrg if test "$supported" = "yes" ; then 57356dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 57366dbd43aaSmrg found="yes" 57376dbd43aaSmrg fi 57386dbd43aaSmrg fi 57396dbd43aaSmrg 57406dbd43aaSmrg 57416dbd43aaSmrg 57426dbd43aaSmrg 57436dbd43aaSmrg 57446dbd43aaSmrg 57456dbd43aaSmrg 57466dbd43aaSmrg 57476dbd43aaSmrg 57486dbd43aaSmrg 57496dbd43aaSmrg 57506dbd43aaSmrg 57516dbd43aaSmrg 57526dbd43aaSmrg 57536dbd43aaSmrg 57546dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 57556dbd43aaSmrg 57566dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 57576dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5758051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5759051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5760051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5761051ceee6Smrgthen : 5762051ceee6Smrg printf %s "(cached) " >&6 5763051ceee6Smrgelse $as_nop 57646dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57656dbd43aaSmrg/* end confdefs.h. */ 57666dbd43aaSmrgint i; 57676dbd43aaSmrg_ACEOF 5768051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5769051ceee6Smrgthen : 57706dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5771051ceee6Smrgelse $as_nop 57726dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 57736dbd43aaSmrgfi 5774051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 57756dbd43aaSmrgfi 5776051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5777051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 57786dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 57796dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 57806dbd43aaSmrgfi 57816dbd43aaSmrg 57826dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 57836dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 57846dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57856dbd43aaSmrg fi 57866dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5787051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5788051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5789051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5790051ceee6Smrgthen : 5791051ceee6Smrg printf %s "(cached) " >&6 5792051ceee6Smrgelse $as_nop 57936dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57946dbd43aaSmrg/* end confdefs.h. */ 57956dbd43aaSmrgint i; 57966dbd43aaSmrg_ACEOF 5797051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5798051ceee6Smrgthen : 57996dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5800051ceee6Smrgelse $as_nop 58016dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 58026dbd43aaSmrgfi 5803051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 58046dbd43aaSmrgfi 5805051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5806051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 58076dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 58086dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 58096dbd43aaSmrgfi 58106dbd43aaSmrg 58116dbd43aaSmrgfound="no" 58126dbd43aaSmrg 58136dbd43aaSmrg if test $found = "no" ; then 5814e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 58156dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58166dbd43aaSmrg fi 58176dbd43aaSmrg 5818e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 58196dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58206dbd43aaSmrg fi 58216dbd43aaSmrg 58226dbd43aaSmrg CFLAGS="$CFLAGS -Wbad-function-cast" 58236dbd43aaSmrg 5824051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5825051ceee6Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 58266dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 5827051ceee6Smrg if eval test \${$cacheid+y} 5828051ceee6Smrgthen : 5829051ceee6Smrg printf %s "(cached) " >&6 5830051ceee6Smrgelse $as_nop 58316dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58326dbd43aaSmrg/* end confdefs.h. */ 58336dbd43aaSmrgint i; 58346dbd43aaSmrgint 5835051ceee6Smrgmain (void) 58366dbd43aaSmrg{ 58376dbd43aaSmrg 58386dbd43aaSmrg ; 58396dbd43aaSmrg return 0; 58406dbd43aaSmrg} 58416dbd43aaSmrg_ACEOF 5842051ceee6Smrgif ac_fn_c_try_link "$LINENO" 5843051ceee6Smrgthen : 58446dbd43aaSmrg eval $cacheid=yes 5845051ceee6Smrgelse $as_nop 58466dbd43aaSmrg eval $cacheid=no 58476dbd43aaSmrgfi 5848051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 58496dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 58506dbd43aaSmrgfi 58516dbd43aaSmrg 58526dbd43aaSmrg 58536dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 58546dbd43aaSmrg 58556dbd43aaSmrg eval supported=\$$cacheid 5856051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5857051ceee6Smrgprintf "%s\n" "$supported" >&6; } 58586dbd43aaSmrg if test "$supported" = "yes" ; then 58596dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 58606dbd43aaSmrg found="yes" 58616dbd43aaSmrg fi 58626dbd43aaSmrg fi 58636dbd43aaSmrg 58646dbd43aaSmrg 58656dbd43aaSmrg 58666dbd43aaSmrg 58676dbd43aaSmrg 58686dbd43aaSmrg 58696dbd43aaSmrg 58706dbd43aaSmrg 58716dbd43aaSmrg 58726dbd43aaSmrg 58736dbd43aaSmrg 58746dbd43aaSmrg 58756dbd43aaSmrg 58766dbd43aaSmrg 58776dbd43aaSmrg 58786dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 58796dbd43aaSmrg 58806dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 58816dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5882051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5883051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5884051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 5885051ceee6Smrgthen : 5886051ceee6Smrg printf %s "(cached) " >&6 5887051ceee6Smrgelse $as_nop 58886dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58896dbd43aaSmrg/* end confdefs.h. */ 58906dbd43aaSmrgint i; 58916dbd43aaSmrg_ACEOF 5892051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5893051ceee6Smrgthen : 58946dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 5895051ceee6Smrgelse $as_nop 58966dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 58976dbd43aaSmrgfi 5898051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 58996dbd43aaSmrgfi 5900051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5901051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 59026dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 59036dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 59046dbd43aaSmrgfi 59056dbd43aaSmrg 59066dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 59076dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 59086dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59096dbd43aaSmrg fi 59106dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5911051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5912051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5913051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5914051ceee6Smrgthen : 5915051ceee6Smrg printf %s "(cached) " >&6 5916051ceee6Smrgelse $as_nop 59176dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59186dbd43aaSmrg/* end confdefs.h. */ 59196dbd43aaSmrgint i; 59206dbd43aaSmrg_ACEOF 5921051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 5922051ceee6Smrgthen : 59236dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 5924051ceee6Smrgelse $as_nop 59256dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 59266dbd43aaSmrgfi 5927051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 59286dbd43aaSmrgfi 5929051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5930051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 59316dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 59326dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 59336dbd43aaSmrgfi 59346dbd43aaSmrg 59356dbd43aaSmrgfound="no" 59366dbd43aaSmrg 59376dbd43aaSmrg if test $found = "no" ; then 5938e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 59396dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59406dbd43aaSmrg fi 59416dbd43aaSmrg 5942e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 59436dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59446dbd43aaSmrg fi 59456dbd43aaSmrg 59466dbd43aaSmrg CFLAGS="$CFLAGS -Wold-style-definition" 59476dbd43aaSmrg 5948051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5949051ceee6Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 59506dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wold_style_definition 5951051ceee6Smrg if eval test \${$cacheid+y} 5952051ceee6Smrgthen : 5953051ceee6Smrg printf %s "(cached) " >&6 5954051ceee6Smrgelse $as_nop 59556dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59566dbd43aaSmrg/* end confdefs.h. */ 59576dbd43aaSmrgint i; 59586dbd43aaSmrgint 5959051ceee6Smrgmain (void) 59606dbd43aaSmrg{ 59616dbd43aaSmrg 59626dbd43aaSmrg ; 59636dbd43aaSmrg return 0; 59646dbd43aaSmrg} 59656dbd43aaSmrg_ACEOF 5966051ceee6Smrgif ac_fn_c_try_link "$LINENO" 5967051ceee6Smrgthen : 59686dbd43aaSmrg eval $cacheid=yes 5969051ceee6Smrgelse $as_nop 59706dbd43aaSmrg eval $cacheid=no 59716dbd43aaSmrgfi 5972051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 59736dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 59746dbd43aaSmrgfi 59756dbd43aaSmrg 59766dbd43aaSmrg 59776dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 59786dbd43aaSmrg 59796dbd43aaSmrg eval supported=\$$cacheid 5980051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5981051ceee6Smrgprintf "%s\n" "$supported" >&6; } 59826dbd43aaSmrg if test "$supported" = "yes" ; then 59836dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 59846dbd43aaSmrg found="yes" 59856dbd43aaSmrg fi 59866dbd43aaSmrg fi 59876dbd43aaSmrg 5988e90eff46Smrg if test $found = "no" ; then 5989e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5990e90eff46Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5991e90eff46Smrg fi 5992e90eff46Smrg 5993e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5994e90eff46Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5995e90eff46Smrg fi 5996e90eff46Smrg 5997e90eff46Smrg CFLAGS="$CFLAGS -fd" 5998e90eff46Smrg 5999051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6000051ceee6Smrgprintf %s "checking if $CC supports -fd... " >&6; } 6001e90eff46Smrg cacheid=xorg_cv_cc_flag__fd 6002051ceee6Smrg if eval test \${$cacheid+y} 6003051ceee6Smrgthen : 6004051ceee6Smrg printf %s "(cached) " >&6 6005051ceee6Smrgelse $as_nop 6006e90eff46Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6007e90eff46Smrg/* end confdefs.h. */ 6008e90eff46Smrgint i; 6009e90eff46Smrgint 6010051ceee6Smrgmain (void) 6011e90eff46Smrg{ 6012e90eff46Smrg 6013e90eff46Smrg ; 6014e90eff46Smrg return 0; 6015e90eff46Smrg} 6016e90eff46Smrg_ACEOF 6017051ceee6Smrgif ac_fn_c_try_link "$LINENO" 6018051ceee6Smrgthen : 6019e90eff46Smrg eval $cacheid=yes 6020051ceee6Smrgelse $as_nop 6021e90eff46Smrg eval $cacheid=no 6022e90eff46Smrgfi 6023051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6024e90eff46Smrg conftest$ac_exeext conftest.$ac_ext 6025e90eff46Smrgfi 6026e90eff46Smrg 6027e90eff46Smrg 6028e90eff46Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6029e90eff46Smrg 6030e90eff46Smrg eval supported=\$$cacheid 6031051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6032051ceee6Smrgprintf "%s\n" "$supported" >&6; } 6033e90eff46Smrg if test "$supported" = "yes" ; then 6034e90eff46Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 6035e90eff46Smrg found="yes" 6036e90eff46Smrg fi 6037e90eff46Smrg fi 6038e90eff46Smrg 60396dbd43aaSmrg 60406dbd43aaSmrg 60416dbd43aaSmrg 60426dbd43aaSmrg 60436dbd43aaSmrg 60446dbd43aaSmrg 60456dbd43aaSmrg 60466dbd43aaSmrg 60476dbd43aaSmrg 60486dbd43aaSmrg 60496dbd43aaSmrg 60506dbd43aaSmrg 60516dbd43aaSmrg 60526dbd43aaSmrg 60536dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 60546dbd43aaSmrg 60556dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 60566dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6057051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6058051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6059051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6060051ceee6Smrgthen : 6061051ceee6Smrg printf %s "(cached) " >&6 6062051ceee6Smrgelse $as_nop 60636dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60646dbd43aaSmrg/* end confdefs.h. */ 60656dbd43aaSmrgint i; 60666dbd43aaSmrg_ACEOF 6067051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6068051ceee6Smrgthen : 60696dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6070051ceee6Smrgelse $as_nop 60716dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 60726dbd43aaSmrgfi 6073051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 60746dbd43aaSmrgfi 6075051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6076051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 60776dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 60786dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 60796dbd43aaSmrgfi 60806dbd43aaSmrg 60816dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 60826dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 60836dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60846dbd43aaSmrg fi 60856dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6086051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6087051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6088051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6089051ceee6Smrgthen : 6090051ceee6Smrg printf %s "(cached) " >&6 6091051ceee6Smrgelse $as_nop 60926dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60936dbd43aaSmrg/* end confdefs.h. */ 60946dbd43aaSmrgint i; 60956dbd43aaSmrg_ACEOF 6096051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6097051ceee6Smrgthen : 60986dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6099051ceee6Smrgelse $as_nop 61006dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 61016dbd43aaSmrgfi 6102051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 61036dbd43aaSmrgfi 6104051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6105051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 61066dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 61076dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 61086dbd43aaSmrgfi 61096dbd43aaSmrg 61106dbd43aaSmrgfound="no" 61116dbd43aaSmrg 61126dbd43aaSmrg if test $found = "no" ; then 6113e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 61146dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61156dbd43aaSmrg fi 61166dbd43aaSmrg 6117e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 61186dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61196dbd43aaSmrg fi 61206dbd43aaSmrg 61216dbd43aaSmrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 61226dbd43aaSmrg 6123051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6124051ceee6Smrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 61256dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6126051ceee6Smrg if eval test \${$cacheid+y} 6127051ceee6Smrgthen : 6128051ceee6Smrg printf %s "(cached) " >&6 6129051ceee6Smrgelse $as_nop 61306dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61316dbd43aaSmrg/* end confdefs.h. */ 61326dbd43aaSmrgint i; 61336dbd43aaSmrgint 6134051ceee6Smrgmain (void) 61356dbd43aaSmrg{ 61366dbd43aaSmrg 61376dbd43aaSmrg ; 61386dbd43aaSmrg return 0; 61396dbd43aaSmrg} 61406dbd43aaSmrg_ACEOF 6141051ceee6Smrgif ac_fn_c_try_link "$LINENO" 6142051ceee6Smrgthen : 61436dbd43aaSmrg eval $cacheid=yes 6144051ceee6Smrgelse $as_nop 61456dbd43aaSmrg eval $cacheid=no 61466dbd43aaSmrgfi 6147051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 61486dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 61496dbd43aaSmrgfi 61506dbd43aaSmrg 61516dbd43aaSmrg 61526dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 61536dbd43aaSmrg 61546dbd43aaSmrg eval supported=\$$cacheid 6155051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6156051ceee6Smrgprintf "%s\n" "$supported" >&6; } 61576dbd43aaSmrg if test "$supported" = "yes" ; then 61586dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 61596dbd43aaSmrg found="yes" 61606dbd43aaSmrg fi 61616dbd43aaSmrg fi 61626dbd43aaSmrg 61636dbd43aaSmrg 61646dbd43aaSmrg 61656dbd43aaSmrg 61666dbd43aaSmrg 61676dbd43aaSmrg# This chunk adds additional warnings that could catch undesired effects. 61686dbd43aaSmrg 61696dbd43aaSmrg 61706dbd43aaSmrg 61716dbd43aaSmrg 61726dbd43aaSmrg 61736dbd43aaSmrg 61746dbd43aaSmrg 61756dbd43aaSmrg 61766dbd43aaSmrg 61776dbd43aaSmrg 61786dbd43aaSmrg 61796dbd43aaSmrg 61806dbd43aaSmrg 61816dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 61826dbd43aaSmrg 61836dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 61846dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6185051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6186051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6187051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6188051ceee6Smrgthen : 6189051ceee6Smrg printf %s "(cached) " >&6 6190051ceee6Smrgelse $as_nop 61916dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61926dbd43aaSmrg/* end confdefs.h. */ 61936dbd43aaSmrgint i; 61946dbd43aaSmrg_ACEOF 6195051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6196051ceee6Smrgthen : 61976dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6198051ceee6Smrgelse $as_nop 61996dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 62006dbd43aaSmrgfi 6201051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 62026dbd43aaSmrgfi 6203051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6204051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 62056dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 62066dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 62076dbd43aaSmrgfi 62086dbd43aaSmrg 62096dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 62106dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 62116dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62126dbd43aaSmrg fi 62136dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6214051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6215051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6216051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6217051ceee6Smrgthen : 6218051ceee6Smrg printf %s "(cached) " >&6 6219051ceee6Smrgelse $as_nop 62206dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62216dbd43aaSmrg/* end confdefs.h. */ 62226dbd43aaSmrgint i; 62236dbd43aaSmrg_ACEOF 6224051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6225051ceee6Smrgthen : 62266dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6227051ceee6Smrgelse $as_nop 62286dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 62296dbd43aaSmrgfi 6230051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 62316dbd43aaSmrgfi 6232051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6233051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 62346dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 62356dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 62366dbd43aaSmrgfi 62376dbd43aaSmrg 62386dbd43aaSmrgfound="no" 62396dbd43aaSmrg 62406dbd43aaSmrg if test $found = "no" ; then 6241e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 62426dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62436dbd43aaSmrg fi 62446dbd43aaSmrg 6245e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 62466dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62476dbd43aaSmrg fi 62486dbd43aaSmrg 62496dbd43aaSmrg CFLAGS="$CFLAGS -Wunused" 62506dbd43aaSmrg 6251051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6252051ceee6Smrgprintf %s "checking if $CC supports -Wunused... " >&6; } 62536dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wunused 6254051ceee6Smrg if eval test \${$cacheid+y} 6255051ceee6Smrgthen : 6256051ceee6Smrg printf %s "(cached) " >&6 6257051ceee6Smrgelse $as_nop 62586dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62596dbd43aaSmrg/* end confdefs.h. */ 62606dbd43aaSmrgint i; 62616dbd43aaSmrgint 6262051ceee6Smrgmain (void) 62636dbd43aaSmrg{ 62646dbd43aaSmrg 62656dbd43aaSmrg ; 62666dbd43aaSmrg return 0; 62676dbd43aaSmrg} 62686dbd43aaSmrg_ACEOF 6269051ceee6Smrgif ac_fn_c_try_link "$LINENO" 6270051ceee6Smrgthen : 62716dbd43aaSmrg eval $cacheid=yes 6272051ceee6Smrgelse $as_nop 62736dbd43aaSmrg eval $cacheid=no 62746dbd43aaSmrgfi 6275051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 62766dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 62776dbd43aaSmrgfi 62786dbd43aaSmrg 62796dbd43aaSmrg 62806dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 62816dbd43aaSmrg 62826dbd43aaSmrg eval supported=\$$cacheid 6283051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6284051ceee6Smrgprintf "%s\n" "$supported" >&6; } 62856dbd43aaSmrg if test "$supported" = "yes" ; then 62866dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 62876dbd43aaSmrg found="yes" 62886dbd43aaSmrg fi 62896dbd43aaSmrg fi 62906dbd43aaSmrg 62916dbd43aaSmrg 62926dbd43aaSmrg 62936dbd43aaSmrg 62946dbd43aaSmrg 62956dbd43aaSmrg 62966dbd43aaSmrg 62976dbd43aaSmrg 62986dbd43aaSmrg 62996dbd43aaSmrg 63006dbd43aaSmrg 63016dbd43aaSmrg 63026dbd43aaSmrg 63036dbd43aaSmrg 63046dbd43aaSmrg 63056dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 63066dbd43aaSmrg 63076dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 63086dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6309051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6310051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6311051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6312051ceee6Smrgthen : 6313051ceee6Smrg printf %s "(cached) " >&6 6314051ceee6Smrgelse $as_nop 63156dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63166dbd43aaSmrg/* end confdefs.h. */ 63176dbd43aaSmrgint i; 63186dbd43aaSmrg_ACEOF 6319051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6320051ceee6Smrgthen : 63216dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6322051ceee6Smrgelse $as_nop 63236dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 63246dbd43aaSmrgfi 6325051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 63266dbd43aaSmrgfi 6327051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6328051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 63296dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 63306dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 63316dbd43aaSmrgfi 63326dbd43aaSmrg 63336dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 63346dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 63356dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63366dbd43aaSmrg fi 63376dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6338051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6339051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6340051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6341051ceee6Smrgthen : 6342051ceee6Smrg printf %s "(cached) " >&6 6343051ceee6Smrgelse $as_nop 63446dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63456dbd43aaSmrg/* end confdefs.h. */ 63466dbd43aaSmrgint i; 63476dbd43aaSmrg_ACEOF 6348051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6349051ceee6Smrgthen : 63506dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6351051ceee6Smrgelse $as_nop 63526dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 63536dbd43aaSmrgfi 6354051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 63556dbd43aaSmrgfi 6356051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6357051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 63586dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 63596dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 63606dbd43aaSmrgfi 63616dbd43aaSmrg 63626dbd43aaSmrgfound="no" 63636dbd43aaSmrg 63646dbd43aaSmrg if test $found = "no" ; then 6365e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 63666dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63676dbd43aaSmrg fi 63686dbd43aaSmrg 6369e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 63706dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63716dbd43aaSmrg fi 63726dbd43aaSmrg 63736dbd43aaSmrg CFLAGS="$CFLAGS -Wuninitialized" 63746dbd43aaSmrg 6375051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6376051ceee6Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 63776dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wuninitialized 6378051ceee6Smrg if eval test \${$cacheid+y} 6379051ceee6Smrgthen : 6380051ceee6Smrg printf %s "(cached) " >&6 6381051ceee6Smrgelse $as_nop 63826dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63836dbd43aaSmrg/* end confdefs.h. */ 63846dbd43aaSmrgint i; 63856dbd43aaSmrgint 6386051ceee6Smrgmain (void) 63876dbd43aaSmrg{ 63886dbd43aaSmrg 63896dbd43aaSmrg ; 63906dbd43aaSmrg return 0; 63916dbd43aaSmrg} 63926dbd43aaSmrg_ACEOF 6393051ceee6Smrgif ac_fn_c_try_link "$LINENO" 6394051ceee6Smrgthen : 63956dbd43aaSmrg eval $cacheid=yes 6396051ceee6Smrgelse $as_nop 63976dbd43aaSmrg eval $cacheid=no 63986dbd43aaSmrgfi 6399051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 64006dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 64016dbd43aaSmrgfi 64026dbd43aaSmrg 64036dbd43aaSmrg 64046dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 64056dbd43aaSmrg 64066dbd43aaSmrg eval supported=\$$cacheid 6407051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6408051ceee6Smrgprintf "%s\n" "$supported" >&6; } 64096dbd43aaSmrg if test "$supported" = "yes" ; then 64106dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 64116dbd43aaSmrg found="yes" 64126dbd43aaSmrg fi 64136dbd43aaSmrg fi 64146dbd43aaSmrg 64156dbd43aaSmrg 64166dbd43aaSmrg 64176dbd43aaSmrg 64186dbd43aaSmrg 64196dbd43aaSmrg 64206dbd43aaSmrg 64216dbd43aaSmrg 64226dbd43aaSmrg 64236dbd43aaSmrg 64246dbd43aaSmrg 64256dbd43aaSmrg 64266dbd43aaSmrg 64276dbd43aaSmrg 64286dbd43aaSmrg 64296dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 64306dbd43aaSmrg 64316dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 64326dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6433051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6434051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6435051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6436051ceee6Smrgthen : 6437051ceee6Smrg printf %s "(cached) " >&6 6438051ceee6Smrgelse $as_nop 64396dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64406dbd43aaSmrg/* end confdefs.h. */ 64416dbd43aaSmrgint i; 64426dbd43aaSmrg_ACEOF 6443051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6444051ceee6Smrgthen : 64456dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6446051ceee6Smrgelse $as_nop 64476dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 64486dbd43aaSmrgfi 6449051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 64506dbd43aaSmrgfi 6451051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6452051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 64536dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 64546dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 64556dbd43aaSmrgfi 64566dbd43aaSmrg 64576dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 64586dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 64596dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64606dbd43aaSmrg fi 64616dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6462051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6463051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6464051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6465051ceee6Smrgthen : 6466051ceee6Smrg printf %s "(cached) " >&6 6467051ceee6Smrgelse $as_nop 64686dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64696dbd43aaSmrg/* end confdefs.h. */ 64706dbd43aaSmrgint i; 64716dbd43aaSmrg_ACEOF 6472051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6473051ceee6Smrgthen : 64746dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6475051ceee6Smrgelse $as_nop 64766dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 64776dbd43aaSmrgfi 6478051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 64796dbd43aaSmrgfi 6480051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6481051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 64826dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 64836dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 64846dbd43aaSmrgfi 64856dbd43aaSmrg 64866dbd43aaSmrgfound="no" 64876dbd43aaSmrg 64886dbd43aaSmrg if test $found = "no" ; then 6489e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 64906dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64916dbd43aaSmrg fi 64926dbd43aaSmrg 6493e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 64946dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64956dbd43aaSmrg fi 64966dbd43aaSmrg 64976dbd43aaSmrg CFLAGS="$CFLAGS -Wshadow" 64986dbd43aaSmrg 6499051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6500051ceee6Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 65016dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wshadow 6502051ceee6Smrg if eval test \${$cacheid+y} 6503051ceee6Smrgthen : 6504051ceee6Smrg printf %s "(cached) " >&6 6505051ceee6Smrgelse $as_nop 65066dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65076dbd43aaSmrg/* end confdefs.h. */ 65086dbd43aaSmrgint i; 65096dbd43aaSmrgint 6510051ceee6Smrgmain (void) 65116dbd43aaSmrg{ 65126dbd43aaSmrg 65136dbd43aaSmrg ; 65146dbd43aaSmrg return 0; 65156dbd43aaSmrg} 65166dbd43aaSmrg_ACEOF 6517051ceee6Smrgif ac_fn_c_try_link "$LINENO" 6518051ceee6Smrgthen : 65196dbd43aaSmrg eval $cacheid=yes 6520051ceee6Smrgelse $as_nop 65216dbd43aaSmrg eval $cacheid=no 65226dbd43aaSmrgfi 6523051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 65246dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 65256dbd43aaSmrgfi 65266dbd43aaSmrg 65276dbd43aaSmrg 65286dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 65296dbd43aaSmrg 65306dbd43aaSmrg eval supported=\$$cacheid 6531051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6532051ceee6Smrgprintf "%s\n" "$supported" >&6; } 65336dbd43aaSmrg if test "$supported" = "yes" ; then 65346dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 65356dbd43aaSmrg found="yes" 65366dbd43aaSmrg fi 65376dbd43aaSmrg fi 65386dbd43aaSmrg 65396dbd43aaSmrg 65406dbd43aaSmrg 65416dbd43aaSmrg 65426dbd43aaSmrg 65436dbd43aaSmrg 65446dbd43aaSmrg 65456dbd43aaSmrg 65466dbd43aaSmrg 65476dbd43aaSmrg 65486dbd43aaSmrg 65496dbd43aaSmrg 65506dbd43aaSmrg 65516dbd43aaSmrg 65526dbd43aaSmrg 65536dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 65546dbd43aaSmrg 65556dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 65566dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6557051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6558051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6559051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6560051ceee6Smrgthen : 6561051ceee6Smrg printf %s "(cached) " >&6 6562051ceee6Smrgelse $as_nop 65636dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65646dbd43aaSmrg/* end confdefs.h. */ 65656dbd43aaSmrgint i; 65666dbd43aaSmrg_ACEOF 6567051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6568051ceee6Smrgthen : 65696dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6570051ceee6Smrgelse $as_nop 65716dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 65726dbd43aaSmrgfi 6573051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 65746dbd43aaSmrgfi 6575051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6576051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 65776dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 65786dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 65796dbd43aaSmrgfi 65806dbd43aaSmrg 65816dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 65826dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 65836dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65846dbd43aaSmrg fi 65856dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6586051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6587051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6588051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6589051ceee6Smrgthen : 6590051ceee6Smrg printf %s "(cached) " >&6 6591051ceee6Smrgelse $as_nop 65926dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65936dbd43aaSmrg/* end confdefs.h. */ 65946dbd43aaSmrgint i; 65956dbd43aaSmrg_ACEOF 6596051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6597051ceee6Smrgthen : 65986dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6599051ceee6Smrgelse $as_nop 66006dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 66016dbd43aaSmrgfi 6602051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 66036dbd43aaSmrgfi 6604051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6605051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 66066dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 66076dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 66086dbd43aaSmrgfi 66096dbd43aaSmrg 66106dbd43aaSmrgfound="no" 66116dbd43aaSmrg 66126dbd43aaSmrg if test $found = "no" ; then 6613e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 66146dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66156dbd43aaSmrg fi 66166dbd43aaSmrg 6617e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 66186dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66196dbd43aaSmrg fi 66206dbd43aaSmrg 6621e90eff46Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 66226dbd43aaSmrg 6623051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6624051ceee6Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6625e90eff46Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6626051ceee6Smrg if eval test \${$cacheid+y} 6627051ceee6Smrgthen : 6628051ceee6Smrg printf %s "(cached) " >&6 6629051ceee6Smrgelse $as_nop 66306dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66316dbd43aaSmrg/* end confdefs.h. */ 66326dbd43aaSmrgint i; 66336dbd43aaSmrgint 6634051ceee6Smrgmain (void) 66356dbd43aaSmrg{ 66366dbd43aaSmrg 66376dbd43aaSmrg ; 66386dbd43aaSmrg return 0; 66396dbd43aaSmrg} 66406dbd43aaSmrg_ACEOF 6641051ceee6Smrgif ac_fn_c_try_link "$LINENO" 6642051ceee6Smrgthen : 66436dbd43aaSmrg eval $cacheid=yes 6644051ceee6Smrgelse $as_nop 66456dbd43aaSmrg eval $cacheid=no 66466dbd43aaSmrgfi 6647051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 66486dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 66496dbd43aaSmrgfi 66506dbd43aaSmrg 66516dbd43aaSmrg 66526dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 66536dbd43aaSmrg 66546dbd43aaSmrg eval supported=\$$cacheid 6655051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6656051ceee6Smrgprintf "%s\n" "$supported" >&6; } 66576dbd43aaSmrg if test "$supported" = "yes" ; then 6658e90eff46Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 66596dbd43aaSmrg found="yes" 66606dbd43aaSmrg fi 66616dbd43aaSmrg fi 66626dbd43aaSmrg 66636dbd43aaSmrg 66646dbd43aaSmrg 66656dbd43aaSmrg 66666dbd43aaSmrg 66676dbd43aaSmrg 66686dbd43aaSmrg 66696dbd43aaSmrg 66706dbd43aaSmrg 66716dbd43aaSmrg 66726dbd43aaSmrg 66736dbd43aaSmrg 66746dbd43aaSmrg 66756dbd43aaSmrg 66766dbd43aaSmrg 66776dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 66786dbd43aaSmrg 66796dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 66806dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6681051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6682051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6683051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6684051ceee6Smrgthen : 6685051ceee6Smrg printf %s "(cached) " >&6 6686051ceee6Smrgelse $as_nop 66876dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66886dbd43aaSmrg/* end confdefs.h. */ 66896dbd43aaSmrgint i; 66906dbd43aaSmrg_ACEOF 6691051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6692051ceee6Smrgthen : 66936dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6694051ceee6Smrgelse $as_nop 66956dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 66966dbd43aaSmrgfi 6697051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 66986dbd43aaSmrgfi 6699051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6700051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 67016dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 67026dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 67036dbd43aaSmrgfi 67046dbd43aaSmrg 67056dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 67066dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 67076dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67086dbd43aaSmrg fi 67096dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6710051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6711051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6712051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6713051ceee6Smrgthen : 6714051ceee6Smrg printf %s "(cached) " >&6 6715051ceee6Smrgelse $as_nop 67166dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67176dbd43aaSmrg/* end confdefs.h. */ 67186dbd43aaSmrgint i; 67196dbd43aaSmrg_ACEOF 6720051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6721051ceee6Smrgthen : 67226dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6723051ceee6Smrgelse $as_nop 67246dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 67256dbd43aaSmrgfi 6726051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 67276dbd43aaSmrgfi 6728051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6729051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 67306dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 67316dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 67326dbd43aaSmrgfi 67336dbd43aaSmrg 67346dbd43aaSmrgfound="no" 67356dbd43aaSmrg 67366dbd43aaSmrg if test $found = "no" ; then 6737e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 67386dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67396dbd43aaSmrg fi 67406dbd43aaSmrg 6741e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 67426dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67436dbd43aaSmrg fi 67446dbd43aaSmrg 6745e90eff46Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 67466dbd43aaSmrg 6747051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6748051ceee6Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6749e90eff46Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6750051ceee6Smrg if eval test \${$cacheid+y} 6751051ceee6Smrgthen : 6752051ceee6Smrg printf %s "(cached) " >&6 6753051ceee6Smrgelse $as_nop 67546dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67556dbd43aaSmrg/* end confdefs.h. */ 67566dbd43aaSmrgint i; 67576dbd43aaSmrgint 6758051ceee6Smrgmain (void) 67596dbd43aaSmrg{ 67606dbd43aaSmrg 67616dbd43aaSmrg ; 67626dbd43aaSmrg return 0; 67636dbd43aaSmrg} 67646dbd43aaSmrg_ACEOF 6765051ceee6Smrgif ac_fn_c_try_link "$LINENO" 6766051ceee6Smrgthen : 67676dbd43aaSmrg eval $cacheid=yes 6768051ceee6Smrgelse $as_nop 67696dbd43aaSmrg eval $cacheid=no 67706dbd43aaSmrgfi 6771051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 67726dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 67736dbd43aaSmrgfi 67746dbd43aaSmrg 67756dbd43aaSmrg 67766dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 67776dbd43aaSmrg 67786dbd43aaSmrg eval supported=\$$cacheid 6779051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6780051ceee6Smrgprintf "%s\n" "$supported" >&6; } 67816dbd43aaSmrg if test "$supported" = "yes" ; then 6782e90eff46Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 67836dbd43aaSmrg found="yes" 67846dbd43aaSmrg fi 67856dbd43aaSmrg fi 67866dbd43aaSmrg 67876dbd43aaSmrg 67886dbd43aaSmrg 67896dbd43aaSmrg 67906dbd43aaSmrg 67916dbd43aaSmrg 67926dbd43aaSmrg 67936dbd43aaSmrg 67946dbd43aaSmrg 67956dbd43aaSmrg 67966dbd43aaSmrg 67976dbd43aaSmrg 67986dbd43aaSmrg 67996dbd43aaSmrg 68006dbd43aaSmrg 68016dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 68026dbd43aaSmrg 68036dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 68046dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6805051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6806051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6807051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6808051ceee6Smrgthen : 6809051ceee6Smrg printf %s "(cached) " >&6 6810051ceee6Smrgelse $as_nop 68116dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68126dbd43aaSmrg/* end confdefs.h. */ 68136dbd43aaSmrgint i; 68146dbd43aaSmrg_ACEOF 6815051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6816051ceee6Smrgthen : 68176dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6818051ceee6Smrgelse $as_nop 68196dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 68206dbd43aaSmrgfi 6821051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 68226dbd43aaSmrgfi 6823051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6824051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 68256dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 68266dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 68276dbd43aaSmrgfi 68286dbd43aaSmrg 68296dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 68306dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 68316dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68326dbd43aaSmrg fi 68336dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6834051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6835051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6836051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6837051ceee6Smrgthen : 6838051ceee6Smrg printf %s "(cached) " >&6 6839051ceee6Smrgelse $as_nop 68406dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68416dbd43aaSmrg/* end confdefs.h. */ 68426dbd43aaSmrgint i; 68436dbd43aaSmrg_ACEOF 6844051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6845051ceee6Smrgthen : 68466dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6847051ceee6Smrgelse $as_nop 68486dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 68496dbd43aaSmrgfi 6850051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 68516dbd43aaSmrgfi 6852051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6853051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 68546dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 68556dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 68566dbd43aaSmrgfi 68576dbd43aaSmrg 68586dbd43aaSmrgfound="no" 68596dbd43aaSmrg 68606dbd43aaSmrg if test $found = "no" ; then 6861e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 68626dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68636dbd43aaSmrg fi 68646dbd43aaSmrg 6865e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 68666dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68676dbd43aaSmrg fi 68686dbd43aaSmrg 6869e90eff46Smrg CFLAGS="$CFLAGS -Wredundant-decls" 68706dbd43aaSmrg 6871051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6872051ceee6Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6873e90eff46Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 6874051ceee6Smrg if eval test \${$cacheid+y} 6875051ceee6Smrgthen : 6876051ceee6Smrg printf %s "(cached) " >&6 6877051ceee6Smrgelse $as_nop 68786dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68796dbd43aaSmrg/* end confdefs.h. */ 68806dbd43aaSmrgint i; 68816dbd43aaSmrgint 6882051ceee6Smrgmain (void) 68836dbd43aaSmrg{ 68846dbd43aaSmrg 68856dbd43aaSmrg ; 68866dbd43aaSmrg return 0; 68876dbd43aaSmrg} 68886dbd43aaSmrg_ACEOF 6889051ceee6Smrgif ac_fn_c_try_link "$LINENO" 6890051ceee6Smrgthen : 68916dbd43aaSmrg eval $cacheid=yes 6892051ceee6Smrgelse $as_nop 68936dbd43aaSmrg eval $cacheid=no 68946dbd43aaSmrgfi 6895051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 68966dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 68976dbd43aaSmrgfi 68986dbd43aaSmrg 68996dbd43aaSmrg 69006dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 69016dbd43aaSmrg 69026dbd43aaSmrg eval supported=\$$cacheid 6903051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6904051ceee6Smrgprintf "%s\n" "$supported" >&6; } 69056dbd43aaSmrg if test "$supported" = "yes" ; then 6906e90eff46Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 69076dbd43aaSmrg found="yes" 69086dbd43aaSmrg fi 69096dbd43aaSmrg fi 69106dbd43aaSmrg 69116dbd43aaSmrg 69126dbd43aaSmrg 69136dbd43aaSmrg 69146dbd43aaSmrg 69156dbd43aaSmrg 69166dbd43aaSmrg 69176dbd43aaSmrg 69186dbd43aaSmrg 69196dbd43aaSmrg 69206dbd43aaSmrg 69216dbd43aaSmrg 69226dbd43aaSmrg 69236dbd43aaSmrg 69246dbd43aaSmrg 69256dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 69266dbd43aaSmrg 69276dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 69286dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6929051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6930051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6931051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 6932051ceee6Smrgthen : 6933051ceee6Smrg printf %s "(cached) " >&6 6934051ceee6Smrgelse $as_nop 69356dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69366dbd43aaSmrg/* end confdefs.h. */ 69376dbd43aaSmrgint i; 69386dbd43aaSmrg_ACEOF 6939051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6940051ceee6Smrgthen : 69416dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 6942051ceee6Smrgelse $as_nop 69436dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 69446dbd43aaSmrgfi 6945051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 69466dbd43aaSmrgfi 6947051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6948051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 69496dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 69506dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 69516dbd43aaSmrgfi 69526dbd43aaSmrg 69536dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 69546dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 69556dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69566dbd43aaSmrg fi 69576dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6958051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6959051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6960051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6961051ceee6Smrgthen : 6962051ceee6Smrg printf %s "(cached) " >&6 6963051ceee6Smrgelse $as_nop 69646dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69656dbd43aaSmrg/* end confdefs.h. */ 69666dbd43aaSmrgint i; 69676dbd43aaSmrg_ACEOF 6968051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 6969051ceee6Smrgthen : 69706dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 6971051ceee6Smrgelse $as_nop 69726dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 69736dbd43aaSmrgfi 6974051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 69756dbd43aaSmrgfi 6976051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6977051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 69786dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 69796dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 69806dbd43aaSmrgfi 69816dbd43aaSmrg 69826dbd43aaSmrgfound="no" 69836dbd43aaSmrg 69846dbd43aaSmrg if test $found = "no" ; then 6985e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 69866dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69876dbd43aaSmrg fi 69886dbd43aaSmrg 6989e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 69906dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69916dbd43aaSmrg fi 69926dbd43aaSmrg 6993e90eff46Smrg CFLAGS="$CFLAGS -Wlogical-op" 69946dbd43aaSmrg 6995051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6996051ceee6Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 6997e90eff46Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 6998051ceee6Smrg if eval test \${$cacheid+y} 6999051ceee6Smrgthen : 7000051ceee6Smrg printf %s "(cached) " >&6 7001051ceee6Smrgelse $as_nop 70026dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70036dbd43aaSmrg/* end confdefs.h. */ 70046dbd43aaSmrgint i; 70056dbd43aaSmrgint 7006051ceee6Smrgmain (void) 70076dbd43aaSmrg{ 70086dbd43aaSmrg 70096dbd43aaSmrg ; 70106dbd43aaSmrg return 0; 70116dbd43aaSmrg} 70126dbd43aaSmrg_ACEOF 7013051ceee6Smrgif ac_fn_c_try_link "$LINENO" 7014051ceee6Smrgthen : 70156dbd43aaSmrg eval $cacheid=yes 7016051ceee6Smrgelse $as_nop 70176dbd43aaSmrg eval $cacheid=no 70186dbd43aaSmrgfi 7019051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 70206dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 70216dbd43aaSmrgfi 70226dbd43aaSmrg 70236dbd43aaSmrg 70246dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 70256dbd43aaSmrg 70266dbd43aaSmrg eval supported=\$$cacheid 7027051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7028051ceee6Smrgprintf "%s\n" "$supported" >&6; } 70296dbd43aaSmrg if test "$supported" = "yes" ; then 7030e90eff46Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 70316dbd43aaSmrg found="yes" 70326dbd43aaSmrg fi 70336dbd43aaSmrg fi 70346dbd43aaSmrg 70356dbd43aaSmrg 70366dbd43aaSmrg 70376dbd43aaSmrg# These are currently disabled because they are noisy. They will be enabled 70386dbd43aaSmrg# in the future once the codebase is sufficiently modernized to silence 70396dbd43aaSmrg# them. For now, I don't want them to drown out the other warnings. 70406dbd43aaSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 70416dbd43aaSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7042e90eff46Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 70436dbd43aaSmrg 70446dbd43aaSmrg# Turn some warnings into errors, so we don't accidently get successful builds 70456dbd43aaSmrg# when there are problems that should be fixed. 70466dbd43aaSmrg 70476dbd43aaSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 70486dbd43aaSmrg 70496dbd43aaSmrg 70506dbd43aaSmrg 70516dbd43aaSmrg 70526dbd43aaSmrg 70536dbd43aaSmrg 70546dbd43aaSmrg 70556dbd43aaSmrg 70566dbd43aaSmrg 70576dbd43aaSmrg 70586dbd43aaSmrg 70596dbd43aaSmrg 70606dbd43aaSmrg 70616dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 70626dbd43aaSmrg 70636dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 70646dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7065051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7066051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7067051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7068051ceee6Smrgthen : 7069051ceee6Smrg printf %s "(cached) " >&6 7070051ceee6Smrgelse $as_nop 70716dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70726dbd43aaSmrg/* end confdefs.h. */ 70736dbd43aaSmrgint i; 70746dbd43aaSmrg_ACEOF 7075051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7076051ceee6Smrgthen : 70776dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7078051ceee6Smrgelse $as_nop 70796dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 70806dbd43aaSmrgfi 7081051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 70826dbd43aaSmrgfi 7083051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7084051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 70856dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 70866dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 70876dbd43aaSmrgfi 70886dbd43aaSmrg 70896dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 70906dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 70916dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70926dbd43aaSmrg fi 70936dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7094051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7095051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7096051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7097051ceee6Smrgthen : 7098051ceee6Smrg printf %s "(cached) " >&6 7099051ceee6Smrgelse $as_nop 71006dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71016dbd43aaSmrg/* end confdefs.h. */ 71026dbd43aaSmrgint i; 71036dbd43aaSmrg_ACEOF 7104051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7105051ceee6Smrgthen : 71066dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7107051ceee6Smrgelse $as_nop 71086dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 71096dbd43aaSmrgfi 7110051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 71116dbd43aaSmrgfi 7112051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7113051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 71146dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 71156dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 71166dbd43aaSmrgfi 71176dbd43aaSmrg 71186dbd43aaSmrgfound="no" 71196dbd43aaSmrg 71206dbd43aaSmrg if test $found = "no" ; then 7121e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 71226dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71236dbd43aaSmrg fi 71246dbd43aaSmrg 7125e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 71266dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71276dbd43aaSmrg fi 71286dbd43aaSmrg 71296dbd43aaSmrg CFLAGS="$CFLAGS -Werror=implicit" 71306dbd43aaSmrg 7131051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7132051ceee6Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 7133e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 7134051ceee6Smrg if eval test \${$cacheid+y} 7135051ceee6Smrgthen : 7136051ceee6Smrg printf %s "(cached) " >&6 7137051ceee6Smrgelse $as_nop 71386dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71396dbd43aaSmrg/* end confdefs.h. */ 71406dbd43aaSmrgint i; 71416dbd43aaSmrgint 7142051ceee6Smrgmain (void) 71436dbd43aaSmrg{ 71446dbd43aaSmrg 71456dbd43aaSmrg ; 71466dbd43aaSmrg return 0; 71476dbd43aaSmrg} 71486dbd43aaSmrg_ACEOF 7149051ceee6Smrgif ac_fn_c_try_link "$LINENO" 7150051ceee6Smrgthen : 71516dbd43aaSmrg eval $cacheid=yes 7152051ceee6Smrgelse $as_nop 71536dbd43aaSmrg eval $cacheid=no 71546dbd43aaSmrgfi 7155051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 71566dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 71576dbd43aaSmrgfi 71586dbd43aaSmrg 71596dbd43aaSmrg 71606dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 71616dbd43aaSmrg 71626dbd43aaSmrg eval supported=\$$cacheid 7163051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7164051ceee6Smrgprintf "%s\n" "$supported" >&6; } 71656dbd43aaSmrg if test "$supported" = "yes" ; then 71666dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 71676dbd43aaSmrg found="yes" 71686dbd43aaSmrg fi 71696dbd43aaSmrg fi 71706dbd43aaSmrg 71716dbd43aaSmrg if test $found = "no" ; then 7172e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 71736dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71746dbd43aaSmrg fi 71756dbd43aaSmrg 7176e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 71776dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71786dbd43aaSmrg fi 71796dbd43aaSmrg 71806dbd43aaSmrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 71816dbd43aaSmrg 7182051ceee6Smrg { 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 7183051ceee6Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7184e90eff46Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7185051ceee6Smrg if eval test \${$cacheid+y} 7186051ceee6Smrgthen : 7187051ceee6Smrg printf %s "(cached) " >&6 7188051ceee6Smrgelse $as_nop 71896dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71906dbd43aaSmrg/* end confdefs.h. */ 71916dbd43aaSmrgint i; 71926dbd43aaSmrgint 7193051ceee6Smrgmain (void) 71946dbd43aaSmrg{ 71956dbd43aaSmrg 71966dbd43aaSmrg ; 71976dbd43aaSmrg return 0; 71986dbd43aaSmrg} 71996dbd43aaSmrg_ACEOF 7200051ceee6Smrgif ac_fn_c_try_link "$LINENO" 7201051ceee6Smrgthen : 72026dbd43aaSmrg eval $cacheid=yes 7203051ceee6Smrgelse $as_nop 72046dbd43aaSmrg eval $cacheid=no 72056dbd43aaSmrgfi 7206051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 72076dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 72086dbd43aaSmrgfi 72096dbd43aaSmrg 72106dbd43aaSmrg 72116dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 72126dbd43aaSmrg 72136dbd43aaSmrg eval supported=\$$cacheid 7214051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7215051ceee6Smrgprintf "%s\n" "$supported" >&6; } 72166dbd43aaSmrg if test "$supported" = "yes" ; then 72176dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 72186dbd43aaSmrg found="yes" 72196dbd43aaSmrg fi 72206dbd43aaSmrg fi 72216dbd43aaSmrg 72226dbd43aaSmrg 72236dbd43aaSmrg 72246dbd43aaSmrg 72256dbd43aaSmrg 72266dbd43aaSmrg 72276dbd43aaSmrg 72286dbd43aaSmrg 72296dbd43aaSmrg 72306dbd43aaSmrg 72316dbd43aaSmrg 72326dbd43aaSmrg 72336dbd43aaSmrg 72346dbd43aaSmrg 72356dbd43aaSmrg 72366dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 72376dbd43aaSmrg 72386dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 72396dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7240051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7241051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7242051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7243051ceee6Smrgthen : 7244051ceee6Smrg printf %s "(cached) " >&6 7245051ceee6Smrgelse $as_nop 72466dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72476dbd43aaSmrg/* end confdefs.h. */ 72486dbd43aaSmrgint i; 72496dbd43aaSmrg_ACEOF 7250051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7251051ceee6Smrgthen : 72526dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7253051ceee6Smrgelse $as_nop 72546dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 72556dbd43aaSmrgfi 7256051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 72576dbd43aaSmrgfi 7258051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7259051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 72606dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 72616dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 72626dbd43aaSmrgfi 72636dbd43aaSmrg 72646dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 72656dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 72666dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72676dbd43aaSmrg fi 72686dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7269051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7270051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7271051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7272051ceee6Smrgthen : 7273051ceee6Smrg printf %s "(cached) " >&6 7274051ceee6Smrgelse $as_nop 72756dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72766dbd43aaSmrg/* end confdefs.h. */ 72776dbd43aaSmrgint i; 72786dbd43aaSmrg_ACEOF 7279051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7280051ceee6Smrgthen : 72816dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7282051ceee6Smrgelse $as_nop 72836dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 72846dbd43aaSmrgfi 7285051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 72866dbd43aaSmrgfi 7287051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7288051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 72896dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 72906dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 72916dbd43aaSmrgfi 72926dbd43aaSmrg 72936dbd43aaSmrgfound="no" 72946dbd43aaSmrg 72956dbd43aaSmrg if test $found = "no" ; then 7296e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 72976dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72986dbd43aaSmrg fi 72996dbd43aaSmrg 7300e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 73016dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73026dbd43aaSmrg fi 73036dbd43aaSmrg 73046dbd43aaSmrg CFLAGS="$CFLAGS -Werror=nonnull" 73056dbd43aaSmrg 7306051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7307051ceee6Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7308e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 7309051ceee6Smrg if eval test \${$cacheid+y} 7310051ceee6Smrgthen : 7311051ceee6Smrg printf %s "(cached) " >&6 7312051ceee6Smrgelse $as_nop 73136dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73146dbd43aaSmrg/* end confdefs.h. */ 73156dbd43aaSmrgint i; 73166dbd43aaSmrgint 7317051ceee6Smrgmain (void) 73186dbd43aaSmrg{ 73196dbd43aaSmrg 73206dbd43aaSmrg ; 73216dbd43aaSmrg return 0; 73226dbd43aaSmrg} 73236dbd43aaSmrg_ACEOF 7324051ceee6Smrgif ac_fn_c_try_link "$LINENO" 7325051ceee6Smrgthen : 73266dbd43aaSmrg eval $cacheid=yes 7327051ceee6Smrgelse $as_nop 73286dbd43aaSmrg eval $cacheid=no 73296dbd43aaSmrgfi 7330051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 73316dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 73326dbd43aaSmrgfi 73336dbd43aaSmrg 73346dbd43aaSmrg 73356dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 73366dbd43aaSmrg 73376dbd43aaSmrg eval supported=\$$cacheid 7338051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7339051ceee6Smrgprintf "%s\n" "$supported" >&6; } 73406dbd43aaSmrg if test "$supported" = "yes" ; then 73416dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 73426dbd43aaSmrg found="yes" 73436dbd43aaSmrg fi 73446dbd43aaSmrg fi 73456dbd43aaSmrg 73466dbd43aaSmrg 73476dbd43aaSmrg 73486dbd43aaSmrg 73496dbd43aaSmrg 73506dbd43aaSmrg 73516dbd43aaSmrg 73526dbd43aaSmrg 73536dbd43aaSmrg 73546dbd43aaSmrg 73556dbd43aaSmrg 73566dbd43aaSmrg 73576dbd43aaSmrg 73586dbd43aaSmrg 73596dbd43aaSmrg 73606dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 73616dbd43aaSmrg 73626dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 73636dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7364051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7365051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7366051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7367051ceee6Smrgthen : 7368051ceee6Smrg printf %s "(cached) " >&6 7369051ceee6Smrgelse $as_nop 73706dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73716dbd43aaSmrg/* end confdefs.h. */ 73726dbd43aaSmrgint i; 73736dbd43aaSmrg_ACEOF 7374051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7375051ceee6Smrgthen : 73766dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7377051ceee6Smrgelse $as_nop 73786dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 73796dbd43aaSmrgfi 7380051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 73816dbd43aaSmrgfi 7382051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7383051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 73846dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 73856dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 73866dbd43aaSmrgfi 73876dbd43aaSmrg 73886dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 73896dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 73906dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73916dbd43aaSmrg fi 73926dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7393051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7394051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7395051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7396051ceee6Smrgthen : 7397051ceee6Smrg printf %s "(cached) " >&6 7398051ceee6Smrgelse $as_nop 73996dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74006dbd43aaSmrg/* end confdefs.h. */ 74016dbd43aaSmrgint i; 74026dbd43aaSmrg_ACEOF 7403051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7404051ceee6Smrgthen : 74056dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7406051ceee6Smrgelse $as_nop 74076dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 74086dbd43aaSmrgfi 7409051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 74106dbd43aaSmrgfi 7411051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7412051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 74136dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 74146dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 74156dbd43aaSmrgfi 74166dbd43aaSmrg 74176dbd43aaSmrgfound="no" 74186dbd43aaSmrg 74196dbd43aaSmrg if test $found = "no" ; then 7420e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 74216dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74226dbd43aaSmrg fi 74236dbd43aaSmrg 7424e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 74256dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74266dbd43aaSmrg fi 74276dbd43aaSmrg 74286dbd43aaSmrg CFLAGS="$CFLAGS -Werror=init-self" 74296dbd43aaSmrg 7430051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7431051ceee6Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 7432e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 7433051ceee6Smrg if eval test \${$cacheid+y} 7434051ceee6Smrgthen : 7435051ceee6Smrg printf %s "(cached) " >&6 7436051ceee6Smrgelse $as_nop 74376dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74386dbd43aaSmrg/* end confdefs.h. */ 74396dbd43aaSmrgint i; 74406dbd43aaSmrgint 7441051ceee6Smrgmain (void) 74426dbd43aaSmrg{ 74436dbd43aaSmrg 74446dbd43aaSmrg ; 74456dbd43aaSmrg return 0; 74466dbd43aaSmrg} 74476dbd43aaSmrg_ACEOF 7448051ceee6Smrgif ac_fn_c_try_link "$LINENO" 7449051ceee6Smrgthen : 74506dbd43aaSmrg eval $cacheid=yes 7451051ceee6Smrgelse $as_nop 74526dbd43aaSmrg eval $cacheid=no 74536dbd43aaSmrgfi 7454051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 74556dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 74566dbd43aaSmrgfi 74576dbd43aaSmrg 74586dbd43aaSmrg 74596dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 74606dbd43aaSmrg 74616dbd43aaSmrg eval supported=\$$cacheid 7462051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7463051ceee6Smrgprintf "%s\n" "$supported" >&6; } 74646dbd43aaSmrg if test "$supported" = "yes" ; then 74656dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 74666dbd43aaSmrg found="yes" 74676dbd43aaSmrg fi 74686dbd43aaSmrg fi 74696dbd43aaSmrg 74706dbd43aaSmrg 74716dbd43aaSmrg 74726dbd43aaSmrg 74736dbd43aaSmrg 74746dbd43aaSmrg 74756dbd43aaSmrg 74766dbd43aaSmrg 74776dbd43aaSmrg 74786dbd43aaSmrg 74796dbd43aaSmrg 74806dbd43aaSmrg 74816dbd43aaSmrg 74826dbd43aaSmrg 74836dbd43aaSmrg 74846dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 74856dbd43aaSmrg 74866dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 74876dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7488051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7489051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7490051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7491051ceee6Smrgthen : 7492051ceee6Smrg printf %s "(cached) " >&6 7493051ceee6Smrgelse $as_nop 74946dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74956dbd43aaSmrg/* end confdefs.h. */ 74966dbd43aaSmrgint i; 74976dbd43aaSmrg_ACEOF 7498051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7499051ceee6Smrgthen : 75006dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7501051ceee6Smrgelse $as_nop 75026dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 75036dbd43aaSmrgfi 7504051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 75056dbd43aaSmrgfi 7506051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7507051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 75086dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 75096dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 75106dbd43aaSmrgfi 75116dbd43aaSmrg 75126dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 75136dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 75146dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75156dbd43aaSmrg fi 75166dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7517051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7518051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7519051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7520051ceee6Smrgthen : 7521051ceee6Smrg printf %s "(cached) " >&6 7522051ceee6Smrgelse $as_nop 75236dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75246dbd43aaSmrg/* end confdefs.h. */ 75256dbd43aaSmrgint i; 75266dbd43aaSmrg_ACEOF 7527051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7528051ceee6Smrgthen : 75296dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7530051ceee6Smrgelse $as_nop 75316dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 75326dbd43aaSmrgfi 7533051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 75346dbd43aaSmrgfi 7535051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7536051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 75376dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 75386dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 75396dbd43aaSmrgfi 75406dbd43aaSmrg 75416dbd43aaSmrgfound="no" 75426dbd43aaSmrg 75436dbd43aaSmrg if test $found = "no" ; then 7544e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 75456dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75466dbd43aaSmrg fi 75476dbd43aaSmrg 7548e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 75496dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75506dbd43aaSmrg fi 75516dbd43aaSmrg 75526dbd43aaSmrg CFLAGS="$CFLAGS -Werror=main" 75536dbd43aaSmrg 7554051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7555051ceee6Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 7556e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_main 7557051ceee6Smrg if eval test \${$cacheid+y} 7558051ceee6Smrgthen : 7559051ceee6Smrg printf %s "(cached) " >&6 7560051ceee6Smrgelse $as_nop 75616dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75626dbd43aaSmrg/* end confdefs.h. */ 75636dbd43aaSmrgint i; 75646dbd43aaSmrgint 7565051ceee6Smrgmain (void) 75666dbd43aaSmrg{ 75676dbd43aaSmrg 75686dbd43aaSmrg ; 75696dbd43aaSmrg return 0; 75706dbd43aaSmrg} 75716dbd43aaSmrg_ACEOF 7572051ceee6Smrgif ac_fn_c_try_link "$LINENO" 7573051ceee6Smrgthen : 75746dbd43aaSmrg eval $cacheid=yes 7575051ceee6Smrgelse $as_nop 75766dbd43aaSmrg eval $cacheid=no 75776dbd43aaSmrgfi 7578051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 75796dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 75806dbd43aaSmrgfi 75816dbd43aaSmrg 75826dbd43aaSmrg 75836dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 75846dbd43aaSmrg 75856dbd43aaSmrg eval supported=\$$cacheid 7586051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7587051ceee6Smrgprintf "%s\n" "$supported" >&6; } 75886dbd43aaSmrg if test "$supported" = "yes" ; then 75896dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 75906dbd43aaSmrg found="yes" 75916dbd43aaSmrg fi 75926dbd43aaSmrg fi 75936dbd43aaSmrg 75946dbd43aaSmrg 75956dbd43aaSmrg 75966dbd43aaSmrg 75976dbd43aaSmrg 75986dbd43aaSmrg 75996dbd43aaSmrg 76006dbd43aaSmrg 76016dbd43aaSmrg 76026dbd43aaSmrg 76036dbd43aaSmrg 76046dbd43aaSmrg 76056dbd43aaSmrg 76066dbd43aaSmrg 76076dbd43aaSmrg 76086dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 76096dbd43aaSmrg 76106dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 76116dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7612051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7613051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7614051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7615051ceee6Smrgthen : 7616051ceee6Smrg printf %s "(cached) " >&6 7617051ceee6Smrgelse $as_nop 76186dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76196dbd43aaSmrg/* end confdefs.h. */ 76206dbd43aaSmrgint i; 76216dbd43aaSmrg_ACEOF 7622051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7623051ceee6Smrgthen : 76246dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7625051ceee6Smrgelse $as_nop 76266dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 76276dbd43aaSmrgfi 7628051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 76296dbd43aaSmrgfi 7630051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7631051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 76326dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 76336dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 76346dbd43aaSmrgfi 76356dbd43aaSmrg 76366dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 76376dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 76386dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76396dbd43aaSmrg fi 76406dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7641051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7642051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7643051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7644051ceee6Smrgthen : 7645051ceee6Smrg printf %s "(cached) " >&6 7646051ceee6Smrgelse $as_nop 76476dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76486dbd43aaSmrg/* end confdefs.h. */ 76496dbd43aaSmrgint i; 76506dbd43aaSmrg_ACEOF 7651051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7652051ceee6Smrgthen : 76536dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7654051ceee6Smrgelse $as_nop 76556dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 76566dbd43aaSmrgfi 7657051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 76586dbd43aaSmrgfi 7659051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7660051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 76616dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 76626dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 76636dbd43aaSmrgfi 76646dbd43aaSmrg 76656dbd43aaSmrgfound="no" 76666dbd43aaSmrg 76676dbd43aaSmrg if test $found = "no" ; then 7668e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 76696dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76706dbd43aaSmrg fi 76716dbd43aaSmrg 7672e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 76736dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76746dbd43aaSmrg fi 76756dbd43aaSmrg 76766dbd43aaSmrg CFLAGS="$CFLAGS -Werror=missing-braces" 76776dbd43aaSmrg 7678051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7679051ceee6Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7680e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 7681051ceee6Smrg if eval test \${$cacheid+y} 7682051ceee6Smrgthen : 7683051ceee6Smrg printf %s "(cached) " >&6 7684051ceee6Smrgelse $as_nop 76856dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76866dbd43aaSmrg/* end confdefs.h. */ 76876dbd43aaSmrgint i; 76886dbd43aaSmrgint 7689051ceee6Smrgmain (void) 76906dbd43aaSmrg{ 76916dbd43aaSmrg 76926dbd43aaSmrg ; 76936dbd43aaSmrg return 0; 76946dbd43aaSmrg} 76956dbd43aaSmrg_ACEOF 7696051ceee6Smrgif ac_fn_c_try_link "$LINENO" 7697051ceee6Smrgthen : 76986dbd43aaSmrg eval $cacheid=yes 7699051ceee6Smrgelse $as_nop 77006dbd43aaSmrg eval $cacheid=no 77016dbd43aaSmrgfi 7702051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 77036dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 77046dbd43aaSmrgfi 77056dbd43aaSmrg 77066dbd43aaSmrg 77076dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 77086dbd43aaSmrg 77096dbd43aaSmrg eval supported=\$$cacheid 7710051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7711051ceee6Smrgprintf "%s\n" "$supported" >&6; } 77126dbd43aaSmrg if test "$supported" = "yes" ; then 77136dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 77146dbd43aaSmrg found="yes" 77156dbd43aaSmrg fi 77166dbd43aaSmrg fi 77176dbd43aaSmrg 77186dbd43aaSmrg 77196dbd43aaSmrg 77206dbd43aaSmrg 77216dbd43aaSmrg 77226dbd43aaSmrg 77236dbd43aaSmrg 77246dbd43aaSmrg 77256dbd43aaSmrg 77266dbd43aaSmrg 77276dbd43aaSmrg 77286dbd43aaSmrg 77296dbd43aaSmrg 77306dbd43aaSmrg 77316dbd43aaSmrg 77326dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 77336dbd43aaSmrg 77346dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 77356dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7736051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7737051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7738051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7739051ceee6Smrgthen : 7740051ceee6Smrg printf %s "(cached) " >&6 7741051ceee6Smrgelse $as_nop 77426dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77436dbd43aaSmrg/* end confdefs.h. */ 77446dbd43aaSmrgint i; 77456dbd43aaSmrg_ACEOF 7746051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7747051ceee6Smrgthen : 77486dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7749051ceee6Smrgelse $as_nop 77506dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 77516dbd43aaSmrgfi 7752051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 77536dbd43aaSmrgfi 7754051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7755051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 77566dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 77576dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 77586dbd43aaSmrgfi 77596dbd43aaSmrg 77606dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 77616dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 77626dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77636dbd43aaSmrg fi 77646dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7765051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7766051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7767051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7768051ceee6Smrgthen : 7769051ceee6Smrg printf %s "(cached) " >&6 7770051ceee6Smrgelse $as_nop 77716dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77726dbd43aaSmrg/* end confdefs.h. */ 77736dbd43aaSmrgint i; 77746dbd43aaSmrg_ACEOF 7775051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7776051ceee6Smrgthen : 77776dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7778051ceee6Smrgelse $as_nop 77796dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 77806dbd43aaSmrgfi 7781051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 77826dbd43aaSmrgfi 7783051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7784051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 77856dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 77866dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 77876dbd43aaSmrgfi 77886dbd43aaSmrg 77896dbd43aaSmrgfound="no" 77906dbd43aaSmrg 77916dbd43aaSmrg if test $found = "no" ; then 7792e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 77936dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77946dbd43aaSmrg fi 77956dbd43aaSmrg 7796e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 77976dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77986dbd43aaSmrg fi 77996dbd43aaSmrg 78006dbd43aaSmrg CFLAGS="$CFLAGS -Werror=sequence-point" 78016dbd43aaSmrg 7802051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7803051ceee6Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7804e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 7805051ceee6Smrg if eval test \${$cacheid+y} 7806051ceee6Smrgthen : 7807051ceee6Smrg printf %s "(cached) " >&6 7808051ceee6Smrgelse $as_nop 78096dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78106dbd43aaSmrg/* end confdefs.h. */ 78116dbd43aaSmrgint i; 78126dbd43aaSmrgint 7813051ceee6Smrgmain (void) 78146dbd43aaSmrg{ 78156dbd43aaSmrg 78166dbd43aaSmrg ; 78176dbd43aaSmrg return 0; 78186dbd43aaSmrg} 78196dbd43aaSmrg_ACEOF 7820051ceee6Smrgif ac_fn_c_try_link "$LINENO" 7821051ceee6Smrgthen : 78226dbd43aaSmrg eval $cacheid=yes 7823051ceee6Smrgelse $as_nop 78246dbd43aaSmrg eval $cacheid=no 78256dbd43aaSmrgfi 7826051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 78276dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 78286dbd43aaSmrgfi 78296dbd43aaSmrg 78306dbd43aaSmrg 78316dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 78326dbd43aaSmrg 78336dbd43aaSmrg eval supported=\$$cacheid 7834051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7835051ceee6Smrgprintf "%s\n" "$supported" >&6; } 78366dbd43aaSmrg if test "$supported" = "yes" ; then 78376dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 78386dbd43aaSmrg found="yes" 78396dbd43aaSmrg fi 78406dbd43aaSmrg fi 78416dbd43aaSmrg 78426dbd43aaSmrg 78436dbd43aaSmrg 78446dbd43aaSmrg 78456dbd43aaSmrg 78466dbd43aaSmrg 78476dbd43aaSmrg 78486dbd43aaSmrg 78496dbd43aaSmrg 78506dbd43aaSmrg 78516dbd43aaSmrg 78526dbd43aaSmrg 78536dbd43aaSmrg 78546dbd43aaSmrg 78556dbd43aaSmrg 78566dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 78576dbd43aaSmrg 78586dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 78596dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7860051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7861051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7862051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 7863051ceee6Smrgthen : 7864051ceee6Smrg printf %s "(cached) " >&6 7865051ceee6Smrgelse $as_nop 78666dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78676dbd43aaSmrg/* end confdefs.h. */ 78686dbd43aaSmrgint i; 78696dbd43aaSmrg_ACEOF 7870051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7871051ceee6Smrgthen : 78726dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 7873051ceee6Smrgelse $as_nop 78746dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 78756dbd43aaSmrgfi 7876051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 78776dbd43aaSmrgfi 7878051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7879051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 78806dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 78816dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 78826dbd43aaSmrgfi 78836dbd43aaSmrg 78846dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 78856dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 78866dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78876dbd43aaSmrg fi 78886dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7889051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7890051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7891051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7892051ceee6Smrgthen : 7893051ceee6Smrg printf %s "(cached) " >&6 7894051ceee6Smrgelse $as_nop 78956dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78966dbd43aaSmrg/* end confdefs.h. */ 78976dbd43aaSmrgint i; 78986dbd43aaSmrg_ACEOF 7899051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 7900051ceee6Smrgthen : 79016dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 7902051ceee6Smrgelse $as_nop 79036dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 79046dbd43aaSmrgfi 7905051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 79066dbd43aaSmrgfi 7907051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7908051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 79096dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 79106dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 79116dbd43aaSmrgfi 79126dbd43aaSmrg 79136dbd43aaSmrgfound="no" 79146dbd43aaSmrg 79156dbd43aaSmrg if test $found = "no" ; then 7916e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 79176dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79186dbd43aaSmrg fi 79196dbd43aaSmrg 7920e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 79216dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79226dbd43aaSmrg fi 79236dbd43aaSmrg 79246dbd43aaSmrg CFLAGS="$CFLAGS -Werror=return-type" 79256dbd43aaSmrg 7926051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7927051ceee6Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 7928e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 7929051ceee6Smrg if eval test \${$cacheid+y} 7930051ceee6Smrgthen : 7931051ceee6Smrg printf %s "(cached) " >&6 7932051ceee6Smrgelse $as_nop 79336dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79346dbd43aaSmrg/* end confdefs.h. */ 79356dbd43aaSmrgint i; 79366dbd43aaSmrgint 7937051ceee6Smrgmain (void) 79386dbd43aaSmrg{ 79396dbd43aaSmrg 79406dbd43aaSmrg ; 79416dbd43aaSmrg return 0; 79426dbd43aaSmrg} 79436dbd43aaSmrg_ACEOF 7944051ceee6Smrgif ac_fn_c_try_link "$LINENO" 7945051ceee6Smrgthen : 79466dbd43aaSmrg eval $cacheid=yes 7947051ceee6Smrgelse $as_nop 79486dbd43aaSmrg eval $cacheid=no 79496dbd43aaSmrgfi 7950051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 79516dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 79526dbd43aaSmrgfi 79536dbd43aaSmrg 79546dbd43aaSmrg 79556dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 79566dbd43aaSmrg 79576dbd43aaSmrg eval supported=\$$cacheid 7958051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7959051ceee6Smrgprintf "%s\n" "$supported" >&6; } 79606dbd43aaSmrg if test "$supported" = "yes" ; then 79616dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 79626dbd43aaSmrg found="yes" 79636dbd43aaSmrg fi 79646dbd43aaSmrg fi 79656dbd43aaSmrg 79666dbd43aaSmrg if test $found = "no" ; then 7967e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 79686dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79696dbd43aaSmrg fi 79706dbd43aaSmrg 7971e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 79726dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79736dbd43aaSmrg fi 79746dbd43aaSmrg 79756dbd43aaSmrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 79766dbd43aaSmrg 7977051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7978051ceee6Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7979e90eff46Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7980051ceee6Smrg if eval test \${$cacheid+y} 7981051ceee6Smrgthen : 7982051ceee6Smrg printf %s "(cached) " >&6 7983051ceee6Smrgelse $as_nop 79846dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79856dbd43aaSmrg/* end confdefs.h. */ 79866dbd43aaSmrgint i; 79876dbd43aaSmrgint 7988051ceee6Smrgmain (void) 79896dbd43aaSmrg{ 79906dbd43aaSmrg 79916dbd43aaSmrg ; 79926dbd43aaSmrg return 0; 79936dbd43aaSmrg} 79946dbd43aaSmrg_ACEOF 7995051ceee6Smrgif ac_fn_c_try_link "$LINENO" 7996051ceee6Smrgthen : 79976dbd43aaSmrg eval $cacheid=yes 7998051ceee6Smrgelse $as_nop 79996dbd43aaSmrg eval $cacheid=no 80006dbd43aaSmrgfi 8001051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 80026dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 80036dbd43aaSmrgfi 80046dbd43aaSmrg 80056dbd43aaSmrg 80066dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 80076dbd43aaSmrg 80086dbd43aaSmrg eval supported=\$$cacheid 8009051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8010051ceee6Smrgprintf "%s\n" "$supported" >&6; } 80116dbd43aaSmrg if test "$supported" = "yes" ; then 80126dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 80136dbd43aaSmrg found="yes" 80146dbd43aaSmrg fi 80156dbd43aaSmrg fi 80166dbd43aaSmrg 80176dbd43aaSmrg 80186dbd43aaSmrg 80196dbd43aaSmrg 80206dbd43aaSmrg 80216dbd43aaSmrg 80226dbd43aaSmrg 80236dbd43aaSmrg 80246dbd43aaSmrg 80256dbd43aaSmrg 80266dbd43aaSmrg 80276dbd43aaSmrg 80286dbd43aaSmrg 80296dbd43aaSmrg 80306dbd43aaSmrg 80316dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 80326dbd43aaSmrg 80336dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 80346dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8035051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8036051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8037051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8038051ceee6Smrgthen : 8039051ceee6Smrg printf %s "(cached) " >&6 8040051ceee6Smrgelse $as_nop 80416dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80426dbd43aaSmrg/* end confdefs.h. */ 80436dbd43aaSmrgint i; 80446dbd43aaSmrg_ACEOF 8045051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8046051ceee6Smrgthen : 80476dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8048051ceee6Smrgelse $as_nop 80496dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 80506dbd43aaSmrgfi 8051051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 80526dbd43aaSmrgfi 8053051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8054051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 80556dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 80566dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 80576dbd43aaSmrgfi 80586dbd43aaSmrg 80596dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 80606dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 80616dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80626dbd43aaSmrg fi 80636dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8064051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8065051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8066051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8067051ceee6Smrgthen : 8068051ceee6Smrg printf %s "(cached) " >&6 8069051ceee6Smrgelse $as_nop 80706dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80716dbd43aaSmrg/* end confdefs.h. */ 80726dbd43aaSmrgint i; 80736dbd43aaSmrg_ACEOF 8074051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8075051ceee6Smrgthen : 80766dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8077051ceee6Smrgelse $as_nop 80786dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 80796dbd43aaSmrgfi 8080051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 80816dbd43aaSmrgfi 8082051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8083051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 80846dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 80856dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 80866dbd43aaSmrgfi 80876dbd43aaSmrg 80886dbd43aaSmrgfound="no" 80896dbd43aaSmrg 80906dbd43aaSmrg if test $found = "no" ; then 8091e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 80926dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80936dbd43aaSmrg fi 80946dbd43aaSmrg 8095e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 80966dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80976dbd43aaSmrg fi 80986dbd43aaSmrg 80996dbd43aaSmrg CFLAGS="$CFLAGS -Werror=trigraphs" 81006dbd43aaSmrg 8101051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8102051ceee6Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8103e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 8104051ceee6Smrg if eval test \${$cacheid+y} 8105051ceee6Smrgthen : 8106051ceee6Smrg printf %s "(cached) " >&6 8107051ceee6Smrgelse $as_nop 81086dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81096dbd43aaSmrg/* end confdefs.h. */ 81106dbd43aaSmrgint i; 81116dbd43aaSmrgint 8112051ceee6Smrgmain (void) 81136dbd43aaSmrg{ 81146dbd43aaSmrg 81156dbd43aaSmrg ; 81166dbd43aaSmrg return 0; 81176dbd43aaSmrg} 81186dbd43aaSmrg_ACEOF 8119051ceee6Smrgif ac_fn_c_try_link "$LINENO" 8120051ceee6Smrgthen : 81216dbd43aaSmrg eval $cacheid=yes 8122051ceee6Smrgelse $as_nop 81236dbd43aaSmrg eval $cacheid=no 81246dbd43aaSmrgfi 8125051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 81266dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 81276dbd43aaSmrgfi 81286dbd43aaSmrg 81296dbd43aaSmrg 81306dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 81316dbd43aaSmrg 81326dbd43aaSmrg eval supported=\$$cacheid 8133051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8134051ceee6Smrgprintf "%s\n" "$supported" >&6; } 81356dbd43aaSmrg if test "$supported" = "yes" ; then 81366dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 81376dbd43aaSmrg found="yes" 81386dbd43aaSmrg fi 81396dbd43aaSmrg fi 81406dbd43aaSmrg 81416dbd43aaSmrg 81426dbd43aaSmrg 81436dbd43aaSmrg 81446dbd43aaSmrg 81456dbd43aaSmrg 81466dbd43aaSmrg 81476dbd43aaSmrg 81486dbd43aaSmrg 81496dbd43aaSmrg 81506dbd43aaSmrg 81516dbd43aaSmrg 81526dbd43aaSmrg 81536dbd43aaSmrg 81546dbd43aaSmrg 81556dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 81566dbd43aaSmrg 81576dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 81586dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8159051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8160051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8161051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8162051ceee6Smrgthen : 8163051ceee6Smrg printf %s "(cached) " >&6 8164051ceee6Smrgelse $as_nop 81656dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81666dbd43aaSmrg/* end confdefs.h. */ 81676dbd43aaSmrgint i; 81686dbd43aaSmrg_ACEOF 8169051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8170051ceee6Smrgthen : 81716dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8172051ceee6Smrgelse $as_nop 81736dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 81746dbd43aaSmrgfi 8175051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 81766dbd43aaSmrgfi 8177051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8178051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 81796dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 81806dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 81816dbd43aaSmrgfi 81826dbd43aaSmrg 81836dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 81846dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 81856dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81866dbd43aaSmrg fi 81876dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8188051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8189051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8190051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8191051ceee6Smrgthen : 8192051ceee6Smrg printf %s "(cached) " >&6 8193051ceee6Smrgelse $as_nop 81946dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81956dbd43aaSmrg/* end confdefs.h. */ 81966dbd43aaSmrgint i; 81976dbd43aaSmrg_ACEOF 8198051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8199051ceee6Smrgthen : 82006dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8201051ceee6Smrgelse $as_nop 82026dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 82036dbd43aaSmrgfi 8204051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 82056dbd43aaSmrgfi 8206051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8207051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 82086dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 82096dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 82106dbd43aaSmrgfi 82116dbd43aaSmrg 82126dbd43aaSmrgfound="no" 82136dbd43aaSmrg 82146dbd43aaSmrg if test $found = "no" ; then 8215e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 82166dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82176dbd43aaSmrg fi 82186dbd43aaSmrg 8219e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 82206dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82216dbd43aaSmrg fi 82226dbd43aaSmrg 82236dbd43aaSmrg CFLAGS="$CFLAGS -Werror=array-bounds" 82246dbd43aaSmrg 8225051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8226051ceee6Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8227e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 8228051ceee6Smrg if eval test \${$cacheid+y} 8229051ceee6Smrgthen : 8230051ceee6Smrg printf %s "(cached) " >&6 8231051ceee6Smrgelse $as_nop 82326dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82336dbd43aaSmrg/* end confdefs.h. */ 82346dbd43aaSmrgint i; 82356dbd43aaSmrgint 8236051ceee6Smrgmain (void) 82376dbd43aaSmrg{ 82386dbd43aaSmrg 82396dbd43aaSmrg ; 82406dbd43aaSmrg return 0; 82416dbd43aaSmrg} 82426dbd43aaSmrg_ACEOF 8243051ceee6Smrgif ac_fn_c_try_link "$LINENO" 8244051ceee6Smrgthen : 82456dbd43aaSmrg eval $cacheid=yes 8246051ceee6Smrgelse $as_nop 82476dbd43aaSmrg eval $cacheid=no 82486dbd43aaSmrgfi 8249051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 82506dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 82516dbd43aaSmrgfi 82526dbd43aaSmrg 82536dbd43aaSmrg 82546dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 82556dbd43aaSmrg 82566dbd43aaSmrg eval supported=\$$cacheid 8257051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8258051ceee6Smrgprintf "%s\n" "$supported" >&6; } 82596dbd43aaSmrg if test "$supported" = "yes" ; then 82606dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 82616dbd43aaSmrg found="yes" 82626dbd43aaSmrg fi 82636dbd43aaSmrg fi 82646dbd43aaSmrg 82656dbd43aaSmrg 82666dbd43aaSmrg 82676dbd43aaSmrg 82686dbd43aaSmrg 82696dbd43aaSmrg 82706dbd43aaSmrg 82716dbd43aaSmrg 82726dbd43aaSmrg 82736dbd43aaSmrg 82746dbd43aaSmrg 82756dbd43aaSmrg 82766dbd43aaSmrg 82776dbd43aaSmrg 82786dbd43aaSmrg 82796dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 82806dbd43aaSmrg 82816dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 82826dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8283051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8284051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8285051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8286051ceee6Smrgthen : 8287051ceee6Smrg printf %s "(cached) " >&6 8288051ceee6Smrgelse $as_nop 82896dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82906dbd43aaSmrg/* end confdefs.h. */ 82916dbd43aaSmrgint i; 82926dbd43aaSmrg_ACEOF 8293051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8294051ceee6Smrgthen : 82956dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8296051ceee6Smrgelse $as_nop 82976dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 82986dbd43aaSmrgfi 8299051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 83006dbd43aaSmrgfi 8301051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8302051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 83036dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 83046dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 83056dbd43aaSmrgfi 83066dbd43aaSmrg 83076dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 83086dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 83096dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83106dbd43aaSmrg fi 83116dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8312051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8313051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8314051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8315051ceee6Smrgthen : 8316051ceee6Smrg printf %s "(cached) " >&6 8317051ceee6Smrgelse $as_nop 83186dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83196dbd43aaSmrg/* end confdefs.h. */ 83206dbd43aaSmrgint i; 83216dbd43aaSmrg_ACEOF 8322051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8323051ceee6Smrgthen : 83246dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8325051ceee6Smrgelse $as_nop 83266dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 83276dbd43aaSmrgfi 8328051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 83296dbd43aaSmrgfi 8330051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8331051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 83326dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 83336dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 83346dbd43aaSmrgfi 83356dbd43aaSmrg 83366dbd43aaSmrgfound="no" 83376dbd43aaSmrg 83386dbd43aaSmrg if test $found = "no" ; then 8339e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 83406dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83416dbd43aaSmrg fi 83426dbd43aaSmrg 8343e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 83446dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83456dbd43aaSmrg fi 83466dbd43aaSmrg 83476dbd43aaSmrg CFLAGS="$CFLAGS -Werror=write-strings" 83486dbd43aaSmrg 8349051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8350051ceee6Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8351e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 8352051ceee6Smrg if eval test \${$cacheid+y} 8353051ceee6Smrgthen : 8354051ceee6Smrg printf %s "(cached) " >&6 8355051ceee6Smrgelse $as_nop 83566dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83576dbd43aaSmrg/* end confdefs.h. */ 83586dbd43aaSmrgint i; 83596dbd43aaSmrgint 8360051ceee6Smrgmain (void) 83616dbd43aaSmrg{ 83626dbd43aaSmrg 83636dbd43aaSmrg ; 83646dbd43aaSmrg return 0; 83656dbd43aaSmrg} 83666dbd43aaSmrg_ACEOF 8367051ceee6Smrgif ac_fn_c_try_link "$LINENO" 8368051ceee6Smrgthen : 83696dbd43aaSmrg eval $cacheid=yes 8370051ceee6Smrgelse $as_nop 83716dbd43aaSmrg eval $cacheid=no 83726dbd43aaSmrgfi 8373051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 83746dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 83756dbd43aaSmrgfi 83766dbd43aaSmrg 83776dbd43aaSmrg 83786dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 83796dbd43aaSmrg 83806dbd43aaSmrg eval supported=\$$cacheid 8381051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8382051ceee6Smrgprintf "%s\n" "$supported" >&6; } 83836dbd43aaSmrg if test "$supported" = "yes" ; then 83846dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 83856dbd43aaSmrg found="yes" 83866dbd43aaSmrg fi 83876dbd43aaSmrg fi 83886dbd43aaSmrg 83896dbd43aaSmrg 83906dbd43aaSmrg 83916dbd43aaSmrg 83926dbd43aaSmrg 83936dbd43aaSmrg 83946dbd43aaSmrg 83956dbd43aaSmrg 83966dbd43aaSmrg 83976dbd43aaSmrg 83986dbd43aaSmrg 83996dbd43aaSmrg 84006dbd43aaSmrg 84016dbd43aaSmrg 84026dbd43aaSmrg 84036dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 84046dbd43aaSmrg 84056dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 84066dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8407051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8408051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8409051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8410051ceee6Smrgthen : 8411051ceee6Smrg printf %s "(cached) " >&6 8412051ceee6Smrgelse $as_nop 84136dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84146dbd43aaSmrg/* end confdefs.h. */ 84156dbd43aaSmrgint i; 84166dbd43aaSmrg_ACEOF 8417051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8418051ceee6Smrgthen : 84196dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8420051ceee6Smrgelse $as_nop 84216dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 84226dbd43aaSmrgfi 8423051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 84246dbd43aaSmrgfi 8425051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8426051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 84276dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 84286dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 84296dbd43aaSmrgfi 84306dbd43aaSmrg 84316dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 84326dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 84336dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84346dbd43aaSmrg fi 84356dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8436051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8437051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8438051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8439051ceee6Smrgthen : 8440051ceee6Smrg printf %s "(cached) " >&6 8441051ceee6Smrgelse $as_nop 84426dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84436dbd43aaSmrg/* end confdefs.h. */ 84446dbd43aaSmrgint i; 84456dbd43aaSmrg_ACEOF 8446051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8447051ceee6Smrgthen : 84486dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8449051ceee6Smrgelse $as_nop 84506dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 84516dbd43aaSmrgfi 8452051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 84536dbd43aaSmrgfi 8454051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8455051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 84566dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 84576dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 84586dbd43aaSmrgfi 84596dbd43aaSmrg 84606dbd43aaSmrgfound="no" 84616dbd43aaSmrg 84626dbd43aaSmrg if test $found = "no" ; then 8463e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 84646dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84656dbd43aaSmrg fi 84666dbd43aaSmrg 8467e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 84686dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84696dbd43aaSmrg fi 84706dbd43aaSmrg 84716dbd43aaSmrg CFLAGS="$CFLAGS -Werror=address" 84726dbd43aaSmrg 8473051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8474051ceee6Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 8475e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_address 8476051ceee6Smrg if eval test \${$cacheid+y} 8477051ceee6Smrgthen : 8478051ceee6Smrg printf %s "(cached) " >&6 8479051ceee6Smrgelse $as_nop 84806dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84816dbd43aaSmrg/* end confdefs.h. */ 84826dbd43aaSmrgint i; 84836dbd43aaSmrgint 8484051ceee6Smrgmain (void) 84856dbd43aaSmrg{ 84866dbd43aaSmrg 84876dbd43aaSmrg ; 84886dbd43aaSmrg return 0; 84896dbd43aaSmrg} 84906dbd43aaSmrg_ACEOF 8491051ceee6Smrgif ac_fn_c_try_link "$LINENO" 8492051ceee6Smrgthen : 84936dbd43aaSmrg eval $cacheid=yes 8494051ceee6Smrgelse $as_nop 84956dbd43aaSmrg eval $cacheid=no 84966dbd43aaSmrgfi 8497051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 84986dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 84996dbd43aaSmrgfi 85006dbd43aaSmrg 85016dbd43aaSmrg 85026dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 85036dbd43aaSmrg 85046dbd43aaSmrg eval supported=\$$cacheid 8505051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8506051ceee6Smrgprintf "%s\n" "$supported" >&6; } 85076dbd43aaSmrg if test "$supported" = "yes" ; then 85086dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 85096dbd43aaSmrg found="yes" 85106dbd43aaSmrg fi 85116dbd43aaSmrg fi 85126dbd43aaSmrg 85136dbd43aaSmrg 85146dbd43aaSmrg 85156dbd43aaSmrg 85166dbd43aaSmrg 85176dbd43aaSmrg 85186dbd43aaSmrg 85196dbd43aaSmrg 85206dbd43aaSmrg 85216dbd43aaSmrg 85226dbd43aaSmrg 85236dbd43aaSmrg 85246dbd43aaSmrg 85256dbd43aaSmrg 85266dbd43aaSmrg 85276dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 85286dbd43aaSmrg 85296dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 85306dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8531051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8532051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8533051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8534051ceee6Smrgthen : 8535051ceee6Smrg printf %s "(cached) " >&6 8536051ceee6Smrgelse $as_nop 85376dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85386dbd43aaSmrg/* end confdefs.h. */ 85396dbd43aaSmrgint i; 85406dbd43aaSmrg_ACEOF 8541051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8542051ceee6Smrgthen : 85436dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8544051ceee6Smrgelse $as_nop 85456dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 85466dbd43aaSmrgfi 8547051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 85486dbd43aaSmrgfi 8549051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8550051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 85516dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 85526dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 85536dbd43aaSmrgfi 85546dbd43aaSmrg 85556dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 85566dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 85576dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85586dbd43aaSmrg fi 85596dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8560051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8561051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8562051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8563051ceee6Smrgthen : 8564051ceee6Smrg printf %s "(cached) " >&6 8565051ceee6Smrgelse $as_nop 85666dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85676dbd43aaSmrg/* end confdefs.h. */ 85686dbd43aaSmrgint i; 85696dbd43aaSmrg_ACEOF 8570051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8571051ceee6Smrgthen : 85726dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8573051ceee6Smrgelse $as_nop 85746dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 85756dbd43aaSmrgfi 8576051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 85776dbd43aaSmrgfi 8578051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8579051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 85806dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 85816dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 85826dbd43aaSmrgfi 85836dbd43aaSmrg 85846dbd43aaSmrgfound="no" 85856dbd43aaSmrg 85866dbd43aaSmrg if test $found = "no" ; then 8587e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 85886dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85896dbd43aaSmrg fi 85906dbd43aaSmrg 8591e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 85926dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85936dbd43aaSmrg fi 85946dbd43aaSmrg 85956dbd43aaSmrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 85966dbd43aaSmrg 8597051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8598051ceee6Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8599e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8600051ceee6Smrg if eval test \${$cacheid+y} 8601051ceee6Smrgthen : 8602051ceee6Smrg printf %s "(cached) " >&6 8603051ceee6Smrgelse $as_nop 86046dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86056dbd43aaSmrg/* end confdefs.h. */ 86066dbd43aaSmrgint i; 86076dbd43aaSmrgint 8608051ceee6Smrgmain (void) 86096dbd43aaSmrg{ 86106dbd43aaSmrg 86116dbd43aaSmrg ; 86126dbd43aaSmrg return 0; 86136dbd43aaSmrg} 86146dbd43aaSmrg_ACEOF 8615051ceee6Smrgif ac_fn_c_try_link "$LINENO" 8616051ceee6Smrgthen : 86176dbd43aaSmrg eval $cacheid=yes 8618051ceee6Smrgelse $as_nop 86196dbd43aaSmrg eval $cacheid=no 86206dbd43aaSmrgfi 8621051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 86226dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 86236dbd43aaSmrgfi 86246dbd43aaSmrg 86256dbd43aaSmrg 86266dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 86276dbd43aaSmrg 86286dbd43aaSmrg eval supported=\$$cacheid 8629051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8630051ceee6Smrgprintf "%s\n" "$supported" >&6; } 86316dbd43aaSmrg if test "$supported" = "yes" ; then 86326dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 86336dbd43aaSmrg found="yes" 86346dbd43aaSmrg fi 86356dbd43aaSmrg fi 86366dbd43aaSmrg 86376dbd43aaSmrg if test $found = "no" ; then 8638e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 86396dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86406dbd43aaSmrg fi 86416dbd43aaSmrg 8642e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 86436dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86446dbd43aaSmrg fi 86456dbd43aaSmrg 86466dbd43aaSmrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 86476dbd43aaSmrg 8648051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8649051ceee6Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8650e90eff46Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8651051ceee6Smrg if eval test \${$cacheid+y} 8652051ceee6Smrgthen : 8653051ceee6Smrg printf %s "(cached) " >&6 8654051ceee6Smrgelse $as_nop 86556dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86566dbd43aaSmrg/* end confdefs.h. */ 86576dbd43aaSmrgint i; 86586dbd43aaSmrgint 8659051ceee6Smrgmain (void) 86606dbd43aaSmrg{ 86616dbd43aaSmrg 86626dbd43aaSmrg ; 86636dbd43aaSmrg return 0; 86646dbd43aaSmrg} 86656dbd43aaSmrg_ACEOF 8666051ceee6Smrgif ac_fn_c_try_link "$LINENO" 8667051ceee6Smrgthen : 86686dbd43aaSmrg eval $cacheid=yes 8669051ceee6Smrgelse $as_nop 86706dbd43aaSmrg eval $cacheid=no 86716dbd43aaSmrgfi 8672051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 86736dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 86746dbd43aaSmrgfi 86756dbd43aaSmrg 86766dbd43aaSmrg 86776dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 86786dbd43aaSmrg 86796dbd43aaSmrg eval supported=\$$cacheid 8680051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8681051ceee6Smrgprintf "%s\n" "$supported" >&6; } 86826dbd43aaSmrg if test "$supported" = "yes" ; then 86836dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 86846dbd43aaSmrg found="yes" 86856dbd43aaSmrg fi 86866dbd43aaSmrg fi 86876dbd43aaSmrg 86886dbd43aaSmrg 86896dbd43aaSmrg 86906dbd43aaSmrg 86916dbd43aaSmrg 86926dbd43aaSmrg 86936dbd43aaSmrg 86946dbd43aaSmrg 86956dbd43aaSmrg 86966dbd43aaSmrg 86976dbd43aaSmrg 86986dbd43aaSmrg 86996dbd43aaSmrg 87006dbd43aaSmrg 87016dbd43aaSmrg 87026dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 87036dbd43aaSmrg 87046dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 87056dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8706051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8707051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8708051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8709051ceee6Smrgthen : 8710051ceee6Smrg printf %s "(cached) " >&6 8711051ceee6Smrgelse $as_nop 87126dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87136dbd43aaSmrg/* end confdefs.h. */ 87146dbd43aaSmrgint i; 87156dbd43aaSmrg_ACEOF 8716051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8717051ceee6Smrgthen : 87186dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8719051ceee6Smrgelse $as_nop 87206dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 87216dbd43aaSmrgfi 8722051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 87236dbd43aaSmrgfi 8724051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8725051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 87266dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 87276dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 87286dbd43aaSmrgfi 87296dbd43aaSmrg 87306dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 87316dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 87326dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87336dbd43aaSmrg fi 87346dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8735051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8736051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8737051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8738051ceee6Smrgthen : 8739051ceee6Smrg printf %s "(cached) " >&6 8740051ceee6Smrgelse $as_nop 87416dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87426dbd43aaSmrg/* end confdefs.h. */ 87436dbd43aaSmrgint i; 87446dbd43aaSmrg_ACEOF 8745051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8746051ceee6Smrgthen : 87476dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8748051ceee6Smrgelse $as_nop 87496dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 87506dbd43aaSmrgfi 8751051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 87526dbd43aaSmrgfi 8753051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8754051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 87556dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 87566dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 87576dbd43aaSmrgfi 87586dbd43aaSmrg 87596dbd43aaSmrgfound="no" 87606dbd43aaSmrg 87616dbd43aaSmrg if test $found = "no" ; then 8762e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 87636dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87646dbd43aaSmrg fi 87656dbd43aaSmrg 8766e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 87676dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87686dbd43aaSmrg fi 87696dbd43aaSmrg 87706dbd43aaSmrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 87716dbd43aaSmrg 8772051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8773051ceee6Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8774e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8775051ceee6Smrg if eval test \${$cacheid+y} 8776051ceee6Smrgthen : 8777051ceee6Smrg printf %s "(cached) " >&6 8778051ceee6Smrgelse $as_nop 87796dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87806dbd43aaSmrg/* end confdefs.h. */ 87816dbd43aaSmrgint i; 87826dbd43aaSmrgint 8783051ceee6Smrgmain (void) 87846dbd43aaSmrg{ 87856dbd43aaSmrg 87866dbd43aaSmrg ; 87876dbd43aaSmrg return 0; 87886dbd43aaSmrg} 87896dbd43aaSmrg_ACEOF 8790051ceee6Smrgif ac_fn_c_try_link "$LINENO" 8791051ceee6Smrgthen : 87926dbd43aaSmrg eval $cacheid=yes 8793051ceee6Smrgelse $as_nop 87946dbd43aaSmrg eval $cacheid=no 87956dbd43aaSmrgfi 8796051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 87976dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 87986dbd43aaSmrgfi 87996dbd43aaSmrg 88006dbd43aaSmrg 88016dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 88026dbd43aaSmrg 88036dbd43aaSmrg eval supported=\$$cacheid 8804051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8805051ceee6Smrgprintf "%s\n" "$supported" >&6; } 88066dbd43aaSmrg if test "$supported" = "yes" ; then 88076dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 88086dbd43aaSmrg found="yes" 88096dbd43aaSmrg fi 88106dbd43aaSmrg fi 88116dbd43aaSmrg 88126dbd43aaSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 88136dbd43aaSmrgelse 8814051ceee6Smrg{ 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 8815051ceee6Smrgprintf "%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;} 88166dbd43aaSmrg 88176dbd43aaSmrg 88186dbd43aaSmrg 88196dbd43aaSmrg 88206dbd43aaSmrg 88216dbd43aaSmrg 88226dbd43aaSmrg 88236dbd43aaSmrg 88246dbd43aaSmrg 88256dbd43aaSmrg 88266dbd43aaSmrg 88276dbd43aaSmrg 88286dbd43aaSmrg 88296dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 88306dbd43aaSmrg 88316dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 88326dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8833051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8834051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8835051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8836051ceee6Smrgthen : 8837051ceee6Smrg printf %s "(cached) " >&6 8838051ceee6Smrgelse $as_nop 88396dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88406dbd43aaSmrg/* end confdefs.h. */ 88416dbd43aaSmrgint i; 88426dbd43aaSmrg_ACEOF 8843051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8844051ceee6Smrgthen : 88456dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8846051ceee6Smrgelse $as_nop 88476dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 88486dbd43aaSmrgfi 8849051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 88506dbd43aaSmrgfi 8851051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8852051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 88536dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 88546dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 88556dbd43aaSmrgfi 88566dbd43aaSmrg 88576dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 88586dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 88596dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88606dbd43aaSmrg fi 88616dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8862051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8863051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8864051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8865051ceee6Smrgthen : 8866051ceee6Smrg printf %s "(cached) " >&6 8867051ceee6Smrgelse $as_nop 88686dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88696dbd43aaSmrg/* end confdefs.h. */ 88706dbd43aaSmrgint i; 88716dbd43aaSmrg_ACEOF 8872051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8873051ceee6Smrgthen : 88746dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8875051ceee6Smrgelse $as_nop 88766dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 88776dbd43aaSmrgfi 8878051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 88796dbd43aaSmrgfi 8880051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8881051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 88826dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 88836dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 88846dbd43aaSmrgfi 88856dbd43aaSmrg 88866dbd43aaSmrgfound="no" 88876dbd43aaSmrg 88886dbd43aaSmrg if test $found = "no" ; then 8889e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 88906dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88916dbd43aaSmrg fi 88926dbd43aaSmrg 8893e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 88946dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88956dbd43aaSmrg fi 88966dbd43aaSmrg 88976dbd43aaSmrg CFLAGS="$CFLAGS -Wimplicit" 88986dbd43aaSmrg 8899051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8900051ceee6Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 89016dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wimplicit 8902051ceee6Smrg if eval test \${$cacheid+y} 8903051ceee6Smrgthen : 8904051ceee6Smrg printf %s "(cached) " >&6 8905051ceee6Smrgelse $as_nop 89066dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89076dbd43aaSmrg/* end confdefs.h. */ 89086dbd43aaSmrgint i; 89096dbd43aaSmrgint 8910051ceee6Smrgmain (void) 89116dbd43aaSmrg{ 89126dbd43aaSmrg 89136dbd43aaSmrg ; 89146dbd43aaSmrg return 0; 89156dbd43aaSmrg} 89166dbd43aaSmrg_ACEOF 8917051ceee6Smrgif ac_fn_c_try_link "$LINENO" 8918051ceee6Smrgthen : 89196dbd43aaSmrg eval $cacheid=yes 8920051ceee6Smrgelse $as_nop 89216dbd43aaSmrg eval $cacheid=no 89226dbd43aaSmrgfi 8923051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 89246dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 89256dbd43aaSmrgfi 89266dbd43aaSmrg 89276dbd43aaSmrg 89286dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 89296dbd43aaSmrg 89306dbd43aaSmrg eval supported=\$$cacheid 8931051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8932051ceee6Smrgprintf "%s\n" "$supported" >&6; } 89336dbd43aaSmrg if test "$supported" = "yes" ; then 89346dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 89356dbd43aaSmrg found="yes" 89366dbd43aaSmrg fi 89376dbd43aaSmrg fi 89386dbd43aaSmrg 89396dbd43aaSmrg 89406dbd43aaSmrg 89416dbd43aaSmrg 89426dbd43aaSmrg 89436dbd43aaSmrg 89446dbd43aaSmrg 89456dbd43aaSmrg 89466dbd43aaSmrg 89476dbd43aaSmrg 89486dbd43aaSmrg 89496dbd43aaSmrg 89506dbd43aaSmrg 89516dbd43aaSmrg 89526dbd43aaSmrg 89536dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 89546dbd43aaSmrg 89556dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 89566dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8957051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8958051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8959051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 8960051ceee6Smrgthen : 8961051ceee6Smrg printf %s "(cached) " >&6 8962051ceee6Smrgelse $as_nop 89636dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89646dbd43aaSmrg/* end confdefs.h. */ 89656dbd43aaSmrgint i; 89666dbd43aaSmrg_ACEOF 8967051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8968051ceee6Smrgthen : 89696dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 8970051ceee6Smrgelse $as_nop 89716dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 89726dbd43aaSmrgfi 8973051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 89746dbd43aaSmrgfi 8975051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8976051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 89776dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 89786dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 89796dbd43aaSmrgfi 89806dbd43aaSmrg 89816dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 89826dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 89836dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89846dbd43aaSmrg fi 89856dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8986051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8987051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8988051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8989051ceee6Smrgthen : 8990051ceee6Smrg printf %s "(cached) " >&6 8991051ceee6Smrgelse $as_nop 89926dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89936dbd43aaSmrg/* end confdefs.h. */ 89946dbd43aaSmrgint i; 89956dbd43aaSmrg_ACEOF 8996051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 8997051ceee6Smrgthen : 89986dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 8999051ceee6Smrgelse $as_nop 90006dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 90016dbd43aaSmrgfi 9002051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 90036dbd43aaSmrgfi 9004051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9005051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 90066dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 90076dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 90086dbd43aaSmrgfi 90096dbd43aaSmrg 90106dbd43aaSmrgfound="no" 90116dbd43aaSmrg 90126dbd43aaSmrg if test $found = "no" ; then 9013e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 90146dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90156dbd43aaSmrg fi 90166dbd43aaSmrg 9017e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 90186dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90196dbd43aaSmrg fi 90206dbd43aaSmrg 90216dbd43aaSmrg CFLAGS="$CFLAGS -Wnonnull" 90226dbd43aaSmrg 9023051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9024051ceee6Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 90256dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wnonnull 9026051ceee6Smrg if eval test \${$cacheid+y} 9027051ceee6Smrgthen : 9028051ceee6Smrg printf %s "(cached) " >&6 9029051ceee6Smrgelse $as_nop 90306dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90316dbd43aaSmrg/* end confdefs.h. */ 90326dbd43aaSmrgint i; 90336dbd43aaSmrgint 9034051ceee6Smrgmain (void) 90356dbd43aaSmrg{ 90366dbd43aaSmrg 90376dbd43aaSmrg ; 90386dbd43aaSmrg return 0; 90396dbd43aaSmrg} 90406dbd43aaSmrg_ACEOF 9041051ceee6Smrgif ac_fn_c_try_link "$LINENO" 9042051ceee6Smrgthen : 90436dbd43aaSmrg eval $cacheid=yes 9044051ceee6Smrgelse $as_nop 90456dbd43aaSmrg eval $cacheid=no 90466dbd43aaSmrgfi 9047051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 90486dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 90496dbd43aaSmrgfi 90506dbd43aaSmrg 90516dbd43aaSmrg 90526dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 90536dbd43aaSmrg 90546dbd43aaSmrg eval supported=\$$cacheid 9055051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9056051ceee6Smrgprintf "%s\n" "$supported" >&6; } 90576dbd43aaSmrg if test "$supported" = "yes" ; then 90586dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 90596dbd43aaSmrg found="yes" 90606dbd43aaSmrg fi 90616dbd43aaSmrg fi 90626dbd43aaSmrg 90636dbd43aaSmrg 90646dbd43aaSmrg 90656dbd43aaSmrg 90666dbd43aaSmrg 90676dbd43aaSmrg 90686dbd43aaSmrg 90696dbd43aaSmrg 90706dbd43aaSmrg 90716dbd43aaSmrg 90726dbd43aaSmrg 90736dbd43aaSmrg 90746dbd43aaSmrg 90756dbd43aaSmrg 90766dbd43aaSmrg 90776dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 90786dbd43aaSmrg 90796dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 90806dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9081051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9082051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9083051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9084051ceee6Smrgthen : 9085051ceee6Smrg printf %s "(cached) " >&6 9086051ceee6Smrgelse $as_nop 90876dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90886dbd43aaSmrg/* end confdefs.h. */ 90896dbd43aaSmrgint i; 90906dbd43aaSmrg_ACEOF 9091051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9092051ceee6Smrgthen : 90936dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9094051ceee6Smrgelse $as_nop 90956dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 90966dbd43aaSmrgfi 9097051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 90986dbd43aaSmrgfi 9099051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9100051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 91016dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 91026dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 91036dbd43aaSmrgfi 91046dbd43aaSmrg 91056dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 91066dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 91076dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91086dbd43aaSmrg fi 91096dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9110051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9111051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9112051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9113051ceee6Smrgthen : 9114051ceee6Smrg printf %s "(cached) " >&6 9115051ceee6Smrgelse $as_nop 91166dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91176dbd43aaSmrg/* end confdefs.h. */ 91186dbd43aaSmrgint i; 91196dbd43aaSmrg_ACEOF 9120051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9121051ceee6Smrgthen : 91226dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9123051ceee6Smrgelse $as_nop 91246dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 91256dbd43aaSmrgfi 9126051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 91276dbd43aaSmrgfi 9128051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9129051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 91306dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 91316dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 91326dbd43aaSmrgfi 91336dbd43aaSmrg 91346dbd43aaSmrgfound="no" 91356dbd43aaSmrg 91366dbd43aaSmrg if test $found = "no" ; then 9137e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 91386dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91396dbd43aaSmrg fi 91406dbd43aaSmrg 9141e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 91426dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91436dbd43aaSmrg fi 91446dbd43aaSmrg 91456dbd43aaSmrg CFLAGS="$CFLAGS -Winit-self" 91466dbd43aaSmrg 9147051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9148051ceee6Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 91496dbd43aaSmrg cacheid=xorg_cv_cc_flag__Winit_self 9150051ceee6Smrg if eval test \${$cacheid+y} 9151051ceee6Smrgthen : 9152051ceee6Smrg printf %s "(cached) " >&6 9153051ceee6Smrgelse $as_nop 91546dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91556dbd43aaSmrg/* end confdefs.h. */ 91566dbd43aaSmrgint i; 91576dbd43aaSmrgint 9158051ceee6Smrgmain (void) 91596dbd43aaSmrg{ 91606dbd43aaSmrg 91616dbd43aaSmrg ; 91626dbd43aaSmrg return 0; 91636dbd43aaSmrg} 91646dbd43aaSmrg_ACEOF 9165051ceee6Smrgif ac_fn_c_try_link "$LINENO" 9166051ceee6Smrgthen : 91676dbd43aaSmrg eval $cacheid=yes 9168051ceee6Smrgelse $as_nop 91696dbd43aaSmrg eval $cacheid=no 91706dbd43aaSmrgfi 9171051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 91726dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 91736dbd43aaSmrgfi 91746dbd43aaSmrg 91756dbd43aaSmrg 91766dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 91776dbd43aaSmrg 91786dbd43aaSmrg eval supported=\$$cacheid 9179051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9180051ceee6Smrgprintf "%s\n" "$supported" >&6; } 91816dbd43aaSmrg if test "$supported" = "yes" ; then 91826dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 91836dbd43aaSmrg found="yes" 91846dbd43aaSmrg fi 91856dbd43aaSmrg fi 91866dbd43aaSmrg 91876dbd43aaSmrg 91886dbd43aaSmrg 91896dbd43aaSmrg 91906dbd43aaSmrg 91916dbd43aaSmrg 91926dbd43aaSmrg 91936dbd43aaSmrg 91946dbd43aaSmrg 91956dbd43aaSmrg 91966dbd43aaSmrg 91976dbd43aaSmrg 91986dbd43aaSmrg 91996dbd43aaSmrg 92006dbd43aaSmrg 92016dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 92026dbd43aaSmrg 92036dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 92046dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9205051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9206051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9207051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9208051ceee6Smrgthen : 9209051ceee6Smrg printf %s "(cached) " >&6 9210051ceee6Smrgelse $as_nop 92116dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92126dbd43aaSmrg/* end confdefs.h. */ 92136dbd43aaSmrgint i; 92146dbd43aaSmrg_ACEOF 9215051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9216051ceee6Smrgthen : 92176dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9218051ceee6Smrgelse $as_nop 92196dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 92206dbd43aaSmrgfi 9221051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 92226dbd43aaSmrgfi 9223051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9224051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 92256dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 92266dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 92276dbd43aaSmrgfi 92286dbd43aaSmrg 92296dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 92306dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 92316dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92326dbd43aaSmrg fi 92336dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9234051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9235051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9236051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9237051ceee6Smrgthen : 9238051ceee6Smrg printf %s "(cached) " >&6 9239051ceee6Smrgelse $as_nop 92406dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92416dbd43aaSmrg/* end confdefs.h. */ 92426dbd43aaSmrgint i; 92436dbd43aaSmrg_ACEOF 9244051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9245051ceee6Smrgthen : 92466dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9247051ceee6Smrgelse $as_nop 92486dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 92496dbd43aaSmrgfi 9250051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 92516dbd43aaSmrgfi 9252051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9253051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 92546dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 92556dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 92566dbd43aaSmrgfi 92576dbd43aaSmrg 92586dbd43aaSmrgfound="no" 92596dbd43aaSmrg 92606dbd43aaSmrg if test $found = "no" ; then 9261e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 92626dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92636dbd43aaSmrg fi 92646dbd43aaSmrg 9265e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 92666dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92676dbd43aaSmrg fi 92686dbd43aaSmrg 92696dbd43aaSmrg CFLAGS="$CFLAGS -Wmain" 92706dbd43aaSmrg 9271051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9272051ceee6Smrgprintf %s "checking if $CC supports -Wmain... " >&6; } 92736dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wmain 9274051ceee6Smrg if eval test \${$cacheid+y} 9275051ceee6Smrgthen : 9276051ceee6Smrg printf %s "(cached) " >&6 9277051ceee6Smrgelse $as_nop 92786dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92796dbd43aaSmrg/* end confdefs.h. */ 92806dbd43aaSmrgint i; 92816dbd43aaSmrgint 9282051ceee6Smrgmain (void) 92836dbd43aaSmrg{ 92846dbd43aaSmrg 92856dbd43aaSmrg ; 92866dbd43aaSmrg return 0; 92876dbd43aaSmrg} 92886dbd43aaSmrg_ACEOF 9289051ceee6Smrgif ac_fn_c_try_link "$LINENO" 9290051ceee6Smrgthen : 92916dbd43aaSmrg eval $cacheid=yes 9292051ceee6Smrgelse $as_nop 92936dbd43aaSmrg eval $cacheid=no 92946dbd43aaSmrgfi 9295051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 92966dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 92976dbd43aaSmrgfi 92986dbd43aaSmrg 92996dbd43aaSmrg 93006dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 93016dbd43aaSmrg 93026dbd43aaSmrg eval supported=\$$cacheid 9303051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9304051ceee6Smrgprintf "%s\n" "$supported" >&6; } 93056dbd43aaSmrg if test "$supported" = "yes" ; then 93066dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 93076dbd43aaSmrg found="yes" 93086dbd43aaSmrg fi 93096dbd43aaSmrg fi 93106dbd43aaSmrg 93116dbd43aaSmrg 93126dbd43aaSmrg 93136dbd43aaSmrg 93146dbd43aaSmrg 93156dbd43aaSmrg 93166dbd43aaSmrg 93176dbd43aaSmrg 93186dbd43aaSmrg 93196dbd43aaSmrg 93206dbd43aaSmrg 93216dbd43aaSmrg 93226dbd43aaSmrg 93236dbd43aaSmrg 93246dbd43aaSmrg 93256dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 93266dbd43aaSmrg 93276dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 93286dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9329051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9330051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9331051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9332051ceee6Smrgthen : 9333051ceee6Smrg printf %s "(cached) " >&6 9334051ceee6Smrgelse $as_nop 93356dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93366dbd43aaSmrg/* end confdefs.h. */ 93376dbd43aaSmrgint i; 93386dbd43aaSmrg_ACEOF 9339051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9340051ceee6Smrgthen : 93416dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9342051ceee6Smrgelse $as_nop 93436dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 93446dbd43aaSmrgfi 9345051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 93466dbd43aaSmrgfi 9347051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9348051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 93496dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 93506dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 93516dbd43aaSmrgfi 93526dbd43aaSmrg 93536dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 93546dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 93556dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93566dbd43aaSmrg fi 93576dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9358051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9359051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9360051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9361051ceee6Smrgthen : 9362051ceee6Smrg printf %s "(cached) " >&6 9363051ceee6Smrgelse $as_nop 93646dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93656dbd43aaSmrg/* end confdefs.h. */ 93666dbd43aaSmrgint i; 93676dbd43aaSmrg_ACEOF 9368051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9369051ceee6Smrgthen : 93706dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9371051ceee6Smrgelse $as_nop 93726dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 93736dbd43aaSmrgfi 9374051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 93756dbd43aaSmrgfi 9376051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9377051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 93786dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 93796dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 93806dbd43aaSmrgfi 93816dbd43aaSmrg 93826dbd43aaSmrgfound="no" 93836dbd43aaSmrg 93846dbd43aaSmrg if test $found = "no" ; then 9385e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 93866dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93876dbd43aaSmrg fi 93886dbd43aaSmrg 9389e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 93906dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93916dbd43aaSmrg fi 93926dbd43aaSmrg 93936dbd43aaSmrg CFLAGS="$CFLAGS -Wmissing-braces" 93946dbd43aaSmrg 9395051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9396051ceee6Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 93976dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wmissing_braces 9398051ceee6Smrg if eval test \${$cacheid+y} 9399051ceee6Smrgthen : 9400051ceee6Smrg printf %s "(cached) " >&6 9401051ceee6Smrgelse $as_nop 94026dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94036dbd43aaSmrg/* end confdefs.h. */ 94046dbd43aaSmrgint i; 94056dbd43aaSmrgint 9406051ceee6Smrgmain (void) 94076dbd43aaSmrg{ 94086dbd43aaSmrg 94096dbd43aaSmrg ; 94106dbd43aaSmrg return 0; 94116dbd43aaSmrg} 94126dbd43aaSmrg_ACEOF 9413051ceee6Smrgif ac_fn_c_try_link "$LINENO" 9414051ceee6Smrgthen : 94156dbd43aaSmrg eval $cacheid=yes 9416051ceee6Smrgelse $as_nop 94176dbd43aaSmrg eval $cacheid=no 94186dbd43aaSmrgfi 9419051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 94206dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 94216dbd43aaSmrgfi 94226dbd43aaSmrg 94236dbd43aaSmrg 94246dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 94256dbd43aaSmrg 94266dbd43aaSmrg eval supported=\$$cacheid 9427051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9428051ceee6Smrgprintf "%s\n" "$supported" >&6; } 94296dbd43aaSmrg if test "$supported" = "yes" ; then 94306dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 94316dbd43aaSmrg found="yes" 94326dbd43aaSmrg fi 94336dbd43aaSmrg fi 94346dbd43aaSmrg 94356dbd43aaSmrg 94366dbd43aaSmrg 94376dbd43aaSmrg 94386dbd43aaSmrg 94396dbd43aaSmrg 94406dbd43aaSmrg 94416dbd43aaSmrg 94426dbd43aaSmrg 94436dbd43aaSmrg 94446dbd43aaSmrg 94456dbd43aaSmrg 94466dbd43aaSmrg 94476dbd43aaSmrg 94486dbd43aaSmrg 94496dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 94506dbd43aaSmrg 94516dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 94526dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9453051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9454051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9455051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9456051ceee6Smrgthen : 9457051ceee6Smrg printf %s "(cached) " >&6 9458051ceee6Smrgelse $as_nop 94596dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94606dbd43aaSmrg/* end confdefs.h. */ 94616dbd43aaSmrgint i; 94626dbd43aaSmrg_ACEOF 9463051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9464051ceee6Smrgthen : 94656dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9466051ceee6Smrgelse $as_nop 94676dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 94686dbd43aaSmrgfi 9469051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 94706dbd43aaSmrgfi 9471051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9472051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 94736dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 94746dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 94756dbd43aaSmrgfi 94766dbd43aaSmrg 94776dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 94786dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 94796dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94806dbd43aaSmrg fi 94816dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9482051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9483051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9484051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9485051ceee6Smrgthen : 9486051ceee6Smrg printf %s "(cached) " >&6 9487051ceee6Smrgelse $as_nop 94886dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94896dbd43aaSmrg/* end confdefs.h. */ 94906dbd43aaSmrgint i; 94916dbd43aaSmrg_ACEOF 9492051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9493051ceee6Smrgthen : 94946dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9495051ceee6Smrgelse $as_nop 94966dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 94976dbd43aaSmrgfi 9498051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 94996dbd43aaSmrgfi 9500051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9501051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 95026dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 95036dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 95046dbd43aaSmrgfi 95056dbd43aaSmrg 95066dbd43aaSmrgfound="no" 95076dbd43aaSmrg 95086dbd43aaSmrg if test $found = "no" ; then 9509e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 95106dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95116dbd43aaSmrg fi 95126dbd43aaSmrg 9513e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 95146dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95156dbd43aaSmrg fi 95166dbd43aaSmrg 95176dbd43aaSmrg CFLAGS="$CFLAGS -Wsequence-point" 95186dbd43aaSmrg 9519051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9520051ceee6Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 95216dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wsequence_point 9522051ceee6Smrg if eval test \${$cacheid+y} 9523051ceee6Smrgthen : 9524051ceee6Smrg printf %s "(cached) " >&6 9525051ceee6Smrgelse $as_nop 95266dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95276dbd43aaSmrg/* end confdefs.h. */ 95286dbd43aaSmrgint i; 95296dbd43aaSmrgint 9530051ceee6Smrgmain (void) 95316dbd43aaSmrg{ 95326dbd43aaSmrg 95336dbd43aaSmrg ; 95346dbd43aaSmrg return 0; 95356dbd43aaSmrg} 95366dbd43aaSmrg_ACEOF 9537051ceee6Smrgif ac_fn_c_try_link "$LINENO" 9538051ceee6Smrgthen : 95396dbd43aaSmrg eval $cacheid=yes 9540051ceee6Smrgelse $as_nop 95416dbd43aaSmrg eval $cacheid=no 95426dbd43aaSmrgfi 9543051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 95446dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 95456dbd43aaSmrgfi 95466dbd43aaSmrg 95476dbd43aaSmrg 95486dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 95496dbd43aaSmrg 95506dbd43aaSmrg eval supported=\$$cacheid 9551051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9552051ceee6Smrgprintf "%s\n" "$supported" >&6; } 95536dbd43aaSmrg if test "$supported" = "yes" ; then 95546dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 95556dbd43aaSmrg found="yes" 95566dbd43aaSmrg fi 95576dbd43aaSmrg fi 95586dbd43aaSmrg 95596dbd43aaSmrg 95606dbd43aaSmrg 95616dbd43aaSmrg 95626dbd43aaSmrg 95636dbd43aaSmrg 95646dbd43aaSmrg 95656dbd43aaSmrg 95666dbd43aaSmrg 95676dbd43aaSmrg 95686dbd43aaSmrg 95696dbd43aaSmrg 95706dbd43aaSmrg 95716dbd43aaSmrg 95726dbd43aaSmrg 95736dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 95746dbd43aaSmrg 95756dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 95766dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9577051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9578051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9579051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9580051ceee6Smrgthen : 9581051ceee6Smrg printf %s "(cached) " >&6 9582051ceee6Smrgelse $as_nop 95836dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95846dbd43aaSmrg/* end confdefs.h. */ 95856dbd43aaSmrgint i; 95866dbd43aaSmrg_ACEOF 9587051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9588051ceee6Smrgthen : 95896dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9590051ceee6Smrgelse $as_nop 95916dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 95926dbd43aaSmrgfi 9593051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 95946dbd43aaSmrgfi 9595051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9596051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 95976dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 95986dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 95996dbd43aaSmrgfi 96006dbd43aaSmrg 96016dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 96026dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 96036dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96046dbd43aaSmrg fi 96056dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9606051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9607051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9608051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9609051ceee6Smrgthen : 9610051ceee6Smrg printf %s "(cached) " >&6 9611051ceee6Smrgelse $as_nop 96126dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96136dbd43aaSmrg/* end confdefs.h. */ 96146dbd43aaSmrgint i; 96156dbd43aaSmrg_ACEOF 9616051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9617051ceee6Smrgthen : 96186dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9619051ceee6Smrgelse $as_nop 96206dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 96216dbd43aaSmrgfi 9622051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 96236dbd43aaSmrgfi 9624051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9625051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 96266dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 96276dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 96286dbd43aaSmrgfi 96296dbd43aaSmrg 96306dbd43aaSmrgfound="no" 96316dbd43aaSmrg 96326dbd43aaSmrg if test $found = "no" ; then 9633e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 96346dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96356dbd43aaSmrg fi 96366dbd43aaSmrg 9637e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 96386dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96396dbd43aaSmrg fi 96406dbd43aaSmrg 96416dbd43aaSmrg CFLAGS="$CFLAGS -Wreturn-type" 96426dbd43aaSmrg 9643051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9644051ceee6Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 96456dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wreturn_type 9646051ceee6Smrg if eval test \${$cacheid+y} 9647051ceee6Smrgthen : 9648051ceee6Smrg printf %s "(cached) " >&6 9649051ceee6Smrgelse $as_nop 96506dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96516dbd43aaSmrg/* end confdefs.h. */ 96526dbd43aaSmrgint i; 96536dbd43aaSmrgint 9654051ceee6Smrgmain (void) 96556dbd43aaSmrg{ 96566dbd43aaSmrg 96576dbd43aaSmrg ; 96586dbd43aaSmrg return 0; 96596dbd43aaSmrg} 96606dbd43aaSmrg_ACEOF 9661051ceee6Smrgif ac_fn_c_try_link "$LINENO" 9662051ceee6Smrgthen : 96636dbd43aaSmrg eval $cacheid=yes 9664051ceee6Smrgelse $as_nop 96656dbd43aaSmrg eval $cacheid=no 96666dbd43aaSmrgfi 9667051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 96686dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 96696dbd43aaSmrgfi 96706dbd43aaSmrg 96716dbd43aaSmrg 96726dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 96736dbd43aaSmrg 96746dbd43aaSmrg eval supported=\$$cacheid 9675051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9676051ceee6Smrgprintf "%s\n" "$supported" >&6; } 96776dbd43aaSmrg if test "$supported" = "yes" ; then 96786dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 96796dbd43aaSmrg found="yes" 96806dbd43aaSmrg fi 96816dbd43aaSmrg fi 96826dbd43aaSmrg 96836dbd43aaSmrg 96846dbd43aaSmrg 96856dbd43aaSmrg 96866dbd43aaSmrg 96876dbd43aaSmrg 96886dbd43aaSmrg 96896dbd43aaSmrg 96906dbd43aaSmrg 96916dbd43aaSmrg 96926dbd43aaSmrg 96936dbd43aaSmrg 96946dbd43aaSmrg 96956dbd43aaSmrg 96966dbd43aaSmrg 96976dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 96986dbd43aaSmrg 96996dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 97006dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9701051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9702051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9703051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9704051ceee6Smrgthen : 9705051ceee6Smrg printf %s "(cached) " >&6 9706051ceee6Smrgelse $as_nop 97076dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97086dbd43aaSmrg/* end confdefs.h. */ 97096dbd43aaSmrgint i; 97106dbd43aaSmrg_ACEOF 9711051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9712051ceee6Smrgthen : 97136dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9714051ceee6Smrgelse $as_nop 97156dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 97166dbd43aaSmrgfi 9717051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 97186dbd43aaSmrgfi 9719051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9720051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 97216dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 97226dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 97236dbd43aaSmrgfi 97246dbd43aaSmrg 97256dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 97266dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 97276dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97286dbd43aaSmrg fi 97296dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9730051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9731051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9732051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9733051ceee6Smrgthen : 9734051ceee6Smrg printf %s "(cached) " >&6 9735051ceee6Smrgelse $as_nop 97366dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97376dbd43aaSmrg/* end confdefs.h. */ 97386dbd43aaSmrgint i; 97396dbd43aaSmrg_ACEOF 9740051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9741051ceee6Smrgthen : 97426dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9743051ceee6Smrgelse $as_nop 97446dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 97456dbd43aaSmrgfi 9746051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 97476dbd43aaSmrgfi 9748051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9749051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 97506dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 97516dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 97526dbd43aaSmrgfi 97536dbd43aaSmrg 97546dbd43aaSmrgfound="no" 97556dbd43aaSmrg 97566dbd43aaSmrg if test $found = "no" ; then 9757e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 97586dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97596dbd43aaSmrg fi 97606dbd43aaSmrg 9761e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 97626dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97636dbd43aaSmrg fi 97646dbd43aaSmrg 97656dbd43aaSmrg CFLAGS="$CFLAGS -Wtrigraphs" 97666dbd43aaSmrg 9767051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9768051ceee6Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 97696dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wtrigraphs 9770051ceee6Smrg if eval test \${$cacheid+y} 9771051ceee6Smrgthen : 9772051ceee6Smrg printf %s "(cached) " >&6 9773051ceee6Smrgelse $as_nop 97746dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97756dbd43aaSmrg/* end confdefs.h. */ 97766dbd43aaSmrgint i; 97776dbd43aaSmrgint 9778051ceee6Smrgmain (void) 97796dbd43aaSmrg{ 97806dbd43aaSmrg 97816dbd43aaSmrg ; 97826dbd43aaSmrg return 0; 97836dbd43aaSmrg} 97846dbd43aaSmrg_ACEOF 9785051ceee6Smrgif ac_fn_c_try_link "$LINENO" 9786051ceee6Smrgthen : 97876dbd43aaSmrg eval $cacheid=yes 9788051ceee6Smrgelse $as_nop 97896dbd43aaSmrg eval $cacheid=no 97906dbd43aaSmrgfi 9791051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 97926dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 97936dbd43aaSmrgfi 97946dbd43aaSmrg 97956dbd43aaSmrg 97966dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 97976dbd43aaSmrg 97986dbd43aaSmrg eval supported=\$$cacheid 9799051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9800051ceee6Smrgprintf "%s\n" "$supported" >&6; } 98016dbd43aaSmrg if test "$supported" = "yes" ; then 98026dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 98036dbd43aaSmrg found="yes" 98046dbd43aaSmrg fi 98056dbd43aaSmrg fi 98066dbd43aaSmrg 98076dbd43aaSmrg 98086dbd43aaSmrg 98096dbd43aaSmrg 98106dbd43aaSmrg 98116dbd43aaSmrg 98126dbd43aaSmrg 98136dbd43aaSmrg 98146dbd43aaSmrg 98156dbd43aaSmrg 98166dbd43aaSmrg 98176dbd43aaSmrg 98186dbd43aaSmrg 98196dbd43aaSmrg 98206dbd43aaSmrg 98216dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 98226dbd43aaSmrg 98236dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 98246dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9825051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9826051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9827051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9828051ceee6Smrgthen : 9829051ceee6Smrg printf %s "(cached) " >&6 9830051ceee6Smrgelse $as_nop 98316dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98326dbd43aaSmrg/* end confdefs.h. */ 98336dbd43aaSmrgint i; 98346dbd43aaSmrg_ACEOF 9835051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9836051ceee6Smrgthen : 98376dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9838051ceee6Smrgelse $as_nop 98396dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 98406dbd43aaSmrgfi 9841051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 98426dbd43aaSmrgfi 9843051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9844051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 98456dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 98466dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 98476dbd43aaSmrgfi 98486dbd43aaSmrg 98496dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 98506dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 98516dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98526dbd43aaSmrg fi 98536dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9854051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9855051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9856051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9857051ceee6Smrgthen : 9858051ceee6Smrg printf %s "(cached) " >&6 9859051ceee6Smrgelse $as_nop 98606dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98616dbd43aaSmrg/* end confdefs.h. */ 98626dbd43aaSmrgint i; 98636dbd43aaSmrg_ACEOF 9864051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9865051ceee6Smrgthen : 98666dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9867051ceee6Smrgelse $as_nop 98686dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 98696dbd43aaSmrgfi 9870051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 98716dbd43aaSmrgfi 9872051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9873051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 98746dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 98756dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 98766dbd43aaSmrgfi 98776dbd43aaSmrg 98786dbd43aaSmrgfound="no" 98796dbd43aaSmrg 98806dbd43aaSmrg if test $found = "no" ; then 9881e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 98826dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98836dbd43aaSmrg fi 98846dbd43aaSmrg 9885e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 98866dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98876dbd43aaSmrg fi 98886dbd43aaSmrg 98896dbd43aaSmrg CFLAGS="$CFLAGS -Warray-bounds" 98906dbd43aaSmrg 9891051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9892051ceee6Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 98936dbd43aaSmrg cacheid=xorg_cv_cc_flag__Warray_bounds 9894051ceee6Smrg if eval test \${$cacheid+y} 9895051ceee6Smrgthen : 9896051ceee6Smrg printf %s "(cached) " >&6 9897051ceee6Smrgelse $as_nop 98986dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98996dbd43aaSmrg/* end confdefs.h. */ 99006dbd43aaSmrgint i; 99016dbd43aaSmrgint 9902051ceee6Smrgmain (void) 99036dbd43aaSmrg{ 99046dbd43aaSmrg 99056dbd43aaSmrg ; 99066dbd43aaSmrg return 0; 99076dbd43aaSmrg} 99086dbd43aaSmrg_ACEOF 9909051ceee6Smrgif ac_fn_c_try_link "$LINENO" 9910051ceee6Smrgthen : 99116dbd43aaSmrg eval $cacheid=yes 9912051ceee6Smrgelse $as_nop 99136dbd43aaSmrg eval $cacheid=no 99146dbd43aaSmrgfi 9915051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 99166dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 99176dbd43aaSmrgfi 99186dbd43aaSmrg 99196dbd43aaSmrg 99206dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 99216dbd43aaSmrg 99226dbd43aaSmrg eval supported=\$$cacheid 9923051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9924051ceee6Smrgprintf "%s\n" "$supported" >&6; } 99256dbd43aaSmrg if test "$supported" = "yes" ; then 99266dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 99276dbd43aaSmrg found="yes" 99286dbd43aaSmrg fi 99296dbd43aaSmrg fi 99306dbd43aaSmrg 99316dbd43aaSmrg 99326dbd43aaSmrg 99336dbd43aaSmrg 99346dbd43aaSmrg 99356dbd43aaSmrg 99366dbd43aaSmrg 99376dbd43aaSmrg 99386dbd43aaSmrg 99396dbd43aaSmrg 99406dbd43aaSmrg 99416dbd43aaSmrg 99426dbd43aaSmrg 99436dbd43aaSmrg 99446dbd43aaSmrg 99456dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 99466dbd43aaSmrg 99476dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 99486dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9949051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9950051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9951051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 9952051ceee6Smrgthen : 9953051ceee6Smrg printf %s "(cached) " >&6 9954051ceee6Smrgelse $as_nop 99556dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99566dbd43aaSmrg/* end confdefs.h. */ 99576dbd43aaSmrgint i; 99586dbd43aaSmrg_ACEOF 9959051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9960051ceee6Smrgthen : 99616dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 9962051ceee6Smrgelse $as_nop 99636dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 99646dbd43aaSmrgfi 9965051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 99666dbd43aaSmrgfi 9967051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9968051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 99696dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 99706dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 99716dbd43aaSmrgfi 99726dbd43aaSmrg 99736dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 99746dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 99756dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99766dbd43aaSmrg fi 99776dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9978051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9979051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9980051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9981051ceee6Smrgthen : 9982051ceee6Smrg printf %s "(cached) " >&6 9983051ceee6Smrgelse $as_nop 99846dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99856dbd43aaSmrg/* end confdefs.h. */ 99866dbd43aaSmrgint i; 99876dbd43aaSmrg_ACEOF 9988051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 9989051ceee6Smrgthen : 99906dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 9991051ceee6Smrgelse $as_nop 99926dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 99936dbd43aaSmrgfi 9994051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 99956dbd43aaSmrgfi 9996051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9997051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 99986dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 99996dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 100006dbd43aaSmrgfi 100016dbd43aaSmrg 100026dbd43aaSmrgfound="no" 100036dbd43aaSmrg 100046dbd43aaSmrg if test $found = "no" ; then 10005e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 100066dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100076dbd43aaSmrg fi 100086dbd43aaSmrg 10009e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 100106dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100116dbd43aaSmrg fi 100126dbd43aaSmrg 100136dbd43aaSmrg CFLAGS="$CFLAGS -Wwrite-strings" 100146dbd43aaSmrg 10015051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10016051ceee6Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 100176dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wwrite_strings 10018051ceee6Smrg if eval test \${$cacheid+y} 10019051ceee6Smrgthen : 10020051ceee6Smrg printf %s "(cached) " >&6 10021051ceee6Smrgelse $as_nop 100226dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100236dbd43aaSmrg/* end confdefs.h. */ 100246dbd43aaSmrgint i; 100256dbd43aaSmrgint 10026051ceee6Smrgmain (void) 100276dbd43aaSmrg{ 100286dbd43aaSmrg 100296dbd43aaSmrg ; 100306dbd43aaSmrg return 0; 100316dbd43aaSmrg} 100326dbd43aaSmrg_ACEOF 10033051ceee6Smrgif ac_fn_c_try_link "$LINENO" 10034051ceee6Smrgthen : 100356dbd43aaSmrg eval $cacheid=yes 10036051ceee6Smrgelse $as_nop 100376dbd43aaSmrg eval $cacheid=no 100386dbd43aaSmrgfi 10039051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 100406dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 100416dbd43aaSmrgfi 100426dbd43aaSmrg 100436dbd43aaSmrg 100446dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 100456dbd43aaSmrg 100466dbd43aaSmrg eval supported=\$$cacheid 10047051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10048051ceee6Smrgprintf "%s\n" "$supported" >&6; } 100496dbd43aaSmrg if test "$supported" = "yes" ; then 100506dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 100516dbd43aaSmrg found="yes" 100526dbd43aaSmrg fi 100536dbd43aaSmrg fi 100546dbd43aaSmrg 100556dbd43aaSmrg 100566dbd43aaSmrg 100576dbd43aaSmrg 100586dbd43aaSmrg 100596dbd43aaSmrg 100606dbd43aaSmrg 100616dbd43aaSmrg 100626dbd43aaSmrg 100636dbd43aaSmrg 100646dbd43aaSmrg 100656dbd43aaSmrg 100666dbd43aaSmrg 100676dbd43aaSmrg 100686dbd43aaSmrg 100696dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 100706dbd43aaSmrg 100716dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 100726dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10073051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10074051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10075051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10076051ceee6Smrgthen : 10077051ceee6Smrg printf %s "(cached) " >&6 10078051ceee6Smrgelse $as_nop 100796dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100806dbd43aaSmrg/* end confdefs.h. */ 100816dbd43aaSmrgint i; 100826dbd43aaSmrg_ACEOF 10083051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 10084051ceee6Smrgthen : 100856dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10086051ceee6Smrgelse $as_nop 100876dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 100886dbd43aaSmrgfi 10089051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 100906dbd43aaSmrgfi 10091051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10092051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 100936dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 100946dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 100956dbd43aaSmrgfi 100966dbd43aaSmrg 100976dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 100986dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 100996dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101006dbd43aaSmrg fi 101016dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10102051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10103051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10104051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10105051ceee6Smrgthen : 10106051ceee6Smrg printf %s "(cached) " >&6 10107051ceee6Smrgelse $as_nop 101086dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101096dbd43aaSmrg/* end confdefs.h. */ 101106dbd43aaSmrgint i; 101116dbd43aaSmrg_ACEOF 10112051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 10113051ceee6Smrgthen : 101146dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10115051ceee6Smrgelse $as_nop 101166dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 101176dbd43aaSmrgfi 10118051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 101196dbd43aaSmrgfi 10120051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10121051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 101226dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 101236dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 101246dbd43aaSmrgfi 101256dbd43aaSmrg 101266dbd43aaSmrgfound="no" 101276dbd43aaSmrg 101286dbd43aaSmrg if test $found = "no" ; then 10129e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 101306dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101316dbd43aaSmrg fi 101326dbd43aaSmrg 10133e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 101346dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101356dbd43aaSmrg fi 101366dbd43aaSmrg 101376dbd43aaSmrg CFLAGS="$CFLAGS -Waddress" 101386dbd43aaSmrg 10139051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10140051ceee6Smrgprintf %s "checking if $CC supports -Waddress... " >&6; } 101416dbd43aaSmrg cacheid=xorg_cv_cc_flag__Waddress 10142051ceee6Smrg if eval test \${$cacheid+y} 10143051ceee6Smrgthen : 10144051ceee6Smrg printf %s "(cached) " >&6 10145051ceee6Smrgelse $as_nop 101466dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101476dbd43aaSmrg/* end confdefs.h. */ 101486dbd43aaSmrgint i; 101496dbd43aaSmrgint 10150051ceee6Smrgmain (void) 101516dbd43aaSmrg{ 101526dbd43aaSmrg 101536dbd43aaSmrg ; 101546dbd43aaSmrg return 0; 101556dbd43aaSmrg} 101566dbd43aaSmrg_ACEOF 10157051ceee6Smrgif ac_fn_c_try_link "$LINENO" 10158051ceee6Smrgthen : 101596dbd43aaSmrg eval $cacheid=yes 10160051ceee6Smrgelse $as_nop 101616dbd43aaSmrg eval $cacheid=no 101626dbd43aaSmrgfi 10163051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 101646dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 101656dbd43aaSmrgfi 101666dbd43aaSmrg 101676dbd43aaSmrg 101686dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 101696dbd43aaSmrg 101706dbd43aaSmrg eval supported=\$$cacheid 10171051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10172051ceee6Smrgprintf "%s\n" "$supported" >&6; } 101736dbd43aaSmrg if test "$supported" = "yes" ; then 101746dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 101756dbd43aaSmrg found="yes" 101766dbd43aaSmrg fi 101776dbd43aaSmrg fi 101786dbd43aaSmrg 101796dbd43aaSmrg 101806dbd43aaSmrg 101816dbd43aaSmrg 101826dbd43aaSmrg 101836dbd43aaSmrg 101846dbd43aaSmrg 101856dbd43aaSmrg 101866dbd43aaSmrg 101876dbd43aaSmrg 101886dbd43aaSmrg 101896dbd43aaSmrg 101906dbd43aaSmrg 101916dbd43aaSmrg 101926dbd43aaSmrg 101936dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 101946dbd43aaSmrg 101956dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 101966dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10197051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10198051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10199051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10200051ceee6Smrgthen : 10201051ceee6Smrg printf %s "(cached) " >&6 10202051ceee6Smrgelse $as_nop 102036dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102046dbd43aaSmrg/* end confdefs.h. */ 102056dbd43aaSmrgint i; 102066dbd43aaSmrg_ACEOF 10207051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 10208051ceee6Smrgthen : 102096dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10210051ceee6Smrgelse $as_nop 102116dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 102126dbd43aaSmrgfi 10213051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 102146dbd43aaSmrgfi 10215051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10216051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 102176dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 102186dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 102196dbd43aaSmrgfi 102206dbd43aaSmrg 102216dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 102226dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 102236dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102246dbd43aaSmrg fi 102256dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10226051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10227051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10228051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10229051ceee6Smrgthen : 10230051ceee6Smrg printf %s "(cached) " >&6 10231051ceee6Smrgelse $as_nop 102326dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102336dbd43aaSmrg/* end confdefs.h. */ 102346dbd43aaSmrgint i; 102356dbd43aaSmrg_ACEOF 10236051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 10237051ceee6Smrgthen : 102386dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10239051ceee6Smrgelse $as_nop 102406dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 102416dbd43aaSmrgfi 10242051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 102436dbd43aaSmrgfi 10244051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10245051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 102466dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 102476dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 102486dbd43aaSmrgfi 102496dbd43aaSmrg 102506dbd43aaSmrgfound="no" 102516dbd43aaSmrg 102526dbd43aaSmrg if test $found = "no" ; then 10253e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 102546dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102556dbd43aaSmrg fi 102566dbd43aaSmrg 10257e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 102586dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 102596dbd43aaSmrg fi 102606dbd43aaSmrg 102616dbd43aaSmrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 102626dbd43aaSmrg 10263051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10264051ceee6Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 102656dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10266051ceee6Smrg if eval test \${$cacheid+y} 10267051ceee6Smrgthen : 10268051ceee6Smrg printf %s "(cached) " >&6 10269051ceee6Smrgelse $as_nop 102706dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102716dbd43aaSmrg/* end confdefs.h. */ 102726dbd43aaSmrgint i; 102736dbd43aaSmrgint 10274051ceee6Smrgmain (void) 102756dbd43aaSmrg{ 102766dbd43aaSmrg 102776dbd43aaSmrg ; 102786dbd43aaSmrg return 0; 102796dbd43aaSmrg} 102806dbd43aaSmrg_ACEOF 10281051ceee6Smrgif ac_fn_c_try_link "$LINENO" 10282051ceee6Smrgthen : 102836dbd43aaSmrg eval $cacheid=yes 10284051ceee6Smrgelse $as_nop 102856dbd43aaSmrg eval $cacheid=no 102866dbd43aaSmrgfi 10287051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 102886dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 102896dbd43aaSmrgfi 102906dbd43aaSmrg 102916dbd43aaSmrg 102926dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 102936dbd43aaSmrg 102946dbd43aaSmrg eval supported=\$$cacheid 10295051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10296051ceee6Smrgprintf "%s\n" "$supported" >&6; } 102976dbd43aaSmrg if test "$supported" = "yes" ; then 102986dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 102996dbd43aaSmrg found="yes" 103006dbd43aaSmrg fi 103016dbd43aaSmrg fi 103026dbd43aaSmrg 103036dbd43aaSmrg 103046dbd43aaSmrg 103056dbd43aaSmrg 103066dbd43aaSmrg 103076dbd43aaSmrg 103086dbd43aaSmrg 103096dbd43aaSmrg 103106dbd43aaSmrg 103116dbd43aaSmrg 103126dbd43aaSmrg 103136dbd43aaSmrg 103146dbd43aaSmrg 103156dbd43aaSmrg 103166dbd43aaSmrg 103176dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 103186dbd43aaSmrg 103196dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 103206dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10321051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10322051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10323051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10324051ceee6Smrgthen : 10325051ceee6Smrg printf %s "(cached) " >&6 10326051ceee6Smrgelse $as_nop 103276dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 103286dbd43aaSmrg/* end confdefs.h. */ 103296dbd43aaSmrgint i; 103306dbd43aaSmrg_ACEOF 10331051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 10332051ceee6Smrgthen : 103336dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10334051ceee6Smrgelse $as_nop 103356dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 103366dbd43aaSmrgfi 10337051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 103386dbd43aaSmrgfi 10339051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10340051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 103416dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 103426dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 103436dbd43aaSmrgfi 103446dbd43aaSmrg 103456dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 103466dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 103476dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103486dbd43aaSmrg fi 103496dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10350051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10351051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10352051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10353051ceee6Smrgthen : 10354051ceee6Smrg printf %s "(cached) " >&6 10355051ceee6Smrgelse $as_nop 103566dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 103576dbd43aaSmrg/* end confdefs.h. */ 103586dbd43aaSmrgint i; 103596dbd43aaSmrg_ACEOF 10360051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 10361051ceee6Smrgthen : 103626dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10363051ceee6Smrgelse $as_nop 103646dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 103656dbd43aaSmrgfi 10366051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 103676dbd43aaSmrgfi 10368051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10369051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 103706dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 103716dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 103726dbd43aaSmrgfi 103736dbd43aaSmrg 103746dbd43aaSmrgfound="no" 103756dbd43aaSmrg 103766dbd43aaSmrg if test $found = "no" ; then 10377e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 103786dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103796dbd43aaSmrg fi 103806dbd43aaSmrg 10381e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 103826dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103836dbd43aaSmrg fi 103846dbd43aaSmrg 103856dbd43aaSmrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 103866dbd43aaSmrg 10387051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10388051ceee6Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 103896dbd43aaSmrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10390051ceee6Smrg if eval test \${$cacheid+y} 10391051ceee6Smrgthen : 10392051ceee6Smrg printf %s "(cached) " >&6 10393051ceee6Smrgelse $as_nop 103946dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 103956dbd43aaSmrg/* end confdefs.h. */ 103966dbd43aaSmrgint i; 103976dbd43aaSmrgint 10398051ceee6Smrgmain (void) 103996dbd43aaSmrg{ 104006dbd43aaSmrg 104016dbd43aaSmrg ; 104026dbd43aaSmrg return 0; 104036dbd43aaSmrg} 104046dbd43aaSmrg_ACEOF 10405051ceee6Smrgif ac_fn_c_try_link "$LINENO" 10406051ceee6Smrgthen : 104076dbd43aaSmrg eval $cacheid=yes 10408051ceee6Smrgelse $as_nop 104096dbd43aaSmrg eval $cacheid=no 104106dbd43aaSmrgfi 10411051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 104126dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 104136dbd43aaSmrgfi 104146dbd43aaSmrg 104156dbd43aaSmrg 104166dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 104176dbd43aaSmrg 104186dbd43aaSmrg eval supported=\$$cacheid 10419051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10420051ceee6Smrgprintf "%s\n" "$supported" >&6; } 104216dbd43aaSmrg if test "$supported" = "yes" ; then 104226dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 104236dbd43aaSmrg found="yes" 104246dbd43aaSmrg fi 104256dbd43aaSmrg fi 104266dbd43aaSmrg 104276dbd43aaSmrg 104286dbd43aaSmrgfi 104296dbd43aaSmrg 104306dbd43aaSmrg 104316dbd43aaSmrg 104326dbd43aaSmrg 104336dbd43aaSmrg 104346dbd43aaSmrg 104356dbd43aaSmrg 104366dbd43aaSmrg CWARNFLAGS="$BASE_CFLAGS" 104376dbd43aaSmrg if test "x$GCC" = xyes ; then 104386dbd43aaSmrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 104396dbd43aaSmrg fi 104406dbd43aaSmrg 104416dbd43aaSmrg 104426dbd43aaSmrg 104436dbd43aaSmrg 104446dbd43aaSmrg 104456dbd43aaSmrg 104466dbd43aaSmrg 104476dbd43aaSmrg 104486dbd43aaSmrg# Check whether --enable-strict-compilation was given. 10449051ceee6Smrgif test ${enable_strict_compilation+y} 10450051ceee6Smrgthen : 104516dbd43aaSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10452051ceee6Smrgelse $as_nop 104536dbd43aaSmrg STRICT_COMPILE=no 104546dbd43aaSmrgfi 104556dbd43aaSmrg 104566dbd43aaSmrg 104576dbd43aaSmrg 104586dbd43aaSmrg 104596dbd43aaSmrg 104606dbd43aaSmrg 104616dbd43aaSmrgSTRICT_CFLAGS="" 104626dbd43aaSmrg 104636dbd43aaSmrg 104646dbd43aaSmrg 104656dbd43aaSmrg 104666dbd43aaSmrg 104676dbd43aaSmrg 104686dbd43aaSmrg 104696dbd43aaSmrg 104706dbd43aaSmrg 104716dbd43aaSmrg 104726dbd43aaSmrg 104736dbd43aaSmrg 104746dbd43aaSmrg 104756dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 104766dbd43aaSmrg 104776dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 104786dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10479051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10480051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10481051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10482051ceee6Smrgthen : 10483051ceee6Smrg printf %s "(cached) " >&6 10484051ceee6Smrgelse $as_nop 104856dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 104866dbd43aaSmrg/* end confdefs.h. */ 104876dbd43aaSmrgint i; 104886dbd43aaSmrg_ACEOF 10489051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 10490051ceee6Smrgthen : 104916dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10492051ceee6Smrgelse $as_nop 104936dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 104946dbd43aaSmrgfi 10495051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 104966dbd43aaSmrgfi 10497051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10498051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 104996dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 105006dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 105016dbd43aaSmrgfi 105026dbd43aaSmrg 105036dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 105046dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 105056dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 105066dbd43aaSmrg fi 105076dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10508051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10509051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10510051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10511051ceee6Smrgthen : 10512051ceee6Smrg printf %s "(cached) " >&6 10513051ceee6Smrgelse $as_nop 105146dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 105156dbd43aaSmrg/* end confdefs.h. */ 105166dbd43aaSmrgint i; 105176dbd43aaSmrg_ACEOF 10518051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 10519051ceee6Smrgthen : 105206dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10521051ceee6Smrgelse $as_nop 105226dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 105236dbd43aaSmrgfi 10524051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 105256dbd43aaSmrgfi 10526051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10527051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 105286dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 105296dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 105306dbd43aaSmrgfi 105316dbd43aaSmrg 105326dbd43aaSmrgfound="no" 105336dbd43aaSmrg 105346dbd43aaSmrg if test $found = "no" ; then 10535e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 105366dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 105376dbd43aaSmrg fi 105386dbd43aaSmrg 10539e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 105406dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 105416dbd43aaSmrg fi 105426dbd43aaSmrg 105436dbd43aaSmrg CFLAGS="$CFLAGS -pedantic" 105446dbd43aaSmrg 10545051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10546051ceee6Smrgprintf %s "checking if $CC supports -pedantic... " >&6; } 105476dbd43aaSmrg cacheid=xorg_cv_cc_flag__pedantic 10548051ceee6Smrg if eval test \${$cacheid+y} 10549051ceee6Smrgthen : 10550051ceee6Smrg printf %s "(cached) " >&6 10551051ceee6Smrgelse $as_nop 105526dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 105536dbd43aaSmrg/* end confdefs.h. */ 105546dbd43aaSmrgint i; 105556dbd43aaSmrgint 10556051ceee6Smrgmain (void) 105576dbd43aaSmrg{ 105586dbd43aaSmrg 105596dbd43aaSmrg ; 105606dbd43aaSmrg return 0; 105616dbd43aaSmrg} 105626dbd43aaSmrg_ACEOF 10563051ceee6Smrgif ac_fn_c_try_link "$LINENO" 10564051ceee6Smrgthen : 105656dbd43aaSmrg eval $cacheid=yes 10566051ceee6Smrgelse $as_nop 105676dbd43aaSmrg eval $cacheid=no 105686dbd43aaSmrgfi 10569051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 105706dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 105716dbd43aaSmrgfi 105726dbd43aaSmrg 105736dbd43aaSmrg 105746dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 105756dbd43aaSmrg 105766dbd43aaSmrg eval supported=\$$cacheid 10577051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10578051ceee6Smrgprintf "%s\n" "$supported" >&6; } 105796dbd43aaSmrg if test "$supported" = "yes" ; then 105806dbd43aaSmrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 105816dbd43aaSmrg found="yes" 105826dbd43aaSmrg fi 105836dbd43aaSmrg fi 105846dbd43aaSmrg 105856dbd43aaSmrg 105866dbd43aaSmrg 105876dbd43aaSmrg 105886dbd43aaSmrg 105896dbd43aaSmrg 105906dbd43aaSmrg 105916dbd43aaSmrg 105926dbd43aaSmrg 105936dbd43aaSmrg 105946dbd43aaSmrg 105956dbd43aaSmrg 105966dbd43aaSmrg 105976dbd43aaSmrg 105986dbd43aaSmrg 105996dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 106006dbd43aaSmrg 106016dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 106026dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10603051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10604051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10605051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10606051ceee6Smrgthen : 10607051ceee6Smrg printf %s "(cached) " >&6 10608051ceee6Smrgelse $as_nop 106096dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 106106dbd43aaSmrg/* end confdefs.h. */ 106116dbd43aaSmrgint i; 106126dbd43aaSmrg_ACEOF 10613051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 10614051ceee6Smrgthen : 106156dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10616051ceee6Smrgelse $as_nop 106176dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 106186dbd43aaSmrgfi 10619051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 106206dbd43aaSmrgfi 10621051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10622051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 106236dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 106246dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 106256dbd43aaSmrgfi 106266dbd43aaSmrg 106276dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 106286dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 106296dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 106306dbd43aaSmrg fi 106316dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10632051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10633051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10634051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10635051ceee6Smrgthen : 10636051ceee6Smrg printf %s "(cached) " >&6 10637051ceee6Smrgelse $as_nop 106386dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 106396dbd43aaSmrg/* end confdefs.h. */ 106406dbd43aaSmrgint i; 106416dbd43aaSmrg_ACEOF 10642051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 10643051ceee6Smrgthen : 106446dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10645051ceee6Smrgelse $as_nop 106466dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 106476dbd43aaSmrgfi 10648051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 106496dbd43aaSmrgfi 10650051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10651051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 106526dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 106536dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 106546dbd43aaSmrgfi 106556dbd43aaSmrg 106566dbd43aaSmrgfound="no" 106576dbd43aaSmrg 106586dbd43aaSmrg if test $found = "no" ; then 10659e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 106606dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 106616dbd43aaSmrg fi 106626dbd43aaSmrg 10663e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 106646dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 106656dbd43aaSmrg fi 106666dbd43aaSmrg 106676dbd43aaSmrg CFLAGS="$CFLAGS -Werror" 106686dbd43aaSmrg 10669051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10670051ceee6Smrgprintf %s "checking if $CC supports -Werror... " >&6; } 106716dbd43aaSmrg cacheid=xorg_cv_cc_flag__Werror 10672051ceee6Smrg if eval test \${$cacheid+y} 10673051ceee6Smrgthen : 10674051ceee6Smrg printf %s "(cached) " >&6 10675051ceee6Smrgelse $as_nop 106766dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 106776dbd43aaSmrg/* end confdefs.h. */ 106786dbd43aaSmrgint i; 106796dbd43aaSmrgint 10680051ceee6Smrgmain (void) 106816dbd43aaSmrg{ 106826dbd43aaSmrg 106836dbd43aaSmrg ; 106846dbd43aaSmrg return 0; 106856dbd43aaSmrg} 106866dbd43aaSmrg_ACEOF 10687051ceee6Smrgif ac_fn_c_try_link "$LINENO" 10688051ceee6Smrgthen : 106896dbd43aaSmrg eval $cacheid=yes 10690051ceee6Smrgelse $as_nop 106916dbd43aaSmrg eval $cacheid=no 106926dbd43aaSmrgfi 10693051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 106946dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 106956dbd43aaSmrgfi 106966dbd43aaSmrg 106976dbd43aaSmrg 106986dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 106996dbd43aaSmrg 107006dbd43aaSmrg eval supported=\$$cacheid 10701051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10702051ceee6Smrgprintf "%s\n" "$supported" >&6; } 107036dbd43aaSmrg if test "$supported" = "yes" ; then 107046dbd43aaSmrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 107056dbd43aaSmrg found="yes" 107066dbd43aaSmrg fi 107076dbd43aaSmrg fi 107086dbd43aaSmrg 107096dbd43aaSmrg if test $found = "no" ; then 10710e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 107116dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 107126dbd43aaSmrg fi 107136dbd43aaSmrg 10714e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 107156dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 107166dbd43aaSmrg fi 107176dbd43aaSmrg 107186dbd43aaSmrg CFLAGS="$CFLAGS -errwarn" 107196dbd43aaSmrg 10720051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10721051ceee6Smrgprintf %s "checking if $CC supports -errwarn... " >&6; } 107226dbd43aaSmrg cacheid=xorg_cv_cc_flag__errwarn 10723051ceee6Smrg if eval test \${$cacheid+y} 10724051ceee6Smrgthen : 10725051ceee6Smrg printf %s "(cached) " >&6 10726051ceee6Smrgelse $as_nop 107276dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 107286dbd43aaSmrg/* end confdefs.h. */ 107296dbd43aaSmrgint i; 107306dbd43aaSmrgint 10731051ceee6Smrgmain (void) 107326dbd43aaSmrg{ 107336dbd43aaSmrg 107346dbd43aaSmrg ; 107356dbd43aaSmrg return 0; 107366dbd43aaSmrg} 107376dbd43aaSmrg_ACEOF 10738051ceee6Smrgif ac_fn_c_try_link "$LINENO" 10739051ceee6Smrgthen : 107406dbd43aaSmrg eval $cacheid=yes 10741051ceee6Smrgelse $as_nop 107426dbd43aaSmrg eval $cacheid=no 107436dbd43aaSmrgfi 10744051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 107456dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 107466dbd43aaSmrgfi 107476dbd43aaSmrg 107486dbd43aaSmrg 107496dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 107506dbd43aaSmrg 107516dbd43aaSmrg eval supported=\$$cacheid 10752051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10753051ceee6Smrgprintf "%s\n" "$supported" >&6; } 107546dbd43aaSmrg if test "$supported" = "yes" ; then 107556dbd43aaSmrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 107566dbd43aaSmrg found="yes" 107576dbd43aaSmrg fi 107586dbd43aaSmrg fi 107596dbd43aaSmrg 107606dbd43aaSmrg 107616dbd43aaSmrg 107626dbd43aaSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 107636dbd43aaSmrg# activate it with -Werror, so we add it here explicitly. 107646dbd43aaSmrg 107656dbd43aaSmrg 107666dbd43aaSmrg 107676dbd43aaSmrg 107686dbd43aaSmrg 107696dbd43aaSmrg 107706dbd43aaSmrg 107716dbd43aaSmrg 107726dbd43aaSmrg 107736dbd43aaSmrg 107746dbd43aaSmrg 107756dbd43aaSmrg 107766dbd43aaSmrg 107776dbd43aaSmrgxorg_testset_save_CFLAGS="$CFLAGS" 107786dbd43aaSmrg 107796dbd43aaSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 107806dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10781051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10782051ceee6Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10783051ceee6Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 10784051ceee6Smrgthen : 10785051ceee6Smrg printf %s "(cached) " >&6 10786051ceee6Smrgelse $as_nop 107876dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 107886dbd43aaSmrg/* end confdefs.h. */ 107896dbd43aaSmrgint i; 107906dbd43aaSmrg_ACEOF 10791051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 10792051ceee6Smrgthen : 107936dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=yes 10794051ceee6Smrgelse $as_nop 107956dbd43aaSmrg xorg_cv_cc_flag_unknown_warning_option=no 107966dbd43aaSmrgfi 10797051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 107986dbd43aaSmrgfi 10799051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10800051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 108016dbd43aaSmrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 108026dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 108036dbd43aaSmrgfi 108046dbd43aaSmrg 108056dbd43aaSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 108066dbd43aaSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 108076dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 108086dbd43aaSmrg fi 108096dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10810051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10811051ceee6Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10812051ceee6Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10813051ceee6Smrgthen : 10814051ceee6Smrg printf %s "(cached) " >&6 10815051ceee6Smrgelse $as_nop 108166dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 108176dbd43aaSmrg/* end confdefs.h. */ 108186dbd43aaSmrgint i; 108196dbd43aaSmrg_ACEOF 10820051ceee6Smrgif ac_fn_c_try_compile "$LINENO" 10821051ceee6Smrgthen : 108226dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=yes 10823051ceee6Smrgelse $as_nop 108246dbd43aaSmrg xorg_cv_cc_flag_unused_command_line_argument=no 108256dbd43aaSmrgfi 10826051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 108276dbd43aaSmrgfi 10828051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10829051ceee6Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 108306dbd43aaSmrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 108316dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 108326dbd43aaSmrgfi 108336dbd43aaSmrg 108346dbd43aaSmrgfound="no" 108356dbd43aaSmrg 108366dbd43aaSmrg if test $found = "no" ; then 10837e90eff46Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 108386dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 108396dbd43aaSmrg fi 108406dbd43aaSmrg 10841e90eff46Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 108426dbd43aaSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 108436dbd43aaSmrg fi 108446dbd43aaSmrg 108456dbd43aaSmrg CFLAGS="$CFLAGS -Werror=attributes" 108466dbd43aaSmrg 10847051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10848051ceee6Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 10849e90eff46Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 10850051ceee6Smrg if eval test \${$cacheid+y} 10851051ceee6Smrgthen : 10852051ceee6Smrg printf %s "(cached) " >&6 10853051ceee6Smrgelse $as_nop 108546dbd43aaSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 108556dbd43aaSmrg/* end confdefs.h. */ 108566dbd43aaSmrgint i; 108576dbd43aaSmrgint 10858051ceee6Smrgmain (void) 108596dbd43aaSmrg{ 108606dbd43aaSmrg 108616dbd43aaSmrg ; 108626dbd43aaSmrg return 0; 108636dbd43aaSmrg} 108646dbd43aaSmrg_ACEOF 10865051ceee6Smrgif ac_fn_c_try_link "$LINENO" 10866051ceee6Smrgthen : 108676dbd43aaSmrg eval $cacheid=yes 10868051ceee6Smrgelse $as_nop 108696dbd43aaSmrg eval $cacheid=no 108706dbd43aaSmrgfi 10871051ceee6Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 108726dbd43aaSmrg conftest$ac_exeext conftest.$ac_ext 108736dbd43aaSmrgfi 108746dbd43aaSmrg 108756dbd43aaSmrg 108766dbd43aaSmrg CFLAGS="$xorg_testset_save_CFLAGS" 108776dbd43aaSmrg 108786dbd43aaSmrg eval supported=\$$cacheid 10879051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10880051ceee6Smrgprintf "%s\n" "$supported" >&6; } 108816dbd43aaSmrg if test "$supported" = "yes" ; then 108826dbd43aaSmrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 108836dbd43aaSmrg found="yes" 108846dbd43aaSmrg fi 108856dbd43aaSmrg fi 108866dbd43aaSmrg 108876dbd43aaSmrg 108886dbd43aaSmrg 108896dbd43aaSmrgif test "x$STRICT_COMPILE" = "xyes"; then 108906dbd43aaSmrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 108916dbd43aaSmrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 108926dbd43aaSmrgfi 108936dbd43aaSmrg 108946dbd43aaSmrg 1089567f05d30Smrg 1089667f05d30Smrg 1089767f05d30Smrg 1089867f05d30Smrg 10899fc51f767Smrgcat >>confdefs.h <<_ACEOF 10900fc51f767Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10901fc51f767Smrg_ACEOF 10902fc51f767Smrg 10903fc51f767Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10904fc51f767Smrg if test "x$PVM" = "x"; then 10905fc51f767Smrg PVM="0" 10906fc51f767Smrg fi 10907fc51f767Smrg 10908051ceee6Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10909fc51f767Smrg 10910fc51f767Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10911fc51f767Smrg if test "x$PVP" = "x"; then 10912fc51f767Smrg PVP="0" 10913fc51f767Smrg fi 10914fc51f767Smrg 10915051ceee6Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10916fc51f767Smrg 10917fc51f767Smrg 10918fc51f767Smrg 10919051ceee6SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10920fc51f767Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10921051ceee6Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10922051ceee6Smrgtouch \$(top_srcdir)/ChangeLog; \ 10923051ceee6Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10924fc51f767Smrg 10925fc51f767Smrg 10926fc51f767Smrg 10927fc51f767Smrg 10928fc51f767Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10929fc51f767SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10930fc51f767Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10931051ceee6Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10932051ceee6Smrgtouch \$(top_srcdir)/INSTALL; \ 10933051ceee6Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10934051ceee6Smrg 10935051ceee6Smrg 10936fc51f767Smrg 10937fc51f767Smrg 10938fc51f767Smrg 10939fc51f767Smrg 10940051ceee6Smrgcase $host_os in 10941051ceee6Smrg solaris*) 10942051ceee6Smrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10943051ceee6Smrg # check for a man page file found in later versions that use 10944051ceee6Smrg # traditional section numbers instead 10945051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10946051ceee6Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10947051ceee6Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10948051ceee6Smrgthen : 10949051ceee6Smrg printf %s "(cached) " >&6 10950051ceee6Smrgelse $as_nop 10951051ceee6Smrg test "$cross_compiling" = yes && 10952051ceee6Smrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10953051ceee6Smrgif test -r "/usr/share/man/man7/attributes.7"; then 10954051ceee6Smrg ac_cv_file__usr_share_man_man7_attributes_7=yes 10955051ceee6Smrgelse 10956051ceee6Smrg ac_cv_file__usr_share_man_man7_attributes_7=no 10957051ceee6Smrgfi 10958051ceee6Smrgfi 10959051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10960051ceee6Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10961051ceee6Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10962051ceee6Smrgthen : 10963051ceee6Smrg SYSV_MAN_SECTIONS=false 10964051ceee6Smrgelse $as_nop 10965051ceee6Smrg SYSV_MAN_SECTIONS=true 10966051ceee6Smrgfi 10967fc51f767Smrg 10968051ceee6Smrg ;; 10969051ceee6Smrg *) SYSV_MAN_SECTIONS=false ;; 10970051ceee6Smrgesac 10971fc51f767Smrg 10972fc51f767Smrgif test x$APP_MAN_SUFFIX = x ; then 10973fc51f767Smrg APP_MAN_SUFFIX=1 10974fc51f767Smrgfi 10975fc51f767Smrgif test x$APP_MAN_DIR = x ; then 10976fc51f767Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1097767f05d30Smrgfi 1097867f05d30Smrg 10979fc51f767Smrgif test x$LIB_MAN_SUFFIX = x ; then 10980fc51f767Smrg LIB_MAN_SUFFIX=3 10981fc51f767Smrgfi 10982fc51f767Smrgif test x$LIB_MAN_DIR = x ; then 10983fc51f767Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10984fc51f767Smrgfi 1098567f05d30Smrg 10986fc51f767Smrgif test x$FILE_MAN_SUFFIX = x ; then 10987051ceee6Smrg case $SYSV_MAN_SECTIONS in 10988051ceee6Smrg true) FILE_MAN_SUFFIX=4 ;; 10989e90eff46Smrg *) FILE_MAN_SUFFIX=5 ;; 10990fc51f767Smrg esac 10991fc51f767Smrgfi 10992fc51f767Smrgif test x$FILE_MAN_DIR = x ; then 10993fc51f767Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10994fc51f767Smrgfi 1099567f05d30Smrg 10996fc51f767Smrgif test x$MISC_MAN_SUFFIX = x ; then 10997051ceee6Smrg case $SYSV_MAN_SECTIONS in 10998051ceee6Smrg true) MISC_MAN_SUFFIX=5 ;; 10999e90eff46Smrg *) MISC_MAN_SUFFIX=7 ;; 11000fc51f767Smrg esac 11001fc51f767Smrgfi 11002fc51f767Smrgif test x$MISC_MAN_DIR = x ; then 11003fc51f767Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11004fc51f767Smrgfi 1100567f05d30Smrg 11006fc51f767Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 11007051ceee6Smrg case $SYSV_MAN_SECTIONS in 11008051ceee6Smrg true) DRIVER_MAN_SUFFIX=7 ;; 11009e90eff46Smrg *) DRIVER_MAN_SUFFIX=4 ;; 11010fc51f767Smrg esac 11011fc51f767Smrgfi 11012fc51f767Smrgif test x$DRIVER_MAN_DIR = x ; then 11013fc51f767Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11014fc51f767Smrgfi 1101567f05d30Smrg 11016fc51f767Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 11017051ceee6Smrg case $SYSV_MAN_SECTIONS in 11018051ceee6Smrg true) ADMIN_MAN_SUFFIX=1m ;; 11019e90eff46Smrg *) ADMIN_MAN_SUFFIX=8 ;; 11020fc51f767Smrg esac 11021fc51f767Smrgfi 11022fc51f767Smrgif test x$ADMIN_MAN_DIR = x ; then 11023fc51f767Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11024fc51f767Smrgfi 1102567f05d30Smrg 11026fc51f767Smrg 11027fc51f767Smrg 11028fc51f767Smrg 11029fc51f767Smrg 11030fc51f767Smrg 11031fc51f767Smrg 11032fc51f767Smrg 11033fc51f767Smrg 11034fc51f767Smrg 11035fc51f767Smrg 11036fc51f767Smrg 11037fc51f767Smrg 11038fc51f767Smrg 11039fc51f767Smrg 11040fc51f767SmrgXORG_MAN_PAGE="X Version 11" 11041fc51f767Smrg 11042fc51f767SmrgMAN_SUBSTS="\ 11043fc51f767Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11044fc51f767Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11045fc51f767Smrg -e 's|__xservername__|Xorg|g' \ 11046fc51f767Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 11047fc51f767Smrg -e 's|__projectroot__|\$(prefix)|g' \ 11048fc51f767Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11049fc51f767Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11050fc51f767Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11051fc51f767Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11052fc51f767Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11053fc51f767Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11054fc51f767Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11055fc51f767Smrg 11056fc51f767Smrg 11057fc51f767Smrg 11058fc51f767Smrg# Check whether --enable-silent-rules was given. 11059051ceee6Smrgif test ${enable_silent_rules+y} 11060051ceee6Smrgthen : 11061fc51f767Smrg enableval=$enable_silent_rules; 11062fffe5102Smrgfi 11063fc51f767Smrg 11064e90eff46Smrgcase $enable_silent_rules in # ((( 11065e90eff46Smrg yes) AM_DEFAULT_VERBOSITY=0;; 11066e90eff46Smrg no) AM_DEFAULT_VERBOSITY=1;; 11067e90eff46Smrg *) AM_DEFAULT_VERBOSITY=0;; 11068fc51f767Smrgesac 11069e90eff46Smrgam_make=${MAKE-make} 11070051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11071051ceee6Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 11072051ceee6Smrgif test ${am_cv_make_support_nested_variables+y} 11073051ceee6Smrgthen : 11074051ceee6Smrg printf %s "(cached) " >&6 11075051ceee6Smrgelse $as_nop 11076051ceee6Smrg if printf "%s\n" 'TRUE=$(BAR$(V)) 11077e90eff46SmrgBAR0=false 11078e90eff46SmrgBAR1=true 11079e90eff46SmrgV=1 11080e90eff46Smrgam__doit: 11081e90eff46Smrg @$(TRUE) 11082e90eff46Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11083e90eff46Smrg am_cv_make_support_nested_variables=yes 11084e90eff46Smrgelse 11085e90eff46Smrg am_cv_make_support_nested_variables=no 11086e90eff46Smrgfi 11087e90eff46Smrgfi 11088051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11089051ceee6Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11090e90eff46Smrgif test $am_cv_make_support_nested_variables = yes; then 11091e90eff46Smrg AM_V='$(V)' 11092e90eff46Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11093e90eff46Smrgelse 11094e90eff46Smrg AM_V=$AM_DEFAULT_VERBOSITY 11095e90eff46Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11096e90eff46Smrgfi 11097fc51f767SmrgAM_BACKSLASH='\' 11098fc51f767Smrg 1109967f05d30Smrg 1110067f05d30Smrg 1110167f05d30Smrg 1110267f05d30Smrgpkg_failed=no 11103051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for VIEWRES" >&5 11104051ceee6Smrgprintf %s "checking for VIEWRES... " >&6; } 11105fffe5102Smrg 11106fc51f767Smrgif test -n "$VIEWRES_CFLAGS"; then 11107fc51f767Smrg pkg_cv_VIEWRES_CFLAGS="$VIEWRES_CFLAGS" 11108fffe5102Smrg elif test -n "$PKG_CONFIG"; then 11109fffe5102Smrg if test -n "$PKG_CONFIG" && \ 11110051ceee6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt\""; } >&5 11111fc51f767Smrg ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt") 2>&5 1111267f05d30Smrg ac_status=$? 11113051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11114fffe5102Smrg test $ac_status = 0; }; then 11115fc51f767Smrg pkg_cv_VIEWRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt" 2>/dev/null` 11116e90eff46Smrg test "x$?" != "x0" && pkg_failed=yes 1111767f05d30Smrgelse 1111867f05d30Smrg pkg_failed=yes 1111967f05d30Smrgfi 11120fffe5102Smrg else 11121fffe5102Smrg pkg_failed=untried 1112267f05d30Smrgfi 11123fc51f767Smrgif test -n "$VIEWRES_LIBS"; then 11124fc51f767Smrg pkg_cv_VIEWRES_LIBS="$VIEWRES_LIBS" 11125fffe5102Smrg elif test -n "$PKG_CONFIG"; then 11126fffe5102Smrg if test -n "$PKG_CONFIG" && \ 11127051ceee6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt\""; } >&5 11128fc51f767Smrg ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt") 2>&5 1112967f05d30Smrg ac_status=$? 11130051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11131fffe5102Smrg test $ac_status = 0; }; then 11132fc51f767Smrg pkg_cv_VIEWRES_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt" 2>/dev/null` 11133e90eff46Smrg test "x$?" != "x0" && pkg_failed=yes 1113467f05d30Smrgelse 1113567f05d30Smrg pkg_failed=yes 1113667f05d30Smrgfi 11137fffe5102Smrg else 11138fffe5102Smrg pkg_failed=untried 1113967f05d30Smrgfi 1114067f05d30Smrg 1114167f05d30Smrg 1114267f05d30Smrg 1114367f05d30Smrgif test $pkg_failed = yes; then 11144051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11145051ceee6Smrgprintf "%s\n" "no" >&6; } 1114667f05d30Smrg 1114767f05d30Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 1114867f05d30Smrg _pkg_short_errors_supported=yes 1114967f05d30Smrgelse 1115067f05d30Smrg _pkg_short_errors_supported=no 1115167f05d30Smrgfi 1115267f05d30Smrg if test $_pkg_short_errors_supported = yes; then 11153e90eff46Smrg VIEWRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt" 2>&1` 1115467f05d30Smrg else 11155e90eff46Smrg VIEWRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt" 2>&1` 1115667f05d30Smrg fi 1115767f05d30Smrg # Put the nasty error message in config.log where it belongs 11158fc51f767Smrg echo "$VIEWRES_PKG_ERRORS" >&5 1115967f05d30Smrg 11160fc51f767Smrg as_fn_error $? "Package requirements (xaw7 xmu xt) were not met: 1116167f05d30Smrg 11162fc51f767Smrg$VIEWRES_PKG_ERRORS 1116367f05d30Smrg 1116467f05d30SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 1116567f05d30Smrginstalled software in a non-standard prefix. 1116667f05d30Smrg 11167fc51f767SmrgAlternatively, you may set the environment variables VIEWRES_CFLAGS 11168fc51f767Smrgand VIEWRES_LIBS to avoid the need to call pkg-config. 11169e90eff46SmrgSee the pkg-config man page for more details." "$LINENO" 5 1117067f05d30Smrgelif test $pkg_failed = untried; then 11171051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11172051ceee6Smrgprintf "%s\n" "no" >&6; } 11173051ceee6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11174051ceee6Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11175fc51f767Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 1117667f05d30Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 1117767f05d30Smrgpath to pkg-config. 1117867f05d30Smrg 11179fc51f767SmrgAlternatively, you may set the environment variables VIEWRES_CFLAGS 11180fc51f767Smrgand VIEWRES_LIBS to avoid the need to call pkg-config. 1118167f05d30SmrgSee the pkg-config man page for more details. 1118267f05d30Smrg 11183fffe5102SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 11184fc51f767SmrgSee \`config.log' for more details" "$LINENO" 5; } 1118567f05d30Smrgelse 11186fc51f767Smrg VIEWRES_CFLAGS=$pkg_cv_VIEWRES_CFLAGS 11187fc51f767Smrg VIEWRES_LIBS=$pkg_cv_VIEWRES_LIBS 11188051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11189051ceee6Smrgprintf "%s\n" "yes" >&6; } 11190e90eff46Smrg 1119167f05d30Smrgfi 11192fc51f767Smrg 11193fc51f767Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 1119467f05d30Smrg 11195fffe5102Smrg# Check whether --with-appdefaultdir was given. 11196051ceee6Smrgif test ${with_appdefaultdir+y} 11197051ceee6Smrgthen : 11198fffe5102Smrg withval=$with_appdefaultdir; appdefaultdir="$withval" 11199051ceee6Smrgelse $as_nop 11200fffe5102Smrg appdefaultdir="${xt_appdefaultdir}" 1120167f05d30Smrgfi 1120267f05d30Smrg 1120367f05d30Smrg 1120467f05d30Smrg 1120567f05d30Smrg 112066dbd43aaSmrgac_config_files="$ac_config_files Makefile man/Makefile" 1120767f05d30Smrg 1120867f05d30Smrgcat >confcache <<\_ACEOF 1120967f05d30Smrg# This file is a shell script that caches the results of configure 1121067f05d30Smrg# tests run on this system so they can be shared between configure 1121167f05d30Smrg# scripts and configure runs, see configure's option --config-cache. 1121267f05d30Smrg# It is not useful on other systems. If it contains results you don't 1121367f05d30Smrg# want to keep, you may remove or edit it. 1121467f05d30Smrg# 1121567f05d30Smrg# config.status only pays attention to the cache file if you give it 1121667f05d30Smrg# the --recheck option to rerun configure. 1121767f05d30Smrg# 1121867f05d30Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 1121967f05d30Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 1122067f05d30Smrg# following values. 1122167f05d30Smrg 1122267f05d30Smrg_ACEOF 1122367f05d30Smrg 1122467f05d30Smrg# The following way of writing the cache mishandles newlines in values, 1122567f05d30Smrg# but we know of no workaround that is simple, portable, and efficient. 11226fffe5102Smrg# So, we kill variables containing newlines. 1122767f05d30Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 1122867f05d30Smrg# and sets the high bit in the cache file unless we assign to the vars. 11229fffe5102Smrg( 11230fffe5102Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11231fffe5102Smrg eval ac_val=\$$ac_var 11232fffe5102Smrg case $ac_val in #( 11233fffe5102Smrg *${as_nl}*) 11234fffe5102Smrg case $ac_var in #( 11235051ceee6Smrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11236051ceee6Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11237fffe5102Smrg esac 11238fffe5102Smrg case $ac_var in #( 11239fffe5102Smrg _ | IFS | as_nl) ;; #( 11240fffe5102Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11241fffe5102Smrg *) { eval $ac_var=; unset $ac_var;} ;; 11242fffe5102Smrg esac ;; 11243fffe5102Smrg esac 11244fffe5102Smrg done 11245fffe5102Smrg 1124667f05d30Smrg (set) 2>&1 | 11247fffe5102Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 11248fffe5102Smrg *${as_nl}ac_space=\ *) 11249fffe5102Smrg # `set' does not quote correctly, so add quotes: double-quote 11250fffe5102Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 1125167f05d30Smrg sed -n \ 1125267f05d30Smrg "s/'/'\\\\''/g; 1125367f05d30Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11254fffe5102Smrg ;; #( 1125567f05d30Smrg *) 1125667f05d30Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 11257fffe5102Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1125867f05d30Smrg ;; 11259fffe5102Smrg esac | 11260fffe5102Smrg sort 11261fffe5102Smrg) | 1126267f05d30Smrg sed ' 11263fffe5102Smrg /^ac_cv_env_/b end 1126467f05d30Smrg t clear 11265fffe5102Smrg :clear 11266051ceee6Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 1126767f05d30Smrg t end 11268fffe5102Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11269fffe5102Smrg :end' >>confcache 11270fffe5102Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11271fffe5102Smrg if test -w "$cache_file"; then 11272fc51f767Smrg if test "x$cache_file" != "x/dev/null"; then 11273051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11274051ceee6Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11275fc51f767Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 11276fc51f767Smrg cat confcache >"$cache_file" 11277fc51f767Smrg else 11278fc51f767Smrg case $cache_file in #( 11279fc51f767Smrg */* | ?:*) 11280fc51f767Smrg mv -f confcache "$cache_file"$$ && 11281fc51f767Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 11282fc51f767Smrg *) 11283fc51f767Smrg mv -f confcache "$cache_file" ;; 11284fc51f767Smrg esac 11285fc51f767Smrg fi 11286fc51f767Smrg fi 1128767f05d30Smrg else 11288051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11289051ceee6Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 1129067f05d30Smrg fi 1129167f05d30Smrgfi 1129267f05d30Smrgrm -f confcache 1129367f05d30Smrg 1129467f05d30Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 1129567f05d30Smrg# Let make expand exec_prefix. 1129667f05d30Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1129767f05d30Smrg 1129867f05d30SmrgDEFS=-DHAVE_CONFIG_H 1129967f05d30Smrg 1130067f05d30Smrgac_libobjs= 1130167f05d30Smrgac_ltlibobjs= 11302fc51f767SmrgU= 1130367f05d30Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 1130467f05d30Smrg # 1. Remove the extension, and $U if already installed. 11305fffe5102Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11306051ceee6Smrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11307fffe5102Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11308fffe5102Smrg # will be set to the directory where LIBOBJS objects are built. 11309fffe5102Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11310fffe5102Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 1131167f05d30Smrgdone 1131267f05d30SmrgLIBOBJS=$ac_libobjs 1131367f05d30Smrg 1131467f05d30SmrgLTLIBOBJS=$ac_ltlibobjs 1131567f05d30Smrg 1131667f05d30Smrg 11317051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11318051ceee6Smrgprintf %s "checking that generated files are newer than configure... " >&6; } 11319e90eff46Smrg if test -n "$am_sleep_pid"; then 11320e90eff46Smrg # Hide warnings about reused PIDs. 11321e90eff46Smrg wait $am_sleep_pid 2>/dev/null 11322e90eff46Smrg fi 11323051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11324051ceee6Smrgprintf "%s\n" "done" >&6; } 11325fffe5102Smrg if test -n "$EXEEXT"; then 11326fffe5102Smrg am__EXEEXT_TRUE= 11327fffe5102Smrg am__EXEEXT_FALSE='#' 11328fffe5102Smrgelse 11329fffe5102Smrg am__EXEEXT_TRUE='#' 11330fffe5102Smrg am__EXEEXT_FALSE= 11331fffe5102Smrgfi 11332fffe5102Smrg 1133367f05d30Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11334fc51f767Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 11335fffe5102SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1133667f05d30Smrgfi 11337fffe5102Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11338fc51f767Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11339fffe5102SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1134067f05d30Smrgfi 1134167f05d30Smrg 11342fc51f767Smrg: "${CONFIG_STATUS=./config.status}" 11343fffe5102Smrgac_write_fail=0 1134467f05d30Smrgac_clean_files_save=$ac_clean_files 1134567f05d30Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 11346051ceee6Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11347051ceee6Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11348fffe5102Smrgas_write_fail=0 11349fffe5102Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 1135067f05d30Smrg#! $SHELL 1135167f05d30Smrg# Generated by $as_me. 1135267f05d30Smrg# Run this file to recreate the current configuration. 1135367f05d30Smrg# Compiler output produced by configure, useful for debugging 1135467f05d30Smrg# configure, is in config.log if it exists. 1135567f05d30Smrg 1135667f05d30Smrgdebug=false 1135767f05d30Smrgac_cs_recheck=false 1135867f05d30Smrgac_cs_silent=false 1135967f05d30Smrg 11360fffe5102SmrgSHELL=\${CONFIG_SHELL-$SHELL} 11361fffe5102Smrgexport SHELL 11362fffe5102Smrg_ASEOF 11363fffe5102Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11364fffe5102Smrg## -------------------- ## 11365fffe5102Smrg## M4sh Initialization. ## 11366fffe5102Smrg## -------------------- ## 11367fffe5102Smrg 11368fffe5102Smrg# Be more Bourne compatible 11369fffe5102SmrgDUALCASE=1; export DUALCASE # for MKS sh 11370051ceee6Smrgas_nop=: 11371051ceee6Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11372051ceee6Smrgthen : 1137367f05d30Smrg emulate sh 1137467f05d30Smrg NULLCMD=: 11375fffe5102Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 1137667f05d30Smrg # is contrary to our usage. Disable this feature. 1137767f05d30Smrg alias -g '${1+"$@"}'='"$@"' 11378fffe5102Smrg setopt NO_GLOB_SUBST 11379051ceee6Smrgelse $as_nop 11380fffe5102Smrg case `(set -o) 2>/dev/null` in #( 11381fffe5102Smrg *posix*) : 11382fffe5102Smrg set -o posix ;; #( 11383fffe5102Smrg *) : 11384fffe5102Smrg ;; 11385fffe5102Smrgesac 1138667f05d30Smrgfi 1138767f05d30Smrg 11388fffe5102Smrg 11389051ceee6Smrg 11390051ceee6Smrg# Reset variables that may have inherited troublesome values from 11391051ceee6Smrg# the environment. 11392051ceee6Smrg 11393051ceee6Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 11394051ceee6Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 11395051ceee6Smrg# side effect of setting IFS to empty, thus disabling word splitting.) 11396051ceee6Smrg# Quoting is to prevent editors from complaining about space-tab. 11397fffe5102Smrgas_nl=' 11398fffe5102Smrg' 11399fffe5102Smrgexport as_nl 11400051ceee6SmrgIFS=" "" $as_nl" 11401051ceee6Smrg 11402051ceee6SmrgPS1='$ ' 11403051ceee6SmrgPS2='> ' 11404051ceee6SmrgPS4='+ ' 11405051ceee6Smrg 11406051ceee6Smrg# Ensure predictable behavior from utilities with locale-dependent output. 11407051ceee6SmrgLC_ALL=C 11408051ceee6Smrgexport LC_ALL 11409051ceee6SmrgLANGUAGE=C 11410051ceee6Smrgexport LANGUAGE 11411051ceee6Smrg 11412051ceee6Smrg# We cannot yet rely on "unset" to work, but we need these variables 11413051ceee6Smrg# to be unset--not just set to an empty or harmless value--now, to 11414051ceee6Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11415051ceee6Smrg# also avoids known problems related to "unset" and subshell syntax 11416051ceee6Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11417051ceee6Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11418051ceee6Smrgdo eval test \${$as_var+y} \ 11419051ceee6Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11420051ceee6Smrgdone 11421051ceee6Smrg 11422051ceee6Smrg# Ensure that fds 0, 1, and 2 are open. 11423051ceee6Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11424051ceee6Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11425051ceee6Smrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11426fffe5102Smrg 11427fffe5102Smrg# The user is always right. 11428051ceee6Smrgif ${PATH_SEPARATOR+false} :; then 11429fffe5102Smrg PATH_SEPARATOR=: 11430fffe5102Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11431fffe5102Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11432fffe5102Smrg PATH_SEPARATOR=';' 11433fffe5102Smrg } 1143467f05d30Smrgfi 1143567f05d30Smrg 1143667f05d30Smrg 11437fffe5102Smrg# Find who we are. Look in the path if we contain no directory separator. 11438fc51f767Smrgas_myself= 11439fffe5102Smrgcase $0 in #(( 11440fffe5102Smrg *[\\/]* ) as_myself=$0 ;; 11441fffe5102Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11442fffe5102Smrgfor as_dir in $PATH 11443fffe5102Smrgdo 11444fffe5102Smrg IFS=$as_save_IFS 11445051ceee6Smrg case $as_dir in #((( 11446051ceee6Smrg '') as_dir=./ ;; 11447051ceee6Smrg */) ;; 11448051ceee6Smrg *) as_dir=$as_dir/ ;; 11449051ceee6Smrg esac 11450051ceee6Smrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11451fffe5102Smrg done 11452fffe5102SmrgIFS=$as_save_IFS 11453fffe5102Smrg 11454fffe5102Smrg ;; 11455fffe5102Smrgesac 11456fffe5102Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 11457fffe5102Smrg# in which case we are not to be found in the path. 11458fffe5102Smrgif test "x$as_myself" = x; then 11459fffe5102Smrg as_myself=$0 11460fffe5102Smrgfi 11461fffe5102Smrgif test ! -f "$as_myself"; then 11462051ceee6Smrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11463fffe5102Smrg exit 1 11464fffe5102Smrgfi 11465fffe5102Smrg 11466fffe5102Smrg 11467fffe5102Smrg 11468fc51f767Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 11469fc51f767Smrg# ---------------------------------------- 11470fffe5102Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11471fffe5102Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11472fc51f767Smrg# script with STATUS, using 1 if that was 0. 11473fffe5102Smrgas_fn_error () 11474fffe5102Smrg{ 11475fc51f767Smrg as_status=$1; test $as_status -eq 0 && as_status=1 11476fc51f767Smrg if test "$4"; then 11477fc51f767Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11478051ceee6Smrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 1147967f05d30Smrg fi 11480051ceee6Smrg printf "%s\n" "$as_me: error: $2" >&2 11481fffe5102Smrg as_fn_exit $as_status 11482fffe5102Smrg} # as_fn_error 11483fffe5102Smrg 1148467f05d30Smrg 11485051ceee6Smrg 11486fffe5102Smrg# as_fn_set_status STATUS 11487fffe5102Smrg# ----------------------- 11488fffe5102Smrg# Set $? to STATUS, without forking. 11489fffe5102Smrgas_fn_set_status () 11490fffe5102Smrg{ 11491fffe5102Smrg return $1 11492fffe5102Smrg} # as_fn_set_status 11493fffe5102Smrg 11494fffe5102Smrg# as_fn_exit STATUS 11495fffe5102Smrg# ----------------- 11496fffe5102Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11497fffe5102Smrgas_fn_exit () 11498fffe5102Smrg{ 11499fffe5102Smrg set +e 11500fffe5102Smrg as_fn_set_status $1 11501fffe5102Smrg exit $1 11502fffe5102Smrg} # as_fn_exit 11503fffe5102Smrg 11504fffe5102Smrg# as_fn_unset VAR 11505fffe5102Smrg# --------------- 11506fffe5102Smrg# Portably unset VAR. 11507fffe5102Smrgas_fn_unset () 11508fffe5102Smrg{ 11509fffe5102Smrg { eval $1=; unset $1;} 11510fffe5102Smrg} 11511fffe5102Smrgas_unset=as_fn_unset 11512051ceee6Smrg 11513fffe5102Smrg# as_fn_append VAR VALUE 11514fffe5102Smrg# ---------------------- 11515fffe5102Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 11516fffe5102Smrg# advantage of any shell optimizations that allow amortized linear growth over 11517fffe5102Smrg# repeated appends, instead of the typical quadratic growth present in naive 11518fffe5102Smrg# implementations. 11519051ceee6Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11520051ceee6Smrgthen : 11521fffe5102Smrg eval 'as_fn_append () 11522fffe5102Smrg { 11523fffe5102Smrg eval $1+=\$2 11524fffe5102Smrg }' 11525051ceee6Smrgelse $as_nop 11526fffe5102Smrg as_fn_append () 11527fffe5102Smrg { 11528fffe5102Smrg eval $1=\$$1\$2 11529fffe5102Smrg } 11530fffe5102Smrgfi # as_fn_append 11531fffe5102Smrg 11532fffe5102Smrg# as_fn_arith ARG... 11533fffe5102Smrg# ------------------ 11534fffe5102Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 11535fffe5102Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 11536fffe5102Smrg# must be portable across $(()) and expr. 11537051ceee6Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11538051ceee6Smrgthen : 11539fffe5102Smrg eval 'as_fn_arith () 11540fffe5102Smrg { 11541fffe5102Smrg as_val=$(( $* )) 11542fffe5102Smrg }' 11543051ceee6Smrgelse $as_nop 11544fffe5102Smrg as_fn_arith () 11545fffe5102Smrg { 11546fffe5102Smrg as_val=`expr "$@" || test $? -eq 1` 11547fffe5102Smrg } 11548fffe5102Smrgfi # as_fn_arith 11549fffe5102Smrg 11550fffe5102Smrg 11551fffe5102Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 11552fffe5102Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 1155367f05d30Smrg as_expr=expr 1155467f05d30Smrgelse 1155567f05d30Smrg as_expr=false 1155667f05d30Smrgfi 1155767f05d30Smrg 11558fffe5102Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 1155967f05d30Smrg as_basename=basename 1156067f05d30Smrgelse 1156167f05d30Smrg as_basename=false 1156267f05d30Smrgfi 1156367f05d30Smrg 11564fffe5102Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11565fffe5102Smrg as_dirname=dirname 11566fffe5102Smrgelse 11567fffe5102Smrg as_dirname=false 11568fffe5102Smrgfi 1156967f05d30Smrg 11570fffe5102Smrgas_me=`$as_basename -- "$0" || 1157167f05d30Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 1157267f05d30Smrg X"$0" : 'X\(//\)$' \| \ 11573fffe5102Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 11574051ceee6Smrgprintf "%s\n" X/"$0" | 11575fffe5102Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 11576fffe5102Smrg s//\1/ 11577fffe5102Smrg q 11578fffe5102Smrg } 11579fffe5102Smrg /^X\/\(\/\/\)$/{ 11580fffe5102Smrg s//\1/ 11581fffe5102Smrg q 11582fffe5102Smrg } 11583fffe5102Smrg /^X\/\(\/\).*/{ 11584fffe5102Smrg s//\1/ 11585fffe5102Smrg q 11586fffe5102Smrg } 11587fffe5102Smrg s/.*/./; q'` 1158867f05d30Smrg 1158967f05d30Smrg# Avoid depending upon Character Ranges. 1159067f05d30Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 1159167f05d30Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 1159267f05d30Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 1159367f05d30Smrgas_cr_digits='0123456789' 1159467f05d30Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 1159567f05d30Smrg 11596051ceee6Smrg 11597051ceee6Smrg# Determine whether it's possible to make 'echo' print without a newline. 11598051ceee6Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11599051ceee6Smrg# for compatibility with existing Makefiles. 11600fffe5102SmrgECHO_C= ECHO_N= ECHO_T= 11601fffe5102Smrgcase `echo -n x` in #((((( 11602fffe5102Smrg-n*) 11603fffe5102Smrg case `echo 'xy\c'` in 11604fffe5102Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11605fffe5102Smrg xy) ECHO_C='\c';; 11606fffe5102Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11607fffe5102Smrg ECHO_T=' ';; 11608fffe5102Smrg esac;; 11609fffe5102Smrg*) 11610fffe5102Smrg ECHO_N='-n';; 1161167f05d30Smrgesac 1161267f05d30Smrg 11613051ceee6Smrg# For backward compatibility with old third-party macros, we provide 11614051ceee6Smrg# the shell variables $as_echo and $as_echo_n. New code should use 11615051ceee6Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11616051ceee6Smrgas_echo='printf %s\n' 11617051ceee6Smrgas_echo_n='printf %s' 11618051ceee6Smrg 11619fffe5102Smrgrm -f conf$$ conf$$.exe conf$$.file 11620fffe5102Smrgif test -d conf$$.dir; then 11621fffe5102Smrg rm -f conf$$.dir/conf$$.file 1162267f05d30Smrgelse 11623fffe5102Smrg rm -f conf$$.dir 11624fffe5102Smrg mkdir conf$$.dir 2>/dev/null 1162567f05d30Smrgfi 11626fffe5102Smrgif (echo >conf$$.file) 2>/dev/null; then 11627fffe5102Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 1162867f05d30Smrg as_ln_s='ln -s' 11629fffe5102Smrg # ... but there are two gotchas: 11630fffe5102Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11631fffe5102Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11632e90eff46Smrg # In both cases, we have to default to `cp -pR'. 11633fffe5102Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11634e90eff46Smrg as_ln_s='cp -pR' 11635fffe5102Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 11636fffe5102Smrg as_ln_s=ln 11637fffe5102Smrg else 11638e90eff46Smrg as_ln_s='cp -pR' 1163967f05d30Smrg fi 1164067f05d30Smrgelse 11641e90eff46Smrg as_ln_s='cp -pR' 1164267f05d30Smrgfi 11643fffe5102Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11644fffe5102Smrgrmdir conf$$.dir 2>/dev/null 11645fffe5102Smrg 11646fffe5102Smrg 11647fffe5102Smrg# as_fn_mkdir_p 11648fffe5102Smrg# ------------- 11649fffe5102Smrg# Create "$as_dir" as a directory, including parents if necessary. 11650fffe5102Smrgas_fn_mkdir_p () 11651fffe5102Smrg{ 11652fffe5102Smrg 11653fffe5102Smrg case $as_dir in #( 11654fffe5102Smrg -*) as_dir=./$as_dir;; 11655fffe5102Smrg esac 11656fffe5102Smrg test -d "$as_dir" || eval $as_mkdir_p || { 11657fffe5102Smrg as_dirs= 11658fffe5102Smrg while :; do 11659fffe5102Smrg case $as_dir in #( 11660051ceee6Smrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11661fffe5102Smrg *) as_qdir=$as_dir;; 11662fffe5102Smrg esac 11663fffe5102Smrg as_dirs="'$as_qdir' $as_dirs" 11664fffe5102Smrg as_dir=`$as_dirname -- "$as_dir" || 11665fffe5102Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11666fffe5102Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 11667fffe5102Smrg X"$as_dir" : 'X\(//\)$' \| \ 11668fffe5102Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11669051ceee6Smrgprintf "%s\n" X"$as_dir" | 11670fffe5102Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11671fffe5102Smrg s//\1/ 11672fffe5102Smrg q 11673fffe5102Smrg } 11674fffe5102Smrg /^X\(\/\/\)[^/].*/{ 11675fffe5102Smrg s//\1/ 11676fffe5102Smrg q 11677fffe5102Smrg } 11678fffe5102Smrg /^X\(\/\/\)$/{ 11679fffe5102Smrg s//\1/ 11680fffe5102Smrg q 11681fffe5102Smrg } 11682fffe5102Smrg /^X\(\/\).*/{ 11683fffe5102Smrg s//\1/ 11684fffe5102Smrg q 11685fffe5102Smrg } 11686fffe5102Smrg s/.*/./; q'` 11687fffe5102Smrg test -d "$as_dir" && break 11688fffe5102Smrg done 11689fffe5102Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 11690fc51f767Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 1169167f05d30Smrg 11692fffe5102Smrg 11693fffe5102Smrg} # as_fn_mkdir_p 1169467f05d30Smrgif mkdir -p . 2>/dev/null; then 11695fffe5102Smrg as_mkdir_p='mkdir -p "$as_dir"' 1169667f05d30Smrgelse 1169767f05d30Smrg test -d ./-p && rmdir ./-p 1169867f05d30Smrg as_mkdir_p=false 1169967f05d30Smrgfi 11700fffe5102Smrg 11701e90eff46Smrg 11702e90eff46Smrg# as_fn_executable_p FILE 11703e90eff46Smrg# ----------------------- 11704e90eff46Smrg# Test if FILE is an executable regular file. 11705e90eff46Smrgas_fn_executable_p () 11706e90eff46Smrg{ 11707e90eff46Smrg test -f "$1" && test -x "$1" 11708e90eff46Smrg} # as_fn_executable_p 11709e90eff46Smrgas_test_x='test -x' 11710e90eff46Smrgas_executable_p=as_fn_executable_p 1171167f05d30Smrg 1171267f05d30Smrg# Sed expression to map a string onto a valid CPP name. 1171367f05d30Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 1171467f05d30Smrg 1171567f05d30Smrg# Sed expression to map a string onto a valid variable name. 1171667f05d30Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 1171767f05d30Smrg 1171867f05d30Smrg 1171967f05d30Smrgexec 6>&1 11720fffe5102Smrg## ----------------------------------- ## 11721fffe5102Smrg## Main body of $CONFIG_STATUS script. ## 11722fffe5102Smrg## ----------------------------------- ## 11723fffe5102Smrg_ASEOF 11724fffe5102Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11725fffe5102Smrg 11726fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11727fffe5102Smrg# Save the log message, to keep $0 and so on meaningful, and to 1172867f05d30Smrg# report actual input values of CONFIG_FILES etc. instead of their 11729fffe5102Smrg# values after options handling. 11730fffe5102Smrgac_log=" 11731051ceee6SmrgThis file was extended by viewres $as_me 1.0.7, which was 11732051ceee6Smrggenerated by GNU Autoconf 2.71. Invocation command line was 1173367f05d30Smrg 1173467f05d30Smrg CONFIG_FILES = $CONFIG_FILES 1173567f05d30Smrg CONFIG_HEADERS = $CONFIG_HEADERS 1173667f05d30Smrg CONFIG_LINKS = $CONFIG_LINKS 1173767f05d30Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 1173867f05d30Smrg $ $0 $@ 1173967f05d30Smrg 11740fffe5102Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 11741fffe5102Smrg" 11742fffe5102Smrg 1174367f05d30Smrg_ACEOF 1174467f05d30Smrg 11745fffe5102Smrgcase $ac_config_files in *" 11746fffe5102Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 11747fffe5102Smrgesac 1174867f05d30Smrg 11749fffe5102Smrgcase $ac_config_headers in *" 11750fffe5102Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11751fffe5102Smrgesac 1175267f05d30Smrg 1175367f05d30Smrg 11754fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11755fffe5102Smrg# Files that config.status was made for. 11756fffe5102Smrgconfig_files="$ac_config_files" 11757fffe5102Smrgconfig_headers="$ac_config_headers" 11758fffe5102Smrgconfig_commands="$ac_config_commands" 1175967f05d30Smrg 11760fffe5102Smrg_ACEOF 1176167f05d30Smrg 11762fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1176367f05d30Smrgac_cs_usage="\ 11764fffe5102Smrg\`$as_me' instantiates files and other configuration actions 11765fffe5102Smrgfrom templates according to the current configuration. Unless the files 11766fffe5102Smrgand actions are specified as TAGs, all are instantiated by default. 1176767f05d30Smrg 11768fffe5102SmrgUsage: $0 [OPTION]... [TAG]... 1176967f05d30Smrg 1177067f05d30Smrg -h, --help print this help, then exit 11771fffe5102Smrg -V, --version print version number and configuration settings, then exit 11772fffe5102Smrg --config print configuration, then exit 11773fffe5102Smrg -q, --quiet, --silent 11774fffe5102Smrg do not print progress messages 1177567f05d30Smrg -d, --debug don't remove temporary files 1177667f05d30Smrg --recheck update $as_me by reconfiguring in the same conditions 11777fffe5102Smrg --file=FILE[:TEMPLATE] 11778fffe5102Smrg instantiate the configuration file FILE 11779fffe5102Smrg --header=FILE[:TEMPLATE] 11780fffe5102Smrg instantiate the configuration header FILE 1178167f05d30Smrg 1178267f05d30SmrgConfiguration files: 1178367f05d30Smrg$config_files 1178467f05d30Smrg 1178567f05d30SmrgConfiguration headers: 1178667f05d30Smrg$config_headers 1178767f05d30Smrg 1178867f05d30SmrgConfiguration commands: 1178967f05d30Smrg$config_commands 1179067f05d30Smrg 11791051ceee6SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/viewres/-/issues>." 1179267f05d30Smrg 11793fffe5102Smrg_ACEOF 11794051ceee6Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11795051ceee6Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11796fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11797051ceee6Smrgac_cs_config='$ac_cs_config_escaped' 1179867f05d30Smrgac_cs_version="\\ 11799051ceee6Smrgviewres config.status 1.0.7 11800051ceee6Smrgconfigured by $0, generated by GNU Autoconf 2.71, 11801fffe5102Smrg with options \\"\$ac_cs_config\\" 1180267f05d30Smrg 11803051ceee6SmrgCopyright (C) 2021 Free Software Foundation, Inc. 1180467f05d30SmrgThis config.status script is free software; the Free Software Foundation 1180567f05d30Smrggives unlimited permission to copy, distribute and modify it." 11806fffe5102Smrg 11807fffe5102Smrgac_pwd='$ac_pwd' 11808fffe5102Smrgsrcdir='$srcdir' 11809fffe5102SmrgINSTALL='$INSTALL' 11810fffe5102SmrgMKDIR_P='$MKDIR_P' 11811fffe5102SmrgAWK='$AWK' 11812fffe5102Smrgtest -n "\$AWK" || AWK=awk 1181367f05d30Smrg_ACEOF 1181467f05d30Smrg 11815fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11816fffe5102Smrg# The default lists apply if the user does not specify any file. 1181767f05d30Smrgac_need_defaults=: 1181867f05d30Smrgwhile test $# != 0 1181967f05d30Smrgdo 1182067f05d30Smrg case $1 in 11821fc51f767Smrg --*=?*) 11822fffe5102Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 11823fffe5102Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 1182467f05d30Smrg ac_shift=: 1182567f05d30Smrg ;; 11826fc51f767Smrg --*=) 11827fc51f767Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 11828fc51f767Smrg ac_optarg= 11829fc51f767Smrg ac_shift=: 11830fc51f767Smrg ;; 11831fffe5102Smrg *) 1183267f05d30Smrg ac_option=$1 1183367f05d30Smrg ac_optarg=$2 1183467f05d30Smrg ac_shift=shift 1183567f05d30Smrg ;; 1183667f05d30Smrg esac 1183767f05d30Smrg 1183867f05d30Smrg case $ac_option in 1183967f05d30Smrg # Handling of the options. 1184067f05d30Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1184167f05d30Smrg ac_cs_recheck=: ;; 11842fffe5102Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11843051ceee6Smrg printf "%s\n" "$ac_cs_version"; exit ;; 11844fffe5102Smrg --config | --confi | --conf | --con | --co | --c ) 11845051ceee6Smrg printf "%s\n" "$ac_cs_config"; exit ;; 11846fffe5102Smrg --debug | --debu | --deb | --de | --d | -d ) 1184767f05d30Smrg debug=: ;; 1184867f05d30Smrg --file | --fil | --fi | --f ) 1184967f05d30Smrg $ac_shift 11850fffe5102Smrg case $ac_optarg in 11851051ceee6Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11852fc51f767Smrg '') as_fn_error $? "missing file argument" ;; 11853fffe5102Smrg esac 11854fffe5102Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 1185567f05d30Smrg ac_need_defaults=false;; 1185667f05d30Smrg --header | --heade | --head | --hea ) 1185767f05d30Smrg $ac_shift 11858fffe5102Smrg case $ac_optarg in 11859051ceee6Smrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11860fffe5102Smrg esac 11861fffe5102Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 1186267f05d30Smrg ac_need_defaults=false;; 11863fffe5102Smrg --he | --h) 11864fffe5102Smrg # Conflict between --help and --header 11865fc51f767Smrg as_fn_error $? "ambiguous option: \`$1' 11866fffe5102SmrgTry \`$0 --help' for more information.";; 11867fffe5102Smrg --help | --hel | -h ) 11868051ceee6Smrg printf "%s\n" "$ac_cs_usage"; exit ;; 1186967f05d30Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1187067f05d30Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 1187167f05d30Smrg ac_cs_silent=: ;; 1187267f05d30Smrg 1187367f05d30Smrg # This is an error. 11874fc51f767Smrg -*) as_fn_error $? "unrecognized option: \`$1' 11875fffe5102SmrgTry \`$0 --help' for more information." ;; 1187667f05d30Smrg 11877fffe5102Smrg *) as_fn_append ac_config_targets " $1" 11878fffe5102Smrg ac_need_defaults=false ;; 1187967f05d30Smrg 1188067f05d30Smrg esac 1188167f05d30Smrg shift 1188267f05d30Smrgdone 1188367f05d30Smrg 1188467f05d30Smrgac_configure_extra_args= 1188567f05d30Smrg 1188667f05d30Smrgif $ac_cs_silent; then 1188767f05d30Smrg exec 6>/dev/null 1188867f05d30Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 1188967f05d30Smrgfi 1189067f05d30Smrg 1189167f05d30Smrg_ACEOF 11892fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1189367f05d30Smrgif \$ac_cs_recheck; then 11894e90eff46Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11895fffe5102Smrg shift 11896051ceee6Smrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11897fffe5102Smrg CONFIG_SHELL='$SHELL' 11898fffe5102Smrg export CONFIG_SHELL 11899fffe5102Smrg exec "\$@" 1190067f05d30Smrgfi 1190167f05d30Smrg 1190267f05d30Smrg_ACEOF 11903fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11904fffe5102Smrgexec 5>>config.log 11905fffe5102Smrg{ 11906fffe5102Smrg echo 11907fffe5102Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11908fffe5102Smrg## Running $as_me. ## 11909fffe5102Smrg_ASBOX 11910051ceee6Smrg printf "%s\n" "$ac_log" 11911fffe5102Smrg} >&5 1191267f05d30Smrg 11913fffe5102Smrg_ACEOF 11914fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1191567f05d30Smrg# 11916fffe5102Smrg# INIT-COMMANDS 1191767f05d30Smrg# 11918051ceee6SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 1191967f05d30Smrg 1192067f05d30Smrg_ACEOF 1192167f05d30Smrg 11922fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1192367f05d30Smrg 11924fffe5102Smrg# Handling of arguments. 1192567f05d30Smrgfor ac_config_target in $ac_config_targets 1192667f05d30Smrgdo 11927fffe5102Smrg case $ac_config_target in 11928fffe5102Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11929e90eff46Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11930fffe5102Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 119316dbd43aaSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11932fffe5102Smrg 11933fc51f767Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 1193467f05d30Smrg esac 1193567f05d30Smrgdone 1193667f05d30Smrg 11937fffe5102Smrg 1193867f05d30Smrg# If the user did not use the arguments to specify the items to instantiate, 1193967f05d30Smrg# then the envvar interface is used. Set only those that are not. 1194067f05d30Smrg# We use the long form for the default assignment because of an extremely 1194167f05d30Smrg# bizarre bug on SunOS 4.1.3. 1194267f05d30Smrgif $ac_need_defaults; then 11943051ceee6Smrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 11944051ceee6Smrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 11945051ceee6Smrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 1194667f05d30Smrgfi 1194767f05d30Smrg 1194867f05d30Smrg# Have a temporary directory for convenience. Make it in the build tree 11949fffe5102Smrg# simply because there is no reason against having it here, and in addition, 1195067f05d30Smrg# creating and moving files from /tmp can sometimes cause problems. 11951fffe5102Smrg# Hook for its removal unless debugging. 11952fffe5102Smrg# Note that there is a small window in which the directory will not be cleaned: 11953fffe5102Smrg# after its creation but before its name has been assigned to `$tmp'. 1195467f05d30Smrg$debug || 1195567f05d30Smrg{ 11956fc51f767Smrg tmp= ac_tmp= 11957fffe5102Smrg trap 'exit_status=$? 11958fc51f767Smrg : "${ac_tmp:=$tmp}" 11959fc51f767Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11960fffe5102Smrg' 0 11961fffe5102Smrg trap 'as_fn_exit 1' 1 2 13 15 1196267f05d30Smrg} 1196367f05d30Smrg# Create a (secure) tmp directory for tmp files. 1196467f05d30Smrg 1196567f05d30Smrg{ 11966fffe5102Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11967fc51f767Smrg test -d "$tmp" 1196867f05d30Smrg} || 1196967f05d30Smrg{ 11970fffe5102Smrg tmp=./conf$$-$RANDOM 11971fffe5102Smrg (umask 077 && mkdir "$tmp") 11972fc51f767Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11973fc51f767Smrgac_tmp=$tmp 11974fffe5102Smrg 11975fffe5102Smrg# Set up the scripts for CONFIG_FILES section. 11976fffe5102Smrg# No need to generate them if there are no CONFIG_FILES. 11977fffe5102Smrg# This happens for instance with `./config.status config.h'. 11978fffe5102Smrgif test -n "$CONFIG_FILES"; then 11979fffe5102Smrg 11980fffe5102Smrg 11981fffe5102Smrgac_cr=`echo X | tr X '\015'` 11982fffe5102Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 11983fffe5102Smrg# But we know of no other shell where ac_cr would be empty at this 11984fffe5102Smrg# point, so we can use a bashism as a fallback. 11985fffe5102Smrgif test "x$ac_cr" = x; then 11986fffe5102Smrg eval ac_cr=\$\'\\r\' 11987fffe5102Smrgfi 11988fffe5102Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11989fffe5102Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11990fc51f767Smrg ac_cs_awk_cr='\\r' 11991fffe5102Smrgelse 11992fffe5102Smrg ac_cs_awk_cr=$ac_cr 11993fffe5102Smrgfi 11994fffe5102Smrg 11995fc51f767Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 11996fffe5102Smrg_ACEOF 11997fffe5102Smrg 11998fffe5102Smrg 1199967f05d30Smrg{ 12000fffe5102Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 12001fffe5102Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12002fffe5102Smrg echo "_ACEOF" 12003fffe5102Smrg} >conf$$subs.sh || 12004fc51f767Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12005fc51f767Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12006fffe5102Smrgac_delim='%!_!# ' 12007fffe5102Smrgfor ac_last_try in false false false false false :; do 12008fffe5102Smrg . ./conf$$subs.sh || 12009fc51f767Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12010fffe5102Smrg 12011fffe5102Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12012fffe5102Smrg if test $ac_delim_n = $ac_delim_num; then 12013fffe5102Smrg break 12014fffe5102Smrg elif $ac_last_try; then 12015fc51f767Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12016fffe5102Smrg else 12017fffe5102Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12018fffe5102Smrg fi 12019fffe5102Smrgdone 12020fffe5102Smrgrm -f conf$$subs.sh 1202167f05d30Smrg 12022fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12023fc51f767Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 1202467f05d30Smrg_ACEOF 12025fffe5102Smrgsed -n ' 12026fffe5102Smrgh 12027fffe5102Smrgs/^/S["/; s/!.*/"]=/ 12028fffe5102Smrgp 12029fffe5102Smrgg 12030fffe5102Smrgs/^[^!]*!// 12031fffe5102Smrg:repl 12032fffe5102Smrgt repl 12033fffe5102Smrgs/'"$ac_delim"'$// 12034fffe5102Smrgt delim 12035fffe5102Smrg:nl 12036fffe5102Smrgh 12037fffe5102Smrgs/\(.\{148\}\)..*/\1/ 12038fffe5102Smrgt more1 12039fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12040fffe5102Smrgp 12041fffe5102Smrgn 12042fffe5102Smrgb repl 12043fffe5102Smrg:more1 12044fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12045fffe5102Smrgp 12046fffe5102Smrgg 12047fffe5102Smrgs/.\{148\}// 12048fffe5102Smrgt nl 12049fffe5102Smrg:delim 12050fffe5102Smrgh 12051fffe5102Smrgs/\(.\{148\}\)..*/\1/ 12052fffe5102Smrgt more2 12053fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 12054fffe5102Smrgp 12055fffe5102Smrgb 12056fffe5102Smrg:more2 12057fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12058fffe5102Smrgp 12059fffe5102Smrgg 12060fffe5102Smrgs/.\{148\}// 12061fffe5102Smrgt delim 12062fffe5102Smrg' <conf$$subs.awk | sed ' 12063fffe5102Smrg/^[^""]/{ 12064fffe5102Smrg N 12065fffe5102Smrg s/\n// 12066fffe5102Smrg} 12067fffe5102Smrg' >>$CONFIG_STATUS || ac_write_fail=1 12068fffe5102Smrgrm -f conf$$subs.awk 12069fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12070fffe5102Smrg_ACAWK 12071fc51f767Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12072fffe5102Smrg for (key in S) S_is_set[key] = 1 12073fffe5102Smrg FS = "" 1207467f05d30Smrg 12075fffe5102Smrg} 12076fffe5102Smrg{ 12077fffe5102Smrg line = $ 0 12078fffe5102Smrg nfields = split(line, field, "@") 12079fffe5102Smrg substed = 0 12080fffe5102Smrg len = length(field[1]) 12081fffe5102Smrg for (i = 2; i < nfields; i++) { 12082fffe5102Smrg key = field[i] 12083fffe5102Smrg keylen = length(key) 12084fffe5102Smrg if (S_is_set[key]) { 12085fffe5102Smrg value = S[key] 12086fffe5102Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12087fffe5102Smrg len += length(value) + length(field[++i]) 12088fffe5102Smrg substed = 1 12089fffe5102Smrg } else 12090fffe5102Smrg len += 1 + keylen 12091fffe5102Smrg } 12092fffe5102Smrg 12093fffe5102Smrg print line 12094fffe5102Smrg} 1209567f05d30Smrg 12096fffe5102Smrg_ACAWK 12097fffe5102Smrg_ACEOF 12098fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12099fffe5102Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12100fffe5102Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12101fffe5102Smrgelse 12102fffe5102Smrg cat 12103fc51f767Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12104fc51f767Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12105fffe5102Smrg_ACEOF 12106fffe5102Smrg 12107fc51f767Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12108fc51f767Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12109fffe5102Smrg# trailing colons and then remove the whole line if VPATH becomes empty 12110fffe5102Smrg# (actually we leave an empty line to preserve line numbers). 12111fffe5102Smrgif test "x$srcdir" = x.; then 12112fc51f767Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12113fc51f767Smrgh 12114fc51f767Smrgs/// 12115fc51f767Smrgs/^/:/ 12116fc51f767Smrgs/[ ]*$/:/ 12117fc51f767Smrgs/:\$(srcdir):/:/g 12118fc51f767Smrgs/:\${srcdir}:/:/g 12119fc51f767Smrgs/:@srcdir@:/:/g 12120fc51f767Smrgs/^:*// 12121fffe5102Smrgs/:*$// 12122fc51f767Smrgx 12123fc51f767Smrgs/\(=[ ]*\).*/\1/ 12124fc51f767SmrgG 12125fc51f767Smrgs/\n// 12126fffe5102Smrgs/^[^=]*=[ ]*$// 12127fffe5102Smrg}' 12128fffe5102Smrgfi 1212967f05d30Smrg 12130fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12131fffe5102Smrgfi # test -n "$CONFIG_FILES" 1213267f05d30Smrg 12133fffe5102Smrg# Set up the scripts for CONFIG_HEADERS section. 12134fffe5102Smrg# No need to generate them if there are no CONFIG_HEADERS. 12135fffe5102Smrg# This happens for instance with `./config.status Makefile'. 12136fffe5102Smrgif test -n "$CONFIG_HEADERS"; then 12137fc51f767Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 12138fffe5102SmrgBEGIN { 1213967f05d30Smrg_ACEOF 1214067f05d30Smrg 12141fffe5102Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 12142fffe5102Smrg# here-document in config.status, that substitutes the proper values into 12143fffe5102Smrg# config.h.in to produce config.h. 12144fffe5102Smrg 12145fffe5102Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 12146fffe5102Smrg# handling of long lines. 12147fffe5102Smrgac_delim='%!_!# ' 12148fffe5102Smrgfor ac_last_try in false false :; do 12149fc51f767Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12150fc51f767Smrg if test -z "$ac_tt"; then 12151fffe5102Smrg break 12152fffe5102Smrg elif $ac_last_try; then 12153fc51f767Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12154fffe5102Smrg else 12155fffe5102Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 1215667f05d30Smrg fi 12157fffe5102Smrgdone 1215867f05d30Smrg 12159fffe5102Smrg# For the awk script, D is an array of macro values keyed by name, 12160fffe5102Smrg# likewise P contains macro parameters if any. Preserve backslash 12161fffe5102Smrg# newline sequences. 12162fffe5102Smrg 12163fffe5102Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12164fffe5102Smrgsed -n ' 12165fffe5102Smrgs/.\{148\}/&'"$ac_delim"'/g 12166fffe5102Smrgt rset 12167fffe5102Smrg:rset 12168fffe5102Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 12169fffe5102Smrgt def 12170fffe5102Smrgd 12171fffe5102Smrg:def 12172fffe5102Smrgs/\\$// 12173fffe5102Smrgt bsnl 12174fffe5102Smrgs/["\\]/\\&/g 12175fffe5102Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12176fffe5102SmrgD["\1"]=" \3"/p 12177fffe5102Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12178fffe5102Smrgd 12179fffe5102Smrg:bsnl 12180fffe5102Smrgs/["\\]/\\&/g 12181fffe5102Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12182fffe5102SmrgD["\1"]=" \3\\\\\\n"\\/p 12183fffe5102Smrgt cont 12184fffe5102Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12185fffe5102Smrgt cont 12186fffe5102Smrgd 12187fffe5102Smrg:cont 12188fffe5102Smrgn 12189fffe5102Smrgs/.\{148\}/&'"$ac_delim"'/g 12190fffe5102Smrgt clear 12191fffe5102Smrg:clear 12192fffe5102Smrgs/\\$// 12193fffe5102Smrgt bsnlc 12194fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 12195fffe5102Smrgd 12196fffe5102Smrg:bsnlc 12197fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12198fffe5102Smrgb cont 12199fffe5102Smrg' <confdefs.h | sed ' 12200fffe5102Smrgs/'"$ac_delim"'/"\\\ 12201fffe5102Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 12202fffe5102Smrg 12203fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12204fffe5102Smrg for (key in D) D_is_set[key] = 1 12205fffe5102Smrg FS = "" 12206fffe5102Smrg} 12207fffe5102Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12208fffe5102Smrg line = \$ 0 12209fffe5102Smrg split(line, arg, " ") 12210fffe5102Smrg if (arg[1] == "#") { 12211fffe5102Smrg defundef = arg[2] 12212fffe5102Smrg mac1 = arg[3] 12213fffe5102Smrg } else { 12214fffe5102Smrg defundef = substr(arg[1], 2) 12215fffe5102Smrg mac1 = arg[2] 12216fffe5102Smrg } 12217fffe5102Smrg split(mac1, mac2, "(") #) 12218fffe5102Smrg macro = mac2[1] 12219fffe5102Smrg prefix = substr(line, 1, index(line, defundef) - 1) 12220fffe5102Smrg if (D_is_set[macro]) { 12221fffe5102Smrg # Preserve the white space surrounding the "#". 12222fffe5102Smrg print prefix "define", macro P[macro] D[macro] 12223fffe5102Smrg next 12224fffe5102Smrg } else { 12225fffe5102Smrg # Replace #undef with comments. This is necessary, for example, 12226fffe5102Smrg # in the case of _POSIX_SOURCE, which is predefined and required 12227fffe5102Smrg # on some systems where configure will not decide to define it. 12228fffe5102Smrg if (defundef == "undef") { 12229fffe5102Smrg print "/*", prefix defundef, macro, "*/" 12230fffe5102Smrg next 12231fffe5102Smrg } 12232fffe5102Smrg } 12233fffe5102Smrg} 12234fffe5102Smrg{ print } 12235fffe5102Smrg_ACAWK 1223667f05d30Smrg_ACEOF 12237fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12238fc51f767Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12239fffe5102Smrgfi # test -n "$CONFIG_HEADERS" 12240fffe5102Smrg 12241fffe5102Smrg 12242fffe5102Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12243fffe5102Smrgshift 12244fffe5102Smrgfor ac_tag 12245fffe5102Smrgdo 12246fffe5102Smrg case $ac_tag in 12247fffe5102Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 12248fffe5102Smrg esac 12249fffe5102Smrg case $ac_mode$ac_tag in 12250fffe5102Smrg :[FHL]*:*);; 12251fc51f767Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12252fffe5102Smrg :[FH]-) ac_tag=-:-;; 12253fffe5102Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12254fffe5102Smrg esac 12255fffe5102Smrg ac_save_IFS=$IFS 12256fffe5102Smrg IFS=: 12257fffe5102Smrg set x $ac_tag 12258fffe5102Smrg IFS=$ac_save_IFS 12259fffe5102Smrg shift 12260fffe5102Smrg ac_file=$1 12261fffe5102Smrg shift 12262fffe5102Smrg 12263fffe5102Smrg case $ac_mode in 12264fffe5102Smrg :L) ac_source=$1;; 12265fffe5102Smrg :[FH]) 12266fffe5102Smrg ac_file_inputs= 12267fffe5102Smrg for ac_f 12268fffe5102Smrg do 12269fffe5102Smrg case $ac_f in 12270fc51f767Smrg -) ac_f="$ac_tmp/stdin";; 12271fffe5102Smrg *) # Look for the file first in the build tree, then in the source tree 12272fffe5102Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 12273fffe5102Smrg # because $ac_f cannot contain `:'. 12274fffe5102Smrg test -f "$ac_f" || 12275fffe5102Smrg case $ac_f in 12276fffe5102Smrg [\\/$]*) false;; 12277fffe5102Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12278fffe5102Smrg esac || 12279fc51f767Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12280fffe5102Smrg esac 12281051ceee6Smrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12282fffe5102Smrg as_fn_append ac_file_inputs " '$ac_f'" 12283fffe5102Smrg done 12284fffe5102Smrg 12285fffe5102Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 12286fffe5102Smrg # use $as_me), people would be surprised to read: 12287fffe5102Smrg # /* config.h. Generated by config.status. */ 12288fffe5102Smrg configure_input='Generated from '` 12289051ceee6Smrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12290fffe5102Smrg `' by configure.' 12291fffe5102Smrg if test x"$ac_file" != x-; then 12292fffe5102Smrg configure_input="$ac_file. $configure_input" 12293051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12294051ceee6Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 12295fffe5102Smrg fi 12296fffe5102Smrg # Neutralize special characters interpreted by sed in replacement strings. 12297fffe5102Smrg case $configure_input in #( 12298fffe5102Smrg *\&* | *\|* | *\\* ) 12299051ceee6Smrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12300fffe5102Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 12301fffe5102Smrg *) ac_sed_conf_input=$configure_input;; 12302fffe5102Smrg esac 12303fffe5102Smrg 12304fffe5102Smrg case $ac_tag in 12305fc51f767Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12306fc51f767Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12307fffe5102Smrg esac 12308fffe5102Smrg ;; 1230967f05d30Smrg esac 1231067f05d30Smrg 12311fffe5102Smrg ac_dir=`$as_dirname -- "$ac_file" || 1231267f05d30Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1231367f05d30Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 1231467f05d30Smrg X"$ac_file" : 'X\(//\)$' \| \ 12315fffe5102Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12316051ceee6Smrgprintf "%s\n" X"$ac_file" | 12317fffe5102Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12318fffe5102Smrg s//\1/ 12319fffe5102Smrg q 12320fffe5102Smrg } 12321fffe5102Smrg /^X\(\/\/\)[^/].*/{ 12322fffe5102Smrg s//\1/ 12323fffe5102Smrg q 12324fffe5102Smrg } 12325fffe5102Smrg /^X\(\/\/\)$/{ 12326fffe5102Smrg s//\1/ 12327fffe5102Smrg q 12328fffe5102Smrg } 12329fffe5102Smrg /^X\(\/\).*/{ 12330fffe5102Smrg s//\1/ 12331fffe5102Smrg q 12332fffe5102Smrg } 12333fffe5102Smrg s/.*/./; q'` 12334fffe5102Smrg as_dir="$ac_dir"; as_fn_mkdir_p 1233567f05d30Smrg ac_builddir=. 1233667f05d30Smrg 12337fffe5102Smrgcase "$ac_dir" in 12338fffe5102Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12339fffe5102Smrg*) 12340051ceee6Smrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12341fffe5102Smrg # A ".." for each directory in $ac_dir_suffix. 12342051ceee6Smrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12343fffe5102Smrg case $ac_top_builddir_sub in 12344fffe5102Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12345fffe5102Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12346fffe5102Smrg esac ;; 12347fffe5102Smrgesac 12348fffe5102Smrgac_abs_top_builddir=$ac_pwd 12349fffe5102Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 12350fffe5102Smrg# for backward compatibility: 12351fffe5102Smrgac_top_builddir=$ac_top_build_prefix 1235267f05d30Smrg 1235367f05d30Smrgcase $srcdir in 12354fffe5102Smrg .) # We are building in place. 1235567f05d30Smrg ac_srcdir=. 12356fffe5102Smrg ac_top_srcdir=$ac_top_builddir_sub 12357fffe5102Smrg ac_abs_top_srcdir=$ac_pwd ;; 12358fffe5102Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1235967f05d30Smrg ac_srcdir=$srcdir$ac_dir_suffix; 12360fffe5102Smrg ac_top_srcdir=$srcdir 12361fffe5102Smrg ac_abs_top_srcdir=$srcdir ;; 12362fffe5102Smrg *) # Relative name. 12363fffe5102Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12364fffe5102Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 12365fffe5102Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1236667f05d30Smrgesac 12367fffe5102Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1236867f05d30Smrg 1236967f05d30Smrg 12370fffe5102Smrg case $ac_mode in 12371fffe5102Smrg :F) 12372fffe5102Smrg # 12373fffe5102Smrg # CONFIG_FILE 12374fffe5102Smrg # 1237567f05d30Smrg 1237667f05d30Smrg case $INSTALL in 1237767f05d30Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12378fffe5102Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12379fffe5102Smrg esac 12380fffe5102Smrg ac_MKDIR_P=$MKDIR_P 12381fffe5102Smrg case $MKDIR_P in 12382fffe5102Smrg [\\/$]* | ?:[\\/]* ) ;; 12383fffe5102Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 1238467f05d30Smrg esac 12385fffe5102Smrg_ACEOF 1238667f05d30Smrg 12387fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12388fffe5102Smrg# If the template does not know about datarootdir, expand it. 12389fffe5102Smrg# FIXME: This hack should be removed a few years after 2.60. 12390fffe5102Smrgac_datarootdir_hack=; ac_datarootdir_seen= 12391fffe5102Smrgac_sed_dataroot=' 12392fffe5102Smrg/datarootdir/ { 12393fffe5102Smrg p 12394fffe5102Smrg q 12395fffe5102Smrg} 12396fffe5102Smrg/@datadir@/p 12397fffe5102Smrg/@docdir@/p 12398fffe5102Smrg/@infodir@/p 12399fffe5102Smrg/@localedir@/p 12400fffe5102Smrg/@mandir@/p' 12401fffe5102Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12402fffe5102Smrg*datarootdir*) ac_datarootdir_seen=yes;; 12403fffe5102Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12404051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12405051ceee6Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12406fffe5102Smrg_ACEOF 12407fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12408fffe5102Smrg ac_datarootdir_hack=' 12409fffe5102Smrg s&@datadir@&$datadir&g 12410fffe5102Smrg s&@docdir@&$docdir&g 12411fffe5102Smrg s&@infodir@&$infodir&g 12412fffe5102Smrg s&@localedir@&$localedir&g 12413fffe5102Smrg s&@mandir@&$mandir&g 12414fffe5102Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 12415fffe5102Smrgesac 1241667f05d30Smrg_ACEOF 12417fffe5102Smrg 12418fffe5102Smrg# Neutralize VPATH when `$srcdir' = `.'. 12419fffe5102Smrg# Shell code in configure.ac might set extrasub. 12420fffe5102Smrg# FIXME: do we really want to maintain this feature? 12421fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12422fffe5102Smrgac_sed_extra="$ac_vpsub 1242367f05d30Smrg$extrasub 1242467f05d30Smrg_ACEOF 12425fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1242667f05d30Smrg:t 1242767f05d30Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12428fffe5102Smrgs|@configure_input@|$ac_sed_conf_input|;t t 12429fffe5102Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 12430fffe5102Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 12431fffe5102Smrgs&@srcdir@&$ac_srcdir&;t t 12432fffe5102Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 12433fffe5102Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 12434fffe5102Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12435fffe5102Smrgs&@builddir@&$ac_builddir&;t t 12436fffe5102Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 12437fffe5102Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12438fffe5102Smrgs&@INSTALL@&$ac_INSTALL&;t t 12439fffe5102Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 12440fffe5102Smrg$ac_datarootdir_hack 12441fffe5102Smrg" 12442fc51f767Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12443fc51f767Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12444fffe5102Smrg 12445fffe5102Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12446fc51f767Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12447fc51f767Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12448fc51f767Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 12449051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12450fc51f767Smrgwhich seems to be undefined. Please make sure it is defined" >&5 12451051ceee6Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12452fc51f767Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 12453fffe5102Smrg 12454fc51f767Smrg rm -f "$ac_tmp/stdin" 1245567f05d30Smrg case $ac_file in 12456fc51f767Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12457fc51f767Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12458fffe5102Smrg esac \ 12459fc51f767Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12460fffe5102Smrg ;; 12461fffe5102Smrg :H) 12462fffe5102Smrg # 12463fffe5102Smrg # CONFIG_HEADER 12464fffe5102Smrg # 1246567f05d30Smrg if test x"$ac_file" != x-; then 12466fffe5102Smrg { 12467051ceee6Smrg printf "%s\n" "/* $configure_input */" >&1 \ 12468fc51f767Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12469fc51f767Smrg } >"$ac_tmp/config.h" \ 12470fc51f767Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12471fc51f767Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12472051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12473051ceee6Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 1247467f05d30Smrg else 12475fffe5102Smrg rm -f "$ac_file" 12476fc51f767Smrg mv "$ac_tmp/config.h" "$ac_file" \ 12477fc51f767Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1247867f05d30Smrg fi 1247967f05d30Smrg else 12480051ceee6Smrg printf "%s\n" "/* $configure_input */" >&1 \ 12481fc51f767Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12482fc51f767Smrg || as_fn_error $? "could not create -" "$LINENO" 5 1248367f05d30Smrg fi 12484fffe5102Smrg# Compute "$ac_file"'s index in $config_headers. 12485fffe5102Smrg_am_arg="$ac_file" 1248667f05d30Smrg_am_stamp_count=1 1248767f05d30Smrgfor _am_header in $config_headers :; do 1248867f05d30Smrg case $_am_header in 12489fffe5102Smrg $_am_arg | $_am_arg:* ) 1249067f05d30Smrg break ;; 1249167f05d30Smrg * ) 1249267f05d30Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 1249367f05d30Smrg esac 1249467f05d30Smrgdone 12495fffe5102Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12496fffe5102Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12497fffe5102Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 12498fffe5102Smrg X"$_am_arg" : 'X\(//\)$' \| \ 12499fffe5102Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12500051ceee6Smrgprintf "%s\n" X"$_am_arg" | 12501fffe5102Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12502fffe5102Smrg s//\1/ 12503fffe5102Smrg q 12504fffe5102Smrg } 12505fffe5102Smrg /^X\(\/\/\)[^/].*/{ 12506fffe5102Smrg s//\1/ 12507fffe5102Smrg q 12508fffe5102Smrg } 12509fffe5102Smrg /^X\(\/\/\)$/{ 12510fffe5102Smrg s//\1/ 12511fffe5102Smrg q 12512fffe5102Smrg } 12513fffe5102Smrg /^X\(\/\).*/{ 12514fffe5102Smrg s//\1/ 12515fffe5102Smrg q 12516fffe5102Smrg } 12517fffe5102Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 12518fffe5102Smrg ;; 1251967f05d30Smrg 12520051ceee6Smrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12521051ceee6Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12522fffe5102Smrg ;; 12523fffe5102Smrg esac 1252467f05d30Smrg 1252567f05d30Smrg 12526fffe5102Smrg case $ac_file$ac_mode in 12527fffe5102Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12528e90eff46Smrg # Older Autoconf quotes --file arguments for eval, but not when files 12529fffe5102Smrg # are listed without --file. Let's play safe and only enable the eval 12530fffe5102Smrg # if we detect the quoting. 12531051ceee6Smrg # TODO: see whether this extra hack can be removed once we start 12532051ceee6Smrg # requiring Autoconf 2.70 or later. 12533051ceee6Smrg case $CONFIG_FILES in #( 12534051ceee6Smrg *\'*) : 12535051ceee6Smrg eval set x "$CONFIG_FILES" ;; #( 12536051ceee6Smrg *) : 12537051ceee6Smrg set x $CONFIG_FILES ;; #( 12538051ceee6Smrg *) : 12539051ceee6Smrg ;; 12540051ceee6Smrgesac 12541fffe5102Smrg shift 12542051ceee6Smrg # Used to flag and report bootstrapping failures. 12543051ceee6Smrg am_rc=0 12544051ceee6Smrg for am_mf 12545fffe5102Smrg do 12546fffe5102Smrg # Strip MF so we end up with the name of the file. 12547051ceee6Smrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12548051ceee6Smrg # Check whether this is an Automake generated Makefile which includes 12549051ceee6Smrg # dependency-tracking related rules and includes. 12550051ceee6Smrg # Grep'ing the whole file directly is not great: AIX grep has a line 12551fffe5102Smrg # limit of 2048, but all sed's we know have understand at least 4000. 12552051ceee6Smrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12553051ceee6Smrg || continue 12554051ceee6Smrg am_dirpart=`$as_dirname -- "$am_mf" || 12555051ceee6Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12556051ceee6Smrg X"$am_mf" : 'X\(//\)[^/]' \| \ 12557051ceee6Smrg X"$am_mf" : 'X\(//\)$' \| \ 12558051ceee6Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12559051ceee6Smrgprintf "%s\n" X"$am_mf" | 12560fffe5102Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12561fffe5102Smrg s//\1/ 12562fffe5102Smrg q 12563fffe5102Smrg } 12564fffe5102Smrg /^X\(\/\/\)[^/].*/{ 12565fffe5102Smrg s//\1/ 12566fffe5102Smrg q 12567fffe5102Smrg } 12568fffe5102Smrg /^X\(\/\/\)$/{ 12569fffe5102Smrg s//\1/ 12570fffe5102Smrg q 12571fffe5102Smrg } 12572fffe5102Smrg /^X\(\/\).*/{ 12573fffe5102Smrg s//\1/ 12574fffe5102Smrg q 12575fffe5102Smrg } 12576fffe5102Smrg s/.*/./; q'` 12577051ceee6Smrg am_filepart=`$as_basename -- "$am_mf" || 12578051ceee6Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12579051ceee6Smrg X"$am_mf" : 'X\(//\)$' \| \ 12580051ceee6Smrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12581051ceee6Smrgprintf "%s\n" X/"$am_mf" | 12582051ceee6Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 12583fffe5102Smrg s//\1/ 12584fffe5102Smrg q 12585fffe5102Smrg } 12586051ceee6Smrg /^X\/\(\/\/\)$/{ 12587fffe5102Smrg s//\1/ 12588fffe5102Smrg q 12589fffe5102Smrg } 12590051ceee6Smrg /^X\/\(\/\).*/{ 12591fffe5102Smrg s//\1/ 12592fffe5102Smrg q 12593fffe5102Smrg } 12594fffe5102Smrg s/.*/./; q'` 12595051ceee6Smrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12596051ceee6Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 12597051ceee6Smrg | $MAKE -f - am--depfiles" >&5 12598051ceee6Smrg (cd "$am_dirpart" \ 12599051ceee6Smrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 12600051ceee6Smrg | $MAKE -f - am--depfiles) >&5 2>&5 12601051ceee6Smrg ac_status=$? 12602051ceee6Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 12603051ceee6Smrg (exit $ac_status); } || am_rc=$? 1260467f05d30Smrg done 12605051ceee6Smrg if test $am_rc -ne 0; then 12606051ceee6Smrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12607051ceee6Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12608051ceee6Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 12609051ceee6Smrg for automatic dependency tracking. If GNU make was not used, consider 12610051ceee6Smrg re-running the configure script with MAKE=\"gmake\" (or whatever is 12611051ceee6Smrg necessary). You can also try re-running configure with the 12612051ceee6Smrg '--disable-dependency-tracking' option to at least be able to build 12613051ceee6Smrg the package (albeit without support for automatic dependency tracking). 12614051ceee6SmrgSee \`config.log' for more details" "$LINENO" 5; } 12615051ceee6Smrg fi 12616051ceee6Smrg { am_dirpart=; unset am_dirpart;} 12617051ceee6Smrg { am_filepart=; unset am_filepart;} 12618051ceee6Smrg { am_mf=; unset am_mf;} 12619051ceee6Smrg { am_rc=; unset am_rc;} 12620051ceee6Smrg rm -f conftest-deps.mk 12621fffe5102Smrg} 1262267f05d30Smrg ;; 12623fffe5102Smrg 1262467f05d30Smrg esac 12625fffe5102Smrgdone # for ac_tag 1262667f05d30Smrg 1262767f05d30Smrg 12628fffe5102Smrgas_fn_exit 0 1262967f05d30Smrg_ACEOF 1263067f05d30Smrgac_clean_files=$ac_clean_files_save 1263167f05d30Smrg 12632fffe5102Smrgtest $ac_write_fail = 0 || 12633fc51f767Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12634fffe5102Smrg 1263567f05d30Smrg 1263667f05d30Smrg# configure is writing to config.log, and then calls config.status. 1263767f05d30Smrg# config.status does its own redirection, appending to config.log. 1263867f05d30Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 1263967f05d30Smrg# by configure, so config.status won't be able to write to it; its 1264067f05d30Smrg# output is simply discarded. So we exec the FD to /dev/null, 1264167f05d30Smrg# effectively closing config.log, so it can be properly (re)opened and 1264267f05d30Smrg# appended to by config.status. When coming back to configure, we 1264367f05d30Smrg# need to make the FD available again. 1264467f05d30Smrgif test "$no_create" != yes; then 1264567f05d30Smrg ac_cs_success=: 1264667f05d30Smrg ac_config_status_args= 1264767f05d30Smrg test "$silent" = yes && 1264867f05d30Smrg ac_config_status_args="$ac_config_status_args --quiet" 1264967f05d30Smrg exec 5>/dev/null 1265067f05d30Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 1265167f05d30Smrg exec 5>>config.log 1265267f05d30Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 1265367f05d30Smrg # would make configure fail if this is the last instruction. 12654fc51f767Smrg $ac_cs_success || as_fn_exit 1 12655fffe5102Smrgfi 12656fffe5102Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12657051ceee6Smrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12658051ceee6Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 1265967f05d30Smrgfi 1266067f05d30Smrg 12661051ceee6Smrg 12662