configure revision 04449c54
18440cca4Smrg#! /bin/sh 28440cca4Smrg# Guess values for system-dependent variables and create Makefiles. 304449c54Smrg# Generated by GNU Autoconf 2.69 for xstdcmap 1.0.4. 48440cca4Smrg# 504449c54Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xstdcmap/issues>. 68440cca4Smrg# 7d1c293acSmrg# 804449c54Smrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9d1c293acSmrg# 10d1c293acSmrg# 118440cca4Smrg# This configure script is free software; the Free Software Foundation 128440cca4Smrg# gives unlimited permission to copy, distribute and modify it. 13d1c293acSmrg## -------------------- ## 14d1c293acSmrg## M4sh Initialization. ## 15d1c293acSmrg## -------------------- ## 168440cca4Smrg 17d1c293acSmrg# Be more Bourne compatible 18d1c293acSmrgDUALCASE=1; export DUALCASE # for MKS sh 19d1c293acSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 208440cca4Smrg emulate sh 218440cca4Smrg NULLCMD=: 22d1c293acSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 238440cca4Smrg # is contrary to our usage. Disable this feature. 248440cca4Smrg alias -g '${1+"$@"}'='"$@"' 25d1c293acSmrg setopt NO_GLOB_SUBST 26d1c293acSmrgelse 27d1c293acSmrg case `(set -o) 2>/dev/null` in #( 28d1c293acSmrg *posix*) : 29d1c293acSmrg set -o posix ;; #( 30d1c293acSmrg *) : 31d1c293acSmrg ;; 32d1c293acSmrgesac 338440cca4Smrgfi 348440cca4Smrg 35d1c293acSmrg 36d1c293acSmrgas_nl=' 37d1c293acSmrg' 38d1c293acSmrgexport as_nl 39d1c293acSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 40d1c293acSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41d1c293acSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42d1c293acSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43d1c293acSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 44d1c293acSmrg# but without wasting forks for bash or zsh. 45d1c293acSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 46d1c293acSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47d1c293acSmrg as_echo='print -r --' 48d1c293acSmrg as_echo_n='print -rn --' 49d1c293acSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50d1c293acSmrg as_echo='printf %s\n' 51d1c293acSmrg as_echo_n='printf %s' 528440cca4Smrgelse 53d1c293acSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54d1c293acSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55d1c293acSmrg as_echo_n='/usr/ucb/echo -n' 56d1c293acSmrg else 57d1c293acSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58d1c293acSmrg as_echo_n_body='eval 59d1c293acSmrg arg=$1; 60d1c293acSmrg case $arg in #( 61d1c293acSmrg *"$as_nl"*) 62d1c293acSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 63d1c293acSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64d1c293acSmrg esac; 65d1c293acSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66d1c293acSmrg ' 67d1c293acSmrg export as_echo_n_body 68d1c293acSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 69d1c293acSmrg fi 70d1c293acSmrg export as_echo_body 71d1c293acSmrg as_echo='sh -c $as_echo_body as_echo' 72d1c293acSmrgfi 73d1c293acSmrg 74d1c293acSmrg# The user is always right. 75d1c293acSmrgif test "${PATH_SEPARATOR+set}" != set; then 76d1c293acSmrg PATH_SEPARATOR=: 77d1c293acSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78d1c293acSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79d1c293acSmrg PATH_SEPARATOR=';' 80d1c293acSmrg } 818440cca4Smrgfi 828440cca4Smrg 838440cca4Smrg 84d1c293acSmrg# IFS 85d1c293acSmrg# We need space, tab and new line, in precisely that order. Quoting is 86d1c293acSmrg# there to prevent editors from complaining about space-tab. 87d1c293acSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88d1c293acSmrg# splitting by setting IFS to empty value.) 89d1c293acSmrgIFS=" "" $as_nl" 90d1c293acSmrg 91d1c293acSmrg# Find who we are. Look in the path if we contain no directory separator. 92d1c293acSmrgas_myself= 93d1c293acSmrgcase $0 in #(( 94d1c293acSmrg *[\\/]* ) as_myself=$0 ;; 95d1c293acSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96d1c293acSmrgfor as_dir in $PATH 97d1c293acSmrgdo 98d1c293acSmrg IFS=$as_save_IFS 99d1c293acSmrg test -z "$as_dir" && as_dir=. 100d1c293acSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101d1c293acSmrg done 102d1c293acSmrgIFS=$as_save_IFS 103d1c293acSmrg 104d1c293acSmrg ;; 105d1c293acSmrgesac 106d1c293acSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 107d1c293acSmrg# in which case we are not to be found in the path. 108d1c293acSmrgif test "x$as_myself" = x; then 109d1c293acSmrg as_myself=$0 110d1c293acSmrgfi 111d1c293acSmrgif test ! -f "$as_myself"; then 112d1c293acSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113d1c293acSmrg exit 1 114d1c293acSmrgfi 115d1c293acSmrg 116d1c293acSmrg# Unset variables that we do not need and which cause bugs (e.g. in 117d1c293acSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118d1c293acSmrg# suppresses any "Segmentation fault" message there. '((' could 119d1c293acSmrg# trigger a bug in pdksh 5.2.14. 120d1c293acSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 121d1c293acSmrgdo eval test x\${$as_var+set} = xset \ 122d1c293acSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123d1c293acSmrgdone 1248440cca4SmrgPS1='$ ' 1258440cca4SmrgPS2='> ' 1268440cca4SmrgPS4='+ ' 1278440cca4Smrg 1288440cca4Smrg# NLS nuisances. 129d1c293acSmrgLC_ALL=C 130d1c293acSmrgexport LC_ALL 131d1c293acSmrgLANGUAGE=C 132d1c293acSmrgexport LANGUAGE 133d1c293acSmrg 134d1c293acSmrg# CDPATH. 135d1c293acSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136d1c293acSmrg 13704449c54Smrg# Use a proper internal environment variable to ensure we don't fall 13804449c54Smrg # into an infinite loop, continuously re-executing ourselves. 13904449c54Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 14004449c54Smrg _as_can_reexec=no; export _as_can_reexec; 14104449c54Smrg # We cannot yet assume a decent shell, so we have to provide a 14204449c54Smrg# neutralization value for shells without unset; and this also 14304449c54Smrg# works around shells that cannot unset nonexistent variables. 14404449c54Smrg# Preserve -v and -x to the replacement shell. 14504449c54SmrgBASH_ENV=/dev/null 14604449c54SmrgENV=/dev/null 14704449c54Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 14804449c54Smrgcase $- in # (((( 14904449c54Smrg *v*x* | *x*v* ) as_opts=-vx ;; 15004449c54Smrg *v* ) as_opts=-v ;; 15104449c54Smrg *x* ) as_opts=-x ;; 15204449c54Smrg * ) as_opts= ;; 15304449c54Smrgesac 15404449c54Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 15504449c54Smrg# Admittedly, this is quite paranoid, since all the known shells bail 15604449c54Smrg# out after a failed `exec'. 15704449c54Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 15804449c54Smrgas_fn_exit 255 15904449c54Smrg fi 16004449c54Smrg # We don't want this to propagate to other subprocesses. 16104449c54Smrg { _as_can_reexec=; unset _as_can_reexec;} 162d1c293acSmrgif test "x$CONFIG_SHELL" = x; then 163d1c293acSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164d1c293acSmrg emulate sh 165d1c293acSmrg NULLCMD=: 166d1c293acSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167d1c293acSmrg # is contrary to our usage. Disable this feature. 168d1c293acSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 169d1c293acSmrg setopt NO_GLOB_SUBST 170d1c293acSmrgelse 171d1c293acSmrg case \`(set -o) 2>/dev/null\` in #( 172d1c293acSmrg *posix*) : 173d1c293acSmrg set -o posix ;; #( 174d1c293acSmrg *) : 175d1c293acSmrg ;; 176d1c293acSmrgesac 177d1c293acSmrgfi 178d1c293acSmrg" 179d1c293acSmrg as_required="as_fn_return () { (exit \$1); } 180d1c293acSmrgas_fn_success () { as_fn_return 0; } 181d1c293acSmrgas_fn_failure () { as_fn_return 1; } 182d1c293acSmrgas_fn_ret_success () { return 0; } 183d1c293acSmrgas_fn_ret_failure () { return 1; } 184d1c293acSmrg 185d1c293acSmrgexitcode=0 186d1c293acSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 187d1c293acSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188d1c293acSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189d1c293acSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190d1c293acSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191d1c293acSmrg 192d1c293acSmrgelse 193d1c293acSmrg exitcode=1; echo positional parameters were not saved. 194d1c293acSmrgfi 19504449c54Smrgtest x\$exitcode = x0 || exit 1 19604449c54Smrgtest -x / || exit 1" 197d1c293acSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198d1c293acSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199d1c293acSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200d1c293acSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201d1c293acSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 202d1c293acSmrg if (eval "$as_required") 2>/dev/null; then : 203d1c293acSmrg as_have_required=yes 204d1c293acSmrgelse 205d1c293acSmrg as_have_required=no 206d1c293acSmrgfi 207d1c293acSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208d1c293acSmrg 209d1c293acSmrgelse 210d1c293acSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211d1c293acSmrgas_found=false 212d1c293acSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2138440cca4Smrgdo 214d1c293acSmrg IFS=$as_save_IFS 215d1c293acSmrg test -z "$as_dir" && as_dir=. 216d1c293acSmrg as_found=: 217d1c293acSmrg case $as_dir in #( 218d1c293acSmrg /*) 219d1c293acSmrg for as_base in sh bash ksh sh5; do 220d1c293acSmrg # Try only shells that exist, to save several forks. 221d1c293acSmrg as_shell=$as_dir/$as_base 222d1c293acSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223d1c293acSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224d1c293acSmrg CONFIG_SHELL=$as_shell as_have_required=yes 225d1c293acSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226d1c293acSmrg break 2 227d1c293acSmrgfi 228d1c293acSmrgfi 229d1c293acSmrg done;; 230d1c293acSmrg esac 231d1c293acSmrg as_found=false 232d1c293acSmrgdone 233d1c293acSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234d1c293acSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235d1c293acSmrg CONFIG_SHELL=$SHELL as_have_required=yes 236d1c293acSmrgfi; } 237d1c293acSmrgIFS=$as_save_IFS 238d1c293acSmrg 239d1c293acSmrg 240d1c293acSmrg if test "x$CONFIG_SHELL" != x; then : 24104449c54Smrg export CONFIG_SHELL 24204449c54Smrg # We cannot yet assume a decent shell, so we have to provide a 24304449c54Smrg# neutralization value for shells without unset; and this also 24404449c54Smrg# works around shells that cannot unset nonexistent variables. 24504449c54Smrg# Preserve -v and -x to the replacement shell. 24604449c54SmrgBASH_ENV=/dev/null 24704449c54SmrgENV=/dev/null 24804449c54Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 24904449c54Smrgcase $- in # (((( 25004449c54Smrg *v*x* | *x*v* ) as_opts=-vx ;; 25104449c54Smrg *v* ) as_opts=-v ;; 25204449c54Smrg *x* ) as_opts=-x ;; 25304449c54Smrg * ) as_opts= ;; 25404449c54Smrgesac 25504449c54Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 25604449c54Smrg# Admittedly, this is quite paranoid, since all the known shells bail 25704449c54Smrg# out after a failed `exec'. 25804449c54Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 25904449c54Smrgexit 255 260d1c293acSmrgfi 261d1c293acSmrg 262d1c293acSmrg if test x$as_have_required = xno; then : 263d1c293acSmrg $as_echo "$0: This script requires a shell more modern than all" 264d1c293acSmrg $as_echo "$0: the shells that I found on your system." 265d1c293acSmrg if test x${ZSH_VERSION+set} = xset ; then 266d1c293acSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267d1c293acSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2688440cca4Smrg else 269d1c293acSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 27004449c54Smrg$0: https://gitlab.freedesktop.org/xorg/app/xstdcmap/issues 271d1c293acSmrg$0: about your system, including any error possibly output 272d1c293acSmrg$0: before this message. Then install a modern shell, or 273d1c293acSmrg$0: manually run the script under such a shell if you do 274d1c293acSmrg$0: have one." 2758440cca4Smrg fi 276d1c293acSmrg exit 1 277d1c293acSmrgfi 278d1c293acSmrgfi 279d1c293acSmrgfi 280d1c293acSmrgSHELL=${CONFIG_SHELL-/bin/sh} 281d1c293acSmrgexport SHELL 282d1c293acSmrg# Unset more variables known to interfere with behavior of common tools. 283d1c293acSmrgCLICOLOR_FORCE= GREP_OPTIONS= 284d1c293acSmrgunset CLICOLOR_FORCE GREP_OPTIONS 285d1c293acSmrg 286d1c293acSmrg## --------------------- ## 287d1c293acSmrg## M4sh Shell Functions. ## 288d1c293acSmrg## --------------------- ## 289d1c293acSmrg# as_fn_unset VAR 290d1c293acSmrg# --------------- 291d1c293acSmrg# Portably unset VAR. 292d1c293acSmrgas_fn_unset () 293d1c293acSmrg{ 294d1c293acSmrg { eval $1=; unset $1;} 295d1c293acSmrg} 296d1c293acSmrgas_unset=as_fn_unset 297d1c293acSmrg 298d1c293acSmrg# as_fn_set_status STATUS 299d1c293acSmrg# ----------------------- 300d1c293acSmrg# Set $? to STATUS, without forking. 301d1c293acSmrgas_fn_set_status () 302d1c293acSmrg{ 303d1c293acSmrg return $1 304d1c293acSmrg} # as_fn_set_status 3058440cca4Smrg 306d1c293acSmrg# as_fn_exit STATUS 307d1c293acSmrg# ----------------- 308d1c293acSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309d1c293acSmrgas_fn_exit () 310d1c293acSmrg{ 311d1c293acSmrg set +e 312d1c293acSmrg as_fn_set_status $1 313d1c293acSmrg exit $1 314d1c293acSmrg} # as_fn_exit 315d1c293acSmrg 316d1c293acSmrg# as_fn_mkdir_p 317d1c293acSmrg# ------------- 318d1c293acSmrg# Create "$as_dir" as a directory, including parents if necessary. 319d1c293acSmrgas_fn_mkdir_p () 320d1c293acSmrg{ 321d1c293acSmrg 322d1c293acSmrg case $as_dir in #( 323d1c293acSmrg -*) as_dir=./$as_dir;; 324d1c293acSmrg esac 325d1c293acSmrg test -d "$as_dir" || eval $as_mkdir_p || { 326d1c293acSmrg as_dirs= 327d1c293acSmrg while :; do 328d1c293acSmrg case $as_dir in #( 329d1c293acSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330d1c293acSmrg *) as_qdir=$as_dir;; 331d1c293acSmrg esac 332d1c293acSmrg as_dirs="'$as_qdir' $as_dirs" 333d1c293acSmrg as_dir=`$as_dirname -- "$as_dir" || 334d1c293acSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335d1c293acSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 336d1c293acSmrg X"$as_dir" : 'X\(//\)$' \| \ 337d1c293acSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338d1c293acSmrg$as_echo X"$as_dir" | 339d1c293acSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340d1c293acSmrg s//\1/ 341d1c293acSmrg q 342d1c293acSmrg } 343d1c293acSmrg /^X\(\/\/\)[^/].*/{ 344d1c293acSmrg s//\1/ 345d1c293acSmrg q 346d1c293acSmrg } 347d1c293acSmrg /^X\(\/\/\)$/{ 348d1c293acSmrg s//\1/ 349d1c293acSmrg q 350d1c293acSmrg } 351d1c293acSmrg /^X\(\/\).*/{ 352d1c293acSmrg s//\1/ 353d1c293acSmrg q 354d1c293acSmrg } 355d1c293acSmrg s/.*/./; q'` 356d1c293acSmrg test -d "$as_dir" && break 357d1c293acSmrg done 358d1c293acSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 359d1c293acSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360d1c293acSmrg 361d1c293acSmrg 362d1c293acSmrg} # as_fn_mkdir_p 36304449c54Smrg 36404449c54Smrg# as_fn_executable_p FILE 36504449c54Smrg# ----------------------- 36604449c54Smrg# Test if FILE is an executable regular file. 36704449c54Smrgas_fn_executable_p () 36804449c54Smrg{ 36904449c54Smrg test -f "$1" && test -x "$1" 37004449c54Smrg} # as_fn_executable_p 371d1c293acSmrg# as_fn_append VAR VALUE 372d1c293acSmrg# ---------------------- 373d1c293acSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 374d1c293acSmrg# advantage of any shell optimizations that allow amortized linear growth over 375d1c293acSmrg# repeated appends, instead of the typical quadratic growth present in naive 376d1c293acSmrg# implementations. 377d1c293acSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378d1c293acSmrg eval 'as_fn_append () 379d1c293acSmrg { 380d1c293acSmrg eval $1+=\$2 381d1c293acSmrg }' 382d1c293acSmrgelse 383d1c293acSmrg as_fn_append () 384d1c293acSmrg { 385d1c293acSmrg eval $1=\$$1\$2 386d1c293acSmrg } 387d1c293acSmrgfi # as_fn_append 388d1c293acSmrg 389d1c293acSmrg# as_fn_arith ARG... 390d1c293acSmrg# ------------------ 391d1c293acSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 392d1c293acSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 393d1c293acSmrg# must be portable across $(()) and expr. 394d1c293acSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395d1c293acSmrg eval 'as_fn_arith () 396d1c293acSmrg { 397d1c293acSmrg as_val=$(( $* )) 398d1c293acSmrg }' 399d1c293acSmrgelse 400d1c293acSmrg as_fn_arith () 401d1c293acSmrg { 402d1c293acSmrg as_val=`expr "$@" || test $? -eq 1` 403d1c293acSmrg } 404d1c293acSmrgfi # as_fn_arith 405d1c293acSmrg 406d1c293acSmrg 407d1c293acSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 408d1c293acSmrg# ---------------------------------------- 409d1c293acSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410d1c293acSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411d1c293acSmrg# script with STATUS, using 1 if that was 0. 412d1c293acSmrgas_fn_error () 413d1c293acSmrg{ 414d1c293acSmrg as_status=$1; test $as_status -eq 0 && as_status=1 415d1c293acSmrg if test "$4"; then 416d1c293acSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418d1c293acSmrg fi 419d1c293acSmrg $as_echo "$as_me: error: $2" >&2 420d1c293acSmrg as_fn_exit $as_status 421d1c293acSmrg} # as_fn_error 422d1c293acSmrg 423d1c293acSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 424d1c293acSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 4258440cca4Smrg as_expr=expr 4268440cca4Smrgelse 4278440cca4Smrg as_expr=false 4288440cca4Smrgfi 4298440cca4Smrg 430d1c293acSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4318440cca4Smrg as_basename=basename 4328440cca4Smrgelse 4338440cca4Smrg as_basename=false 4348440cca4Smrgfi 4358440cca4Smrg 436d1c293acSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437d1c293acSmrg as_dirname=dirname 438d1c293acSmrgelse 439d1c293acSmrg as_dirname=false 440d1c293acSmrgfi 4418440cca4Smrg 442d1c293acSmrgas_me=`$as_basename -- "$0" || 4438440cca4Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4448440cca4Smrg X"$0" : 'X\(//\)$' \| \ 445d1c293acSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 446d1c293acSmrg$as_echo X/"$0" | 447d1c293acSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 448d1c293acSmrg s//\1/ 449d1c293acSmrg q 450d1c293acSmrg } 451d1c293acSmrg /^X\/\(\/\/\)$/{ 452d1c293acSmrg s//\1/ 453d1c293acSmrg q 454d1c293acSmrg } 455d1c293acSmrg /^X\/\(\/\).*/{ 456d1c293acSmrg s//\1/ 457d1c293acSmrg q 458d1c293acSmrg } 459d1c293acSmrg s/.*/./; q'` 4608440cca4Smrg 4618440cca4Smrg# Avoid depending upon Character Ranges. 4628440cca4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4638440cca4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4648440cca4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4658440cca4Smrgas_cr_digits='0123456789' 4668440cca4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4678440cca4Smrg 4688440cca4Smrg 469d1c293acSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 470d1c293acSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 471d1c293acSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472d1c293acSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473d1c293acSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474d1c293acSmrg sed -n ' 475d1c293acSmrg p 476d1c293acSmrg /[$]LINENO/= 477d1c293acSmrg ' <$as_myself | 4788440cca4Smrg sed ' 479d1c293acSmrg s/[$]LINENO.*/&-/ 480d1c293acSmrg t lineno 481d1c293acSmrg b 482d1c293acSmrg :lineno 4838440cca4Smrg N 484d1c293acSmrg :loop 485d1c293acSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4868440cca4Smrg t loop 487d1c293acSmrg s/-\n.*// 4888440cca4Smrg ' >$as_me.lineno && 489d1c293acSmrg chmod +x "$as_me.lineno" || 490d1c293acSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4918440cca4Smrg 49204449c54Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 49304449c54Smrg # already done that, so ensure we don't try to do so again and fall 49404449c54Smrg # in an infinite loop. This has already happened in practice. 49504449c54Smrg _as_can_reexec=no; export _as_can_reexec 4968440cca4Smrg # Don't try to exec as it changes $[0], causing all sort of problems 4978440cca4Smrg # (the dirname of $[0] is not the place where we might find the 498d1c293acSmrg # original and so on. Autoconf is especially sensitive to this). 499d1c293acSmrg . "./$as_me.lineno" 5008440cca4Smrg # Exit status is that of the last command. 5018440cca4Smrg exit 5028440cca4Smrg} 5038440cca4Smrg 504d1c293acSmrgECHO_C= ECHO_N= ECHO_T= 505d1c293acSmrgcase `echo -n x` in #((((( 506d1c293acSmrg-n*) 507d1c293acSmrg case `echo 'xy\c'` in 508d1c293acSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509d1c293acSmrg xy) ECHO_C='\c';; 510d1c293acSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511d1c293acSmrg ECHO_T=' ';; 512d1c293acSmrg esac;; 513d1c293acSmrg*) 514d1c293acSmrg ECHO_N='-n';; 5158440cca4Smrgesac 5168440cca4Smrg 517d1c293acSmrgrm -f conf$$ conf$$.exe conf$$.file 518d1c293acSmrgif test -d conf$$.dir; then 519d1c293acSmrg rm -f conf$$.dir/conf$$.file 5208440cca4Smrgelse 521d1c293acSmrg rm -f conf$$.dir 522d1c293acSmrg mkdir conf$$.dir 2>/dev/null 5238440cca4Smrgfi 524d1c293acSmrgif (echo >conf$$.file) 2>/dev/null; then 525d1c293acSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5268440cca4Smrg as_ln_s='ln -s' 527d1c293acSmrg # ... but there are two gotchas: 528d1c293acSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529d1c293acSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 53004449c54Smrg # In both cases, we have to default to `cp -pR'. 531d1c293acSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 53204449c54Smrg as_ln_s='cp -pR' 533d1c293acSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 534d1c293acSmrg as_ln_s=ln 535d1c293acSmrg else 53604449c54Smrg as_ln_s='cp -pR' 5378440cca4Smrg fi 5388440cca4Smrgelse 53904449c54Smrg as_ln_s='cp -pR' 5408440cca4Smrgfi 541d1c293acSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542d1c293acSmrgrmdir conf$$.dir 2>/dev/null 5438440cca4Smrg 5448440cca4Smrgif mkdir -p . 2>/dev/null; then 545d1c293acSmrg as_mkdir_p='mkdir -p "$as_dir"' 5468440cca4Smrgelse 5478440cca4Smrg test -d ./-p && rmdir ./-p 5488440cca4Smrg as_mkdir_p=false 5498440cca4Smrgfi 5508440cca4Smrg 55104449c54Smrgas_test_x='test -x' 55204449c54Smrgas_executable_p=as_fn_executable_p 5538440cca4Smrg 5548440cca4Smrg# Sed expression to map a string onto a valid CPP name. 5558440cca4Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5568440cca4Smrg 5578440cca4Smrg# Sed expression to map a string onto a valid variable name. 5588440cca4Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5598440cca4Smrg 5608440cca4Smrg 561d1c293acSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 562d1c293acSmrgexec 6>&1 5638440cca4Smrg 5648440cca4Smrg# Name of the host. 565d1c293acSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5668440cca4Smrg# so uname gets run too. 5678440cca4Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5688440cca4Smrg 5698440cca4Smrg# 5708440cca4Smrg# Initializations. 5718440cca4Smrg# 5728440cca4Smrgac_default_prefix=/usr/local 573d1c293acSmrgac_clean_files= 5748440cca4Smrgac_config_libobj_dir=. 575d1c293acSmrgLIBOBJS= 5768440cca4Smrgcross_compiling=no 5778440cca4Smrgsubdirs= 5788440cca4SmrgMFLAGS= 5798440cca4SmrgMAKEFLAGS= 5808440cca4Smrg 5818440cca4Smrg# Identity of this package. 5828440cca4SmrgPACKAGE_NAME='xstdcmap' 5838440cca4SmrgPACKAGE_TARNAME='xstdcmap' 58404449c54SmrgPACKAGE_VERSION='1.0.4' 58504449c54SmrgPACKAGE_STRING='xstdcmap 1.0.4' 58604449c54SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xstdcmap/issues' 587d1c293acSmrgPACKAGE_URL='' 5888440cca4Smrg 58920915927Smrgac_unique_file="Makefile.am" 590d1c293acSmrg# Factoring default headers for most tests. 591d1c293acSmrgac_includes_default="\ 592d1c293acSmrg#include <stdio.h> 593d1c293acSmrg#ifdef HAVE_SYS_TYPES_H 594d1c293acSmrg# include <sys/types.h> 595d1c293acSmrg#endif 596d1c293acSmrg#ifdef HAVE_SYS_STAT_H 597d1c293acSmrg# include <sys/stat.h> 598d1c293acSmrg#endif 599d1c293acSmrg#ifdef STDC_HEADERS 600d1c293acSmrg# include <stdlib.h> 601d1c293acSmrg# include <stddef.h> 602d1c293acSmrg#else 603d1c293acSmrg# ifdef HAVE_STDLIB_H 604d1c293acSmrg# include <stdlib.h> 605d1c293acSmrg# endif 606d1c293acSmrg#endif 607d1c293acSmrg#ifdef HAVE_STRING_H 608d1c293acSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609d1c293acSmrg# include <memory.h> 610d1c293acSmrg# endif 611d1c293acSmrg# include <string.h> 612d1c293acSmrg#endif 613d1c293acSmrg#ifdef HAVE_STRINGS_H 614d1c293acSmrg# include <strings.h> 615d1c293acSmrg#endif 616d1c293acSmrg#ifdef HAVE_INTTYPES_H 617d1c293acSmrg# include <inttypes.h> 618d1c293acSmrg#endif 619d1c293acSmrg#ifdef HAVE_STDINT_H 620d1c293acSmrg# include <stdint.h> 621d1c293acSmrg#endif 622d1c293acSmrg#ifdef HAVE_UNISTD_H 623d1c293acSmrg# include <unistd.h> 624d1c293acSmrg#endif" 625d1c293acSmrg 626d1c293acSmrgac_subst_vars='am__EXEEXT_FALSE 627d1c293acSmrgam__EXEEXT_TRUE 628d1c293acSmrgLTLIBOBJS 629d1c293acSmrgLIBOBJS 630d1c293acSmrgXSTDCMAP_LIBS 631d1c293acSmrgXSTDCMAP_CFLAGS 632d1c293acSmrgMAN_SUBSTS 633d1c293acSmrgXORG_MAN_PAGE 634d1c293acSmrgADMIN_MAN_DIR 635d1c293acSmrgDRIVER_MAN_DIR 636d1c293acSmrgMISC_MAN_DIR 637d1c293acSmrgFILE_MAN_DIR 638d1c293acSmrgLIB_MAN_DIR 639d1c293acSmrgAPP_MAN_DIR 640d1c293acSmrgADMIN_MAN_SUFFIX 641d1c293acSmrgDRIVER_MAN_SUFFIX 642d1c293acSmrgMISC_MAN_SUFFIX 643d1c293acSmrgFILE_MAN_SUFFIX 644d1c293acSmrgLIB_MAN_SUFFIX 645d1c293acSmrgAPP_MAN_SUFFIX 646d1c293acSmrgSED 647d1c293acSmrghost_os 648d1c293acSmrghost_vendor 649d1c293acSmrghost_cpu 650d1c293acSmrghost 651d1c293acSmrgbuild_os 652d1c293acSmrgbuild_vendor 653d1c293acSmrgbuild_cpu 654d1c293acSmrgbuild 655d1c293acSmrgINSTALL_CMD 65604449c54SmrgPKG_CONFIG_LIBDIR 65704449c54SmrgPKG_CONFIG_PATH 658d1c293acSmrgPKG_CONFIG 659d1c293acSmrgCHANGELOG_CMD 66020915927SmrgSTRICT_CFLAGS 661d1c293acSmrgCWARNFLAGS 66220915927SmrgBASE_CFLAGS 663d1c293acSmrgEGREP 664d1c293acSmrgGREP 665d1c293acSmrgCPP 666d1c293acSmrgam__fastdepCC_FALSE 667d1c293acSmrgam__fastdepCC_TRUE 668d1c293acSmrgCCDEPMODE 66920915927Smrgam__nodep 670d1c293acSmrgAMDEPBACKSLASH 671d1c293acSmrgAMDEP_FALSE 672d1c293acSmrgAMDEP_TRUE 673d1c293acSmrgam__quote 674d1c293acSmrgam__include 675d1c293acSmrgDEPDIR 676d1c293acSmrgOBJEXT 677d1c293acSmrgEXEEXT 678d1c293acSmrgac_ct_CC 679d1c293acSmrgCPPFLAGS 680d1c293acSmrgLDFLAGS 681d1c293acSmrgCFLAGS 682d1c293acSmrgCC 68304449c54SmrgAM_BACKSLASH 68404449c54SmrgAM_DEFAULT_VERBOSITY 68504449c54SmrgAM_DEFAULT_V 68604449c54SmrgAM_V 687d1c293acSmrgam__untar 688d1c293acSmrgam__tar 689d1c293acSmrgAMTAR 690d1c293acSmrgam__leading_dot 691d1c293acSmrgSET_MAKE 692d1c293acSmrgAWK 693d1c293acSmrgmkdir_p 694d1c293acSmrgMKDIR_P 695d1c293acSmrgINSTALL_STRIP_PROGRAM 696d1c293acSmrgSTRIP 697d1c293acSmrginstall_sh 698d1c293acSmrgMAKEINFO 699d1c293acSmrgAUTOHEADER 700d1c293acSmrgAUTOMAKE 701d1c293acSmrgAUTOCONF 702d1c293acSmrgACLOCAL 703d1c293acSmrgVERSION 704d1c293acSmrgPACKAGE 705d1c293acSmrgCYGPATH_W 706d1c293acSmrgam__isrc 707d1c293acSmrgINSTALL_DATA 708d1c293acSmrgINSTALL_SCRIPT 709d1c293acSmrgINSTALL_PROGRAM 710d1c293acSmrgtarget_alias 711d1c293acSmrghost_alias 712d1c293acSmrgbuild_alias 713d1c293acSmrgLIBS 714d1c293acSmrgECHO_T 715d1c293acSmrgECHO_N 716d1c293acSmrgECHO_C 717d1c293acSmrgDEFS 718d1c293acSmrgmandir 719d1c293acSmrglocaledir 720d1c293acSmrglibdir 721d1c293acSmrgpsdir 722d1c293acSmrgpdfdir 723d1c293acSmrgdvidir 724d1c293acSmrghtmldir 725d1c293acSmrginfodir 726d1c293acSmrgdocdir 727d1c293acSmrgoldincludedir 728d1c293acSmrgincludedir 729d1c293acSmrglocalstatedir 730d1c293acSmrgsharedstatedir 731d1c293acSmrgsysconfdir 732d1c293acSmrgdatadir 733d1c293acSmrgdatarootdir 734d1c293acSmrglibexecdir 735d1c293acSmrgsbindir 736d1c293acSmrgbindir 737d1c293acSmrgprogram_transform_name 738d1c293acSmrgprefix 739d1c293acSmrgexec_prefix 740d1c293acSmrgPACKAGE_URL 741d1c293acSmrgPACKAGE_BUGREPORT 742d1c293acSmrgPACKAGE_STRING 743d1c293acSmrgPACKAGE_VERSION 744d1c293acSmrgPACKAGE_TARNAME 745d1c293acSmrgPACKAGE_NAME 746d1c293acSmrgPATH_SEPARATOR 747d1c293acSmrgSHELL' 7488440cca4Smrgac_subst_files='' 749d1c293acSmrgac_user_opts=' 750d1c293acSmrgenable_option_checking 75104449c54Smrgenable_silent_rules 752d1c293acSmrgenable_dependency_tracking 75320915927Smrgenable_selective_werror 754d1c293acSmrgenable_strict_compilation 755d1c293acSmrg' 756d1c293acSmrg ac_precious_vars='build_alias 757d1c293acSmrghost_alias 758d1c293acSmrgtarget_alias 759d1c293acSmrgCC 760d1c293acSmrgCFLAGS 761d1c293acSmrgLDFLAGS 762d1c293acSmrgLIBS 763d1c293acSmrgCPPFLAGS 764d1c293acSmrgCPP 765d1c293acSmrgPKG_CONFIG 76604449c54SmrgPKG_CONFIG_PATH 76704449c54SmrgPKG_CONFIG_LIBDIR 768d1c293acSmrgXSTDCMAP_CFLAGS 769d1c293acSmrgXSTDCMAP_LIBS' 770d1c293acSmrg 7718440cca4Smrg 7728440cca4Smrg# Initialize some variables set by options. 7738440cca4Smrgac_init_help= 7748440cca4Smrgac_init_version=false 775d1c293acSmrgac_unrecognized_opts= 776d1c293acSmrgac_unrecognized_sep= 7778440cca4Smrg# The variables have the same names as the options, with 7788440cca4Smrg# dashes changed to underlines. 7798440cca4Smrgcache_file=/dev/null 7808440cca4Smrgexec_prefix=NONE 7818440cca4Smrgno_create= 7828440cca4Smrgno_recursion= 7838440cca4Smrgprefix=NONE 7848440cca4Smrgprogram_prefix=NONE 7858440cca4Smrgprogram_suffix=NONE 7868440cca4Smrgprogram_transform_name=s,x,x, 7878440cca4Smrgsilent= 7888440cca4Smrgsite= 7898440cca4Smrgsrcdir= 7908440cca4Smrgverbose= 7918440cca4Smrgx_includes=NONE 7928440cca4Smrgx_libraries=NONE 7938440cca4Smrg 7948440cca4Smrg# Installation directory options. 7958440cca4Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 7968440cca4Smrg# and all the variables that are supposed to be based on exec_prefix 7978440cca4Smrg# by default will actually change. 7988440cca4Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 799d1c293acSmrg# (The list follows the same order as the GNU Coding Standards.) 8008440cca4Smrgbindir='${exec_prefix}/bin' 8018440cca4Smrgsbindir='${exec_prefix}/sbin' 8028440cca4Smrglibexecdir='${exec_prefix}/libexec' 803d1c293acSmrgdatarootdir='${prefix}/share' 804d1c293acSmrgdatadir='${datarootdir}' 8058440cca4Smrgsysconfdir='${prefix}/etc' 8068440cca4Smrgsharedstatedir='${prefix}/com' 8078440cca4Smrglocalstatedir='${prefix}/var' 8088440cca4Smrgincludedir='${prefix}/include' 8098440cca4Smrgoldincludedir='/usr/include' 810d1c293acSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 811d1c293acSmrginfodir='${datarootdir}/info' 812d1c293acSmrghtmldir='${docdir}' 813d1c293acSmrgdvidir='${docdir}' 814d1c293acSmrgpdfdir='${docdir}' 815d1c293acSmrgpsdir='${docdir}' 816d1c293acSmrglibdir='${exec_prefix}/lib' 817d1c293acSmrglocaledir='${datarootdir}/locale' 818d1c293acSmrgmandir='${datarootdir}/man' 8198440cca4Smrg 8208440cca4Smrgac_prev= 821d1c293acSmrgac_dashdash= 8228440cca4Smrgfor ac_option 8238440cca4Smrgdo 8248440cca4Smrg # If the previous option needs an argument, assign it. 8258440cca4Smrg if test -n "$ac_prev"; then 826d1c293acSmrg eval $ac_prev=\$ac_option 8278440cca4Smrg ac_prev= 8288440cca4Smrg continue 8298440cca4Smrg fi 8308440cca4Smrg 831d1c293acSmrg case $ac_option in 832d1c293acSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 833d1c293acSmrg *=) ac_optarg= ;; 834d1c293acSmrg *) ac_optarg=yes ;; 835d1c293acSmrg esac 8368440cca4Smrg 8378440cca4Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 8388440cca4Smrg 839d1c293acSmrg case $ac_dashdash$ac_option in 840d1c293acSmrg --) 841d1c293acSmrg ac_dashdash=yes ;; 8428440cca4Smrg 8438440cca4Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8448440cca4Smrg ac_prev=bindir ;; 8458440cca4Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8468440cca4Smrg bindir=$ac_optarg ;; 8478440cca4Smrg 8488440cca4Smrg -build | --build | --buil | --bui | --bu) 8498440cca4Smrg ac_prev=build_alias ;; 8508440cca4Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8518440cca4Smrg build_alias=$ac_optarg ;; 8528440cca4Smrg 8538440cca4Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8548440cca4Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8558440cca4Smrg ac_prev=cache_file ;; 8568440cca4Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8578440cca4Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8588440cca4Smrg cache_file=$ac_optarg ;; 8598440cca4Smrg 8608440cca4Smrg --config-cache | -C) 8618440cca4Smrg cache_file=config.cache ;; 8628440cca4Smrg 863d1c293acSmrg -datadir | --datadir | --datadi | --datad) 8648440cca4Smrg ac_prev=datadir ;; 865d1c293acSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8668440cca4Smrg datadir=$ac_optarg ;; 8678440cca4Smrg 868d1c293acSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 869d1c293acSmrg | --dataroo | --dataro | --datar) 870d1c293acSmrg ac_prev=datarootdir ;; 871d1c293acSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 872d1c293acSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 873d1c293acSmrg datarootdir=$ac_optarg ;; 874d1c293acSmrg 8758440cca4Smrg -disable-* | --disable-*) 876d1c293acSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8778440cca4Smrg # Reject names that are not valid shell variable names. 878d1c293acSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 879d1c293acSmrg as_fn_error $? "invalid feature name: $ac_useropt" 880d1c293acSmrg ac_useropt_orig=$ac_useropt 881d1c293acSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 882d1c293acSmrg case $ac_user_opts in 883d1c293acSmrg *" 884d1c293acSmrg"enable_$ac_useropt" 885d1c293acSmrg"*) ;; 886d1c293acSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 887d1c293acSmrg ac_unrecognized_sep=', ';; 888d1c293acSmrg esac 889d1c293acSmrg eval enable_$ac_useropt=no ;; 890d1c293acSmrg 891d1c293acSmrg -docdir | --docdir | --docdi | --doc | --do) 892d1c293acSmrg ac_prev=docdir ;; 893d1c293acSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 894d1c293acSmrg docdir=$ac_optarg ;; 895d1c293acSmrg 896d1c293acSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 897d1c293acSmrg ac_prev=dvidir ;; 898d1c293acSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 899d1c293acSmrg dvidir=$ac_optarg ;; 9008440cca4Smrg 9018440cca4Smrg -enable-* | --enable-*) 902d1c293acSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 9038440cca4Smrg # Reject names that are not valid shell variable names. 904d1c293acSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905d1c293acSmrg as_fn_error $? "invalid feature name: $ac_useropt" 906d1c293acSmrg ac_useropt_orig=$ac_useropt 907d1c293acSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 908d1c293acSmrg case $ac_user_opts in 909d1c293acSmrg *" 910d1c293acSmrg"enable_$ac_useropt" 911d1c293acSmrg"*) ;; 912d1c293acSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 913d1c293acSmrg ac_unrecognized_sep=', ';; 9148440cca4Smrg esac 915d1c293acSmrg eval enable_$ac_useropt=\$ac_optarg ;; 9168440cca4Smrg 9178440cca4Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9188440cca4Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9198440cca4Smrg | --exec | --exe | --ex) 9208440cca4Smrg ac_prev=exec_prefix ;; 9218440cca4Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9228440cca4Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9238440cca4Smrg | --exec=* | --exe=* | --ex=*) 9248440cca4Smrg exec_prefix=$ac_optarg ;; 9258440cca4Smrg 9268440cca4Smrg -gas | --gas | --ga | --g) 9278440cca4Smrg # Obsolete; use --with-gas. 9288440cca4Smrg with_gas=yes ;; 9298440cca4Smrg 9308440cca4Smrg -help | --help | --hel | --he | -h) 9318440cca4Smrg ac_init_help=long ;; 9328440cca4Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9338440cca4Smrg ac_init_help=recursive ;; 9348440cca4Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9358440cca4Smrg ac_init_help=short ;; 9368440cca4Smrg 9378440cca4Smrg -host | --host | --hos | --ho) 9388440cca4Smrg ac_prev=host_alias ;; 9398440cca4Smrg -host=* | --host=* | --hos=* | --ho=*) 9408440cca4Smrg host_alias=$ac_optarg ;; 9418440cca4Smrg 942d1c293acSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 943d1c293acSmrg ac_prev=htmldir ;; 944d1c293acSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 945d1c293acSmrg | --ht=*) 946d1c293acSmrg htmldir=$ac_optarg ;; 947d1c293acSmrg 9488440cca4Smrg -includedir | --includedir | --includedi | --included | --include \ 9498440cca4Smrg | --includ | --inclu | --incl | --inc) 9508440cca4Smrg ac_prev=includedir ;; 9518440cca4Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9528440cca4Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9538440cca4Smrg includedir=$ac_optarg ;; 9548440cca4Smrg 9558440cca4Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9568440cca4Smrg ac_prev=infodir ;; 9578440cca4Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9588440cca4Smrg infodir=$ac_optarg ;; 9598440cca4Smrg 9608440cca4Smrg -libdir | --libdir | --libdi | --libd) 9618440cca4Smrg ac_prev=libdir ;; 9628440cca4Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9638440cca4Smrg libdir=$ac_optarg ;; 9648440cca4Smrg 9658440cca4Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9668440cca4Smrg | --libexe | --libex | --libe) 9678440cca4Smrg ac_prev=libexecdir ;; 9688440cca4Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9698440cca4Smrg | --libexe=* | --libex=* | --libe=*) 9708440cca4Smrg libexecdir=$ac_optarg ;; 9718440cca4Smrg 972d1c293acSmrg -localedir | --localedir | --localedi | --localed | --locale) 973d1c293acSmrg ac_prev=localedir ;; 974d1c293acSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 975d1c293acSmrg localedir=$ac_optarg ;; 976d1c293acSmrg 9778440cca4Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 978d1c293acSmrg | --localstate | --localstat | --localsta | --localst | --locals) 9798440cca4Smrg ac_prev=localstatedir ;; 9808440cca4Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 981d1c293acSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9828440cca4Smrg localstatedir=$ac_optarg ;; 9838440cca4Smrg 9848440cca4Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9858440cca4Smrg ac_prev=mandir ;; 9868440cca4Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9878440cca4Smrg mandir=$ac_optarg ;; 9888440cca4Smrg 9898440cca4Smrg -nfp | --nfp | --nf) 9908440cca4Smrg # Obsolete; use --without-fp. 9918440cca4Smrg with_fp=no ;; 9928440cca4Smrg 9938440cca4Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 9948440cca4Smrg | --no-cr | --no-c | -n) 9958440cca4Smrg no_create=yes ;; 9968440cca4Smrg 9978440cca4Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 9988440cca4Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 9998440cca4Smrg no_recursion=yes ;; 10008440cca4Smrg 10018440cca4Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 10028440cca4Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 10038440cca4Smrg | --oldin | --oldi | --old | --ol | --o) 10048440cca4Smrg ac_prev=oldincludedir ;; 10058440cca4Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10068440cca4Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10078440cca4Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10088440cca4Smrg oldincludedir=$ac_optarg ;; 10098440cca4Smrg 10108440cca4Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10118440cca4Smrg ac_prev=prefix ;; 10128440cca4Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10138440cca4Smrg prefix=$ac_optarg ;; 10148440cca4Smrg 10158440cca4Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10168440cca4Smrg | --program-pre | --program-pr | --program-p) 10178440cca4Smrg ac_prev=program_prefix ;; 10188440cca4Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10198440cca4Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10208440cca4Smrg program_prefix=$ac_optarg ;; 10218440cca4Smrg 10228440cca4Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10238440cca4Smrg | --program-suf | --program-su | --program-s) 10248440cca4Smrg ac_prev=program_suffix ;; 10258440cca4Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10268440cca4Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10278440cca4Smrg program_suffix=$ac_optarg ;; 10288440cca4Smrg 10298440cca4Smrg -program-transform-name | --program-transform-name \ 10308440cca4Smrg | --program-transform-nam | --program-transform-na \ 10318440cca4Smrg | --program-transform-n | --program-transform- \ 10328440cca4Smrg | --program-transform | --program-transfor \ 10338440cca4Smrg | --program-transfo | --program-transf \ 10348440cca4Smrg | --program-trans | --program-tran \ 10358440cca4Smrg | --progr-tra | --program-tr | --program-t) 10368440cca4Smrg ac_prev=program_transform_name ;; 10378440cca4Smrg -program-transform-name=* | --program-transform-name=* \ 10388440cca4Smrg | --program-transform-nam=* | --program-transform-na=* \ 10398440cca4Smrg | --program-transform-n=* | --program-transform-=* \ 10408440cca4Smrg | --program-transform=* | --program-transfor=* \ 10418440cca4Smrg | --program-transfo=* | --program-transf=* \ 10428440cca4Smrg | --program-trans=* | --program-tran=* \ 10438440cca4Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 10448440cca4Smrg program_transform_name=$ac_optarg ;; 10458440cca4Smrg 1046d1c293acSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1047d1c293acSmrg ac_prev=pdfdir ;; 1048d1c293acSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1049d1c293acSmrg pdfdir=$ac_optarg ;; 1050d1c293acSmrg 1051d1c293acSmrg -psdir | --psdir | --psdi | --psd | --ps) 1052d1c293acSmrg ac_prev=psdir ;; 1053d1c293acSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1054d1c293acSmrg psdir=$ac_optarg ;; 1055d1c293acSmrg 10568440cca4Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10578440cca4Smrg | -silent | --silent | --silen | --sile | --sil) 10588440cca4Smrg silent=yes ;; 10598440cca4Smrg 10608440cca4Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10618440cca4Smrg ac_prev=sbindir ;; 10628440cca4Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10638440cca4Smrg | --sbi=* | --sb=*) 10648440cca4Smrg sbindir=$ac_optarg ;; 10658440cca4Smrg 10668440cca4Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10678440cca4Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10688440cca4Smrg | --sharedst | --shareds | --shared | --share | --shar \ 10698440cca4Smrg | --sha | --sh) 10708440cca4Smrg ac_prev=sharedstatedir ;; 10718440cca4Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10728440cca4Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10738440cca4Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10748440cca4Smrg | --sha=* | --sh=*) 10758440cca4Smrg sharedstatedir=$ac_optarg ;; 10768440cca4Smrg 10778440cca4Smrg -site | --site | --sit) 10788440cca4Smrg ac_prev=site ;; 10798440cca4Smrg -site=* | --site=* | --sit=*) 10808440cca4Smrg site=$ac_optarg ;; 10818440cca4Smrg 10828440cca4Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10838440cca4Smrg ac_prev=srcdir ;; 10848440cca4Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10858440cca4Smrg srcdir=$ac_optarg ;; 10868440cca4Smrg 10878440cca4Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10888440cca4Smrg | --syscon | --sysco | --sysc | --sys | --sy) 10898440cca4Smrg ac_prev=sysconfdir ;; 10908440cca4Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10918440cca4Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10928440cca4Smrg sysconfdir=$ac_optarg ;; 10938440cca4Smrg 10948440cca4Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 10958440cca4Smrg ac_prev=target_alias ;; 10968440cca4Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 10978440cca4Smrg target_alias=$ac_optarg ;; 10988440cca4Smrg 10998440cca4Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 11008440cca4Smrg verbose=yes ;; 11018440cca4Smrg 11028440cca4Smrg -version | --version | --versio | --versi | --vers | -V) 11038440cca4Smrg ac_init_version=: ;; 11048440cca4Smrg 11058440cca4Smrg -with-* | --with-*) 1106d1c293acSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11078440cca4Smrg # Reject names that are not valid shell variable names. 1108d1c293acSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109d1c293acSmrg as_fn_error $? "invalid package name: $ac_useropt" 1110d1c293acSmrg ac_useropt_orig=$ac_useropt 1111d1c293acSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112d1c293acSmrg case $ac_user_opts in 1113d1c293acSmrg *" 1114d1c293acSmrg"with_$ac_useropt" 1115d1c293acSmrg"*) ;; 1116d1c293acSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1117d1c293acSmrg ac_unrecognized_sep=', ';; 11188440cca4Smrg esac 1119d1c293acSmrg eval with_$ac_useropt=\$ac_optarg ;; 11208440cca4Smrg 11218440cca4Smrg -without-* | --without-*) 1122d1c293acSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11238440cca4Smrg # Reject names that are not valid shell variable names. 1124d1c293acSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125d1c293acSmrg as_fn_error $? "invalid package name: $ac_useropt" 1126d1c293acSmrg ac_useropt_orig=$ac_useropt 1127d1c293acSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128d1c293acSmrg case $ac_user_opts in 1129d1c293acSmrg *" 1130d1c293acSmrg"with_$ac_useropt" 1131d1c293acSmrg"*) ;; 1132d1c293acSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1133d1c293acSmrg ac_unrecognized_sep=', ';; 1134d1c293acSmrg esac 1135d1c293acSmrg eval with_$ac_useropt=no ;; 11368440cca4Smrg 11378440cca4Smrg --x) 11388440cca4Smrg # Obsolete; use --with-x. 11398440cca4Smrg with_x=yes ;; 11408440cca4Smrg 11418440cca4Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11428440cca4Smrg | --x-incl | --x-inc | --x-in | --x-i) 11438440cca4Smrg ac_prev=x_includes ;; 11448440cca4Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11458440cca4Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11468440cca4Smrg x_includes=$ac_optarg ;; 11478440cca4Smrg 11488440cca4Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11498440cca4Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11508440cca4Smrg ac_prev=x_libraries ;; 11518440cca4Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11528440cca4Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11538440cca4Smrg x_libraries=$ac_optarg ;; 11548440cca4Smrg 1155d1c293acSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1156d1c293acSmrgTry \`$0 --help' for more information" 11578440cca4Smrg ;; 11588440cca4Smrg 11598440cca4Smrg *=*) 11608440cca4Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11618440cca4Smrg # Reject names that are not valid shell variable names. 1162d1c293acSmrg case $ac_envvar in #( 1163d1c293acSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1164d1c293acSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1165d1c293acSmrg esac 1166d1c293acSmrg eval $ac_envvar=\$ac_optarg 11678440cca4Smrg export $ac_envvar ;; 11688440cca4Smrg 11698440cca4Smrg *) 11708440cca4Smrg # FIXME: should be removed in autoconf 3.0. 1171d1c293acSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11728440cca4Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1173d1c293acSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1174d1c293acSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11758440cca4Smrg ;; 11768440cca4Smrg 11778440cca4Smrg esac 11788440cca4Smrgdone 11798440cca4Smrg 11808440cca4Smrgif test -n "$ac_prev"; then 11818440cca4Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1182d1c293acSmrg as_fn_error $? "missing argument to $ac_option" 11838440cca4Smrgfi 11848440cca4Smrg 1185d1c293acSmrgif test -n "$ac_unrecognized_opts"; then 1186d1c293acSmrg case $enable_option_checking in 1187d1c293acSmrg no) ;; 1188d1c293acSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1189d1c293acSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 11908440cca4Smrg esac 1191d1c293acSmrgfi 11928440cca4Smrg 1193d1c293acSmrg# Check all directory arguments for consistency. 1194d1c293acSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1195d1c293acSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1196d1c293acSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1197d1c293acSmrg libdir localedir mandir 11988440cca4Smrgdo 1199d1c293acSmrg eval ac_val=\$$ac_var 1200d1c293acSmrg # Remove trailing slashes. 1201d1c293acSmrg case $ac_val in 1202d1c293acSmrg */ ) 1203d1c293acSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1204d1c293acSmrg eval $ac_var=\$ac_val;; 1205d1c293acSmrg esac 1206d1c293acSmrg # Be sure to have absolute directory names. 12078440cca4Smrg case $ac_val in 1208d1c293acSmrg [\\/$]* | ?:[\\/]* ) continue;; 1209d1c293acSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 12108440cca4Smrg esac 1211d1c293acSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12128440cca4Smrgdone 12138440cca4Smrg 12148440cca4Smrg# There might be people who depend on the old broken behavior: `$host' 12158440cca4Smrg# used to hold the argument of --host etc. 12168440cca4Smrg# FIXME: To remove some day. 12178440cca4Smrgbuild=$build_alias 12188440cca4Smrghost=$host_alias 12198440cca4Smrgtarget=$target_alias 12208440cca4Smrg 12218440cca4Smrg# FIXME: To remove some day. 12228440cca4Smrgif test "x$host_alias" != x; then 12238440cca4Smrg if test "x$build_alias" = x; then 12248440cca4Smrg cross_compiling=maybe 12258440cca4Smrg elif test "x$build_alias" != "x$host_alias"; then 12268440cca4Smrg cross_compiling=yes 12278440cca4Smrg fi 12288440cca4Smrgfi 12298440cca4Smrg 12308440cca4Smrgac_tool_prefix= 12318440cca4Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12328440cca4Smrg 12338440cca4Smrgtest "$silent" = yes && exec 6>/dev/null 12348440cca4Smrg 12358440cca4Smrg 1236d1c293acSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 1237d1c293acSmrgac_ls_di=`ls -di .` && 1238d1c293acSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1239d1c293acSmrg as_fn_error $? "working directory cannot be determined" 1240d1c293acSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1241d1c293acSmrg as_fn_error $? "pwd does not report name of working directory" 1242d1c293acSmrg 1243d1c293acSmrg 12448440cca4Smrg# Find the source files, if location was not specified. 12458440cca4Smrgif test -z "$srcdir"; then 12468440cca4Smrg ac_srcdir_defaulted=yes 1247d1c293acSmrg # Try the directory containing this script, then the parent directory. 1248d1c293acSmrg ac_confdir=`$as_dirname -- "$as_myself" || 1249d1c293acSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1250d1c293acSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1251d1c293acSmrg X"$as_myself" : 'X\(//\)$' \| \ 1252d1c293acSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1253d1c293acSmrg$as_echo X"$as_myself" | 1254d1c293acSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1255d1c293acSmrg s//\1/ 1256d1c293acSmrg q 1257d1c293acSmrg } 1258d1c293acSmrg /^X\(\/\/\)[^/].*/{ 1259d1c293acSmrg s//\1/ 1260d1c293acSmrg q 1261d1c293acSmrg } 1262d1c293acSmrg /^X\(\/\/\)$/{ 1263d1c293acSmrg s//\1/ 1264d1c293acSmrg q 1265d1c293acSmrg } 1266d1c293acSmrg /^X\(\/\).*/{ 1267d1c293acSmrg s//\1/ 1268d1c293acSmrg q 1269d1c293acSmrg } 1270d1c293acSmrg s/.*/./; q'` 12718440cca4Smrg srcdir=$ac_confdir 1272d1c293acSmrg if test ! -r "$srcdir/$ac_unique_file"; then 12738440cca4Smrg srcdir=.. 12748440cca4Smrg fi 12758440cca4Smrgelse 12768440cca4Smrg ac_srcdir_defaulted=no 12778440cca4Smrgfi 1278d1c293acSmrgif test ! -r "$srcdir/$ac_unique_file"; then 1279d1c293acSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1280d1c293acSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1281d1c293acSmrgfi 1282d1c293acSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1283d1c293acSmrgac_abs_confdir=`( 1284d1c293acSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1285d1c293acSmrg pwd)` 1286d1c293acSmrg# When building in place, set srcdir=. 1287d1c293acSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1288d1c293acSmrg srcdir=. 1289d1c293acSmrgfi 1290d1c293acSmrg# Remove unnecessary trailing slashes from srcdir. 1291d1c293acSmrg# Double slashes in file names in object file debugging info 1292d1c293acSmrg# mess up M-x gdb in Emacs. 1293d1c293acSmrgcase $srcdir in 1294d1c293acSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1295d1c293acSmrgesac 1296d1c293acSmrgfor ac_var in $ac_precious_vars; do 1297d1c293acSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1298d1c293acSmrg eval ac_env_${ac_var}_value=\$${ac_var} 1299d1c293acSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1300d1c293acSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1301d1c293acSmrgdone 13028440cca4Smrg 13038440cca4Smrg# 13048440cca4Smrg# Report the --help message. 13058440cca4Smrg# 13068440cca4Smrgif test "$ac_init_help" = "long"; then 13078440cca4Smrg # Omit some internal or obsolete options to make the list less imposing. 13088440cca4Smrg # This message is too long to be a string in the A/UX 3.1 sh. 13098440cca4Smrg cat <<_ACEOF 131004449c54Smrg\`configure' configures xstdcmap 1.0.4 to adapt to many kinds of systems. 13118440cca4Smrg 13128440cca4SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13138440cca4Smrg 13148440cca4SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13158440cca4SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13168440cca4Smrg 13178440cca4SmrgDefaults for the options are specified in brackets. 13188440cca4Smrg 13198440cca4SmrgConfiguration: 13208440cca4Smrg -h, --help display this help and exit 13218440cca4Smrg --help=short display options specific to this package 13228440cca4Smrg --help=recursive display the short help of all the included packages 13238440cca4Smrg -V, --version display version information and exit 1324d1c293acSmrg -q, --quiet, --silent do not print \`checking ...' messages 13258440cca4Smrg --cache-file=FILE cache test results in FILE [disabled] 13268440cca4Smrg -C, --config-cache alias for \`--cache-file=config.cache' 13278440cca4Smrg -n, --no-create do not create output files 13288440cca4Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13298440cca4Smrg 13308440cca4SmrgInstallation directories: 13318440cca4Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1332d1c293acSmrg [$ac_default_prefix] 13338440cca4Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1334d1c293acSmrg [PREFIX] 13358440cca4Smrg 13368440cca4SmrgBy default, \`make install' will install all the files in 13378440cca4Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13388440cca4Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13398440cca4Smrgfor instance \`--prefix=\$HOME'. 13408440cca4Smrg 13418440cca4SmrgFor better control, use the options below. 13428440cca4Smrg 13438440cca4SmrgFine tuning of the installation directories: 1344d1c293acSmrg --bindir=DIR user executables [EPREFIX/bin] 1345d1c293acSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1346d1c293acSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 1347d1c293acSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1348d1c293acSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1349d1c293acSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1350d1c293acSmrg --libdir=DIR object code libraries [EPREFIX/lib] 1351d1c293acSmrg --includedir=DIR C header files [PREFIX/include] 1352d1c293acSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1353d1c293acSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1354d1c293acSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1355d1c293acSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 1356d1c293acSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1357d1c293acSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 1358d1c293acSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xstdcmap] 1359d1c293acSmrg --htmldir=DIR html documentation [DOCDIR] 1360d1c293acSmrg --dvidir=DIR dvi documentation [DOCDIR] 1361d1c293acSmrg --pdfdir=DIR pdf documentation [DOCDIR] 1362d1c293acSmrg --psdir=DIR ps documentation [DOCDIR] 13638440cca4Smrg_ACEOF 13648440cca4Smrg 13658440cca4Smrg cat <<\_ACEOF 13668440cca4Smrg 13678440cca4SmrgProgram names: 13688440cca4Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 13698440cca4Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 13708440cca4Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13718440cca4Smrg 13728440cca4SmrgSystem types: 13738440cca4Smrg --build=BUILD configure for building on BUILD [guessed] 13748440cca4Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13758440cca4Smrg_ACEOF 13768440cca4Smrgfi 13778440cca4Smrg 13788440cca4Smrgif test -n "$ac_init_help"; then 13798440cca4Smrg case $ac_init_help in 138004449c54Smrg short | recursive ) echo "Configuration of xstdcmap 1.0.4:";; 13818440cca4Smrg esac 13828440cca4Smrg cat <<\_ACEOF 13838440cca4Smrg 13848440cca4SmrgOptional Features: 1385d1c293acSmrg --disable-option-checking ignore unrecognized --enable/--with options 13868440cca4Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13878440cca4Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 138804449c54Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 138904449c54Smrg --disable-silent-rules verbose build output (undo: "make V=0") 139004449c54Smrg --enable-dependency-tracking 139104449c54Smrg do not reject slow dependency extractors 139204449c54Smrg --disable-dependency-tracking 139304449c54Smrg speeds up one-time build 139420915927Smrg --disable-selective-werror 139520915927Smrg Turn off selective compiler errors. (default: 139620915927Smrg enabled) 1397d1c293acSmrg --enable-strict-compilation 1398d1c293acSmrg Enable all warnings from compiler and make them 1399d1c293acSmrg errors (default: disabled) 14008440cca4Smrg 14018440cca4SmrgSome influential environment variables: 14028440cca4Smrg CC C compiler command 14038440cca4Smrg CFLAGS C compiler flags 14048440cca4Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14058440cca4Smrg nonstandard directory <lib dir> 1406d1c293acSmrg LIBS libraries to pass to the linker, e.g. -l<library> 1407d1c293acSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1408d1c293acSmrg you have headers in a nonstandard directory <include dir> 1409d1c293acSmrg CPP C preprocessor 14108440cca4Smrg PKG_CONFIG path to pkg-config utility 141104449c54Smrg PKG_CONFIG_PATH 141204449c54Smrg directories to add to pkg-config's search path 141304449c54Smrg PKG_CONFIG_LIBDIR 141404449c54Smrg path overriding pkg-config's built-in search path 14158440cca4Smrg XSTDCMAP_CFLAGS 14168440cca4Smrg C compiler flags for XSTDCMAP, overriding pkg-config 14178440cca4Smrg XSTDCMAP_LIBS 14188440cca4Smrg linker flags for XSTDCMAP, overriding pkg-config 14198440cca4Smrg 14208440cca4SmrgUse these variables to override the choices made by `configure' or to help 14218440cca4Smrgit to find libraries and programs with nonstandard names/locations. 14228440cca4Smrg 142304449c54SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xstdcmap/issues>. 14248440cca4Smrg_ACEOF 1425d1c293acSmrgac_status=$? 14268440cca4Smrgfi 14278440cca4Smrg 14288440cca4Smrgif test "$ac_init_help" = "recursive"; then 14298440cca4Smrg # If there are subdirs, report their specific --help. 14308440cca4Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1431d1c293acSmrg test -d "$ac_dir" || 1432d1c293acSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1433d1c293acSmrg continue 14348440cca4Smrg ac_builddir=. 14358440cca4Smrg 1436d1c293acSmrgcase "$ac_dir" in 1437d1c293acSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1438d1c293acSmrg*) 1439d1c293acSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1440d1c293acSmrg # A ".." for each directory in $ac_dir_suffix. 1441d1c293acSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1442d1c293acSmrg case $ac_top_builddir_sub in 1443d1c293acSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1444d1c293acSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1445d1c293acSmrg esac ;; 1446d1c293acSmrgesac 1447d1c293acSmrgac_abs_top_builddir=$ac_pwd 1448d1c293acSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1449d1c293acSmrg# for backward compatibility: 1450d1c293acSmrgac_top_builddir=$ac_top_build_prefix 14518440cca4Smrg 14528440cca4Smrgcase $srcdir in 1453d1c293acSmrg .) # We are building in place. 14548440cca4Smrg ac_srcdir=. 1455d1c293acSmrg ac_top_srcdir=$ac_top_builddir_sub 1456d1c293acSmrg ac_abs_top_srcdir=$ac_pwd ;; 1457d1c293acSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 14588440cca4Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1459d1c293acSmrg ac_top_srcdir=$srcdir 1460d1c293acSmrg ac_abs_top_srcdir=$srcdir ;; 1461d1c293acSmrg *) # Relative name. 1462d1c293acSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1463d1c293acSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1464d1c293acSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14658440cca4Smrgesac 1466d1c293acSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1467d1c293acSmrg 1468d1c293acSmrg cd "$ac_dir" || { ac_status=$?; continue; } 1469d1c293acSmrg # Check for guested configure. 1470d1c293acSmrg if test -f "$ac_srcdir/configure.gnu"; then 1471d1c293acSmrg echo && 1472d1c293acSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1473d1c293acSmrg elif test -f "$ac_srcdir/configure"; then 1474d1c293acSmrg echo && 1475d1c293acSmrg $SHELL "$ac_srcdir/configure" --help=recursive 14768440cca4Smrg else 1477d1c293acSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1478d1c293acSmrg fi || ac_status=$? 1479d1c293acSmrg cd "$ac_pwd" || { ac_status=$?; break; } 14808440cca4Smrg done 14818440cca4Smrgfi 14828440cca4Smrg 1483d1c293acSmrgtest -n "$ac_init_help" && exit $ac_status 14848440cca4Smrgif $ac_init_version; then 14858440cca4Smrg cat <<\_ACEOF 148604449c54Smrgxstdcmap configure 1.0.4 148704449c54Smrggenerated by GNU Autoconf 2.69 14888440cca4Smrg 148904449c54SmrgCopyright (C) 2012 Free Software Foundation, Inc. 14908440cca4SmrgThis configure script is free software; the Free Software Foundation 14918440cca4Smrggives unlimited permission to copy, distribute and modify it. 14928440cca4Smrg_ACEOF 1493d1c293acSmrg exit 14948440cca4Smrgfi 14958440cca4Smrg 1496d1c293acSmrg## ------------------------ ## 1497d1c293acSmrg## Autoconf initialization. ## 1498d1c293acSmrg## ------------------------ ## 14998440cca4Smrg 1500d1c293acSmrg# ac_fn_c_try_compile LINENO 1501d1c293acSmrg# -------------------------- 1502d1c293acSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1503d1c293acSmrgac_fn_c_try_compile () 15048440cca4Smrg{ 1505d1c293acSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1506d1c293acSmrg rm -f conftest.$ac_objext 1507d1c293acSmrg if { { ac_try="$ac_compile" 1508d1c293acSmrgcase "(($ac_try" in 1509d1c293acSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1510d1c293acSmrg *) ac_try_echo=$ac_try;; 1511d1c293acSmrgesac 1512d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1513d1c293acSmrg$as_echo "$ac_try_echo"; } >&5 1514d1c293acSmrg (eval "$ac_compile") 2>conftest.err 1515d1c293acSmrg ac_status=$? 1516d1c293acSmrg if test -s conftest.err; then 1517d1c293acSmrg grep -v '^ *+' conftest.err >conftest.er1 1518d1c293acSmrg cat conftest.er1 >&5 1519d1c293acSmrg mv -f conftest.er1 conftest.err 1520d1c293acSmrg fi 1521d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1522d1c293acSmrg test $ac_status = 0; } && { 1523d1c293acSmrg test -z "$ac_c_werror_flag" || 1524d1c293acSmrg test ! -s conftest.err 1525d1c293acSmrg } && test -s conftest.$ac_objext; then : 1526d1c293acSmrg ac_retval=0 1527d1c293acSmrgelse 1528d1c293acSmrg $as_echo "$as_me: failed program was:" >&5 1529d1c293acSmrgsed 's/^/| /' conftest.$ac_ext >&5 15308440cca4Smrg 1531d1c293acSmrg ac_retval=1 1532d1c293acSmrgfi 1533d1c293acSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1534d1c293acSmrg as_fn_set_status $ac_retval 15358440cca4Smrg 1536d1c293acSmrg} # ac_fn_c_try_compile 15378440cca4Smrg 1538d1c293acSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1539d1c293acSmrg# --------------------------------------------- 1540d1c293acSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1541d1c293acSmrg# accordingly. 1542d1c293acSmrgac_fn_c_check_decl () 1543d1c293acSmrg{ 1544d1c293acSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1545d1c293acSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1546d1c293acSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1547d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1548d1c293acSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1549d1c293acSmrgif eval \${$3+:} false; then : 1550d1c293acSmrg $as_echo_n "(cached) " >&6 1551d1c293acSmrgelse 1552d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1553d1c293acSmrg/* end confdefs.h. */ 1554d1c293acSmrg$4 1555d1c293acSmrgint 1556d1c293acSmrgmain () 1557d1c293acSmrg{ 1558d1c293acSmrg#ifndef $as_decl_name 1559d1c293acSmrg#ifdef __cplusplus 1560d1c293acSmrg (void) $as_decl_use; 1561d1c293acSmrg#else 1562d1c293acSmrg (void) $as_decl_name; 1563d1c293acSmrg#endif 1564d1c293acSmrg#endif 15658440cca4Smrg 1566d1c293acSmrg ; 1567d1c293acSmrg return 0; 1568d1c293acSmrg} 1569d1c293acSmrg_ACEOF 1570d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then : 1571d1c293acSmrg eval "$3=yes" 1572d1c293acSmrgelse 1573d1c293acSmrg eval "$3=no" 1574d1c293acSmrgfi 1575d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1576d1c293acSmrgfi 1577d1c293acSmrgeval ac_res=\$$3 1578d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1579d1c293acSmrg$as_echo "$ac_res" >&6; } 1580d1c293acSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1581d1c293acSmrg 1582d1c293acSmrg} # ac_fn_c_check_decl 1583d1c293acSmrg 1584d1c293acSmrg# ac_fn_c_try_cpp LINENO 1585d1c293acSmrg# ---------------------- 1586d1c293acSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1587d1c293acSmrgac_fn_c_try_cpp () 1588d1c293acSmrg{ 1589d1c293acSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1590d1c293acSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1591d1c293acSmrgcase "(($ac_try" in 1592d1c293acSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1593d1c293acSmrg *) ac_try_echo=$ac_try;; 1594d1c293acSmrgesac 1595d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1596d1c293acSmrg$as_echo "$ac_try_echo"; } >&5 1597d1c293acSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1598d1c293acSmrg ac_status=$? 1599d1c293acSmrg if test -s conftest.err; then 1600d1c293acSmrg grep -v '^ *+' conftest.err >conftest.er1 1601d1c293acSmrg cat conftest.er1 >&5 1602d1c293acSmrg mv -f conftest.er1 conftest.err 1603d1c293acSmrg fi 1604d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1605d1c293acSmrg test $ac_status = 0; } > conftest.i && { 1606d1c293acSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1607d1c293acSmrg test ! -s conftest.err 1608d1c293acSmrg }; then : 1609d1c293acSmrg ac_retval=0 1610d1c293acSmrgelse 1611d1c293acSmrg $as_echo "$as_me: failed program was:" >&5 1612d1c293acSmrgsed 's/^/| /' conftest.$ac_ext >&5 1613d1c293acSmrg 1614d1c293acSmrg ac_retval=1 1615d1c293acSmrgfi 1616d1c293acSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1617d1c293acSmrg as_fn_set_status $ac_retval 1618d1c293acSmrg 1619d1c293acSmrg} # ac_fn_c_try_cpp 1620d1c293acSmrg 1621d1c293acSmrg# ac_fn_c_try_run LINENO 1622d1c293acSmrg# ---------------------- 1623d1c293acSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1624d1c293acSmrg# that executables *can* be run. 1625d1c293acSmrgac_fn_c_try_run () 1626d1c293acSmrg{ 1627d1c293acSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1628d1c293acSmrg if { { ac_try="$ac_link" 1629d1c293acSmrgcase "(($ac_try" in 1630d1c293acSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631d1c293acSmrg *) ac_try_echo=$ac_try;; 1632d1c293acSmrgesac 1633d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634d1c293acSmrg$as_echo "$ac_try_echo"; } >&5 1635d1c293acSmrg (eval "$ac_link") 2>&5 1636d1c293acSmrg ac_status=$? 1637d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1638d1c293acSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1639d1c293acSmrg { { case "(($ac_try" in 1640d1c293acSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1641d1c293acSmrg *) ac_try_echo=$ac_try;; 1642d1c293acSmrgesac 1643d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1644d1c293acSmrg$as_echo "$ac_try_echo"; } >&5 1645d1c293acSmrg (eval "$ac_try") 2>&5 1646d1c293acSmrg ac_status=$? 1647d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648d1c293acSmrg test $ac_status = 0; }; }; then : 1649d1c293acSmrg ac_retval=0 1650d1c293acSmrgelse 1651d1c293acSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 1652d1c293acSmrg $as_echo "$as_me: failed program was:" >&5 1653d1c293acSmrgsed 's/^/| /' conftest.$ac_ext >&5 1654d1c293acSmrg 1655d1c293acSmrg ac_retval=$ac_status 1656d1c293acSmrgfi 1657d1c293acSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1658d1c293acSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659d1c293acSmrg as_fn_set_status $ac_retval 1660d1c293acSmrg 1661d1c293acSmrg} # ac_fn_c_try_run 1662d1c293acSmrg 1663d1c293acSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1664d1c293acSmrg# ------------------------------------------------------- 1665d1c293acSmrg# Tests whether HEADER exists and can be compiled using the include files in 1666d1c293acSmrg# INCLUDES, setting the cache variable VAR accordingly. 1667d1c293acSmrgac_fn_c_check_header_compile () 1668d1c293acSmrg{ 1669d1c293acSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1671d1c293acSmrg$as_echo_n "checking for $2... " >&6; } 1672d1c293acSmrgif eval \${$3+:} false; then : 1673d1c293acSmrg $as_echo_n "(cached) " >&6 1674d1c293acSmrgelse 1675d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1676d1c293acSmrg/* end confdefs.h. */ 1677d1c293acSmrg$4 1678d1c293acSmrg#include <$2> 1679d1c293acSmrg_ACEOF 1680d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then : 1681d1c293acSmrg eval "$3=yes" 1682d1c293acSmrgelse 1683d1c293acSmrg eval "$3=no" 1684d1c293acSmrgfi 1685d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1686d1c293acSmrgfi 1687d1c293acSmrgeval ac_res=\$$3 1688d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689d1c293acSmrg$as_echo "$ac_res" >&6; } 1690d1c293acSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691d1c293acSmrg 1692d1c293acSmrg} # ac_fn_c_check_header_compile 169320915927Smrg 169420915927Smrg# ac_fn_c_try_link LINENO 169520915927Smrg# ----------------------- 169620915927Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 169720915927Smrgac_fn_c_try_link () 169820915927Smrg{ 169920915927Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 170020915927Smrg rm -f conftest.$ac_objext conftest$ac_exeext 170120915927Smrg if { { ac_try="$ac_link" 170220915927Smrgcase "(($ac_try" in 170320915927Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 170420915927Smrg *) ac_try_echo=$ac_try;; 170520915927Smrgesac 170620915927Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 170720915927Smrg$as_echo "$ac_try_echo"; } >&5 170820915927Smrg (eval "$ac_link") 2>conftest.err 170920915927Smrg ac_status=$? 171020915927Smrg if test -s conftest.err; then 171120915927Smrg grep -v '^ *+' conftest.err >conftest.er1 171220915927Smrg cat conftest.er1 >&5 171320915927Smrg mv -f conftest.er1 conftest.err 171420915927Smrg fi 171520915927Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 171620915927Smrg test $ac_status = 0; } && { 171720915927Smrg test -z "$ac_c_werror_flag" || 171820915927Smrg test ! -s conftest.err 171920915927Smrg } && test -s conftest$ac_exeext && { 172020915927Smrg test "$cross_compiling" = yes || 172104449c54Smrg test -x conftest$ac_exeext 172220915927Smrg }; then : 172320915927Smrg ac_retval=0 172420915927Smrgelse 172520915927Smrg $as_echo "$as_me: failed program was:" >&5 172620915927Smrgsed 's/^/| /' conftest.$ac_ext >&5 172720915927Smrg 172820915927Smrg ac_retval=1 172920915927Smrgfi 173020915927Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 173120915927Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 173220915927Smrg # interfere with the next link command; also delete a directory that is 173320915927Smrg # left behind by Apple's compiler. We do this before executing the actions. 173420915927Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 173520915927Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 173620915927Smrg as_fn_set_status $ac_retval 173720915927Smrg 173820915927Smrg} # ac_fn_c_try_link 1739d1c293acSmrgcat >config.log <<_ACEOF 1740d1c293acSmrgThis file contains any messages produced by compilers while 1741d1c293acSmrgrunning configure, to aid debugging if configure makes a mistake. 1742d1c293acSmrg 174304449c54SmrgIt was created by xstdcmap $as_me 1.0.4, which was 174404449c54Smrggenerated by GNU Autoconf 2.69. Invocation command line was 1745d1c293acSmrg 1746d1c293acSmrg $ $0 $@ 1747d1c293acSmrg 1748d1c293acSmrg_ACEOF 1749d1c293acSmrgexec 5>>config.log 1750d1c293acSmrg{ 1751d1c293acSmrgcat <<_ASUNAME 1752d1c293acSmrg## --------- ## 1753d1c293acSmrg## Platform. ## 1754d1c293acSmrg## --------- ## 1755d1c293acSmrg 1756d1c293acSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1757d1c293acSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1758d1c293acSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1759d1c293acSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1760d1c293acSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1761d1c293acSmrg 1762d1c293acSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1763d1c293acSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1764d1c293acSmrg 1765d1c293acSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1766d1c293acSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1767d1c293acSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1768d1c293acSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1769d1c293acSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1770d1c293acSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1771d1c293acSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1772d1c293acSmrg 1773d1c293acSmrg_ASUNAME 1774d1c293acSmrg 1775d1c293acSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1776d1c293acSmrgfor as_dir in $PATH 1777d1c293acSmrgdo 1778d1c293acSmrg IFS=$as_save_IFS 1779d1c293acSmrg test -z "$as_dir" && as_dir=. 1780d1c293acSmrg $as_echo "PATH: $as_dir" 1781d1c293acSmrg done 1782d1c293acSmrgIFS=$as_save_IFS 17838440cca4Smrg 17848440cca4Smrg} >&5 17858440cca4Smrg 17868440cca4Smrgcat >&5 <<_ACEOF 17878440cca4Smrg 17888440cca4Smrg 17898440cca4Smrg## ----------- ## 17908440cca4Smrg## Core tests. ## 17918440cca4Smrg## ----------- ## 17928440cca4Smrg 17938440cca4Smrg_ACEOF 17948440cca4Smrg 17958440cca4Smrg 17968440cca4Smrg# Keep a trace of the command line. 17978440cca4Smrg# Strip out --no-create and --no-recursion so they do not pile up. 17988440cca4Smrg# Strip out --silent because we don't want to record it for future runs. 17998440cca4Smrg# Also quote any args containing shell meta-characters. 18008440cca4Smrg# Make two passes to allow for proper duplicate-argument suppression. 18018440cca4Smrgac_configure_args= 18028440cca4Smrgac_configure_args0= 18038440cca4Smrgac_configure_args1= 18048440cca4Smrgac_must_keep_next=false 18058440cca4Smrgfor ac_pass in 1 2 18068440cca4Smrgdo 18078440cca4Smrg for ac_arg 18088440cca4Smrg do 18098440cca4Smrg case $ac_arg in 18108440cca4Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18118440cca4Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18128440cca4Smrg | -silent | --silent | --silen | --sile | --sil) 18138440cca4Smrg continue ;; 1814d1c293acSmrg *\'*) 1815d1c293acSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18168440cca4Smrg esac 18178440cca4Smrg case $ac_pass in 1818d1c293acSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 18198440cca4Smrg 2) 1820d1c293acSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 18218440cca4Smrg if test $ac_must_keep_next = true; then 18228440cca4Smrg ac_must_keep_next=false # Got value, back to normal. 18238440cca4Smrg else 18248440cca4Smrg case $ac_arg in 18258440cca4Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 18268440cca4Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 18278440cca4Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 18288440cca4Smrg | -with-* | --with-* | -without-* | --without-* | --x) 18298440cca4Smrg case "$ac_configure_args0 " in 18308440cca4Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 18318440cca4Smrg esac 18328440cca4Smrg ;; 18338440cca4Smrg -* ) ac_must_keep_next=true ;; 18348440cca4Smrg esac 18358440cca4Smrg fi 1836d1c293acSmrg as_fn_append ac_configure_args " '$ac_arg'" 18378440cca4Smrg ;; 18388440cca4Smrg esac 18398440cca4Smrg done 18408440cca4Smrgdone 1841d1c293acSmrg{ ac_configure_args0=; unset ac_configure_args0;} 1842d1c293acSmrg{ ac_configure_args1=; unset ac_configure_args1;} 18438440cca4Smrg 18448440cca4Smrg# When interrupted or exit'd, cleanup temporary files, and complete 18458440cca4Smrg# config.log. We remove comments because anyway the quotes in there 18468440cca4Smrg# would cause problems or look ugly. 1847d1c293acSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1848d1c293acSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 18498440cca4Smrgtrap 'exit_status=$? 18508440cca4Smrg # Save into config.log some information that might help in debugging. 18518440cca4Smrg { 18528440cca4Smrg echo 18538440cca4Smrg 1854d1c293acSmrg $as_echo "## ---------------- ## 18558440cca4Smrg## Cache variables. ## 1856d1c293acSmrg## ---------------- ##" 18578440cca4Smrg echo 18588440cca4Smrg # The following way of writing the cache mishandles newlines in values, 1859d1c293acSmrg( 1860d1c293acSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1861d1c293acSmrg eval ac_val=\$$ac_var 1862d1c293acSmrg case $ac_val in #( 1863d1c293acSmrg *${as_nl}*) 1864d1c293acSmrg case $ac_var in #( 1865d1c293acSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1866d1c293acSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1867d1c293acSmrg esac 1868d1c293acSmrg case $ac_var in #( 1869d1c293acSmrg _ | IFS | as_nl) ;; #( 1870d1c293acSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1871d1c293acSmrg *) { eval $ac_var=; unset $ac_var;} ;; 1872d1c293acSmrg esac ;; 1873d1c293acSmrg esac 1874d1c293acSmrg done 18758440cca4Smrg (set) 2>&1 | 1876d1c293acSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1877d1c293acSmrg *${as_nl}ac_space=\ *) 18788440cca4Smrg sed -n \ 1879d1c293acSmrg "s/'\''/'\''\\\\'\'''\''/g; 1880d1c293acSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1881d1c293acSmrg ;; #( 18828440cca4Smrg *) 1883d1c293acSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18848440cca4Smrg ;; 1885d1c293acSmrg esac | 1886d1c293acSmrg sort 1887d1c293acSmrg) 18888440cca4Smrg echo 18898440cca4Smrg 1890d1c293acSmrg $as_echo "## ----------------- ## 18918440cca4Smrg## Output variables. ## 1892d1c293acSmrg## ----------------- ##" 18938440cca4Smrg echo 18948440cca4Smrg for ac_var in $ac_subst_vars 18958440cca4Smrg do 1896d1c293acSmrg eval ac_val=\$$ac_var 1897d1c293acSmrg case $ac_val in 1898d1c293acSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1899d1c293acSmrg esac 1900d1c293acSmrg $as_echo "$ac_var='\''$ac_val'\''" 19018440cca4Smrg done | sort 19028440cca4Smrg echo 19038440cca4Smrg 19048440cca4Smrg if test -n "$ac_subst_files"; then 1905d1c293acSmrg $as_echo "## ------------------- ## 1906d1c293acSmrg## File substitutions. ## 1907d1c293acSmrg## ------------------- ##" 19088440cca4Smrg echo 19098440cca4Smrg for ac_var in $ac_subst_files 19108440cca4Smrg do 1911d1c293acSmrg eval ac_val=\$$ac_var 1912d1c293acSmrg case $ac_val in 1913d1c293acSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1914d1c293acSmrg esac 1915d1c293acSmrg $as_echo "$ac_var='\''$ac_val'\''" 19168440cca4Smrg done | sort 19178440cca4Smrg echo 19188440cca4Smrg fi 19198440cca4Smrg 19208440cca4Smrg if test -s confdefs.h; then 1921d1c293acSmrg $as_echo "## ----------- ## 19228440cca4Smrg## confdefs.h. ## 1923d1c293acSmrg## ----------- ##" 19248440cca4Smrg echo 1925d1c293acSmrg cat confdefs.h 19268440cca4Smrg echo 19278440cca4Smrg fi 19288440cca4Smrg test "$ac_signal" != 0 && 1929d1c293acSmrg $as_echo "$as_me: caught signal $ac_signal" 1930d1c293acSmrg $as_echo "$as_me: exit $exit_status" 19318440cca4Smrg } >&5 1932d1c293acSmrg rm -f core *.core core.conftest.* && 1933d1c293acSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 19348440cca4Smrg exit $exit_status 1935d1c293acSmrg' 0 19368440cca4Smrgfor ac_signal in 1 2 13 15; do 1937d1c293acSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 19388440cca4Smrgdone 19398440cca4Smrgac_signal=0 19408440cca4Smrg 19418440cca4Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1942d1c293acSmrgrm -f -r conftest* confdefs.h 1943d1c293acSmrg 1944d1c293acSmrg$as_echo "/* confdefs.h */" > confdefs.h 19458440cca4Smrg 19468440cca4Smrg# Predefined preprocessor variables. 19478440cca4Smrg 19488440cca4Smrgcat >>confdefs.h <<_ACEOF 19498440cca4Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 19508440cca4Smrg_ACEOF 19518440cca4Smrg 19528440cca4Smrgcat >>confdefs.h <<_ACEOF 19538440cca4Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 19548440cca4Smrg_ACEOF 19558440cca4Smrg 19568440cca4Smrgcat >>confdefs.h <<_ACEOF 19578440cca4Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 19588440cca4Smrg_ACEOF 19598440cca4Smrg 19608440cca4Smrgcat >>confdefs.h <<_ACEOF 19618440cca4Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 19628440cca4Smrg_ACEOF 19638440cca4Smrg 19648440cca4Smrgcat >>confdefs.h <<_ACEOF 19658440cca4Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 19668440cca4Smrg_ACEOF 19678440cca4Smrg 1968d1c293acSmrgcat >>confdefs.h <<_ACEOF 1969d1c293acSmrg#define PACKAGE_URL "$PACKAGE_URL" 1970d1c293acSmrg_ACEOF 1971d1c293acSmrg 19728440cca4Smrg 19738440cca4Smrg# Let the site file select an alternate cache file if it wants to. 1974d1c293acSmrg# Prefer an explicitly selected file to automatically selected ones. 1975d1c293acSmrgac_site_file1=NONE 1976d1c293acSmrgac_site_file2=NONE 1977d1c293acSmrgif test -n "$CONFIG_SITE"; then 1978d1c293acSmrg # We do not want a PATH search for config.site. 1979d1c293acSmrg case $CONFIG_SITE in #(( 1980d1c293acSmrg -*) ac_site_file1=./$CONFIG_SITE;; 1981d1c293acSmrg */*) ac_site_file1=$CONFIG_SITE;; 1982d1c293acSmrg *) ac_site_file1=./$CONFIG_SITE;; 1983d1c293acSmrg esac 1984d1c293acSmrgelif test "x$prefix" != xNONE; then 1985d1c293acSmrg ac_site_file1=$prefix/share/config.site 1986d1c293acSmrg ac_site_file2=$prefix/etc/config.site 1987d1c293acSmrgelse 1988d1c293acSmrg ac_site_file1=$ac_default_prefix/share/config.site 1989d1c293acSmrg ac_site_file2=$ac_default_prefix/etc/config.site 19908440cca4Smrgfi 1991d1c293acSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 1992d1c293acSmrgdo 1993d1c293acSmrg test "x$ac_site_file" = xNONE && continue 1994d1c293acSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1995d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1996d1c293acSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 19978440cca4Smrg sed 's/^/| /' "$ac_site_file" >&5 1998d1c293acSmrg . "$ac_site_file" \ 1999d1c293acSmrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2000d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2001d1c293acSmrgas_fn_error $? "failed to load site script $ac_site_file 2002d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; } 20038440cca4Smrg fi 20048440cca4Smrgdone 20058440cca4Smrg 20068440cca4Smrgif test -r "$cache_file"; then 2007d1c293acSmrg # Some versions of bash will fail to source /dev/null (special files 2008d1c293acSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2009d1c293acSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2010d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2011d1c293acSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 20128440cca4Smrg case $cache_file in 2013d1c293acSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2014d1c293acSmrg *) . "./$cache_file";; 20158440cca4Smrg esac 20168440cca4Smrg fi 20178440cca4Smrgelse 2018d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2019d1c293acSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 20208440cca4Smrg >$cache_file 20218440cca4Smrgfi 20228440cca4Smrg 20238440cca4Smrg# Check that the precious variables saved in the cache have kept the same 20248440cca4Smrg# value. 20258440cca4Smrgac_cache_corrupted=false 2026d1c293acSmrgfor ac_var in $ac_precious_vars; do 20278440cca4Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 20288440cca4Smrg eval ac_new_set=\$ac_env_${ac_var}_set 2029d1c293acSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2030d1c293acSmrg eval ac_new_val=\$ac_env_${ac_var}_value 20318440cca4Smrg case $ac_old_set,$ac_new_set in 20328440cca4Smrg set,) 2033d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2034d1c293acSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 20358440cca4Smrg ac_cache_corrupted=: ;; 20368440cca4Smrg ,set) 2037d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2038d1c293acSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 20398440cca4Smrg ac_cache_corrupted=: ;; 20408440cca4Smrg ,);; 20418440cca4Smrg *) 20428440cca4Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 2043d1c293acSmrg # differences in whitespace do not lead to failure. 2044d1c293acSmrg ac_old_val_w=`echo x $ac_old_val` 2045d1c293acSmrg ac_new_val_w=`echo x $ac_new_val` 2046d1c293acSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2047d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2048d1c293acSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2049d1c293acSmrg ac_cache_corrupted=: 2050d1c293acSmrg else 2051d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2052d1c293acSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2053d1c293acSmrg eval $ac_var=\$ac_old_val 2054d1c293acSmrg fi 2055d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2056d1c293acSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2057d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2058d1c293acSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 20598440cca4Smrg fi;; 20608440cca4Smrg esac 20618440cca4Smrg # Pass precious variables to config.status. 20628440cca4Smrg if test "$ac_new_set" = set; then 20638440cca4Smrg case $ac_new_val in 2064d1c293acSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 20658440cca4Smrg *) ac_arg=$ac_var=$ac_new_val ;; 20668440cca4Smrg esac 20678440cca4Smrg case " $ac_configure_args " in 20688440cca4Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2069d1c293acSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 20708440cca4Smrg esac 20718440cca4Smrg fi 20728440cca4Smrgdone 20738440cca4Smrgif $ac_cache_corrupted; then 2074d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2075d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2076d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2077d1c293acSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2078d1c293acSmrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 20798440cca4Smrgfi 2080d1c293acSmrg## -------------------- ## 2081d1c293acSmrg## Main body of script. ## 2082d1c293acSmrg## -------------------- ## 20838440cca4Smrg 20848440cca4Smrgac_ext=c 20858440cca4Smrgac_cpp='$CPP $CPPFLAGS' 20868440cca4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20878440cca4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20888440cca4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 20898440cca4Smrg 20908440cca4Smrg 209120915927Smrg 209220915927Smrgac_config_headers="$ac_config_headers config.h" 209320915927Smrg 209420915927Smrg 209520915927Smrg# Initialize Automake 209604449c54Smrgam__api_version='1.15' 20978440cca4Smrg 20988440cca4Smrgac_aux_dir= 2099d1c293acSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2100d1c293acSmrg if test -f "$ac_dir/install-sh"; then 21018440cca4Smrg ac_aux_dir=$ac_dir 21028440cca4Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 21038440cca4Smrg break 2104d1c293acSmrg elif test -f "$ac_dir/install.sh"; then 21058440cca4Smrg ac_aux_dir=$ac_dir 21068440cca4Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 21078440cca4Smrg break 2108d1c293acSmrg elif test -f "$ac_dir/shtool"; then 21098440cca4Smrg ac_aux_dir=$ac_dir 21108440cca4Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 21118440cca4Smrg break 21128440cca4Smrg fi 21138440cca4Smrgdone 21148440cca4Smrgif test -z "$ac_aux_dir"; then 2115d1c293acSmrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 21168440cca4Smrgfi 2117d1c293acSmrg 2118d1c293acSmrg# These three variables are undocumented and unsupported, 2119d1c293acSmrg# and are intended to be withdrawn in a future Autoconf release. 2120d1c293acSmrg# They can cause serious problems if a builder's source tree is in a directory 2121d1c293acSmrg# whose full name contains unusual characters. 2122d1c293acSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2123d1c293acSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2124d1c293acSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2125d1c293acSmrg 21268440cca4Smrg 21278440cca4Smrg# Find a good install program. We prefer a C program (faster), 21288440cca4Smrg# so one script is as good as another. But avoid the broken or 21298440cca4Smrg# incompatible versions: 21308440cca4Smrg# SysV /etc/install, /usr/sbin/install 21318440cca4Smrg# SunOS /usr/etc/install 21328440cca4Smrg# IRIX /sbin/install 21338440cca4Smrg# AIX /bin/install 21348440cca4Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 21358440cca4Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 21368440cca4Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 21378440cca4Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 21388440cca4Smrg# OS/2's system install, which has a completely different semantic 21398440cca4Smrg# ./install, which can be erroneously created by make from ./install.sh. 2140d1c293acSmrg# Reject install programs that cannot install multiple files. 2141d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2142d1c293acSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 21438440cca4Smrgif test -z "$INSTALL"; then 2144d1c293acSmrgif ${ac_cv_path_install+:} false; then : 2145d1c293acSmrg $as_echo_n "(cached) " >&6 21468440cca4Smrgelse 21478440cca4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21488440cca4Smrgfor as_dir in $PATH 21498440cca4Smrgdo 21508440cca4Smrg IFS=$as_save_IFS 21518440cca4Smrg test -z "$as_dir" && as_dir=. 2152d1c293acSmrg # Account for people who put trailing slashes in PATH elements. 2153d1c293acSmrgcase $as_dir/ in #(( 2154d1c293acSmrg ./ | .// | /[cC]/* | \ 21558440cca4Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2156d1c293acSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 21578440cca4Smrg /usr/ucb/* ) ;; 21588440cca4Smrg *) 21598440cca4Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 21608440cca4Smrg # Don't use installbsd from OSF since it installs stuff as root 21618440cca4Smrg # by default. 21628440cca4Smrg for ac_prog in ginstall scoinst install; do 21638440cca4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 216404449c54Smrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 21658440cca4Smrg if test $ac_prog = install && 21668440cca4Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 21678440cca4Smrg # AIX install. It has an incompatible calling convention. 21688440cca4Smrg : 21698440cca4Smrg elif test $ac_prog = install && 21708440cca4Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 21718440cca4Smrg # program-specific install script used by HP pwplus--don't use. 21728440cca4Smrg : 21738440cca4Smrg else 2174d1c293acSmrg rm -rf conftest.one conftest.two conftest.dir 2175d1c293acSmrg echo one > conftest.one 2176d1c293acSmrg echo two > conftest.two 2177d1c293acSmrg mkdir conftest.dir 2178d1c293acSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2179d1c293acSmrg test -s conftest.one && test -s conftest.two && 2180d1c293acSmrg test -s conftest.dir/conftest.one && 2181d1c293acSmrg test -s conftest.dir/conftest.two 2182d1c293acSmrg then 2183d1c293acSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2184d1c293acSmrg break 3 2185d1c293acSmrg fi 21868440cca4Smrg fi 21878440cca4Smrg fi 21888440cca4Smrg done 21898440cca4Smrg done 21908440cca4Smrg ;; 21918440cca4Smrgesac 21928440cca4Smrg 2193d1c293acSmrg done 2194d1c293acSmrgIFS=$as_save_IFS 2195d1c293acSmrg 2196d1c293acSmrgrm -rf conftest.one conftest.two conftest.dir 21978440cca4Smrg 21988440cca4Smrgfi 21998440cca4Smrg if test "${ac_cv_path_install+set}" = set; then 22008440cca4Smrg INSTALL=$ac_cv_path_install 22018440cca4Smrg else 2202d1c293acSmrg # As a last resort, use the slow shell script. Don't cache a 2203d1c293acSmrg # value for INSTALL within a source directory, because that will 22048440cca4Smrg # break other packages using the cache if that directory is 2205d1c293acSmrg # removed, or if the value is a relative name. 22068440cca4Smrg INSTALL=$ac_install_sh 22078440cca4Smrg fi 22088440cca4Smrgfi 2209d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2210d1c293acSmrg$as_echo "$INSTALL" >&6; } 22118440cca4Smrg 22128440cca4Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 22138440cca4Smrg# It thinks the first close brace ends the variable substitution. 22148440cca4Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 22158440cca4Smrg 22168440cca4Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 22178440cca4Smrg 22188440cca4Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 22198440cca4Smrg 2220d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2221d1c293acSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 2222d1c293acSmrg# Reject unsafe characters in $srcdir or the absolute working directory 2223d1c293acSmrg# name. Accept space and tab only in the latter. 2224d1c293acSmrgam_lf=' 2225d1c293acSmrg' 2226d1c293acSmrgcase `pwd` in 2227d1c293acSmrg *[\\\"\#\$\&\'\`$am_lf]*) 2228d1c293acSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2229d1c293acSmrgesac 2230d1c293acSmrgcase $srcdir in 2231d1c293acSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 223204449c54Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2233d1c293acSmrgesac 2234d1c293acSmrg 223504449c54Smrg# Do 'set' in a subshell so we don't clobber the current shell's 22368440cca4Smrg# arguments. Must try -L first in case configure is actually a 22378440cca4Smrg# symlink; some systems play weird games with the mod time of symlinks 22388440cca4Smrg# (eg FreeBSD returns the mod time of the symlink's containing 22398440cca4Smrg# directory). 22408440cca4Smrgif ( 224104449c54Smrg am_has_slept=no 224204449c54Smrg for am_try in 1 2; do 224304449c54Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 224404449c54Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 224504449c54Smrg if test "$*" = "X"; then 224604449c54Smrg # -L didn't work. 224704449c54Smrg set X `ls -t "$srcdir/configure" conftest.file` 224804449c54Smrg fi 224904449c54Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 225004449c54Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 225104449c54Smrg 225204449c54Smrg # If neither matched, then we have a broken ls. This can happen 225304449c54Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 225404449c54Smrg # broken ls alias from the environment. This has actually 225504449c54Smrg # happened. Such a system could not be considered "sane". 225604449c54Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 225704449c54Smrg alias in your environment" "$LINENO" 5 225804449c54Smrg fi 225904449c54Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 226004449c54Smrg break 226104449c54Smrg fi 226204449c54Smrg # Just in case. 226304449c54Smrg sleep 1 226404449c54Smrg am_has_slept=yes 226504449c54Smrg done 22668440cca4Smrg test "$2" = conftest.file 22678440cca4Smrg ) 22688440cca4Smrgthen 22698440cca4Smrg # Ok. 22708440cca4Smrg : 22718440cca4Smrgelse 2272d1c293acSmrg as_fn_error $? "newly created file is older than distributed files! 2273d1c293acSmrgCheck your system clock" "$LINENO" 5 22748440cca4Smrgfi 2275d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2276d1c293acSmrg$as_echo "yes" >&6; } 227704449c54Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 227804449c54Smrg# generated files are strictly newer. 227904449c54Smrgam_sleep_pid= 228004449c54Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 228104449c54Smrg ( sleep 1 ) & 228204449c54Smrg am_sleep_pid=$! 228304449c54Smrgfi 228404449c54Smrg 228504449c54Smrgrm -f conftest.file 228604449c54Smrg 22878440cca4Smrgtest "$program_prefix" != NONE && 2288d1c293acSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 22898440cca4Smrg# Use a double $ so make ignores it. 22908440cca4Smrgtest "$program_suffix" != NONE && 2291d1c293acSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2292d1c293acSmrg# Double any \ or $. 22938440cca4Smrg# By default was `s,x,x', remove it if useless. 2294d1c293acSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2295d1c293acSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 22968440cca4Smrg 229704449c54Smrg# Expand $ac_aux_dir to an absolute path. 229804449c54Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 22998440cca4Smrg 2300d1c293acSmrgif test x"${MISSING+set}" != xset; then 2301d1c293acSmrg case $am_aux_dir in 2302d1c293acSmrg *\ * | *\ *) 2303d1c293acSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2304d1c293acSmrg *) 2305d1c293acSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2306d1c293acSmrg esac 2307d1c293acSmrgfi 23088440cca4Smrg# Use eval to expand $SHELL 230904449c54Smrgif eval "$MISSING --is-lightweight"; then 231004449c54Smrg am_missing_run="$MISSING " 23118440cca4Smrgelse 23128440cca4Smrg am_missing_run= 231304449c54Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 231404449c54Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2315d1c293acSmrgfi 2316d1c293acSmrg 231704449c54Smrgif test x"${install_sh+set}" != xset; then 2318d1c293acSmrg case $am_aux_dir in 2319d1c293acSmrg *\ * | *\ *) 2320d1c293acSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2321d1c293acSmrg *) 2322d1c293acSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2323d1c293acSmrg esac 2324d1c293acSmrgfi 2325d1c293acSmrg 232604449c54Smrg# Installed binaries are usually stripped using 'strip' when the user 232704449c54Smrg# run "make install-strip". However 'strip' might not be the right 2328d1c293acSmrg# tool to use in cross-compilation environments, therefore Automake 232904449c54Smrg# will honor the 'STRIP' environment variable to overrule this program. 2330d1c293acSmrgif test "$cross_compiling" != no; then 2331d1c293acSmrg if test -n "$ac_tool_prefix"; then 2332d1c293acSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2333d1c293acSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2334d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2335d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; } 2336d1c293acSmrgif ${ac_cv_prog_STRIP+:} false; then : 2337d1c293acSmrg $as_echo_n "(cached) " >&6 2338d1c293acSmrgelse 2339d1c293acSmrg if test -n "$STRIP"; then 2340d1c293acSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2341d1c293acSmrgelse 2342d1c293acSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343d1c293acSmrgfor as_dir in $PATH 2344d1c293acSmrgdo 2345d1c293acSmrg IFS=$as_save_IFS 2346d1c293acSmrg test -z "$as_dir" && as_dir=. 2347d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 234804449c54Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2349d1c293acSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2350d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2351d1c293acSmrg break 2 2352d1c293acSmrg fi 2353d1c293acSmrgdone 2354d1c293acSmrg done 2355d1c293acSmrgIFS=$as_save_IFS 2356d1c293acSmrg 2357d1c293acSmrgfi 2358d1c293acSmrgfi 2359d1c293acSmrgSTRIP=$ac_cv_prog_STRIP 2360d1c293acSmrgif test -n "$STRIP"; then 2361d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2362d1c293acSmrg$as_echo "$STRIP" >&6; } 2363d1c293acSmrgelse 2364d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2365d1c293acSmrg$as_echo "no" >&6; } 2366d1c293acSmrgfi 2367d1c293acSmrg 2368d1c293acSmrg 2369d1c293acSmrgfi 2370d1c293acSmrgif test -z "$ac_cv_prog_STRIP"; then 2371d1c293acSmrg ac_ct_STRIP=$STRIP 2372d1c293acSmrg # Extract the first word of "strip", so it can be a program name with args. 2373d1c293acSmrgset dummy strip; ac_word=$2 2374d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2375d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; } 2376d1c293acSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2377d1c293acSmrg $as_echo_n "(cached) " >&6 2378d1c293acSmrgelse 2379d1c293acSmrg if test -n "$ac_ct_STRIP"; then 2380d1c293acSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2381d1c293acSmrgelse 2382d1c293acSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383d1c293acSmrgfor as_dir in $PATH 2384d1c293acSmrgdo 2385d1c293acSmrg IFS=$as_save_IFS 2386d1c293acSmrg test -z "$as_dir" && as_dir=. 2387d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 238804449c54Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2389d1c293acSmrg ac_cv_prog_ac_ct_STRIP="strip" 2390d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2391d1c293acSmrg break 2 2392d1c293acSmrg fi 2393d1c293acSmrgdone 2394d1c293acSmrg done 2395d1c293acSmrgIFS=$as_save_IFS 2396d1c293acSmrg 2397d1c293acSmrgfi 2398d1c293acSmrgfi 2399d1c293acSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2400d1c293acSmrgif test -n "$ac_ct_STRIP"; then 2401d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2402d1c293acSmrg$as_echo "$ac_ct_STRIP" >&6; } 2403d1c293acSmrgelse 2404d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2405d1c293acSmrg$as_echo "no" >&6; } 2406d1c293acSmrgfi 2407d1c293acSmrg 2408d1c293acSmrg if test "x$ac_ct_STRIP" = x; then 2409d1c293acSmrg STRIP=":" 2410d1c293acSmrg else 2411d1c293acSmrg case $cross_compiling:$ac_tool_warned in 2412d1c293acSmrgyes:) 2413d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2414d1c293acSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2415d1c293acSmrgac_tool_warned=yes ;; 2416d1c293acSmrgesac 2417d1c293acSmrg STRIP=$ac_ct_STRIP 2418d1c293acSmrg fi 2419d1c293acSmrgelse 2420d1c293acSmrg STRIP="$ac_cv_prog_STRIP" 2421d1c293acSmrgfi 2422d1c293acSmrg 2423d1c293acSmrgfi 2424d1c293acSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2425d1c293acSmrg 2426d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2427d1c293acSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2428d1c293acSmrgif test -z "$MKDIR_P"; then 2429d1c293acSmrg if ${ac_cv_path_mkdir+:} false; then : 2430d1c293acSmrg $as_echo_n "(cached) " >&6 2431d1c293acSmrgelse 2432d1c293acSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2433d1c293acSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2434d1c293acSmrgdo 2435d1c293acSmrg IFS=$as_save_IFS 2436d1c293acSmrg test -z "$as_dir" && as_dir=. 2437d1c293acSmrg for ac_prog in mkdir gmkdir; do 2438d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 243904449c54Smrg as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2440d1c293acSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2441d1c293acSmrg 'mkdir (GNU coreutils) '* | \ 2442d1c293acSmrg 'mkdir (coreutils) '* | \ 2443d1c293acSmrg 'mkdir (fileutils) '4.1*) 2444d1c293acSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2445d1c293acSmrg break 3;; 2446d1c293acSmrg esac 2447d1c293acSmrg done 2448d1c293acSmrg done 2449d1c293acSmrg done 2450d1c293acSmrgIFS=$as_save_IFS 2451d1c293acSmrg 2452d1c293acSmrgfi 2453d1c293acSmrg 2454d1c293acSmrg test -d ./--version && rmdir ./--version 2455d1c293acSmrg if test "${ac_cv_path_mkdir+set}" = set; then 2456d1c293acSmrg MKDIR_P="$ac_cv_path_mkdir -p" 2457d1c293acSmrg else 2458d1c293acSmrg # As a last resort, use the slow shell script. Don't cache a 2459d1c293acSmrg # value for MKDIR_P within a source directory, because that will 2460d1c293acSmrg # break other packages using the cache if that directory is 2461d1c293acSmrg # removed, or if the value is a relative name. 2462d1c293acSmrg MKDIR_P="$ac_install_sh -d" 2463d1c293acSmrg fi 24648440cca4Smrgfi 2465d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2466d1c293acSmrg$as_echo "$MKDIR_P" >&6; } 2467d1c293acSmrg 24688440cca4Smrgfor ac_prog in gawk mawk nawk awk 24698440cca4Smrgdo 24708440cca4Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 24718440cca4Smrgset dummy $ac_prog; ac_word=$2 2472d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2473d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; } 2474d1c293acSmrgif ${ac_cv_prog_AWK+:} false; then : 2475d1c293acSmrg $as_echo_n "(cached) " >&6 24768440cca4Smrgelse 24778440cca4Smrg if test -n "$AWK"; then 24788440cca4Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 24798440cca4Smrgelse 24808440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24818440cca4Smrgfor as_dir in $PATH 24828440cca4Smrgdo 24838440cca4Smrg IFS=$as_save_IFS 24848440cca4Smrg test -z "$as_dir" && as_dir=. 2485d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 248604449c54Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24878440cca4Smrg ac_cv_prog_AWK="$ac_prog" 2488d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24898440cca4Smrg break 2 24908440cca4Smrg fi 24918440cca4Smrgdone 2492d1c293acSmrg done 2493d1c293acSmrgIFS=$as_save_IFS 24948440cca4Smrg 24958440cca4Smrgfi 24968440cca4Smrgfi 24978440cca4SmrgAWK=$ac_cv_prog_AWK 24988440cca4Smrgif test -n "$AWK"; then 2499d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2500d1c293acSmrg$as_echo "$AWK" >&6; } 25018440cca4Smrgelse 2502d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2503d1c293acSmrg$as_echo "no" >&6; } 25048440cca4Smrgfi 25058440cca4Smrg 2506d1c293acSmrg 25078440cca4Smrg test -n "$AWK" && break 25088440cca4Smrgdone 25098440cca4Smrg 2510d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2511d1c293acSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2512d1c293acSmrgset x ${MAKE-make} 2513d1c293acSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2514d1c293acSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2515d1c293acSmrg $as_echo_n "(cached) " >&6 25168440cca4Smrgelse 25178440cca4Smrg cat >conftest.make <<\_ACEOF 2518d1c293acSmrgSHELL = /bin/sh 25198440cca4Smrgall: 2520d1c293acSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 25218440cca4Smrg_ACEOF 2522d1c293acSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2523d1c293acSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2524d1c293acSmrg *@@@%%%=?*=@@@%%%*) 2525d1c293acSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2526d1c293acSmrg *) 2527d1c293acSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 2528d1c293acSmrgesac 25298440cca4Smrgrm -f conftest.make 25308440cca4Smrgfi 2531d1c293acSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2532d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2533d1c293acSmrg$as_echo "yes" >&6; } 25348440cca4Smrg SET_MAKE= 25358440cca4Smrgelse 2536d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2537d1c293acSmrg$as_echo "no" >&6; } 25388440cca4Smrg SET_MAKE="MAKE=${MAKE-make}" 25398440cca4Smrgfi 25408440cca4Smrg 25418440cca4Smrgrm -rf .tst 2>/dev/null 25428440cca4Smrgmkdir .tst 2>/dev/null 25438440cca4Smrgif test -d .tst; then 25448440cca4Smrg am__leading_dot=. 25458440cca4Smrgelse 25468440cca4Smrg am__leading_dot=_ 25478440cca4Smrgfi 25488440cca4Smrgrmdir .tst 2>/dev/null 25498440cca4Smrg 255004449c54Smrg# Check whether --enable-silent-rules was given. 255104449c54Smrgif test "${enable_silent_rules+set}" = set; then : 255204449c54Smrg enableval=$enable_silent_rules; 255304449c54Smrgfi 255404449c54Smrg 255504449c54Smrgcase $enable_silent_rules in # ((( 255604449c54Smrg yes) AM_DEFAULT_VERBOSITY=0;; 255704449c54Smrg no) AM_DEFAULT_VERBOSITY=1;; 255804449c54Smrg *) AM_DEFAULT_VERBOSITY=1;; 255904449c54Smrgesac 256004449c54Smrgam_make=${MAKE-make} 256104449c54Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 256204449c54Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 256304449c54Smrgif ${am_cv_make_support_nested_variables+:} false; then : 256404449c54Smrg $as_echo_n "(cached) " >&6 256504449c54Smrgelse 256604449c54Smrg if $as_echo 'TRUE=$(BAR$(V)) 256704449c54SmrgBAR0=false 256804449c54SmrgBAR1=true 256904449c54SmrgV=1 257004449c54Smrgam__doit: 257104449c54Smrg @$(TRUE) 257204449c54Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 257304449c54Smrg am_cv_make_support_nested_variables=yes 257404449c54Smrgelse 257504449c54Smrg am_cv_make_support_nested_variables=no 257604449c54Smrgfi 257704449c54Smrgfi 257804449c54Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 257904449c54Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 258004449c54Smrgif test $am_cv_make_support_nested_variables = yes; then 258104449c54Smrg AM_V='$(V)' 258204449c54Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 258304449c54Smrgelse 258404449c54Smrg AM_V=$AM_DEFAULT_VERBOSITY 258504449c54Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 258604449c54Smrgfi 258704449c54SmrgAM_BACKSLASH='\' 258804449c54Smrg 2589d1c293acSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2590d1c293acSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2591d1c293acSmrg # is not polluted with repeated "-I." 2592d1c293acSmrg am__isrc=' -I$(srcdir)' 2593d1c293acSmrg # test to see if srcdir already configured 2594d1c293acSmrg if test -f $srcdir/config.status; then 2595d1c293acSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2596d1c293acSmrg fi 25978440cca4Smrgfi 25988440cca4Smrg 25998440cca4Smrg# test whether we have cygpath 26008440cca4Smrgif test -z "$CYGPATH_W"; then 26018440cca4Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 26028440cca4Smrg CYGPATH_W='cygpath -w' 26038440cca4Smrg else 26048440cca4Smrg CYGPATH_W=echo 26058440cca4Smrg fi 26068440cca4Smrgfi 26078440cca4Smrg 26088440cca4Smrg 26098440cca4Smrg# Define the identity of the package. 26108440cca4Smrg PACKAGE='xstdcmap' 261104449c54Smrg VERSION='1.0.4' 26128440cca4Smrg 26138440cca4Smrg 26148440cca4Smrgcat >>confdefs.h <<_ACEOF 26158440cca4Smrg#define PACKAGE "$PACKAGE" 26168440cca4Smrg_ACEOF 26178440cca4Smrg 26188440cca4Smrg 26198440cca4Smrgcat >>confdefs.h <<_ACEOF 26208440cca4Smrg#define VERSION "$VERSION" 26218440cca4Smrg_ACEOF 26228440cca4Smrg 26238440cca4Smrg# Some tools Automake needs. 26248440cca4Smrg 26258440cca4SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 26268440cca4Smrg 26278440cca4Smrg 26288440cca4SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 26298440cca4Smrg 26308440cca4Smrg 26318440cca4SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 26328440cca4Smrg 26338440cca4Smrg 26348440cca4SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 26358440cca4Smrg 26368440cca4Smrg 26378440cca4SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 26388440cca4Smrg 263904449c54Smrg# For better backward compatibility. To be removed once Automake 1.9.x 264004449c54Smrg# dies out for good. For more background, see: 264104449c54Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 264204449c54Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 264304449c54Smrgmkdir_p='$(MKDIR_P)' 26448440cca4Smrg 264504449c54Smrg# We need awk for the "check" target (and possibly the TAP driver). The 264604449c54Smrg# system "awk" is bad on some platforms. 264704449c54Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 264804449c54Smrg# in the wild :-( We should find a proper way to deprecate it ... 264904449c54SmrgAMTAR='$${TAR-tar}' 26508440cca4Smrg 26518440cca4Smrg 265204449c54Smrg# We'll loop over all known methods to create a tar archive until one works. 265304449c54Smrg_am_tools='gnutar pax cpio none' 26548440cca4Smrg 265504449c54Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 26568440cca4Smrg 26578440cca4Smrg 2658d1c293acSmrg 2659d1c293acSmrg 26608440cca4Smrg 26618440cca4Smrg 266204449c54Smrg# POSIX will say in a future version that running "rm -f" with no argument 266304449c54Smrg# is OK; and we want to be able to make that assumption in our Makefile 266404449c54Smrg# recipes. So use an aggressive probe to check that the usage we want is 266504449c54Smrg# actually supported "in the wild" to an acceptable degree. 266604449c54Smrg# See automake bug#10828. 266704449c54Smrg# To make any issue more visible, cause the running configure to be aborted 266804449c54Smrg# by default if the 'rm' program in use doesn't match our expectations; the 266904449c54Smrg# user can still override this though. 267004449c54Smrgif rm -f && rm -fr && rm -rf; then : OK; else 267104449c54Smrg cat >&2 <<'END' 267204449c54SmrgOops! 267304449c54Smrg 267404449c54SmrgYour 'rm' program seems unable to run without file operands specified 267504449c54Smrgon the command line, even when the '-f' option is present. This is contrary 267604449c54Smrgto the behaviour of most rm programs out there, and not conforming with 267704449c54Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 267804449c54Smrg 267904449c54SmrgPlease tell bug-automake@gnu.org about your system, including the value 268004449c54Smrgof your $PATH and any error possibly output before this message. This 268104449c54Smrgcan help us improve future automake versions. 268204449c54Smrg 268304449c54SmrgEND 268404449c54Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 268504449c54Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 268604449c54Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 268704449c54Smrg echo >&2 268804449c54Smrg else 268904449c54Smrg cat >&2 <<'END' 269004449c54SmrgAborting the configuration process, to ensure you take notice of the issue. 269104449c54Smrg 269204449c54SmrgYou can download and install GNU coreutils to get an 'rm' implementation 269304449c54Smrgthat behaves properly: <http://www.gnu.org/software/coreutils/>. 26948440cca4Smrg 269504449c54SmrgIf you want to complete the configuration process using your problematic 269604449c54Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 269704449c54Smrgto "yes", and re-run configure. 269804449c54Smrg 269904449c54SmrgEND 270004449c54Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 270104449c54Smrg fi 270204449c54Smrgfi 27038440cca4Smrg 27048440cca4Smrg 2705d1c293acSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 27068440cca4Smrg 27078440cca4Smrg 27088440cca4Smrg 2709d1c293acSmrg 2710d1c293acSmrg 2711d1c293acSmrg 2712d1c293acSmrg 2713d1c293acSmrg 2714d1c293acSmrg 2715d1c293acSmrg 2716d1c293acSmrg 2717d1c293acSmrgDEPDIR="${am__leading_dot}deps" 2718d1c293acSmrg 2719d1c293acSmrgac_config_commands="$ac_config_commands depfiles" 2720d1c293acSmrg 2721d1c293acSmrg 2722d1c293acSmrgam_make=${MAKE-make} 2723d1c293acSmrgcat > confinc << 'END' 2724d1c293acSmrgam__doit: 2725d1c293acSmrg @echo this is the am__doit target 2726d1c293acSmrg.PHONY: am__doit 2727d1c293acSmrgEND 2728d1c293acSmrg# If we don't find an include directive, just comment out the code. 2729d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2730d1c293acSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2731d1c293acSmrgam__include="#" 2732d1c293acSmrgam__quote= 2733d1c293acSmrg_am_result=none 2734d1c293acSmrg# First try GNU make style include. 2735d1c293acSmrgecho "include confinc" > confmf 273604449c54Smrg# Ignore all kinds of additional output from 'make'. 2737d1c293acSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2738d1c293acSmrg*the\ am__doit\ target*) 2739d1c293acSmrg am__include=include 2740d1c293acSmrg am__quote= 2741d1c293acSmrg _am_result=GNU 2742d1c293acSmrg ;; 2743d1c293acSmrgesac 2744d1c293acSmrg# Now try BSD make style include. 2745d1c293acSmrgif test "$am__include" = "#"; then 2746d1c293acSmrg echo '.include "confinc"' > confmf 2747d1c293acSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 2748d1c293acSmrg *the\ am__doit\ target*) 2749d1c293acSmrg am__include=.include 2750d1c293acSmrg am__quote="\"" 2751d1c293acSmrg _am_result=BSD 2752d1c293acSmrg ;; 2753d1c293acSmrg esac 27548440cca4Smrgfi 27558440cca4Smrg 27568440cca4Smrg 2757d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2758d1c293acSmrg$as_echo "$_am_result" >&6; } 2759d1c293acSmrgrm -f confinc confmf 27608440cca4Smrg 2761d1c293acSmrg# Check whether --enable-dependency-tracking was given. 2762d1c293acSmrgif test "${enable_dependency_tracking+set}" = set; then : 2763d1c293acSmrg enableval=$enable_dependency_tracking; 2764d1c293acSmrgfi 27658440cca4Smrg 2766d1c293acSmrgif test "x$enable_dependency_tracking" != xno; then 2767d1c293acSmrg am_depcomp="$ac_aux_dir/depcomp" 2768d1c293acSmrg AMDEPBACKSLASH='\' 276920915927Smrg am__nodep='_no' 2770d1c293acSmrgfi 2771d1c293acSmrg if test "x$enable_dependency_tracking" != xno; then 2772d1c293acSmrg AMDEP_TRUE= 2773d1c293acSmrg AMDEP_FALSE='#' 2774d1c293acSmrgelse 2775d1c293acSmrg AMDEP_TRUE='#' 2776d1c293acSmrg AMDEP_FALSE= 2777d1c293acSmrgfi 27788440cca4Smrg 27798440cca4Smrg 27808440cca4Smrgac_ext=c 27818440cca4Smrgac_cpp='$CPP $CPPFLAGS' 27828440cca4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27838440cca4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27848440cca4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 27858440cca4Smrgif test -n "$ac_tool_prefix"; then 27868440cca4Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 27878440cca4Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2788d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2789d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; } 2790d1c293acSmrgif ${ac_cv_prog_CC+:} false; then : 2791d1c293acSmrg $as_echo_n "(cached) " >&6 27928440cca4Smrgelse 27938440cca4Smrg if test -n "$CC"; then 27948440cca4Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 27958440cca4Smrgelse 27968440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27978440cca4Smrgfor as_dir in $PATH 27988440cca4Smrgdo 27998440cca4Smrg IFS=$as_save_IFS 28008440cca4Smrg test -z "$as_dir" && as_dir=. 2801d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 280204449c54Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28038440cca4Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2804d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28058440cca4Smrg break 2 28068440cca4Smrg fi 28078440cca4Smrgdone 2808d1c293acSmrg done 2809d1c293acSmrgIFS=$as_save_IFS 28108440cca4Smrg 28118440cca4Smrgfi 28128440cca4Smrgfi 28138440cca4SmrgCC=$ac_cv_prog_CC 28148440cca4Smrgif test -n "$CC"; then 2815d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2816d1c293acSmrg$as_echo "$CC" >&6; } 28178440cca4Smrgelse 2818d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2819d1c293acSmrg$as_echo "no" >&6; } 28208440cca4Smrgfi 28218440cca4Smrg 2822d1c293acSmrg 28238440cca4Smrgfi 28248440cca4Smrgif test -z "$ac_cv_prog_CC"; then 28258440cca4Smrg ac_ct_CC=$CC 28268440cca4Smrg # Extract the first word of "gcc", so it can be a program name with args. 28278440cca4Smrgset dummy gcc; ac_word=$2 2828d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2829d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; } 2830d1c293acSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2831d1c293acSmrg $as_echo_n "(cached) " >&6 28328440cca4Smrgelse 28338440cca4Smrg if test -n "$ac_ct_CC"; then 28348440cca4Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28358440cca4Smrgelse 28368440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28378440cca4Smrgfor as_dir in $PATH 28388440cca4Smrgdo 28398440cca4Smrg IFS=$as_save_IFS 28408440cca4Smrg test -z "$as_dir" && as_dir=. 2841d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 284204449c54Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28438440cca4Smrg ac_cv_prog_ac_ct_CC="gcc" 2844d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28458440cca4Smrg break 2 28468440cca4Smrg fi 28478440cca4Smrgdone 2848d1c293acSmrg done 2849d1c293acSmrgIFS=$as_save_IFS 28508440cca4Smrg 28518440cca4Smrgfi 28528440cca4Smrgfi 28538440cca4Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 28548440cca4Smrgif test -n "$ac_ct_CC"; then 2855d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2856d1c293acSmrg$as_echo "$ac_ct_CC" >&6; } 28578440cca4Smrgelse 2858d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2859d1c293acSmrg$as_echo "no" >&6; } 28608440cca4Smrgfi 28618440cca4Smrg 2862d1c293acSmrg if test "x$ac_ct_CC" = x; then 2863d1c293acSmrg CC="" 2864d1c293acSmrg else 2865d1c293acSmrg case $cross_compiling:$ac_tool_warned in 2866d1c293acSmrgyes:) 2867d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2868d1c293acSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2869d1c293acSmrgac_tool_warned=yes ;; 2870d1c293acSmrgesac 2871d1c293acSmrg CC=$ac_ct_CC 2872d1c293acSmrg fi 28738440cca4Smrgelse 28748440cca4Smrg CC="$ac_cv_prog_CC" 28758440cca4Smrgfi 28768440cca4Smrg 28778440cca4Smrgif test -z "$CC"; then 2878d1c293acSmrg if test -n "$ac_tool_prefix"; then 2879d1c293acSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 28808440cca4Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2881d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2882d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; } 2883d1c293acSmrgif ${ac_cv_prog_CC+:} false; then : 2884d1c293acSmrg $as_echo_n "(cached) " >&6 28858440cca4Smrgelse 28868440cca4Smrg if test -n "$CC"; then 28878440cca4Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 28888440cca4Smrgelse 28898440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28908440cca4Smrgfor as_dir in $PATH 28918440cca4Smrgdo 28928440cca4Smrg IFS=$as_save_IFS 28938440cca4Smrg test -z "$as_dir" && as_dir=. 2894d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 289504449c54Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28968440cca4Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2897d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28988440cca4Smrg break 2 28998440cca4Smrg fi 29008440cca4Smrgdone 2901d1c293acSmrg done 2902d1c293acSmrgIFS=$as_save_IFS 29038440cca4Smrg 29048440cca4Smrgfi 29058440cca4Smrgfi 29068440cca4SmrgCC=$ac_cv_prog_CC 29078440cca4Smrgif test -n "$CC"; then 2908d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2909d1c293acSmrg$as_echo "$CC" >&6; } 29108440cca4Smrgelse 2911d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2912d1c293acSmrg$as_echo "no" >&6; } 29138440cca4Smrgfi 29148440cca4Smrg 29158440cca4Smrg 2916d1c293acSmrg fi 29178440cca4Smrgfi 29188440cca4Smrgif test -z "$CC"; then 29198440cca4Smrg # Extract the first word of "cc", so it can be a program name with args. 29208440cca4Smrgset dummy cc; ac_word=$2 2921d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; } 2923d1c293acSmrgif ${ac_cv_prog_CC+:} false; then : 2924d1c293acSmrg $as_echo_n "(cached) " >&6 29258440cca4Smrgelse 29268440cca4Smrg if test -n "$CC"; then 29278440cca4Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 29288440cca4Smrgelse 29298440cca4Smrg ac_prog_rejected=no 29308440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29318440cca4Smrgfor as_dir in $PATH 29328440cca4Smrgdo 29338440cca4Smrg IFS=$as_save_IFS 29348440cca4Smrg test -z "$as_dir" && as_dir=. 2935d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 293604449c54Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29378440cca4Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 29388440cca4Smrg ac_prog_rejected=yes 29398440cca4Smrg continue 29408440cca4Smrg fi 29418440cca4Smrg ac_cv_prog_CC="cc" 2942d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29438440cca4Smrg break 2 29448440cca4Smrg fi 29458440cca4Smrgdone 2946d1c293acSmrg done 2947d1c293acSmrgIFS=$as_save_IFS 29488440cca4Smrg 29498440cca4Smrgif test $ac_prog_rejected = yes; then 29508440cca4Smrg # We found a bogon in the path, so make sure we never use it. 29518440cca4Smrg set dummy $ac_cv_prog_CC 29528440cca4Smrg shift 29538440cca4Smrg if test $# != 0; then 29548440cca4Smrg # We chose a different compiler from the bogus one. 29558440cca4Smrg # However, it has the same basename, so the bogon will be chosen 29568440cca4Smrg # first if we set CC to just the basename; use the full file name. 29578440cca4Smrg shift 29588440cca4Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 29598440cca4Smrg fi 29608440cca4Smrgfi 29618440cca4Smrgfi 29628440cca4Smrgfi 29638440cca4SmrgCC=$ac_cv_prog_CC 29648440cca4Smrgif test -n "$CC"; then 2965d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2966d1c293acSmrg$as_echo "$CC" >&6; } 29678440cca4Smrgelse 2968d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969d1c293acSmrg$as_echo "no" >&6; } 29708440cca4Smrgfi 29718440cca4Smrg 2972d1c293acSmrg 29738440cca4Smrgfi 29748440cca4Smrgif test -z "$CC"; then 29758440cca4Smrg if test -n "$ac_tool_prefix"; then 2976d1c293acSmrg for ac_prog in cl.exe 29778440cca4Smrg do 29788440cca4Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29798440cca4Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2980d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2981d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; } 2982d1c293acSmrgif ${ac_cv_prog_CC+:} false; then : 2983d1c293acSmrg $as_echo_n "(cached) " >&6 29848440cca4Smrgelse 29858440cca4Smrg if test -n "$CC"; then 29868440cca4Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 29878440cca4Smrgelse 29888440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29898440cca4Smrgfor as_dir in $PATH 29908440cca4Smrgdo 29918440cca4Smrg IFS=$as_save_IFS 29928440cca4Smrg test -z "$as_dir" && as_dir=. 2993d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 299404449c54Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29958440cca4Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2996d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29978440cca4Smrg break 2 29988440cca4Smrg fi 29998440cca4Smrgdone 3000d1c293acSmrg done 3001d1c293acSmrgIFS=$as_save_IFS 30028440cca4Smrg 30038440cca4Smrgfi 30048440cca4Smrgfi 30058440cca4SmrgCC=$ac_cv_prog_CC 30068440cca4Smrgif test -n "$CC"; then 3007d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3008d1c293acSmrg$as_echo "$CC" >&6; } 30098440cca4Smrgelse 3010d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3011d1c293acSmrg$as_echo "no" >&6; } 30128440cca4Smrgfi 30138440cca4Smrg 3014d1c293acSmrg 30158440cca4Smrg test -n "$CC" && break 30168440cca4Smrg done 30178440cca4Smrgfi 30188440cca4Smrgif test -z "$CC"; then 30198440cca4Smrg ac_ct_CC=$CC 3020d1c293acSmrg for ac_prog in cl.exe 30218440cca4Smrgdo 30228440cca4Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 30238440cca4Smrgset dummy $ac_prog; ac_word=$2 3024d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3025d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; } 3026d1c293acSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 3027d1c293acSmrg $as_echo_n "(cached) " >&6 30288440cca4Smrgelse 30298440cca4Smrg if test -n "$ac_ct_CC"; then 30308440cca4Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 30318440cca4Smrgelse 30328440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30338440cca4Smrgfor as_dir in $PATH 30348440cca4Smrgdo 30358440cca4Smrg IFS=$as_save_IFS 30368440cca4Smrg test -z "$as_dir" && as_dir=. 3037d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 303804449c54Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30398440cca4Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 3040d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30418440cca4Smrg break 2 30428440cca4Smrg fi 30438440cca4Smrgdone 3044d1c293acSmrg done 3045d1c293acSmrgIFS=$as_save_IFS 30468440cca4Smrg 30478440cca4Smrgfi 30488440cca4Smrgfi 30498440cca4Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 30508440cca4Smrgif test -n "$ac_ct_CC"; then 3051d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3052d1c293acSmrg$as_echo "$ac_ct_CC" >&6; } 30538440cca4Smrgelse 3054d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3055d1c293acSmrg$as_echo "no" >&6; } 30568440cca4Smrgfi 30578440cca4Smrg 3058d1c293acSmrg 30598440cca4Smrg test -n "$ac_ct_CC" && break 30608440cca4Smrgdone 30618440cca4Smrg 3062d1c293acSmrg if test "x$ac_ct_CC" = x; then 3063d1c293acSmrg CC="" 3064d1c293acSmrg else 3065d1c293acSmrg case $cross_compiling:$ac_tool_warned in 3066d1c293acSmrgyes:) 3067d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3068d1c293acSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3069d1c293acSmrgac_tool_warned=yes ;; 3070d1c293acSmrgesac 3071d1c293acSmrg CC=$ac_ct_CC 3072d1c293acSmrg fi 30738440cca4Smrgfi 30748440cca4Smrg 30758440cca4Smrgfi 30768440cca4Smrg 30778440cca4Smrg 3078d1c293acSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3079d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3080d1c293acSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 3081d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; } 30828440cca4Smrg 30838440cca4Smrg# Provide some information about the compiler. 3084d1c293acSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3085d1c293acSmrgset X $ac_compile 3086d1c293acSmrgac_compiler=$2 3087d1c293acSmrgfor ac_option in --version -v -V -qversion; do 3088d1c293acSmrg { { ac_try="$ac_compiler $ac_option >&5" 3089d1c293acSmrgcase "(($ac_try" in 3090d1c293acSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3091d1c293acSmrg *) ac_try_echo=$ac_try;; 3092d1c293acSmrgesac 3093d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3094d1c293acSmrg$as_echo "$ac_try_echo"; } >&5 3095d1c293acSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30968440cca4Smrg ac_status=$? 3097d1c293acSmrg if test -s conftest.err; then 3098d1c293acSmrg sed '10a\ 3099d1c293acSmrg... rest of stderr output deleted ... 3100d1c293acSmrg 10q' conftest.err >conftest.er1 3101d1c293acSmrg cat conftest.er1 >&5 3102d1c293acSmrg fi 3103d1c293acSmrg rm -f conftest.er1 conftest.err 3104d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3105d1c293acSmrg test $ac_status = 0; } 3106d1c293acSmrgdone 31078440cca4Smrg 3108d1c293acSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 31098440cca4Smrg/* end confdefs.h. */ 31108440cca4Smrg 31118440cca4Smrgint 31128440cca4Smrgmain () 31138440cca4Smrg{ 31148440cca4Smrg 31158440cca4Smrg ; 31168440cca4Smrg return 0; 31178440cca4Smrg} 31188440cca4Smrg_ACEOF 31198440cca4Smrgac_clean_files_save=$ac_clean_files 3120d1c293acSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 31218440cca4Smrg# Try to create an executable without -o first, disregard a.out. 31228440cca4Smrg# It will help us diagnose broken compilers, and finding out an intuition 31238440cca4Smrg# of exeext. 3124d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3125d1c293acSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 3126d1c293acSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3127d1c293acSmrg 3128d1c293acSmrg# The possible output files: 3129d1c293acSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3130d1c293acSmrg 3131d1c293acSmrgac_rmfiles= 3132d1c293acSmrgfor ac_file in $ac_files 3133d1c293acSmrgdo 3134d1c293acSmrg case $ac_file in 3135d1c293acSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3136d1c293acSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3137d1c293acSmrg esac 3138d1c293acSmrgdone 3139d1c293acSmrgrm -f $ac_rmfiles 3140d1c293acSmrg 3141d1c293acSmrgif { { ac_try="$ac_link_default" 3142d1c293acSmrgcase "(($ac_try" in 3143d1c293acSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3144d1c293acSmrg *) ac_try_echo=$ac_try;; 3145d1c293acSmrgesac 3146d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3147d1c293acSmrg$as_echo "$ac_try_echo"; } >&5 3148d1c293acSmrg (eval "$ac_link_default") 2>&5 31498440cca4Smrg ac_status=$? 3150d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3151d1c293acSmrg test $ac_status = 0; }; then : 3152d1c293acSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3153d1c293acSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3154d1c293acSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3155d1c293acSmrg# so that the user can short-circuit this test for compilers unknown to 3156d1c293acSmrg# Autoconf. 3157d1c293acSmrgfor ac_file in $ac_files '' 31588440cca4Smrgdo 31598440cca4Smrg test -f "$ac_file" || continue 31608440cca4Smrg case $ac_file in 3161d1c293acSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 31628440cca4Smrg ;; 31638440cca4Smrg [ab].out ) 31648440cca4Smrg # We found the default executable, but exeext='' is most 31658440cca4Smrg # certainly right. 31668440cca4Smrg break;; 31678440cca4Smrg *.* ) 3168d1c293acSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3169d1c293acSmrg then :; else 3170d1c293acSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3171d1c293acSmrg fi 3172d1c293acSmrg # We set ac_cv_exeext here because the later test for it is not 3173d1c293acSmrg # safe: cross compilers may not add the suffix if given an `-o' 3174d1c293acSmrg # argument, so we may need to know it at that point already. 3175d1c293acSmrg # Even if this section looks crufty: it has the advantage of 3176d1c293acSmrg # actually working. 31778440cca4Smrg break;; 31788440cca4Smrg * ) 31798440cca4Smrg break;; 31808440cca4Smrg esac 31818440cca4Smrgdone 3182d1c293acSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3183d1c293acSmrg 31848440cca4Smrgelse 3185d1c293acSmrg ac_file='' 3186d1c293acSmrgfi 3187d1c293acSmrgif test -z "$ac_file"; then : 3188d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3189d1c293acSmrg$as_echo "no" >&6; } 3190d1c293acSmrg$as_echo "$as_me: failed program was:" >&5 31918440cca4Smrgsed 's/^/| /' conftest.$ac_ext >&5 31928440cca4Smrg 3193d1c293acSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3194d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3195d1c293acSmrgas_fn_error 77 "C compiler cannot create executables 3196d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; } 3197d1c293acSmrgelse 3198d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3199d1c293acSmrg$as_echo "yes" >&6; } 32008440cca4Smrgfi 3201d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3202d1c293acSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3203d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3204d1c293acSmrg$as_echo "$ac_file" >&6; } 32058440cca4Smrgac_exeext=$ac_cv_exeext 32068440cca4Smrg 3207d1c293acSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 32088440cca4Smrgac_clean_files=$ac_clean_files_save 3209d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3210d1c293acSmrg$as_echo_n "checking for suffix of executables... " >&6; } 3211d1c293acSmrgif { { ac_try="$ac_link" 3212d1c293acSmrgcase "(($ac_try" in 3213d1c293acSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3214d1c293acSmrg *) ac_try_echo=$ac_try;; 3215d1c293acSmrgesac 3216d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3217d1c293acSmrg$as_echo "$ac_try_echo"; } >&5 3218d1c293acSmrg (eval "$ac_link") 2>&5 32198440cca4Smrg ac_status=$? 3220d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3221d1c293acSmrg test $ac_status = 0; }; then : 32228440cca4Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 32238440cca4Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 32248440cca4Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 32258440cca4Smrg# `rm'. 32268440cca4Smrgfor ac_file in conftest.exe conftest conftest.*; do 32278440cca4Smrg test -f "$ac_file" || continue 32288440cca4Smrg case $ac_file in 3229d1c293acSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 32308440cca4Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 32318440cca4Smrg break;; 32328440cca4Smrg * ) break;; 32338440cca4Smrg esac 32348440cca4Smrgdone 32358440cca4Smrgelse 3236d1c293acSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3237d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3238d1c293acSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3239d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; } 32408440cca4Smrgfi 3241d1c293acSmrgrm -f conftest conftest$ac_cv_exeext 3242d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3243d1c293acSmrg$as_echo "$ac_cv_exeext" >&6; } 32448440cca4Smrg 32458440cca4Smrgrm -f conftest.$ac_ext 32468440cca4SmrgEXEEXT=$ac_cv_exeext 32478440cca4Smrgac_exeext=$EXEEXT 3248d1c293acSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3249d1c293acSmrg/* end confdefs.h. */ 3250d1c293acSmrg#include <stdio.h> 3251d1c293acSmrgint 3252d1c293acSmrgmain () 3253d1c293acSmrg{ 3254d1c293acSmrgFILE *f = fopen ("conftest.out", "w"); 3255d1c293acSmrg return ferror (f) || fclose (f) != 0; 3256d1c293acSmrg 3257d1c293acSmrg ; 3258d1c293acSmrg return 0; 3259d1c293acSmrg} 32608440cca4Smrg_ACEOF 3261d1c293acSmrgac_clean_files="$ac_clean_files conftest.out" 3262d1c293acSmrg# Check that the compiler produces executables we can run. If not, either 3263d1c293acSmrg# the compiler is broken, or we cross compile. 3264d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3265d1c293acSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3266d1c293acSmrgif test "$cross_compiling" != yes; then 3267d1c293acSmrg { { ac_try="$ac_link" 3268d1c293acSmrgcase "(($ac_try" in 3269d1c293acSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3270d1c293acSmrg *) ac_try_echo=$ac_try;; 3271d1c293acSmrgesac 3272d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3273d1c293acSmrg$as_echo "$ac_try_echo"; } >&5 3274d1c293acSmrg (eval "$ac_link") 2>&5 3275d1c293acSmrg ac_status=$? 3276d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3277d1c293acSmrg test $ac_status = 0; } 3278d1c293acSmrg if { ac_try='./conftest$ac_cv_exeext' 3279d1c293acSmrg { { case "(($ac_try" in 3280d1c293acSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3281d1c293acSmrg *) ac_try_echo=$ac_try;; 3282d1c293acSmrgesac 3283d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3284d1c293acSmrg$as_echo "$ac_try_echo"; } >&5 3285d1c293acSmrg (eval "$ac_try") 2>&5 3286d1c293acSmrg ac_status=$? 3287d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3288d1c293acSmrg test $ac_status = 0; }; }; then 3289d1c293acSmrg cross_compiling=no 3290d1c293acSmrg else 3291d1c293acSmrg if test "$cross_compiling" = maybe; then 3292d1c293acSmrg cross_compiling=yes 3293d1c293acSmrg else 3294d1c293acSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3295d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3296d1c293acSmrgas_fn_error $? "cannot run C compiled programs. 3297d1c293acSmrgIf you meant to cross compile, use \`--host'. 3298d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; } 3299d1c293acSmrg fi 3300d1c293acSmrg fi 3301d1c293acSmrgfi 3302d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3303d1c293acSmrg$as_echo "$cross_compiling" >&6; } 3304d1c293acSmrg 3305d1c293acSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3306d1c293acSmrgac_clean_files=$ac_clean_files_save 3307d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3308d1c293acSmrg$as_echo_n "checking for suffix of object files... " >&6; } 3309d1c293acSmrgif ${ac_cv_objext+:} false; then : 3310d1c293acSmrg $as_echo_n "(cached) " >&6 3311d1c293acSmrgelse 3312d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33138440cca4Smrg/* end confdefs.h. */ 33148440cca4Smrg 33158440cca4Smrgint 33168440cca4Smrgmain () 33178440cca4Smrg{ 33188440cca4Smrg 33198440cca4Smrg ; 33208440cca4Smrg return 0; 33218440cca4Smrg} 33228440cca4Smrg_ACEOF 33238440cca4Smrgrm -f conftest.o conftest.obj 3324d1c293acSmrgif { { ac_try="$ac_compile" 3325d1c293acSmrgcase "(($ac_try" in 3326d1c293acSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3327d1c293acSmrg *) ac_try_echo=$ac_try;; 3328d1c293acSmrgesac 3329d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3330d1c293acSmrg$as_echo "$ac_try_echo"; } >&5 3331d1c293acSmrg (eval "$ac_compile") 2>&5 33328440cca4Smrg ac_status=$? 3333d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3334d1c293acSmrg test $ac_status = 0; }; then : 3335d1c293acSmrg for ac_file in conftest.o conftest.obj conftest.*; do 3336d1c293acSmrg test -f "$ac_file" || continue; 33378440cca4Smrg case $ac_file in 3338d1c293acSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 33398440cca4Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 33408440cca4Smrg break;; 33418440cca4Smrg esac 33428440cca4Smrgdone 33438440cca4Smrgelse 3344d1c293acSmrg $as_echo "$as_me: failed program was:" >&5 33458440cca4Smrgsed 's/^/| /' conftest.$ac_ext >&5 33468440cca4Smrg 3347d1c293acSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3348d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3349d1c293acSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3350d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; } 33518440cca4Smrgfi 33528440cca4Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 33538440cca4Smrgfi 3354d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3355d1c293acSmrg$as_echo "$ac_cv_objext" >&6; } 33568440cca4SmrgOBJEXT=$ac_cv_objext 33578440cca4Smrgac_objext=$OBJEXT 3358d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3359d1c293acSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3360d1c293acSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 3361d1c293acSmrg $as_echo_n "(cached) " >&6 33628440cca4Smrgelse 3363d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33648440cca4Smrg/* end confdefs.h. */ 33658440cca4Smrg 33668440cca4Smrgint 33678440cca4Smrgmain () 33688440cca4Smrg{ 33698440cca4Smrg#ifndef __GNUC__ 33708440cca4Smrg choke me 33718440cca4Smrg#endif 33728440cca4Smrg 33738440cca4Smrg ; 33748440cca4Smrg return 0; 33758440cca4Smrg} 33768440cca4Smrg_ACEOF 3377d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then : 33788440cca4Smrg ac_compiler_gnu=yes 33798440cca4Smrgelse 3380d1c293acSmrg ac_compiler_gnu=no 33818440cca4Smrgfi 3382d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33838440cca4Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 33848440cca4Smrg 33858440cca4Smrgfi 3386d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3387d1c293acSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3388d1c293acSmrgif test $ac_compiler_gnu = yes; then 3389d1c293acSmrg GCC=yes 3390d1c293acSmrgelse 3391d1c293acSmrg GCC= 3392d1c293acSmrgfi 33938440cca4Smrgac_test_CFLAGS=${CFLAGS+set} 33948440cca4Smrgac_save_CFLAGS=$CFLAGS 3395d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3396d1c293acSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3397d1c293acSmrgif ${ac_cv_prog_cc_g+:} false; then : 3398d1c293acSmrg $as_echo_n "(cached) " >&6 3399d1c293acSmrgelse 3400d1c293acSmrg ac_save_c_werror_flag=$ac_c_werror_flag 3401d1c293acSmrg ac_c_werror_flag=yes 3402d1c293acSmrg ac_cv_prog_cc_g=no 3403d1c293acSmrg CFLAGS="-g" 3404d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34058440cca4Smrg/* end confdefs.h. */ 34068440cca4Smrg 34078440cca4Smrgint 34088440cca4Smrgmain () 34098440cca4Smrg{ 34108440cca4Smrg 34118440cca4Smrg ; 34128440cca4Smrg return 0; 34138440cca4Smrg} 34148440cca4Smrg_ACEOF 3415d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then : 34168440cca4Smrg ac_cv_prog_cc_g=yes 34178440cca4Smrgelse 3418d1c293acSmrg CFLAGS="" 3419d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3420d1c293acSmrg/* end confdefs.h. */ 3421d1c293acSmrg 3422d1c293acSmrgint 3423d1c293acSmrgmain () 3424d1c293acSmrg{ 3425d1c293acSmrg 3426d1c293acSmrg ; 3427d1c293acSmrg return 0; 3428d1c293acSmrg} 3429d1c293acSmrg_ACEOF 3430d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then : 34318440cca4Smrg 34328440cca4Smrgelse 3433d1c293acSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3434d1c293acSmrg CFLAGS="-g" 3435d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3436d1c293acSmrg/* end confdefs.h. */ 3437d1c293acSmrg 3438d1c293acSmrgint 3439d1c293acSmrgmain () 3440d1c293acSmrg{ 3441d1c293acSmrg 3442d1c293acSmrg ; 3443d1c293acSmrg return 0; 3444d1c293acSmrg} 3445d1c293acSmrg_ACEOF 3446d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then : 3447d1c293acSmrg ac_cv_prog_cc_g=yes 3448d1c293acSmrgfi 3449d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3450d1c293acSmrgfi 3451d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3452d1c293acSmrgfi 3453d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3454d1c293acSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3455d1c293acSmrgfi 3456d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3457d1c293acSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3458d1c293acSmrgif test "$ac_test_CFLAGS" = set; then 3459d1c293acSmrg CFLAGS=$ac_save_CFLAGS 3460d1c293acSmrgelif test $ac_cv_prog_cc_g = yes; then 3461d1c293acSmrg if test "$GCC" = yes; then 3462d1c293acSmrg CFLAGS="-g -O2" 3463d1c293acSmrg else 3464d1c293acSmrg CFLAGS="-g" 3465d1c293acSmrg fi 3466d1c293acSmrgelse 3467d1c293acSmrg if test "$GCC" = yes; then 34688440cca4Smrg CFLAGS="-O2" 34698440cca4Smrg else 34708440cca4Smrg CFLAGS= 34718440cca4Smrg fi 34728440cca4Smrgfi 3473d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3474d1c293acSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3475d1c293acSmrgif ${ac_cv_prog_cc_c89+:} false; then : 3476d1c293acSmrg $as_echo_n "(cached) " >&6 34778440cca4Smrgelse 3478d1c293acSmrg ac_cv_prog_cc_c89=no 34798440cca4Smrgac_save_CC=$CC 3480d1c293acSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 34818440cca4Smrg/* end confdefs.h. */ 34828440cca4Smrg#include <stdarg.h> 34838440cca4Smrg#include <stdio.h> 348404449c54Smrgstruct stat; 34858440cca4Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34868440cca4Smrgstruct buf { int x; }; 34878440cca4SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 34888440cca4Smrgstatic char *e (p, i) 34898440cca4Smrg char **p; 34908440cca4Smrg int i; 34918440cca4Smrg{ 34928440cca4Smrg return p[i]; 34938440cca4Smrg} 34948440cca4Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 34958440cca4Smrg{ 34968440cca4Smrg char *s; 34978440cca4Smrg va_list v; 34988440cca4Smrg va_start (v,p); 34998440cca4Smrg s = g (p, va_arg (v,int)); 35008440cca4Smrg va_end (v); 35018440cca4Smrg return s; 35028440cca4Smrg} 35038440cca4Smrg 35048440cca4Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 35058440cca4Smrg function prototypes and stuff, but not '\xHH' hex character constants. 35068440cca4Smrg These don't provoke an error unfortunately, instead are silently treated 3507d1c293acSmrg as 'x'. The following induces an error, until -std is added to get 35088440cca4Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 35098440cca4Smrg array size at least. It's necessary to write '\x00'==0 to get something 3510d1c293acSmrg that's true only with -std. */ 35118440cca4Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 35128440cca4Smrg 3513d1c293acSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3514d1c293acSmrg inside strings and character constants. */ 3515d1c293acSmrg#define FOO(x) 'x' 3516d1c293acSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3517d1c293acSmrg 35188440cca4Smrgint test (int i, double x); 35198440cca4Smrgstruct s1 {int (*f) (int a);}; 35208440cca4Smrgstruct s2 {int (*f) (double a);}; 35218440cca4Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 35228440cca4Smrgint argc; 35238440cca4Smrgchar **argv; 35248440cca4Smrgint 35258440cca4Smrgmain () 35268440cca4Smrg{ 35278440cca4Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 35288440cca4Smrg ; 35298440cca4Smrg return 0; 35308440cca4Smrg} 35318440cca4Smrg_ACEOF 3532d1c293acSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3533d1c293acSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35348440cca4Smrgdo 35358440cca4Smrg CC="$ac_save_CC $ac_arg" 3536d1c293acSmrg if ac_fn_c_try_compile "$LINENO"; then : 3537d1c293acSmrg ac_cv_prog_cc_c89=$ac_arg 35388440cca4Smrgfi 3539d1c293acSmrgrm -f core conftest.err conftest.$ac_objext 3540d1c293acSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 35418440cca4Smrgdone 3542d1c293acSmrgrm -f conftest.$ac_ext 35438440cca4SmrgCC=$ac_save_CC 35448440cca4Smrg 35458440cca4Smrgfi 3546d1c293acSmrg# AC_CACHE_VAL 3547d1c293acSmrgcase "x$ac_cv_prog_cc_c89" in 3548d1c293acSmrg x) 3549d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3550d1c293acSmrg$as_echo "none needed" >&6; } ;; 3551d1c293acSmrg xno) 3552d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3553d1c293acSmrg$as_echo "unsupported" >&6; } ;; 35548440cca4Smrg *) 3555d1c293acSmrg CC="$CC $ac_cv_prog_cc_c89" 3556d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3557d1c293acSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35588440cca4Smrgesac 3559d1c293acSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 35608440cca4Smrg 35618440cca4Smrgfi 35628440cca4Smrg 35638440cca4Smrgac_ext=c 35648440cca4Smrgac_cpp='$CPP $CPPFLAGS' 35658440cca4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35668440cca4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35678440cca4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 35688440cca4Smrg 356904449c54Smrgac_ext=c 357004449c54Smrgac_cpp='$CPP $CPPFLAGS' 357104449c54Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 357204449c54Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 357304449c54Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 357404449c54Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 357504449c54Smrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 357604449c54Smrgif ${am_cv_prog_cc_c_o+:} false; then : 357704449c54Smrg $as_echo_n "(cached) " >&6 357804449c54Smrgelse 357904449c54Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 358004449c54Smrg/* end confdefs.h. */ 358104449c54Smrg 358204449c54Smrgint 358304449c54Smrgmain () 358404449c54Smrg{ 358504449c54Smrg 358604449c54Smrg ; 358704449c54Smrg return 0; 358804449c54Smrg} 358904449c54Smrg_ACEOF 359004449c54Smrg # Make sure it works both with $CC and with simple cc. 359104449c54Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 359204449c54Smrg # compilers refuse to overwrite an existing .o file with -o, 359304449c54Smrg # though they will create one. 359404449c54Smrg am_cv_prog_cc_c_o=yes 359504449c54Smrg for am_i in 1 2; do 359604449c54Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 359704449c54Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 359804449c54Smrg ac_status=$? 359904449c54Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 360004449c54Smrg (exit $ac_status); } \ 360104449c54Smrg && test -f conftest2.$ac_objext; then 360204449c54Smrg : OK 360304449c54Smrg else 360404449c54Smrg am_cv_prog_cc_c_o=no 360504449c54Smrg break 360604449c54Smrg fi 360704449c54Smrg done 360804449c54Smrg rm -f core conftest* 360904449c54Smrg unset am_i 361004449c54Smrgfi 361104449c54Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 361204449c54Smrg$as_echo "$am_cv_prog_cc_c_o" >&6; } 361304449c54Smrgif test "$am_cv_prog_cc_c_o" != yes; then 361404449c54Smrg # Losing compiler, so override with the script. 361504449c54Smrg # FIXME: It is wrong to rewrite CC. 361604449c54Smrg # But if we don't then we get into trouble of one sort or another. 361704449c54Smrg # A longer-term fix would be to have automake use am__CC in this case, 361804449c54Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 361904449c54Smrg CC="$am_aux_dir/compile $CC" 362004449c54Smrgfi 362104449c54Smrgac_ext=c 362204449c54Smrgac_cpp='$CPP $CPPFLAGS' 362304449c54Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 362404449c54Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 362504449c54Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 362604449c54Smrg 362704449c54Smrg 36288440cca4Smrgdepcc="$CC" am_compiler_list= 36298440cca4Smrg 3630d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3631d1c293acSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3632d1c293acSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3633d1c293acSmrg $as_echo_n "(cached) " >&6 36348440cca4Smrgelse 36358440cca4Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 36368440cca4Smrg # We make a subdir and do the tests there. Otherwise we can end up 36378440cca4Smrg # making bogus files that we don't know about and never remove. For 36388440cca4Smrg # instance it was reported that on HP-UX the gcc test will end up 363904449c54Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 364004449c54Smrg # in D". 364120915927Smrg rm -rf conftest.dir 36428440cca4Smrg mkdir conftest.dir 36438440cca4Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 36448440cca4Smrg # using a relative directory. 36458440cca4Smrg cp "$am_depcomp" conftest.dir 36468440cca4Smrg cd conftest.dir 36478440cca4Smrg # We will build objects and dependencies in a subdirectory because 36488440cca4Smrg # it helps to detect inapplicable dependency modes. For instance 36498440cca4Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 36508440cca4Smrg # side effect of compilation, but ICC will put the dependencies in 36518440cca4Smrg # the current directory while Tru64 will put them in the object 36528440cca4Smrg # directory. 36538440cca4Smrg mkdir sub 36548440cca4Smrg 36558440cca4Smrg am_cv_CC_dependencies_compiler_type=none 36568440cca4Smrg if test "$am_compiler_list" = ""; then 36578440cca4Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 36588440cca4Smrg fi 3659d1c293acSmrg am__universal=false 3660d1c293acSmrg case " $depcc " in #( 3661d1c293acSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3662d1c293acSmrg esac 3663d1c293acSmrg 36648440cca4Smrg for depmode in $am_compiler_list; do 36658440cca4Smrg # Setup a source with many dependencies, because some compilers 36668440cca4Smrg # like to wrap large dependency lists on column 80 (with \), and 36678440cca4Smrg # we should not choose a depcomp mode which is confused by this. 36688440cca4Smrg # 36698440cca4Smrg # We need to recreate these files for each test, as the compiler may 36708440cca4Smrg # overwrite some of them when testing with obscure command lines. 36718440cca4Smrg # This happens at least with the AIX C compiler. 36728440cca4Smrg : > sub/conftest.c 36738440cca4Smrg for i in 1 2 3 4 5 6; do 36748440cca4Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 367504449c54Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 367604449c54Smrg # Solaris 10 /bin/sh. 367704449c54Smrg echo '/* dummy */' > sub/conftst$i.h 36788440cca4Smrg done 36798440cca4Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 36808440cca4Smrg 368104449c54Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 3682d1c293acSmrg # mode. It turns out that the SunPro C++ compiler does not properly 368304449c54Smrg # handle '-M -o', and we need to detect this. Also, some Intel 368404449c54Smrg # versions had trouble with output in subdirs. 3685d1c293acSmrg am__obj=sub/conftest.${OBJEXT-o} 3686d1c293acSmrg am__minus_obj="-o $am__obj" 36878440cca4Smrg case $depmode in 3688d1c293acSmrg gcc) 3689d1c293acSmrg # This depmode causes a compiler race in universal mode. 3690d1c293acSmrg test "$am__universal" = false || continue 3691d1c293acSmrg ;; 36928440cca4Smrg nosideeffect) 369304449c54Smrg # After this tag, mechanisms are not by side-effect, so they'll 369404449c54Smrg # only be used when explicitly requested. 36958440cca4Smrg if test "x$enable_dependency_tracking" = xyes; then 36968440cca4Smrg continue 36978440cca4Smrg else 36988440cca4Smrg break 36998440cca4Smrg fi 37008440cca4Smrg ;; 370120915927Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 370204449c54Smrg # This compiler won't grok '-c -o', but also, the minuso test has 3703d1c293acSmrg # not run yet. These depmodes are late enough in the game, and 3704d1c293acSmrg # so weak that their functioning should not be impacted. 3705d1c293acSmrg am__obj=conftest.${OBJEXT-o} 3706d1c293acSmrg am__minus_obj= 3707d1c293acSmrg ;; 37088440cca4Smrg none) break ;; 37098440cca4Smrg esac 37108440cca4Smrg if depmode=$depmode \ 3711d1c293acSmrg source=sub/conftest.c object=$am__obj \ 37128440cca4Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3713d1c293acSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 37148440cca4Smrg >/dev/null 2>conftest.err && 3715d1c293acSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 37168440cca4Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3717d1c293acSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 37188440cca4Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 37198440cca4Smrg # icc doesn't choke on unknown options, it will just issue warnings 3720d1c293acSmrg # or remarks (even with -Werror). So we grep stderr for any message 3721d1c293acSmrg # that says an option was ignored or not supported. 3722d1c293acSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3723d1c293acSmrg # icc: Command line warning: ignoring option '-M'; no argument required 3724d1c293acSmrg # The diagnosis changed in icc 8.0: 3725d1c293acSmrg # icc: Command line remark: option '-MP' not supported 3726d1c293acSmrg if (grep 'ignoring option' conftest.err || 3727d1c293acSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 37288440cca4Smrg am_cv_CC_dependencies_compiler_type=$depmode 37298440cca4Smrg break 37308440cca4Smrg fi 37318440cca4Smrg fi 37328440cca4Smrg done 37338440cca4Smrg 37348440cca4Smrg cd .. 37358440cca4Smrg rm -rf conftest.dir 37368440cca4Smrgelse 37378440cca4Smrg am_cv_CC_dependencies_compiler_type=none 37388440cca4Smrgfi 37398440cca4Smrg 37408440cca4Smrgfi 3741d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3742d1c293acSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 37438440cca4SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 37448440cca4Smrg 3745d1c293acSmrg if 37468440cca4Smrg test "x$enable_dependency_tracking" != xno \ 37478440cca4Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 37488440cca4Smrg am__fastdepCC_TRUE= 37498440cca4Smrg am__fastdepCC_FALSE='#' 37508440cca4Smrgelse 37518440cca4Smrg am__fastdepCC_TRUE='#' 37528440cca4Smrg am__fastdepCC_FALSE= 37538440cca4Smrgfi 37548440cca4Smrg 37558440cca4Smrg 3756d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3757d1c293acSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3758d1c293acSmrgif ${ac_cv_prog_cc_c99+:} false; then : 3759d1c293acSmrg $as_echo_n "(cached) " >&6 3760d1c293acSmrgelse 3761d1c293acSmrg ac_cv_prog_cc_c99=no 3762d1c293acSmrgac_save_CC=$CC 3763d1c293acSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3764d1c293acSmrg/* end confdefs.h. */ 3765d1c293acSmrg#include <stdarg.h> 3766d1c293acSmrg#include <stdbool.h> 3767d1c293acSmrg#include <stdlib.h> 3768d1c293acSmrg#include <wchar.h> 3769d1c293acSmrg#include <stdio.h> 3770d1c293acSmrg 3771d1c293acSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 3772d1c293acSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 3773d1c293acSmrg#define showlist(...) puts (#__VA_ARGS__) 3774d1c293acSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3775d1c293acSmrgstatic void 3776d1c293acSmrgtest_varargs_macros (void) 3777d1c293acSmrg{ 3778d1c293acSmrg int x = 1234; 3779d1c293acSmrg int y = 5678; 3780d1c293acSmrg debug ("Flag"); 3781d1c293acSmrg debug ("X = %d\n", x); 3782d1c293acSmrg showlist (The first, second, and third items.); 3783d1c293acSmrg report (x>y, "x is %d but y is %d", x, y); 3784d1c293acSmrg} 3785d1c293acSmrg 3786d1c293acSmrg// Check long long types. 3787d1c293acSmrg#define BIG64 18446744073709551615ull 3788d1c293acSmrg#define BIG32 4294967295ul 3789d1c293acSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3790d1c293acSmrg#if !BIG_OK 3791d1c293acSmrg your preprocessor is broken; 3792d1c293acSmrg#endif 3793d1c293acSmrg#if BIG_OK 3794d1c293acSmrg#else 3795d1c293acSmrg your preprocessor is broken; 3796d1c293acSmrg#endif 3797d1c293acSmrgstatic long long int bignum = -9223372036854775807LL; 3798d1c293acSmrgstatic unsigned long long int ubignum = BIG64; 3799d1c293acSmrg 3800d1c293acSmrgstruct incomplete_array 3801d1c293acSmrg{ 3802d1c293acSmrg int datasize; 3803d1c293acSmrg double data[]; 3804d1c293acSmrg}; 3805d1c293acSmrg 3806d1c293acSmrgstruct named_init { 3807d1c293acSmrg int number; 3808d1c293acSmrg const wchar_t *name; 3809d1c293acSmrg double average; 3810d1c293acSmrg}; 3811d1c293acSmrg 3812d1c293acSmrgtypedef const char *ccp; 3813d1c293acSmrg 3814d1c293acSmrgstatic inline int 3815d1c293acSmrgtest_restrict (ccp restrict text) 3816d1c293acSmrg{ 3817d1c293acSmrg // See if C++-style comments work. 3818d1c293acSmrg // Iterate through items via the restricted pointer. 3819d1c293acSmrg // Also check for declarations in for loops. 3820d1c293acSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3821d1c293acSmrg continue; 3822d1c293acSmrg return 0; 3823d1c293acSmrg} 3824d1c293acSmrg 3825d1c293acSmrg// Check varargs and va_copy. 3826d1c293acSmrgstatic void 3827d1c293acSmrgtest_varargs (const char *format, ...) 3828d1c293acSmrg{ 3829d1c293acSmrg va_list args; 3830d1c293acSmrg va_start (args, format); 3831d1c293acSmrg va_list args_copy; 3832d1c293acSmrg va_copy (args_copy, args); 3833d1c293acSmrg 3834d1c293acSmrg const char *str; 3835d1c293acSmrg int number; 3836d1c293acSmrg float fnumber; 3837d1c293acSmrg 3838d1c293acSmrg while (*format) 3839d1c293acSmrg { 3840d1c293acSmrg switch (*format++) 3841d1c293acSmrg { 3842d1c293acSmrg case 's': // string 3843d1c293acSmrg str = va_arg (args_copy, const char *); 3844d1c293acSmrg break; 3845d1c293acSmrg case 'd': // int 3846d1c293acSmrg number = va_arg (args_copy, int); 3847d1c293acSmrg break; 3848d1c293acSmrg case 'f': // float 3849d1c293acSmrg fnumber = va_arg (args_copy, double); 3850d1c293acSmrg break; 3851d1c293acSmrg default: 3852d1c293acSmrg break; 3853d1c293acSmrg } 3854d1c293acSmrg } 3855d1c293acSmrg va_end (args_copy); 3856d1c293acSmrg va_end (args); 3857d1c293acSmrg} 3858d1c293acSmrg 3859d1c293acSmrgint 3860d1c293acSmrgmain () 3861d1c293acSmrg{ 3862d1c293acSmrg 3863d1c293acSmrg // Check bool. 3864d1c293acSmrg _Bool success = false; 3865d1c293acSmrg 3866d1c293acSmrg // Check restrict. 3867d1c293acSmrg if (test_restrict ("String literal") == 0) 3868d1c293acSmrg success = true; 3869d1c293acSmrg char *restrict newvar = "Another string"; 3870d1c293acSmrg 3871d1c293acSmrg // Check varargs. 3872d1c293acSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 3873d1c293acSmrg test_varargs_macros (); 3874d1c293acSmrg 3875d1c293acSmrg // Check flexible array members. 3876d1c293acSmrg struct incomplete_array *ia = 3877d1c293acSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3878d1c293acSmrg ia->datasize = 10; 3879d1c293acSmrg for (int i = 0; i < ia->datasize; ++i) 3880d1c293acSmrg ia->data[i] = i * 1.234; 3881d1c293acSmrg 3882d1c293acSmrg // Check named initializers. 3883d1c293acSmrg struct named_init ni = { 3884d1c293acSmrg .number = 34, 3885d1c293acSmrg .name = L"Test wide string", 3886d1c293acSmrg .average = 543.34343, 3887d1c293acSmrg }; 3888d1c293acSmrg 3889d1c293acSmrg ni.number = 58; 3890d1c293acSmrg 3891d1c293acSmrg int dynamic_array[ni.number]; 3892d1c293acSmrg dynamic_array[ni.number - 1] = 543; 3893d1c293acSmrg 3894d1c293acSmrg // work around unused variable warnings 3895d1c293acSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3896d1c293acSmrg || dynamic_array[ni.number - 1] != 543); 3897d1c293acSmrg 3898d1c293acSmrg ; 3899d1c293acSmrg return 0; 3900d1c293acSmrg} 3901d1c293acSmrg_ACEOF 390204449c54Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3903d1c293acSmrgdo 3904d1c293acSmrg CC="$ac_save_CC $ac_arg" 3905d1c293acSmrg if ac_fn_c_try_compile "$LINENO"; then : 3906d1c293acSmrg ac_cv_prog_cc_c99=$ac_arg 3907d1c293acSmrgfi 3908d1c293acSmrgrm -f core conftest.err conftest.$ac_objext 3909d1c293acSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 3910d1c293acSmrgdone 3911d1c293acSmrgrm -f conftest.$ac_ext 3912d1c293acSmrgCC=$ac_save_CC 3913d1c293acSmrg 3914d1c293acSmrgfi 3915d1c293acSmrg# AC_CACHE_VAL 3916d1c293acSmrgcase "x$ac_cv_prog_cc_c99" in 3917d1c293acSmrg x) 3918d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3919d1c293acSmrg$as_echo "none needed" >&6; } ;; 3920d1c293acSmrg xno) 3921d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3922d1c293acSmrg$as_echo "unsupported" >&6; } ;; 3923d1c293acSmrg *) 3924d1c293acSmrg CC="$CC $ac_cv_prog_cc_c99" 3925d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3926d1c293acSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3927d1c293acSmrgesac 3928d1c293acSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 3929d1c293acSmrg 3930d1c293acSmrgfi 3931d1c293acSmrg 3932d1c293acSmrg 3933d1c293acSmrg 3934d1c293acSmrgac_ext=c 3935d1c293acSmrgac_cpp='$CPP $CPPFLAGS' 3936d1c293acSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3937d1c293acSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3938d1c293acSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3939d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3940d1c293acSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3941d1c293acSmrg# On Suns, sometimes $CPP names a directory. 3942d1c293acSmrgif test -n "$CPP" && test -d "$CPP"; then 3943d1c293acSmrg CPP= 3944d1c293acSmrgfi 3945d1c293acSmrgif test -z "$CPP"; then 3946d1c293acSmrg if ${ac_cv_prog_CPP+:} false; then : 3947d1c293acSmrg $as_echo_n "(cached) " >&6 3948d1c293acSmrgelse 3949d1c293acSmrg # Double quotes because CPP needs to be expanded 3950d1c293acSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3951d1c293acSmrg do 3952d1c293acSmrg ac_preproc_ok=false 3953d1c293acSmrgfor ac_c_preproc_warn_flag in '' yes 3954d1c293acSmrgdo 3955d1c293acSmrg # Use a header file that comes with gcc, so configuring glibc 3956d1c293acSmrg # with a fresh cross-compiler works. 3957d1c293acSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3958d1c293acSmrg # <limits.h> exists even on freestanding compilers. 3959d1c293acSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 3960d1c293acSmrg # not just through cpp. "Syntax error" is here to catch this case. 3961d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3962d1c293acSmrg/* end confdefs.h. */ 3963d1c293acSmrg#ifdef __STDC__ 3964d1c293acSmrg# include <limits.h> 3965d1c293acSmrg#else 3966d1c293acSmrg# include <assert.h> 3967d1c293acSmrg#endif 3968d1c293acSmrg Syntax error 3969d1c293acSmrg_ACEOF 3970d1c293acSmrgif ac_fn_c_try_cpp "$LINENO"; then : 3971d1c293acSmrg 3972d1c293acSmrgelse 3973d1c293acSmrg # Broken: fails on valid input. 3974d1c293acSmrgcontinue 3975d1c293acSmrgfi 3976d1c293acSmrgrm -f conftest.err conftest.i conftest.$ac_ext 3977d1c293acSmrg 3978d1c293acSmrg # OK, works on sane cases. Now check whether nonexistent headers 3979d1c293acSmrg # can be detected and how. 3980d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3981d1c293acSmrg/* end confdefs.h. */ 3982d1c293acSmrg#include <ac_nonexistent.h> 3983d1c293acSmrg_ACEOF 3984d1c293acSmrgif ac_fn_c_try_cpp "$LINENO"; then : 3985d1c293acSmrg # Broken: success on invalid input. 3986d1c293acSmrgcontinue 3987d1c293acSmrgelse 3988d1c293acSmrg # Passes both tests. 3989d1c293acSmrgac_preproc_ok=: 3990d1c293acSmrgbreak 3991d1c293acSmrgfi 3992d1c293acSmrgrm -f conftest.err conftest.i conftest.$ac_ext 3993d1c293acSmrg 3994d1c293acSmrgdone 3995d1c293acSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3996d1c293acSmrgrm -f conftest.i conftest.err conftest.$ac_ext 3997d1c293acSmrgif $ac_preproc_ok; then : 3998d1c293acSmrg break 3999d1c293acSmrgfi 4000d1c293acSmrg 4001d1c293acSmrg done 4002d1c293acSmrg ac_cv_prog_CPP=$CPP 4003d1c293acSmrg 4004d1c293acSmrgfi 4005d1c293acSmrg CPP=$ac_cv_prog_CPP 40068440cca4Smrgelse 4007d1c293acSmrg ac_cv_prog_CPP=$CPP 4008d1c293acSmrgfi 4009d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4010d1c293acSmrg$as_echo "$CPP" >&6; } 4011d1c293acSmrgac_preproc_ok=false 4012d1c293acSmrgfor ac_c_preproc_warn_flag in '' yes 4013d1c293acSmrgdo 4014d1c293acSmrg # Use a header file that comes with gcc, so configuring glibc 4015d1c293acSmrg # with a fresh cross-compiler works. 4016d1c293acSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4017d1c293acSmrg # <limits.h> exists even on freestanding compilers. 4018d1c293acSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 4019d1c293acSmrg # not just through cpp. "Syntax error" is here to catch this case. 4020d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4021d1c293acSmrg/* end confdefs.h. */ 4022d1c293acSmrg#ifdef __STDC__ 4023d1c293acSmrg# include <limits.h> 4024d1c293acSmrg#else 4025d1c293acSmrg# include <assert.h> 4026d1c293acSmrg#endif 4027d1c293acSmrg Syntax error 4028d1c293acSmrg_ACEOF 4029d1c293acSmrgif ac_fn_c_try_cpp "$LINENO"; then : 4030d1c293acSmrg 4031d1c293acSmrgelse 4032d1c293acSmrg # Broken: fails on valid input. 4033d1c293acSmrgcontinue 4034d1c293acSmrgfi 4035d1c293acSmrgrm -f conftest.err conftest.i conftest.$ac_ext 4036d1c293acSmrg 4037d1c293acSmrg # OK, works on sane cases. Now check whether nonexistent headers 4038d1c293acSmrg # can be detected and how. 4039d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4040d1c293acSmrg/* end confdefs.h. */ 4041d1c293acSmrg#include <ac_nonexistent.h> 4042d1c293acSmrg_ACEOF 4043d1c293acSmrgif ac_fn_c_try_cpp "$LINENO"; then : 4044d1c293acSmrg # Broken: success on invalid input. 4045d1c293acSmrgcontinue 4046d1c293acSmrgelse 4047d1c293acSmrg # Passes both tests. 4048d1c293acSmrgac_preproc_ok=: 4049d1c293acSmrgbreak 4050d1c293acSmrgfi 4051d1c293acSmrgrm -f conftest.err conftest.i conftest.$ac_ext 4052d1c293acSmrg 4053d1c293acSmrgdone 4054d1c293acSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4055d1c293acSmrgrm -f conftest.i conftest.err conftest.$ac_ext 4056d1c293acSmrgif $ac_preproc_ok; then : 4057d1c293acSmrg 4058d1c293acSmrgelse 4059d1c293acSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4060d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4061d1c293acSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4062d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; } 4063d1c293acSmrgfi 4064d1c293acSmrg 4065d1c293acSmrgac_ext=c 4066d1c293acSmrgac_cpp='$CPP $CPPFLAGS' 4067d1c293acSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4068d1c293acSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4069d1c293acSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4070d1c293acSmrg 4071d1c293acSmrg 4072d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4073d1c293acSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4074d1c293acSmrgif ${ac_cv_path_GREP+:} false; then : 4075d1c293acSmrg $as_echo_n "(cached) " >&6 4076d1c293acSmrgelse 4077d1c293acSmrg if test -z "$GREP"; then 4078d1c293acSmrg ac_path_GREP_found=false 4079d1c293acSmrg # Loop through the user's path and test for each of PROGNAME-LIST 40808440cca4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4081d1c293acSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 40828440cca4Smrgdo 40838440cca4Smrg IFS=$as_save_IFS 40848440cca4Smrg test -z "$as_dir" && as_dir=. 4085d1c293acSmrg for ac_prog in grep ggrep; do 4086d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4087d1c293acSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 408804449c54Smrg as_fn_executable_p "$ac_path_GREP" || continue 4089d1c293acSmrg# Check for GNU ac_path_GREP and select it if it is found. 4090d1c293acSmrg # Check for GNU $ac_path_GREP 4091d1c293acSmrgcase `"$ac_path_GREP" --version 2>&1` in 4092d1c293acSmrg*GNU*) 4093d1c293acSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4094d1c293acSmrg*) 4095d1c293acSmrg ac_count=0 4096d1c293acSmrg $as_echo_n 0123456789 >"conftest.in" 4097d1c293acSmrg while : 4098d1c293acSmrg do 4099d1c293acSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4100d1c293acSmrg mv "conftest.tmp" "conftest.in" 4101d1c293acSmrg cp "conftest.in" "conftest.nl" 4102d1c293acSmrg $as_echo 'GREP' >> "conftest.nl" 4103d1c293acSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4104d1c293acSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4105d1c293acSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4106d1c293acSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4107d1c293acSmrg # Best one so far, save it but keep looking for a better one 4108d1c293acSmrg ac_cv_path_GREP="$ac_path_GREP" 4109d1c293acSmrg ac_path_GREP_max=$ac_count 4110d1c293acSmrg fi 4111d1c293acSmrg # 10*(2^10) chars as input seems more than enough 4112d1c293acSmrg test $ac_count -gt 10 && break 4113d1c293acSmrg done 4114d1c293acSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 41158440cca4Smrgesac 41168440cca4Smrg 4117d1c293acSmrg $ac_path_GREP_found && break 3 4118d1c293acSmrg done 4119d1c293acSmrg done 4120d1c293acSmrg done 4121d1c293acSmrgIFS=$as_save_IFS 4122d1c293acSmrg if test -z "$ac_cv_path_GREP"; then 4123d1c293acSmrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4124d1c293acSmrg fi 4125d1c293acSmrgelse 4126d1c293acSmrg ac_cv_path_GREP=$GREP 4127d1c293acSmrgfi 41288440cca4Smrg 41298440cca4Smrgfi 4130d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4131d1c293acSmrg$as_echo "$ac_cv_path_GREP" >&6; } 4132d1c293acSmrg GREP="$ac_cv_path_GREP" 4133d1c293acSmrg 4134d1c293acSmrg 4135d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4136d1c293acSmrg$as_echo_n "checking for egrep... " >&6; } 4137d1c293acSmrgif ${ac_cv_path_EGREP+:} false; then : 4138d1c293acSmrg $as_echo_n "(cached) " >&6 4139d1c293acSmrgelse 4140d1c293acSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4141d1c293acSmrg then ac_cv_path_EGREP="$GREP -E" 4142d1c293acSmrg else 4143d1c293acSmrg if test -z "$EGREP"; then 4144d1c293acSmrg ac_path_EGREP_found=false 4145d1c293acSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4146d1c293acSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4147d1c293acSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4148d1c293acSmrgdo 4149d1c293acSmrg IFS=$as_save_IFS 4150d1c293acSmrg test -z "$as_dir" && as_dir=. 4151d1c293acSmrg for ac_prog in egrep; do 4152d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4153d1c293acSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 415404449c54Smrg as_fn_executable_p "$ac_path_EGREP" || continue 4155d1c293acSmrg# Check for GNU ac_path_EGREP and select it if it is found. 4156d1c293acSmrg # Check for GNU $ac_path_EGREP 4157d1c293acSmrgcase `"$ac_path_EGREP" --version 2>&1` in 4158d1c293acSmrg*GNU*) 4159d1c293acSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4160d1c293acSmrg*) 4161d1c293acSmrg ac_count=0 4162d1c293acSmrg $as_echo_n 0123456789 >"conftest.in" 4163d1c293acSmrg while : 4164d1c293acSmrg do 4165d1c293acSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4166d1c293acSmrg mv "conftest.tmp" "conftest.in" 4167d1c293acSmrg cp "conftest.in" "conftest.nl" 4168d1c293acSmrg $as_echo 'EGREP' >> "conftest.nl" 4169d1c293acSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4170d1c293acSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4171d1c293acSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4172d1c293acSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4173d1c293acSmrg # Best one so far, save it but keep looking for a better one 4174d1c293acSmrg ac_cv_path_EGREP="$ac_path_EGREP" 4175d1c293acSmrg ac_path_EGREP_max=$ac_count 4176d1c293acSmrg fi 4177d1c293acSmrg # 10*(2^10) chars as input seems more than enough 4178d1c293acSmrg test $ac_count -gt 10 && break 4179d1c293acSmrg done 4180d1c293acSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4181d1c293acSmrgesac 4182d1c293acSmrg 4183d1c293acSmrg $ac_path_EGREP_found && break 3 4184d1c293acSmrg done 4185d1c293acSmrg done 4186d1c293acSmrg done 4187d1c293acSmrgIFS=$as_save_IFS 4188d1c293acSmrg if test -z "$ac_cv_path_EGREP"; then 4189d1c293acSmrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 41908440cca4Smrg fi 4191d1c293acSmrgelse 4192d1c293acSmrg ac_cv_path_EGREP=$EGREP 41938440cca4Smrgfi 41948440cca4Smrg 4195d1c293acSmrg fi 4196d1c293acSmrgfi 4197d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4198d1c293acSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 4199d1c293acSmrg EGREP="$ac_cv_path_EGREP" 42008440cca4Smrg 42018440cca4Smrg 4202d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4203d1c293acSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 4204d1c293acSmrgif ${ac_cv_header_stdc+:} false; then : 4205d1c293acSmrg $as_echo_n "(cached) " >&6 4206d1c293acSmrgelse 4207d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4208d1c293acSmrg/* end confdefs.h. */ 4209d1c293acSmrg#include <stdlib.h> 4210d1c293acSmrg#include <stdarg.h> 4211d1c293acSmrg#include <string.h> 4212d1c293acSmrg#include <float.h> 4213d1c293acSmrg 4214d1c293acSmrgint 4215d1c293acSmrgmain () 4216d1c293acSmrg{ 4217d1c293acSmrg 4218d1c293acSmrg ; 4219d1c293acSmrg return 0; 4220d1c293acSmrg} 4221d1c293acSmrg_ACEOF 4222d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then : 4223d1c293acSmrg ac_cv_header_stdc=yes 4224d1c293acSmrgelse 4225d1c293acSmrg ac_cv_header_stdc=no 4226d1c293acSmrgfi 4227d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4228d1c293acSmrg 4229d1c293acSmrgif test $ac_cv_header_stdc = yes; then 4230d1c293acSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4231d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4232d1c293acSmrg/* end confdefs.h. */ 4233d1c293acSmrg#include <string.h> 4234d1c293acSmrg 4235d1c293acSmrg_ACEOF 4236d1c293acSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4237d1c293acSmrg $EGREP "memchr" >/dev/null 2>&1; then : 4238d1c293acSmrg 4239d1c293acSmrgelse 4240d1c293acSmrg ac_cv_header_stdc=no 4241d1c293acSmrgfi 4242d1c293acSmrgrm -f conftest* 4243d1c293acSmrg 4244d1c293acSmrgfi 4245d1c293acSmrg 4246d1c293acSmrgif test $ac_cv_header_stdc = yes; then 4247d1c293acSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4248d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249d1c293acSmrg/* end confdefs.h. */ 4250d1c293acSmrg#include <stdlib.h> 4251d1c293acSmrg 4252d1c293acSmrg_ACEOF 4253d1c293acSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4254d1c293acSmrg $EGREP "free" >/dev/null 2>&1; then : 4255d1c293acSmrg 4256d1c293acSmrgelse 4257d1c293acSmrg ac_cv_header_stdc=no 4258d1c293acSmrgfi 4259d1c293acSmrgrm -f conftest* 4260d1c293acSmrg 4261d1c293acSmrgfi 4262d1c293acSmrg 4263d1c293acSmrgif test $ac_cv_header_stdc = yes; then 4264d1c293acSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4265d1c293acSmrg if test "$cross_compiling" = yes; then : 4266d1c293acSmrg : 4267d1c293acSmrgelse 4268d1c293acSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4269d1c293acSmrg/* end confdefs.h. */ 4270d1c293acSmrg#include <ctype.h> 4271d1c293acSmrg#include <stdlib.h> 4272d1c293acSmrg#if ((' ' & 0x0FF) == 0x020) 4273d1c293acSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4274d1c293acSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4275d1c293acSmrg#else 4276d1c293acSmrg# define ISLOWER(c) \ 4277d1c293acSmrg (('a' <= (c) && (c) <= 'i') \ 4278d1c293acSmrg || ('j' <= (c) && (c) <= 'r') \ 4279d1c293acSmrg || ('s' <= (c) && (c) <= 'z')) 4280d1c293acSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4281d1c293acSmrg#endif 4282d1c293acSmrg 4283d1c293acSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4284d1c293acSmrgint 4285d1c293acSmrgmain () 4286d1c293acSmrg{ 4287d1c293acSmrg int i; 4288d1c293acSmrg for (i = 0; i < 256; i++) 4289d1c293acSmrg if (XOR (islower (i), ISLOWER (i)) 4290d1c293acSmrg || toupper (i) != TOUPPER (i)) 4291d1c293acSmrg return 2; 4292d1c293acSmrg return 0; 4293d1c293acSmrg} 4294d1c293acSmrg_ACEOF 4295d1c293acSmrgif ac_fn_c_try_run "$LINENO"; then : 4296d1c293acSmrg 4297d1c293acSmrgelse 4298d1c293acSmrg ac_cv_header_stdc=no 4299d1c293acSmrgfi 4300d1c293acSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4301d1c293acSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 4302d1c293acSmrgfi 4303d1c293acSmrg 4304d1c293acSmrgfi 4305d1c293acSmrgfi 4306d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4307d1c293acSmrg$as_echo "$ac_cv_header_stdc" >&6; } 4308d1c293acSmrgif test $ac_cv_header_stdc = yes; then 4309d1c293acSmrg 4310d1c293acSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4311d1c293acSmrg 4312d1c293acSmrgfi 4313d1c293acSmrg 4314d1c293acSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4315d1c293acSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4316d1c293acSmrg inttypes.h stdint.h unistd.h 4317d1c293acSmrgdo : 4318d1c293acSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4319d1c293acSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4320d1c293acSmrg" 4321d1c293acSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4322d1c293acSmrg cat >>confdefs.h <<_ACEOF 4323d1c293acSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4324d1c293acSmrg_ACEOF 4325d1c293acSmrg 4326d1c293acSmrgfi 4327d1c293acSmrg 4328d1c293acSmrgdone 43298440cca4Smrg 43308440cca4Smrg 43318440cca4Smrg 43328440cca4Smrg 433320915927Smrg 433420915927Smrg 433520915927Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 433620915927Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 433720915927Smrg CLANGCC="yes" 433820915927Smrgelse 433920915927Smrg CLANGCC="no" 434020915927Smrgfi 434120915927Smrg 434220915927Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 434320915927Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 434420915927Smrg INTELCC="yes" 434520915927Smrgelse 434620915927Smrg INTELCC="no" 434720915927Smrgfi 434820915927Smrg 434920915927Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 435020915927Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 435120915927Smrg SUNCC="yes" 435220915927Smrgelse 435320915927Smrg SUNCC="no" 435420915927Smrgfi 435520915927Smrg 435620915927Smrg 435720915927Smrg 435820915927Smrg 435904449c54Smrg 436004449c54Smrg 436104449c54Smrg 436204449c54Smrg 436304449c54Smrg 43648440cca4Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 43658440cca4Smrg if test -n "$ac_tool_prefix"; then 43668440cca4Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 43678440cca4Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4368d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4369d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; } 4370d1c293acSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4371d1c293acSmrg $as_echo_n "(cached) " >&6 43728440cca4Smrgelse 43738440cca4Smrg case $PKG_CONFIG in 43748440cca4Smrg [\\/]* | ?:[\\/]*) 43758440cca4Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 43768440cca4Smrg ;; 43778440cca4Smrg *) 43788440cca4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43798440cca4Smrgfor as_dir in $PATH 43808440cca4Smrgdo 43818440cca4Smrg IFS=$as_save_IFS 43828440cca4Smrg test -z "$as_dir" && as_dir=. 4383d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 438404449c54Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43858440cca4Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4386d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43878440cca4Smrg break 2 43888440cca4Smrg fi 43898440cca4Smrgdone 4390d1c293acSmrg done 4391d1c293acSmrgIFS=$as_save_IFS 43928440cca4Smrg 43938440cca4Smrg ;; 43948440cca4Smrgesac 43958440cca4Smrgfi 43968440cca4SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 43978440cca4Smrgif test -n "$PKG_CONFIG"; then 4398d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4399d1c293acSmrg$as_echo "$PKG_CONFIG" >&6; } 44008440cca4Smrgelse 4401d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4402d1c293acSmrg$as_echo "no" >&6; } 44038440cca4Smrgfi 44048440cca4Smrg 4405d1c293acSmrg 44068440cca4Smrgfi 44078440cca4Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 44088440cca4Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 44098440cca4Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 44108440cca4Smrgset dummy pkg-config; ac_word=$2 4411d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4412d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; } 4413d1c293acSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4414d1c293acSmrg $as_echo_n "(cached) " >&6 44158440cca4Smrgelse 44168440cca4Smrg case $ac_pt_PKG_CONFIG in 44178440cca4Smrg [\\/]* | ?:[\\/]*) 44188440cca4Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 44198440cca4Smrg ;; 44208440cca4Smrg *) 44218440cca4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44228440cca4Smrgfor as_dir in $PATH 44238440cca4Smrgdo 44248440cca4Smrg IFS=$as_save_IFS 44258440cca4Smrg test -z "$as_dir" && as_dir=. 4426d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 442704449c54Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44288440cca4Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4429d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44308440cca4Smrg break 2 44318440cca4Smrg fi 44328440cca4Smrgdone 4433d1c293acSmrg done 4434d1c293acSmrgIFS=$as_save_IFS 44358440cca4Smrg 44368440cca4Smrg ;; 44378440cca4Smrgesac 44388440cca4Smrgfi 44398440cca4Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 44408440cca4Smrgif test -n "$ac_pt_PKG_CONFIG"; then 4441d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4442d1c293acSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 44438440cca4Smrgelse 4444d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4445d1c293acSmrg$as_echo "no" >&6; } 44468440cca4Smrgfi 44478440cca4Smrg 4448d1c293acSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 4449d1c293acSmrg PKG_CONFIG="" 4450d1c293acSmrg else 4451d1c293acSmrg case $cross_compiling:$ac_tool_warned in 4452d1c293acSmrgyes:) 4453d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4454d1c293acSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4455d1c293acSmrgac_tool_warned=yes ;; 4456d1c293acSmrgesac 4457d1c293acSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4458d1c293acSmrg fi 44598440cca4Smrgelse 44608440cca4Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 44618440cca4Smrgfi 44628440cca4Smrg 44638440cca4Smrgfi 44648440cca4Smrgif test -n "$PKG_CONFIG"; then 44658440cca4Smrg _pkg_min_version=0.9.0 4466d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4467d1c293acSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 44688440cca4Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4469d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4470d1c293acSmrg$as_echo "yes" >&6; } 44718440cca4Smrg else 4472d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4473d1c293acSmrg$as_echo "no" >&6; } 44748440cca4Smrg PKG_CONFIG="" 44758440cca4Smrg fi 44768440cca4Smrgfi 4477d1c293acSmrg# Make sure we can run config.sub. 4478d1c293acSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4479d1c293acSmrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 44808440cca4Smrg 4481d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4482d1c293acSmrg$as_echo_n "checking build system type... " >&6; } 4483d1c293acSmrgif ${ac_cv_build+:} false; then : 4484d1c293acSmrg $as_echo_n "(cached) " >&6 44858440cca4Smrgelse 4486d1c293acSmrg ac_build_alias=$build_alias 4487d1c293acSmrgtest "x$ac_build_alias" = x && 4488d1c293acSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4489d1c293acSmrgtest "x$ac_build_alias" = x && 4490d1c293acSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4491d1c293acSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4492d1c293acSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4493d1c293acSmrg 4494d1c293acSmrgfi 4495d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4496d1c293acSmrg$as_echo "$ac_cv_build" >&6; } 4497d1c293acSmrgcase $ac_cv_build in 4498d1c293acSmrg*-*-*) ;; 4499d1c293acSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4500d1c293acSmrgesac 4501d1c293acSmrgbuild=$ac_cv_build 4502d1c293acSmrgac_save_IFS=$IFS; IFS='-' 4503d1c293acSmrgset x $ac_cv_build 4504d1c293acSmrgshift 4505d1c293acSmrgbuild_cpu=$1 4506d1c293acSmrgbuild_vendor=$2 4507d1c293acSmrgshift; shift 4508d1c293acSmrg# Remember, the first character of IFS is used to create $*, 4509d1c293acSmrg# except with old shells: 4510d1c293acSmrgbuild_os=$* 4511d1c293acSmrgIFS=$ac_save_IFS 4512d1c293acSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4513d1c293acSmrg 4514d1c293acSmrg 4515d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4516d1c293acSmrg$as_echo_n "checking host system type... " >&6; } 4517d1c293acSmrgif ${ac_cv_host+:} false; then : 4518d1c293acSmrg $as_echo_n "(cached) " >&6 4519d1c293acSmrgelse 4520d1c293acSmrg if test "x$host_alias" = x; then 4521d1c293acSmrg ac_cv_host=$ac_cv_build 4522d1c293acSmrgelse 4523d1c293acSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4524d1c293acSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4525d1c293acSmrgfi 4526d1c293acSmrg 45278440cca4Smrgfi 4528d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4529d1c293acSmrg$as_echo "$ac_cv_host" >&6; } 4530d1c293acSmrgcase $ac_cv_host in 4531d1c293acSmrg*-*-*) ;; 4532d1c293acSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4533d1c293acSmrgesac 4534d1c293acSmrghost=$ac_cv_host 4535d1c293acSmrgac_save_IFS=$IFS; IFS='-' 4536d1c293acSmrgset x $ac_cv_host 4537d1c293acSmrgshift 4538d1c293acSmrghost_cpu=$1 4539d1c293acSmrghost_vendor=$2 4540d1c293acSmrgshift; shift 4541d1c293acSmrg# Remember, the first character of IFS is used to create $*, 4542d1c293acSmrg# except with old shells: 4543d1c293acSmrghost_os=$* 4544d1c293acSmrgIFS=$ac_save_IFS 4545d1c293acSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4546d1c293acSmrg 4547d1c293acSmrg 4548d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4549d1c293acSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4550d1c293acSmrgif ${ac_cv_path_SED+:} false; then : 4551d1c293acSmrg $as_echo_n "(cached) " >&6 4552d1c293acSmrgelse 4553d1c293acSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4554d1c293acSmrg for ac_i in 1 2 3 4 5 6 7; do 4555d1c293acSmrg ac_script="$ac_script$as_nl$ac_script" 4556d1c293acSmrg done 4557d1c293acSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4558d1c293acSmrg { ac_script=; unset ac_script;} 4559d1c293acSmrg if test -z "$SED"; then 4560d1c293acSmrg ac_path_SED_found=false 4561d1c293acSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4562d1c293acSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4563d1c293acSmrgfor as_dir in $PATH 4564d1c293acSmrgdo 4565d1c293acSmrg IFS=$as_save_IFS 4566d1c293acSmrg test -z "$as_dir" && as_dir=. 4567d1c293acSmrg for ac_prog in sed gsed; do 4568d1c293acSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4569d1c293acSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 457004449c54Smrg as_fn_executable_p "$ac_path_SED" || continue 4571d1c293acSmrg# Check for GNU ac_path_SED and select it if it is found. 4572d1c293acSmrg # Check for GNU $ac_path_SED 4573d1c293acSmrgcase `"$ac_path_SED" --version 2>&1` in 4574d1c293acSmrg*GNU*) 4575d1c293acSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4576d1c293acSmrg*) 4577d1c293acSmrg ac_count=0 4578d1c293acSmrg $as_echo_n 0123456789 >"conftest.in" 4579d1c293acSmrg while : 4580d1c293acSmrg do 4581d1c293acSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4582d1c293acSmrg mv "conftest.tmp" "conftest.in" 4583d1c293acSmrg cp "conftest.in" "conftest.nl" 4584d1c293acSmrg $as_echo '' >> "conftest.nl" 4585d1c293acSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4586d1c293acSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4587d1c293acSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4588d1c293acSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4589d1c293acSmrg # Best one so far, save it but keep looking for a better one 4590d1c293acSmrg ac_cv_path_SED="$ac_path_SED" 4591d1c293acSmrg ac_path_SED_max=$ac_count 45928440cca4Smrg fi 4593d1c293acSmrg # 10*(2^10) chars as input seems more than enough 4594d1c293acSmrg test $ac_count -gt 10 && break 4595d1c293acSmrg done 4596d1c293acSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4597d1c293acSmrgesac 4598d1c293acSmrg 4599d1c293acSmrg $ac_path_SED_found && break 3 4600d1c293acSmrg done 4601d1c293acSmrg done 4602d1c293acSmrg done 4603d1c293acSmrgIFS=$as_save_IFS 4604d1c293acSmrg if test -z "$ac_cv_path_SED"; then 4605d1c293acSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4606d1c293acSmrg fi 46078440cca4Smrgelse 4608d1c293acSmrg ac_cv_path_SED=$SED 46098440cca4Smrgfi 4610d1c293acSmrg 4611d1c293acSmrgfi 4612d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4613d1c293acSmrg$as_echo "$ac_cv_path_SED" >&6; } 4614d1c293acSmrg SED="$ac_cv_path_SED" 4615d1c293acSmrg rm -f conftest.sed 4616d1c293acSmrg 4617d1c293acSmrg 4618d1c293acSmrg 4619d1c293acSmrg 4620d1c293acSmrg 462120915927Smrg 462220915927Smrg# Check whether --enable-selective-werror was given. 462320915927Smrgif test "${enable_selective_werror+set}" = set; then : 462420915927Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4625d1c293acSmrgelse 462620915927Smrg SELECTIVE_WERROR=yes 46278440cca4Smrgfi 4628d1c293acSmrg 462920915927Smrg 463020915927Smrg 463120915927Smrg 463220915927Smrg 463320915927Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 463420915927Smrgif test "x$SUNCC" = "xyes"; then 463520915927Smrg BASE_CFLAGS="-v" 463620915927Smrgelse 463720915927Smrg BASE_CFLAGS="" 46388440cca4Smrgfi 46398440cca4Smrg 464020915927Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 46418440cca4Smrg 46428440cca4Smrg 46438440cca4Smrg 4644d1c293acSmrg 4645d1c293acSmrg 4646d1c293acSmrg 4647d1c293acSmrg 464820915927Smrg 464920915927Smrg 465020915927Smrg 465120915927Smrg 465220915927Smrg 465320915927Smrg 465420915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 465520915927Smrg 465620915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 465720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 465820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 465920915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 466020915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 466120915927Smrg $as_echo_n "(cached) " >&6 4662d1c293acSmrgelse 466320915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 466420915927Smrg/* end confdefs.h. */ 466520915927Smrgint i; 466620915927Smrg_ACEOF 466720915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 466820915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 466920915927Smrgelse 467020915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 467120915927Smrgfi 467220915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 467320915927Smrgfi 467420915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 467520915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 467620915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 467720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 46788440cca4Smrgfi 46798440cca4Smrg 468020915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 468120915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 468220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4683d1c293acSmrg fi 468420915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 468520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 468620915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 468720915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 468820915927Smrg $as_echo_n "(cached) " >&6 468920915927Smrgelse 469020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 469120915927Smrg/* end confdefs.h. */ 469220915927Smrgint i; 469320915927Smrg_ACEOF 469420915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 469520915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 469620915927Smrgelse 469720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 469820915927Smrgfi 469920915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 470020915927Smrgfi 470120915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 470220915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 470320915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 470420915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4705d1c293acSmrgfi 47068440cca4Smrg 470720915927Smrgfound="no" 47088440cca4Smrg 470920915927Smrg if test $found = "no" ; then 471004449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 471120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 471220915927Smrg fi 47138440cca4Smrg 471404449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 471520915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 471620915927Smrg fi 47178440cca4Smrg 471820915927Smrg CFLAGS="$CFLAGS -Wall" 47198440cca4Smrg 472020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 472120915927Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; } 472220915927Smrg cacheid=xorg_cv_cc_flag__Wall 472320915927Smrg if eval \${$cacheid+:} false; then : 472420915927Smrg $as_echo_n "(cached) " >&6 472520915927Smrgelse 472620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 472720915927Smrg/* end confdefs.h. */ 472820915927Smrgint i; 472920915927Smrgint 473020915927Smrgmain () 473120915927Smrg{ 47328440cca4Smrg 473320915927Smrg ; 473420915927Smrg return 0; 473520915927Smrg} 4736d1c293acSmrg_ACEOF 473720915927Smrgif ac_fn_c_try_link "$LINENO"; then : 473820915927Smrg eval $cacheid=yes 473920915927Smrgelse 474020915927Smrg eval $cacheid=no 474120915927Smrgfi 474220915927Smrgrm -f core conftest.err conftest.$ac_objext \ 474320915927Smrg conftest$ac_exeext conftest.$ac_ext 474420915927Smrgfi 47458440cca4Smrg 474620915927Smrg 474720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 474820915927Smrg 474920915927Smrg eval supported=\$$cacheid 475020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 475120915927Smrg$as_echo "$supported" >&6; } 475220915927Smrg if test "$supported" = "yes" ; then 475320915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 475420915927Smrg found="yes" 475520915927Smrg fi 4756d1c293acSmrg fi 47578440cca4Smrg 47588440cca4Smrg 47598440cca4Smrg 47608440cca4Smrg 47618440cca4Smrg 47628440cca4Smrg 47638440cca4Smrg 47648440cca4Smrg 47658440cca4Smrg 47668440cca4Smrg 47678440cca4Smrg 47688440cca4Smrg 47698440cca4Smrg 47708440cca4Smrg 47718440cca4Smrg 477220915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 47738440cca4Smrg 477420915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 477520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 477620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 477720915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 477820915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 477920915927Smrg $as_echo_n "(cached) " >&6 478020915927Smrgelse 478120915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 478220915927Smrg/* end confdefs.h. */ 478320915927Smrgint i; 478420915927Smrg_ACEOF 478520915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 478620915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 478720915927Smrgelse 478820915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 47898440cca4Smrgfi 479020915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47918440cca4Smrgfi 479220915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 479320915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 479420915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 479520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 47968440cca4Smrgfi 47978440cca4Smrg 479820915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 479920915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 480020915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 480120915927Smrg fi 480220915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 480320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 480420915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 480520915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 480620915927Smrg $as_echo_n "(cached) " >&6 480720915927Smrgelse 480820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 480920915927Smrg/* end confdefs.h. */ 481020915927Smrgint i; 481120915927Smrg_ACEOF 481220915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 481320915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 481420915927Smrgelse 481520915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 48168440cca4Smrgfi 481720915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48188440cca4Smrgfi 481920915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 482020915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 482120915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 482220915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48238440cca4Smrgfi 48248440cca4Smrg 482520915927Smrgfound="no" 48268440cca4Smrg 482720915927Smrg if test $found = "no" ; then 482804449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 482920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 483020915927Smrg fi 48318440cca4Smrg 483204449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 483320915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 483420915927Smrg fi 48358440cca4Smrg 483620915927Smrg CFLAGS="$CFLAGS -Wpointer-arith" 48378440cca4Smrg 483820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 483920915927Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 484020915927Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 484120915927Smrg if eval \${$cacheid+:} false; then : 484220915927Smrg $as_echo_n "(cached) " >&6 484320915927Smrgelse 484420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 484520915927Smrg/* end confdefs.h. */ 484620915927Smrgint i; 484720915927Smrgint 484820915927Smrgmain () 484920915927Smrg{ 48508440cca4Smrg 485120915927Smrg ; 485220915927Smrg return 0; 485320915927Smrg} 485420915927Smrg_ACEOF 485520915927Smrgif ac_fn_c_try_link "$LINENO"; then : 485620915927Smrg eval $cacheid=yes 485720915927Smrgelse 485820915927Smrg eval $cacheid=no 485920915927Smrgfi 486020915927Smrgrm -f core conftest.err conftest.$ac_objext \ 486120915927Smrg conftest$ac_exeext conftest.$ac_ext 486220915927Smrgfi 48638440cca4Smrg 48648440cca4Smrg 486520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48668440cca4Smrg 486720915927Smrg eval supported=\$$cacheid 486820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 486920915927Smrg$as_echo "$supported" >&6; } 487020915927Smrg if test "$supported" = "yes" ; then 487120915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 487220915927Smrg found="yes" 487320915927Smrg fi 487420915927Smrg fi 48758440cca4Smrg 48768440cca4Smrg 48778440cca4Smrg 48788440cca4Smrg 48798440cca4Smrg 48808440cca4Smrg 4881d1c293acSmrg 4882d1c293acSmrg 4883d1c293acSmrg 4884d1c293acSmrg 4885d1c293acSmrg 4886d1c293acSmrg 4887d1c293acSmrg 4888d1c293acSmrg 48898440cca4Smrg 489020915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 489120915927Smrg 489220915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 489320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 489420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 489520915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 489620915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 489720915927Smrg $as_echo_n "(cached) " >&6 489820915927Smrgelse 489920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 490020915927Smrg/* end confdefs.h. */ 490120915927Smrgint i; 490220915927Smrg_ACEOF 490320915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 490420915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 490520915927Smrgelse 490620915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 490720915927Smrgfi 490820915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 490920915927Smrgfi 491020915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 491120915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 491220915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 491320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 491420915927Smrgfi 491520915927Smrg 491620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 491720915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 491820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 491920915927Smrg fi 492020915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 492120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 492220915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 492320915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 492420915927Smrg $as_echo_n "(cached) " >&6 492520915927Smrgelse 492620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 492720915927Smrg/* end confdefs.h. */ 492820915927Smrgint i; 492920915927Smrg_ACEOF 493020915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 493120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 493220915927Smrgelse 493320915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 493420915927Smrgfi 493520915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 493620915927Smrgfi 493720915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 493820915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 493920915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 494020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 494120915927Smrgfi 494220915927Smrg 494320915927Smrgfound="no" 494420915927Smrg 494520915927Smrg if test $found = "no" ; then 494604449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 494720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 494820915927Smrg fi 494920915927Smrg 495004449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 495120915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 495220915927Smrg fi 495320915927Smrg 495420915927Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 495520915927Smrg 495620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 495720915927Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 495820915927Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 495920915927Smrg if eval \${$cacheid+:} false; then : 496020915927Smrg $as_echo_n "(cached) " >&6 496120915927Smrgelse 496220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 496320915927Smrg/* end confdefs.h. */ 496420915927Smrgint i; 496520915927Smrgint 496620915927Smrgmain () 496720915927Smrg{ 496820915927Smrg 496920915927Smrg ; 497020915927Smrg return 0; 497120915927Smrg} 497220915927Smrg_ACEOF 497320915927Smrgif ac_fn_c_try_link "$LINENO"; then : 497420915927Smrg eval $cacheid=yes 497520915927Smrgelse 497620915927Smrg eval $cacheid=no 497720915927Smrgfi 497820915927Smrgrm -f core conftest.err conftest.$ac_objext \ 497920915927Smrg conftest$ac_exeext conftest.$ac_ext 498020915927Smrgfi 498120915927Smrg 498220915927Smrg 498320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 498420915927Smrg 498520915927Smrg eval supported=\$$cacheid 498620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 498720915927Smrg$as_echo "$supported" >&6; } 498820915927Smrg if test "$supported" = "yes" ; then 498920915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 499020915927Smrg found="yes" 499120915927Smrg fi 499220915927Smrg fi 499320915927Smrg 499420915927Smrg 499520915927Smrg 499620915927Smrg 499720915927Smrg 499820915927Smrg 499920915927Smrg 500020915927Smrg 500120915927Smrg 500220915927Smrg 500320915927Smrg 500420915927Smrg 500520915927Smrg 500620915927Smrg 500720915927Smrg 500820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 500920915927Smrg 501020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 501120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 501220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 501320915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 501420915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 501520915927Smrg $as_echo_n "(cached) " >&6 501620915927Smrgelse 501720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 501820915927Smrg/* end confdefs.h. */ 501920915927Smrgint i; 502020915927Smrg_ACEOF 502120915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 502220915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 502320915927Smrgelse 502420915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 502520915927Smrgfi 502620915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 502720915927Smrgfi 502820915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 502920915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 503020915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 503120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 503220915927Smrgfi 503320915927Smrg 503420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 503520915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 503620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 503720915927Smrg fi 503820915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 503920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 504020915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 504120915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 504220915927Smrg $as_echo_n "(cached) " >&6 504320915927Smrgelse 504420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 504520915927Smrg/* end confdefs.h. */ 504620915927Smrgint i; 504720915927Smrg_ACEOF 504820915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 504920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 505020915927Smrgelse 505120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 505220915927Smrgfi 505320915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 505420915927Smrgfi 505520915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 505620915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 505720915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 505820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 505920915927Smrgfi 506020915927Smrg 506120915927Smrgfound="no" 506220915927Smrg 506320915927Smrg if test $found = "no" ; then 506404449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 506520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 506620915927Smrg fi 506720915927Smrg 506804449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 506920915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 507020915927Smrg fi 507120915927Smrg 507220915927Smrg CFLAGS="$CFLAGS -Wformat=2" 507320915927Smrg 507420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 507520915927Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 507604449c54Smrg cacheid=xorg_cv_cc_flag__Wformat_2 507720915927Smrg if eval \${$cacheid+:} false; then : 507820915927Smrg $as_echo_n "(cached) " >&6 507920915927Smrgelse 508020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 508120915927Smrg/* end confdefs.h. */ 508220915927Smrgint i; 508320915927Smrgint 508420915927Smrgmain () 508520915927Smrg{ 508620915927Smrg 508720915927Smrg ; 508820915927Smrg return 0; 508920915927Smrg} 509020915927Smrg_ACEOF 509120915927Smrgif ac_fn_c_try_link "$LINENO"; then : 509220915927Smrg eval $cacheid=yes 509320915927Smrgelse 509420915927Smrg eval $cacheid=no 509520915927Smrgfi 509620915927Smrgrm -f core conftest.err conftest.$ac_objext \ 509720915927Smrg conftest$ac_exeext conftest.$ac_ext 509820915927Smrgfi 509920915927Smrg 510020915927Smrg 510120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 510220915927Smrg 510320915927Smrg eval supported=\$$cacheid 510420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 510520915927Smrg$as_echo "$supported" >&6; } 510620915927Smrg if test "$supported" = "yes" ; then 510720915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 510820915927Smrg found="yes" 510920915927Smrg fi 511020915927Smrg fi 511120915927Smrg 511220915927Smrg if test $found = "no" ; then 511304449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 511420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 511520915927Smrg fi 511620915927Smrg 511704449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 511820915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 511920915927Smrg fi 512020915927Smrg 512120915927Smrg CFLAGS="$CFLAGS -Wformat" 512220915927Smrg 512320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 512420915927Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; } 512520915927Smrg cacheid=xorg_cv_cc_flag__Wformat 512620915927Smrg if eval \${$cacheid+:} false; then : 512720915927Smrg $as_echo_n "(cached) " >&6 512820915927Smrgelse 512920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 513020915927Smrg/* end confdefs.h. */ 513120915927Smrgint i; 513220915927Smrgint 513320915927Smrgmain () 513420915927Smrg{ 513520915927Smrg 513620915927Smrg ; 513720915927Smrg return 0; 513820915927Smrg} 513920915927Smrg_ACEOF 514020915927Smrgif ac_fn_c_try_link "$LINENO"; then : 514120915927Smrg eval $cacheid=yes 514220915927Smrgelse 514320915927Smrg eval $cacheid=no 514420915927Smrgfi 514520915927Smrgrm -f core conftest.err conftest.$ac_objext \ 514620915927Smrg conftest$ac_exeext conftest.$ac_ext 514720915927Smrgfi 514820915927Smrg 514920915927Smrg 515020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 515120915927Smrg 515220915927Smrg eval supported=\$$cacheid 515320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 515420915927Smrg$as_echo "$supported" >&6; } 515520915927Smrg if test "$supported" = "yes" ; then 515620915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 515720915927Smrg found="yes" 515820915927Smrg fi 515920915927Smrg fi 516020915927Smrg 516120915927Smrg 516220915927Smrg 516320915927Smrg 516420915927Smrg 516520915927Smrg 516620915927Smrg 516720915927Smrg 516820915927Smrg 516920915927Smrg 517020915927Smrg 517120915927Smrg 517220915927Smrg 517320915927Smrg 517420915927Smrg 517520915927Smrg 517620915927Smrg 517720915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 517820915927Smrg 517920915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 518020915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 518120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 518220915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 518320915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 518420915927Smrg $as_echo_n "(cached) " >&6 518520915927Smrgelse 518620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 518720915927Smrg/* end confdefs.h. */ 518820915927Smrgint i; 518920915927Smrg_ACEOF 519020915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 519120915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 519220915927Smrgelse 519320915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 519420915927Smrgfi 519520915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 519620915927Smrgfi 519720915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 519820915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 519920915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 520020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 520120915927Smrgfi 520220915927Smrg 520320915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 520420915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 520520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 520620915927Smrg fi 520720915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 520820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 520920915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 521020915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 521120915927Smrg $as_echo_n "(cached) " >&6 521220915927Smrgelse 521320915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 521420915927Smrg/* end confdefs.h. */ 521520915927Smrgint i; 521620915927Smrg_ACEOF 521720915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 521820915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 521920915927Smrgelse 522020915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 522120915927Smrgfi 522220915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 522320915927Smrgfi 522420915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 522520915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 522620915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 522720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 522820915927Smrgfi 522920915927Smrg 523020915927Smrgfound="no" 523120915927Smrg 523220915927Smrg if test $found = "no" ; then 523304449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 523420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 523520915927Smrg fi 523620915927Smrg 523704449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 523820915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 523920915927Smrg fi 524020915927Smrg 524120915927Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 524220915927Smrg 524320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 524420915927Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 524520915927Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 524620915927Smrg if eval \${$cacheid+:} false; then : 524720915927Smrg $as_echo_n "(cached) " >&6 524820915927Smrgelse 524920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 525020915927Smrg/* end confdefs.h. */ 525120915927Smrgint i; 525220915927Smrgint 525320915927Smrgmain () 525420915927Smrg{ 525520915927Smrg 525620915927Smrg ; 525720915927Smrg return 0; 525820915927Smrg} 525920915927Smrg_ACEOF 526020915927Smrgif ac_fn_c_try_link "$LINENO"; then : 526120915927Smrg eval $cacheid=yes 526220915927Smrgelse 526320915927Smrg eval $cacheid=no 526420915927Smrgfi 526520915927Smrgrm -f core conftest.err conftest.$ac_objext \ 526620915927Smrg conftest$ac_exeext conftest.$ac_ext 526720915927Smrgfi 526820915927Smrg 526920915927Smrg 527020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 527120915927Smrg 527220915927Smrg eval supported=\$$cacheid 527320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 527420915927Smrg$as_echo "$supported" >&6; } 527520915927Smrg if test "$supported" = "yes" ; then 527620915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 527720915927Smrg found="yes" 527820915927Smrg fi 527920915927Smrg fi 528020915927Smrg 528120915927Smrg 528220915927Smrg 528320915927Smrg 528420915927Smrg 528520915927Smrg 528620915927Smrg 528720915927Smrg 528820915927Smrg 528920915927Smrg 529020915927Smrg 529120915927Smrg 529220915927Smrg 529320915927Smrg 529420915927Smrg 529520915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 529620915927Smrg 529720915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 529820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 529920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 530020915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 530120915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 530220915927Smrg $as_echo_n "(cached) " >&6 530320915927Smrgelse 530420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 530520915927Smrg/* end confdefs.h. */ 530620915927Smrgint i; 530720915927Smrg_ACEOF 530820915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 530920915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 531020915927Smrgelse 531120915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 531220915927Smrgfi 531320915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 531420915927Smrgfi 531520915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 531620915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 531720915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 531820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 531920915927Smrgfi 532020915927Smrg 532120915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 532220915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 532320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 532420915927Smrg fi 532520915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 532620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 532720915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 532820915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 532920915927Smrg $as_echo_n "(cached) " >&6 533020915927Smrgelse 533120915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 533220915927Smrg/* end confdefs.h. */ 533320915927Smrgint i; 533420915927Smrg_ACEOF 533520915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 533620915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 533720915927Smrgelse 533820915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 533920915927Smrgfi 534020915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 534120915927Smrgfi 534220915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 534320915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 534420915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 534520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 534620915927Smrgfi 534720915927Smrg 534820915927Smrgfound="no" 534920915927Smrg 535020915927Smrg if test $found = "no" ; then 535104449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 535220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 535320915927Smrg fi 535420915927Smrg 535504449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 535620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 535720915927Smrg fi 535820915927Smrg 535920915927Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 536020915927Smrg 536120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 536220915927Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 536320915927Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 536420915927Smrg if eval \${$cacheid+:} false; then : 536520915927Smrg $as_echo_n "(cached) " >&6 536620915927Smrgelse 536720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 536820915927Smrg/* end confdefs.h. */ 536920915927Smrgint i; 537020915927Smrgint 537120915927Smrgmain () 537220915927Smrg{ 537320915927Smrg 537420915927Smrg ; 537520915927Smrg return 0; 537620915927Smrg} 537720915927Smrg_ACEOF 537820915927Smrgif ac_fn_c_try_link "$LINENO"; then : 537920915927Smrg eval $cacheid=yes 538020915927Smrgelse 538120915927Smrg eval $cacheid=no 538220915927Smrgfi 538320915927Smrgrm -f core conftest.err conftest.$ac_objext \ 538420915927Smrg conftest$ac_exeext conftest.$ac_ext 538520915927Smrgfi 538620915927Smrg 538720915927Smrg 538820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 538920915927Smrg 539020915927Smrg eval supported=\$$cacheid 539120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 539220915927Smrg$as_echo "$supported" >&6; } 539320915927Smrg if test "$supported" = "yes" ; then 539420915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 539520915927Smrg found="yes" 539620915927Smrg fi 539720915927Smrg fi 539820915927Smrg 539920915927Smrg 540020915927Smrg 540120915927Smrg 540220915927Smrg 540320915927Smrg 540420915927Smrg 540520915927Smrg 540620915927Smrg 540720915927Smrg 540820915927Smrg 540920915927Smrg 541020915927Smrg 541120915927Smrg 541220915927Smrg 541320915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 541420915927Smrg 541520915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 541620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 541720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 541820915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 541920915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 542020915927Smrg $as_echo_n "(cached) " >&6 542120915927Smrgelse 542220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 542320915927Smrg/* end confdefs.h. */ 542420915927Smrgint i; 542520915927Smrg_ACEOF 542620915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 542720915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 542820915927Smrgelse 542920915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 543020915927Smrgfi 543120915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 543220915927Smrgfi 543320915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 543420915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 543520915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 543620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 543720915927Smrgfi 543820915927Smrg 543920915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 544020915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 544120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 544220915927Smrg fi 544320915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 544420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 544520915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 544620915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 544720915927Smrg $as_echo_n "(cached) " >&6 544820915927Smrgelse 544920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 545020915927Smrg/* end confdefs.h. */ 545120915927Smrgint i; 545220915927Smrg_ACEOF 545320915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 545420915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 545520915927Smrgelse 545620915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 545720915927Smrgfi 545820915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 545920915927Smrgfi 546020915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 546120915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 546220915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 546320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 546420915927Smrgfi 546520915927Smrg 546620915927Smrgfound="no" 546720915927Smrg 546820915927Smrg if test $found = "no" ; then 546904449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 547020915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 547120915927Smrg fi 547220915927Smrg 547304449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 547420915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 547520915927Smrg fi 547620915927Smrg 547720915927Smrg CFLAGS="$CFLAGS -Wnested-externs" 547820915927Smrg 547920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 548020915927Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 548120915927Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 548220915927Smrg if eval \${$cacheid+:} false; then : 548320915927Smrg $as_echo_n "(cached) " >&6 548420915927Smrgelse 548520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 548620915927Smrg/* end confdefs.h. */ 548720915927Smrgint i; 548820915927Smrgint 548920915927Smrgmain () 549020915927Smrg{ 549120915927Smrg 549220915927Smrg ; 549320915927Smrg return 0; 549420915927Smrg} 549520915927Smrg_ACEOF 549620915927Smrgif ac_fn_c_try_link "$LINENO"; then : 549720915927Smrg eval $cacheid=yes 549820915927Smrgelse 549920915927Smrg eval $cacheid=no 550020915927Smrgfi 550120915927Smrgrm -f core conftest.err conftest.$ac_objext \ 550220915927Smrg conftest$ac_exeext conftest.$ac_ext 550320915927Smrgfi 550420915927Smrg 550520915927Smrg 550620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 550720915927Smrg 550820915927Smrg eval supported=\$$cacheid 550920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 551020915927Smrg$as_echo "$supported" >&6; } 551120915927Smrg if test "$supported" = "yes" ; then 551220915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 551320915927Smrg found="yes" 551420915927Smrg fi 551520915927Smrg fi 551620915927Smrg 551720915927Smrg 551820915927Smrg 551920915927Smrg 552020915927Smrg 552120915927Smrg 552220915927Smrg 552320915927Smrg 552420915927Smrg 552520915927Smrg 552620915927Smrg 552720915927Smrg 552820915927Smrg 552920915927Smrg 553020915927Smrg 553120915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 553220915927Smrg 553320915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 553420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 553520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 553620915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 553720915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 553820915927Smrg $as_echo_n "(cached) " >&6 553920915927Smrgelse 554020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 554120915927Smrg/* end confdefs.h. */ 554220915927Smrgint i; 554320915927Smrg_ACEOF 554420915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 554520915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 554620915927Smrgelse 554720915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 554820915927Smrgfi 554920915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 555020915927Smrgfi 555120915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 555220915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 555320915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 555420915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 555520915927Smrgfi 555620915927Smrg 555720915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 555820915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 555920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 556020915927Smrg fi 556120915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 556220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 556320915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 556420915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 556520915927Smrg $as_echo_n "(cached) " >&6 556620915927Smrgelse 556720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 556820915927Smrg/* end confdefs.h. */ 556920915927Smrgint i; 557020915927Smrg_ACEOF 557120915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 557220915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 557320915927Smrgelse 557420915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 557520915927Smrgfi 557620915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 557720915927Smrgfi 557820915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 557920915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 558020915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 558120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 558220915927Smrgfi 558320915927Smrg 558420915927Smrgfound="no" 558520915927Smrg 558620915927Smrg if test $found = "no" ; then 558704449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 558820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 558920915927Smrg fi 559020915927Smrg 559104449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 559220915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 559320915927Smrg fi 559420915927Smrg 559520915927Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 559620915927Smrg 559720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 559820915927Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 559920915927Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 560020915927Smrg if eval \${$cacheid+:} false; then : 560120915927Smrg $as_echo_n "(cached) " >&6 560220915927Smrgelse 560320915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 560420915927Smrg/* end confdefs.h. */ 560520915927Smrgint i; 560620915927Smrgint 560720915927Smrgmain () 560820915927Smrg{ 560920915927Smrg 561020915927Smrg ; 561120915927Smrg return 0; 561220915927Smrg} 561320915927Smrg_ACEOF 561420915927Smrgif ac_fn_c_try_link "$LINENO"; then : 561520915927Smrg eval $cacheid=yes 561620915927Smrgelse 561720915927Smrg eval $cacheid=no 561820915927Smrgfi 561920915927Smrgrm -f core conftest.err conftest.$ac_objext \ 562020915927Smrg conftest$ac_exeext conftest.$ac_ext 562120915927Smrgfi 562220915927Smrg 562320915927Smrg 562420915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 562520915927Smrg 562620915927Smrg eval supported=\$$cacheid 562720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 562820915927Smrg$as_echo "$supported" >&6; } 562920915927Smrg if test "$supported" = "yes" ; then 563020915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 563120915927Smrg found="yes" 563220915927Smrg fi 563320915927Smrg fi 563420915927Smrg 563520915927Smrg 563620915927Smrg 563720915927Smrg 563820915927Smrg 563920915927Smrg 564020915927Smrg 564120915927Smrg 564220915927Smrg 564320915927Smrg 564420915927Smrg 564520915927Smrg 564620915927Smrg 564720915927Smrg 564820915927Smrg 564920915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 565020915927Smrg 565120915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 565220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 565320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 565420915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 565520915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 565620915927Smrg $as_echo_n "(cached) " >&6 565720915927Smrgelse 565820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 565920915927Smrg/* end confdefs.h. */ 566020915927Smrgint i; 566120915927Smrg_ACEOF 566220915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 566320915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 566420915927Smrgelse 566520915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 566620915927Smrgfi 566720915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 566820915927Smrgfi 566920915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 567020915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 567120915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 567220915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 567320915927Smrgfi 567420915927Smrg 567520915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 567620915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 567720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 567820915927Smrg fi 567920915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 568020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 568120915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 568220915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 568320915927Smrg $as_echo_n "(cached) " >&6 568420915927Smrgelse 568520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 568620915927Smrg/* end confdefs.h. */ 568720915927Smrgint i; 568820915927Smrg_ACEOF 568920915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 569020915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 569120915927Smrgelse 569220915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 569320915927Smrgfi 569420915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 569520915927Smrgfi 569620915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 569720915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 569820915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 569920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 570020915927Smrgfi 570120915927Smrg 570220915927Smrgfound="no" 570320915927Smrg 570420915927Smrg if test $found = "no" ; then 570504449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 570620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 570720915927Smrg fi 570820915927Smrg 570904449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 571020915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 571120915927Smrg fi 571220915927Smrg 571320915927Smrg CFLAGS="$CFLAGS -Wold-style-definition" 571420915927Smrg 571520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 571620915927Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 571720915927Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 571820915927Smrg if eval \${$cacheid+:} false; then : 571920915927Smrg $as_echo_n "(cached) " >&6 572020915927Smrgelse 572120915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 572220915927Smrg/* end confdefs.h. */ 572320915927Smrgint i; 572420915927Smrgint 572520915927Smrgmain () 572620915927Smrg{ 572720915927Smrg 572820915927Smrg ; 572920915927Smrg return 0; 573020915927Smrg} 573120915927Smrg_ACEOF 573220915927Smrgif ac_fn_c_try_link "$LINENO"; then : 573320915927Smrg eval $cacheid=yes 573420915927Smrgelse 573520915927Smrg eval $cacheid=no 573620915927Smrgfi 573720915927Smrgrm -f core conftest.err conftest.$ac_objext \ 573820915927Smrg conftest$ac_exeext conftest.$ac_ext 573920915927Smrgfi 574020915927Smrg 574120915927Smrg 574220915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 574320915927Smrg 574420915927Smrg eval supported=\$$cacheid 574520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 574620915927Smrg$as_echo "$supported" >&6; } 574720915927Smrg if test "$supported" = "yes" ; then 574820915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 574920915927Smrg found="yes" 575020915927Smrg fi 575120915927Smrg fi 575220915927Smrg 575304449c54Smrg if test $found = "no" ; then 575404449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 575504449c54Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 575604449c54Smrg fi 575704449c54Smrg 575804449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 575904449c54Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 576004449c54Smrg fi 576104449c54Smrg 576204449c54Smrg CFLAGS="$CFLAGS -fd" 576304449c54Smrg 576404449c54Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 576504449c54Smrg$as_echo_n "checking if $CC supports -fd... " >&6; } 576604449c54Smrg cacheid=xorg_cv_cc_flag__fd 576704449c54Smrg if eval \${$cacheid+:} false; then : 576804449c54Smrg $as_echo_n "(cached) " >&6 576904449c54Smrgelse 577004449c54Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 577104449c54Smrg/* end confdefs.h. */ 577204449c54Smrgint i; 577304449c54Smrgint 577404449c54Smrgmain () 577504449c54Smrg{ 577604449c54Smrg 577704449c54Smrg ; 577804449c54Smrg return 0; 577904449c54Smrg} 578004449c54Smrg_ACEOF 578104449c54Smrgif ac_fn_c_try_link "$LINENO"; then : 578204449c54Smrg eval $cacheid=yes 578304449c54Smrgelse 578404449c54Smrg eval $cacheid=no 578504449c54Smrgfi 578604449c54Smrgrm -f core conftest.err conftest.$ac_objext \ 578704449c54Smrg conftest$ac_exeext conftest.$ac_ext 578804449c54Smrgfi 578904449c54Smrg 579004449c54Smrg 579104449c54Smrg CFLAGS="$xorg_testset_save_CFLAGS" 579204449c54Smrg 579304449c54Smrg eval supported=\$$cacheid 579404449c54Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 579504449c54Smrg$as_echo "$supported" >&6; } 579604449c54Smrg if test "$supported" = "yes" ; then 579704449c54Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 579804449c54Smrg found="yes" 579904449c54Smrg fi 580004449c54Smrg fi 580104449c54Smrg 580220915927Smrg 580320915927Smrg 580420915927Smrg 580520915927Smrg 580620915927Smrg 580720915927Smrg 580820915927Smrg 580920915927Smrg 581020915927Smrg 581120915927Smrg 581220915927Smrg 581320915927Smrg 581420915927Smrg 581520915927Smrg 581620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 581720915927Smrg 581820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 581920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 582020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 582120915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 582220915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 582320915927Smrg $as_echo_n "(cached) " >&6 582420915927Smrgelse 582520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 582620915927Smrg/* end confdefs.h. */ 582720915927Smrgint i; 582820915927Smrg_ACEOF 582920915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 583020915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 583120915927Smrgelse 583220915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 583320915927Smrgfi 583420915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 583520915927Smrgfi 583620915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 583720915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 583820915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 583920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 584020915927Smrgfi 584120915927Smrg 584220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 584320915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 584420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 584520915927Smrg fi 584620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 584720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 584820915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 584920915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 585020915927Smrg $as_echo_n "(cached) " >&6 585120915927Smrgelse 585220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 585320915927Smrg/* end confdefs.h. */ 585420915927Smrgint i; 585520915927Smrg_ACEOF 585620915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 585720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 585820915927Smrgelse 585920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 586020915927Smrgfi 586120915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 586220915927Smrgfi 586320915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 586420915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 586520915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 586620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 586720915927Smrgfi 586820915927Smrg 586920915927Smrgfound="no" 587020915927Smrg 587120915927Smrg if test $found = "no" ; then 587204449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 587320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 587420915927Smrg fi 587520915927Smrg 587604449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 587720915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 587820915927Smrg fi 587920915927Smrg 588020915927Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 588120915927Smrg 588220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 588320915927Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 588420915927Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 588520915927Smrg if eval \${$cacheid+:} false; then : 588620915927Smrg $as_echo_n "(cached) " >&6 588720915927Smrgelse 588820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 588920915927Smrg/* end confdefs.h. */ 589020915927Smrgint i; 589120915927Smrgint 589220915927Smrgmain () 589320915927Smrg{ 589420915927Smrg 589520915927Smrg ; 589620915927Smrg return 0; 589720915927Smrg} 589820915927Smrg_ACEOF 589920915927Smrgif ac_fn_c_try_link "$LINENO"; then : 590020915927Smrg eval $cacheid=yes 590120915927Smrgelse 590220915927Smrg eval $cacheid=no 590320915927Smrgfi 590420915927Smrgrm -f core conftest.err conftest.$ac_objext \ 590520915927Smrg conftest$ac_exeext conftest.$ac_ext 590620915927Smrgfi 590720915927Smrg 590820915927Smrg 590920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 591020915927Smrg 591120915927Smrg eval supported=\$$cacheid 591220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 591320915927Smrg$as_echo "$supported" >&6; } 591420915927Smrg if test "$supported" = "yes" ; then 591520915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 591620915927Smrg found="yes" 591720915927Smrg fi 591820915927Smrg fi 591920915927Smrg 592020915927Smrg 592120915927Smrg 592220915927Smrg 592320915927Smrg 592420915927Smrg# This chunk adds additional warnings that could catch undesired effects. 592520915927Smrg 592620915927Smrg 592720915927Smrg 592820915927Smrg 592920915927Smrg 593020915927Smrg 593120915927Smrg 593220915927Smrg 593320915927Smrg 593420915927Smrg 593520915927Smrg 593620915927Smrg 593720915927Smrg 593820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 593920915927Smrg 594020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 594120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 594220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 594320915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 594420915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 594520915927Smrg $as_echo_n "(cached) " >&6 594620915927Smrgelse 594720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 594820915927Smrg/* end confdefs.h. */ 594920915927Smrgint i; 595020915927Smrg_ACEOF 595120915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 595220915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 595320915927Smrgelse 595420915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 595520915927Smrgfi 595620915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 595720915927Smrgfi 595820915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 595920915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 596020915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 596120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 596220915927Smrgfi 596320915927Smrg 596420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 596520915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 596620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 596720915927Smrg fi 596820915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 596920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 597020915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 597120915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 597220915927Smrg $as_echo_n "(cached) " >&6 597320915927Smrgelse 597420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 597520915927Smrg/* end confdefs.h. */ 597620915927Smrgint i; 597720915927Smrg_ACEOF 597820915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 597920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 598020915927Smrgelse 598120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 598220915927Smrgfi 598320915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 598420915927Smrgfi 598520915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 598620915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 598720915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 598820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 598920915927Smrgfi 599020915927Smrg 599120915927Smrgfound="no" 599220915927Smrg 599320915927Smrg if test $found = "no" ; then 599404449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 599520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 599620915927Smrg fi 599720915927Smrg 599804449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 599920915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 600020915927Smrg fi 600120915927Smrg 600220915927Smrg CFLAGS="$CFLAGS -Wunused" 600320915927Smrg 600420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 600520915927Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; } 600620915927Smrg cacheid=xorg_cv_cc_flag__Wunused 600720915927Smrg if eval \${$cacheid+:} false; then : 600820915927Smrg $as_echo_n "(cached) " >&6 600920915927Smrgelse 601020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 601120915927Smrg/* end confdefs.h. */ 601220915927Smrgint i; 601320915927Smrgint 601420915927Smrgmain () 601520915927Smrg{ 601620915927Smrg 601720915927Smrg ; 601820915927Smrg return 0; 601920915927Smrg} 602020915927Smrg_ACEOF 602120915927Smrgif ac_fn_c_try_link "$LINENO"; then : 602220915927Smrg eval $cacheid=yes 602320915927Smrgelse 602420915927Smrg eval $cacheid=no 602520915927Smrgfi 602620915927Smrgrm -f core conftest.err conftest.$ac_objext \ 602720915927Smrg conftest$ac_exeext conftest.$ac_ext 602820915927Smrgfi 602920915927Smrg 603020915927Smrg 603120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 603220915927Smrg 603320915927Smrg eval supported=\$$cacheid 603420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 603520915927Smrg$as_echo "$supported" >&6; } 603620915927Smrg if test "$supported" = "yes" ; then 603720915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 603820915927Smrg found="yes" 603920915927Smrg fi 604020915927Smrg fi 604120915927Smrg 604220915927Smrg 604320915927Smrg 604420915927Smrg 604520915927Smrg 604620915927Smrg 604720915927Smrg 604820915927Smrg 604920915927Smrg 605020915927Smrg 605120915927Smrg 605220915927Smrg 605320915927Smrg 605420915927Smrg 605520915927Smrg 605620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 605720915927Smrg 605820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 605920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 606020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 606120915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 606220915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 606320915927Smrg $as_echo_n "(cached) " >&6 606420915927Smrgelse 606520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 606620915927Smrg/* end confdefs.h. */ 606720915927Smrgint i; 606820915927Smrg_ACEOF 606920915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 607020915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 607120915927Smrgelse 607220915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 607320915927Smrgfi 607420915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 607520915927Smrgfi 607620915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 607720915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 607820915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 607920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 608020915927Smrgfi 608120915927Smrg 608220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 608320915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 608420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 608520915927Smrg fi 608620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 608720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 608820915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 608920915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 609020915927Smrg $as_echo_n "(cached) " >&6 609120915927Smrgelse 609220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 609320915927Smrg/* end confdefs.h. */ 609420915927Smrgint i; 609520915927Smrg_ACEOF 609620915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 609720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 609820915927Smrgelse 609920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 610020915927Smrgfi 610120915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 610220915927Smrgfi 610320915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 610420915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 610520915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 610620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 610720915927Smrgfi 610820915927Smrg 610920915927Smrgfound="no" 611020915927Smrg 611120915927Smrg if test $found = "no" ; then 611204449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 611320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 611420915927Smrg fi 611520915927Smrg 611604449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 611720915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 611820915927Smrg fi 611920915927Smrg 612020915927Smrg CFLAGS="$CFLAGS -Wuninitialized" 612120915927Smrg 612220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 612320915927Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 612420915927Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 612520915927Smrg if eval \${$cacheid+:} false; then : 612620915927Smrg $as_echo_n "(cached) " >&6 612720915927Smrgelse 612820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 612920915927Smrg/* end confdefs.h. */ 613020915927Smrgint i; 613120915927Smrgint 613220915927Smrgmain () 613320915927Smrg{ 613420915927Smrg 613520915927Smrg ; 613620915927Smrg return 0; 613720915927Smrg} 613820915927Smrg_ACEOF 613920915927Smrgif ac_fn_c_try_link "$LINENO"; then : 614020915927Smrg eval $cacheid=yes 614120915927Smrgelse 614220915927Smrg eval $cacheid=no 614320915927Smrgfi 614420915927Smrgrm -f core conftest.err conftest.$ac_objext \ 614520915927Smrg conftest$ac_exeext conftest.$ac_ext 614620915927Smrgfi 614720915927Smrg 614820915927Smrg 614920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 615020915927Smrg 615120915927Smrg eval supported=\$$cacheid 615220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 615320915927Smrg$as_echo "$supported" >&6; } 615420915927Smrg if test "$supported" = "yes" ; then 615520915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 615620915927Smrg found="yes" 615720915927Smrg fi 615820915927Smrg fi 615920915927Smrg 616020915927Smrg 616120915927Smrg 616220915927Smrg 616320915927Smrg 616420915927Smrg 616520915927Smrg 616620915927Smrg 616720915927Smrg 616820915927Smrg 616920915927Smrg 617020915927Smrg 617120915927Smrg 617220915927Smrg 617320915927Smrg 617420915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 617520915927Smrg 617620915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 617720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 617820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 617920915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 618020915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 618120915927Smrg $as_echo_n "(cached) " >&6 618220915927Smrgelse 618320915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 618420915927Smrg/* end confdefs.h. */ 618520915927Smrgint i; 618620915927Smrg_ACEOF 618720915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 618820915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 618920915927Smrgelse 619020915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 619120915927Smrgfi 619220915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 619320915927Smrgfi 619420915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 619520915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 619620915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 619720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 619820915927Smrgfi 619920915927Smrg 620020915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 620120915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 620220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 620320915927Smrg fi 620420915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 620520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 620620915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 620720915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 620820915927Smrg $as_echo_n "(cached) " >&6 620920915927Smrgelse 621020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 621120915927Smrg/* end confdefs.h. */ 621220915927Smrgint i; 621320915927Smrg_ACEOF 621420915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 621520915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 621620915927Smrgelse 621720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 621820915927Smrgfi 621920915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 622020915927Smrgfi 622120915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 622220915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 622320915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 622420915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 622520915927Smrgfi 622620915927Smrg 622720915927Smrgfound="no" 622820915927Smrg 622920915927Smrg if test $found = "no" ; then 623004449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 623120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 623220915927Smrg fi 623320915927Smrg 623404449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 623520915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 623620915927Smrg fi 623720915927Smrg 623820915927Smrg CFLAGS="$CFLAGS -Wshadow" 623920915927Smrg 624020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 624120915927Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 624220915927Smrg cacheid=xorg_cv_cc_flag__Wshadow 624320915927Smrg if eval \${$cacheid+:} false; then : 624420915927Smrg $as_echo_n "(cached) " >&6 624520915927Smrgelse 624620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 624720915927Smrg/* end confdefs.h. */ 624820915927Smrgint i; 624920915927Smrgint 625020915927Smrgmain () 625120915927Smrg{ 625220915927Smrg 625320915927Smrg ; 625420915927Smrg return 0; 625520915927Smrg} 625620915927Smrg_ACEOF 625720915927Smrgif ac_fn_c_try_link "$LINENO"; then : 625820915927Smrg eval $cacheid=yes 625920915927Smrgelse 626020915927Smrg eval $cacheid=no 626120915927Smrgfi 626220915927Smrgrm -f core conftest.err conftest.$ac_objext \ 626320915927Smrg conftest$ac_exeext conftest.$ac_ext 626420915927Smrgfi 626520915927Smrg 626620915927Smrg 626720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 626820915927Smrg 626920915927Smrg eval supported=\$$cacheid 627020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 627120915927Smrg$as_echo "$supported" >&6; } 627220915927Smrg if test "$supported" = "yes" ; then 627320915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 627420915927Smrg found="yes" 627520915927Smrg fi 627620915927Smrg fi 627720915927Smrg 627820915927Smrg 627920915927Smrg 628020915927Smrg 628120915927Smrg 628220915927Smrg 628320915927Smrg 628420915927Smrg 628520915927Smrg 628620915927Smrg 628720915927Smrg 628820915927Smrg 628920915927Smrg 629020915927Smrg 629120915927Smrg 629220915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 629320915927Smrg 629420915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 629520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 629620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 629720915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 629820915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 629920915927Smrg $as_echo_n "(cached) " >&6 630020915927Smrgelse 630120915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 630220915927Smrg/* end confdefs.h. */ 630320915927Smrgint i; 630420915927Smrg_ACEOF 630520915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 630620915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 630720915927Smrgelse 630820915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 630920915927Smrgfi 631020915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 631120915927Smrgfi 631220915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 631320915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 631420915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 631520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 631620915927Smrgfi 631720915927Smrg 631820915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 631920915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 632020915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 632120915927Smrg fi 632220915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 632320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 632420915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 632520915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 632620915927Smrg $as_echo_n "(cached) " >&6 632720915927Smrgelse 632820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 632920915927Smrg/* end confdefs.h. */ 633020915927Smrgint i; 633120915927Smrg_ACEOF 633220915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 633320915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 633420915927Smrgelse 633520915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 633620915927Smrgfi 633720915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 633820915927Smrgfi 633920915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 634020915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 634120915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 634220915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 634320915927Smrgfi 634420915927Smrg 634520915927Smrgfound="no" 634620915927Smrg 634720915927Smrg if test $found = "no" ; then 634804449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 634920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 635020915927Smrg fi 635120915927Smrg 635204449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 635320915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 635420915927Smrg fi 635520915927Smrg 635604449c54Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 635720915927Smrg 635804449c54Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 635904449c54Smrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 636004449c54Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 636120915927Smrg if eval \${$cacheid+:} false; then : 636220915927Smrg $as_echo_n "(cached) " >&6 636320915927Smrgelse 636420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 636520915927Smrg/* end confdefs.h. */ 636620915927Smrgint i; 636720915927Smrgint 636820915927Smrgmain () 636920915927Smrg{ 637020915927Smrg 637120915927Smrg ; 637220915927Smrg return 0; 637320915927Smrg} 637420915927Smrg_ACEOF 637520915927Smrgif ac_fn_c_try_link "$LINENO"; then : 637620915927Smrg eval $cacheid=yes 637720915927Smrgelse 637820915927Smrg eval $cacheid=no 637920915927Smrgfi 638020915927Smrgrm -f core conftest.err conftest.$ac_objext \ 638120915927Smrg conftest$ac_exeext conftest.$ac_ext 638220915927Smrgfi 638320915927Smrg 638420915927Smrg 638520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 638620915927Smrg 638720915927Smrg eval supported=\$$cacheid 638820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 638920915927Smrg$as_echo "$supported" >&6; } 639020915927Smrg if test "$supported" = "yes" ; then 639104449c54Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 639220915927Smrg found="yes" 639320915927Smrg fi 639420915927Smrg fi 639520915927Smrg 639620915927Smrg 639720915927Smrg 639820915927Smrg 639920915927Smrg 640020915927Smrg 640120915927Smrg 640220915927Smrg 640320915927Smrg 640420915927Smrg 640520915927Smrg 640620915927Smrg 640720915927Smrg 640820915927Smrg 640920915927Smrg 641020915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 641120915927Smrg 641220915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 641320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 641420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 641520915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 641620915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 641720915927Smrg $as_echo_n "(cached) " >&6 641820915927Smrgelse 641920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 642020915927Smrg/* end confdefs.h. */ 642120915927Smrgint i; 642220915927Smrg_ACEOF 642320915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 642420915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 642520915927Smrgelse 642620915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 642720915927Smrgfi 642820915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 642920915927Smrgfi 643020915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 643120915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 643220915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 643320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 643420915927Smrgfi 643520915927Smrg 643620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 643720915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 643820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 643920915927Smrg fi 644020915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 644120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 644220915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 644320915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 644420915927Smrg $as_echo_n "(cached) " >&6 644520915927Smrgelse 644620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 644720915927Smrg/* end confdefs.h. */ 644820915927Smrgint i; 644920915927Smrg_ACEOF 645020915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 645120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 645220915927Smrgelse 645320915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 645420915927Smrgfi 645520915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 645620915927Smrgfi 645720915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 645820915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 645920915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 646020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 646120915927Smrgfi 646220915927Smrg 646320915927Smrgfound="no" 646420915927Smrg 646520915927Smrg if test $found = "no" ; then 646604449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 646720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 646820915927Smrg fi 646920915927Smrg 647004449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 647120915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 647220915927Smrg fi 647320915927Smrg 647404449c54Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 647520915927Smrg 647604449c54Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 647704449c54Smrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 647804449c54Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 647920915927Smrg if eval \${$cacheid+:} false; then : 648020915927Smrg $as_echo_n "(cached) " >&6 648120915927Smrgelse 648220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 648320915927Smrg/* end confdefs.h. */ 648420915927Smrgint i; 648520915927Smrgint 648620915927Smrgmain () 648720915927Smrg{ 648820915927Smrg 648920915927Smrg ; 649020915927Smrg return 0; 649120915927Smrg} 649220915927Smrg_ACEOF 649320915927Smrgif ac_fn_c_try_link "$LINENO"; then : 649420915927Smrg eval $cacheid=yes 649520915927Smrgelse 649620915927Smrg eval $cacheid=no 649720915927Smrgfi 649820915927Smrgrm -f core conftest.err conftest.$ac_objext \ 649920915927Smrg conftest$ac_exeext conftest.$ac_ext 650020915927Smrgfi 650120915927Smrg 650220915927Smrg 650320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 650420915927Smrg 650520915927Smrg eval supported=\$$cacheid 650620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 650720915927Smrg$as_echo "$supported" >&6; } 650820915927Smrg if test "$supported" = "yes" ; then 650904449c54Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 651020915927Smrg found="yes" 651120915927Smrg fi 651220915927Smrg fi 651320915927Smrg 651420915927Smrg 651520915927Smrg 651620915927Smrg 651720915927Smrg 651820915927Smrg 651920915927Smrg 652020915927Smrg 652120915927Smrg 652220915927Smrg 652320915927Smrg 652420915927Smrg 652520915927Smrg 652620915927Smrg 652720915927Smrg 652820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 652920915927Smrg 653020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 653120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 653220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 653320915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 653420915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 653520915927Smrg $as_echo_n "(cached) " >&6 653620915927Smrgelse 653720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 653820915927Smrg/* end confdefs.h. */ 653920915927Smrgint i; 654020915927Smrg_ACEOF 654120915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 654220915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 654320915927Smrgelse 654420915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 654520915927Smrgfi 654620915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 654720915927Smrgfi 654820915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 654920915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 655020915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 655120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 655220915927Smrgfi 655320915927Smrg 655420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 655520915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 655620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 655720915927Smrg fi 655820915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 655920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 656020915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 656120915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 656220915927Smrg $as_echo_n "(cached) " >&6 656320915927Smrgelse 656420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 656520915927Smrg/* end confdefs.h. */ 656620915927Smrgint i; 656720915927Smrg_ACEOF 656820915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 656920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 657020915927Smrgelse 657120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 657220915927Smrgfi 657320915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 657420915927Smrgfi 657520915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 657620915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 657720915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 657820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 657920915927Smrgfi 658020915927Smrg 658120915927Smrgfound="no" 658220915927Smrg 658320915927Smrg if test $found = "no" ; then 658404449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 658520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 658620915927Smrg fi 658720915927Smrg 658804449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 658920915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 659020915927Smrg fi 659120915927Smrg 659204449c54Smrg CFLAGS="$CFLAGS -Wredundant-decls" 659320915927Smrg 659404449c54Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 659504449c54Smrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 659604449c54Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 659720915927Smrg if eval \${$cacheid+:} false; then : 659820915927Smrg $as_echo_n "(cached) " >&6 659920915927Smrgelse 660020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 660120915927Smrg/* end confdefs.h. */ 660220915927Smrgint i; 660320915927Smrgint 660420915927Smrgmain () 660520915927Smrg{ 660620915927Smrg 660720915927Smrg ; 660820915927Smrg return 0; 660920915927Smrg} 661020915927Smrg_ACEOF 661120915927Smrgif ac_fn_c_try_link "$LINENO"; then : 661220915927Smrg eval $cacheid=yes 661320915927Smrgelse 661420915927Smrg eval $cacheid=no 661520915927Smrgfi 661620915927Smrgrm -f core conftest.err conftest.$ac_objext \ 661720915927Smrg conftest$ac_exeext conftest.$ac_ext 661820915927Smrgfi 661920915927Smrg 662020915927Smrg 662120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 662220915927Smrg 662320915927Smrg eval supported=\$$cacheid 662420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 662520915927Smrg$as_echo "$supported" >&6; } 662620915927Smrg if test "$supported" = "yes" ; then 662704449c54Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 662820915927Smrg found="yes" 662920915927Smrg fi 663020915927Smrg fi 663120915927Smrg 663220915927Smrg 663320915927Smrg 663420915927Smrg 663520915927Smrg 663620915927Smrg 663720915927Smrg 663820915927Smrg 663920915927Smrg 664020915927Smrg 664120915927Smrg 664220915927Smrg 664320915927Smrg 664420915927Smrg 664520915927Smrg 664620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 664720915927Smrg 664820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 664920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 665020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 665120915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 665220915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 665320915927Smrg $as_echo_n "(cached) " >&6 665420915927Smrgelse 665520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 665620915927Smrg/* end confdefs.h. */ 665720915927Smrgint i; 665820915927Smrg_ACEOF 665920915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 666020915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 666120915927Smrgelse 666220915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 666320915927Smrgfi 666420915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 666520915927Smrgfi 666620915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 666720915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 666820915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 666920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 667020915927Smrgfi 667120915927Smrg 667220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 667320915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 667420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 667520915927Smrg fi 667620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 667720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 667820915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 667920915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 668020915927Smrg $as_echo_n "(cached) " >&6 668120915927Smrgelse 668220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 668320915927Smrg/* end confdefs.h. */ 668420915927Smrgint i; 668520915927Smrg_ACEOF 668620915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 668720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 668820915927Smrgelse 668920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 669020915927Smrgfi 669120915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 669220915927Smrgfi 669320915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 669420915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 669520915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 669620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 669720915927Smrgfi 669820915927Smrg 669920915927Smrgfound="no" 670020915927Smrg 670120915927Smrg if test $found = "no" ; then 670204449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 670320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 670420915927Smrg fi 670520915927Smrg 670604449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 670720915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 670820915927Smrg fi 670920915927Smrg 671004449c54Smrg CFLAGS="$CFLAGS -Wlogical-op" 671120915927Smrg 671204449c54Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 671304449c54Smrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 671404449c54Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 671520915927Smrg if eval \${$cacheid+:} false; then : 671620915927Smrg $as_echo_n "(cached) " >&6 671720915927Smrgelse 671820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 671920915927Smrg/* end confdefs.h. */ 672020915927Smrgint i; 672120915927Smrgint 672220915927Smrgmain () 672320915927Smrg{ 672420915927Smrg 672520915927Smrg ; 672620915927Smrg return 0; 672720915927Smrg} 672820915927Smrg_ACEOF 672920915927Smrgif ac_fn_c_try_link "$LINENO"; then : 673020915927Smrg eval $cacheid=yes 673120915927Smrgelse 673220915927Smrg eval $cacheid=no 673320915927Smrgfi 673420915927Smrgrm -f core conftest.err conftest.$ac_objext \ 673520915927Smrg conftest$ac_exeext conftest.$ac_ext 673620915927Smrgfi 673720915927Smrg 673820915927Smrg 673920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 674020915927Smrg 674120915927Smrg eval supported=\$$cacheid 674220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 674320915927Smrg$as_echo "$supported" >&6; } 674420915927Smrg if test "$supported" = "yes" ; then 674504449c54Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 674620915927Smrg found="yes" 674720915927Smrg fi 674820915927Smrg fi 674920915927Smrg 675020915927Smrg 675120915927Smrg 675220915927Smrg# These are currently disabled because they are noisy. They will be enabled 675320915927Smrg# in the future once the codebase is sufficiently modernized to silence 675420915927Smrg# them. For now, I don't want them to drown out the other warnings. 675520915927Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 675620915927Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 675704449c54Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 675820915927Smrg 675920915927Smrg# Turn some warnings into errors, so we don't accidently get successful builds 676020915927Smrg# when there are problems that should be fixed. 676120915927Smrg 676220915927Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 676320915927Smrg 676420915927Smrg 676520915927Smrg 676620915927Smrg 676720915927Smrg 676820915927Smrg 676920915927Smrg 677020915927Smrg 677120915927Smrg 677220915927Smrg 677320915927Smrg 677420915927Smrg 677520915927Smrg 677620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 677720915927Smrg 677820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 677920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 678020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 678120915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 678220915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 678320915927Smrg $as_echo_n "(cached) " >&6 678420915927Smrgelse 678520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 678620915927Smrg/* end confdefs.h. */ 678720915927Smrgint i; 678820915927Smrg_ACEOF 678920915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 679020915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 679120915927Smrgelse 679220915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 679320915927Smrgfi 679420915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 679520915927Smrgfi 679620915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 679720915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 679820915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 679920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 680020915927Smrgfi 680120915927Smrg 680220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 680320915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 680420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 680520915927Smrg fi 680620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 680720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 680820915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 680920915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 681020915927Smrg $as_echo_n "(cached) " >&6 681120915927Smrgelse 681220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 681320915927Smrg/* end confdefs.h. */ 681420915927Smrgint i; 681520915927Smrg_ACEOF 681620915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 681720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 681820915927Smrgelse 681920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 682020915927Smrgfi 682120915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 682220915927Smrgfi 682320915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 682420915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 682520915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 682620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 682720915927Smrgfi 682820915927Smrg 682920915927Smrgfound="no" 683020915927Smrg 683120915927Smrg if test $found = "no" ; then 683204449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 683320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 683420915927Smrg fi 683520915927Smrg 683604449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 683720915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 683820915927Smrg fi 683920915927Smrg 684020915927Smrg CFLAGS="$CFLAGS -Werror=implicit" 684120915927Smrg 684220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 684320915927Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 684404449c54Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 684520915927Smrg if eval \${$cacheid+:} false; then : 684620915927Smrg $as_echo_n "(cached) " >&6 684720915927Smrgelse 684820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 684920915927Smrg/* end confdefs.h. */ 685020915927Smrgint i; 685120915927Smrgint 685220915927Smrgmain () 685320915927Smrg{ 685420915927Smrg 685520915927Smrg ; 685620915927Smrg return 0; 685720915927Smrg} 685820915927Smrg_ACEOF 685920915927Smrgif ac_fn_c_try_link "$LINENO"; then : 686020915927Smrg eval $cacheid=yes 686120915927Smrgelse 686220915927Smrg eval $cacheid=no 686320915927Smrgfi 686420915927Smrgrm -f core conftest.err conftest.$ac_objext \ 686520915927Smrg conftest$ac_exeext conftest.$ac_ext 686620915927Smrgfi 686720915927Smrg 686820915927Smrg 686920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 687020915927Smrg 687120915927Smrg eval supported=\$$cacheid 687220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 687320915927Smrg$as_echo "$supported" >&6; } 687420915927Smrg if test "$supported" = "yes" ; then 687520915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 687620915927Smrg found="yes" 687720915927Smrg fi 687820915927Smrg fi 687920915927Smrg 688020915927Smrg if test $found = "no" ; then 688104449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 688220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 688320915927Smrg fi 688420915927Smrg 688504449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 688620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 688720915927Smrg fi 688820915927Smrg 688920915927Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 689020915927Smrg 689120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 689220915927Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 689304449c54Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 689420915927Smrg if eval \${$cacheid+:} false; then : 689520915927Smrg $as_echo_n "(cached) " >&6 689620915927Smrgelse 689720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 689820915927Smrg/* end confdefs.h. */ 689920915927Smrgint i; 690020915927Smrgint 690120915927Smrgmain () 690220915927Smrg{ 690320915927Smrg 690420915927Smrg ; 690520915927Smrg return 0; 690620915927Smrg} 690720915927Smrg_ACEOF 690820915927Smrgif ac_fn_c_try_link "$LINENO"; then : 690920915927Smrg eval $cacheid=yes 691020915927Smrgelse 691120915927Smrg eval $cacheid=no 691220915927Smrgfi 691320915927Smrgrm -f core conftest.err conftest.$ac_objext \ 691420915927Smrg conftest$ac_exeext conftest.$ac_ext 691520915927Smrgfi 691620915927Smrg 691720915927Smrg 691820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 691920915927Smrg 692020915927Smrg eval supported=\$$cacheid 692120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 692220915927Smrg$as_echo "$supported" >&6; } 692320915927Smrg if test "$supported" = "yes" ; then 692420915927Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 692520915927Smrg found="yes" 692620915927Smrg fi 692720915927Smrg fi 692820915927Smrg 692920915927Smrg 693020915927Smrg 693120915927Smrg 693220915927Smrg 693320915927Smrg 693420915927Smrg 693520915927Smrg 693620915927Smrg 693720915927Smrg 693820915927Smrg 693920915927Smrg 694020915927Smrg 694120915927Smrg 694220915927Smrg 694320915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 694420915927Smrg 694520915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 694620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 694720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 694820915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 694920915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 695020915927Smrg $as_echo_n "(cached) " >&6 695120915927Smrgelse 695220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 695320915927Smrg/* end confdefs.h. */ 695420915927Smrgint i; 695520915927Smrg_ACEOF 695620915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 695720915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 695820915927Smrgelse 695920915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 696020915927Smrgfi 696120915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 696220915927Smrgfi 696320915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 696420915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 696520915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 696620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 696720915927Smrgfi 696820915927Smrg 696920915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 697020915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 697120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 697220915927Smrg fi 697320915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 697420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 697520915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 697620915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 697720915927Smrg $as_echo_n "(cached) " >&6 697820915927Smrgelse 697920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 698020915927Smrg/* end confdefs.h. */ 698120915927Smrgint i; 698220915927Smrg_ACEOF 698320915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 698420915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 698520915927Smrgelse 698620915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 698720915927Smrgfi 698820915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 698920915927Smrgfi 699020915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 699120915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 699220915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 699320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 699420915927Smrgfi 699520915927Smrg 699620915927Smrgfound="no" 699720915927Smrg 699820915927Smrg if test $found = "no" ; then 699904449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 700020915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 700120915927Smrg fi 700220915927Smrg 700304449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 700420915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 700520915927Smrg fi 700620915927Smrg 700720915927Smrg CFLAGS="$CFLAGS -Werror=nonnull" 700820915927Smrg 700920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 701020915927Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 701104449c54Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 701220915927Smrg if eval \${$cacheid+:} false; then : 701320915927Smrg $as_echo_n "(cached) " >&6 701420915927Smrgelse 701520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 701620915927Smrg/* end confdefs.h. */ 701720915927Smrgint i; 701820915927Smrgint 701920915927Smrgmain () 702020915927Smrg{ 702120915927Smrg 702220915927Smrg ; 702320915927Smrg return 0; 702420915927Smrg} 702520915927Smrg_ACEOF 702620915927Smrgif ac_fn_c_try_link "$LINENO"; then : 702720915927Smrg eval $cacheid=yes 702820915927Smrgelse 702920915927Smrg eval $cacheid=no 703020915927Smrgfi 703120915927Smrgrm -f core conftest.err conftest.$ac_objext \ 703220915927Smrg conftest$ac_exeext conftest.$ac_ext 703320915927Smrgfi 703420915927Smrg 703520915927Smrg 703620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 703720915927Smrg 703820915927Smrg eval supported=\$$cacheid 703920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 704020915927Smrg$as_echo "$supported" >&6; } 704120915927Smrg if test "$supported" = "yes" ; then 704220915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 704320915927Smrg found="yes" 704420915927Smrg fi 704520915927Smrg fi 704620915927Smrg 704720915927Smrg 704820915927Smrg 704920915927Smrg 705020915927Smrg 705120915927Smrg 705220915927Smrg 705320915927Smrg 705420915927Smrg 705520915927Smrg 705620915927Smrg 705720915927Smrg 705820915927Smrg 705920915927Smrg 706020915927Smrg 706120915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 706220915927Smrg 706320915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 706420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 706520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 706620915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 706720915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 706820915927Smrg $as_echo_n "(cached) " >&6 706920915927Smrgelse 707020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 707120915927Smrg/* end confdefs.h. */ 707220915927Smrgint i; 707320915927Smrg_ACEOF 707420915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 707520915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 707620915927Smrgelse 707720915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 707820915927Smrgfi 707920915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 708020915927Smrgfi 708120915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 708220915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 708320915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 708420915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 708520915927Smrgfi 708620915927Smrg 708720915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 708820915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 708920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 709020915927Smrg fi 709120915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 709220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 709320915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 709420915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 709520915927Smrg $as_echo_n "(cached) " >&6 709620915927Smrgelse 709720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 709820915927Smrg/* end confdefs.h. */ 709920915927Smrgint i; 710020915927Smrg_ACEOF 710120915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 710220915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 710320915927Smrgelse 710420915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 710520915927Smrgfi 710620915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 710720915927Smrgfi 710820915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 710920915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 711020915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 711120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 711220915927Smrgfi 711320915927Smrg 711420915927Smrgfound="no" 711520915927Smrg 711620915927Smrg if test $found = "no" ; then 711704449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 711820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 711920915927Smrg fi 712020915927Smrg 712104449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 712220915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 712320915927Smrg fi 712420915927Smrg 712520915927Smrg CFLAGS="$CFLAGS -Werror=init-self" 712620915927Smrg 712720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 712820915927Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 712904449c54Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 713020915927Smrg if eval \${$cacheid+:} false; then : 713120915927Smrg $as_echo_n "(cached) " >&6 713220915927Smrgelse 713320915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 713420915927Smrg/* end confdefs.h. */ 713520915927Smrgint i; 713620915927Smrgint 713720915927Smrgmain () 713820915927Smrg{ 713920915927Smrg 714020915927Smrg ; 714120915927Smrg return 0; 714220915927Smrg} 714320915927Smrg_ACEOF 714420915927Smrgif ac_fn_c_try_link "$LINENO"; then : 714520915927Smrg eval $cacheid=yes 714620915927Smrgelse 714720915927Smrg eval $cacheid=no 714820915927Smrgfi 714920915927Smrgrm -f core conftest.err conftest.$ac_objext \ 715020915927Smrg conftest$ac_exeext conftest.$ac_ext 715120915927Smrgfi 715220915927Smrg 715320915927Smrg 715420915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 715520915927Smrg 715620915927Smrg eval supported=\$$cacheid 715720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 715820915927Smrg$as_echo "$supported" >&6; } 715920915927Smrg if test "$supported" = "yes" ; then 716020915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 716120915927Smrg found="yes" 716220915927Smrg fi 716320915927Smrg fi 716420915927Smrg 716520915927Smrg 716620915927Smrg 716720915927Smrg 716820915927Smrg 716920915927Smrg 717020915927Smrg 717120915927Smrg 717220915927Smrg 717320915927Smrg 717420915927Smrg 717520915927Smrg 717620915927Smrg 717720915927Smrg 717820915927Smrg 717920915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 718020915927Smrg 718120915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 718220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 718320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 718420915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 718520915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 718620915927Smrg $as_echo_n "(cached) " >&6 718720915927Smrgelse 718820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 718920915927Smrg/* end confdefs.h. */ 719020915927Smrgint i; 719120915927Smrg_ACEOF 719220915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 719320915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 719420915927Smrgelse 719520915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 719620915927Smrgfi 719720915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 719820915927Smrgfi 719920915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 720020915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 720120915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 720220915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 720320915927Smrgfi 720420915927Smrg 720520915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 720620915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 720720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 720820915927Smrg fi 720920915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 721020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 721120915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 721220915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 721320915927Smrg $as_echo_n "(cached) " >&6 721420915927Smrgelse 721520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 721620915927Smrg/* end confdefs.h. */ 721720915927Smrgint i; 721820915927Smrg_ACEOF 721920915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 722020915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 722120915927Smrgelse 722220915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 722320915927Smrgfi 722420915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 722520915927Smrgfi 722620915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 722720915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 722820915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 722920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 723020915927Smrgfi 723120915927Smrg 723220915927Smrgfound="no" 723320915927Smrg 723420915927Smrg if test $found = "no" ; then 723504449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 723620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 723720915927Smrg fi 723820915927Smrg 723904449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 724020915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 724120915927Smrg fi 724220915927Smrg 724320915927Smrg CFLAGS="$CFLAGS -Werror=main" 724420915927Smrg 724520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 724620915927Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 724704449c54Smrg cacheid=xorg_cv_cc_flag__Werror_main 724820915927Smrg if eval \${$cacheid+:} false; then : 724920915927Smrg $as_echo_n "(cached) " >&6 725020915927Smrgelse 725120915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 725220915927Smrg/* end confdefs.h. */ 725320915927Smrgint i; 725420915927Smrgint 725520915927Smrgmain () 725620915927Smrg{ 725720915927Smrg 725820915927Smrg ; 725920915927Smrg return 0; 726020915927Smrg} 726120915927Smrg_ACEOF 726220915927Smrgif ac_fn_c_try_link "$LINENO"; then : 726320915927Smrg eval $cacheid=yes 726420915927Smrgelse 726520915927Smrg eval $cacheid=no 726620915927Smrgfi 726720915927Smrgrm -f core conftest.err conftest.$ac_objext \ 726820915927Smrg conftest$ac_exeext conftest.$ac_ext 726920915927Smrgfi 727020915927Smrg 727120915927Smrg 727220915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 727320915927Smrg 727420915927Smrg eval supported=\$$cacheid 727520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 727620915927Smrg$as_echo "$supported" >&6; } 727720915927Smrg if test "$supported" = "yes" ; then 727820915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 727920915927Smrg found="yes" 728020915927Smrg fi 728120915927Smrg fi 728220915927Smrg 728320915927Smrg 728420915927Smrg 728520915927Smrg 728620915927Smrg 728720915927Smrg 728820915927Smrg 728920915927Smrg 729020915927Smrg 729120915927Smrg 729220915927Smrg 729320915927Smrg 729420915927Smrg 729520915927Smrg 729620915927Smrg 729720915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 729820915927Smrg 729920915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 730020915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 730120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 730220915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 730320915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 730420915927Smrg $as_echo_n "(cached) " >&6 730520915927Smrgelse 730620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 730720915927Smrg/* end confdefs.h. */ 730820915927Smrgint i; 730920915927Smrg_ACEOF 731020915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 731120915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 731220915927Smrgelse 731320915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 731420915927Smrgfi 731520915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 731620915927Smrgfi 731720915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 731820915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 731920915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 732020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 732120915927Smrgfi 732220915927Smrg 732320915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 732420915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 732520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 732620915927Smrg fi 732720915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 732820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 732920915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 733020915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 733120915927Smrg $as_echo_n "(cached) " >&6 733220915927Smrgelse 733320915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 733420915927Smrg/* end confdefs.h. */ 733520915927Smrgint i; 733620915927Smrg_ACEOF 733720915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 733820915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 733920915927Smrgelse 734020915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 734120915927Smrgfi 734220915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 734320915927Smrgfi 734420915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 734520915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 734620915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 734720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 734820915927Smrgfi 734920915927Smrg 735020915927Smrgfound="no" 735120915927Smrg 735220915927Smrg if test $found = "no" ; then 735304449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 735420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 735520915927Smrg fi 735620915927Smrg 735704449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 735820915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 735920915927Smrg fi 736020915927Smrg 736120915927Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 736220915927Smrg 736320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 736420915927Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 736504449c54Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 736620915927Smrg if eval \${$cacheid+:} false; then : 736720915927Smrg $as_echo_n "(cached) " >&6 736820915927Smrgelse 736920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 737020915927Smrg/* end confdefs.h. */ 737120915927Smrgint i; 737220915927Smrgint 737320915927Smrgmain () 737420915927Smrg{ 737520915927Smrg 737620915927Smrg ; 737720915927Smrg return 0; 737820915927Smrg} 737920915927Smrg_ACEOF 738020915927Smrgif ac_fn_c_try_link "$LINENO"; then : 738120915927Smrg eval $cacheid=yes 738220915927Smrgelse 738320915927Smrg eval $cacheid=no 738420915927Smrgfi 738520915927Smrgrm -f core conftest.err conftest.$ac_objext \ 738620915927Smrg conftest$ac_exeext conftest.$ac_ext 738720915927Smrgfi 738820915927Smrg 738920915927Smrg 739020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 739120915927Smrg 739220915927Smrg eval supported=\$$cacheid 739320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 739420915927Smrg$as_echo "$supported" >&6; } 739520915927Smrg if test "$supported" = "yes" ; then 739620915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 739720915927Smrg found="yes" 739820915927Smrg fi 739920915927Smrg fi 740020915927Smrg 740120915927Smrg 740220915927Smrg 740320915927Smrg 740420915927Smrg 740520915927Smrg 740620915927Smrg 740720915927Smrg 740820915927Smrg 740920915927Smrg 741020915927Smrg 741120915927Smrg 741220915927Smrg 741320915927Smrg 741420915927Smrg 741520915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 741620915927Smrg 741720915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 741820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 741920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 742020915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 742120915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 742220915927Smrg $as_echo_n "(cached) " >&6 742320915927Smrgelse 742420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 742520915927Smrg/* end confdefs.h. */ 742620915927Smrgint i; 742720915927Smrg_ACEOF 742820915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 742920915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 743020915927Smrgelse 743120915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 743220915927Smrgfi 743320915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 743420915927Smrgfi 743520915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 743620915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 743720915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 743820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 743920915927Smrgfi 744020915927Smrg 744120915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 744220915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 744320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 744420915927Smrg fi 744520915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 744620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 744720915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 744820915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 744920915927Smrg $as_echo_n "(cached) " >&6 745020915927Smrgelse 745120915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 745220915927Smrg/* end confdefs.h. */ 745320915927Smrgint i; 745420915927Smrg_ACEOF 745520915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 745620915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 745720915927Smrgelse 745820915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 745920915927Smrgfi 746020915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 746120915927Smrgfi 746220915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 746320915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 746420915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 746520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 746620915927Smrgfi 746720915927Smrg 746820915927Smrgfound="no" 746920915927Smrg 747020915927Smrg if test $found = "no" ; then 747104449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 747220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 747320915927Smrg fi 747420915927Smrg 747504449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 747620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 747720915927Smrg fi 747820915927Smrg 747920915927Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 748020915927Smrg 748120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 748220915927Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 748304449c54Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 748420915927Smrg if eval \${$cacheid+:} false; then : 748520915927Smrg $as_echo_n "(cached) " >&6 748620915927Smrgelse 748720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 748820915927Smrg/* end confdefs.h. */ 748920915927Smrgint i; 749020915927Smrgint 749120915927Smrgmain () 749220915927Smrg{ 749320915927Smrg 749420915927Smrg ; 749520915927Smrg return 0; 749620915927Smrg} 749720915927Smrg_ACEOF 749820915927Smrgif ac_fn_c_try_link "$LINENO"; then : 749920915927Smrg eval $cacheid=yes 750020915927Smrgelse 750120915927Smrg eval $cacheid=no 750220915927Smrgfi 750320915927Smrgrm -f core conftest.err conftest.$ac_objext \ 750420915927Smrg conftest$ac_exeext conftest.$ac_ext 750520915927Smrgfi 750620915927Smrg 750720915927Smrg 750820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 750920915927Smrg 751020915927Smrg eval supported=\$$cacheid 751120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 751220915927Smrg$as_echo "$supported" >&6; } 751320915927Smrg if test "$supported" = "yes" ; then 751420915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 751520915927Smrg found="yes" 751620915927Smrg fi 751720915927Smrg fi 751820915927Smrg 751920915927Smrg 752020915927Smrg 752120915927Smrg 752220915927Smrg 752320915927Smrg 752420915927Smrg 752520915927Smrg 752620915927Smrg 752720915927Smrg 752820915927Smrg 752920915927Smrg 753020915927Smrg 753120915927Smrg 753220915927Smrg 753320915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 753420915927Smrg 753520915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 753620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 753720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 753820915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 753920915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 754020915927Smrg $as_echo_n "(cached) " >&6 754120915927Smrgelse 754220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 754320915927Smrg/* end confdefs.h. */ 754420915927Smrgint i; 754520915927Smrg_ACEOF 754620915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 754720915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 754820915927Smrgelse 754920915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 755020915927Smrgfi 755120915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 755220915927Smrgfi 755320915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 755420915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 755520915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 755620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 755720915927Smrgfi 755820915927Smrg 755920915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 756020915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 756120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 756220915927Smrg fi 756320915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 756420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 756520915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 756620915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 756720915927Smrg $as_echo_n "(cached) " >&6 756820915927Smrgelse 756920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 757020915927Smrg/* end confdefs.h. */ 757120915927Smrgint i; 757220915927Smrg_ACEOF 757320915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 757420915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 757520915927Smrgelse 757620915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 757720915927Smrgfi 757820915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 757920915927Smrgfi 758020915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 758120915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 758220915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 758320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 758420915927Smrgfi 758520915927Smrg 758620915927Smrgfound="no" 758720915927Smrg 758820915927Smrg if test $found = "no" ; then 758904449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 759020915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 759120915927Smrg fi 759220915927Smrg 759304449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 759420915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 759520915927Smrg fi 759620915927Smrg 759720915927Smrg CFLAGS="$CFLAGS -Werror=return-type" 759820915927Smrg 759920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 760020915927Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 760104449c54Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 760220915927Smrg if eval \${$cacheid+:} false; then : 760320915927Smrg $as_echo_n "(cached) " >&6 760420915927Smrgelse 760520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 760620915927Smrg/* end confdefs.h. */ 760720915927Smrgint i; 760820915927Smrgint 760920915927Smrgmain () 761020915927Smrg{ 761120915927Smrg 761220915927Smrg ; 761320915927Smrg return 0; 761420915927Smrg} 761520915927Smrg_ACEOF 761620915927Smrgif ac_fn_c_try_link "$LINENO"; then : 761720915927Smrg eval $cacheid=yes 761820915927Smrgelse 761920915927Smrg eval $cacheid=no 762020915927Smrgfi 762120915927Smrgrm -f core conftest.err conftest.$ac_objext \ 762220915927Smrg conftest$ac_exeext conftest.$ac_ext 762320915927Smrgfi 762420915927Smrg 762520915927Smrg 762620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 762720915927Smrg 762820915927Smrg eval supported=\$$cacheid 762920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 763020915927Smrg$as_echo "$supported" >&6; } 763120915927Smrg if test "$supported" = "yes" ; then 763220915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 763320915927Smrg found="yes" 763420915927Smrg fi 763520915927Smrg fi 763620915927Smrg 763720915927Smrg if test $found = "no" ; then 763804449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 763920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 764020915927Smrg fi 764120915927Smrg 764204449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 764320915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 764420915927Smrg fi 764520915927Smrg 764620915927Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 764720915927Smrg 764820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 764920915927Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 765004449c54Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 765120915927Smrg if eval \${$cacheid+:} false; then : 765220915927Smrg $as_echo_n "(cached) " >&6 765320915927Smrgelse 765420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 765520915927Smrg/* end confdefs.h. */ 765620915927Smrgint i; 765720915927Smrgint 765820915927Smrgmain () 765920915927Smrg{ 766020915927Smrg 766120915927Smrg ; 766220915927Smrg return 0; 766320915927Smrg} 766420915927Smrg_ACEOF 766520915927Smrgif ac_fn_c_try_link "$LINENO"; then : 766620915927Smrg eval $cacheid=yes 766720915927Smrgelse 766820915927Smrg eval $cacheid=no 766920915927Smrgfi 767020915927Smrgrm -f core conftest.err conftest.$ac_objext \ 767120915927Smrg conftest$ac_exeext conftest.$ac_ext 767220915927Smrgfi 767320915927Smrg 767420915927Smrg 767520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 767620915927Smrg 767720915927Smrg eval supported=\$$cacheid 767820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 767920915927Smrg$as_echo "$supported" >&6; } 768020915927Smrg if test "$supported" = "yes" ; then 768120915927Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 768220915927Smrg found="yes" 768320915927Smrg fi 768420915927Smrg fi 768520915927Smrg 768620915927Smrg 768720915927Smrg 768820915927Smrg 768920915927Smrg 769020915927Smrg 769120915927Smrg 769220915927Smrg 769320915927Smrg 769420915927Smrg 769520915927Smrg 769620915927Smrg 769720915927Smrg 769820915927Smrg 769920915927Smrg 770020915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 770120915927Smrg 770220915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 770320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 770420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 770520915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 770620915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 770720915927Smrg $as_echo_n "(cached) " >&6 770820915927Smrgelse 770920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 771020915927Smrg/* end confdefs.h. */ 771120915927Smrgint i; 771220915927Smrg_ACEOF 771320915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 771420915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 771520915927Smrgelse 771620915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 771720915927Smrgfi 771820915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 771920915927Smrgfi 772020915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 772120915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 772220915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 772320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 772420915927Smrgfi 772520915927Smrg 772620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 772720915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 772820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 772920915927Smrg fi 773020915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 773120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 773220915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 773320915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 773420915927Smrg $as_echo_n "(cached) " >&6 773520915927Smrgelse 773620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 773720915927Smrg/* end confdefs.h. */ 773820915927Smrgint i; 773920915927Smrg_ACEOF 774020915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 774120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 774220915927Smrgelse 774320915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 774420915927Smrgfi 774520915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 774620915927Smrgfi 774720915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 774820915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 774920915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 775020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 775120915927Smrgfi 775220915927Smrg 775320915927Smrgfound="no" 775420915927Smrg 775520915927Smrg if test $found = "no" ; then 775604449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 775720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 775820915927Smrg fi 775920915927Smrg 776004449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 776120915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 776220915927Smrg fi 776320915927Smrg 776420915927Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 776520915927Smrg 776620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 776720915927Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 776804449c54Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 776920915927Smrg if eval \${$cacheid+:} false; then : 777020915927Smrg $as_echo_n "(cached) " >&6 777120915927Smrgelse 777220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 777320915927Smrg/* end confdefs.h. */ 777420915927Smrgint i; 777520915927Smrgint 777620915927Smrgmain () 777720915927Smrg{ 777820915927Smrg 777920915927Smrg ; 778020915927Smrg return 0; 778120915927Smrg} 778220915927Smrg_ACEOF 778320915927Smrgif ac_fn_c_try_link "$LINENO"; then : 778420915927Smrg eval $cacheid=yes 778520915927Smrgelse 778620915927Smrg eval $cacheid=no 778720915927Smrgfi 778820915927Smrgrm -f core conftest.err conftest.$ac_objext \ 778920915927Smrg conftest$ac_exeext conftest.$ac_ext 779020915927Smrgfi 779120915927Smrg 779220915927Smrg 779320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 779420915927Smrg 779520915927Smrg eval supported=\$$cacheid 779620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 779720915927Smrg$as_echo "$supported" >&6; } 779820915927Smrg if test "$supported" = "yes" ; then 779920915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 780020915927Smrg found="yes" 780120915927Smrg fi 780220915927Smrg fi 780320915927Smrg 780420915927Smrg 780520915927Smrg 780620915927Smrg 780720915927Smrg 780820915927Smrg 780920915927Smrg 781020915927Smrg 781120915927Smrg 781220915927Smrg 781320915927Smrg 781420915927Smrg 781520915927Smrg 781620915927Smrg 781720915927Smrg 781820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 781920915927Smrg 782020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 782120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 782220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 782320915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 782420915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 782520915927Smrg $as_echo_n "(cached) " >&6 782620915927Smrgelse 782720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 782820915927Smrg/* end confdefs.h. */ 782920915927Smrgint i; 783020915927Smrg_ACEOF 783120915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 783220915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 783320915927Smrgelse 783420915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 783520915927Smrgfi 783620915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 783720915927Smrgfi 783820915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 783920915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 784020915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 784120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 784220915927Smrgfi 784320915927Smrg 784420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 784520915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 784620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 784720915927Smrg fi 784820915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 784920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 785020915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 785120915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 785220915927Smrg $as_echo_n "(cached) " >&6 785320915927Smrgelse 785420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 785520915927Smrg/* end confdefs.h. */ 785620915927Smrgint i; 785720915927Smrg_ACEOF 785820915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 785920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 786020915927Smrgelse 786120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 786220915927Smrgfi 786320915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 786420915927Smrgfi 786520915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 786620915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 786720915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 786820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 786920915927Smrgfi 787020915927Smrg 787120915927Smrgfound="no" 787220915927Smrg 787320915927Smrg if test $found = "no" ; then 787404449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 787520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 787620915927Smrg fi 787720915927Smrg 787804449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 787920915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 788020915927Smrg fi 788120915927Smrg 788220915927Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 788320915927Smrg 788420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 788520915927Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 788604449c54Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 788720915927Smrg if eval \${$cacheid+:} false; then : 788820915927Smrg $as_echo_n "(cached) " >&6 788920915927Smrgelse 789020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 789120915927Smrg/* end confdefs.h. */ 789220915927Smrgint i; 789320915927Smrgint 789420915927Smrgmain () 789520915927Smrg{ 789620915927Smrg 789720915927Smrg ; 789820915927Smrg return 0; 789920915927Smrg} 790020915927Smrg_ACEOF 790120915927Smrgif ac_fn_c_try_link "$LINENO"; then : 790220915927Smrg eval $cacheid=yes 790320915927Smrgelse 790420915927Smrg eval $cacheid=no 790520915927Smrgfi 790620915927Smrgrm -f core conftest.err conftest.$ac_objext \ 790720915927Smrg conftest$ac_exeext conftest.$ac_ext 790820915927Smrgfi 790920915927Smrg 791020915927Smrg 791120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 791220915927Smrg 791320915927Smrg eval supported=\$$cacheid 791420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 791520915927Smrg$as_echo "$supported" >&6; } 791620915927Smrg if test "$supported" = "yes" ; then 791720915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 791820915927Smrg found="yes" 791920915927Smrg fi 792020915927Smrg fi 792120915927Smrg 792220915927Smrg 792320915927Smrg 792420915927Smrg 792520915927Smrg 792620915927Smrg 792720915927Smrg 792820915927Smrg 792920915927Smrg 793020915927Smrg 793120915927Smrg 793220915927Smrg 793320915927Smrg 793420915927Smrg 793520915927Smrg 793620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 793720915927Smrg 793820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 793920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 794020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 794120915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 794220915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 794320915927Smrg $as_echo_n "(cached) " >&6 794420915927Smrgelse 794520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 794620915927Smrg/* end confdefs.h. */ 794720915927Smrgint i; 794820915927Smrg_ACEOF 794920915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 795020915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 795120915927Smrgelse 795220915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 795320915927Smrgfi 795420915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 795520915927Smrgfi 795620915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 795720915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 795820915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 795920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 796020915927Smrgfi 796120915927Smrg 796220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 796320915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 796420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 796520915927Smrg fi 796620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 796720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 796820915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 796920915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 797020915927Smrg $as_echo_n "(cached) " >&6 797120915927Smrgelse 797220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 797320915927Smrg/* end confdefs.h. */ 797420915927Smrgint i; 797520915927Smrg_ACEOF 797620915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 797720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 797820915927Smrgelse 797920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 798020915927Smrgfi 798120915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 798220915927Smrgfi 798320915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 798420915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 798520915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 798620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 798720915927Smrgfi 798820915927Smrg 798920915927Smrgfound="no" 799020915927Smrg 799120915927Smrg if test $found = "no" ; then 799204449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 799320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 799420915927Smrg fi 799520915927Smrg 799604449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 799720915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 799820915927Smrg fi 799920915927Smrg 800020915927Smrg CFLAGS="$CFLAGS -Werror=write-strings" 800120915927Smrg 800220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 800320915927Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 800404449c54Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 800520915927Smrg if eval \${$cacheid+:} false; then : 800620915927Smrg $as_echo_n "(cached) " >&6 800720915927Smrgelse 800820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 800920915927Smrg/* end confdefs.h. */ 801020915927Smrgint i; 801120915927Smrgint 801220915927Smrgmain () 801320915927Smrg{ 801420915927Smrg 801520915927Smrg ; 801620915927Smrg return 0; 801720915927Smrg} 801820915927Smrg_ACEOF 801920915927Smrgif ac_fn_c_try_link "$LINENO"; then : 802020915927Smrg eval $cacheid=yes 802120915927Smrgelse 802220915927Smrg eval $cacheid=no 802320915927Smrgfi 802420915927Smrgrm -f core conftest.err conftest.$ac_objext \ 802520915927Smrg conftest$ac_exeext conftest.$ac_ext 802620915927Smrgfi 802720915927Smrg 802820915927Smrg 802920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 803020915927Smrg 803120915927Smrg eval supported=\$$cacheid 803220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 803320915927Smrg$as_echo "$supported" >&6; } 803420915927Smrg if test "$supported" = "yes" ; then 803520915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 803620915927Smrg found="yes" 803720915927Smrg fi 803820915927Smrg fi 803920915927Smrg 804020915927Smrg 804120915927Smrg 804220915927Smrg 804320915927Smrg 804420915927Smrg 804520915927Smrg 804620915927Smrg 804720915927Smrg 804820915927Smrg 804920915927Smrg 805020915927Smrg 805120915927Smrg 805220915927Smrg 805320915927Smrg 805420915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 805520915927Smrg 805620915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 805720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 805820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 805920915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 806020915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 806120915927Smrg $as_echo_n "(cached) " >&6 806220915927Smrgelse 806320915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 806420915927Smrg/* end confdefs.h. */ 806520915927Smrgint i; 806620915927Smrg_ACEOF 806720915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 806820915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 806920915927Smrgelse 807020915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 807120915927Smrgfi 807220915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 807320915927Smrgfi 807420915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 807520915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 807620915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 807720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 807820915927Smrgfi 807920915927Smrg 808020915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 808120915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 808220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 808320915927Smrg fi 808420915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 808520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 808620915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 808720915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 808820915927Smrg $as_echo_n "(cached) " >&6 808920915927Smrgelse 809020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 809120915927Smrg/* end confdefs.h. */ 809220915927Smrgint i; 809320915927Smrg_ACEOF 809420915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 809520915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 809620915927Smrgelse 809720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 809820915927Smrgfi 809920915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 810020915927Smrgfi 810120915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 810220915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 810320915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 810420915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 810520915927Smrgfi 810620915927Smrg 810720915927Smrgfound="no" 810820915927Smrg 810920915927Smrg if test $found = "no" ; then 811004449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 811120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 811220915927Smrg fi 811320915927Smrg 811404449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 811520915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 811620915927Smrg fi 811720915927Smrg 811820915927Smrg CFLAGS="$CFLAGS -Werror=address" 811920915927Smrg 812020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 812120915927Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 812204449c54Smrg cacheid=xorg_cv_cc_flag__Werror_address 812320915927Smrg if eval \${$cacheid+:} false; then : 812420915927Smrg $as_echo_n "(cached) " >&6 812520915927Smrgelse 812620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 812720915927Smrg/* end confdefs.h. */ 812820915927Smrgint i; 812920915927Smrgint 813020915927Smrgmain () 813120915927Smrg{ 813220915927Smrg 813320915927Smrg ; 813420915927Smrg return 0; 813520915927Smrg} 813620915927Smrg_ACEOF 813720915927Smrgif ac_fn_c_try_link "$LINENO"; then : 813820915927Smrg eval $cacheid=yes 813920915927Smrgelse 814020915927Smrg eval $cacheid=no 814120915927Smrgfi 814220915927Smrgrm -f core conftest.err conftest.$ac_objext \ 814320915927Smrg conftest$ac_exeext conftest.$ac_ext 814420915927Smrgfi 814520915927Smrg 814620915927Smrg 814720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 814820915927Smrg 814920915927Smrg eval supported=\$$cacheid 815020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 815120915927Smrg$as_echo "$supported" >&6; } 815220915927Smrg if test "$supported" = "yes" ; then 815320915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 815420915927Smrg found="yes" 815520915927Smrg fi 815620915927Smrg fi 815720915927Smrg 815820915927Smrg 815920915927Smrg 816020915927Smrg 816120915927Smrg 816220915927Smrg 816320915927Smrg 816420915927Smrg 816520915927Smrg 816620915927Smrg 816720915927Smrg 816820915927Smrg 816920915927Smrg 817020915927Smrg 817120915927Smrg 817220915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 817320915927Smrg 817420915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 817520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 817620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 817720915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 817820915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 817920915927Smrg $as_echo_n "(cached) " >&6 818020915927Smrgelse 818120915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 818220915927Smrg/* end confdefs.h. */ 818320915927Smrgint i; 818420915927Smrg_ACEOF 818520915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 818620915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 818720915927Smrgelse 818820915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 818920915927Smrgfi 819020915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 819120915927Smrgfi 819220915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 819320915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 819420915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 819520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 819620915927Smrgfi 819720915927Smrg 819820915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 819920915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 820020915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 820120915927Smrg fi 820220915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 820320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 820420915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 820520915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 820620915927Smrg $as_echo_n "(cached) " >&6 820720915927Smrgelse 820820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 820920915927Smrg/* end confdefs.h. */ 821020915927Smrgint i; 821120915927Smrg_ACEOF 821220915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 821320915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 821420915927Smrgelse 821520915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 821620915927Smrgfi 821720915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 821820915927Smrgfi 821920915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 822020915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 822120915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 822220915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 822320915927Smrgfi 822420915927Smrg 822520915927Smrgfound="no" 822620915927Smrg 822720915927Smrg if test $found = "no" ; then 822804449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 822920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 823020915927Smrg fi 823120915927Smrg 823204449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 823320915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 823420915927Smrg fi 823520915927Smrg 823620915927Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 823720915927Smrg 823820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 823920915927Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 824004449c54Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 824120915927Smrg if eval \${$cacheid+:} false; then : 824220915927Smrg $as_echo_n "(cached) " >&6 824320915927Smrgelse 824420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 824520915927Smrg/* end confdefs.h. */ 824620915927Smrgint i; 824720915927Smrgint 824820915927Smrgmain () 824920915927Smrg{ 825020915927Smrg 825120915927Smrg ; 825220915927Smrg return 0; 825320915927Smrg} 825420915927Smrg_ACEOF 825520915927Smrgif ac_fn_c_try_link "$LINENO"; then : 825620915927Smrg eval $cacheid=yes 825720915927Smrgelse 825820915927Smrg eval $cacheid=no 825920915927Smrgfi 826020915927Smrgrm -f core conftest.err conftest.$ac_objext \ 826120915927Smrg conftest$ac_exeext conftest.$ac_ext 826220915927Smrgfi 826320915927Smrg 826420915927Smrg 826520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 826620915927Smrg 826720915927Smrg eval supported=\$$cacheid 826820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 826920915927Smrg$as_echo "$supported" >&6; } 827020915927Smrg if test "$supported" = "yes" ; then 827120915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 827220915927Smrg found="yes" 827320915927Smrg fi 827420915927Smrg fi 827520915927Smrg 827620915927Smrg if test $found = "no" ; then 827704449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 827820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 827920915927Smrg fi 828020915927Smrg 828104449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 828220915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 828320915927Smrg fi 828420915927Smrg 828520915927Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 828620915927Smrg 828720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 828820915927Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 828904449c54Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 829020915927Smrg if eval \${$cacheid+:} false; then : 829120915927Smrg $as_echo_n "(cached) " >&6 829220915927Smrgelse 829320915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 829420915927Smrg/* end confdefs.h. */ 829520915927Smrgint i; 829620915927Smrgint 829720915927Smrgmain () 829820915927Smrg{ 829920915927Smrg 830020915927Smrg ; 830120915927Smrg return 0; 830220915927Smrg} 830320915927Smrg_ACEOF 830420915927Smrgif ac_fn_c_try_link "$LINENO"; then : 830520915927Smrg eval $cacheid=yes 830620915927Smrgelse 830720915927Smrg eval $cacheid=no 830820915927Smrgfi 830920915927Smrgrm -f core conftest.err conftest.$ac_objext \ 831020915927Smrg conftest$ac_exeext conftest.$ac_ext 831120915927Smrgfi 831220915927Smrg 831320915927Smrg 831420915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 831520915927Smrg 831620915927Smrg eval supported=\$$cacheid 831720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 831820915927Smrg$as_echo "$supported" >&6; } 831920915927Smrg if test "$supported" = "yes" ; then 832020915927Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 832120915927Smrg found="yes" 832220915927Smrg fi 832320915927Smrg fi 832420915927Smrg 832520915927Smrg 832620915927Smrg 832720915927Smrg 832820915927Smrg 832920915927Smrg 833020915927Smrg 833120915927Smrg 833220915927Smrg 833320915927Smrg 833420915927Smrg 833520915927Smrg 833620915927Smrg 833720915927Smrg 833820915927Smrg 833920915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 834020915927Smrg 834120915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 834220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 834320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 834420915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 834520915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 834620915927Smrg $as_echo_n "(cached) " >&6 834720915927Smrgelse 834820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 834920915927Smrg/* end confdefs.h. */ 835020915927Smrgint i; 835120915927Smrg_ACEOF 835220915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 835320915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 835420915927Smrgelse 835520915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 835620915927Smrgfi 835720915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 835820915927Smrgfi 835920915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 836020915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 836120915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 836220915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 836320915927Smrgfi 836420915927Smrg 836520915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 836620915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 836720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 836820915927Smrg fi 836920915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 837020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 837120915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 837220915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 837320915927Smrg $as_echo_n "(cached) " >&6 837420915927Smrgelse 837520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 837620915927Smrg/* end confdefs.h. */ 837720915927Smrgint i; 837820915927Smrg_ACEOF 837920915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 838020915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 838120915927Smrgelse 838220915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 838320915927Smrgfi 838420915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 838520915927Smrgfi 838620915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 838720915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 838820915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 838920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 839020915927Smrgfi 839120915927Smrg 839220915927Smrgfound="no" 839320915927Smrg 839420915927Smrg if test $found = "no" ; then 839504449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 839620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 839720915927Smrg fi 839820915927Smrg 839904449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 840020915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 840120915927Smrg fi 840220915927Smrg 840320915927Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 840420915927Smrg 840520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 840620915927Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 840704449c54Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 840820915927Smrg if eval \${$cacheid+:} false; then : 840920915927Smrg $as_echo_n "(cached) " >&6 841020915927Smrgelse 841120915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 841220915927Smrg/* end confdefs.h. */ 841320915927Smrgint i; 841420915927Smrgint 841520915927Smrgmain () 841620915927Smrg{ 841720915927Smrg 841820915927Smrg ; 841920915927Smrg return 0; 842020915927Smrg} 842120915927Smrg_ACEOF 842220915927Smrgif ac_fn_c_try_link "$LINENO"; then : 842320915927Smrg eval $cacheid=yes 842420915927Smrgelse 842520915927Smrg eval $cacheid=no 842620915927Smrgfi 842720915927Smrgrm -f core conftest.err conftest.$ac_objext \ 842820915927Smrg conftest$ac_exeext conftest.$ac_ext 842920915927Smrgfi 843020915927Smrg 843120915927Smrg 843220915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 843320915927Smrg 843420915927Smrg eval supported=\$$cacheid 843520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 843620915927Smrg$as_echo "$supported" >&6; } 843720915927Smrg if test "$supported" = "yes" ; then 843820915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 843920915927Smrg found="yes" 844020915927Smrg fi 844120915927Smrg fi 844220915927Smrg 844320915927Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 844420915927Smrgelse 844520915927Smrg{ $as_echo "$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 844620915927Smrg$as_echo "$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;} 844720915927Smrg 844820915927Smrg 844920915927Smrg 845020915927Smrg 845120915927Smrg 845220915927Smrg 845320915927Smrg 845420915927Smrg 845520915927Smrg 845620915927Smrg 845720915927Smrg 845820915927Smrg 845920915927Smrg 846020915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 846120915927Smrg 846220915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 846320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 846420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 846520915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 846620915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 846720915927Smrg $as_echo_n "(cached) " >&6 846820915927Smrgelse 846920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 847020915927Smrg/* end confdefs.h. */ 847120915927Smrgint i; 847220915927Smrg_ACEOF 847320915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 847420915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 847520915927Smrgelse 847620915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 847720915927Smrgfi 847820915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 847920915927Smrgfi 848020915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 848120915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 848220915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 848320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 848420915927Smrgfi 848520915927Smrg 848620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 848720915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 848820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 848920915927Smrg fi 849020915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 849120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 849220915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 849320915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 849420915927Smrg $as_echo_n "(cached) " >&6 849520915927Smrgelse 849620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 849720915927Smrg/* end confdefs.h. */ 849820915927Smrgint i; 849920915927Smrg_ACEOF 850020915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 850120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 850220915927Smrgelse 850320915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 850420915927Smrgfi 850520915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 850620915927Smrgfi 850720915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 850820915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 850920915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 851020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 851120915927Smrgfi 851220915927Smrg 851320915927Smrgfound="no" 851420915927Smrg 851520915927Smrg if test $found = "no" ; then 851604449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 851720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 851820915927Smrg fi 851920915927Smrg 852004449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 852120915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 852220915927Smrg fi 852320915927Smrg 852420915927Smrg CFLAGS="$CFLAGS -Wimplicit" 852520915927Smrg 852620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 852720915927Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 852820915927Smrg cacheid=xorg_cv_cc_flag__Wimplicit 852920915927Smrg if eval \${$cacheid+:} false; then : 853020915927Smrg $as_echo_n "(cached) " >&6 853120915927Smrgelse 853220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 853320915927Smrg/* end confdefs.h. */ 853420915927Smrgint i; 853520915927Smrgint 853620915927Smrgmain () 853720915927Smrg{ 853820915927Smrg 853920915927Smrg ; 854020915927Smrg return 0; 854120915927Smrg} 854220915927Smrg_ACEOF 854320915927Smrgif ac_fn_c_try_link "$LINENO"; then : 854420915927Smrg eval $cacheid=yes 854520915927Smrgelse 854620915927Smrg eval $cacheid=no 854720915927Smrgfi 854820915927Smrgrm -f core conftest.err conftest.$ac_objext \ 854920915927Smrg conftest$ac_exeext conftest.$ac_ext 855020915927Smrgfi 855120915927Smrg 855220915927Smrg 855320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 855420915927Smrg 855520915927Smrg eval supported=\$$cacheid 855620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 855720915927Smrg$as_echo "$supported" >&6; } 855820915927Smrg if test "$supported" = "yes" ; then 855920915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 856020915927Smrg found="yes" 856120915927Smrg fi 856220915927Smrg fi 856320915927Smrg 856420915927Smrg 856520915927Smrg 856620915927Smrg 856720915927Smrg 856820915927Smrg 856920915927Smrg 857020915927Smrg 857120915927Smrg 857220915927Smrg 857320915927Smrg 857420915927Smrg 857520915927Smrg 857620915927Smrg 857720915927Smrg 857820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 857920915927Smrg 858020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 858120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 858220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 858320915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 858420915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 858520915927Smrg $as_echo_n "(cached) " >&6 858620915927Smrgelse 858720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 858820915927Smrg/* end confdefs.h. */ 858920915927Smrgint i; 859020915927Smrg_ACEOF 859120915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 859220915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 859320915927Smrgelse 859420915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 859520915927Smrgfi 859620915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 859720915927Smrgfi 859820915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 859920915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 860020915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 860120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 860220915927Smrgfi 860320915927Smrg 860420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 860520915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 860620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 860720915927Smrg fi 860820915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 860920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 861020915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 861120915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 861220915927Smrg $as_echo_n "(cached) " >&6 861320915927Smrgelse 861420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 861520915927Smrg/* end confdefs.h. */ 861620915927Smrgint i; 861720915927Smrg_ACEOF 861820915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 861920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 862020915927Smrgelse 862120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 862220915927Smrgfi 862320915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 862420915927Smrgfi 862520915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 862620915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 862720915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 862820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 862920915927Smrgfi 863020915927Smrg 863120915927Smrgfound="no" 863220915927Smrg 863320915927Smrg if test $found = "no" ; then 863404449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 863520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 863620915927Smrg fi 863720915927Smrg 863804449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 863920915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 864020915927Smrg fi 864120915927Smrg 864220915927Smrg CFLAGS="$CFLAGS -Wnonnull" 864320915927Smrg 864420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 864520915927Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 864620915927Smrg cacheid=xorg_cv_cc_flag__Wnonnull 864720915927Smrg if eval \${$cacheid+:} false; then : 864820915927Smrg $as_echo_n "(cached) " >&6 864920915927Smrgelse 865020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 865120915927Smrg/* end confdefs.h. */ 865220915927Smrgint i; 865320915927Smrgint 865420915927Smrgmain () 865520915927Smrg{ 865620915927Smrg 865720915927Smrg ; 865820915927Smrg return 0; 865920915927Smrg} 866020915927Smrg_ACEOF 866120915927Smrgif ac_fn_c_try_link "$LINENO"; then : 866220915927Smrg eval $cacheid=yes 866320915927Smrgelse 866420915927Smrg eval $cacheid=no 866520915927Smrgfi 866620915927Smrgrm -f core conftest.err conftest.$ac_objext \ 866720915927Smrg conftest$ac_exeext conftest.$ac_ext 866820915927Smrgfi 866920915927Smrg 867020915927Smrg 867120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 867220915927Smrg 867320915927Smrg eval supported=\$$cacheid 867420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 867520915927Smrg$as_echo "$supported" >&6; } 867620915927Smrg if test "$supported" = "yes" ; then 867720915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 867820915927Smrg found="yes" 867920915927Smrg fi 868020915927Smrg fi 868120915927Smrg 868220915927Smrg 868320915927Smrg 868420915927Smrg 868520915927Smrg 868620915927Smrg 868720915927Smrg 868820915927Smrg 868920915927Smrg 869020915927Smrg 869120915927Smrg 869220915927Smrg 869320915927Smrg 869420915927Smrg 869520915927Smrg 869620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 869720915927Smrg 869820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 869920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 870020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 870120915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 870220915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 870320915927Smrg $as_echo_n "(cached) " >&6 870420915927Smrgelse 870520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 870620915927Smrg/* end confdefs.h. */ 870720915927Smrgint i; 870820915927Smrg_ACEOF 870920915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 871020915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 871120915927Smrgelse 871220915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 871320915927Smrgfi 871420915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 871520915927Smrgfi 871620915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 871720915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 871820915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 871920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 872020915927Smrgfi 872120915927Smrg 872220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 872320915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 872420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 872520915927Smrg fi 872620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 872720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 872820915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 872920915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 873020915927Smrg $as_echo_n "(cached) " >&6 873120915927Smrgelse 873220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 873320915927Smrg/* end confdefs.h. */ 873420915927Smrgint i; 873520915927Smrg_ACEOF 873620915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 873720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 873820915927Smrgelse 873920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 874020915927Smrgfi 874120915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 874220915927Smrgfi 874320915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 874420915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 874520915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 874620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 874720915927Smrgfi 874820915927Smrg 874920915927Smrgfound="no" 875020915927Smrg 875120915927Smrg if test $found = "no" ; then 875204449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 875320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 875420915927Smrg fi 875520915927Smrg 875604449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 875720915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 875820915927Smrg fi 875920915927Smrg 876020915927Smrg CFLAGS="$CFLAGS -Winit-self" 876120915927Smrg 876220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 876320915927Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 876420915927Smrg cacheid=xorg_cv_cc_flag__Winit_self 876520915927Smrg if eval \${$cacheid+:} false; then : 876620915927Smrg $as_echo_n "(cached) " >&6 876720915927Smrgelse 876820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 876920915927Smrg/* end confdefs.h. */ 877020915927Smrgint i; 877120915927Smrgint 877220915927Smrgmain () 877320915927Smrg{ 877420915927Smrg 877520915927Smrg ; 877620915927Smrg return 0; 877720915927Smrg} 877820915927Smrg_ACEOF 877920915927Smrgif ac_fn_c_try_link "$LINENO"; then : 878020915927Smrg eval $cacheid=yes 878120915927Smrgelse 878220915927Smrg eval $cacheid=no 878320915927Smrgfi 878420915927Smrgrm -f core conftest.err conftest.$ac_objext \ 878520915927Smrg conftest$ac_exeext conftest.$ac_ext 878620915927Smrgfi 878720915927Smrg 878820915927Smrg 878920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 879020915927Smrg 879120915927Smrg eval supported=\$$cacheid 879220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 879320915927Smrg$as_echo "$supported" >&6; } 879420915927Smrg if test "$supported" = "yes" ; then 879520915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 879620915927Smrg found="yes" 879720915927Smrg fi 879820915927Smrg fi 879920915927Smrg 880020915927Smrg 880120915927Smrg 880220915927Smrg 880320915927Smrg 880420915927Smrg 880520915927Smrg 880620915927Smrg 880720915927Smrg 880820915927Smrg 880920915927Smrg 881020915927Smrg 881120915927Smrg 881220915927Smrg 881320915927Smrg 881420915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 881520915927Smrg 881620915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 881720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 881820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 881920915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 882020915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 882120915927Smrg $as_echo_n "(cached) " >&6 882220915927Smrgelse 882320915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 882420915927Smrg/* end confdefs.h. */ 882520915927Smrgint i; 882620915927Smrg_ACEOF 882720915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 882820915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 882920915927Smrgelse 883020915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 883120915927Smrgfi 883220915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 883320915927Smrgfi 883420915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 883520915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 883620915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 883720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 883820915927Smrgfi 883920915927Smrg 884020915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 884120915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 884220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 884320915927Smrg fi 884420915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 884520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 884620915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 884720915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 884820915927Smrg $as_echo_n "(cached) " >&6 884920915927Smrgelse 885020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 885120915927Smrg/* end confdefs.h. */ 885220915927Smrgint i; 885320915927Smrg_ACEOF 885420915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 885520915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 885620915927Smrgelse 885720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 885820915927Smrgfi 885920915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 886020915927Smrgfi 886120915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 886220915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 886320915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 886420915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 886520915927Smrgfi 886620915927Smrg 886720915927Smrgfound="no" 886820915927Smrg 886920915927Smrg if test $found = "no" ; then 887004449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 887120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 887220915927Smrg fi 887320915927Smrg 887404449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 887520915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 887620915927Smrg fi 887720915927Smrg 887820915927Smrg CFLAGS="$CFLAGS -Wmain" 887920915927Smrg 888020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 888120915927Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; } 888220915927Smrg cacheid=xorg_cv_cc_flag__Wmain 888320915927Smrg if eval \${$cacheid+:} false; then : 888420915927Smrg $as_echo_n "(cached) " >&6 888520915927Smrgelse 888620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 888720915927Smrg/* end confdefs.h. */ 888820915927Smrgint i; 888920915927Smrgint 889020915927Smrgmain () 889120915927Smrg{ 889220915927Smrg 889320915927Smrg ; 889420915927Smrg return 0; 889520915927Smrg} 889620915927Smrg_ACEOF 889720915927Smrgif ac_fn_c_try_link "$LINENO"; then : 889820915927Smrg eval $cacheid=yes 889920915927Smrgelse 890020915927Smrg eval $cacheid=no 890120915927Smrgfi 890220915927Smrgrm -f core conftest.err conftest.$ac_objext \ 890320915927Smrg conftest$ac_exeext conftest.$ac_ext 890420915927Smrgfi 890520915927Smrg 890620915927Smrg 890720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 890820915927Smrg 890920915927Smrg eval supported=\$$cacheid 891020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 891120915927Smrg$as_echo "$supported" >&6; } 891220915927Smrg if test "$supported" = "yes" ; then 891320915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 891420915927Smrg found="yes" 891520915927Smrg fi 891620915927Smrg fi 891720915927Smrg 891820915927Smrg 891920915927Smrg 892020915927Smrg 892120915927Smrg 892220915927Smrg 892320915927Smrg 892420915927Smrg 892520915927Smrg 892620915927Smrg 892720915927Smrg 892820915927Smrg 892920915927Smrg 893020915927Smrg 893120915927Smrg 893220915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 893320915927Smrg 893420915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 893520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 893620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 893720915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 893820915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 893920915927Smrg $as_echo_n "(cached) " >&6 894020915927Smrgelse 894120915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 894220915927Smrg/* end confdefs.h. */ 894320915927Smrgint i; 894420915927Smrg_ACEOF 894520915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 894620915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 894720915927Smrgelse 894820915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 894920915927Smrgfi 895020915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 895120915927Smrgfi 895220915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 895320915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 895420915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 895520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 895620915927Smrgfi 895720915927Smrg 895820915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 895920915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 896020915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 896120915927Smrg fi 896220915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 896320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 896420915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 896520915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 896620915927Smrg $as_echo_n "(cached) " >&6 896720915927Smrgelse 896820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 896920915927Smrg/* end confdefs.h. */ 897020915927Smrgint i; 897120915927Smrg_ACEOF 897220915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 897320915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 897420915927Smrgelse 897520915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 897620915927Smrgfi 897720915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 897820915927Smrgfi 897920915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 898020915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 898120915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 898220915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 898320915927Smrgfi 898420915927Smrg 898520915927Smrgfound="no" 898620915927Smrg 898720915927Smrg if test $found = "no" ; then 898804449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 898920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 899020915927Smrg fi 899120915927Smrg 899204449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 899320915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 899420915927Smrg fi 899520915927Smrg 899620915927Smrg CFLAGS="$CFLAGS -Wmissing-braces" 899720915927Smrg 899820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 899920915927Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 900020915927Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 900120915927Smrg if eval \${$cacheid+:} false; then : 900220915927Smrg $as_echo_n "(cached) " >&6 900320915927Smrgelse 900420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 900520915927Smrg/* end confdefs.h. */ 900620915927Smrgint i; 900720915927Smrgint 900820915927Smrgmain () 900920915927Smrg{ 901020915927Smrg 901120915927Smrg ; 901220915927Smrg return 0; 901320915927Smrg} 901420915927Smrg_ACEOF 901520915927Smrgif ac_fn_c_try_link "$LINENO"; then : 901620915927Smrg eval $cacheid=yes 901720915927Smrgelse 901820915927Smrg eval $cacheid=no 901920915927Smrgfi 902020915927Smrgrm -f core conftest.err conftest.$ac_objext \ 902120915927Smrg conftest$ac_exeext conftest.$ac_ext 902220915927Smrgfi 902320915927Smrg 902420915927Smrg 902520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 902620915927Smrg 902720915927Smrg eval supported=\$$cacheid 902820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 902920915927Smrg$as_echo "$supported" >&6; } 903020915927Smrg if test "$supported" = "yes" ; then 903120915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 903220915927Smrg found="yes" 903320915927Smrg fi 903420915927Smrg fi 903520915927Smrg 903620915927Smrg 903720915927Smrg 903820915927Smrg 903920915927Smrg 904020915927Smrg 904120915927Smrg 904220915927Smrg 904320915927Smrg 904420915927Smrg 904520915927Smrg 904620915927Smrg 904720915927Smrg 904820915927Smrg 904920915927Smrg 905020915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 905120915927Smrg 905220915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 905320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 905420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 905520915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 905620915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 905720915927Smrg $as_echo_n "(cached) " >&6 905820915927Smrgelse 905920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 906020915927Smrg/* end confdefs.h. */ 906120915927Smrgint i; 906220915927Smrg_ACEOF 906320915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 906420915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 906520915927Smrgelse 906620915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 906720915927Smrgfi 906820915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 906920915927Smrgfi 907020915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 907120915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 907220915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 907320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 907420915927Smrgfi 907520915927Smrg 907620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 907720915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 907820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 907920915927Smrg fi 908020915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 908120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 908220915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 908320915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 908420915927Smrg $as_echo_n "(cached) " >&6 908520915927Smrgelse 908620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 908720915927Smrg/* end confdefs.h. */ 908820915927Smrgint i; 908920915927Smrg_ACEOF 909020915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 909120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 909220915927Smrgelse 909320915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 909420915927Smrgfi 909520915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 909620915927Smrgfi 909720915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 909820915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 909920915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 910020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 910120915927Smrgfi 910220915927Smrg 910320915927Smrgfound="no" 910420915927Smrg 910520915927Smrg if test $found = "no" ; then 910604449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 910720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 910820915927Smrg fi 910920915927Smrg 911004449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 911120915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 911220915927Smrg fi 911320915927Smrg 911420915927Smrg CFLAGS="$CFLAGS -Wsequence-point" 911520915927Smrg 911620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 911720915927Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 911820915927Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 911920915927Smrg if eval \${$cacheid+:} false; then : 912020915927Smrg $as_echo_n "(cached) " >&6 912120915927Smrgelse 912220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 912320915927Smrg/* end confdefs.h. */ 912420915927Smrgint i; 912520915927Smrgint 912620915927Smrgmain () 912720915927Smrg{ 912820915927Smrg 912920915927Smrg ; 913020915927Smrg return 0; 913120915927Smrg} 913220915927Smrg_ACEOF 913320915927Smrgif ac_fn_c_try_link "$LINENO"; then : 913420915927Smrg eval $cacheid=yes 913520915927Smrgelse 913620915927Smrg eval $cacheid=no 913720915927Smrgfi 913820915927Smrgrm -f core conftest.err conftest.$ac_objext \ 913920915927Smrg conftest$ac_exeext conftest.$ac_ext 914020915927Smrgfi 914120915927Smrg 914220915927Smrg 914320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 914420915927Smrg 914520915927Smrg eval supported=\$$cacheid 914620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 914720915927Smrg$as_echo "$supported" >&6; } 914820915927Smrg if test "$supported" = "yes" ; then 914920915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 915020915927Smrg found="yes" 915120915927Smrg fi 915220915927Smrg fi 915320915927Smrg 915420915927Smrg 915520915927Smrg 915620915927Smrg 915720915927Smrg 915820915927Smrg 915920915927Smrg 916020915927Smrg 916120915927Smrg 916220915927Smrg 916320915927Smrg 916420915927Smrg 916520915927Smrg 916620915927Smrg 916720915927Smrg 916820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 916920915927Smrg 917020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 917120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 917220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 917320915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 917420915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 917520915927Smrg $as_echo_n "(cached) " >&6 917620915927Smrgelse 917720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 917820915927Smrg/* end confdefs.h. */ 917920915927Smrgint i; 918020915927Smrg_ACEOF 918120915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 918220915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 918320915927Smrgelse 918420915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 918520915927Smrgfi 918620915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 918720915927Smrgfi 918820915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 918920915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 919020915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 919120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 919220915927Smrgfi 919320915927Smrg 919420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 919520915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 919620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 919720915927Smrg fi 919820915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 919920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 920020915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 920120915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 920220915927Smrg $as_echo_n "(cached) " >&6 920320915927Smrgelse 920420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 920520915927Smrg/* end confdefs.h. */ 920620915927Smrgint i; 920720915927Smrg_ACEOF 920820915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 920920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 921020915927Smrgelse 921120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 921220915927Smrgfi 921320915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 921420915927Smrgfi 921520915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 921620915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 921720915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 921820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 921920915927Smrgfi 922020915927Smrg 922120915927Smrgfound="no" 922220915927Smrg 922320915927Smrg if test $found = "no" ; then 922404449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 922520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 922620915927Smrg fi 922720915927Smrg 922804449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 922920915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 923020915927Smrg fi 923120915927Smrg 923220915927Smrg CFLAGS="$CFLAGS -Wreturn-type" 923320915927Smrg 923420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 923520915927Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 923620915927Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 923720915927Smrg if eval \${$cacheid+:} false; then : 923820915927Smrg $as_echo_n "(cached) " >&6 923920915927Smrgelse 924020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 924120915927Smrg/* end confdefs.h. */ 924220915927Smrgint i; 924320915927Smrgint 924420915927Smrgmain () 924520915927Smrg{ 924620915927Smrg 924720915927Smrg ; 924820915927Smrg return 0; 924920915927Smrg} 925020915927Smrg_ACEOF 925120915927Smrgif ac_fn_c_try_link "$LINENO"; then : 925220915927Smrg eval $cacheid=yes 925320915927Smrgelse 925420915927Smrg eval $cacheid=no 925520915927Smrgfi 925620915927Smrgrm -f core conftest.err conftest.$ac_objext \ 925720915927Smrg conftest$ac_exeext conftest.$ac_ext 925820915927Smrgfi 925920915927Smrg 926020915927Smrg 926120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 926220915927Smrg 926320915927Smrg eval supported=\$$cacheid 926420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 926520915927Smrg$as_echo "$supported" >&6; } 926620915927Smrg if test "$supported" = "yes" ; then 926720915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 926820915927Smrg found="yes" 926920915927Smrg fi 927020915927Smrg fi 927120915927Smrg 927220915927Smrg 927320915927Smrg 927420915927Smrg 927520915927Smrg 927620915927Smrg 927720915927Smrg 927820915927Smrg 927920915927Smrg 928020915927Smrg 928120915927Smrg 928220915927Smrg 928320915927Smrg 928420915927Smrg 928520915927Smrg 928620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 928720915927Smrg 928820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 928920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 929020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 929120915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 929220915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 929320915927Smrg $as_echo_n "(cached) " >&6 929420915927Smrgelse 929520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 929620915927Smrg/* end confdefs.h. */ 929720915927Smrgint i; 929820915927Smrg_ACEOF 929920915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 930020915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 930120915927Smrgelse 930220915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 930320915927Smrgfi 930420915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 930520915927Smrgfi 930620915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 930720915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 930820915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 930920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 931020915927Smrgfi 931120915927Smrg 931220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 931320915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 931420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 931520915927Smrg fi 931620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 931720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 931820915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 931920915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 932020915927Smrg $as_echo_n "(cached) " >&6 932120915927Smrgelse 932220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 932320915927Smrg/* end confdefs.h. */ 932420915927Smrgint i; 932520915927Smrg_ACEOF 932620915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 932720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 932820915927Smrgelse 932920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 933020915927Smrgfi 933120915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 933220915927Smrgfi 933320915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 933420915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 933520915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 933620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 933720915927Smrgfi 933820915927Smrg 933920915927Smrgfound="no" 934020915927Smrg 934120915927Smrg if test $found = "no" ; then 934204449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 934320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 934420915927Smrg fi 934520915927Smrg 934604449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 934720915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 934820915927Smrg fi 934920915927Smrg 935020915927Smrg CFLAGS="$CFLAGS -Wtrigraphs" 935120915927Smrg 935220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 935320915927Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 935420915927Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 935520915927Smrg if eval \${$cacheid+:} false; then : 935620915927Smrg $as_echo_n "(cached) " >&6 935720915927Smrgelse 935820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 935920915927Smrg/* end confdefs.h. */ 936020915927Smrgint i; 936120915927Smrgint 936220915927Smrgmain () 936320915927Smrg{ 936420915927Smrg 936520915927Smrg ; 936620915927Smrg return 0; 936720915927Smrg} 936820915927Smrg_ACEOF 936920915927Smrgif ac_fn_c_try_link "$LINENO"; then : 937020915927Smrg eval $cacheid=yes 937120915927Smrgelse 937220915927Smrg eval $cacheid=no 937320915927Smrgfi 937420915927Smrgrm -f core conftest.err conftest.$ac_objext \ 937520915927Smrg conftest$ac_exeext conftest.$ac_ext 937620915927Smrgfi 937720915927Smrg 937820915927Smrg 937920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 938020915927Smrg 938120915927Smrg eval supported=\$$cacheid 938220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 938320915927Smrg$as_echo "$supported" >&6; } 938420915927Smrg if test "$supported" = "yes" ; then 938520915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 938620915927Smrg found="yes" 938720915927Smrg fi 938820915927Smrg fi 938920915927Smrg 939020915927Smrg 939120915927Smrg 939220915927Smrg 939320915927Smrg 939420915927Smrg 939520915927Smrg 939620915927Smrg 939720915927Smrg 939820915927Smrg 939920915927Smrg 940020915927Smrg 940120915927Smrg 940220915927Smrg 940320915927Smrg 940420915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 940520915927Smrg 940620915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 940720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 940820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 940920915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 941020915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 941120915927Smrg $as_echo_n "(cached) " >&6 941220915927Smrgelse 941320915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 941420915927Smrg/* end confdefs.h. */ 941520915927Smrgint i; 941620915927Smrg_ACEOF 941720915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 941820915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 941920915927Smrgelse 942020915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 942120915927Smrgfi 942220915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 942320915927Smrgfi 942420915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 942520915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 942620915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 942720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 942820915927Smrgfi 942920915927Smrg 943020915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 943120915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 943220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 943320915927Smrg fi 943420915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 943520915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 943620915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 943720915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 943820915927Smrg $as_echo_n "(cached) " >&6 943920915927Smrgelse 944020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 944120915927Smrg/* end confdefs.h. */ 944220915927Smrgint i; 944320915927Smrg_ACEOF 944420915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 944520915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 944620915927Smrgelse 944720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 944820915927Smrgfi 944920915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 945020915927Smrgfi 945120915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 945220915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 945320915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 945420915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 945520915927Smrgfi 945620915927Smrg 945720915927Smrgfound="no" 945820915927Smrg 945920915927Smrg if test $found = "no" ; then 946004449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 946120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 946220915927Smrg fi 946320915927Smrg 946404449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 946520915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 946620915927Smrg fi 946720915927Smrg 946820915927Smrg CFLAGS="$CFLAGS -Warray-bounds" 946920915927Smrg 947020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 947120915927Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 947220915927Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 947320915927Smrg if eval \${$cacheid+:} false; then : 947420915927Smrg $as_echo_n "(cached) " >&6 947520915927Smrgelse 947620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 947720915927Smrg/* end confdefs.h. */ 947820915927Smrgint i; 947920915927Smrgint 948020915927Smrgmain () 948120915927Smrg{ 948220915927Smrg 948320915927Smrg ; 948420915927Smrg return 0; 948520915927Smrg} 948620915927Smrg_ACEOF 948720915927Smrgif ac_fn_c_try_link "$LINENO"; then : 948820915927Smrg eval $cacheid=yes 948920915927Smrgelse 949020915927Smrg eval $cacheid=no 949120915927Smrgfi 949220915927Smrgrm -f core conftest.err conftest.$ac_objext \ 949320915927Smrg conftest$ac_exeext conftest.$ac_ext 949420915927Smrgfi 949520915927Smrg 949620915927Smrg 949720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 949820915927Smrg 949920915927Smrg eval supported=\$$cacheid 950020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 950120915927Smrg$as_echo "$supported" >&6; } 950220915927Smrg if test "$supported" = "yes" ; then 950320915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 950420915927Smrg found="yes" 950520915927Smrg fi 950620915927Smrg fi 950720915927Smrg 950820915927Smrg 950920915927Smrg 951020915927Smrg 951120915927Smrg 951220915927Smrg 951320915927Smrg 951420915927Smrg 951520915927Smrg 951620915927Smrg 951720915927Smrg 951820915927Smrg 951920915927Smrg 952020915927Smrg 952120915927Smrg 952220915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 952320915927Smrg 952420915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 952520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 952620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 952720915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 952820915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 952920915927Smrg $as_echo_n "(cached) " >&6 953020915927Smrgelse 953120915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 953220915927Smrg/* end confdefs.h. */ 953320915927Smrgint i; 953420915927Smrg_ACEOF 953520915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 953620915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 953720915927Smrgelse 953820915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 953920915927Smrgfi 954020915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 954120915927Smrgfi 954220915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 954320915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 954420915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 954520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 954620915927Smrgfi 954720915927Smrg 954820915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 954920915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 955020915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 955120915927Smrg fi 955220915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 955320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 955420915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 955520915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 955620915927Smrg $as_echo_n "(cached) " >&6 955720915927Smrgelse 955820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 955920915927Smrg/* end confdefs.h. */ 956020915927Smrgint i; 956120915927Smrg_ACEOF 956220915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 956320915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 956420915927Smrgelse 956520915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 956620915927Smrgfi 956720915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 956820915927Smrgfi 956920915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 957020915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 957120915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 957220915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 957320915927Smrgfi 957420915927Smrg 957520915927Smrgfound="no" 957620915927Smrg 957720915927Smrg if test $found = "no" ; then 957804449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 957920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 958020915927Smrg fi 958120915927Smrg 958204449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 958320915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 958420915927Smrg fi 958520915927Smrg 958620915927Smrg CFLAGS="$CFLAGS -Wwrite-strings" 958720915927Smrg 958820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 958920915927Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 959020915927Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 959120915927Smrg if eval \${$cacheid+:} false; then : 959220915927Smrg $as_echo_n "(cached) " >&6 959320915927Smrgelse 959420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 959520915927Smrg/* end confdefs.h. */ 959620915927Smrgint i; 959720915927Smrgint 959820915927Smrgmain () 959920915927Smrg{ 960020915927Smrg 960120915927Smrg ; 960220915927Smrg return 0; 960320915927Smrg} 960420915927Smrg_ACEOF 960520915927Smrgif ac_fn_c_try_link "$LINENO"; then : 960620915927Smrg eval $cacheid=yes 960720915927Smrgelse 960820915927Smrg eval $cacheid=no 960920915927Smrgfi 961020915927Smrgrm -f core conftest.err conftest.$ac_objext \ 961120915927Smrg conftest$ac_exeext conftest.$ac_ext 961220915927Smrgfi 961320915927Smrg 961420915927Smrg 961520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 961620915927Smrg 961720915927Smrg eval supported=\$$cacheid 961820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 961920915927Smrg$as_echo "$supported" >&6; } 962020915927Smrg if test "$supported" = "yes" ; then 962120915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 962220915927Smrg found="yes" 962320915927Smrg fi 962420915927Smrg fi 962520915927Smrg 962620915927Smrg 962720915927Smrg 962820915927Smrg 962920915927Smrg 963020915927Smrg 963120915927Smrg 963220915927Smrg 963320915927Smrg 963420915927Smrg 963520915927Smrg 963620915927Smrg 963720915927Smrg 963820915927Smrg 963920915927Smrg 964020915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 964120915927Smrg 964220915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 964320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 964420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 964520915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 964620915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 964720915927Smrg $as_echo_n "(cached) " >&6 964820915927Smrgelse 964920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 965020915927Smrg/* end confdefs.h. */ 965120915927Smrgint i; 965220915927Smrg_ACEOF 965320915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 965420915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 965520915927Smrgelse 965620915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 965720915927Smrgfi 965820915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 965920915927Smrgfi 966020915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 966120915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 966220915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 966320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 966420915927Smrgfi 966520915927Smrg 966620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 966720915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 966820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 966920915927Smrg fi 967020915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 967120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 967220915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 967320915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 967420915927Smrg $as_echo_n "(cached) " >&6 967520915927Smrgelse 967620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 967720915927Smrg/* end confdefs.h. */ 967820915927Smrgint i; 967920915927Smrg_ACEOF 968020915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 968120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 968220915927Smrgelse 968320915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 968420915927Smrgfi 968520915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 968620915927Smrgfi 968720915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 968820915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 968920915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 969020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 969120915927Smrgfi 969220915927Smrg 969320915927Smrgfound="no" 969420915927Smrg 969520915927Smrg if test $found = "no" ; then 969604449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 969720915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 969820915927Smrg fi 969920915927Smrg 970004449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 970120915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 970220915927Smrg fi 970320915927Smrg 970420915927Smrg CFLAGS="$CFLAGS -Waddress" 970520915927Smrg 970620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 970720915927Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; } 970820915927Smrg cacheid=xorg_cv_cc_flag__Waddress 970920915927Smrg if eval \${$cacheid+:} false; then : 971020915927Smrg $as_echo_n "(cached) " >&6 971120915927Smrgelse 971220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 971320915927Smrg/* end confdefs.h. */ 971420915927Smrgint i; 971520915927Smrgint 971620915927Smrgmain () 971720915927Smrg{ 971820915927Smrg 971920915927Smrg ; 972020915927Smrg return 0; 972120915927Smrg} 972220915927Smrg_ACEOF 972320915927Smrgif ac_fn_c_try_link "$LINENO"; then : 972420915927Smrg eval $cacheid=yes 972520915927Smrgelse 972620915927Smrg eval $cacheid=no 972720915927Smrgfi 972820915927Smrgrm -f core conftest.err conftest.$ac_objext \ 972920915927Smrg conftest$ac_exeext conftest.$ac_ext 973020915927Smrgfi 973120915927Smrg 973220915927Smrg 973320915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 973420915927Smrg 973520915927Smrg eval supported=\$$cacheid 973620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 973720915927Smrg$as_echo "$supported" >&6; } 973820915927Smrg if test "$supported" = "yes" ; then 973920915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 974020915927Smrg found="yes" 974120915927Smrg fi 974220915927Smrg fi 974320915927Smrg 974420915927Smrg 974520915927Smrg 974620915927Smrg 974720915927Smrg 974820915927Smrg 974920915927Smrg 975020915927Smrg 975120915927Smrg 975220915927Smrg 975320915927Smrg 975420915927Smrg 975520915927Smrg 975620915927Smrg 975720915927Smrg 975820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 975920915927Smrg 976020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 976120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 976220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 976320915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 976420915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 976520915927Smrg $as_echo_n "(cached) " >&6 976620915927Smrgelse 976720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 976820915927Smrg/* end confdefs.h. */ 976920915927Smrgint i; 977020915927Smrg_ACEOF 977120915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 977220915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 977320915927Smrgelse 977420915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 977520915927Smrgfi 977620915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 977720915927Smrgfi 977820915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 977920915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 978020915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 978120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 978220915927Smrgfi 978320915927Smrg 978420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 978520915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 978620915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 978720915927Smrg fi 978820915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 978920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 979020915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 979120915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 979220915927Smrg $as_echo_n "(cached) " >&6 979320915927Smrgelse 979420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 979520915927Smrg/* end confdefs.h. */ 979620915927Smrgint i; 979720915927Smrg_ACEOF 979820915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 979920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 980020915927Smrgelse 980120915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 980220915927Smrgfi 980320915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 980420915927Smrgfi 980520915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 980620915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 980720915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 980820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 980920915927Smrgfi 981020915927Smrg 981120915927Smrgfound="no" 981220915927Smrg 981320915927Smrg if test $found = "no" ; then 981404449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 981520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 981620915927Smrg fi 981720915927Smrg 981804449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 981920915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 982020915927Smrg fi 982120915927Smrg 982220915927Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 982320915927Smrg 982420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 982520915927Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 982620915927Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 982720915927Smrg if eval \${$cacheid+:} false; then : 982820915927Smrg $as_echo_n "(cached) " >&6 982920915927Smrgelse 983020915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 983120915927Smrg/* end confdefs.h. */ 983220915927Smrgint i; 983320915927Smrgint 983420915927Smrgmain () 983520915927Smrg{ 983620915927Smrg 983720915927Smrg ; 983820915927Smrg return 0; 983920915927Smrg} 984020915927Smrg_ACEOF 984120915927Smrgif ac_fn_c_try_link "$LINENO"; then : 984220915927Smrg eval $cacheid=yes 984320915927Smrgelse 984420915927Smrg eval $cacheid=no 984520915927Smrgfi 984620915927Smrgrm -f core conftest.err conftest.$ac_objext \ 984720915927Smrg conftest$ac_exeext conftest.$ac_ext 984820915927Smrgfi 984920915927Smrg 985020915927Smrg 985120915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 985220915927Smrg 985320915927Smrg eval supported=\$$cacheid 985420915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 985520915927Smrg$as_echo "$supported" >&6; } 985620915927Smrg if test "$supported" = "yes" ; then 985720915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 985820915927Smrg found="yes" 985920915927Smrg fi 986020915927Smrg fi 986120915927Smrg 986220915927Smrg 986320915927Smrg 986420915927Smrg 986520915927Smrg 986620915927Smrg 986720915927Smrg 986820915927Smrg 986920915927Smrg 987020915927Smrg 987120915927Smrg 987220915927Smrg 987320915927Smrg 987420915927Smrg 987520915927Smrg 987620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 987720915927Smrg 987820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 987920915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 988020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 988120915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 988220915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 988320915927Smrg $as_echo_n "(cached) " >&6 988420915927Smrgelse 988520915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 988620915927Smrg/* end confdefs.h. */ 988720915927Smrgint i; 988820915927Smrg_ACEOF 988920915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 989020915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 989120915927Smrgelse 989220915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 989320915927Smrgfi 989420915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 989520915927Smrgfi 989620915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 989720915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 989820915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 989920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 990020915927Smrgfi 990120915927Smrg 990220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 990320915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 990420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 990520915927Smrg fi 990620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 990720915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 990820915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 990920915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 991020915927Smrg $as_echo_n "(cached) " >&6 991120915927Smrgelse 991220915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 991320915927Smrg/* end confdefs.h. */ 991420915927Smrgint i; 991520915927Smrg_ACEOF 991620915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 991720915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 991820915927Smrgelse 991920915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 992020915927Smrgfi 992120915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 992220915927Smrgfi 992320915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 992420915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 992520915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 992620915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 992720915927Smrgfi 992820915927Smrg 992920915927Smrgfound="no" 993020915927Smrg 993120915927Smrg if test $found = "no" ; then 993204449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 993320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 993420915927Smrg fi 993520915927Smrg 993604449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 993720915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 993820915927Smrg fi 993920915927Smrg 994020915927Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 994120915927Smrg 994220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 994320915927Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 994420915927Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 994520915927Smrg if eval \${$cacheid+:} false; then : 994620915927Smrg $as_echo_n "(cached) " >&6 994720915927Smrgelse 994820915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 994920915927Smrg/* end confdefs.h. */ 995020915927Smrgint i; 995120915927Smrgint 995220915927Smrgmain () 995320915927Smrg{ 995420915927Smrg 995520915927Smrg ; 995620915927Smrg return 0; 995720915927Smrg} 995820915927Smrg_ACEOF 995920915927Smrgif ac_fn_c_try_link "$LINENO"; then : 996020915927Smrg eval $cacheid=yes 996120915927Smrgelse 996220915927Smrg eval $cacheid=no 996320915927Smrgfi 996420915927Smrgrm -f core conftest.err conftest.$ac_objext \ 996520915927Smrg conftest$ac_exeext conftest.$ac_ext 996620915927Smrgfi 996720915927Smrg 996820915927Smrg 996920915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 997020915927Smrg 997120915927Smrg eval supported=\$$cacheid 997220915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 997320915927Smrg$as_echo "$supported" >&6; } 997420915927Smrg if test "$supported" = "yes" ; then 997520915927Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 997620915927Smrg found="yes" 997720915927Smrg fi 997820915927Smrg fi 997920915927Smrg 998020915927Smrg 998120915927Smrgfi 998220915927Smrg 998320915927Smrg 998420915927Smrg 998520915927Smrg 998620915927Smrg 998720915927Smrg 998820915927Smrg 998920915927Smrg CWARNFLAGS="$BASE_CFLAGS" 999020915927Smrg if test "x$GCC" = xyes ; then 999120915927Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 999220915927Smrg fi 999320915927Smrg 999420915927Smrg 999520915927Smrg 999620915927Smrg 999720915927Smrg 999820915927Smrg 999920915927Smrg 1000020915927Smrg 1000120915927Smrg# Check whether --enable-strict-compilation was given. 1000220915927Smrgif test "${enable_strict_compilation+set}" = set; then : 1000320915927Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 1000420915927Smrgelse 1000520915927Smrg STRICT_COMPILE=no 1000620915927Smrgfi 1000720915927Smrg 1000820915927Smrg 1000920915927Smrg 1001020915927Smrg 1001120915927Smrg 1001220915927Smrg 1001320915927SmrgSTRICT_CFLAGS="" 1001420915927Smrg 1001520915927Smrg 1001620915927Smrg 1001720915927Smrg 1001820915927Smrg 1001920915927Smrg 1002020915927Smrg 1002120915927Smrg 1002220915927Smrg 1002320915927Smrg 1002420915927Smrg 1002520915927Smrg 1002620915927Smrg 1002720915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1002820915927Smrg 1002920915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1003020915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1003120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1003220915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1003320915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1003420915927Smrg $as_echo_n "(cached) " >&6 1003520915927Smrgelse 1003620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1003720915927Smrg/* end confdefs.h. */ 1003820915927Smrgint i; 1003920915927Smrg_ACEOF 1004020915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 1004120915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1004220915927Smrgelse 1004320915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 1004420915927Smrgfi 1004520915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1004620915927Smrgfi 1004720915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1004820915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1004920915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1005020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1005120915927Smrgfi 1005220915927Smrg 1005320915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1005420915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1005520915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1005620915927Smrg fi 1005720915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1005820915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1005920915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1006020915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1006120915927Smrg $as_echo_n "(cached) " >&6 1006220915927Smrgelse 1006320915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1006420915927Smrg/* end confdefs.h. */ 1006520915927Smrgint i; 1006620915927Smrg_ACEOF 1006720915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 1006820915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1006920915927Smrgelse 1007020915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1007120915927Smrgfi 1007220915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1007320915927Smrgfi 1007420915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1007520915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1007620915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1007720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1007820915927Smrgfi 1007920915927Smrg 1008020915927Smrgfound="no" 1008120915927Smrg 1008220915927Smrg if test $found = "no" ; then 1008304449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1008420915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1008520915927Smrg fi 1008620915927Smrg 1008704449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1008820915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1008920915927Smrg fi 1009020915927Smrg 1009120915927Smrg CFLAGS="$CFLAGS -pedantic" 1009220915927Smrg 1009320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 1009420915927Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; } 1009520915927Smrg cacheid=xorg_cv_cc_flag__pedantic 1009620915927Smrg if eval \${$cacheid+:} false; then : 1009720915927Smrg $as_echo_n "(cached) " >&6 1009820915927Smrgelse 1009920915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1010020915927Smrg/* end confdefs.h. */ 1010120915927Smrgint i; 1010220915927Smrgint 1010320915927Smrgmain () 1010420915927Smrg{ 1010520915927Smrg 1010620915927Smrg ; 1010720915927Smrg return 0; 1010820915927Smrg} 1010920915927Smrg_ACEOF 1011020915927Smrgif ac_fn_c_try_link "$LINENO"; then : 1011120915927Smrg eval $cacheid=yes 1011220915927Smrgelse 1011320915927Smrg eval $cacheid=no 1011420915927Smrgfi 1011520915927Smrgrm -f core conftest.err conftest.$ac_objext \ 1011620915927Smrg conftest$ac_exeext conftest.$ac_ext 1011720915927Smrgfi 1011820915927Smrg 1011920915927Smrg 1012020915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1012120915927Smrg 1012220915927Smrg eval supported=\$$cacheid 1012320915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1012420915927Smrg$as_echo "$supported" >&6; } 1012520915927Smrg if test "$supported" = "yes" ; then 1012620915927Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1012720915927Smrg found="yes" 1012820915927Smrg fi 1012920915927Smrg fi 1013020915927Smrg 1013120915927Smrg 1013220915927Smrg 1013320915927Smrg 1013420915927Smrg 1013520915927Smrg 1013620915927Smrg 1013720915927Smrg 1013820915927Smrg 1013920915927Smrg 1014020915927Smrg 1014120915927Smrg 1014220915927Smrg 1014320915927Smrg 1014420915927Smrg 1014520915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1014620915927Smrg 1014720915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1014820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1014920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1015020915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1015120915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1015220915927Smrg $as_echo_n "(cached) " >&6 1015320915927Smrgelse 1015420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1015520915927Smrg/* end confdefs.h. */ 1015620915927Smrgint i; 1015720915927Smrg_ACEOF 1015820915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 1015920915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1016020915927Smrgelse 1016120915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 1016220915927Smrgfi 1016320915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1016420915927Smrgfi 1016520915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1016620915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1016720915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1016820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1016920915927Smrgfi 1017020915927Smrg 1017120915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1017220915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1017320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1017420915927Smrg fi 1017520915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1017620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1017720915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1017820915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1017920915927Smrg $as_echo_n "(cached) " >&6 1018020915927Smrgelse 1018120915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1018220915927Smrg/* end confdefs.h. */ 1018320915927Smrgint i; 1018420915927Smrg_ACEOF 1018520915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 1018620915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1018720915927Smrgelse 1018820915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1018920915927Smrgfi 1019020915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1019120915927Smrgfi 1019220915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1019320915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1019420915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1019520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1019620915927Smrgfi 1019720915927Smrg 1019820915927Smrgfound="no" 1019920915927Smrg 1020020915927Smrg if test $found = "no" ; then 1020104449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1020220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1020320915927Smrg fi 1020420915927Smrg 1020504449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1020620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1020720915927Smrg fi 1020820915927Smrg 1020920915927Smrg CFLAGS="$CFLAGS -Werror" 1021020915927Smrg 1021120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 1021220915927Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; } 1021320915927Smrg cacheid=xorg_cv_cc_flag__Werror 1021420915927Smrg if eval \${$cacheid+:} false; then : 1021520915927Smrg $as_echo_n "(cached) " >&6 1021620915927Smrgelse 1021720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1021820915927Smrg/* end confdefs.h. */ 1021920915927Smrgint i; 1022020915927Smrgint 1022120915927Smrgmain () 1022220915927Smrg{ 1022320915927Smrg 1022420915927Smrg ; 1022520915927Smrg return 0; 1022620915927Smrg} 1022720915927Smrg_ACEOF 1022820915927Smrgif ac_fn_c_try_link "$LINENO"; then : 1022920915927Smrg eval $cacheid=yes 1023020915927Smrgelse 1023120915927Smrg eval $cacheid=no 1023220915927Smrgfi 1023320915927Smrgrm -f core conftest.err conftest.$ac_objext \ 1023420915927Smrg conftest$ac_exeext conftest.$ac_ext 1023520915927Smrgfi 1023620915927Smrg 1023720915927Smrg 1023820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1023920915927Smrg 1024020915927Smrg eval supported=\$$cacheid 1024120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1024220915927Smrg$as_echo "$supported" >&6; } 1024320915927Smrg if test "$supported" = "yes" ; then 1024420915927Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1024520915927Smrg found="yes" 1024620915927Smrg fi 1024720915927Smrg fi 1024820915927Smrg 1024920915927Smrg if test $found = "no" ; then 1025004449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1025120915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1025220915927Smrg fi 1025320915927Smrg 1025404449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1025520915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1025620915927Smrg fi 1025720915927Smrg 1025820915927Smrg CFLAGS="$CFLAGS -errwarn" 1025920915927Smrg 1026020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 1026120915927Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; } 1026220915927Smrg cacheid=xorg_cv_cc_flag__errwarn 1026320915927Smrg if eval \${$cacheid+:} false; then : 1026420915927Smrg $as_echo_n "(cached) " >&6 1026520915927Smrgelse 1026620915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1026720915927Smrg/* end confdefs.h. */ 1026820915927Smrgint i; 1026920915927Smrgint 1027020915927Smrgmain () 1027120915927Smrg{ 1027220915927Smrg 1027320915927Smrg ; 1027420915927Smrg return 0; 1027520915927Smrg} 1027620915927Smrg_ACEOF 1027720915927Smrgif ac_fn_c_try_link "$LINENO"; then : 1027820915927Smrg eval $cacheid=yes 1027920915927Smrgelse 1028020915927Smrg eval $cacheid=no 1028120915927Smrgfi 1028220915927Smrgrm -f core conftest.err conftest.$ac_objext \ 1028320915927Smrg conftest$ac_exeext conftest.$ac_ext 1028420915927Smrgfi 1028520915927Smrg 1028620915927Smrg 1028720915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1028820915927Smrg 1028920915927Smrg eval supported=\$$cacheid 1029020915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1029120915927Smrg$as_echo "$supported" >&6; } 1029220915927Smrg if test "$supported" = "yes" ; then 1029320915927Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1029420915927Smrg found="yes" 1029520915927Smrg fi 1029620915927Smrg fi 1029720915927Smrg 1029820915927Smrg 1029920915927Smrg 1030020915927Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1030120915927Smrg# activate it with -Werror, so we add it here explicitly. 1030220915927Smrg 1030320915927Smrg 1030420915927Smrg 1030520915927Smrg 1030620915927Smrg 1030720915927Smrg 1030820915927Smrg 1030920915927Smrg 1031020915927Smrg 1031120915927Smrg 1031220915927Smrg 1031320915927Smrg 1031420915927Smrg 1031520915927Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1031620915927Smrg 1031720915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1031820915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1031920915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1032020915927Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1032120915927Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1032220915927Smrg $as_echo_n "(cached) " >&6 1032320915927Smrgelse 1032420915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1032520915927Smrg/* end confdefs.h. */ 1032620915927Smrgint i; 1032720915927Smrg_ACEOF 1032820915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 1032920915927Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1033020915927Smrgelse 1033120915927Smrg xorg_cv_cc_flag_unknown_warning_option=no 1033220915927Smrgfi 1033320915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1033420915927Smrgfi 1033520915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1033620915927Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1033720915927Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1033820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1033920915927Smrgfi 1034020915927Smrg 1034120915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1034220915927Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1034320915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1034420915927Smrg fi 1034520915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1034620915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1034720915927Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1034820915927Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1034920915927Smrg $as_echo_n "(cached) " >&6 1035020915927Smrgelse 1035120915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1035220915927Smrg/* end confdefs.h. */ 1035320915927Smrgint i; 1035420915927Smrg_ACEOF 1035520915927Smrgif ac_fn_c_try_compile "$LINENO"; then : 1035620915927Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1035720915927Smrgelse 1035820915927Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1035920915927Smrgfi 1036020915927Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1036120915927Smrgfi 1036220915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1036320915927Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1036420915927Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1036520915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1036620915927Smrgfi 1036720915927Smrg 1036820915927Smrgfound="no" 1036920915927Smrg 1037020915927Smrg if test $found = "no" ; then 1037104449c54Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1037220915927Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1037320915927Smrg fi 1037420915927Smrg 1037504449c54Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1037620915927Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1037720915927Smrg fi 1037820915927Smrg 1037920915927Smrg CFLAGS="$CFLAGS -Werror=attributes" 1038020915927Smrg 1038120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 1038220915927Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 1038304449c54Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 1038420915927Smrg if eval \${$cacheid+:} false; then : 1038520915927Smrg $as_echo_n "(cached) " >&6 1038620915927Smrgelse 1038720915927Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1038820915927Smrg/* end confdefs.h. */ 1038920915927Smrgint i; 1039020915927Smrgint 1039120915927Smrgmain () 1039220915927Smrg{ 1039320915927Smrg 1039420915927Smrg ; 1039520915927Smrg return 0; 1039620915927Smrg} 1039720915927Smrg_ACEOF 1039820915927Smrgif ac_fn_c_try_link "$LINENO"; then : 1039920915927Smrg eval $cacheid=yes 1040020915927Smrgelse 1040120915927Smrg eval $cacheid=no 1040220915927Smrgfi 1040320915927Smrgrm -f core conftest.err conftest.$ac_objext \ 1040420915927Smrg conftest$ac_exeext conftest.$ac_ext 1040520915927Smrgfi 1040620915927Smrg 1040720915927Smrg 1040820915927Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1040920915927Smrg 1041020915927Smrg eval supported=\$$cacheid 1041120915927Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1041220915927Smrg$as_echo "$supported" >&6; } 1041320915927Smrg if test "$supported" = "yes" ; then 1041420915927Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1041520915927Smrg found="yes" 1041620915927Smrg fi 1041720915927Smrg fi 1041820915927Smrg 1041920915927Smrg 1042020915927Smrg 1042120915927Smrgif test "x$STRICT_COMPILE" = "xyes"; then 1042220915927Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 1042320915927Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 1042420915927Smrgfi 1042520915927Smrg 1042620915927Smrg 1042720915927Smrg 1042820915927Smrg 1042920915927Smrg 1043020915927Smrg 1043120915927Smrgcat >>confdefs.h <<_ACEOF 1043220915927Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 1043320915927Smrg_ACEOF 1043420915927Smrg 1043520915927Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 1043620915927Smrg if test "x$PVM" = "x"; then 1043720915927Smrg PVM="0" 1043820915927Smrg fi 1043920915927Smrg 1044020915927Smrgcat >>confdefs.h <<_ACEOF 1044120915927Smrg#define PACKAGE_VERSION_MINOR $PVM 1044220915927Smrg_ACEOF 1044320915927Smrg 1044420915927Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 1044520915927Smrg if test "x$PVP" = "x"; then 1044620915927Smrg PVP="0" 1044720915927Smrg fi 1044820915927Smrg 1044920915927Smrgcat >>confdefs.h <<_ACEOF 1045020915927Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 1045120915927Smrg_ACEOF 104528440cca4Smrg 1045320915927Smrg 1045420915927Smrg 1045520915927SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 1045620915927Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 1045720915927Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 1045820915927Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 1045920915927Smrg 1046020915927Smrg 1046120915927Smrg 1046220915927Smrg 1046320915927Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 1046420915927SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 1046520915927Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 1046620915927Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 1046720915927Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 1046820915927Smrg 1046920915927Smrg 1047020915927Smrg 1047120915927Smrg 1047220915927Smrg 1047320915927Smrg 1047420915927Smrgif test x$APP_MAN_SUFFIX = x ; then 1047520915927Smrg APP_MAN_SUFFIX=1 1047620915927Smrgfi 1047720915927Smrgif test x$APP_MAN_DIR = x ; then 1047820915927Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1047920915927Smrgfi 1048020915927Smrg 1048120915927Smrgif test x$LIB_MAN_SUFFIX = x ; then 1048220915927Smrg LIB_MAN_SUFFIX=3 1048320915927Smrgfi 1048420915927Smrgif test x$LIB_MAN_DIR = x ; then 1048520915927Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1048620915927Smrgfi 1048720915927Smrg 1048820915927Smrgif test x$FILE_MAN_SUFFIX = x ; then 1048920915927Smrg case $host_os in 1049004449c54Smrg # Solaris 2.0 - 11 use SysV man page sections 1049104449c54Smrg solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 1049204449c54Smrg *) FILE_MAN_SUFFIX=5 ;; 1049320915927Smrg esac 1049420915927Smrgfi 1049520915927Smrgif test x$FILE_MAN_DIR = x ; then 1049620915927Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1049720915927Smrgfi 1049820915927Smrg 1049920915927Smrgif test x$MISC_MAN_SUFFIX = x ; then 1050020915927Smrg case $host_os in 1050104449c54Smrg # Solaris 2.0 - 11 use SysV man page sections 1050204449c54Smrg solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 1050304449c54Smrg *) MISC_MAN_SUFFIX=7 ;; 1050420915927Smrg esac 1050520915927Smrgfi 1050620915927Smrgif test x$MISC_MAN_DIR = x ; then 1050720915927Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1050820915927Smrgfi 1050920915927Smrg 1051020915927Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 1051120915927Smrg case $host_os in 1051204449c54Smrg # Solaris 2.0 - 11 use SysV man page sections 1051304449c54Smrg solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 1051404449c54Smrg *) DRIVER_MAN_SUFFIX=4 ;; 1051520915927Smrg esac 1051620915927Smrgfi 1051720915927Smrgif test x$DRIVER_MAN_DIR = x ; then 1051820915927Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1051920915927Smrgfi 1052020915927Smrg 1052120915927Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 1052220915927Smrg case $host_os in 1052304449c54Smrg # Solaris 2.0 - 11 use SysV man page sections 1052404449c54Smrg solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 1052504449c54Smrg *) ADMIN_MAN_SUFFIX=8 ;; 1052620915927Smrg esac 1052720915927Smrgfi 1052820915927Smrgif test x$ADMIN_MAN_DIR = x ; then 1052920915927Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1053020915927Smrgfi 1053120915927Smrg 1053220915927Smrg 1053320915927Smrg 1053420915927Smrg 1053520915927Smrg 1053620915927Smrg 1053720915927Smrg 1053820915927Smrg 1053920915927Smrg 1054020915927Smrg 1054120915927Smrg 1054220915927Smrg 1054320915927Smrg 1054420915927Smrg 1054520915927Smrg 1054620915927SmrgXORG_MAN_PAGE="X Version 11" 1054720915927Smrg 1054820915927SmrgMAN_SUBSTS="\ 1054920915927Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1055020915927Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1055120915927Smrg -e 's|__xservername__|Xorg|g' \ 1055220915927Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 1055320915927Smrg -e 's|__projectroot__|\$(prefix)|g' \ 1055420915927Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1055520915927Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1055620915927Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1055720915927Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1055820915927Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1055920915927Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1056020915927Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1056120915927Smrg 1056220915927Smrg 1056320915927Smrg 1056420915927Smrg# Check whether --enable-silent-rules was given. 1056520915927Smrgif test "${enable_silent_rules+set}" = set; then : 1056620915927Smrg enableval=$enable_silent_rules; 1056720915927Smrgfi 1056820915927Smrg 1056904449c54Smrgcase $enable_silent_rules in # ((( 1057004449c54Smrg yes) AM_DEFAULT_VERBOSITY=0;; 1057104449c54Smrg no) AM_DEFAULT_VERBOSITY=1;; 1057204449c54Smrg *) AM_DEFAULT_VERBOSITY=0;; 1057320915927Smrgesac 1057404449c54Smrgam_make=${MAKE-make} 1057504449c54Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 1057604449c54Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 1057704449c54Smrgif ${am_cv_make_support_nested_variables+:} false; then : 1057804449c54Smrg $as_echo_n "(cached) " >&6 1057904449c54Smrgelse 1058004449c54Smrg if $as_echo 'TRUE=$(BAR$(V)) 1058104449c54SmrgBAR0=false 1058204449c54SmrgBAR1=true 1058304449c54SmrgV=1 1058404449c54Smrgam__doit: 1058504449c54Smrg @$(TRUE) 1058604449c54Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 1058704449c54Smrg am_cv_make_support_nested_variables=yes 1058804449c54Smrgelse 1058904449c54Smrg am_cv_make_support_nested_variables=no 1059004449c54Smrgfi 1059104449c54Smrgfi 1059204449c54Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 1059304449c54Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 1059404449c54Smrgif test $am_cv_make_support_nested_variables = yes; then 1059504449c54Smrg AM_V='$(V)' 1059604449c54Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1059704449c54Smrgelse 1059804449c54Smrg AM_V=$AM_DEFAULT_VERBOSITY 1059904449c54Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1060004449c54Smrgfi 1060120915927SmrgAM_BACKSLASH='\' 1060220915927Smrg 1060320915927Smrg 1060420915927Smrg 1060520915927Smrg# Checks for pkg-config packages 1060620915927Smrg 1060720915927Smrgpkg_failed=no 1060820915927Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSTDCMAP" >&5 1060920915927Smrg$as_echo_n "checking for XSTDCMAP... " >&6; } 10610d1c293acSmrg 10611d1c293acSmrgif test -n "$XSTDCMAP_CFLAGS"; then 10612d1c293acSmrg pkg_cv_XSTDCMAP_CFLAGS="$XSTDCMAP_CFLAGS" 10613d1c293acSmrg elif test -n "$PKG_CONFIG"; then 10614d1c293acSmrg if test -n "$PKG_CONFIG" && \ 1061520915927Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xproto >= 7.0.17\""; } >&5 1061620915927Smrg ($PKG_CONFIG --exists --print-errors "xmu x11 xproto >= 7.0.17") 2>&5 10617d1c293acSmrg ac_status=$? 10618d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10619d1c293acSmrg test $ac_status = 0; }; then 1062020915927Smrg pkg_cv_XSTDCMAP_CFLAGS=`$PKG_CONFIG --cflags "xmu x11 xproto >= 7.0.17" 2>/dev/null` 1062104449c54Smrg test "x$?" != "x0" && pkg_failed=yes 106228440cca4Smrgelse 10623d1c293acSmrg pkg_failed=yes 10624d1c293acSmrgfi 10625d1c293acSmrg else 10626d1c293acSmrg pkg_failed=untried 10627d1c293acSmrgfi 10628d1c293acSmrgif test -n "$XSTDCMAP_LIBS"; then 10629d1c293acSmrg pkg_cv_XSTDCMAP_LIBS="$XSTDCMAP_LIBS" 10630d1c293acSmrg elif test -n "$PKG_CONFIG"; then 10631d1c293acSmrg if test -n "$PKG_CONFIG" && \ 1063220915927Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xproto >= 7.0.17\""; } >&5 1063320915927Smrg ($PKG_CONFIG --exists --print-errors "xmu x11 xproto >= 7.0.17") 2>&5 10634d1c293acSmrg ac_status=$? 10635d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10636d1c293acSmrg test $ac_status = 0; }; then 1063720915927Smrg pkg_cv_XSTDCMAP_LIBS=`$PKG_CONFIG --libs "xmu x11 xproto >= 7.0.17" 2>/dev/null` 1063804449c54Smrg test "x$?" != "x0" && pkg_failed=yes 10639d1c293acSmrgelse 10640d1c293acSmrg pkg_failed=yes 10641d1c293acSmrgfi 10642d1c293acSmrg else 10643d1c293acSmrg pkg_failed=untried 10644d1c293acSmrgfi 10645d1c293acSmrg 10646d1c293acSmrg 10647d1c293acSmrg 10648d1c293acSmrgif test $pkg_failed = yes; then 1064904449c54Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1065004449c54Smrg$as_echo "no" >&6; } 10651d1c293acSmrg 10652d1c293acSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10653d1c293acSmrg _pkg_short_errors_supported=yes 10654d1c293acSmrgelse 10655d1c293acSmrg _pkg_short_errors_supported=no 10656d1c293acSmrgfi 10657d1c293acSmrg if test $_pkg_short_errors_supported = yes; then 1065804449c54Smrg XSTDCMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmu x11 xproto >= 7.0.17" 2>&1` 10659d1c293acSmrg else 1066004449c54Smrg XSTDCMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmu x11 xproto >= 7.0.17" 2>&1` 10661d1c293acSmrg fi 10662d1c293acSmrg # Put the nasty error message in config.log where it belongs 10663d1c293acSmrg echo "$XSTDCMAP_PKG_ERRORS" >&5 10664d1c293acSmrg 1066520915927Smrg as_fn_error $? "Package requirements (xmu x11 xproto >= 7.0.17) were not met: 10666d1c293acSmrg 10667d1c293acSmrg$XSTDCMAP_PKG_ERRORS 10668d1c293acSmrg 10669d1c293acSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 10670d1c293acSmrginstalled software in a non-standard prefix. 10671d1c293acSmrg 10672d1c293acSmrgAlternatively, you may set the environment variables XSTDCMAP_CFLAGS 10673d1c293acSmrgand XSTDCMAP_LIBS to avoid the need to call pkg-config. 1067404449c54SmrgSee the pkg-config man page for more details." "$LINENO" 5 10675d1c293acSmrgelif test $pkg_failed = untried; then 1067604449c54Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1067704449c54Smrg$as_echo "no" >&6; } 10678d1c293acSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10679d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10680d1c293acSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10681d1c293acSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 10682d1c293acSmrgpath to pkg-config. 106838440cca4Smrg 10684d1c293acSmrgAlternatively, you may set the environment variables XSTDCMAP_CFLAGS 10685d1c293acSmrgand XSTDCMAP_LIBS to avoid the need to call pkg-config. 10686d1c293acSmrgSee the pkg-config man page for more details. 10687d1c293acSmrg 10688d1c293acSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 10689d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; } 10690d1c293acSmrgelse 10691d1c293acSmrg XSTDCMAP_CFLAGS=$pkg_cv_XSTDCMAP_CFLAGS 10692d1c293acSmrg XSTDCMAP_LIBS=$pkg_cv_XSTDCMAP_LIBS 10693d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10694d1c293acSmrg$as_echo "yes" >&6; } 1069504449c54Smrg 10696d1c293acSmrgfi 10697d1c293acSmrg 1069820915927Smrgac_config_files="$ac_config_files Makefile man/Makefile" 106998440cca4Smrg 107008440cca4Smrgcat >confcache <<\_ACEOF 107018440cca4Smrg# This file is a shell script that caches the results of configure 107028440cca4Smrg# tests run on this system so they can be shared between configure 107038440cca4Smrg# scripts and configure runs, see configure's option --config-cache. 107048440cca4Smrg# It is not useful on other systems. If it contains results you don't 107058440cca4Smrg# want to keep, you may remove or edit it. 107068440cca4Smrg# 107078440cca4Smrg# config.status only pays attention to the cache file if you give it 107088440cca4Smrg# the --recheck option to rerun configure. 107098440cca4Smrg# 107108440cca4Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 107118440cca4Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 107128440cca4Smrg# following values. 107138440cca4Smrg 107148440cca4Smrg_ACEOF 107158440cca4Smrg 107168440cca4Smrg# The following way of writing the cache mishandles newlines in values, 107178440cca4Smrg# but we know of no workaround that is simple, portable, and efficient. 10718d1c293acSmrg# So, we kill variables containing newlines. 107198440cca4Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 107208440cca4Smrg# and sets the high bit in the cache file unless we assign to the vars. 10721d1c293acSmrg( 10722d1c293acSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10723d1c293acSmrg eval ac_val=\$$ac_var 10724d1c293acSmrg case $ac_val in #( 10725d1c293acSmrg *${as_nl}*) 10726d1c293acSmrg case $ac_var in #( 10727d1c293acSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10728d1c293acSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10729d1c293acSmrg esac 10730d1c293acSmrg case $ac_var in #( 10731d1c293acSmrg _ | IFS | as_nl) ;; #( 10732d1c293acSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10733d1c293acSmrg *) { eval $ac_var=; unset $ac_var;} ;; 10734d1c293acSmrg esac ;; 10735d1c293acSmrg esac 10736d1c293acSmrg done 10737d1c293acSmrg 107388440cca4Smrg (set) 2>&1 | 10739d1c293acSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 10740d1c293acSmrg *${as_nl}ac_space=\ *) 10741d1c293acSmrg # `set' does not quote correctly, so add quotes: double-quote 10742d1c293acSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 107438440cca4Smrg sed -n \ 107448440cca4Smrg "s/'/'\\\\''/g; 107458440cca4Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10746d1c293acSmrg ;; #( 107478440cca4Smrg *) 107488440cca4Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 10749d1c293acSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 107508440cca4Smrg ;; 10751d1c293acSmrg esac | 10752d1c293acSmrg sort 10753d1c293acSmrg) | 107548440cca4Smrg sed ' 10755d1c293acSmrg /^ac_cv_env_/b end 107568440cca4Smrg t clear 10757d1c293acSmrg :clear 107588440cca4Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 107598440cca4Smrg t end 10760d1c293acSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10761d1c293acSmrg :end' >>confcache 10762d1c293acSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10763d1c293acSmrg if test -w "$cache_file"; then 10764d1c293acSmrg if test "x$cache_file" != "x/dev/null"; then 10765d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10766d1c293acSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 10767d1c293acSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 10768d1c293acSmrg cat confcache >"$cache_file" 10769d1c293acSmrg else 10770d1c293acSmrg case $cache_file in #( 10771d1c293acSmrg */* | ?:*) 10772d1c293acSmrg mv -f confcache "$cache_file"$$ && 10773d1c293acSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 10774d1c293acSmrg *) 10775d1c293acSmrg mv -f confcache "$cache_file" ;; 10776d1c293acSmrg esac 10777d1c293acSmrg fi 10778d1c293acSmrg fi 107798440cca4Smrg else 10780d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10781d1c293acSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 107828440cca4Smrg fi 107838440cca4Smrgfi 107848440cca4Smrgrm -f confcache 107858440cca4Smrg 107868440cca4Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 107878440cca4Smrg# Let make expand exec_prefix. 107888440cca4Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 107898440cca4Smrg 107908440cca4SmrgDEFS=-DHAVE_CONFIG_H 107918440cca4Smrg 107928440cca4Smrgac_libobjs= 107938440cca4Smrgac_ltlibobjs= 10794d1c293acSmrgU= 107958440cca4Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 107968440cca4Smrg # 1. Remove the extension, and $U if already installed. 10797d1c293acSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10798d1c293acSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10799d1c293acSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10800d1c293acSmrg # will be set to the directory where LIBOBJS objects are built. 10801d1c293acSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10802d1c293acSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 108038440cca4Smrgdone 108048440cca4SmrgLIBOBJS=$ac_libobjs 108058440cca4Smrg 108068440cca4SmrgLTLIBOBJS=$ac_ltlibobjs 108078440cca4Smrg 108088440cca4Smrg 1080904449c54Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 1081004449c54Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; } 1081104449c54Smrg if test -n "$am_sleep_pid"; then 1081204449c54Smrg # Hide warnings about reused PIDs. 1081304449c54Smrg wait $am_sleep_pid 2>/dev/null 1081404449c54Smrg fi 1081504449c54Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 1081604449c54Smrg$as_echo "done" >&6; } 10817d1c293acSmrg if test -n "$EXEEXT"; then 10818d1c293acSmrg am__EXEEXT_TRUE= 10819d1c293acSmrg am__EXEEXT_FALSE='#' 10820d1c293acSmrgelse 10821d1c293acSmrg am__EXEEXT_TRUE='#' 10822d1c293acSmrg am__EXEEXT_FALSE= 10823d1c293acSmrgfi 10824d1c293acSmrg 108258440cca4Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10826d1c293acSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 10827d1c293acSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 108288440cca4Smrgfi 108298440cca4Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10830d1c293acSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10831d1c293acSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 108328440cca4Smrgfi 108338440cca4Smrg 10834d1c293acSmrg: "${CONFIG_STATUS=./config.status}" 10835d1c293acSmrgac_write_fail=0 108368440cca4Smrgac_clean_files_save=$ac_clean_files 108378440cca4Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 10838d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10839d1c293acSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10840d1c293acSmrgas_write_fail=0 10841d1c293acSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 108428440cca4Smrg#! $SHELL 108438440cca4Smrg# Generated by $as_me. 108448440cca4Smrg# Run this file to recreate the current configuration. 108458440cca4Smrg# Compiler output produced by configure, useful for debugging 108468440cca4Smrg# configure, is in config.log if it exists. 108478440cca4Smrg 108488440cca4Smrgdebug=false 108498440cca4Smrgac_cs_recheck=false 108508440cca4Smrgac_cs_silent=false 108518440cca4Smrg 10852d1c293acSmrgSHELL=\${CONFIG_SHELL-$SHELL} 10853d1c293acSmrgexport SHELL 10854d1c293acSmrg_ASEOF 10855d1c293acSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10856d1c293acSmrg## -------------------- ## 10857d1c293acSmrg## M4sh Initialization. ## 10858d1c293acSmrg## -------------------- ## 10859d1c293acSmrg 10860d1c293acSmrg# Be more Bourne compatible 10861d1c293acSmrgDUALCASE=1; export DUALCASE # for MKS sh 10862d1c293acSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 108638440cca4Smrg emulate sh 108648440cca4Smrg NULLCMD=: 10865d1c293acSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 108668440cca4Smrg # is contrary to our usage. Disable this feature. 108678440cca4Smrg alias -g '${1+"$@"}'='"$@"' 10868d1c293acSmrg setopt NO_GLOB_SUBST 10869d1c293acSmrgelse 10870d1c293acSmrg case `(set -o) 2>/dev/null` in #( 10871d1c293acSmrg *posix*) : 10872d1c293acSmrg set -o posix ;; #( 10873d1c293acSmrg *) : 10874d1c293acSmrg ;; 10875d1c293acSmrgesac 108768440cca4Smrgfi 108778440cca4Smrg 10878d1c293acSmrg 10879d1c293acSmrgas_nl=' 10880d1c293acSmrg' 10881d1c293acSmrgexport as_nl 10882d1c293acSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 10883d1c293acSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10884d1c293acSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10885d1c293acSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10886d1c293acSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 10887d1c293acSmrg# but without wasting forks for bash or zsh. 10888d1c293acSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 10889d1c293acSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10890d1c293acSmrg as_echo='print -r --' 10891d1c293acSmrg as_echo_n='print -rn --' 10892d1c293acSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10893d1c293acSmrg as_echo='printf %s\n' 10894d1c293acSmrg as_echo_n='printf %s' 108958440cca4Smrgelse 10896d1c293acSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10897d1c293acSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10898d1c293acSmrg as_echo_n='/usr/ucb/echo -n' 10899d1c293acSmrg else 10900d1c293acSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10901d1c293acSmrg as_echo_n_body='eval 10902d1c293acSmrg arg=$1; 10903d1c293acSmrg case $arg in #( 10904d1c293acSmrg *"$as_nl"*) 10905d1c293acSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 10906d1c293acSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10907d1c293acSmrg esac; 10908d1c293acSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10909d1c293acSmrg ' 10910d1c293acSmrg export as_echo_n_body 10911d1c293acSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 10912d1c293acSmrg fi 10913d1c293acSmrg export as_echo_body 10914d1c293acSmrg as_echo='sh -c $as_echo_body as_echo' 10915d1c293acSmrgfi 10916d1c293acSmrg 10917d1c293acSmrg# The user is always right. 10918d1c293acSmrgif test "${PATH_SEPARATOR+set}" != set; then 10919d1c293acSmrg PATH_SEPARATOR=: 10920d1c293acSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10921d1c293acSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10922d1c293acSmrg PATH_SEPARATOR=';' 10923d1c293acSmrg } 109248440cca4Smrgfi 109258440cca4Smrg 109268440cca4Smrg 10927d1c293acSmrg# IFS 10928d1c293acSmrg# We need space, tab and new line, in precisely that order. Quoting is 10929d1c293acSmrg# there to prevent editors from complaining about space-tab. 10930d1c293acSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10931d1c293acSmrg# splitting by setting IFS to empty value.) 10932d1c293acSmrgIFS=" "" $as_nl" 10933d1c293acSmrg 10934d1c293acSmrg# Find who we are. Look in the path if we contain no directory separator. 10935d1c293acSmrgas_myself= 10936d1c293acSmrgcase $0 in #(( 10937d1c293acSmrg *[\\/]* ) as_myself=$0 ;; 10938d1c293acSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10939d1c293acSmrgfor as_dir in $PATH 10940d1c293acSmrgdo 10941d1c293acSmrg IFS=$as_save_IFS 10942d1c293acSmrg test -z "$as_dir" && as_dir=. 10943d1c293acSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10944d1c293acSmrg done 10945d1c293acSmrgIFS=$as_save_IFS 10946d1c293acSmrg 10947d1c293acSmrg ;; 10948d1c293acSmrgesac 10949d1c293acSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 10950d1c293acSmrg# in which case we are not to be found in the path. 10951d1c293acSmrgif test "x$as_myself" = x; then 10952d1c293acSmrg as_myself=$0 10953d1c293acSmrgfi 10954d1c293acSmrgif test ! -f "$as_myself"; then 10955d1c293acSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10956d1c293acSmrg exit 1 10957d1c293acSmrgfi 10958d1c293acSmrg 10959d1c293acSmrg# Unset variables that we do not need and which cause bugs (e.g. in 10960d1c293acSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10961d1c293acSmrg# suppresses any "Segmentation fault" message there. '((' could 10962d1c293acSmrg# trigger a bug in pdksh 5.2.14. 10963d1c293acSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 10964d1c293acSmrgdo eval test x\${$as_var+set} = xset \ 10965d1c293acSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10966d1c293acSmrgdone 109678440cca4SmrgPS1='$ ' 109688440cca4SmrgPS2='> ' 109698440cca4SmrgPS4='+ ' 109708440cca4Smrg 109718440cca4Smrg# NLS nuisances. 10972d1c293acSmrgLC_ALL=C 10973d1c293acSmrgexport LC_ALL 10974d1c293acSmrgLANGUAGE=C 10975d1c293acSmrgexport LANGUAGE 10976d1c293acSmrg 10977d1c293acSmrg# CDPATH. 10978d1c293acSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10979d1c293acSmrg 10980d1c293acSmrg 10981d1c293acSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 10982d1c293acSmrg# ---------------------------------------- 10983d1c293acSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10984d1c293acSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10985d1c293acSmrg# script with STATUS, using 1 if that was 0. 10986d1c293acSmrgas_fn_error () 10987d1c293acSmrg{ 10988d1c293acSmrg as_status=$1; test $as_status -eq 0 && as_status=1 10989d1c293acSmrg if test "$4"; then 10990d1c293acSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10991d1c293acSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 109928440cca4Smrg fi 10993d1c293acSmrg $as_echo "$as_me: error: $2" >&2 10994d1c293acSmrg as_fn_exit $as_status 10995d1c293acSmrg} # as_fn_error 10996d1c293acSmrg 10997d1c293acSmrg 10998d1c293acSmrg# as_fn_set_status STATUS 10999d1c293acSmrg# ----------------------- 11000d1c293acSmrg# Set $? to STATUS, without forking. 11001d1c293acSmrgas_fn_set_status () 11002d1c293acSmrg{ 11003d1c293acSmrg return $1 11004d1c293acSmrg} # as_fn_set_status 11005d1c293acSmrg 11006d1c293acSmrg# as_fn_exit STATUS 11007d1c293acSmrg# ----------------- 11008d1c293acSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11009d1c293acSmrgas_fn_exit () 11010d1c293acSmrg{ 11011d1c293acSmrg set +e 11012d1c293acSmrg as_fn_set_status $1 11013d1c293acSmrg exit $1 11014d1c293acSmrg} # as_fn_exit 11015d1c293acSmrg 11016d1c293acSmrg# as_fn_unset VAR 11017d1c293acSmrg# --------------- 11018d1c293acSmrg# Portably unset VAR. 11019d1c293acSmrgas_fn_unset () 11020d1c293acSmrg{ 11021d1c293acSmrg { eval $1=; unset $1;} 11022d1c293acSmrg} 11023d1c293acSmrgas_unset=as_fn_unset 11024d1c293acSmrg# as_fn_append VAR VALUE 11025d1c293acSmrg# ---------------------- 11026d1c293acSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 11027d1c293acSmrg# advantage of any shell optimizations that allow amortized linear growth over 11028d1c293acSmrg# repeated appends, instead of the typical quadratic growth present in naive 11029d1c293acSmrg# implementations. 11030d1c293acSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11031d1c293acSmrg eval 'as_fn_append () 11032d1c293acSmrg { 11033d1c293acSmrg eval $1+=\$2 11034d1c293acSmrg }' 11035d1c293acSmrgelse 11036d1c293acSmrg as_fn_append () 11037d1c293acSmrg { 11038d1c293acSmrg eval $1=\$$1\$2 11039d1c293acSmrg } 11040d1c293acSmrgfi # as_fn_append 11041d1c293acSmrg 11042d1c293acSmrg# as_fn_arith ARG... 11043d1c293acSmrg# ------------------ 11044d1c293acSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 11045d1c293acSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 11046d1c293acSmrg# must be portable across $(()) and expr. 11047d1c293acSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11048d1c293acSmrg eval 'as_fn_arith () 11049d1c293acSmrg { 11050d1c293acSmrg as_val=$(( $* )) 11051d1c293acSmrg }' 11052d1c293acSmrgelse 11053d1c293acSmrg as_fn_arith () 11054d1c293acSmrg { 11055d1c293acSmrg as_val=`expr "$@" || test $? -eq 1` 11056d1c293acSmrg } 11057d1c293acSmrgfi # as_fn_arith 11058d1c293acSmrg 110598440cca4Smrg 11060d1c293acSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 11061d1c293acSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 110628440cca4Smrg as_expr=expr 110638440cca4Smrgelse 110648440cca4Smrg as_expr=false 110658440cca4Smrgfi 110668440cca4Smrg 11067d1c293acSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 110688440cca4Smrg as_basename=basename 110698440cca4Smrgelse 110708440cca4Smrg as_basename=false 110718440cca4Smrgfi 110728440cca4Smrg 11073d1c293acSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11074d1c293acSmrg as_dirname=dirname 11075d1c293acSmrgelse 11076d1c293acSmrg as_dirname=false 11077d1c293acSmrgfi 110788440cca4Smrg 11079d1c293acSmrgas_me=`$as_basename -- "$0" || 110808440cca4Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 110818440cca4Smrg X"$0" : 'X\(//\)$' \| \ 11082d1c293acSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 11083d1c293acSmrg$as_echo X/"$0" | 11084d1c293acSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 11085d1c293acSmrg s//\1/ 11086d1c293acSmrg q 11087d1c293acSmrg } 11088d1c293acSmrg /^X\/\(\/\/\)$/{ 11089d1c293acSmrg s//\1/ 11090d1c293acSmrg q 11091d1c293acSmrg } 11092d1c293acSmrg /^X\/\(\/\).*/{ 11093d1c293acSmrg s//\1/ 11094d1c293acSmrg q 11095d1c293acSmrg } 11096d1c293acSmrg s/.*/./; q'` 110978440cca4Smrg 110988440cca4Smrg# Avoid depending upon Character Ranges. 110998440cca4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 111008440cca4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 111018440cca4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 111028440cca4Smrgas_cr_digits='0123456789' 111038440cca4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 111048440cca4Smrg 11105d1c293acSmrgECHO_C= ECHO_N= ECHO_T= 11106d1c293acSmrgcase `echo -n x` in #((((( 11107d1c293acSmrg-n*) 11108d1c293acSmrg case `echo 'xy\c'` in 11109d1c293acSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11110d1c293acSmrg xy) ECHO_C='\c';; 11111d1c293acSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11112d1c293acSmrg ECHO_T=' ';; 11113d1c293acSmrg esac;; 11114d1c293acSmrg*) 11115d1c293acSmrg ECHO_N='-n';; 111168440cca4Smrgesac 111178440cca4Smrg 11118d1c293acSmrgrm -f conf$$ conf$$.exe conf$$.file 11119d1c293acSmrgif test -d conf$$.dir; then 11120d1c293acSmrg rm -f conf$$.dir/conf$$.file 111218440cca4Smrgelse 11122d1c293acSmrg rm -f conf$$.dir 11123d1c293acSmrg mkdir conf$$.dir 2>/dev/null 111248440cca4Smrgfi 11125d1c293acSmrgif (echo >conf$$.file) 2>/dev/null; then 11126d1c293acSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 111278440cca4Smrg as_ln_s='ln -s' 11128d1c293acSmrg # ... but there are two gotchas: 11129d1c293acSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11130d1c293acSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 1113104449c54Smrg # In both cases, we have to default to `cp -pR'. 11132d1c293acSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 1113304449c54Smrg as_ln_s='cp -pR' 11134d1c293acSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 11135d1c293acSmrg as_ln_s=ln 11136d1c293acSmrg else 1113704449c54Smrg as_ln_s='cp -pR' 111388440cca4Smrg fi 111398440cca4Smrgelse 1114004449c54Smrg as_ln_s='cp -pR' 111418440cca4Smrgfi 11142d1c293acSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11143d1c293acSmrgrmdir conf$$.dir 2>/dev/null 11144d1c293acSmrg 11145d1c293acSmrg 11146d1c293acSmrg# as_fn_mkdir_p 11147d1c293acSmrg# ------------- 11148d1c293acSmrg# Create "$as_dir" as a directory, including parents if necessary. 11149d1c293acSmrgas_fn_mkdir_p () 11150d1c293acSmrg{ 11151d1c293acSmrg 11152d1c293acSmrg case $as_dir in #( 11153d1c293acSmrg -*) as_dir=./$as_dir;; 11154d1c293acSmrg esac 11155d1c293acSmrg test -d "$as_dir" || eval $as_mkdir_p || { 11156d1c293acSmrg as_dirs= 11157d1c293acSmrg while :; do 11158d1c293acSmrg case $as_dir in #( 11159d1c293acSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11160d1c293acSmrg *) as_qdir=$as_dir;; 11161d1c293acSmrg esac 11162d1c293acSmrg as_dirs="'$as_qdir' $as_dirs" 11163d1c293acSmrg as_dir=`$as_dirname -- "$as_dir" || 11164d1c293acSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11165d1c293acSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 11166d1c293acSmrg X"$as_dir" : 'X\(//\)$' \| \ 11167d1c293acSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11168d1c293acSmrg$as_echo X"$as_dir" | 11169d1c293acSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11170d1c293acSmrg s//\1/ 11171d1c293acSmrg q 11172d1c293acSmrg } 11173d1c293acSmrg /^X\(\/\/\)[^/].*/{ 11174d1c293acSmrg s//\1/ 11175d1c293acSmrg q 11176d1c293acSmrg } 11177d1c293acSmrg /^X\(\/\/\)$/{ 11178d1c293acSmrg s//\1/ 11179d1c293acSmrg q 11180d1c293acSmrg } 11181d1c293acSmrg /^X\(\/\).*/{ 11182d1c293acSmrg s//\1/ 11183d1c293acSmrg q 11184d1c293acSmrg } 11185d1c293acSmrg s/.*/./; q'` 11186d1c293acSmrg test -d "$as_dir" && break 11187d1c293acSmrg done 11188d1c293acSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 11189d1c293acSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11190d1c293acSmrg 111918440cca4Smrg 11192d1c293acSmrg} # as_fn_mkdir_p 111938440cca4Smrgif mkdir -p . 2>/dev/null; then 11194d1c293acSmrg as_mkdir_p='mkdir -p "$as_dir"' 111958440cca4Smrgelse 111968440cca4Smrg test -d ./-p && rmdir ./-p 111978440cca4Smrg as_mkdir_p=false 111988440cca4Smrgfi 111998440cca4Smrg 1120004449c54Smrg 1120104449c54Smrg# as_fn_executable_p FILE 1120204449c54Smrg# ----------------------- 1120304449c54Smrg# Test if FILE is an executable regular file. 1120404449c54Smrgas_fn_executable_p () 1120504449c54Smrg{ 1120604449c54Smrg test -f "$1" && test -x "$1" 1120704449c54Smrg} # as_fn_executable_p 1120804449c54Smrgas_test_x='test -x' 1120904449c54Smrgas_executable_p=as_fn_executable_p 112108440cca4Smrg 112118440cca4Smrg# Sed expression to map a string onto a valid CPP name. 112128440cca4Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 112138440cca4Smrg 112148440cca4Smrg# Sed expression to map a string onto a valid variable name. 112158440cca4Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 112168440cca4Smrg 112178440cca4Smrg 112188440cca4Smrgexec 6>&1 11219d1c293acSmrg## ----------------------------------- ## 11220d1c293acSmrg## Main body of $CONFIG_STATUS script. ## 11221d1c293acSmrg## ----------------------------------- ## 11222d1c293acSmrg_ASEOF 11223d1c293acSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11224d1c293acSmrg 11225d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11226d1c293acSmrg# Save the log message, to keep $0 and so on meaningful, and to 112278440cca4Smrg# report actual input values of CONFIG_FILES etc. instead of their 11228d1c293acSmrg# values after options handling. 11229d1c293acSmrgac_log=" 1123004449c54SmrgThis file was extended by xstdcmap $as_me 1.0.4, which was 1123104449c54Smrggenerated by GNU Autoconf 2.69. Invocation command line was 112328440cca4Smrg 112338440cca4Smrg CONFIG_FILES = $CONFIG_FILES 112348440cca4Smrg CONFIG_HEADERS = $CONFIG_HEADERS 112358440cca4Smrg CONFIG_LINKS = $CONFIG_LINKS 112368440cca4Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 112378440cca4Smrg $ $0 $@ 112388440cca4Smrg 11239d1c293acSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 11240d1c293acSmrg" 11241d1c293acSmrg 112428440cca4Smrg_ACEOF 112438440cca4Smrg 11244d1c293acSmrgcase $ac_config_files in *" 11245d1c293acSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 11246d1c293acSmrgesac 112478440cca4Smrg 11248d1c293acSmrgcase $ac_config_headers in *" 11249d1c293acSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11250d1c293acSmrgesac 112518440cca4Smrg 112528440cca4Smrg 11253d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11254d1c293acSmrg# Files that config.status was made for. 11255d1c293acSmrgconfig_files="$ac_config_files" 11256d1c293acSmrgconfig_headers="$ac_config_headers" 11257d1c293acSmrgconfig_commands="$ac_config_commands" 112588440cca4Smrg 11259d1c293acSmrg_ACEOF 112608440cca4Smrg 11261d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 112628440cca4Smrgac_cs_usage="\ 11263d1c293acSmrg\`$as_me' instantiates files and other configuration actions 11264d1c293acSmrgfrom templates according to the current configuration. Unless the files 11265d1c293acSmrgand actions are specified as TAGs, all are instantiated by default. 112668440cca4Smrg 11267d1c293acSmrgUsage: $0 [OPTION]... [TAG]... 112688440cca4Smrg 112698440cca4Smrg -h, --help print this help, then exit 11270d1c293acSmrg -V, --version print version number and configuration settings, then exit 11271d1c293acSmrg --config print configuration, then exit 11272d1c293acSmrg -q, --quiet, --silent 11273d1c293acSmrg do not print progress messages 112748440cca4Smrg -d, --debug don't remove temporary files 112758440cca4Smrg --recheck update $as_me by reconfiguring in the same conditions 11276d1c293acSmrg --file=FILE[:TEMPLATE] 11277d1c293acSmrg instantiate the configuration file FILE 11278d1c293acSmrg --header=FILE[:TEMPLATE] 11279d1c293acSmrg instantiate the configuration header FILE 112808440cca4Smrg 112818440cca4SmrgConfiguration files: 112828440cca4Smrg$config_files 112838440cca4Smrg 112848440cca4SmrgConfiguration headers: 112858440cca4Smrg$config_headers 112868440cca4Smrg 112878440cca4SmrgConfiguration commands: 112888440cca4Smrg$config_commands 112898440cca4Smrg 1129004449c54SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xstdcmap/issues>." 112918440cca4Smrg 11292d1c293acSmrg_ACEOF 11293d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11294d1c293acSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 112958440cca4Smrgac_cs_version="\\ 1129604449c54Smrgxstdcmap config.status 1.0.4 1129704449c54Smrgconfigured by $0, generated by GNU Autoconf 2.69, 11298d1c293acSmrg with options \\"\$ac_cs_config\\" 112998440cca4Smrg 1130004449c54SmrgCopyright (C) 2012 Free Software Foundation, Inc. 113018440cca4SmrgThis config.status script is free software; the Free Software Foundation 113028440cca4Smrggives unlimited permission to copy, distribute and modify it." 11303d1c293acSmrg 11304d1c293acSmrgac_pwd='$ac_pwd' 11305d1c293acSmrgsrcdir='$srcdir' 11306d1c293acSmrgINSTALL='$INSTALL' 11307d1c293acSmrgMKDIR_P='$MKDIR_P' 11308d1c293acSmrgAWK='$AWK' 11309d1c293acSmrgtest -n "\$AWK" || AWK=awk 113108440cca4Smrg_ACEOF 113118440cca4Smrg 11312d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11313d1c293acSmrg# The default lists apply if the user does not specify any file. 113148440cca4Smrgac_need_defaults=: 113158440cca4Smrgwhile test $# != 0 113168440cca4Smrgdo 113178440cca4Smrg case $1 in 11318d1c293acSmrg --*=?*) 11319d1c293acSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 11320d1c293acSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11321d1c293acSmrg ac_shift=: 11322d1c293acSmrg ;; 11323d1c293acSmrg --*=) 11324d1c293acSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 11325d1c293acSmrg ac_optarg= 113268440cca4Smrg ac_shift=: 113278440cca4Smrg ;; 11328d1c293acSmrg *) 113298440cca4Smrg ac_option=$1 113308440cca4Smrg ac_optarg=$2 113318440cca4Smrg ac_shift=shift 113328440cca4Smrg ;; 113338440cca4Smrg esac 113348440cca4Smrg 113358440cca4Smrg case $ac_option in 113368440cca4Smrg # Handling of the options. 113378440cca4Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 113388440cca4Smrg ac_cs_recheck=: ;; 11339d1c293acSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11340d1c293acSmrg $as_echo "$ac_cs_version"; exit ;; 11341d1c293acSmrg --config | --confi | --conf | --con | --co | --c ) 11342d1c293acSmrg $as_echo "$ac_cs_config"; exit ;; 11343d1c293acSmrg --debug | --debu | --deb | --de | --d | -d ) 113448440cca4Smrg debug=: ;; 113458440cca4Smrg --file | --fil | --fi | --f ) 113468440cca4Smrg $ac_shift 11347d1c293acSmrg case $ac_optarg in 11348d1c293acSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11349d1c293acSmrg '') as_fn_error $? "missing file argument" ;; 11350d1c293acSmrg esac 11351d1c293acSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 113528440cca4Smrg ac_need_defaults=false;; 113538440cca4Smrg --header | --heade | --head | --hea ) 113548440cca4Smrg $ac_shift 11355d1c293acSmrg case $ac_optarg in 11356d1c293acSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11357d1c293acSmrg esac 11358d1c293acSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 113598440cca4Smrg ac_need_defaults=false;; 11360d1c293acSmrg --he | --h) 11361d1c293acSmrg # Conflict between --help and --header 11362d1c293acSmrg as_fn_error $? "ambiguous option: \`$1' 11363d1c293acSmrgTry \`$0 --help' for more information.";; 11364d1c293acSmrg --help | --hel | -h ) 11365d1c293acSmrg $as_echo "$ac_cs_usage"; exit ;; 113668440cca4Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 113678440cca4Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 113688440cca4Smrg ac_cs_silent=: ;; 113698440cca4Smrg 113708440cca4Smrg # This is an error. 11371d1c293acSmrg -*) as_fn_error $? "unrecognized option: \`$1' 11372d1c293acSmrgTry \`$0 --help' for more information." ;; 113738440cca4Smrg 11374d1c293acSmrg *) as_fn_append ac_config_targets " $1" 11375d1c293acSmrg ac_need_defaults=false ;; 113768440cca4Smrg 113778440cca4Smrg esac 113788440cca4Smrg shift 113798440cca4Smrgdone 113808440cca4Smrg 113818440cca4Smrgac_configure_extra_args= 113828440cca4Smrg 113838440cca4Smrgif $ac_cs_silent; then 113848440cca4Smrg exec 6>/dev/null 113858440cca4Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 113868440cca4Smrgfi 113878440cca4Smrg 113888440cca4Smrg_ACEOF 11389d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 113908440cca4Smrgif \$ac_cs_recheck; then 1139104449c54Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11392d1c293acSmrg shift 11393d1c293acSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11394d1c293acSmrg CONFIG_SHELL='$SHELL' 11395d1c293acSmrg export CONFIG_SHELL 11396d1c293acSmrg exec "\$@" 113978440cca4Smrgfi 113988440cca4Smrg 113998440cca4Smrg_ACEOF 11400d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11401d1c293acSmrgexec 5>>config.log 11402d1c293acSmrg{ 11403d1c293acSmrg echo 11404d1c293acSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11405d1c293acSmrg## Running $as_me. ## 11406d1c293acSmrg_ASBOX 11407d1c293acSmrg $as_echo "$ac_log" 11408d1c293acSmrg} >&5 114098440cca4Smrg 11410d1c293acSmrg_ACEOF 11411d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 114128440cca4Smrg# 11413d1c293acSmrg# INIT-COMMANDS 114148440cca4Smrg# 114158440cca4SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 114168440cca4Smrg 114178440cca4Smrg_ACEOF 114188440cca4Smrg 11419d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 114208440cca4Smrg 11421d1c293acSmrg# Handling of arguments. 114228440cca4Smrgfor ac_config_target in $ac_config_targets 114238440cca4Smrgdo 11424d1c293acSmrg case $ac_config_target in 11425d1c293acSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 1142620915927Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11427d1c293acSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 1142820915927Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11429d1c293acSmrg 11430d1c293acSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 114318440cca4Smrg esac 114328440cca4Smrgdone 114338440cca4Smrg 11434d1c293acSmrg 114358440cca4Smrg# If the user did not use the arguments to specify the items to instantiate, 114368440cca4Smrg# then the envvar interface is used. Set only those that are not. 114378440cca4Smrg# We use the long form for the default assignment because of an extremely 114388440cca4Smrg# bizarre bug on SunOS 4.1.3. 114398440cca4Smrgif $ac_need_defaults; then 114408440cca4Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 114418440cca4Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 114428440cca4Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 114438440cca4Smrgfi 114448440cca4Smrg 114458440cca4Smrg# Have a temporary directory for convenience. Make it in the build tree 11446d1c293acSmrg# simply because there is no reason against having it here, and in addition, 114478440cca4Smrg# creating and moving files from /tmp can sometimes cause problems. 11448d1c293acSmrg# Hook for its removal unless debugging. 11449d1c293acSmrg# Note that there is a small window in which the directory will not be cleaned: 11450d1c293acSmrg# after its creation but before its name has been assigned to `$tmp'. 114518440cca4Smrg$debug || 114528440cca4Smrg{ 11453d1c293acSmrg tmp= ac_tmp= 11454d1c293acSmrg trap 'exit_status=$? 11455d1c293acSmrg : "${ac_tmp:=$tmp}" 11456d1c293acSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11457d1c293acSmrg' 0 11458d1c293acSmrg trap 'as_fn_exit 1' 1 2 13 15 114598440cca4Smrg} 114608440cca4Smrg# Create a (secure) tmp directory for tmp files. 114618440cca4Smrg 114628440cca4Smrg{ 11463d1c293acSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11464d1c293acSmrg test -d "$tmp" 114658440cca4Smrg} || 114668440cca4Smrg{ 11467d1c293acSmrg tmp=./conf$$-$RANDOM 11468d1c293acSmrg (umask 077 && mkdir "$tmp") 11469d1c293acSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11470d1c293acSmrgac_tmp=$tmp 11471d1c293acSmrg 11472d1c293acSmrg# Set up the scripts for CONFIG_FILES section. 11473d1c293acSmrg# No need to generate them if there are no CONFIG_FILES. 11474d1c293acSmrg# This happens for instance with `./config.status config.h'. 11475d1c293acSmrgif test -n "$CONFIG_FILES"; then 11476d1c293acSmrg 11477d1c293acSmrg 11478d1c293acSmrgac_cr=`echo X | tr X '\015'` 11479d1c293acSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 11480d1c293acSmrg# But we know of no other shell where ac_cr would be empty at this 11481d1c293acSmrg# point, so we can use a bashism as a fallback. 11482d1c293acSmrgif test "x$ac_cr" = x; then 11483d1c293acSmrg eval ac_cr=\$\'\\r\' 11484d1c293acSmrgfi 11485d1c293acSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11486d1c293acSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11487d1c293acSmrg ac_cs_awk_cr='\\r' 11488d1c293acSmrgelse 11489d1c293acSmrg ac_cs_awk_cr=$ac_cr 11490d1c293acSmrgfi 11491d1c293acSmrg 11492d1c293acSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 11493d1c293acSmrg_ACEOF 11494d1c293acSmrg 11495d1c293acSmrg 11496d1c293acSmrg{ 11497d1c293acSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 11498d1c293acSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11499d1c293acSmrg echo "_ACEOF" 11500d1c293acSmrg} >conf$$subs.sh || 11501d1c293acSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11502d1c293acSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11503d1c293acSmrgac_delim='%!_!# ' 11504d1c293acSmrgfor ac_last_try in false false false false false :; do 11505d1c293acSmrg . ./conf$$subs.sh || 11506d1c293acSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11507d1c293acSmrg 11508d1c293acSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11509d1c293acSmrg if test $ac_delim_n = $ac_delim_num; then 11510d1c293acSmrg break 11511d1c293acSmrg elif $ac_last_try; then 11512d1c293acSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11513d1c293acSmrg else 11514d1c293acSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11515d1c293acSmrg fi 11516d1c293acSmrgdone 11517d1c293acSmrgrm -f conf$$subs.sh 11518d1c293acSmrg 11519d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11520d1c293acSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11521d1c293acSmrg_ACEOF 11522d1c293acSmrgsed -n ' 11523d1c293acSmrgh 11524d1c293acSmrgs/^/S["/; s/!.*/"]=/ 11525d1c293acSmrgp 11526d1c293acSmrgg 11527d1c293acSmrgs/^[^!]*!// 11528d1c293acSmrg:repl 11529d1c293acSmrgt repl 11530d1c293acSmrgs/'"$ac_delim"'$// 11531d1c293acSmrgt delim 11532d1c293acSmrg:nl 11533d1c293acSmrgh 11534d1c293acSmrgs/\(.\{148\}\)..*/\1/ 11535d1c293acSmrgt more1 11536d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11537d1c293acSmrgp 11538d1c293acSmrgn 11539d1c293acSmrgb repl 11540d1c293acSmrg:more1 11541d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11542d1c293acSmrgp 11543d1c293acSmrgg 11544d1c293acSmrgs/.\{148\}// 11545d1c293acSmrgt nl 11546d1c293acSmrg:delim 11547d1c293acSmrgh 11548d1c293acSmrgs/\(.\{148\}\)..*/\1/ 11549d1c293acSmrgt more2 11550d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 11551d1c293acSmrgp 11552d1c293acSmrgb 11553d1c293acSmrg:more2 11554d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11555d1c293acSmrgp 11556d1c293acSmrgg 11557d1c293acSmrgs/.\{148\}// 11558d1c293acSmrgt delim 11559d1c293acSmrg' <conf$$subs.awk | sed ' 11560d1c293acSmrg/^[^""]/{ 11561d1c293acSmrg N 11562d1c293acSmrg s/\n// 11563d1c293acSmrg} 11564d1c293acSmrg' >>$CONFIG_STATUS || ac_write_fail=1 11565d1c293acSmrgrm -f conf$$subs.awk 11566d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11567d1c293acSmrg_ACAWK 11568d1c293acSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11569d1c293acSmrg for (key in S) S_is_set[key] = 1 11570d1c293acSmrg FS = "" 11571d1c293acSmrg 11572d1c293acSmrg} 115738440cca4Smrg{ 11574d1c293acSmrg line = $ 0 11575d1c293acSmrg nfields = split(line, field, "@") 11576d1c293acSmrg substed = 0 11577d1c293acSmrg len = length(field[1]) 11578d1c293acSmrg for (i = 2; i < nfields; i++) { 11579d1c293acSmrg key = field[i] 11580d1c293acSmrg keylen = length(key) 11581d1c293acSmrg if (S_is_set[key]) { 11582d1c293acSmrg value = S[key] 11583d1c293acSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11584d1c293acSmrg len += length(value) + length(field[++i]) 11585d1c293acSmrg substed = 1 11586d1c293acSmrg } else 11587d1c293acSmrg len += 1 + keylen 11588d1c293acSmrg } 11589d1c293acSmrg 11590d1c293acSmrg print line 115918440cca4Smrg} 115928440cca4Smrg 11593d1c293acSmrg_ACAWK 11594d1c293acSmrg_ACEOF 11595d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11596d1c293acSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11597d1c293acSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11598d1c293acSmrgelse 11599d1c293acSmrg cat 11600d1c293acSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11601d1c293acSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 116028440cca4Smrg_ACEOF 116038440cca4Smrg 11604d1c293acSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11605d1c293acSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11606d1c293acSmrg# trailing colons and then remove the whole line if VPATH becomes empty 11607d1c293acSmrg# (actually we leave an empty line to preserve line numbers). 11608d1c293acSmrgif test "x$srcdir" = x.; then 11609d1c293acSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11610d1c293acSmrgh 11611d1c293acSmrgs/// 11612d1c293acSmrgs/^/:/ 11613d1c293acSmrgs/[ ]*$/:/ 11614d1c293acSmrgs/:\$(srcdir):/:/g 11615d1c293acSmrgs/:\${srcdir}:/:/g 11616d1c293acSmrgs/:@srcdir@:/:/g 11617d1c293acSmrgs/^:*// 11618d1c293acSmrgs/:*$// 11619d1c293acSmrgx 11620d1c293acSmrgs/\(=[ ]*\).*/\1/ 11621d1c293acSmrgG 11622d1c293acSmrgs/\n// 11623d1c293acSmrgs/^[^=]*=[ ]*$// 11624d1c293acSmrg}' 11625d1c293acSmrgfi 116268440cca4Smrg 11627d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11628d1c293acSmrgfi # test -n "$CONFIG_FILES" 116298440cca4Smrg 11630d1c293acSmrg# Set up the scripts for CONFIG_HEADERS section. 11631d1c293acSmrg# No need to generate them if there are no CONFIG_HEADERS. 11632d1c293acSmrg# This happens for instance with `./config.status Makefile'. 11633d1c293acSmrgif test -n "$CONFIG_HEADERS"; then 11634d1c293acSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 11635d1c293acSmrgBEGIN { 116368440cca4Smrg_ACEOF 116378440cca4Smrg 11638d1c293acSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 11639d1c293acSmrg# here-document in config.status, that substitutes the proper values into 11640d1c293acSmrg# config.h.in to produce config.h. 11641d1c293acSmrg 11642d1c293acSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 11643d1c293acSmrg# handling of long lines. 11644d1c293acSmrgac_delim='%!_!# ' 11645d1c293acSmrgfor ac_last_try in false false :; do 11646d1c293acSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11647d1c293acSmrg if test -z "$ac_tt"; then 11648d1c293acSmrg break 11649d1c293acSmrg elif $ac_last_try; then 11650d1c293acSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11651d1c293acSmrg else 11652d1c293acSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 116538440cca4Smrg fi 11654d1c293acSmrgdone 116558440cca4Smrg 11656d1c293acSmrg# For the awk script, D is an array of macro values keyed by name, 11657d1c293acSmrg# likewise P contains macro parameters if any. Preserve backslash 11658d1c293acSmrg# newline sequences. 11659d1c293acSmrg 11660d1c293acSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11661d1c293acSmrgsed -n ' 11662d1c293acSmrgs/.\{148\}/&'"$ac_delim"'/g 11663d1c293acSmrgt rset 11664d1c293acSmrg:rset 11665d1c293acSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 11666d1c293acSmrgt def 11667d1c293acSmrgd 11668d1c293acSmrg:def 11669d1c293acSmrgs/\\$// 11670d1c293acSmrgt bsnl 11671d1c293acSmrgs/["\\]/\\&/g 11672d1c293acSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11673d1c293acSmrgD["\1"]=" \3"/p 11674d1c293acSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11675d1c293acSmrgd 11676d1c293acSmrg:bsnl 11677d1c293acSmrgs/["\\]/\\&/g 11678d1c293acSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11679d1c293acSmrgD["\1"]=" \3\\\\\\n"\\/p 11680d1c293acSmrgt cont 11681d1c293acSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11682d1c293acSmrgt cont 11683d1c293acSmrgd 11684d1c293acSmrg:cont 11685d1c293acSmrgn 11686d1c293acSmrgs/.\{148\}/&'"$ac_delim"'/g 11687d1c293acSmrgt clear 11688d1c293acSmrg:clear 11689d1c293acSmrgs/\\$// 11690d1c293acSmrgt bsnlc 11691d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 11692d1c293acSmrgd 11693d1c293acSmrg:bsnlc 11694d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11695d1c293acSmrgb cont 11696d1c293acSmrg' <confdefs.h | sed ' 11697d1c293acSmrgs/'"$ac_delim"'/"\\\ 11698d1c293acSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 11699d1c293acSmrg 11700d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11701d1c293acSmrg for (key in D) D_is_set[key] = 1 11702d1c293acSmrg FS = "" 11703d1c293acSmrg} 11704d1c293acSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11705d1c293acSmrg line = \$ 0 11706d1c293acSmrg split(line, arg, " ") 11707d1c293acSmrg if (arg[1] == "#") { 11708d1c293acSmrg defundef = arg[2] 11709d1c293acSmrg mac1 = arg[3] 11710d1c293acSmrg } else { 11711d1c293acSmrg defundef = substr(arg[1], 2) 11712d1c293acSmrg mac1 = arg[2] 11713d1c293acSmrg } 11714d1c293acSmrg split(mac1, mac2, "(") #) 11715d1c293acSmrg macro = mac2[1] 11716d1c293acSmrg prefix = substr(line, 1, index(line, defundef) - 1) 11717d1c293acSmrg if (D_is_set[macro]) { 11718d1c293acSmrg # Preserve the white space surrounding the "#". 11719d1c293acSmrg print prefix "define", macro P[macro] D[macro] 11720d1c293acSmrg next 11721d1c293acSmrg } else { 11722d1c293acSmrg # Replace #undef with comments. This is necessary, for example, 11723d1c293acSmrg # in the case of _POSIX_SOURCE, which is predefined and required 11724d1c293acSmrg # on some systems where configure will not decide to define it. 11725d1c293acSmrg if (defundef == "undef") { 11726d1c293acSmrg print "/*", prefix defundef, macro, "*/" 11727d1c293acSmrg next 11728d1c293acSmrg } 11729d1c293acSmrg } 11730d1c293acSmrg} 11731d1c293acSmrg{ print } 11732d1c293acSmrg_ACAWK 117338440cca4Smrg_ACEOF 11734d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11735d1c293acSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11736d1c293acSmrgfi # test -n "$CONFIG_HEADERS" 11737d1c293acSmrg 11738d1c293acSmrg 11739d1c293acSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11740d1c293acSmrgshift 11741d1c293acSmrgfor ac_tag 11742d1c293acSmrgdo 11743d1c293acSmrg case $ac_tag in 11744d1c293acSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 11745d1c293acSmrg esac 11746d1c293acSmrg case $ac_mode$ac_tag in 11747d1c293acSmrg :[FHL]*:*);; 11748d1c293acSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11749d1c293acSmrg :[FH]-) ac_tag=-:-;; 11750d1c293acSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11751d1c293acSmrg esac 11752d1c293acSmrg ac_save_IFS=$IFS 11753d1c293acSmrg IFS=: 11754d1c293acSmrg set x $ac_tag 11755d1c293acSmrg IFS=$ac_save_IFS 11756d1c293acSmrg shift 11757d1c293acSmrg ac_file=$1 11758d1c293acSmrg shift 11759d1c293acSmrg 11760d1c293acSmrg case $ac_mode in 11761d1c293acSmrg :L) ac_source=$1;; 11762d1c293acSmrg :[FH]) 11763d1c293acSmrg ac_file_inputs= 11764d1c293acSmrg for ac_f 11765d1c293acSmrg do 11766d1c293acSmrg case $ac_f in 11767d1c293acSmrg -) ac_f="$ac_tmp/stdin";; 11768d1c293acSmrg *) # Look for the file first in the build tree, then in the source tree 11769d1c293acSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 11770d1c293acSmrg # because $ac_f cannot contain `:'. 11771d1c293acSmrg test -f "$ac_f" || 11772d1c293acSmrg case $ac_f in 11773d1c293acSmrg [\\/$]*) false;; 11774d1c293acSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11775d1c293acSmrg esac || 11776d1c293acSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11777d1c293acSmrg esac 11778d1c293acSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11779d1c293acSmrg as_fn_append ac_file_inputs " '$ac_f'" 11780d1c293acSmrg done 11781d1c293acSmrg 11782d1c293acSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 11783d1c293acSmrg # use $as_me), people would be surprised to read: 11784d1c293acSmrg # /* config.h. Generated by config.status. */ 11785d1c293acSmrg configure_input='Generated from '` 11786d1c293acSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11787d1c293acSmrg `' by configure.' 11788d1c293acSmrg if test x"$ac_file" != x-; then 11789d1c293acSmrg configure_input="$ac_file. $configure_input" 11790d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11791d1c293acSmrg$as_echo "$as_me: creating $ac_file" >&6;} 11792d1c293acSmrg fi 11793d1c293acSmrg # Neutralize special characters interpreted by sed in replacement strings. 11794d1c293acSmrg case $configure_input in #( 11795d1c293acSmrg *\&* | *\|* | *\\* ) 11796d1c293acSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 11797d1c293acSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 11798d1c293acSmrg *) ac_sed_conf_input=$configure_input;; 11799d1c293acSmrg esac 11800d1c293acSmrg 11801d1c293acSmrg case $ac_tag in 11802d1c293acSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11803d1c293acSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11804d1c293acSmrg esac 11805d1c293acSmrg ;; 118068440cca4Smrg esac 118078440cca4Smrg 11808d1c293acSmrg ac_dir=`$as_dirname -- "$ac_file" || 118098440cca4Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 118108440cca4Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 118118440cca4Smrg X"$ac_file" : 'X\(//\)$' \| \ 11812d1c293acSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11813d1c293acSmrg$as_echo X"$ac_file" | 11814d1c293acSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11815d1c293acSmrg s//\1/ 11816d1c293acSmrg q 11817d1c293acSmrg } 11818d1c293acSmrg /^X\(\/\/\)[^/].*/{ 11819d1c293acSmrg s//\1/ 11820d1c293acSmrg q 11821d1c293acSmrg } 11822d1c293acSmrg /^X\(\/\/\)$/{ 11823d1c293acSmrg s//\1/ 11824d1c293acSmrg q 11825d1c293acSmrg } 11826d1c293acSmrg /^X\(\/\).*/{ 11827d1c293acSmrg s//\1/ 11828d1c293acSmrg q 11829d1c293acSmrg } 11830d1c293acSmrg s/.*/./; q'` 11831d1c293acSmrg as_dir="$ac_dir"; as_fn_mkdir_p 118328440cca4Smrg ac_builddir=. 118338440cca4Smrg 11834d1c293acSmrgcase "$ac_dir" in 11835d1c293acSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11836d1c293acSmrg*) 11837d1c293acSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11838d1c293acSmrg # A ".." for each directory in $ac_dir_suffix. 11839d1c293acSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11840d1c293acSmrg case $ac_top_builddir_sub in 11841d1c293acSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11842d1c293acSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11843d1c293acSmrg esac ;; 11844d1c293acSmrgesac 11845d1c293acSmrgac_abs_top_builddir=$ac_pwd 11846d1c293acSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 11847d1c293acSmrg# for backward compatibility: 11848d1c293acSmrgac_top_builddir=$ac_top_build_prefix 118498440cca4Smrg 118508440cca4Smrgcase $srcdir in 11851d1c293acSmrg .) # We are building in place. 118528440cca4Smrg ac_srcdir=. 11853d1c293acSmrg ac_top_srcdir=$ac_top_builddir_sub 11854d1c293acSmrg ac_abs_top_srcdir=$ac_pwd ;; 11855d1c293acSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 118568440cca4Smrg ac_srcdir=$srcdir$ac_dir_suffix; 11857d1c293acSmrg ac_top_srcdir=$srcdir 11858d1c293acSmrg ac_abs_top_srcdir=$srcdir ;; 11859d1c293acSmrg *) # Relative name. 11860d1c293acSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11861d1c293acSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 11862d1c293acSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 118638440cca4Smrgesac 11864d1c293acSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 118658440cca4Smrg 118668440cca4Smrg 11867d1c293acSmrg case $ac_mode in 11868d1c293acSmrg :F) 11869d1c293acSmrg # 11870d1c293acSmrg # CONFIG_FILE 11871d1c293acSmrg # 118728440cca4Smrg 118738440cca4Smrg case $INSTALL in 118748440cca4Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11875d1c293acSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11876d1c293acSmrg esac 11877d1c293acSmrg ac_MKDIR_P=$MKDIR_P 11878d1c293acSmrg case $MKDIR_P in 11879d1c293acSmrg [\\/$]* | ?:[\\/]* ) ;; 11880d1c293acSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 118818440cca4Smrg esac 11882d1c293acSmrg_ACEOF 118838440cca4Smrg 11884d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11885d1c293acSmrg# If the template does not know about datarootdir, expand it. 11886d1c293acSmrg# FIXME: This hack should be removed a few years after 2.60. 11887d1c293acSmrgac_datarootdir_hack=; ac_datarootdir_seen= 11888d1c293acSmrgac_sed_dataroot=' 11889d1c293acSmrg/datarootdir/ { 11890d1c293acSmrg p 11891d1c293acSmrg q 11892d1c293acSmrg} 11893d1c293acSmrg/@datadir@/p 11894d1c293acSmrg/@docdir@/p 11895d1c293acSmrg/@infodir@/p 11896d1c293acSmrg/@localedir@/p 11897d1c293acSmrg/@mandir@/p' 11898d1c293acSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11899d1c293acSmrg*datarootdir*) ac_datarootdir_seen=yes;; 11900d1c293acSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11901d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11902d1c293acSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11903d1c293acSmrg_ACEOF 11904d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11905d1c293acSmrg ac_datarootdir_hack=' 11906d1c293acSmrg s&@datadir@&$datadir&g 11907d1c293acSmrg s&@docdir@&$docdir&g 11908d1c293acSmrg s&@infodir@&$infodir&g 11909d1c293acSmrg s&@localedir@&$localedir&g 11910d1c293acSmrg s&@mandir@&$mandir&g 11911d1c293acSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 11912d1c293acSmrgesac 119138440cca4Smrg_ACEOF 11914d1c293acSmrg 11915d1c293acSmrg# Neutralize VPATH when `$srcdir' = `.'. 11916d1c293acSmrg# Shell code in configure.ac might set extrasub. 11917d1c293acSmrg# FIXME: do we really want to maintain this feature? 11918d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11919d1c293acSmrgac_sed_extra="$ac_vpsub 119208440cca4Smrg$extrasub 119218440cca4Smrg_ACEOF 11922d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 119238440cca4Smrg:t 119248440cca4Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11925d1c293acSmrgs|@configure_input@|$ac_sed_conf_input|;t t 11926d1c293acSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 11927d1c293acSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 11928d1c293acSmrgs&@srcdir@&$ac_srcdir&;t t 11929d1c293acSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 11930d1c293acSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 11931d1c293acSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11932d1c293acSmrgs&@builddir@&$ac_builddir&;t t 11933d1c293acSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 11934d1c293acSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11935d1c293acSmrgs&@INSTALL@&$ac_INSTALL&;t t 11936d1c293acSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 11937d1c293acSmrg$ac_datarootdir_hack 11938d1c293acSmrg" 11939d1c293acSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11940d1c293acSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11941d1c293acSmrg 11942d1c293acSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11943d1c293acSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11944d1c293acSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11945d1c293acSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 11946d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11947d1c293acSmrgwhich seems to be undefined. Please make sure it is defined" >&5 11948d1c293acSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11949d1c293acSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 11950d1c293acSmrg 11951d1c293acSmrg rm -f "$ac_tmp/stdin" 119528440cca4Smrg case $ac_file in 11953d1c293acSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11954d1c293acSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11955d1c293acSmrg esac \ 11956d1c293acSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11957d1c293acSmrg ;; 11958d1c293acSmrg :H) 11959d1c293acSmrg # 11960d1c293acSmrg # CONFIG_HEADER 11961d1c293acSmrg # 119628440cca4Smrg if test x"$ac_file" != x-; then 11963d1c293acSmrg { 11964d1c293acSmrg $as_echo "/* $configure_input */" \ 11965d1c293acSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11966d1c293acSmrg } >"$ac_tmp/config.h" \ 11967d1c293acSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11968d1c293acSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11969d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11970d1c293acSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 119718440cca4Smrg else 11972d1c293acSmrg rm -f "$ac_file" 11973d1c293acSmrg mv "$ac_tmp/config.h" "$ac_file" \ 11974d1c293acSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 119758440cca4Smrg fi 119768440cca4Smrg else 11977d1c293acSmrg $as_echo "/* $configure_input */" \ 11978d1c293acSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11979d1c293acSmrg || as_fn_error $? "could not create -" "$LINENO" 5 119808440cca4Smrg fi 11981d1c293acSmrg# Compute "$ac_file"'s index in $config_headers. 11982d1c293acSmrg_am_arg="$ac_file" 119838440cca4Smrg_am_stamp_count=1 119848440cca4Smrgfor _am_header in $config_headers :; do 119858440cca4Smrg case $_am_header in 11986d1c293acSmrg $_am_arg | $_am_arg:* ) 119878440cca4Smrg break ;; 119888440cca4Smrg * ) 119898440cca4Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 119908440cca4Smrg esac 119918440cca4Smrgdone 11992d1c293acSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11993d1c293acSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11994d1c293acSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 11995d1c293acSmrg X"$_am_arg" : 'X\(//\)$' \| \ 11996d1c293acSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11997d1c293acSmrg$as_echo X"$_am_arg" | 11998d1c293acSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11999d1c293acSmrg s//\1/ 12000d1c293acSmrg q 12001d1c293acSmrg } 12002d1c293acSmrg /^X\(\/\/\)[^/].*/{ 12003d1c293acSmrg s//\1/ 12004d1c293acSmrg q 12005d1c293acSmrg } 12006d1c293acSmrg /^X\(\/\/\)$/{ 12007d1c293acSmrg s//\1/ 12008d1c293acSmrg q 12009d1c293acSmrg } 12010d1c293acSmrg /^X\(\/\).*/{ 12011d1c293acSmrg s//\1/ 12012d1c293acSmrg q 12013d1c293acSmrg } 12014d1c293acSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 12015d1c293acSmrg ;; 120168440cca4Smrg 12017d1c293acSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12018d1c293acSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 12019d1c293acSmrg ;; 12020d1c293acSmrg esac 120218440cca4Smrg 120228440cca4Smrg 12023d1c293acSmrg case $ac_file$ac_mode in 12024d1c293acSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 1202504449c54Smrg # Older Autoconf quotes --file arguments for eval, but not when files 12026d1c293acSmrg # are listed without --file. Let's play safe and only enable the eval 12027d1c293acSmrg # if we detect the quoting. 12028d1c293acSmrg case $CONFIG_FILES in 12029d1c293acSmrg *\'*) eval set x "$CONFIG_FILES" ;; 12030d1c293acSmrg *) set x $CONFIG_FILES ;; 12031d1c293acSmrg esac 12032d1c293acSmrg shift 12033d1c293acSmrg for mf 12034d1c293acSmrg do 12035d1c293acSmrg # Strip MF so we end up with the name of the file. 12036d1c293acSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 12037d1c293acSmrg # Check whether this is an Automake generated Makefile or not. 1203804449c54Smrg # We used to match only the files named 'Makefile.in', but 12039d1c293acSmrg # some people rename them; so instead we look at the file content. 12040d1c293acSmrg # Grep'ing the first line is not enough: some people post-process 12041d1c293acSmrg # each Makefile.in and add a new line on top of each file to say so. 12042d1c293acSmrg # Grep'ing the whole file is not good either: AIX grep has a line 12043d1c293acSmrg # limit of 2048, but all sed's we know have understand at least 4000. 12044d1c293acSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12045d1c293acSmrg dirpart=`$as_dirname -- "$mf" || 120468440cca4Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 120478440cca4Smrg X"$mf" : 'X\(//\)[^/]' \| \ 120488440cca4Smrg X"$mf" : 'X\(//\)$' \| \ 12049d1c293acSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12050d1c293acSmrg$as_echo X"$mf" | 12051d1c293acSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12052d1c293acSmrg s//\1/ 12053d1c293acSmrg q 12054d1c293acSmrg } 12055d1c293acSmrg /^X\(\/\/\)[^/].*/{ 12056d1c293acSmrg s//\1/ 12057d1c293acSmrg q 12058d1c293acSmrg } 12059d1c293acSmrg /^X\(\/\/\)$/{ 12060d1c293acSmrg s//\1/ 12061d1c293acSmrg q 12062d1c293acSmrg } 12063d1c293acSmrg /^X\(\/\).*/{ 12064d1c293acSmrg s//\1/ 12065d1c293acSmrg q 12066d1c293acSmrg } 12067d1c293acSmrg s/.*/./; q'` 12068d1c293acSmrg else 12069d1c293acSmrg continue 12070d1c293acSmrg fi 12071d1c293acSmrg # Extract the definition of DEPDIR, am__include, and am__quote 1207204449c54Smrg # from the Makefile without running 'make'. 12073d1c293acSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12074d1c293acSmrg test -z "$DEPDIR" && continue 12075d1c293acSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 1207604449c54Smrg test -z "$am__include" && continue 12077d1c293acSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12078d1c293acSmrg # Find all dependency output files, they are included files with 12079d1c293acSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 12080d1c293acSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 12081d1c293acSmrg # expansion. 12082d1c293acSmrg for file in `sed -n " 12083d1c293acSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 1208404449c54Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12085d1c293acSmrg # Make sure the directory exists. 12086d1c293acSmrg test -f "$dirpart/$file" && continue 12087d1c293acSmrg fdir=`$as_dirname -- "$file" || 120888440cca4Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 120898440cca4Smrg X"$file" : 'X\(//\)[^/]' \| \ 120908440cca4Smrg X"$file" : 'X\(//\)$' \| \ 12091d1c293acSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 12092d1c293acSmrg$as_echo X"$file" | 12093d1c293acSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12094d1c293acSmrg s//\1/ 12095d1c293acSmrg q 12096d1c293acSmrg } 12097d1c293acSmrg /^X\(\/\/\)[^/].*/{ 12098d1c293acSmrg s//\1/ 12099d1c293acSmrg q 12100d1c293acSmrg } 12101d1c293acSmrg /^X\(\/\/\)$/{ 12102d1c293acSmrg s//\1/ 12103d1c293acSmrg q 12104d1c293acSmrg } 12105d1c293acSmrg /^X\(\/\).*/{ 12106d1c293acSmrg s//\1/ 12107d1c293acSmrg q 12108d1c293acSmrg } 12109d1c293acSmrg s/.*/./; q'` 12110d1c293acSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 12111d1c293acSmrg # echo "creating $dirpart/$file" 12112d1c293acSmrg echo '# dummy' > "$dirpart/$file" 121138440cca4Smrg done 121148440cca4Smrg done 12115d1c293acSmrg} 121168440cca4Smrg ;; 12117d1c293acSmrg 121188440cca4Smrg esac 12119d1c293acSmrgdone # for ac_tag 121208440cca4Smrg 121218440cca4Smrg 12122d1c293acSmrgas_fn_exit 0 121238440cca4Smrg_ACEOF 121248440cca4Smrgac_clean_files=$ac_clean_files_save 121258440cca4Smrg 12126d1c293acSmrgtest $ac_write_fail = 0 || 12127d1c293acSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12128d1c293acSmrg 121298440cca4Smrg 121308440cca4Smrg# configure is writing to config.log, and then calls config.status. 121318440cca4Smrg# config.status does its own redirection, appending to config.log. 121328440cca4Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 121338440cca4Smrg# by configure, so config.status won't be able to write to it; its 121348440cca4Smrg# output is simply discarded. So we exec the FD to /dev/null, 121358440cca4Smrg# effectively closing config.log, so it can be properly (re)opened and 121368440cca4Smrg# appended to by config.status. When coming back to configure, we 121378440cca4Smrg# need to make the FD available again. 121388440cca4Smrgif test "$no_create" != yes; then 121398440cca4Smrg ac_cs_success=: 121408440cca4Smrg ac_config_status_args= 121418440cca4Smrg test "$silent" = yes && 121428440cca4Smrg ac_config_status_args="$ac_config_status_args --quiet" 121438440cca4Smrg exec 5>/dev/null 121448440cca4Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 121458440cca4Smrg exec 5>>config.log 121468440cca4Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 121478440cca4Smrg # would make configure fail if this is the last instruction. 12148d1c293acSmrg $ac_cs_success || as_fn_exit 1 12149d1c293acSmrgfi 12150d1c293acSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12151d1c293acSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12152d1c293acSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 121538440cca4Smrgfi 121548440cca4Smrg 12155