configure revision 4ed31819
1a8fdb4bcSmrg#! /bin/sh 2a8fdb4bcSmrg# Guess values for system-dependent variables and create Makefiles. 34ed31819Smrg# Generated by GNU Autoconf 2.68 for luit 1.1.1. 4a8fdb4bcSmrg# 5a8fdb4bcSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6a8fdb4bcSmrg# 7dbe7da2eSmrg# 8a8fdb4bcSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 977683534Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 1077683534Smrg# Foundation, Inc. 11dbe7da2eSmrg# 12dbe7da2eSmrg# 13a8fdb4bcSmrg# This configure script is free software; the Free Software Foundation 14a8fdb4bcSmrg# gives unlimited permission to copy, distribute and modify it. 15dbe7da2eSmrg## -------------------- ## 16dbe7da2eSmrg## M4sh Initialization. ## 17dbe7da2eSmrg## -------------------- ## 18a8fdb4bcSmrg 19a8fdb4bcSmrg# Be more Bourne compatible 20a8fdb4bcSmrgDUALCASE=1; export DUALCASE # for MKS sh 21dbe7da2eSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22a8fdb4bcSmrg emulate sh 23a8fdb4bcSmrg NULLCMD=: 24dbe7da2eSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25a8fdb4bcSmrg # is contrary to our usage. Disable this feature. 26a8fdb4bcSmrg alias -g '${1+"$@"}'='"$@"' 27a8fdb4bcSmrg setopt NO_GLOB_SUBST 28a8fdb4bcSmrgelse 29dbe7da2eSmrg case `(set -o) 2>/dev/null` in #( 30dbe7da2eSmrg *posix*) : 31dbe7da2eSmrg set -o posix ;; #( 32dbe7da2eSmrg *) : 33dbe7da2eSmrg ;; 34a8fdb4bcSmrgesac 35a8fdb4bcSmrgfi 36a8fdb4bcSmrg 37a8fdb4bcSmrg 38dbe7da2eSmrgas_nl=' 39dbe7da2eSmrg' 40dbe7da2eSmrgexport as_nl 41dbe7da2eSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 42dbe7da2eSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43dbe7da2eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44dbe7da2eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45dbe7da2eSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 46dbe7da2eSmrg# but without wasting forks for bash or zsh. 47dbe7da2eSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 48dbe7da2eSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49dbe7da2eSmrg as_echo='print -r --' 50dbe7da2eSmrg as_echo_n='print -rn --' 51dbe7da2eSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52dbe7da2eSmrg as_echo='printf %s\n' 53dbe7da2eSmrg as_echo_n='printf %s' 54dbe7da2eSmrgelse 55dbe7da2eSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56dbe7da2eSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57dbe7da2eSmrg as_echo_n='/usr/ucb/echo -n' 58a8fdb4bcSmrg else 59dbe7da2eSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60dbe7da2eSmrg as_echo_n_body='eval 61dbe7da2eSmrg arg=$1; 62dbe7da2eSmrg case $arg in #( 63dbe7da2eSmrg *"$as_nl"*) 64dbe7da2eSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 65dbe7da2eSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66dbe7da2eSmrg esac; 67dbe7da2eSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68dbe7da2eSmrg ' 69dbe7da2eSmrg export as_echo_n_body 70dbe7da2eSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 71a8fdb4bcSmrg fi 72dbe7da2eSmrg export as_echo_body 73dbe7da2eSmrg as_echo='sh -c $as_echo_body as_echo' 74a8fdb4bcSmrgfi 75a8fdb4bcSmrg 76dbe7da2eSmrg# The user is always right. 77dbe7da2eSmrgif test "${PATH_SEPARATOR+set}" != set; then 78dbe7da2eSmrg PATH_SEPARATOR=: 79dbe7da2eSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80dbe7da2eSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81dbe7da2eSmrg PATH_SEPARATOR=';' 82dbe7da2eSmrg } 83a8fdb4bcSmrgfi 84a8fdb4bcSmrg 85a8fdb4bcSmrg 86a8fdb4bcSmrg# IFS 87a8fdb4bcSmrg# We need space, tab and new line, in precisely that order. Quoting is 88a8fdb4bcSmrg# there to prevent editors from complaining about space-tab. 89a8fdb4bcSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90a8fdb4bcSmrg# splitting by setting IFS to empty value.) 91a8fdb4bcSmrgIFS=" "" $as_nl" 92a8fdb4bcSmrg 93a8fdb4bcSmrg# Find who we are. Look in the path if we contain no directory separator. 9477683534Smrgas_myself= 95dbe7da2eSmrgcase $0 in #(( 96a8fdb4bcSmrg *[\\/]* ) as_myself=$0 ;; 97a8fdb4bcSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98a8fdb4bcSmrgfor as_dir in $PATH 99a8fdb4bcSmrgdo 100a8fdb4bcSmrg IFS=$as_save_IFS 101a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 102dbe7da2eSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103dbe7da2eSmrg done 104a8fdb4bcSmrgIFS=$as_save_IFS 105a8fdb4bcSmrg 106a8fdb4bcSmrg ;; 107a8fdb4bcSmrgesac 108a8fdb4bcSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 109a8fdb4bcSmrg# in which case we are not to be found in the path. 110a8fdb4bcSmrgif test "x$as_myself" = x; then 111a8fdb4bcSmrg as_myself=$0 112a8fdb4bcSmrgfi 113a8fdb4bcSmrgif test ! -f "$as_myself"; then 114dbe7da2eSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115dbe7da2eSmrg exit 1 116a8fdb4bcSmrgfi 117a8fdb4bcSmrg 118dbe7da2eSmrg# Unset variables that we do not need and which cause bugs (e.g. in 119dbe7da2eSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120dbe7da2eSmrg# suppresses any "Segmentation fault" message there. '((' could 121dbe7da2eSmrg# trigger a bug in pdksh 5.2.14. 122dbe7da2eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 123dbe7da2eSmrgdo eval test x\${$as_var+set} = xset \ 124dbe7da2eSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125a8fdb4bcSmrgdone 126a8fdb4bcSmrgPS1='$ ' 127a8fdb4bcSmrgPS2='> ' 128a8fdb4bcSmrgPS4='+ ' 129a8fdb4bcSmrg 130a8fdb4bcSmrg# NLS nuisances. 131dbe7da2eSmrgLC_ALL=C 132dbe7da2eSmrgexport LC_ALL 133dbe7da2eSmrgLANGUAGE=C 134dbe7da2eSmrgexport LANGUAGE 135a8fdb4bcSmrg 136a8fdb4bcSmrg# CDPATH. 137dbe7da2eSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138a8fdb4bcSmrg 139a8fdb4bcSmrgif test "x$CONFIG_SHELL" = x; then 140dbe7da2eSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141dbe7da2eSmrg emulate sh 142dbe7da2eSmrg NULLCMD=: 143dbe7da2eSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144dbe7da2eSmrg # is contrary to our usage. Disable this feature. 145dbe7da2eSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 146dbe7da2eSmrg setopt NO_GLOB_SUBST 147a8fdb4bcSmrgelse 148dbe7da2eSmrg case \`(set -o) 2>/dev/null\` in #( 149dbe7da2eSmrg *posix*) : 150dbe7da2eSmrg set -o posix ;; #( 151dbe7da2eSmrg *) : 152dbe7da2eSmrg ;; 153dbe7da2eSmrgesac 154a8fdb4bcSmrgfi 155dbe7da2eSmrg" 156dbe7da2eSmrg as_required="as_fn_return () { (exit \$1); } 157dbe7da2eSmrgas_fn_success () { as_fn_return 0; } 158dbe7da2eSmrgas_fn_failure () { as_fn_return 1; } 159dbe7da2eSmrgas_fn_ret_success () { return 0; } 160dbe7da2eSmrgas_fn_ret_failure () { return 1; } 161a8fdb4bcSmrg 162a8fdb4bcSmrgexitcode=0 163dbe7da2eSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 164dbe7da2eSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165dbe7da2eSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166dbe7da2eSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167dbe7da2eSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168a8fdb4bcSmrg 169a8fdb4bcSmrgelse 170dbe7da2eSmrg exitcode=1; echo positional parameters were not saved. 171dbe7da2eSmrgfi 172dbe7da2eSmrgtest x\$exitcode = x0 || exit 1" 173dbe7da2eSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174dbe7da2eSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175dbe7da2eSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176dbe7da2eSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177dbe7da2eSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 178dbe7da2eSmrg if (eval "$as_required") 2>/dev/null; then : 179dbe7da2eSmrg as_have_required=yes 180a8fdb4bcSmrgelse 181dbe7da2eSmrg as_have_required=no 182a8fdb4bcSmrgfi 183dbe7da2eSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184a8fdb4bcSmrg 185a8fdb4bcSmrgelse 186dbe7da2eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187dbe7da2eSmrgas_found=false 188a8fdb4bcSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189a8fdb4bcSmrgdo 190a8fdb4bcSmrg IFS=$as_save_IFS 191a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 192dbe7da2eSmrg as_found=: 193dbe7da2eSmrg case $as_dir in #( 194a8fdb4bcSmrg /*) 195a8fdb4bcSmrg for as_base in sh bash ksh sh5; do 196dbe7da2eSmrg # Try only shells that exist, to save several forks. 197dbe7da2eSmrg as_shell=$as_dir/$as_base 198dbe7da2eSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199dbe7da2eSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200dbe7da2eSmrg CONFIG_SHELL=$as_shell as_have_required=yes 201dbe7da2eSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202dbe7da2eSmrg break 2 203dbe7da2eSmrgfi 204dbe7da2eSmrgfi 205a8fdb4bcSmrg done;; 206a8fdb4bcSmrg esac 207dbe7da2eSmrg as_found=false 208a8fdb4bcSmrgdone 209dbe7da2eSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210dbe7da2eSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211dbe7da2eSmrg CONFIG_SHELL=$SHELL as_have_required=yes 212dbe7da2eSmrgfi; } 213a8fdb4bcSmrgIFS=$as_save_IFS 214a8fdb4bcSmrg 215a8fdb4bcSmrg 216dbe7da2eSmrg if test "x$CONFIG_SHELL" != x; then : 217dbe7da2eSmrg # We cannot yet assume a decent shell, so we have to provide a 218dbe7da2eSmrg # neutralization value for shells without unset; and this also 219dbe7da2eSmrg # works around shells that cannot unset nonexistent variables. 22077683534Smrg # Preserve -v and -x to the replacement shell. 221dbe7da2eSmrg BASH_ENV=/dev/null 222dbe7da2eSmrg ENV=/dev/null 223dbe7da2eSmrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224dbe7da2eSmrg export CONFIG_SHELL 22577683534Smrg case $- in # (((( 22677683534Smrg *v*x* | *x*v* ) as_opts=-vx ;; 22777683534Smrg *v* ) as_opts=-v ;; 22877683534Smrg *x* ) as_opts=-x ;; 22977683534Smrg * ) as_opts= ;; 23077683534Smrg esac 23177683534Smrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232a8fdb4bcSmrgfi 233a8fdb4bcSmrg 234dbe7da2eSmrg if test x$as_have_required = xno; then : 235dbe7da2eSmrg $as_echo "$0: This script requires a shell more modern than all" 236dbe7da2eSmrg $as_echo "$0: the shells that I found on your system." 237dbe7da2eSmrg if test x${ZSH_VERSION+set} = xset ; then 238dbe7da2eSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239dbe7da2eSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240dbe7da2eSmrg else 241dbe7da2eSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 242dbe7da2eSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243dbe7da2eSmrg$0: about your system, including any error possibly output 244dbe7da2eSmrg$0: before this message. Then install a modern shell, or 245dbe7da2eSmrg$0: manually run the script under such a shell if you do 246dbe7da2eSmrg$0: have one." 247dbe7da2eSmrg fi 248dbe7da2eSmrg exit 1 249a8fdb4bcSmrgfi 250dbe7da2eSmrgfi 251dbe7da2eSmrgfi 252dbe7da2eSmrgSHELL=${CONFIG_SHELL-/bin/sh} 253dbe7da2eSmrgexport SHELL 254dbe7da2eSmrg# Unset more variables known to interfere with behavior of common tools. 255dbe7da2eSmrgCLICOLOR_FORCE= GREP_OPTIONS= 256dbe7da2eSmrgunset CLICOLOR_FORCE GREP_OPTIONS 257a8fdb4bcSmrg 258dbe7da2eSmrg## --------------------- ## 259dbe7da2eSmrg## M4sh Shell Functions. ## 260dbe7da2eSmrg## --------------------- ## 261dbe7da2eSmrg# as_fn_unset VAR 262dbe7da2eSmrg# --------------- 263dbe7da2eSmrg# Portably unset VAR. 264dbe7da2eSmrgas_fn_unset () 265dbe7da2eSmrg{ 266dbe7da2eSmrg { eval $1=; unset $1;} 267a8fdb4bcSmrg} 268dbe7da2eSmrgas_unset=as_fn_unset 269a8fdb4bcSmrg 270dbe7da2eSmrg# as_fn_set_status STATUS 271dbe7da2eSmrg# ----------------------- 272dbe7da2eSmrg# Set $? to STATUS, without forking. 273dbe7da2eSmrgas_fn_set_status () 274dbe7da2eSmrg{ 275dbe7da2eSmrg return $1 276dbe7da2eSmrg} # as_fn_set_status 277a8fdb4bcSmrg 278dbe7da2eSmrg# as_fn_exit STATUS 279dbe7da2eSmrg# ----------------- 280dbe7da2eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281dbe7da2eSmrgas_fn_exit () 282dbe7da2eSmrg{ 283dbe7da2eSmrg set +e 284dbe7da2eSmrg as_fn_set_status $1 285dbe7da2eSmrg exit $1 286dbe7da2eSmrg} # as_fn_exit 287dbe7da2eSmrg 288dbe7da2eSmrg# as_fn_mkdir_p 289dbe7da2eSmrg# ------------- 290dbe7da2eSmrg# Create "$as_dir" as a directory, including parents if necessary. 291dbe7da2eSmrgas_fn_mkdir_p () 292dbe7da2eSmrg{ 293a8fdb4bcSmrg 294dbe7da2eSmrg case $as_dir in #( 295dbe7da2eSmrg -*) as_dir=./$as_dir;; 296dbe7da2eSmrg esac 297dbe7da2eSmrg test -d "$as_dir" || eval $as_mkdir_p || { 298dbe7da2eSmrg as_dirs= 299dbe7da2eSmrg while :; do 300dbe7da2eSmrg case $as_dir in #( 301dbe7da2eSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302dbe7da2eSmrg *) as_qdir=$as_dir;; 303dbe7da2eSmrg esac 304dbe7da2eSmrg as_dirs="'$as_qdir' $as_dirs" 305dbe7da2eSmrg as_dir=`$as_dirname -- "$as_dir" || 306dbe7da2eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307dbe7da2eSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 308dbe7da2eSmrg X"$as_dir" : 'X\(//\)$' \| \ 309dbe7da2eSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310dbe7da2eSmrg$as_echo X"$as_dir" | 311dbe7da2eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312dbe7da2eSmrg s//\1/ 313dbe7da2eSmrg q 314dbe7da2eSmrg } 315dbe7da2eSmrg /^X\(\/\/\)[^/].*/{ 316dbe7da2eSmrg s//\1/ 317dbe7da2eSmrg q 318dbe7da2eSmrg } 319dbe7da2eSmrg /^X\(\/\/\)$/{ 320dbe7da2eSmrg s//\1/ 321dbe7da2eSmrg q 322dbe7da2eSmrg } 323dbe7da2eSmrg /^X\(\/\).*/{ 324dbe7da2eSmrg s//\1/ 325dbe7da2eSmrg q 326dbe7da2eSmrg } 327dbe7da2eSmrg s/.*/./; q'` 328dbe7da2eSmrg test -d "$as_dir" && break 329dbe7da2eSmrg done 330dbe7da2eSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 33177683534Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332dbe7da2eSmrg 333dbe7da2eSmrg 334dbe7da2eSmrg} # as_fn_mkdir_p 335dbe7da2eSmrg# as_fn_append VAR VALUE 336dbe7da2eSmrg# ---------------------- 337dbe7da2eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 338dbe7da2eSmrg# advantage of any shell optimizations that allow amortized linear growth over 339dbe7da2eSmrg# repeated appends, instead of the typical quadratic growth present in naive 340dbe7da2eSmrg# implementations. 341dbe7da2eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342dbe7da2eSmrg eval 'as_fn_append () 343dbe7da2eSmrg { 344dbe7da2eSmrg eval $1+=\$2 345dbe7da2eSmrg }' 346a8fdb4bcSmrgelse 347dbe7da2eSmrg as_fn_append () 348dbe7da2eSmrg { 349dbe7da2eSmrg eval $1=\$$1\$2 350dbe7da2eSmrg } 351dbe7da2eSmrgfi # as_fn_append 352dbe7da2eSmrg 353dbe7da2eSmrg# as_fn_arith ARG... 354dbe7da2eSmrg# ------------------ 355dbe7da2eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 356dbe7da2eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 357dbe7da2eSmrg# must be portable across $(()) and expr. 358dbe7da2eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359dbe7da2eSmrg eval 'as_fn_arith () 360dbe7da2eSmrg { 361dbe7da2eSmrg as_val=$(( $* )) 362dbe7da2eSmrg }' 363a8fdb4bcSmrgelse 364dbe7da2eSmrg as_fn_arith () 365dbe7da2eSmrg { 366dbe7da2eSmrg as_val=`expr "$@" || test $? -eq 1` 367dbe7da2eSmrg } 368dbe7da2eSmrgfi # as_fn_arith 369a8fdb4bcSmrg 370a8fdb4bcSmrg 37177683534Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 37277683534Smrg# ---------------------------------------- 373dbe7da2eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374dbe7da2eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 37577683534Smrg# script with STATUS, using 1 if that was 0. 376dbe7da2eSmrgas_fn_error () 377dbe7da2eSmrg{ 37877683534Smrg as_status=$1; test $as_status -eq 0 && as_status=1 37977683534Smrg if test "$4"; then 38077683534Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 38177683534Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382dbe7da2eSmrg fi 38377683534Smrg $as_echo "$as_me: error: $2" >&2 384dbe7da2eSmrg as_fn_exit $as_status 385dbe7da2eSmrg} # as_fn_error 386a8fdb4bcSmrg 387dbe7da2eSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 388dbe7da2eSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 389dbe7da2eSmrg as_expr=expr 390a8fdb4bcSmrgelse 391dbe7da2eSmrg as_expr=false 392a8fdb4bcSmrgfi 393a8fdb4bcSmrg 394dbe7da2eSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395dbe7da2eSmrg as_basename=basename 396a8fdb4bcSmrgelse 397dbe7da2eSmrg as_basename=false 398a8fdb4bcSmrgfi 399a8fdb4bcSmrg 400dbe7da2eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401dbe7da2eSmrg as_dirname=dirname 402a8fdb4bcSmrgelse 403dbe7da2eSmrg as_dirname=false 404a8fdb4bcSmrgfi 405a8fdb4bcSmrg 406dbe7da2eSmrgas_me=`$as_basename -- "$0" || 407dbe7da2eSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408dbe7da2eSmrg X"$0" : 'X\(//\)$' \| \ 409dbe7da2eSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 410dbe7da2eSmrg$as_echo X/"$0" | 411dbe7da2eSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 412dbe7da2eSmrg s//\1/ 413dbe7da2eSmrg q 414dbe7da2eSmrg } 415dbe7da2eSmrg /^X\/\(\/\/\)$/{ 416dbe7da2eSmrg s//\1/ 417dbe7da2eSmrg q 418dbe7da2eSmrg } 419dbe7da2eSmrg /^X\/\(\/\).*/{ 420dbe7da2eSmrg s//\1/ 421dbe7da2eSmrg q 422dbe7da2eSmrg } 423dbe7da2eSmrg s/.*/./; q'` 424a8fdb4bcSmrg 425dbe7da2eSmrg# Avoid depending upon Character Ranges. 426dbe7da2eSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 427dbe7da2eSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428dbe7da2eSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 429dbe7da2eSmrgas_cr_digits='0123456789' 430dbe7da2eSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 431a8fdb4bcSmrg 432a8fdb4bcSmrg 433dbe7da2eSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 434dbe7da2eSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 435dbe7da2eSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436dbe7da2eSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437dbe7da2eSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438a8fdb4bcSmrg sed -n ' 439a8fdb4bcSmrg p 440a8fdb4bcSmrg /[$]LINENO/= 441a8fdb4bcSmrg ' <$as_myself | 442a8fdb4bcSmrg sed ' 443a8fdb4bcSmrg s/[$]LINENO.*/&-/ 444a8fdb4bcSmrg t lineno 445a8fdb4bcSmrg b 446a8fdb4bcSmrg :lineno 447a8fdb4bcSmrg N 448a8fdb4bcSmrg :loop 449a8fdb4bcSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450a8fdb4bcSmrg t loop 451a8fdb4bcSmrg s/-\n.*// 452a8fdb4bcSmrg ' >$as_me.lineno && 453a8fdb4bcSmrg chmod +x "$as_me.lineno" || 454dbe7da2eSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455a8fdb4bcSmrg 456a8fdb4bcSmrg # Don't try to exec as it changes $[0], causing all sort of problems 457a8fdb4bcSmrg # (the dirname of $[0] is not the place where we might find the 458a8fdb4bcSmrg # original and so on. Autoconf is especially sensitive to this). 459a8fdb4bcSmrg . "./$as_me.lineno" 460a8fdb4bcSmrg # Exit status is that of the last command. 461a8fdb4bcSmrg exit 462a8fdb4bcSmrg} 463a8fdb4bcSmrg 464a8fdb4bcSmrgECHO_C= ECHO_N= ECHO_T= 465dbe7da2eSmrgcase `echo -n x` in #((((( 466a8fdb4bcSmrg-n*) 467dbe7da2eSmrg case `echo 'xy\c'` in 468a8fdb4bcSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469dbe7da2eSmrg xy) ECHO_C='\c';; 470dbe7da2eSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471dbe7da2eSmrg ECHO_T=' ';; 472a8fdb4bcSmrg esac;; 473a8fdb4bcSmrg*) 474a8fdb4bcSmrg ECHO_N='-n';; 475a8fdb4bcSmrgesac 476a8fdb4bcSmrg 477a8fdb4bcSmrgrm -f conf$$ conf$$.exe conf$$.file 478a8fdb4bcSmrgif test -d conf$$.dir; then 479a8fdb4bcSmrg rm -f conf$$.dir/conf$$.file 480a8fdb4bcSmrgelse 481a8fdb4bcSmrg rm -f conf$$.dir 482dbe7da2eSmrg mkdir conf$$.dir 2>/dev/null 483dbe7da2eSmrgfi 484dbe7da2eSmrgif (echo >conf$$.file) 2>/dev/null; then 485dbe7da2eSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 486dbe7da2eSmrg as_ln_s='ln -s' 487dbe7da2eSmrg # ... but there are two gotchas: 488dbe7da2eSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489dbe7da2eSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490dbe7da2eSmrg # In both cases, we have to default to `cp -p'. 491dbe7da2eSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492dbe7da2eSmrg as_ln_s='cp -p' 493dbe7da2eSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 494dbe7da2eSmrg as_ln_s=ln 495dbe7da2eSmrg else 496a8fdb4bcSmrg as_ln_s='cp -p' 497dbe7da2eSmrg fi 498a8fdb4bcSmrgelse 499a8fdb4bcSmrg as_ln_s='cp -p' 500a8fdb4bcSmrgfi 501a8fdb4bcSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502a8fdb4bcSmrgrmdir conf$$.dir 2>/dev/null 503a8fdb4bcSmrg 504a8fdb4bcSmrgif mkdir -p . 2>/dev/null; then 505dbe7da2eSmrg as_mkdir_p='mkdir -p "$as_dir"' 506a8fdb4bcSmrgelse 507a8fdb4bcSmrg test -d ./-p && rmdir ./-p 508a8fdb4bcSmrg as_mkdir_p=false 509a8fdb4bcSmrgfi 510a8fdb4bcSmrg 511a8fdb4bcSmrgif test -x / >/dev/null 2>&1; then 512a8fdb4bcSmrg as_test_x='test -x' 513a8fdb4bcSmrgelse 514a8fdb4bcSmrg if ls -dL / >/dev/null 2>&1; then 515a8fdb4bcSmrg as_ls_L_option=L 516a8fdb4bcSmrg else 517a8fdb4bcSmrg as_ls_L_option= 518a8fdb4bcSmrg fi 519a8fdb4bcSmrg as_test_x=' 520a8fdb4bcSmrg eval sh -c '\'' 521a8fdb4bcSmrg if test -d "$1"; then 522dbe7da2eSmrg test -d "$1/."; 523a8fdb4bcSmrg else 524dbe7da2eSmrg case $1 in #( 525dbe7da2eSmrg -*)set "./$1";; 526a8fdb4bcSmrg esac; 527dbe7da2eSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528a8fdb4bcSmrg ???[sx]*):;;*)false;;esac;fi 529a8fdb4bcSmrg '\'' sh 530a8fdb4bcSmrg ' 531a8fdb4bcSmrgfi 532a8fdb4bcSmrgas_executable_p=$as_test_x 533a8fdb4bcSmrg 534a8fdb4bcSmrg# Sed expression to map a string onto a valid CPP name. 535a8fdb4bcSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536a8fdb4bcSmrg 537a8fdb4bcSmrg# Sed expression to map a string onto a valid variable name. 538a8fdb4bcSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539a8fdb4bcSmrg 540a8fdb4bcSmrg 541dbe7da2eSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 542dbe7da2eSmrgexec 6>&1 543a8fdb4bcSmrg 544a8fdb4bcSmrg# Name of the host. 54577683534Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546a8fdb4bcSmrg# so uname gets run too. 547a8fdb4bcSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548a8fdb4bcSmrg 549a8fdb4bcSmrg# 550a8fdb4bcSmrg# Initializations. 551a8fdb4bcSmrg# 552a8fdb4bcSmrgac_default_prefix=/usr/local 553a8fdb4bcSmrgac_clean_files= 554a8fdb4bcSmrgac_config_libobj_dir=. 555a8fdb4bcSmrgLIBOBJS= 556a8fdb4bcSmrgcross_compiling=no 557a8fdb4bcSmrgsubdirs= 558a8fdb4bcSmrgMFLAGS= 559a8fdb4bcSmrgMAKEFLAGS= 560a8fdb4bcSmrg 561a8fdb4bcSmrg# Identity of this package. 562a8fdb4bcSmrgPACKAGE_NAME='luit' 563a8fdb4bcSmrgPACKAGE_TARNAME='luit' 5644ed31819SmrgPACKAGE_VERSION='1.1.1' 5654ed31819SmrgPACKAGE_STRING='luit 1.1.1' 566a8fdb4bcSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567dbe7da2eSmrgPACKAGE_URL='' 568a8fdb4bcSmrg 569dbe7da2eSmrg# Factoring default headers for most tests. 570dbe7da2eSmrgac_includes_default="\ 571dbe7da2eSmrg#include <stdio.h> 572dbe7da2eSmrg#ifdef HAVE_SYS_TYPES_H 573dbe7da2eSmrg# include <sys/types.h> 574dbe7da2eSmrg#endif 575dbe7da2eSmrg#ifdef HAVE_SYS_STAT_H 576dbe7da2eSmrg# include <sys/stat.h> 577dbe7da2eSmrg#endif 578dbe7da2eSmrg#ifdef STDC_HEADERS 579dbe7da2eSmrg# include <stdlib.h> 580dbe7da2eSmrg# include <stddef.h> 581dbe7da2eSmrg#else 582dbe7da2eSmrg# ifdef HAVE_STDLIB_H 583dbe7da2eSmrg# include <stdlib.h> 584dbe7da2eSmrg# endif 585dbe7da2eSmrg#endif 586dbe7da2eSmrg#ifdef HAVE_STRING_H 587dbe7da2eSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 588dbe7da2eSmrg# include <memory.h> 589dbe7da2eSmrg# endif 590dbe7da2eSmrg# include <string.h> 591dbe7da2eSmrg#endif 592dbe7da2eSmrg#ifdef HAVE_STRINGS_H 593dbe7da2eSmrg# include <strings.h> 594dbe7da2eSmrg#endif 595dbe7da2eSmrg#ifdef HAVE_INTTYPES_H 596dbe7da2eSmrg# include <inttypes.h> 597dbe7da2eSmrg#endif 598dbe7da2eSmrg#ifdef HAVE_STDINT_H 599dbe7da2eSmrg# include <stdint.h> 600dbe7da2eSmrg#endif 601dbe7da2eSmrg#ifdef HAVE_UNISTD_H 602dbe7da2eSmrg# include <unistd.h> 603dbe7da2eSmrg#endif" 604dbe7da2eSmrg 605dbe7da2eSmrgac_subst_vars='am__EXEEXT_FALSE 606dbe7da2eSmrgam__EXEEXT_TRUE 607dbe7da2eSmrgLTLIBOBJS 608dbe7da2eSmrgLIBOBJS 60977683534SmrgOS_CFLAGS 610a8fdb4bcSmrgLUIT_LIBS 611dbe7da2eSmrgLUIT_CFLAGS 612dbe7da2eSmrgLOCALEALIASFILE 61377683534SmrgAM_BACKSLASH 61477683534SmrgAM_DEFAULT_VERBOSITY 61577683534SmrgMAN_SUBSTS 61677683534SmrgXORG_MAN_PAGE 617a8fdb4bcSmrgADMIN_MAN_DIR 618dbe7da2eSmrgDRIVER_MAN_DIR 619dbe7da2eSmrgMISC_MAN_DIR 620dbe7da2eSmrgFILE_MAN_DIR 621dbe7da2eSmrgLIB_MAN_DIR 622dbe7da2eSmrgAPP_MAN_DIR 623dbe7da2eSmrgADMIN_MAN_SUFFIX 624dbe7da2eSmrgDRIVER_MAN_SUFFIX 625dbe7da2eSmrgMISC_MAN_SUFFIX 626dbe7da2eSmrgFILE_MAN_SUFFIX 627dbe7da2eSmrgLIB_MAN_SUFFIX 628dbe7da2eSmrgAPP_MAN_SUFFIX 62977683534SmrgSED 630dbe7da2eSmrghost_os 631dbe7da2eSmrghost_vendor 632dbe7da2eSmrghost_cpu 633dbe7da2eSmrghost 634dbe7da2eSmrgbuild_os 635dbe7da2eSmrgbuild_vendor 636dbe7da2eSmrgbuild_cpu 637dbe7da2eSmrgbuild 638dbe7da2eSmrgINSTALL_CMD 639dbe7da2eSmrgPKG_CONFIG 640dbe7da2eSmrgCHANGELOG_CMD 6414ed31819SmrgSTRICT_CFLAGS 642dbe7da2eSmrgCWARNFLAGS 6434ed31819SmrgBASE_CFLAGS 644dbe7da2eSmrgEGREP 645dbe7da2eSmrgGREP 646dbe7da2eSmrgCPP 647dbe7da2eSmrgam__fastdepCC_FALSE 648dbe7da2eSmrgam__fastdepCC_TRUE 649dbe7da2eSmrgCCDEPMODE 650dbe7da2eSmrgAMDEPBACKSLASH 651dbe7da2eSmrgAMDEP_FALSE 652dbe7da2eSmrgAMDEP_TRUE 653dbe7da2eSmrgam__quote 654dbe7da2eSmrgam__include 655dbe7da2eSmrgDEPDIR 656dbe7da2eSmrgOBJEXT 657dbe7da2eSmrgEXEEXT 658dbe7da2eSmrgac_ct_CC 659dbe7da2eSmrgCPPFLAGS 660dbe7da2eSmrgLDFLAGS 661dbe7da2eSmrgCFLAGS 662dbe7da2eSmrgCC 663dbe7da2eSmrgMAINT 664dbe7da2eSmrgMAINTAINER_MODE_FALSE 665dbe7da2eSmrgMAINTAINER_MODE_TRUE 666dbe7da2eSmrgam__untar 667dbe7da2eSmrgam__tar 668dbe7da2eSmrgAMTAR 669dbe7da2eSmrgam__leading_dot 670dbe7da2eSmrgSET_MAKE 671dbe7da2eSmrgAWK 672dbe7da2eSmrgmkdir_p 673dbe7da2eSmrgMKDIR_P 674dbe7da2eSmrgINSTALL_STRIP_PROGRAM 675dbe7da2eSmrgSTRIP 676dbe7da2eSmrginstall_sh 677dbe7da2eSmrgMAKEINFO 678dbe7da2eSmrgAUTOHEADER 679dbe7da2eSmrgAUTOMAKE 680dbe7da2eSmrgAUTOCONF 681dbe7da2eSmrgACLOCAL 682dbe7da2eSmrgVERSION 683dbe7da2eSmrgPACKAGE 684dbe7da2eSmrgCYGPATH_W 685dbe7da2eSmrgam__isrc 686dbe7da2eSmrgINSTALL_DATA 687dbe7da2eSmrgINSTALL_SCRIPT 688dbe7da2eSmrgINSTALL_PROGRAM 689dbe7da2eSmrgtarget_alias 690dbe7da2eSmrghost_alias 691dbe7da2eSmrgbuild_alias 692dbe7da2eSmrgLIBS 693dbe7da2eSmrgECHO_T 694dbe7da2eSmrgECHO_N 695dbe7da2eSmrgECHO_C 696dbe7da2eSmrgDEFS 697dbe7da2eSmrgmandir 698dbe7da2eSmrglocaledir 699dbe7da2eSmrglibdir 700dbe7da2eSmrgpsdir 701dbe7da2eSmrgpdfdir 702dbe7da2eSmrgdvidir 703dbe7da2eSmrghtmldir 704dbe7da2eSmrginfodir 705dbe7da2eSmrgdocdir 706dbe7da2eSmrgoldincludedir 707dbe7da2eSmrgincludedir 708dbe7da2eSmrglocalstatedir 709dbe7da2eSmrgsharedstatedir 710dbe7da2eSmrgsysconfdir 711dbe7da2eSmrgdatadir 712dbe7da2eSmrgdatarootdir 713dbe7da2eSmrglibexecdir 714dbe7da2eSmrgsbindir 715dbe7da2eSmrgbindir 716dbe7da2eSmrgprogram_transform_name 717dbe7da2eSmrgprefix 718dbe7da2eSmrgexec_prefix 719dbe7da2eSmrgPACKAGE_URL 720dbe7da2eSmrgPACKAGE_BUGREPORT 721dbe7da2eSmrgPACKAGE_STRING 722dbe7da2eSmrgPACKAGE_VERSION 723dbe7da2eSmrgPACKAGE_TARNAME 724dbe7da2eSmrgPACKAGE_NAME 725dbe7da2eSmrgPATH_SEPARATOR 726dbe7da2eSmrgSHELL' 727a8fdb4bcSmrgac_subst_files='' 728dbe7da2eSmrgac_user_opts=' 729dbe7da2eSmrgenable_option_checking 730dbe7da2eSmrgenable_maintainer_mode 731dbe7da2eSmrgenable_dependency_tracking 7324ed31819Smrgenable_selective_werror 733dbe7da2eSmrgenable_strict_compilation 73477683534Smrgenable_silent_rules 735dbe7da2eSmrgwith_localealiasfile 736dbe7da2eSmrg' 737a8fdb4bcSmrg ac_precious_vars='build_alias 738a8fdb4bcSmrghost_alias 739a8fdb4bcSmrgtarget_alias 740a8fdb4bcSmrgCC 741a8fdb4bcSmrgCFLAGS 742a8fdb4bcSmrgLDFLAGS 743a8fdb4bcSmrgLIBS 744a8fdb4bcSmrgCPPFLAGS 745dbe7da2eSmrgCPP 746a8fdb4bcSmrgPKG_CONFIG 747a8fdb4bcSmrgLUIT_CFLAGS 748a8fdb4bcSmrgLUIT_LIBS' 749a8fdb4bcSmrg 750a8fdb4bcSmrg 751a8fdb4bcSmrg# Initialize some variables set by options. 752a8fdb4bcSmrgac_init_help= 753a8fdb4bcSmrgac_init_version=false 754dbe7da2eSmrgac_unrecognized_opts= 755dbe7da2eSmrgac_unrecognized_sep= 756a8fdb4bcSmrg# The variables have the same names as the options, with 757a8fdb4bcSmrg# dashes changed to underlines. 758a8fdb4bcSmrgcache_file=/dev/null 759a8fdb4bcSmrgexec_prefix=NONE 760a8fdb4bcSmrgno_create= 761a8fdb4bcSmrgno_recursion= 762a8fdb4bcSmrgprefix=NONE 763a8fdb4bcSmrgprogram_prefix=NONE 764a8fdb4bcSmrgprogram_suffix=NONE 765a8fdb4bcSmrgprogram_transform_name=s,x,x, 766a8fdb4bcSmrgsilent= 767a8fdb4bcSmrgsite= 768a8fdb4bcSmrgsrcdir= 769a8fdb4bcSmrgverbose= 770a8fdb4bcSmrgx_includes=NONE 771a8fdb4bcSmrgx_libraries=NONE 772a8fdb4bcSmrg 773a8fdb4bcSmrg# Installation directory options. 774a8fdb4bcSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 775a8fdb4bcSmrg# and all the variables that are supposed to be based on exec_prefix 776a8fdb4bcSmrg# by default will actually change. 777a8fdb4bcSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 778a8fdb4bcSmrg# (The list follows the same order as the GNU Coding Standards.) 779a8fdb4bcSmrgbindir='${exec_prefix}/bin' 780a8fdb4bcSmrgsbindir='${exec_prefix}/sbin' 781a8fdb4bcSmrglibexecdir='${exec_prefix}/libexec' 782a8fdb4bcSmrgdatarootdir='${prefix}/share' 783a8fdb4bcSmrgdatadir='${datarootdir}' 784a8fdb4bcSmrgsysconfdir='${prefix}/etc' 785a8fdb4bcSmrgsharedstatedir='${prefix}/com' 786a8fdb4bcSmrglocalstatedir='${prefix}/var' 787a8fdb4bcSmrgincludedir='${prefix}/include' 788a8fdb4bcSmrgoldincludedir='/usr/include' 789a8fdb4bcSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 790a8fdb4bcSmrginfodir='${datarootdir}/info' 791a8fdb4bcSmrghtmldir='${docdir}' 792a8fdb4bcSmrgdvidir='${docdir}' 793a8fdb4bcSmrgpdfdir='${docdir}' 794a8fdb4bcSmrgpsdir='${docdir}' 795a8fdb4bcSmrglibdir='${exec_prefix}/lib' 796a8fdb4bcSmrglocaledir='${datarootdir}/locale' 797a8fdb4bcSmrgmandir='${datarootdir}/man' 798a8fdb4bcSmrg 799a8fdb4bcSmrgac_prev= 800a8fdb4bcSmrgac_dashdash= 801a8fdb4bcSmrgfor ac_option 802a8fdb4bcSmrgdo 803a8fdb4bcSmrg # If the previous option needs an argument, assign it. 804a8fdb4bcSmrg if test -n "$ac_prev"; then 805a8fdb4bcSmrg eval $ac_prev=\$ac_option 806a8fdb4bcSmrg ac_prev= 807a8fdb4bcSmrg continue 808a8fdb4bcSmrg fi 809a8fdb4bcSmrg 810a8fdb4bcSmrg case $ac_option in 81177683534Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 81277683534Smrg *=) ac_optarg= ;; 81377683534Smrg *) ac_optarg=yes ;; 814a8fdb4bcSmrg esac 815a8fdb4bcSmrg 816a8fdb4bcSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 817a8fdb4bcSmrg 818a8fdb4bcSmrg case $ac_dashdash$ac_option in 819a8fdb4bcSmrg --) 820a8fdb4bcSmrg ac_dashdash=yes ;; 821a8fdb4bcSmrg 822a8fdb4bcSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 823a8fdb4bcSmrg ac_prev=bindir ;; 824a8fdb4bcSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 825a8fdb4bcSmrg bindir=$ac_optarg ;; 826a8fdb4bcSmrg 827a8fdb4bcSmrg -build | --build | --buil | --bui | --bu) 828a8fdb4bcSmrg ac_prev=build_alias ;; 829a8fdb4bcSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 830a8fdb4bcSmrg build_alias=$ac_optarg ;; 831a8fdb4bcSmrg 832a8fdb4bcSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 833a8fdb4bcSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 834a8fdb4bcSmrg ac_prev=cache_file ;; 835a8fdb4bcSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 836a8fdb4bcSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 837a8fdb4bcSmrg cache_file=$ac_optarg ;; 838a8fdb4bcSmrg 839a8fdb4bcSmrg --config-cache | -C) 840a8fdb4bcSmrg cache_file=config.cache ;; 841a8fdb4bcSmrg 842a8fdb4bcSmrg -datadir | --datadir | --datadi | --datad) 843a8fdb4bcSmrg ac_prev=datadir ;; 844a8fdb4bcSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 845a8fdb4bcSmrg datadir=$ac_optarg ;; 846a8fdb4bcSmrg 847a8fdb4bcSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 848a8fdb4bcSmrg | --dataroo | --dataro | --datar) 849a8fdb4bcSmrg ac_prev=datarootdir ;; 850a8fdb4bcSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 851a8fdb4bcSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 852a8fdb4bcSmrg datarootdir=$ac_optarg ;; 853a8fdb4bcSmrg 854a8fdb4bcSmrg -disable-* | --disable-*) 855dbe7da2eSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 856a8fdb4bcSmrg # Reject names that are not valid shell variable names. 857dbe7da2eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 85877683534Smrg as_fn_error $? "invalid feature name: $ac_useropt" 859dbe7da2eSmrg ac_useropt_orig=$ac_useropt 860dbe7da2eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 861dbe7da2eSmrg case $ac_user_opts in 862dbe7da2eSmrg *" 863dbe7da2eSmrg"enable_$ac_useropt" 864dbe7da2eSmrg"*) ;; 865dbe7da2eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 866dbe7da2eSmrg ac_unrecognized_sep=', ';; 867dbe7da2eSmrg esac 868dbe7da2eSmrg eval enable_$ac_useropt=no ;; 869a8fdb4bcSmrg 870a8fdb4bcSmrg -docdir | --docdir | --docdi | --doc | --do) 871a8fdb4bcSmrg ac_prev=docdir ;; 872a8fdb4bcSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 873a8fdb4bcSmrg docdir=$ac_optarg ;; 874a8fdb4bcSmrg 875a8fdb4bcSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 876a8fdb4bcSmrg ac_prev=dvidir ;; 877a8fdb4bcSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 878a8fdb4bcSmrg dvidir=$ac_optarg ;; 879a8fdb4bcSmrg 880a8fdb4bcSmrg -enable-* | --enable-*) 881dbe7da2eSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 882a8fdb4bcSmrg # Reject names that are not valid shell variable names. 883dbe7da2eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 88477683534Smrg as_fn_error $? "invalid feature name: $ac_useropt" 885dbe7da2eSmrg ac_useropt_orig=$ac_useropt 886dbe7da2eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 887dbe7da2eSmrg case $ac_user_opts in 888dbe7da2eSmrg *" 889dbe7da2eSmrg"enable_$ac_useropt" 890dbe7da2eSmrg"*) ;; 891dbe7da2eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 892dbe7da2eSmrg ac_unrecognized_sep=', ';; 893dbe7da2eSmrg esac 894dbe7da2eSmrg eval enable_$ac_useropt=\$ac_optarg ;; 895a8fdb4bcSmrg 896a8fdb4bcSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 897a8fdb4bcSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 898a8fdb4bcSmrg | --exec | --exe | --ex) 899a8fdb4bcSmrg ac_prev=exec_prefix ;; 900a8fdb4bcSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 901a8fdb4bcSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 902a8fdb4bcSmrg | --exec=* | --exe=* | --ex=*) 903a8fdb4bcSmrg exec_prefix=$ac_optarg ;; 904a8fdb4bcSmrg 905a8fdb4bcSmrg -gas | --gas | --ga | --g) 906a8fdb4bcSmrg # Obsolete; use --with-gas. 907a8fdb4bcSmrg with_gas=yes ;; 908a8fdb4bcSmrg 909a8fdb4bcSmrg -help | --help | --hel | --he | -h) 910a8fdb4bcSmrg ac_init_help=long ;; 911a8fdb4bcSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 912a8fdb4bcSmrg ac_init_help=recursive ;; 913a8fdb4bcSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 914a8fdb4bcSmrg ac_init_help=short ;; 915a8fdb4bcSmrg 916a8fdb4bcSmrg -host | --host | --hos | --ho) 917a8fdb4bcSmrg ac_prev=host_alias ;; 918a8fdb4bcSmrg -host=* | --host=* | --hos=* | --ho=*) 919a8fdb4bcSmrg host_alias=$ac_optarg ;; 920a8fdb4bcSmrg 921a8fdb4bcSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 922a8fdb4bcSmrg ac_prev=htmldir ;; 923a8fdb4bcSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 924a8fdb4bcSmrg | --ht=*) 925a8fdb4bcSmrg htmldir=$ac_optarg ;; 926a8fdb4bcSmrg 927a8fdb4bcSmrg -includedir | --includedir | --includedi | --included | --include \ 928a8fdb4bcSmrg | --includ | --inclu | --incl | --inc) 929a8fdb4bcSmrg ac_prev=includedir ;; 930a8fdb4bcSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 931a8fdb4bcSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 932a8fdb4bcSmrg includedir=$ac_optarg ;; 933a8fdb4bcSmrg 934a8fdb4bcSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 935a8fdb4bcSmrg ac_prev=infodir ;; 936a8fdb4bcSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 937a8fdb4bcSmrg infodir=$ac_optarg ;; 938a8fdb4bcSmrg 939a8fdb4bcSmrg -libdir | --libdir | --libdi | --libd) 940a8fdb4bcSmrg ac_prev=libdir ;; 941a8fdb4bcSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 942a8fdb4bcSmrg libdir=$ac_optarg ;; 943a8fdb4bcSmrg 944a8fdb4bcSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 945a8fdb4bcSmrg | --libexe | --libex | --libe) 946a8fdb4bcSmrg ac_prev=libexecdir ;; 947a8fdb4bcSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 948a8fdb4bcSmrg | --libexe=* | --libex=* | --libe=*) 949a8fdb4bcSmrg libexecdir=$ac_optarg ;; 950a8fdb4bcSmrg 951a8fdb4bcSmrg -localedir | --localedir | --localedi | --localed | --locale) 952a8fdb4bcSmrg ac_prev=localedir ;; 953a8fdb4bcSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 954a8fdb4bcSmrg localedir=$ac_optarg ;; 955a8fdb4bcSmrg 956a8fdb4bcSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 957a8fdb4bcSmrg | --localstate | --localstat | --localsta | --localst | --locals) 958a8fdb4bcSmrg ac_prev=localstatedir ;; 959a8fdb4bcSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 960a8fdb4bcSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 961a8fdb4bcSmrg localstatedir=$ac_optarg ;; 962a8fdb4bcSmrg 963a8fdb4bcSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 964a8fdb4bcSmrg ac_prev=mandir ;; 965a8fdb4bcSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 966a8fdb4bcSmrg mandir=$ac_optarg ;; 967a8fdb4bcSmrg 968a8fdb4bcSmrg -nfp | --nfp | --nf) 969a8fdb4bcSmrg # Obsolete; use --without-fp. 970a8fdb4bcSmrg with_fp=no ;; 971a8fdb4bcSmrg 972a8fdb4bcSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 973a8fdb4bcSmrg | --no-cr | --no-c | -n) 974a8fdb4bcSmrg no_create=yes ;; 975a8fdb4bcSmrg 976a8fdb4bcSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 977a8fdb4bcSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 978a8fdb4bcSmrg no_recursion=yes ;; 979a8fdb4bcSmrg 980a8fdb4bcSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 981a8fdb4bcSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 982a8fdb4bcSmrg | --oldin | --oldi | --old | --ol | --o) 983a8fdb4bcSmrg ac_prev=oldincludedir ;; 984a8fdb4bcSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 985a8fdb4bcSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 986a8fdb4bcSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 987a8fdb4bcSmrg oldincludedir=$ac_optarg ;; 988a8fdb4bcSmrg 989a8fdb4bcSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 990a8fdb4bcSmrg ac_prev=prefix ;; 991a8fdb4bcSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 992a8fdb4bcSmrg prefix=$ac_optarg ;; 993a8fdb4bcSmrg 994a8fdb4bcSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 995a8fdb4bcSmrg | --program-pre | --program-pr | --program-p) 996a8fdb4bcSmrg ac_prev=program_prefix ;; 997a8fdb4bcSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 998a8fdb4bcSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 999a8fdb4bcSmrg program_prefix=$ac_optarg ;; 1000a8fdb4bcSmrg 1001a8fdb4bcSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1002a8fdb4bcSmrg | --program-suf | --program-su | --program-s) 1003a8fdb4bcSmrg ac_prev=program_suffix ;; 1004a8fdb4bcSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1005a8fdb4bcSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1006a8fdb4bcSmrg program_suffix=$ac_optarg ;; 1007a8fdb4bcSmrg 1008a8fdb4bcSmrg -program-transform-name | --program-transform-name \ 1009a8fdb4bcSmrg | --program-transform-nam | --program-transform-na \ 1010a8fdb4bcSmrg | --program-transform-n | --program-transform- \ 1011a8fdb4bcSmrg | --program-transform | --program-transfor \ 1012a8fdb4bcSmrg | --program-transfo | --program-transf \ 1013a8fdb4bcSmrg | --program-trans | --program-tran \ 1014a8fdb4bcSmrg | --progr-tra | --program-tr | --program-t) 1015a8fdb4bcSmrg ac_prev=program_transform_name ;; 1016a8fdb4bcSmrg -program-transform-name=* | --program-transform-name=* \ 1017a8fdb4bcSmrg | --program-transform-nam=* | --program-transform-na=* \ 1018a8fdb4bcSmrg | --program-transform-n=* | --program-transform-=* \ 1019a8fdb4bcSmrg | --program-transform=* | --program-transfor=* \ 1020a8fdb4bcSmrg | --program-transfo=* | --program-transf=* \ 1021a8fdb4bcSmrg | --program-trans=* | --program-tran=* \ 1022a8fdb4bcSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 1023a8fdb4bcSmrg program_transform_name=$ac_optarg ;; 1024a8fdb4bcSmrg 1025a8fdb4bcSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1026a8fdb4bcSmrg ac_prev=pdfdir ;; 1027a8fdb4bcSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1028a8fdb4bcSmrg pdfdir=$ac_optarg ;; 1029a8fdb4bcSmrg 1030a8fdb4bcSmrg -psdir | --psdir | --psdi | --psd | --ps) 1031a8fdb4bcSmrg ac_prev=psdir ;; 1032a8fdb4bcSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1033a8fdb4bcSmrg psdir=$ac_optarg ;; 1034a8fdb4bcSmrg 1035a8fdb4bcSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1036a8fdb4bcSmrg | -silent | --silent | --silen | --sile | --sil) 1037a8fdb4bcSmrg silent=yes ;; 1038a8fdb4bcSmrg 1039a8fdb4bcSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1040a8fdb4bcSmrg ac_prev=sbindir ;; 1041a8fdb4bcSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1042a8fdb4bcSmrg | --sbi=* | --sb=*) 1043a8fdb4bcSmrg sbindir=$ac_optarg ;; 1044a8fdb4bcSmrg 1045a8fdb4bcSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1046a8fdb4bcSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1047a8fdb4bcSmrg | --sharedst | --shareds | --shared | --share | --shar \ 1048a8fdb4bcSmrg | --sha | --sh) 1049a8fdb4bcSmrg ac_prev=sharedstatedir ;; 1050a8fdb4bcSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1051a8fdb4bcSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1052a8fdb4bcSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1053a8fdb4bcSmrg | --sha=* | --sh=*) 1054a8fdb4bcSmrg sharedstatedir=$ac_optarg ;; 1055a8fdb4bcSmrg 1056a8fdb4bcSmrg -site | --site | --sit) 1057a8fdb4bcSmrg ac_prev=site ;; 1058a8fdb4bcSmrg -site=* | --site=* | --sit=*) 1059a8fdb4bcSmrg site=$ac_optarg ;; 1060a8fdb4bcSmrg 1061a8fdb4bcSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1062a8fdb4bcSmrg ac_prev=srcdir ;; 1063a8fdb4bcSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1064a8fdb4bcSmrg srcdir=$ac_optarg ;; 1065a8fdb4bcSmrg 1066a8fdb4bcSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1067a8fdb4bcSmrg | --syscon | --sysco | --sysc | --sys | --sy) 1068a8fdb4bcSmrg ac_prev=sysconfdir ;; 1069a8fdb4bcSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1070a8fdb4bcSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1071a8fdb4bcSmrg sysconfdir=$ac_optarg ;; 1072a8fdb4bcSmrg 1073a8fdb4bcSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 1074a8fdb4bcSmrg ac_prev=target_alias ;; 1075a8fdb4bcSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1076a8fdb4bcSmrg target_alias=$ac_optarg ;; 1077a8fdb4bcSmrg 1078a8fdb4bcSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1079a8fdb4bcSmrg verbose=yes ;; 1080a8fdb4bcSmrg 1081a8fdb4bcSmrg -version | --version | --versio | --versi | --vers | -V) 1082a8fdb4bcSmrg ac_init_version=: ;; 1083a8fdb4bcSmrg 1084a8fdb4bcSmrg -with-* | --with-*) 1085dbe7da2eSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1086a8fdb4bcSmrg # Reject names that are not valid shell variable names. 1087dbe7da2eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 108877683534Smrg as_fn_error $? "invalid package name: $ac_useropt" 1089dbe7da2eSmrg ac_useropt_orig=$ac_useropt 1090dbe7da2eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1091dbe7da2eSmrg case $ac_user_opts in 1092dbe7da2eSmrg *" 1093dbe7da2eSmrg"with_$ac_useropt" 1094dbe7da2eSmrg"*) ;; 1095dbe7da2eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1096dbe7da2eSmrg ac_unrecognized_sep=', ';; 1097dbe7da2eSmrg esac 1098dbe7da2eSmrg eval with_$ac_useropt=\$ac_optarg ;; 1099a8fdb4bcSmrg 1100a8fdb4bcSmrg -without-* | --without-*) 1101dbe7da2eSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1102a8fdb4bcSmrg # Reject names that are not valid shell variable names. 1103dbe7da2eSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 110477683534Smrg as_fn_error $? "invalid package name: $ac_useropt" 1105dbe7da2eSmrg ac_useropt_orig=$ac_useropt 1106dbe7da2eSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1107dbe7da2eSmrg case $ac_user_opts in 1108dbe7da2eSmrg *" 1109dbe7da2eSmrg"with_$ac_useropt" 1110dbe7da2eSmrg"*) ;; 1111dbe7da2eSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1112dbe7da2eSmrg ac_unrecognized_sep=', ';; 1113dbe7da2eSmrg esac 1114dbe7da2eSmrg eval with_$ac_useropt=no ;; 1115a8fdb4bcSmrg 1116a8fdb4bcSmrg --x) 1117a8fdb4bcSmrg # Obsolete; use --with-x. 1118a8fdb4bcSmrg with_x=yes ;; 1119a8fdb4bcSmrg 1120a8fdb4bcSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1121a8fdb4bcSmrg | --x-incl | --x-inc | --x-in | --x-i) 1122a8fdb4bcSmrg ac_prev=x_includes ;; 1123a8fdb4bcSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1124a8fdb4bcSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1125a8fdb4bcSmrg x_includes=$ac_optarg ;; 1126a8fdb4bcSmrg 1127a8fdb4bcSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1128a8fdb4bcSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1129a8fdb4bcSmrg ac_prev=x_libraries ;; 1130a8fdb4bcSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1131a8fdb4bcSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1132a8fdb4bcSmrg x_libraries=$ac_optarg ;; 1133a8fdb4bcSmrg 113477683534Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 113577683534SmrgTry \`$0 --help' for more information" 1136a8fdb4bcSmrg ;; 1137a8fdb4bcSmrg 1138a8fdb4bcSmrg *=*) 1139a8fdb4bcSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1140a8fdb4bcSmrg # Reject names that are not valid shell variable names. 1141dbe7da2eSmrg case $ac_envvar in #( 1142dbe7da2eSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 114377683534Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1144dbe7da2eSmrg esac 1145a8fdb4bcSmrg eval $ac_envvar=\$ac_optarg 1146a8fdb4bcSmrg export $ac_envvar ;; 1147a8fdb4bcSmrg 1148a8fdb4bcSmrg *) 1149a8fdb4bcSmrg # FIXME: should be removed in autoconf 3.0. 1150dbe7da2eSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1151a8fdb4bcSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1152dbe7da2eSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 115377683534Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1154a8fdb4bcSmrg ;; 1155a8fdb4bcSmrg 1156a8fdb4bcSmrg esac 1157a8fdb4bcSmrgdone 1158a8fdb4bcSmrg 1159a8fdb4bcSmrgif test -n "$ac_prev"; then 1160a8fdb4bcSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 116177683534Smrg as_fn_error $? "missing argument to $ac_option" 1162dbe7da2eSmrgfi 1163dbe7da2eSmrg 1164dbe7da2eSmrgif test -n "$ac_unrecognized_opts"; then 1165dbe7da2eSmrg case $enable_option_checking in 1166dbe7da2eSmrg no) ;; 116777683534Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1168dbe7da2eSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1169dbe7da2eSmrg esac 1170a8fdb4bcSmrgfi 1171a8fdb4bcSmrg 1172dbe7da2eSmrg# Check all directory arguments for consistency. 1173a8fdb4bcSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1174a8fdb4bcSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1175a8fdb4bcSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1176a8fdb4bcSmrg libdir localedir mandir 1177a8fdb4bcSmrgdo 1178a8fdb4bcSmrg eval ac_val=\$$ac_var 1179dbe7da2eSmrg # Remove trailing slashes. 1180dbe7da2eSmrg case $ac_val in 1181dbe7da2eSmrg */ ) 1182dbe7da2eSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1183dbe7da2eSmrg eval $ac_var=\$ac_val;; 1184dbe7da2eSmrg esac 1185dbe7da2eSmrg # Be sure to have absolute directory names. 1186a8fdb4bcSmrg case $ac_val in 1187a8fdb4bcSmrg [\\/$]* | ?:[\\/]* ) continue;; 1188a8fdb4bcSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1189a8fdb4bcSmrg esac 119077683534Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1191a8fdb4bcSmrgdone 1192a8fdb4bcSmrg 1193a8fdb4bcSmrg# There might be people who depend on the old broken behavior: `$host' 1194a8fdb4bcSmrg# used to hold the argument of --host etc. 1195a8fdb4bcSmrg# FIXME: To remove some day. 1196a8fdb4bcSmrgbuild=$build_alias 1197a8fdb4bcSmrghost=$host_alias 1198a8fdb4bcSmrgtarget=$target_alias 1199a8fdb4bcSmrg 1200a8fdb4bcSmrg# FIXME: To remove some day. 1201a8fdb4bcSmrgif test "x$host_alias" != x; then 1202a8fdb4bcSmrg if test "x$build_alias" = x; then 1203a8fdb4bcSmrg cross_compiling=maybe 120477683534Smrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 120577683534Smrg If a cross compiler is detected then cross compile mode will be used" >&2 1206a8fdb4bcSmrg elif test "x$build_alias" != "x$host_alias"; then 1207a8fdb4bcSmrg cross_compiling=yes 1208a8fdb4bcSmrg fi 1209a8fdb4bcSmrgfi 1210a8fdb4bcSmrg 1211a8fdb4bcSmrgac_tool_prefix= 1212a8fdb4bcSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1213a8fdb4bcSmrg 1214a8fdb4bcSmrgtest "$silent" = yes && exec 6>/dev/null 1215a8fdb4bcSmrg 1216a8fdb4bcSmrg 1217a8fdb4bcSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 1218a8fdb4bcSmrgac_ls_di=`ls -di .` && 1219a8fdb4bcSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 122077683534Smrg as_fn_error $? "working directory cannot be determined" 1221a8fdb4bcSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 122277683534Smrg as_fn_error $? "pwd does not report name of working directory" 1223a8fdb4bcSmrg 1224a8fdb4bcSmrg 1225a8fdb4bcSmrg# Find the source files, if location was not specified. 1226a8fdb4bcSmrgif test -z "$srcdir"; then 1227a8fdb4bcSmrg ac_srcdir_defaulted=yes 1228a8fdb4bcSmrg # Try the directory containing this script, then the parent directory. 1229dbe7da2eSmrg ac_confdir=`$as_dirname -- "$as_myself" || 1230dbe7da2eSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1231dbe7da2eSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1232dbe7da2eSmrg X"$as_myself" : 'X\(//\)$' \| \ 1233dbe7da2eSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1234dbe7da2eSmrg$as_echo X"$as_myself" | 1235a8fdb4bcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1236a8fdb4bcSmrg s//\1/ 1237a8fdb4bcSmrg q 1238a8fdb4bcSmrg } 1239a8fdb4bcSmrg /^X\(\/\/\)[^/].*/{ 1240a8fdb4bcSmrg s//\1/ 1241a8fdb4bcSmrg q 1242a8fdb4bcSmrg } 1243a8fdb4bcSmrg /^X\(\/\/\)$/{ 1244a8fdb4bcSmrg s//\1/ 1245a8fdb4bcSmrg q 1246a8fdb4bcSmrg } 1247a8fdb4bcSmrg /^X\(\/\).*/{ 1248a8fdb4bcSmrg s//\1/ 1249a8fdb4bcSmrg q 1250a8fdb4bcSmrg } 1251a8fdb4bcSmrg s/.*/./; q'` 1252a8fdb4bcSmrg srcdir=$ac_confdir 1253a8fdb4bcSmrg if test ! -r "$srcdir/$ac_unique_file"; then 1254a8fdb4bcSmrg srcdir=.. 1255a8fdb4bcSmrg fi 1256a8fdb4bcSmrgelse 1257a8fdb4bcSmrg ac_srcdir_defaulted=no 1258a8fdb4bcSmrgfi 1259a8fdb4bcSmrgif test ! -r "$srcdir/$ac_unique_file"; then 1260a8fdb4bcSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 126177683534Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1262a8fdb4bcSmrgfi 1263a8fdb4bcSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1264a8fdb4bcSmrgac_abs_confdir=`( 126577683534Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1266a8fdb4bcSmrg pwd)` 1267a8fdb4bcSmrg# When building in place, set srcdir=. 1268a8fdb4bcSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1269a8fdb4bcSmrg srcdir=. 1270a8fdb4bcSmrgfi 1271a8fdb4bcSmrg# Remove unnecessary trailing slashes from srcdir. 1272a8fdb4bcSmrg# Double slashes in file names in object file debugging info 1273a8fdb4bcSmrg# mess up M-x gdb in Emacs. 1274a8fdb4bcSmrgcase $srcdir in 1275a8fdb4bcSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1276a8fdb4bcSmrgesac 1277a8fdb4bcSmrgfor ac_var in $ac_precious_vars; do 1278a8fdb4bcSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1279a8fdb4bcSmrg eval ac_env_${ac_var}_value=\$${ac_var} 1280a8fdb4bcSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1281a8fdb4bcSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1282a8fdb4bcSmrgdone 1283a8fdb4bcSmrg 1284a8fdb4bcSmrg# 1285a8fdb4bcSmrg# Report the --help message. 1286a8fdb4bcSmrg# 1287a8fdb4bcSmrgif test "$ac_init_help" = "long"; then 1288a8fdb4bcSmrg # Omit some internal or obsolete options to make the list less imposing. 1289a8fdb4bcSmrg # This message is too long to be a string in the A/UX 3.1 sh. 1290a8fdb4bcSmrg cat <<_ACEOF 12914ed31819Smrg\`configure' configures luit 1.1.1 to adapt to many kinds of systems. 1292a8fdb4bcSmrg 1293a8fdb4bcSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1294a8fdb4bcSmrg 1295a8fdb4bcSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1296a8fdb4bcSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1297a8fdb4bcSmrg 1298a8fdb4bcSmrgDefaults for the options are specified in brackets. 1299a8fdb4bcSmrg 1300a8fdb4bcSmrgConfiguration: 1301a8fdb4bcSmrg -h, --help display this help and exit 1302a8fdb4bcSmrg --help=short display options specific to this package 1303a8fdb4bcSmrg --help=recursive display the short help of all the included packages 1304a8fdb4bcSmrg -V, --version display version information and exit 130577683534Smrg -q, --quiet, --silent do not print \`checking ...' messages 1306a8fdb4bcSmrg --cache-file=FILE cache test results in FILE [disabled] 1307a8fdb4bcSmrg -C, --config-cache alias for \`--cache-file=config.cache' 1308a8fdb4bcSmrg -n, --no-create do not create output files 1309a8fdb4bcSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1310a8fdb4bcSmrg 1311a8fdb4bcSmrgInstallation directories: 1312a8fdb4bcSmrg --prefix=PREFIX install architecture-independent files in PREFIX 1313dbe7da2eSmrg [$ac_default_prefix] 1314a8fdb4bcSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1315dbe7da2eSmrg [PREFIX] 1316a8fdb4bcSmrg 1317a8fdb4bcSmrgBy default, \`make install' will install all the files in 1318a8fdb4bcSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1319a8fdb4bcSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1320a8fdb4bcSmrgfor instance \`--prefix=\$HOME'. 1321a8fdb4bcSmrg 1322a8fdb4bcSmrgFor better control, use the options below. 1323a8fdb4bcSmrg 1324a8fdb4bcSmrgFine tuning of the installation directories: 1325dbe7da2eSmrg --bindir=DIR user executables [EPREFIX/bin] 1326dbe7da2eSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1327dbe7da2eSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 1328dbe7da2eSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1329dbe7da2eSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1330dbe7da2eSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1331dbe7da2eSmrg --libdir=DIR object code libraries [EPREFIX/lib] 1332dbe7da2eSmrg --includedir=DIR C header files [PREFIX/include] 1333dbe7da2eSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1334dbe7da2eSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1335dbe7da2eSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1336dbe7da2eSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 1337dbe7da2eSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1338dbe7da2eSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 1339dbe7da2eSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/luit] 1340dbe7da2eSmrg --htmldir=DIR html documentation [DOCDIR] 1341dbe7da2eSmrg --dvidir=DIR dvi documentation [DOCDIR] 1342dbe7da2eSmrg --pdfdir=DIR pdf documentation [DOCDIR] 1343dbe7da2eSmrg --psdir=DIR ps documentation [DOCDIR] 1344a8fdb4bcSmrg_ACEOF 1345a8fdb4bcSmrg 1346a8fdb4bcSmrg cat <<\_ACEOF 1347a8fdb4bcSmrg 1348a8fdb4bcSmrgProgram names: 1349a8fdb4bcSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 1350a8fdb4bcSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 1351a8fdb4bcSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1352a8fdb4bcSmrg 1353a8fdb4bcSmrgSystem types: 1354a8fdb4bcSmrg --build=BUILD configure for building on BUILD [guessed] 1355a8fdb4bcSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1356a8fdb4bcSmrg_ACEOF 1357a8fdb4bcSmrgfi 1358a8fdb4bcSmrg 1359a8fdb4bcSmrgif test -n "$ac_init_help"; then 1360a8fdb4bcSmrg case $ac_init_help in 13614ed31819Smrg short | recursive ) echo "Configuration of luit 1.1.1:";; 1362a8fdb4bcSmrg esac 1363a8fdb4bcSmrg cat <<\_ACEOF 1364a8fdb4bcSmrg 1365a8fdb4bcSmrgOptional Features: 1366dbe7da2eSmrg --disable-option-checking ignore unrecognized --enable/--with options 1367a8fdb4bcSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1368a8fdb4bcSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1369a8fdb4bcSmrg --enable-maintainer-mode enable make rules and dependencies not useful 1370a8fdb4bcSmrg (and sometimes confusing) to the casual installer 1371a8fdb4bcSmrg --disable-dependency-tracking speeds up one-time build 1372a8fdb4bcSmrg --enable-dependency-tracking do not reject slow dependency extractors 13734ed31819Smrg --disable-selective-werror 13744ed31819Smrg Turn off selective compiler errors. (default: 13754ed31819Smrg enabled) 1376dbe7da2eSmrg --enable-strict-compilation 1377dbe7da2eSmrg Enable all warnings from compiler and make them 1378dbe7da2eSmrg errors (default: disabled) 137977683534Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 138077683534Smrg --disable-silent-rules verbose build output (undo: `make V=0') 1381a8fdb4bcSmrg 1382a8fdb4bcSmrgOptional Packages: 1383a8fdb4bcSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1384a8fdb4bcSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1385a8fdb4bcSmrg --with-localealiasfile=<path> 1386a8fdb4bcSmrg The locale alias file (default: 1387a8fdb4bcSmrg ${datadir}/X11/locale/locale.alias) 1388a8fdb4bcSmrg 1389a8fdb4bcSmrgSome influential environment variables: 1390a8fdb4bcSmrg CC C compiler command 1391a8fdb4bcSmrg CFLAGS C compiler flags 1392a8fdb4bcSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1393a8fdb4bcSmrg nonstandard directory <lib dir> 1394a8fdb4bcSmrg LIBS libraries to pass to the linker, e.g. -l<library> 1395dbe7da2eSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1396a8fdb4bcSmrg you have headers in a nonstandard directory <include dir> 1397dbe7da2eSmrg CPP C preprocessor 1398a8fdb4bcSmrg PKG_CONFIG path to pkg-config utility 1399a8fdb4bcSmrg LUIT_CFLAGS C compiler flags for LUIT, overriding pkg-config 1400a8fdb4bcSmrg LUIT_LIBS linker flags for LUIT, overriding pkg-config 1401a8fdb4bcSmrg 1402a8fdb4bcSmrgUse these variables to override the choices made by `configure' or to help 1403a8fdb4bcSmrgit to find libraries and programs with nonstandard names/locations. 1404a8fdb4bcSmrg 1405a8fdb4bcSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1406a8fdb4bcSmrg_ACEOF 1407a8fdb4bcSmrgac_status=$? 1408a8fdb4bcSmrgfi 1409a8fdb4bcSmrg 1410a8fdb4bcSmrgif test "$ac_init_help" = "recursive"; then 1411a8fdb4bcSmrg # If there are subdirs, report their specific --help. 1412a8fdb4bcSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1413dbe7da2eSmrg test -d "$ac_dir" || 1414dbe7da2eSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1415dbe7da2eSmrg continue 1416a8fdb4bcSmrg ac_builddir=. 1417a8fdb4bcSmrg 1418a8fdb4bcSmrgcase "$ac_dir" in 1419a8fdb4bcSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1420a8fdb4bcSmrg*) 1421dbe7da2eSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1422a8fdb4bcSmrg # A ".." for each directory in $ac_dir_suffix. 1423dbe7da2eSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1424a8fdb4bcSmrg case $ac_top_builddir_sub in 1425a8fdb4bcSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1426a8fdb4bcSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1427a8fdb4bcSmrg esac ;; 1428a8fdb4bcSmrgesac 1429a8fdb4bcSmrgac_abs_top_builddir=$ac_pwd 1430a8fdb4bcSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1431a8fdb4bcSmrg# for backward compatibility: 1432a8fdb4bcSmrgac_top_builddir=$ac_top_build_prefix 1433a8fdb4bcSmrg 1434a8fdb4bcSmrgcase $srcdir in 1435a8fdb4bcSmrg .) # We are building in place. 1436a8fdb4bcSmrg ac_srcdir=. 1437a8fdb4bcSmrg ac_top_srcdir=$ac_top_builddir_sub 1438a8fdb4bcSmrg ac_abs_top_srcdir=$ac_pwd ;; 1439a8fdb4bcSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1440a8fdb4bcSmrg ac_srcdir=$srcdir$ac_dir_suffix; 1441a8fdb4bcSmrg ac_top_srcdir=$srcdir 1442a8fdb4bcSmrg ac_abs_top_srcdir=$srcdir ;; 1443a8fdb4bcSmrg *) # Relative name. 1444a8fdb4bcSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1445a8fdb4bcSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1446a8fdb4bcSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1447a8fdb4bcSmrgesac 1448a8fdb4bcSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1449a8fdb4bcSmrg 1450a8fdb4bcSmrg cd "$ac_dir" || { ac_status=$?; continue; } 1451a8fdb4bcSmrg # Check for guested configure. 1452a8fdb4bcSmrg if test -f "$ac_srcdir/configure.gnu"; then 1453a8fdb4bcSmrg echo && 1454a8fdb4bcSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1455a8fdb4bcSmrg elif test -f "$ac_srcdir/configure"; then 1456a8fdb4bcSmrg echo && 1457a8fdb4bcSmrg $SHELL "$ac_srcdir/configure" --help=recursive 1458a8fdb4bcSmrg else 1459dbe7da2eSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1460a8fdb4bcSmrg fi || ac_status=$? 1461a8fdb4bcSmrg cd "$ac_pwd" || { ac_status=$?; break; } 1462a8fdb4bcSmrg done 1463a8fdb4bcSmrgfi 1464a8fdb4bcSmrg 1465a8fdb4bcSmrgtest -n "$ac_init_help" && exit $ac_status 1466a8fdb4bcSmrgif $ac_init_version; then 1467a8fdb4bcSmrg cat <<\_ACEOF 14684ed31819Smrgluit configure 1.1.1 146977683534Smrggenerated by GNU Autoconf 2.68 1470a8fdb4bcSmrg 147177683534SmrgCopyright (C) 2010 Free Software Foundation, Inc. 1472a8fdb4bcSmrgThis configure script is free software; the Free Software Foundation 1473a8fdb4bcSmrggives unlimited permission to copy, distribute and modify it. 1474a8fdb4bcSmrg_ACEOF 1475a8fdb4bcSmrg exit 1476a8fdb4bcSmrgfi 1477a8fdb4bcSmrg 1478dbe7da2eSmrg## ------------------------ ## 1479dbe7da2eSmrg## Autoconf initialization. ## 1480dbe7da2eSmrg## ------------------------ ## 1481a8fdb4bcSmrg 1482dbe7da2eSmrg# ac_fn_c_try_compile LINENO 1483dbe7da2eSmrg# -------------------------- 1484dbe7da2eSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1485dbe7da2eSmrgac_fn_c_try_compile () 1486a8fdb4bcSmrg{ 1487dbe7da2eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1488dbe7da2eSmrg rm -f conftest.$ac_objext 1489dbe7da2eSmrg if { { ac_try="$ac_compile" 1490dbe7da2eSmrgcase "(($ac_try" in 1491dbe7da2eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1492dbe7da2eSmrg *) ac_try_echo=$ac_try;; 1493dbe7da2eSmrgesac 1494dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1495dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5 1496dbe7da2eSmrg (eval "$ac_compile") 2>conftest.err 1497dbe7da2eSmrg ac_status=$? 1498dbe7da2eSmrg if test -s conftest.err; then 1499dbe7da2eSmrg grep -v '^ *+' conftest.err >conftest.er1 1500dbe7da2eSmrg cat conftest.er1 >&5 1501dbe7da2eSmrg mv -f conftest.er1 conftest.err 1502dbe7da2eSmrg fi 1503dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1504dbe7da2eSmrg test $ac_status = 0; } && { 1505dbe7da2eSmrg test -z "$ac_c_werror_flag" || 1506dbe7da2eSmrg test ! -s conftest.err 1507dbe7da2eSmrg } && test -s conftest.$ac_objext; then : 1508dbe7da2eSmrg ac_retval=0 1509dbe7da2eSmrgelse 1510dbe7da2eSmrg $as_echo "$as_me: failed program was:" >&5 1511dbe7da2eSmrgsed 's/^/| /' conftest.$ac_ext >&5 1512dbe7da2eSmrg 1513dbe7da2eSmrg ac_retval=1 1514dbe7da2eSmrgfi 151577683534Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1516dbe7da2eSmrg as_fn_set_status $ac_retval 1517dbe7da2eSmrg 1518dbe7da2eSmrg} # ac_fn_c_try_compile 1519dbe7da2eSmrg 152077683534Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 152177683534Smrg# --------------------------------------------- 152277683534Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 152377683534Smrg# accordingly. 1524dbe7da2eSmrgac_fn_c_check_decl () 1525dbe7da2eSmrg{ 1526dbe7da2eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 152777683534Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 152877683534Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 152977683534Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 153077683534Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 153177683534Smrgif eval \${$3+:} false; then : 1532dbe7da2eSmrg $as_echo_n "(cached) " >&6 1533dbe7da2eSmrgelse 1534dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1535dbe7da2eSmrg/* end confdefs.h. */ 1536dbe7da2eSmrg$4 1537dbe7da2eSmrgint 1538dbe7da2eSmrgmain () 1539dbe7da2eSmrg{ 154077683534Smrg#ifndef $as_decl_name 154177683534Smrg#ifdef __cplusplus 154277683534Smrg (void) $as_decl_use; 154377683534Smrg#else 154477683534Smrg (void) $as_decl_name; 154577683534Smrg#endif 1546dbe7da2eSmrg#endif 1547dbe7da2eSmrg 1548dbe7da2eSmrg ; 1549dbe7da2eSmrg return 0; 1550dbe7da2eSmrg} 1551dbe7da2eSmrg_ACEOF 1552dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then : 1553dbe7da2eSmrg eval "$3=yes" 1554dbe7da2eSmrgelse 1555dbe7da2eSmrg eval "$3=no" 1556dbe7da2eSmrgfi 1557dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1558dbe7da2eSmrgfi 1559dbe7da2eSmrgeval ac_res=\$$3 1560dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1561dbe7da2eSmrg$as_echo "$ac_res" >&6; } 156277683534Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1563dbe7da2eSmrg 1564dbe7da2eSmrg} # ac_fn_c_check_decl 1565dbe7da2eSmrg 1566dbe7da2eSmrg# ac_fn_c_try_cpp LINENO 1567dbe7da2eSmrg# ---------------------- 1568dbe7da2eSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1569dbe7da2eSmrgac_fn_c_try_cpp () 1570dbe7da2eSmrg{ 1571dbe7da2eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1572dbe7da2eSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1573dbe7da2eSmrgcase "(($ac_try" in 1574dbe7da2eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1575dbe7da2eSmrg *) ac_try_echo=$ac_try;; 1576dbe7da2eSmrgesac 1577dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5 1579dbe7da2eSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1580dbe7da2eSmrg ac_status=$? 1581dbe7da2eSmrg if test -s conftest.err; then 1582dbe7da2eSmrg grep -v '^ *+' conftest.err >conftest.er1 1583dbe7da2eSmrg cat conftest.er1 >&5 1584dbe7da2eSmrg mv -f conftest.er1 conftest.err 1585dbe7da2eSmrg fi 1586dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 158777683534Smrg test $ac_status = 0; } > conftest.i && { 1588dbe7da2eSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1589dbe7da2eSmrg test ! -s conftest.err 1590dbe7da2eSmrg }; then : 1591dbe7da2eSmrg ac_retval=0 1592dbe7da2eSmrgelse 1593dbe7da2eSmrg $as_echo "$as_me: failed program was:" >&5 1594dbe7da2eSmrgsed 's/^/| /' conftest.$ac_ext >&5 1595dbe7da2eSmrg 1596dbe7da2eSmrg ac_retval=1 1597dbe7da2eSmrgfi 159877683534Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1599dbe7da2eSmrg as_fn_set_status $ac_retval 1600dbe7da2eSmrg 1601dbe7da2eSmrg} # ac_fn_c_try_cpp 1602dbe7da2eSmrg 1603dbe7da2eSmrg# ac_fn_c_try_run LINENO 1604dbe7da2eSmrg# ---------------------- 1605dbe7da2eSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1606dbe7da2eSmrg# that executables *can* be run. 1607dbe7da2eSmrgac_fn_c_try_run () 1608dbe7da2eSmrg{ 1609dbe7da2eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1610dbe7da2eSmrg if { { ac_try="$ac_link" 1611dbe7da2eSmrgcase "(($ac_try" in 1612dbe7da2eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1613dbe7da2eSmrg *) ac_try_echo=$ac_try;; 1614dbe7da2eSmrgesac 1615dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1616dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5 1617dbe7da2eSmrg (eval "$ac_link") 2>&5 1618dbe7da2eSmrg ac_status=$? 1619dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1620dbe7da2eSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1621dbe7da2eSmrg { { case "(($ac_try" in 1622dbe7da2eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623dbe7da2eSmrg *) ac_try_echo=$ac_try;; 1624dbe7da2eSmrgesac 1625dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5 1627dbe7da2eSmrg (eval "$ac_try") 2>&5 1628dbe7da2eSmrg ac_status=$? 1629dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1630dbe7da2eSmrg test $ac_status = 0; }; }; then : 1631dbe7da2eSmrg ac_retval=0 1632dbe7da2eSmrgelse 1633dbe7da2eSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 1634dbe7da2eSmrg $as_echo "$as_me: failed program was:" >&5 1635dbe7da2eSmrgsed 's/^/| /' conftest.$ac_ext >&5 1636dbe7da2eSmrg 1637dbe7da2eSmrg ac_retval=$ac_status 1638dbe7da2eSmrgfi 1639dbe7da2eSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 164077683534Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641dbe7da2eSmrg as_fn_set_status $ac_retval 1642dbe7da2eSmrg 1643dbe7da2eSmrg} # ac_fn_c_try_run 1644dbe7da2eSmrg 1645dbe7da2eSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1646dbe7da2eSmrg# ------------------------------------------------------- 1647dbe7da2eSmrg# Tests whether HEADER exists and can be compiled using the include files in 1648dbe7da2eSmrg# INCLUDES, setting the cache variable VAR accordingly. 1649dbe7da2eSmrgac_fn_c_check_header_compile () 1650dbe7da2eSmrg{ 1651dbe7da2eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1653dbe7da2eSmrg$as_echo_n "checking for $2... " >&6; } 165477683534Smrgif eval \${$3+:} false; then : 1655dbe7da2eSmrg $as_echo_n "(cached) " >&6 1656dbe7da2eSmrgelse 1657dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1658dbe7da2eSmrg/* end confdefs.h. */ 1659dbe7da2eSmrg$4 1660dbe7da2eSmrg#include <$2> 1661dbe7da2eSmrg_ACEOF 1662dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then : 1663dbe7da2eSmrg eval "$3=yes" 1664dbe7da2eSmrgelse 1665dbe7da2eSmrg eval "$3=no" 1666dbe7da2eSmrgfi 1667dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1668dbe7da2eSmrgfi 1669dbe7da2eSmrgeval ac_res=\$$3 1670dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1671dbe7da2eSmrg$as_echo "$ac_res" >&6; } 167277683534Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673dbe7da2eSmrg 1674dbe7da2eSmrg} # ac_fn_c_check_header_compile 1675dbe7da2eSmrg 16764ed31819Smrg# ac_fn_c_try_link LINENO 16774ed31819Smrg# ----------------------- 16784ed31819Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 16794ed31819Smrgac_fn_c_try_link () 16804ed31819Smrg{ 16814ed31819Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16824ed31819Smrg rm -f conftest.$ac_objext conftest$ac_exeext 16834ed31819Smrg if { { ac_try="$ac_link" 16844ed31819Smrgcase "(($ac_try" in 16854ed31819Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16864ed31819Smrg *) ac_try_echo=$ac_try;; 16874ed31819Smrgesac 16884ed31819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16894ed31819Smrg$as_echo "$ac_try_echo"; } >&5 16904ed31819Smrg (eval "$ac_link") 2>conftest.err 16914ed31819Smrg ac_status=$? 16924ed31819Smrg if test -s conftest.err; then 16934ed31819Smrg grep -v '^ *+' conftest.err >conftest.er1 16944ed31819Smrg cat conftest.er1 >&5 16954ed31819Smrg mv -f conftest.er1 conftest.err 16964ed31819Smrg fi 16974ed31819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16984ed31819Smrg test $ac_status = 0; } && { 16994ed31819Smrg test -z "$ac_c_werror_flag" || 17004ed31819Smrg test ! -s conftest.err 17014ed31819Smrg } && test -s conftest$ac_exeext && { 17024ed31819Smrg test "$cross_compiling" = yes || 17034ed31819Smrg $as_test_x conftest$ac_exeext 17044ed31819Smrg }; then : 17054ed31819Smrg ac_retval=0 17064ed31819Smrgelse 17074ed31819Smrg $as_echo "$as_me: failed program was:" >&5 17084ed31819Smrgsed 's/^/| /' conftest.$ac_ext >&5 17094ed31819Smrg 17104ed31819Smrg ac_retval=1 17114ed31819Smrgfi 17124ed31819Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 17134ed31819Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 17144ed31819Smrg # interfere with the next link command; also delete a directory that is 17154ed31819Smrg # left behind by Apple's compiler. We do this before executing the actions. 17164ed31819Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17174ed31819Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17184ed31819Smrg as_fn_set_status $ac_retval 17194ed31819Smrg 17204ed31819Smrg} # ac_fn_c_try_link 17214ed31819Smrg 1722dbe7da2eSmrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1723dbe7da2eSmrg# ------------------------------------------------------- 1724dbe7da2eSmrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1725dbe7da2eSmrg# the include files in INCLUDES and setting the cache variable VAR 1726dbe7da2eSmrg# accordingly. 1727dbe7da2eSmrgac_fn_c_check_header_mongrel () 1728dbe7da2eSmrg{ 1729dbe7da2eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 173077683534Smrg if eval \${$3+:} false; then : 1731dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1732dbe7da2eSmrg$as_echo_n "checking for $2... " >&6; } 173377683534Smrgif eval \${$3+:} false; then : 1734dbe7da2eSmrg $as_echo_n "(cached) " >&6 1735dbe7da2eSmrgfi 1736dbe7da2eSmrgeval ac_res=\$$3 1737dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1738dbe7da2eSmrg$as_echo "$ac_res" >&6; } 1739dbe7da2eSmrgelse 1740dbe7da2eSmrg # Is the header compilable? 1741dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1742dbe7da2eSmrg$as_echo_n "checking $2 usability... " >&6; } 1743dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744dbe7da2eSmrg/* end confdefs.h. */ 1745dbe7da2eSmrg$4 1746dbe7da2eSmrg#include <$2> 1747dbe7da2eSmrg_ACEOF 1748dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then : 1749dbe7da2eSmrg ac_header_compiler=yes 1750dbe7da2eSmrgelse 1751dbe7da2eSmrg ac_header_compiler=no 1752dbe7da2eSmrgfi 1753dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1754dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1755dbe7da2eSmrg$as_echo "$ac_header_compiler" >&6; } 1756dbe7da2eSmrg 1757dbe7da2eSmrg# Is the header present? 1758dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1759dbe7da2eSmrg$as_echo_n "checking $2 presence... " >&6; } 1760dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1761dbe7da2eSmrg/* end confdefs.h. */ 1762dbe7da2eSmrg#include <$2> 1763dbe7da2eSmrg_ACEOF 1764dbe7da2eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 1765dbe7da2eSmrg ac_header_preproc=yes 1766dbe7da2eSmrgelse 1767dbe7da2eSmrg ac_header_preproc=no 1768dbe7da2eSmrgfi 176977683534Smrgrm -f conftest.err conftest.i conftest.$ac_ext 1770dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1771dbe7da2eSmrg$as_echo "$ac_header_preproc" >&6; } 1772dbe7da2eSmrg 1773dbe7da2eSmrg# So? What about this header? 1774dbe7da2eSmrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1775dbe7da2eSmrg yes:no: ) 1776dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1777dbe7da2eSmrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1778dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1779dbe7da2eSmrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1780dbe7da2eSmrg ;; 1781dbe7da2eSmrg no:yes:* ) 1782dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1783dbe7da2eSmrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1784dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1785dbe7da2eSmrg$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1786dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1787dbe7da2eSmrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1788dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1789dbe7da2eSmrg$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1790dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1791dbe7da2eSmrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 179277683534Smrg( $as_echo "## ---------------------------------------------------------------------- ## 1793dbe7da2eSmrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 179477683534Smrg## ---------------------------------------------------------------------- ##" 1795dbe7da2eSmrg ) | sed "s/^/$as_me: WARNING: /" >&2 1796dbe7da2eSmrg ;; 1797dbe7da2eSmrgesac 1798dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1799dbe7da2eSmrg$as_echo_n "checking for $2... " >&6; } 180077683534Smrgif eval \${$3+:} false; then : 1801dbe7da2eSmrg $as_echo_n "(cached) " >&6 1802dbe7da2eSmrgelse 1803dbe7da2eSmrg eval "$3=\$ac_header_compiler" 1804dbe7da2eSmrgfi 1805dbe7da2eSmrgeval ac_res=\$$3 1806dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1807dbe7da2eSmrg$as_echo "$ac_res" >&6; } 1808dbe7da2eSmrgfi 180977683534Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810dbe7da2eSmrg 1811dbe7da2eSmrg} # ac_fn_c_check_header_mongrel 1812dbe7da2eSmrg 1813dbe7da2eSmrg# ac_fn_c_check_func LINENO FUNC VAR 1814dbe7da2eSmrg# ---------------------------------- 1815dbe7da2eSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1816dbe7da2eSmrgac_fn_c_check_func () 1817dbe7da2eSmrg{ 1818dbe7da2eSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1819dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1820dbe7da2eSmrg$as_echo_n "checking for $2... " >&6; } 182177683534Smrgif eval \${$3+:} false; then : 1822dbe7da2eSmrg $as_echo_n "(cached) " >&6 1823dbe7da2eSmrgelse 1824dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1825dbe7da2eSmrg/* end confdefs.h. */ 1826dbe7da2eSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1827dbe7da2eSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1828dbe7da2eSmrg#define $2 innocuous_$2 1829dbe7da2eSmrg 1830dbe7da2eSmrg/* System header to define __stub macros and hopefully few prototypes, 1831dbe7da2eSmrg which can conflict with char $2 (); below. 1832dbe7da2eSmrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1833dbe7da2eSmrg <limits.h> exists even on freestanding compilers. */ 1834dbe7da2eSmrg 1835dbe7da2eSmrg#ifdef __STDC__ 1836dbe7da2eSmrg# include <limits.h> 1837dbe7da2eSmrg#else 1838dbe7da2eSmrg# include <assert.h> 1839dbe7da2eSmrg#endif 1840dbe7da2eSmrg 1841dbe7da2eSmrg#undef $2 1842dbe7da2eSmrg 1843dbe7da2eSmrg/* Override any GCC internal prototype to avoid an error. 1844dbe7da2eSmrg Use char because int might match the return type of a GCC 1845dbe7da2eSmrg builtin and then its argument prototype would still apply. */ 1846dbe7da2eSmrg#ifdef __cplusplus 1847dbe7da2eSmrgextern "C" 1848dbe7da2eSmrg#endif 1849dbe7da2eSmrgchar $2 (); 1850dbe7da2eSmrg/* The GNU C library defines this for functions which it implements 1851dbe7da2eSmrg to always fail with ENOSYS. Some functions are actually named 1852dbe7da2eSmrg something starting with __ and the normal name is an alias. */ 1853dbe7da2eSmrg#if defined __stub_$2 || defined __stub___$2 1854dbe7da2eSmrgchoke me 1855dbe7da2eSmrg#endif 1856dbe7da2eSmrg 1857dbe7da2eSmrgint 1858dbe7da2eSmrgmain () 1859dbe7da2eSmrg{ 1860dbe7da2eSmrgreturn $2 (); 1861dbe7da2eSmrg ; 1862dbe7da2eSmrg return 0; 1863dbe7da2eSmrg} 1864dbe7da2eSmrg_ACEOF 1865dbe7da2eSmrgif ac_fn_c_try_link "$LINENO"; then : 1866dbe7da2eSmrg eval "$3=yes" 1867dbe7da2eSmrgelse 1868dbe7da2eSmrg eval "$3=no" 1869dbe7da2eSmrgfi 1870dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext \ 1871dbe7da2eSmrg conftest$ac_exeext conftest.$ac_ext 1872dbe7da2eSmrgfi 1873dbe7da2eSmrgeval ac_res=\$$3 1874dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1875dbe7da2eSmrg$as_echo "$ac_res" >&6; } 187677683534Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1877dbe7da2eSmrg 1878dbe7da2eSmrg} # ac_fn_c_check_func 1879dbe7da2eSmrgcat >config.log <<_ACEOF 1880dbe7da2eSmrgThis file contains any messages produced by compilers while 1881dbe7da2eSmrgrunning configure, to aid debugging if configure makes a mistake. 1882dbe7da2eSmrg 18834ed31819SmrgIt was created by luit $as_me 1.1.1, which was 188477683534Smrggenerated by GNU Autoconf 2.68. Invocation command line was 1885dbe7da2eSmrg 1886dbe7da2eSmrg $ $0 $@ 1887dbe7da2eSmrg 1888dbe7da2eSmrg_ACEOF 1889dbe7da2eSmrgexec 5>>config.log 1890dbe7da2eSmrg{ 1891dbe7da2eSmrgcat <<_ASUNAME 1892dbe7da2eSmrg## --------- ## 1893dbe7da2eSmrg## Platform. ## 1894dbe7da2eSmrg## --------- ## 1895a8fdb4bcSmrg 1896a8fdb4bcSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1897a8fdb4bcSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1898a8fdb4bcSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1899a8fdb4bcSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1900a8fdb4bcSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1901a8fdb4bcSmrg 1902a8fdb4bcSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1903a8fdb4bcSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1904a8fdb4bcSmrg 1905a8fdb4bcSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1906a8fdb4bcSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1907a8fdb4bcSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1908a8fdb4bcSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1909a8fdb4bcSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1910a8fdb4bcSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1911a8fdb4bcSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1912a8fdb4bcSmrg 1913a8fdb4bcSmrg_ASUNAME 1914a8fdb4bcSmrg 1915a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1916a8fdb4bcSmrgfor as_dir in $PATH 1917a8fdb4bcSmrgdo 1918a8fdb4bcSmrg IFS=$as_save_IFS 1919a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 1920dbe7da2eSmrg $as_echo "PATH: $as_dir" 1921dbe7da2eSmrg done 1922a8fdb4bcSmrgIFS=$as_save_IFS 1923a8fdb4bcSmrg 1924a8fdb4bcSmrg} >&5 1925a8fdb4bcSmrg 1926a8fdb4bcSmrgcat >&5 <<_ACEOF 1927a8fdb4bcSmrg 1928a8fdb4bcSmrg 1929a8fdb4bcSmrg## ----------- ## 1930a8fdb4bcSmrg## Core tests. ## 1931a8fdb4bcSmrg## ----------- ## 1932a8fdb4bcSmrg 1933a8fdb4bcSmrg_ACEOF 1934a8fdb4bcSmrg 1935a8fdb4bcSmrg 1936a8fdb4bcSmrg# Keep a trace of the command line. 1937a8fdb4bcSmrg# Strip out --no-create and --no-recursion so they do not pile up. 1938a8fdb4bcSmrg# Strip out --silent because we don't want to record it for future runs. 1939a8fdb4bcSmrg# Also quote any args containing shell meta-characters. 1940a8fdb4bcSmrg# Make two passes to allow for proper duplicate-argument suppression. 1941a8fdb4bcSmrgac_configure_args= 1942a8fdb4bcSmrgac_configure_args0= 1943a8fdb4bcSmrgac_configure_args1= 1944a8fdb4bcSmrgac_must_keep_next=false 1945a8fdb4bcSmrgfor ac_pass in 1 2 1946a8fdb4bcSmrgdo 1947a8fdb4bcSmrg for ac_arg 1948a8fdb4bcSmrg do 1949a8fdb4bcSmrg case $ac_arg in 1950a8fdb4bcSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1951a8fdb4bcSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1952a8fdb4bcSmrg | -silent | --silent | --silen | --sile | --sil) 1953a8fdb4bcSmrg continue ;; 1954a8fdb4bcSmrg *\'*) 1955dbe7da2eSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1956a8fdb4bcSmrg esac 1957a8fdb4bcSmrg case $ac_pass in 1958dbe7da2eSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1959a8fdb4bcSmrg 2) 1960dbe7da2eSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 1961a8fdb4bcSmrg if test $ac_must_keep_next = true; then 1962a8fdb4bcSmrg ac_must_keep_next=false # Got value, back to normal. 1963a8fdb4bcSmrg else 1964a8fdb4bcSmrg case $ac_arg in 1965a8fdb4bcSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1966a8fdb4bcSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1967a8fdb4bcSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1968a8fdb4bcSmrg | -with-* | --with-* | -without-* | --without-* | --x) 1969a8fdb4bcSmrg case "$ac_configure_args0 " in 1970a8fdb4bcSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1971a8fdb4bcSmrg esac 1972a8fdb4bcSmrg ;; 1973a8fdb4bcSmrg -* ) ac_must_keep_next=true ;; 1974a8fdb4bcSmrg esac 1975a8fdb4bcSmrg fi 1976dbe7da2eSmrg as_fn_append ac_configure_args " '$ac_arg'" 1977a8fdb4bcSmrg ;; 1978a8fdb4bcSmrg esac 1979a8fdb4bcSmrg done 1980a8fdb4bcSmrgdone 1981dbe7da2eSmrg{ ac_configure_args0=; unset ac_configure_args0;} 1982dbe7da2eSmrg{ ac_configure_args1=; unset ac_configure_args1;} 1983a8fdb4bcSmrg 1984a8fdb4bcSmrg# When interrupted or exit'd, cleanup temporary files, and complete 1985a8fdb4bcSmrg# config.log. We remove comments because anyway the quotes in there 1986a8fdb4bcSmrg# would cause problems or look ugly. 1987a8fdb4bcSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1988a8fdb4bcSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1989a8fdb4bcSmrgtrap 'exit_status=$? 1990a8fdb4bcSmrg # Save into config.log some information that might help in debugging. 1991a8fdb4bcSmrg { 1992a8fdb4bcSmrg echo 1993a8fdb4bcSmrg 199477683534Smrg $as_echo "## ---------------- ## 1995a8fdb4bcSmrg## Cache variables. ## 199677683534Smrg## ---------------- ##" 1997a8fdb4bcSmrg echo 1998a8fdb4bcSmrg # The following way of writing the cache mishandles newlines in values, 1999a8fdb4bcSmrg( 2000a8fdb4bcSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2001a8fdb4bcSmrg eval ac_val=\$$ac_var 2002a8fdb4bcSmrg case $ac_val in #( 2003a8fdb4bcSmrg *${as_nl}*) 2004a8fdb4bcSmrg case $ac_var in #( 2005dbe7da2eSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2006dbe7da2eSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2007a8fdb4bcSmrg esac 2008a8fdb4bcSmrg case $ac_var in #( 2009a8fdb4bcSmrg _ | IFS | as_nl) ;; #( 2010dbe7da2eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2011dbe7da2eSmrg *) { eval $ac_var=; unset $ac_var;} ;; 2012a8fdb4bcSmrg esac ;; 2013a8fdb4bcSmrg esac 2014a8fdb4bcSmrg done 2015a8fdb4bcSmrg (set) 2>&1 | 2016a8fdb4bcSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2017a8fdb4bcSmrg *${as_nl}ac_space=\ *) 2018a8fdb4bcSmrg sed -n \ 2019a8fdb4bcSmrg "s/'\''/'\''\\\\'\'''\''/g; 2020a8fdb4bcSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2021a8fdb4bcSmrg ;; #( 2022a8fdb4bcSmrg *) 2023a8fdb4bcSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2024a8fdb4bcSmrg ;; 2025a8fdb4bcSmrg esac | 2026a8fdb4bcSmrg sort 2027a8fdb4bcSmrg) 2028a8fdb4bcSmrg echo 2029a8fdb4bcSmrg 203077683534Smrg $as_echo "## ----------------- ## 2031a8fdb4bcSmrg## Output variables. ## 203277683534Smrg## ----------------- ##" 2033a8fdb4bcSmrg echo 2034a8fdb4bcSmrg for ac_var in $ac_subst_vars 2035a8fdb4bcSmrg do 2036a8fdb4bcSmrg eval ac_val=\$$ac_var 2037a8fdb4bcSmrg case $ac_val in 2038dbe7da2eSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2039a8fdb4bcSmrg esac 2040dbe7da2eSmrg $as_echo "$ac_var='\''$ac_val'\''" 2041a8fdb4bcSmrg done | sort 2042a8fdb4bcSmrg echo 2043a8fdb4bcSmrg 2044a8fdb4bcSmrg if test -n "$ac_subst_files"; then 204577683534Smrg $as_echo "## ------------------- ## 2046a8fdb4bcSmrg## File substitutions. ## 204777683534Smrg## ------------------- ##" 2048a8fdb4bcSmrg echo 2049a8fdb4bcSmrg for ac_var in $ac_subst_files 2050a8fdb4bcSmrg do 2051a8fdb4bcSmrg eval ac_val=\$$ac_var 2052a8fdb4bcSmrg case $ac_val in 2053dbe7da2eSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2054a8fdb4bcSmrg esac 2055dbe7da2eSmrg $as_echo "$ac_var='\''$ac_val'\''" 2056a8fdb4bcSmrg done | sort 2057a8fdb4bcSmrg echo 2058a8fdb4bcSmrg fi 2059a8fdb4bcSmrg 2060a8fdb4bcSmrg if test -s confdefs.h; then 206177683534Smrg $as_echo "## ----------- ## 2062a8fdb4bcSmrg## confdefs.h. ## 206377683534Smrg## ----------- ##" 2064a8fdb4bcSmrg echo 2065a8fdb4bcSmrg cat confdefs.h 2066a8fdb4bcSmrg echo 2067a8fdb4bcSmrg fi 2068a8fdb4bcSmrg test "$ac_signal" != 0 && 2069dbe7da2eSmrg $as_echo "$as_me: caught signal $ac_signal" 2070dbe7da2eSmrg $as_echo "$as_me: exit $exit_status" 2071a8fdb4bcSmrg } >&5 2072a8fdb4bcSmrg rm -f core *.core core.conftest.* && 2073a8fdb4bcSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2074a8fdb4bcSmrg exit $exit_status 2075a8fdb4bcSmrg' 0 2076a8fdb4bcSmrgfor ac_signal in 1 2 13 15; do 2077dbe7da2eSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2078a8fdb4bcSmrgdone 2079a8fdb4bcSmrgac_signal=0 2080a8fdb4bcSmrg 2081a8fdb4bcSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2082a8fdb4bcSmrgrm -f -r conftest* confdefs.h 2083a8fdb4bcSmrg 2084dbe7da2eSmrg$as_echo "/* confdefs.h */" > confdefs.h 2085dbe7da2eSmrg 2086a8fdb4bcSmrg# Predefined preprocessor variables. 2087a8fdb4bcSmrg 2088a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF 2089a8fdb4bcSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 2090a8fdb4bcSmrg_ACEOF 2091a8fdb4bcSmrg 2092a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF 2093a8fdb4bcSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2094a8fdb4bcSmrg_ACEOF 2095a8fdb4bcSmrg 2096a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF 2097a8fdb4bcSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 2098a8fdb4bcSmrg_ACEOF 2099a8fdb4bcSmrg 2100a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF 2101a8fdb4bcSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 2102a8fdb4bcSmrg_ACEOF 2103a8fdb4bcSmrg 2104a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF 2105a8fdb4bcSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2106a8fdb4bcSmrg_ACEOF 2107a8fdb4bcSmrg 2108dbe7da2eSmrgcat >>confdefs.h <<_ACEOF 2109dbe7da2eSmrg#define PACKAGE_URL "$PACKAGE_URL" 2110dbe7da2eSmrg_ACEOF 2111dbe7da2eSmrg 2112a8fdb4bcSmrg 2113a8fdb4bcSmrg# Let the site file select an alternate cache file if it wants to. 2114dbe7da2eSmrg# Prefer an explicitly selected file to automatically selected ones. 2115dbe7da2eSmrgac_site_file1=NONE 2116dbe7da2eSmrgac_site_file2=NONE 2117a8fdb4bcSmrgif test -n "$CONFIG_SITE"; then 211877683534Smrg # We do not want a PATH search for config.site. 211977683534Smrg case $CONFIG_SITE in #(( 212077683534Smrg -*) ac_site_file1=./$CONFIG_SITE;; 212177683534Smrg */*) ac_site_file1=$CONFIG_SITE;; 212277683534Smrg *) ac_site_file1=./$CONFIG_SITE;; 212377683534Smrg esac 2124a8fdb4bcSmrgelif test "x$prefix" != xNONE; then 2125dbe7da2eSmrg ac_site_file1=$prefix/share/config.site 2126dbe7da2eSmrg ac_site_file2=$prefix/etc/config.site 2127a8fdb4bcSmrgelse 2128dbe7da2eSmrg ac_site_file1=$ac_default_prefix/share/config.site 2129dbe7da2eSmrg ac_site_file2=$ac_default_prefix/etc/config.site 2130a8fdb4bcSmrgfi 2131dbe7da2eSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2132a8fdb4bcSmrgdo 2133dbe7da2eSmrg test "x$ac_site_file" = xNONE && continue 2134dbe7da2eSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2135dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2136dbe7da2eSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2137a8fdb4bcSmrg sed 's/^/| /' "$ac_site_file" >&5 213877683534Smrg . "$ac_site_file" \ 213977683534Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 214077683534Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 214177683534Smrgas_fn_error $? "failed to load site script $ac_site_file 214277683534SmrgSee \`config.log' for more details" "$LINENO" 5; } 2143a8fdb4bcSmrg fi 2144a8fdb4bcSmrgdone 2145a8fdb4bcSmrg 2146a8fdb4bcSmrgif test -r "$cache_file"; then 2147dbe7da2eSmrg # Some versions of bash will fail to source /dev/null (special files 2148dbe7da2eSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2149dbe7da2eSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2150dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2151dbe7da2eSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2152a8fdb4bcSmrg case $cache_file in 2153a8fdb4bcSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2154a8fdb4bcSmrg *) . "./$cache_file";; 2155a8fdb4bcSmrg esac 2156a8fdb4bcSmrg fi 2157a8fdb4bcSmrgelse 2158dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2159dbe7da2eSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2160a8fdb4bcSmrg >$cache_file 2161a8fdb4bcSmrgfi 2162a8fdb4bcSmrg 2163a8fdb4bcSmrg# Check that the precious variables saved in the cache have kept the same 2164a8fdb4bcSmrg# value. 2165a8fdb4bcSmrgac_cache_corrupted=false 2166a8fdb4bcSmrgfor ac_var in $ac_precious_vars; do 2167a8fdb4bcSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2168a8fdb4bcSmrg eval ac_new_set=\$ac_env_${ac_var}_set 2169a8fdb4bcSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2170a8fdb4bcSmrg eval ac_new_val=\$ac_env_${ac_var}_value 2171a8fdb4bcSmrg case $ac_old_set,$ac_new_set in 2172a8fdb4bcSmrg set,) 2173dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2174dbe7da2eSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2175a8fdb4bcSmrg ac_cache_corrupted=: ;; 2176a8fdb4bcSmrg ,set) 2177dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2178dbe7da2eSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2179a8fdb4bcSmrg ac_cache_corrupted=: ;; 2180a8fdb4bcSmrg ,);; 2181a8fdb4bcSmrg *) 2182a8fdb4bcSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 2183dbe7da2eSmrg # differences in whitespace do not lead to failure. 2184dbe7da2eSmrg ac_old_val_w=`echo x $ac_old_val` 2185dbe7da2eSmrg ac_new_val_w=`echo x $ac_new_val` 2186dbe7da2eSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2187dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2188dbe7da2eSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2189dbe7da2eSmrg ac_cache_corrupted=: 2190dbe7da2eSmrg else 2191dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2192dbe7da2eSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2193dbe7da2eSmrg eval $ac_var=\$ac_old_val 2194dbe7da2eSmrg fi 2195dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2196dbe7da2eSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2197dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2198dbe7da2eSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2199a8fdb4bcSmrg fi;; 2200a8fdb4bcSmrg esac 2201a8fdb4bcSmrg # Pass precious variables to config.status. 2202a8fdb4bcSmrg if test "$ac_new_set" = set; then 2203a8fdb4bcSmrg case $ac_new_val in 2204dbe7da2eSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2205a8fdb4bcSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2206a8fdb4bcSmrg esac 2207a8fdb4bcSmrg case " $ac_configure_args " in 2208a8fdb4bcSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2209dbe7da2eSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2210a8fdb4bcSmrg esac 2211a8fdb4bcSmrg fi 2212a8fdb4bcSmrgdone 2213a8fdb4bcSmrgif $ac_cache_corrupted; then 2214dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2215dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2216dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2217dbe7da2eSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 221877683534Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2219a8fdb4bcSmrgfi 2220dbe7da2eSmrg## -------------------- ## 2221dbe7da2eSmrg## Main body of script. ## 2222dbe7da2eSmrg## -------------------- ## 2223a8fdb4bcSmrg 2224a8fdb4bcSmrgac_ext=c 2225a8fdb4bcSmrgac_cpp='$CPP $CPPFLAGS' 2226a8fdb4bcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2227a8fdb4bcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2228a8fdb4bcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2229a8fdb4bcSmrg 2230a8fdb4bcSmrg 2231dbe7da2eSmrgam__api_version='1.11' 2232a8fdb4bcSmrg 2233a8fdb4bcSmrgac_aux_dir= 2234a8fdb4bcSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 223577683534Smrg if test -f "$ac_dir/install-sh"; then 223677683534Smrg ac_aux_dir=$ac_dir 223777683534Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 223877683534Smrg break 223977683534Smrg elif test -f "$ac_dir/install.sh"; then 224077683534Smrg ac_aux_dir=$ac_dir 224177683534Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 224277683534Smrg break 224377683534Smrg elif test -f "$ac_dir/shtool"; then 224477683534Smrg ac_aux_dir=$ac_dir 224577683534Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 224677683534Smrg break 224777683534Smrg fi 2248a8fdb4bcSmrgdone 2249a8fdb4bcSmrgif test -z "$ac_aux_dir"; then 225077683534Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2251a8fdb4bcSmrgfi 2252a8fdb4bcSmrg 2253a8fdb4bcSmrg# These three variables are undocumented and unsupported, 2254a8fdb4bcSmrg# and are intended to be withdrawn in a future Autoconf release. 2255a8fdb4bcSmrg# They can cause serious problems if a builder's source tree is in a directory 2256a8fdb4bcSmrg# whose full name contains unusual characters. 2257a8fdb4bcSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2258a8fdb4bcSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2259a8fdb4bcSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2260a8fdb4bcSmrg 2261a8fdb4bcSmrg 2262a8fdb4bcSmrg# Find a good install program. We prefer a C program (faster), 2263a8fdb4bcSmrg# so one script is as good as another. But avoid the broken or 2264a8fdb4bcSmrg# incompatible versions: 2265a8fdb4bcSmrg# SysV /etc/install, /usr/sbin/install 2266a8fdb4bcSmrg# SunOS /usr/etc/install 2267a8fdb4bcSmrg# IRIX /sbin/install 2268a8fdb4bcSmrg# AIX /bin/install 2269a8fdb4bcSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2270a8fdb4bcSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2271a8fdb4bcSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2272a8fdb4bcSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2273a8fdb4bcSmrg# OS/2's system install, which has a completely different semantic 2274a8fdb4bcSmrg# ./install, which can be erroneously created by make from ./install.sh. 2275dbe7da2eSmrg# Reject install programs that cannot install multiple files. 2276dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2277dbe7da2eSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2278a8fdb4bcSmrgif test -z "$INSTALL"; then 227977683534Smrgif ${ac_cv_path_install+:} false; then : 2280dbe7da2eSmrg $as_echo_n "(cached) " >&6 2281a8fdb4bcSmrgelse 2282a8fdb4bcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2283a8fdb4bcSmrgfor as_dir in $PATH 2284a8fdb4bcSmrgdo 2285a8fdb4bcSmrg IFS=$as_save_IFS 2286a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 2287dbe7da2eSmrg # Account for people who put trailing slashes in PATH elements. 2288dbe7da2eSmrgcase $as_dir/ in #(( 2289dbe7da2eSmrg ./ | .// | /[cC]/* | \ 2290a8fdb4bcSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2291dbe7da2eSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2292a8fdb4bcSmrg /usr/ucb/* ) ;; 2293a8fdb4bcSmrg *) 2294a8fdb4bcSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 2295a8fdb4bcSmrg # Don't use installbsd from OSF since it installs stuff as root 2296a8fdb4bcSmrg # by default. 2297a8fdb4bcSmrg for ac_prog in ginstall scoinst install; do 2298a8fdb4bcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2299a8fdb4bcSmrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2300a8fdb4bcSmrg if test $ac_prog = install && 2301a8fdb4bcSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2302a8fdb4bcSmrg # AIX install. It has an incompatible calling convention. 2303a8fdb4bcSmrg : 2304a8fdb4bcSmrg elif test $ac_prog = install && 2305a8fdb4bcSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2306a8fdb4bcSmrg # program-specific install script used by HP pwplus--don't use. 2307a8fdb4bcSmrg : 2308a8fdb4bcSmrg else 2309dbe7da2eSmrg rm -rf conftest.one conftest.two conftest.dir 2310dbe7da2eSmrg echo one > conftest.one 2311dbe7da2eSmrg echo two > conftest.two 2312dbe7da2eSmrg mkdir conftest.dir 2313dbe7da2eSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2314dbe7da2eSmrg test -s conftest.one && test -s conftest.two && 2315dbe7da2eSmrg test -s conftest.dir/conftest.one && 2316dbe7da2eSmrg test -s conftest.dir/conftest.two 2317dbe7da2eSmrg then 2318dbe7da2eSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2319dbe7da2eSmrg break 3 2320dbe7da2eSmrg fi 2321a8fdb4bcSmrg fi 2322a8fdb4bcSmrg fi 2323a8fdb4bcSmrg done 2324a8fdb4bcSmrg done 2325a8fdb4bcSmrg ;; 2326a8fdb4bcSmrgesac 2327dbe7da2eSmrg 2328dbe7da2eSmrg done 2329a8fdb4bcSmrgIFS=$as_save_IFS 2330a8fdb4bcSmrg 2331dbe7da2eSmrgrm -rf conftest.one conftest.two conftest.dir 2332a8fdb4bcSmrg 2333a8fdb4bcSmrgfi 2334a8fdb4bcSmrg if test "${ac_cv_path_install+set}" = set; then 2335a8fdb4bcSmrg INSTALL=$ac_cv_path_install 2336a8fdb4bcSmrg else 2337a8fdb4bcSmrg # As a last resort, use the slow shell script. Don't cache a 2338a8fdb4bcSmrg # value for INSTALL within a source directory, because that will 2339a8fdb4bcSmrg # break other packages using the cache if that directory is 2340a8fdb4bcSmrg # removed, or if the value is a relative name. 2341a8fdb4bcSmrg INSTALL=$ac_install_sh 2342a8fdb4bcSmrg fi 2343a8fdb4bcSmrgfi 2344dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2345dbe7da2eSmrg$as_echo "$INSTALL" >&6; } 2346a8fdb4bcSmrg 2347a8fdb4bcSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2348a8fdb4bcSmrg# It thinks the first close brace ends the variable substitution. 2349a8fdb4bcSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2350a8fdb4bcSmrg 2351a8fdb4bcSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2352a8fdb4bcSmrg 2353a8fdb4bcSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2354a8fdb4bcSmrg 2355dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2356dbe7da2eSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 2357a8fdb4bcSmrg# Just in case 2358a8fdb4bcSmrgsleep 1 2359a8fdb4bcSmrgecho timestamp > conftest.file 2360dbe7da2eSmrg# Reject unsafe characters in $srcdir or the absolute working directory 2361dbe7da2eSmrg# name. Accept space and tab only in the latter. 2362dbe7da2eSmrgam_lf=' 2363dbe7da2eSmrg' 2364dbe7da2eSmrgcase `pwd` in 2365dbe7da2eSmrg *[\\\"\#\$\&\'\`$am_lf]*) 236677683534Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2367dbe7da2eSmrgesac 2368dbe7da2eSmrgcase $srcdir in 2369dbe7da2eSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 237077683534Smrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2371dbe7da2eSmrgesac 2372dbe7da2eSmrg 2373a8fdb4bcSmrg# Do `set' in a subshell so we don't clobber the current shell's 2374a8fdb4bcSmrg# arguments. Must try -L first in case configure is actually a 2375a8fdb4bcSmrg# symlink; some systems play weird games with the mod time of symlinks 2376a8fdb4bcSmrg# (eg FreeBSD returns the mod time of the symlink's containing 2377a8fdb4bcSmrg# directory). 2378a8fdb4bcSmrgif ( 2379dbe7da2eSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2380a8fdb4bcSmrg if test "$*" = "X"; then 2381a8fdb4bcSmrg # -L didn't work. 2382dbe7da2eSmrg set X `ls -t "$srcdir/configure" conftest.file` 2383a8fdb4bcSmrg fi 2384a8fdb4bcSmrg rm -f conftest.file 2385a8fdb4bcSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 2386a8fdb4bcSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 2387a8fdb4bcSmrg 2388a8fdb4bcSmrg # If neither matched, then we have a broken ls. This can happen 2389a8fdb4bcSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2390a8fdb4bcSmrg # broken ls alias from the environment. This has actually 2391a8fdb4bcSmrg # happened. Such a system could not be considered "sane". 239277683534Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2393dbe7da2eSmrgalias in your environment" "$LINENO" 5 2394a8fdb4bcSmrg fi 2395a8fdb4bcSmrg 2396a8fdb4bcSmrg test "$2" = conftest.file 2397a8fdb4bcSmrg ) 2398a8fdb4bcSmrgthen 2399a8fdb4bcSmrg # Ok. 2400a8fdb4bcSmrg : 2401a8fdb4bcSmrgelse 240277683534Smrg as_fn_error $? "newly created file is older than distributed files! 2403dbe7da2eSmrgCheck your system clock" "$LINENO" 5 2404a8fdb4bcSmrgfi 2405dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2406dbe7da2eSmrg$as_echo "yes" >&6; } 2407a8fdb4bcSmrgtest "$program_prefix" != NONE && 2408a8fdb4bcSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2409a8fdb4bcSmrg# Use a double $ so make ignores it. 2410a8fdb4bcSmrgtest "$program_suffix" != NONE && 2411a8fdb4bcSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2412dbe7da2eSmrg# Double any \ or $. 2413a8fdb4bcSmrg# By default was `s,x,x', remove it if useless. 2414dbe7da2eSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2415dbe7da2eSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2416a8fdb4bcSmrg 2417a8fdb4bcSmrg# expand $ac_aux_dir to an absolute path 2418a8fdb4bcSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 2419a8fdb4bcSmrg 2420dbe7da2eSmrgif test x"${MISSING+set}" != xset; then 2421dbe7da2eSmrg case $am_aux_dir in 2422dbe7da2eSmrg *\ * | *\ *) 2423dbe7da2eSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2424dbe7da2eSmrg *) 2425dbe7da2eSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2426dbe7da2eSmrg esac 2427dbe7da2eSmrgfi 2428a8fdb4bcSmrg# Use eval to expand $SHELL 2429a8fdb4bcSmrgif eval "$MISSING --run true"; then 2430a8fdb4bcSmrg am_missing_run="$MISSING --run " 2431a8fdb4bcSmrgelse 2432a8fdb4bcSmrg am_missing_run= 2433dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2434dbe7da2eSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2435a8fdb4bcSmrgfi 2436a8fdb4bcSmrg 2437dbe7da2eSmrgif test x"${install_sh}" != xset; then 2438dbe7da2eSmrg case $am_aux_dir in 2439dbe7da2eSmrg *\ * | *\ *) 2440dbe7da2eSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2441dbe7da2eSmrg *) 2442dbe7da2eSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2443dbe7da2eSmrg esac 2444dbe7da2eSmrgfi 2445dbe7da2eSmrg 2446dbe7da2eSmrg# Installed binaries are usually stripped using `strip' when the user 2447dbe7da2eSmrg# run `make install-strip'. However `strip' might not be the right 2448dbe7da2eSmrg# tool to use in cross-compilation environments, therefore Automake 2449dbe7da2eSmrg# will honor the `STRIP' environment variable to overrule this program. 2450dbe7da2eSmrgif test "$cross_compiling" != no; then 2451dbe7da2eSmrg if test -n "$ac_tool_prefix"; then 2452dbe7da2eSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2453dbe7da2eSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2454dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2455dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; } 245677683534Smrgif ${ac_cv_prog_STRIP+:} false; then : 2457dbe7da2eSmrg $as_echo_n "(cached) " >&6 2458a8fdb4bcSmrgelse 2459dbe7da2eSmrg if test -n "$STRIP"; then 2460dbe7da2eSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2461dbe7da2eSmrgelse 2462dbe7da2eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2463dbe7da2eSmrgfor as_dir in $PATH 2464a8fdb4bcSmrgdo 2465a8fdb4bcSmrg IFS=$as_save_IFS 2466a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 2467dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2468dbe7da2eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2469dbe7da2eSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2470dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2471dbe7da2eSmrg break 2 2472dbe7da2eSmrg fi 2473a8fdb4bcSmrgdone 2474dbe7da2eSmrg done 2475a8fdb4bcSmrgIFS=$as_save_IFS 2476a8fdb4bcSmrg 2477a8fdb4bcSmrgfi 2478a8fdb4bcSmrgfi 2479dbe7da2eSmrgSTRIP=$ac_cv_prog_STRIP 2480dbe7da2eSmrgif test -n "$STRIP"; then 2481dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2482dbe7da2eSmrg$as_echo "$STRIP" >&6; } 2483dbe7da2eSmrgelse 2484dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2485dbe7da2eSmrg$as_echo "no" >&6; } 2486dbe7da2eSmrgfi 2487a8fdb4bcSmrg 2488dbe7da2eSmrg 2489dbe7da2eSmrgfi 2490dbe7da2eSmrgif test -z "$ac_cv_prog_STRIP"; then 2491dbe7da2eSmrg ac_ct_STRIP=$STRIP 2492dbe7da2eSmrg # Extract the first word of "strip", so it can be a program name with args. 2493dbe7da2eSmrgset dummy strip; ac_word=$2 2494dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2495dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; } 249677683534Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2497dbe7da2eSmrg $as_echo_n "(cached) " >&6 2498dbe7da2eSmrgelse 2499dbe7da2eSmrg if test -n "$ac_ct_STRIP"; then 2500dbe7da2eSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2501dbe7da2eSmrgelse 2502dbe7da2eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2503dbe7da2eSmrgfor as_dir in $PATH 2504dbe7da2eSmrgdo 2505dbe7da2eSmrg IFS=$as_save_IFS 2506dbe7da2eSmrg test -z "$as_dir" && as_dir=. 2507dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2508dbe7da2eSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2509dbe7da2eSmrg ac_cv_prog_ac_ct_STRIP="strip" 2510dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2511dbe7da2eSmrg break 2 2512dbe7da2eSmrg fi 2513dbe7da2eSmrgdone 2514dbe7da2eSmrg done 2515dbe7da2eSmrgIFS=$as_save_IFS 2516dbe7da2eSmrg 2517dbe7da2eSmrgfi 2518dbe7da2eSmrgfi 2519dbe7da2eSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2520dbe7da2eSmrgif test -n "$ac_ct_STRIP"; then 2521dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2522dbe7da2eSmrg$as_echo "$ac_ct_STRIP" >&6; } 2523dbe7da2eSmrgelse 2524dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2525dbe7da2eSmrg$as_echo "no" >&6; } 2526dbe7da2eSmrgfi 2527dbe7da2eSmrg 2528dbe7da2eSmrg if test "x$ac_ct_STRIP" = x; then 2529dbe7da2eSmrg STRIP=":" 2530dbe7da2eSmrg else 2531dbe7da2eSmrg case $cross_compiling:$ac_tool_warned in 2532dbe7da2eSmrgyes:) 2533dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2534dbe7da2eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2535dbe7da2eSmrgac_tool_warned=yes ;; 2536dbe7da2eSmrgesac 2537dbe7da2eSmrg STRIP=$ac_ct_STRIP 2538dbe7da2eSmrg fi 2539dbe7da2eSmrgelse 2540dbe7da2eSmrg STRIP="$ac_cv_prog_STRIP" 2541dbe7da2eSmrgfi 2542dbe7da2eSmrg 2543dbe7da2eSmrgfi 2544dbe7da2eSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2545dbe7da2eSmrg 2546dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2547dbe7da2eSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2548dbe7da2eSmrgif test -z "$MKDIR_P"; then 254977683534Smrg if ${ac_cv_path_mkdir+:} false; then : 2550dbe7da2eSmrg $as_echo_n "(cached) " >&6 2551dbe7da2eSmrgelse 2552dbe7da2eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2553dbe7da2eSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2554dbe7da2eSmrgdo 2555dbe7da2eSmrg IFS=$as_save_IFS 2556dbe7da2eSmrg test -z "$as_dir" && as_dir=. 2557dbe7da2eSmrg for ac_prog in mkdir gmkdir; do 2558dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2559dbe7da2eSmrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2560dbe7da2eSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2561dbe7da2eSmrg 'mkdir (GNU coreutils) '* | \ 2562dbe7da2eSmrg 'mkdir (coreutils) '* | \ 2563dbe7da2eSmrg 'mkdir (fileutils) '4.1*) 2564dbe7da2eSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2565dbe7da2eSmrg break 3;; 2566dbe7da2eSmrg esac 2567dbe7da2eSmrg done 2568dbe7da2eSmrg done 2569dbe7da2eSmrg done 2570dbe7da2eSmrgIFS=$as_save_IFS 2571dbe7da2eSmrg 2572dbe7da2eSmrgfi 2573dbe7da2eSmrg 2574dbe7da2eSmrg test -d ./--version && rmdir ./--version 2575dbe7da2eSmrg if test "${ac_cv_path_mkdir+set}" = set; then 2576dbe7da2eSmrg MKDIR_P="$ac_cv_path_mkdir -p" 2577dbe7da2eSmrg else 2578dbe7da2eSmrg # As a last resort, use the slow shell script. Don't cache a 2579dbe7da2eSmrg # value for MKDIR_P within a source directory, because that will 2580dbe7da2eSmrg # break other packages using the cache if that directory is 2581dbe7da2eSmrg # removed, or if the value is a relative name. 2582dbe7da2eSmrg MKDIR_P="$ac_install_sh -d" 2583dbe7da2eSmrg fi 2584dbe7da2eSmrgfi 2585dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2586dbe7da2eSmrg$as_echo "$MKDIR_P" >&6; } 2587dbe7da2eSmrg 2588dbe7da2eSmrgmkdir_p="$MKDIR_P" 2589a8fdb4bcSmrgcase $mkdir_p in 2590a8fdb4bcSmrg [\\/$]* | ?:[\\/]*) ;; 2591a8fdb4bcSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2592a8fdb4bcSmrgesac 2593a8fdb4bcSmrg 2594a8fdb4bcSmrgfor ac_prog in gawk mawk nawk awk 2595a8fdb4bcSmrgdo 2596a8fdb4bcSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2597a8fdb4bcSmrgset dummy $ac_prog; ac_word=$2 2598dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2599dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; } 260077683534Smrgif ${ac_cv_prog_AWK+:} false; then : 2601dbe7da2eSmrg $as_echo_n "(cached) " >&6 2602a8fdb4bcSmrgelse 2603a8fdb4bcSmrg if test -n "$AWK"; then 2604a8fdb4bcSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2605a8fdb4bcSmrgelse 2606a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2607a8fdb4bcSmrgfor as_dir in $PATH 2608a8fdb4bcSmrgdo 2609a8fdb4bcSmrg IFS=$as_save_IFS 2610a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 2611dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2612a8fdb4bcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2613a8fdb4bcSmrg ac_cv_prog_AWK="$ac_prog" 2614dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2615a8fdb4bcSmrg break 2 2616a8fdb4bcSmrg fi 2617a8fdb4bcSmrgdone 2618dbe7da2eSmrg done 2619a8fdb4bcSmrgIFS=$as_save_IFS 2620a8fdb4bcSmrg 2621a8fdb4bcSmrgfi 2622a8fdb4bcSmrgfi 2623a8fdb4bcSmrgAWK=$ac_cv_prog_AWK 2624a8fdb4bcSmrgif test -n "$AWK"; then 2625dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2626dbe7da2eSmrg$as_echo "$AWK" >&6; } 2627a8fdb4bcSmrgelse 2628dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2629dbe7da2eSmrg$as_echo "no" >&6; } 2630a8fdb4bcSmrgfi 2631a8fdb4bcSmrg 2632a8fdb4bcSmrg 2633a8fdb4bcSmrg test -n "$AWK" && break 2634a8fdb4bcSmrgdone 2635a8fdb4bcSmrg 2636dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2637dbe7da2eSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2638dbe7da2eSmrgset x ${MAKE-make} 2639dbe7da2eSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 264077683534Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2641dbe7da2eSmrg $as_echo_n "(cached) " >&6 2642a8fdb4bcSmrgelse 2643a8fdb4bcSmrg cat >conftest.make <<\_ACEOF 2644a8fdb4bcSmrgSHELL = /bin/sh 2645a8fdb4bcSmrgall: 2646a8fdb4bcSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2647a8fdb4bcSmrg_ACEOF 264877683534Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2649a8fdb4bcSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2650a8fdb4bcSmrg *@@@%%%=?*=@@@%%%*) 2651a8fdb4bcSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2652a8fdb4bcSmrg *) 2653a8fdb4bcSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 2654a8fdb4bcSmrgesac 2655a8fdb4bcSmrgrm -f conftest.make 2656a8fdb4bcSmrgfi 2657a8fdb4bcSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2658dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2659dbe7da2eSmrg$as_echo "yes" >&6; } 2660a8fdb4bcSmrg SET_MAKE= 2661a8fdb4bcSmrgelse 2662dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2663dbe7da2eSmrg$as_echo "no" >&6; } 2664a8fdb4bcSmrg SET_MAKE="MAKE=${MAKE-make}" 2665a8fdb4bcSmrgfi 2666a8fdb4bcSmrg 2667a8fdb4bcSmrgrm -rf .tst 2>/dev/null 2668a8fdb4bcSmrgmkdir .tst 2>/dev/null 2669a8fdb4bcSmrgif test -d .tst; then 2670a8fdb4bcSmrg am__leading_dot=. 2671a8fdb4bcSmrgelse 2672a8fdb4bcSmrg am__leading_dot=_ 2673a8fdb4bcSmrgfi 2674a8fdb4bcSmrgrmdir .tst 2>/dev/null 2675a8fdb4bcSmrg 2676a8fdb4bcSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2677a8fdb4bcSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2678a8fdb4bcSmrg # is not polluted with repeated "-I." 2679a8fdb4bcSmrg am__isrc=' -I$(srcdir)' 2680a8fdb4bcSmrg # test to see if srcdir already configured 2681a8fdb4bcSmrg if test -f $srcdir/config.status; then 268277683534Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2683a8fdb4bcSmrg fi 2684a8fdb4bcSmrgfi 2685a8fdb4bcSmrg 2686a8fdb4bcSmrg# test whether we have cygpath 2687a8fdb4bcSmrgif test -z "$CYGPATH_W"; then 2688a8fdb4bcSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 2689a8fdb4bcSmrg CYGPATH_W='cygpath -w' 2690a8fdb4bcSmrg else 2691a8fdb4bcSmrg CYGPATH_W=echo 2692a8fdb4bcSmrg fi 2693a8fdb4bcSmrgfi 2694a8fdb4bcSmrg 2695a8fdb4bcSmrg 2696a8fdb4bcSmrg# Define the identity of the package. 2697a8fdb4bcSmrg PACKAGE='luit' 26984ed31819Smrg VERSION='1.1.1' 2699a8fdb4bcSmrg 2700a8fdb4bcSmrg 2701a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF 2702a8fdb4bcSmrg#define PACKAGE "$PACKAGE" 2703a8fdb4bcSmrg_ACEOF 2704a8fdb4bcSmrg 2705a8fdb4bcSmrg 2706a8fdb4bcSmrgcat >>confdefs.h <<_ACEOF 2707a8fdb4bcSmrg#define VERSION "$VERSION" 2708a8fdb4bcSmrg_ACEOF 2709a8fdb4bcSmrg 2710a8fdb4bcSmrg# Some tools Automake needs. 2711a8fdb4bcSmrg 2712a8fdb4bcSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2713a8fdb4bcSmrg 2714a8fdb4bcSmrg 2715a8fdb4bcSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2716a8fdb4bcSmrg 2717a8fdb4bcSmrg 2718a8fdb4bcSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2719a8fdb4bcSmrg 2720a8fdb4bcSmrg 2721a8fdb4bcSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2722a8fdb4bcSmrg 2723a8fdb4bcSmrg 2724a8fdb4bcSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2725a8fdb4bcSmrg 2726a8fdb4bcSmrg# We need awk for the "check" target. The system "awk" is bad on 2727a8fdb4bcSmrg# some platforms. 2728a8fdb4bcSmrg# Always define AMTAR for backward compatibility. 2729a8fdb4bcSmrg 2730a8fdb4bcSmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2731a8fdb4bcSmrg 2732a8fdb4bcSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2733a8fdb4bcSmrg 2734a8fdb4bcSmrg 2735a8fdb4bcSmrg 2736a8fdb4bcSmrg 2737a8fdb4bcSmrg 2738dbe7da2eSmrg 2739dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2740dbe7da2eSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2741a8fdb4bcSmrg # Check whether --enable-maintainer-mode was given. 2742dbe7da2eSmrgif test "${enable_maintainer_mode+set}" = set; then : 2743a8fdb4bcSmrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2744a8fdb4bcSmrgelse 2745a8fdb4bcSmrg USE_MAINTAINER_MODE=no 2746a8fdb4bcSmrgfi 2747a8fdb4bcSmrg 2748dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2749dbe7da2eSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2750a8fdb4bcSmrg if test $USE_MAINTAINER_MODE = yes; then 2751a8fdb4bcSmrg MAINTAINER_MODE_TRUE= 2752a8fdb4bcSmrg MAINTAINER_MODE_FALSE='#' 2753a8fdb4bcSmrgelse 2754a8fdb4bcSmrg MAINTAINER_MODE_TRUE='#' 2755a8fdb4bcSmrg MAINTAINER_MODE_FALSE= 2756a8fdb4bcSmrgfi 2757a8fdb4bcSmrg 2758a8fdb4bcSmrg MAINT=$MAINTAINER_MODE_TRUE 2759a8fdb4bcSmrg 2760a8fdb4bcSmrg 2761a8fdb4bcSmrg 276277683534Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2763dbe7da2eSmrg 2764dbe7da2eSmrg 2765dbe7da2eSmrg 2766dbe7da2eSmrg 2767dbe7da2eSmrg 2768dbe7da2eSmrg 2769dbe7da2eSmrg 2770dbe7da2eSmrg 2771dbe7da2eSmrg 2772dbe7da2eSmrg 2773dbe7da2eSmrg 2774dbe7da2eSmrgDEPDIR="${am__leading_dot}deps" 2775dbe7da2eSmrg 2776dbe7da2eSmrgac_config_commands="$ac_config_commands depfiles" 2777dbe7da2eSmrg 2778dbe7da2eSmrg 2779dbe7da2eSmrgam_make=${MAKE-make} 2780dbe7da2eSmrgcat > confinc << 'END' 2781dbe7da2eSmrgam__doit: 2782dbe7da2eSmrg @echo this is the am__doit target 2783dbe7da2eSmrg.PHONY: am__doit 2784dbe7da2eSmrgEND 2785dbe7da2eSmrg# If we don't find an include directive, just comment out the code. 2786dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2787dbe7da2eSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2788dbe7da2eSmrgam__include="#" 2789dbe7da2eSmrgam__quote= 2790dbe7da2eSmrg_am_result=none 2791dbe7da2eSmrg# First try GNU make style include. 2792dbe7da2eSmrgecho "include confinc" > confmf 2793dbe7da2eSmrg# Ignore all kinds of additional output from `make'. 2794dbe7da2eSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2795dbe7da2eSmrg*the\ am__doit\ target*) 2796dbe7da2eSmrg am__include=include 2797dbe7da2eSmrg am__quote= 2798dbe7da2eSmrg _am_result=GNU 2799dbe7da2eSmrg ;; 2800dbe7da2eSmrgesac 2801dbe7da2eSmrg# Now try BSD make style include. 2802dbe7da2eSmrgif test "$am__include" = "#"; then 2803dbe7da2eSmrg echo '.include "confinc"' > confmf 2804dbe7da2eSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 2805dbe7da2eSmrg *the\ am__doit\ target*) 2806dbe7da2eSmrg am__include=.include 2807dbe7da2eSmrg am__quote="\"" 2808dbe7da2eSmrg _am_result=BSD 2809dbe7da2eSmrg ;; 2810dbe7da2eSmrg esac 2811dbe7da2eSmrgfi 2812dbe7da2eSmrg 2813dbe7da2eSmrg 2814dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2815dbe7da2eSmrg$as_echo "$_am_result" >&6; } 2816dbe7da2eSmrgrm -f confinc confmf 2817dbe7da2eSmrg 2818dbe7da2eSmrg# Check whether --enable-dependency-tracking was given. 2819dbe7da2eSmrgif test "${enable_dependency_tracking+set}" = set; then : 2820dbe7da2eSmrg enableval=$enable_dependency_tracking; 2821dbe7da2eSmrgfi 2822dbe7da2eSmrg 2823dbe7da2eSmrgif test "x$enable_dependency_tracking" != xno; then 2824dbe7da2eSmrg am_depcomp="$ac_aux_dir/depcomp" 2825dbe7da2eSmrg AMDEPBACKSLASH='\' 2826dbe7da2eSmrgfi 2827dbe7da2eSmrg if test "x$enable_dependency_tracking" != xno; then 2828dbe7da2eSmrg AMDEP_TRUE= 2829dbe7da2eSmrg AMDEP_FALSE='#' 2830dbe7da2eSmrgelse 2831dbe7da2eSmrg AMDEP_TRUE='#' 2832dbe7da2eSmrg AMDEP_FALSE= 2833dbe7da2eSmrgfi 2834a8fdb4bcSmrg 2835a8fdb4bcSmrg 2836a8fdb4bcSmrgac_ext=c 2837a8fdb4bcSmrgac_cpp='$CPP $CPPFLAGS' 2838a8fdb4bcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2839a8fdb4bcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2840a8fdb4bcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2841a8fdb4bcSmrgif test -n "$ac_tool_prefix"; then 2842a8fdb4bcSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2843a8fdb4bcSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2844dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2845dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; } 284677683534Smrgif ${ac_cv_prog_CC+:} false; then : 2847dbe7da2eSmrg $as_echo_n "(cached) " >&6 2848a8fdb4bcSmrgelse 2849a8fdb4bcSmrg if test -n "$CC"; then 2850a8fdb4bcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2851a8fdb4bcSmrgelse 2852a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2853a8fdb4bcSmrgfor as_dir in $PATH 2854a8fdb4bcSmrgdo 2855a8fdb4bcSmrg IFS=$as_save_IFS 2856a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 2857dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2858a8fdb4bcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2859a8fdb4bcSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2860dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2861a8fdb4bcSmrg break 2 2862a8fdb4bcSmrg fi 2863a8fdb4bcSmrgdone 2864dbe7da2eSmrg done 2865a8fdb4bcSmrgIFS=$as_save_IFS 2866a8fdb4bcSmrg 2867a8fdb4bcSmrgfi 2868a8fdb4bcSmrgfi 2869a8fdb4bcSmrgCC=$ac_cv_prog_CC 2870a8fdb4bcSmrgif test -n "$CC"; then 2871dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2872dbe7da2eSmrg$as_echo "$CC" >&6; } 2873a8fdb4bcSmrgelse 2874dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2875dbe7da2eSmrg$as_echo "no" >&6; } 2876a8fdb4bcSmrgfi 2877a8fdb4bcSmrg 2878a8fdb4bcSmrg 2879a8fdb4bcSmrgfi 2880a8fdb4bcSmrgif test -z "$ac_cv_prog_CC"; then 2881a8fdb4bcSmrg ac_ct_CC=$CC 2882a8fdb4bcSmrg # Extract the first word of "gcc", so it can be a program name with args. 2883a8fdb4bcSmrgset dummy gcc; ac_word=$2 2884dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2885dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; } 288677683534Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2887dbe7da2eSmrg $as_echo_n "(cached) " >&6 2888a8fdb4bcSmrgelse 2889a8fdb4bcSmrg if test -n "$ac_ct_CC"; then 2890a8fdb4bcSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2891a8fdb4bcSmrgelse 2892a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893a8fdb4bcSmrgfor as_dir in $PATH 2894a8fdb4bcSmrgdo 2895a8fdb4bcSmrg IFS=$as_save_IFS 2896a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 2897dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2898a8fdb4bcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2899a8fdb4bcSmrg ac_cv_prog_ac_ct_CC="gcc" 2900dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2901a8fdb4bcSmrg break 2 2902a8fdb4bcSmrg fi 2903a8fdb4bcSmrgdone 2904dbe7da2eSmrg done 2905a8fdb4bcSmrgIFS=$as_save_IFS 2906a8fdb4bcSmrg 2907a8fdb4bcSmrgfi 2908a8fdb4bcSmrgfi 2909a8fdb4bcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2910a8fdb4bcSmrgif test -n "$ac_ct_CC"; then 2911dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2912dbe7da2eSmrg$as_echo "$ac_ct_CC" >&6; } 2913a8fdb4bcSmrgelse 2914dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2915dbe7da2eSmrg$as_echo "no" >&6; } 2916a8fdb4bcSmrgfi 2917a8fdb4bcSmrg 2918a8fdb4bcSmrg if test "x$ac_ct_CC" = x; then 2919a8fdb4bcSmrg CC="" 2920a8fdb4bcSmrg else 2921a8fdb4bcSmrg case $cross_compiling:$ac_tool_warned in 2922a8fdb4bcSmrgyes:) 2923dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2924dbe7da2eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2925a8fdb4bcSmrgac_tool_warned=yes ;; 2926a8fdb4bcSmrgesac 2927a8fdb4bcSmrg CC=$ac_ct_CC 2928a8fdb4bcSmrg fi 2929a8fdb4bcSmrgelse 2930a8fdb4bcSmrg CC="$ac_cv_prog_CC" 2931a8fdb4bcSmrgfi 2932a8fdb4bcSmrg 2933a8fdb4bcSmrgif test -z "$CC"; then 2934a8fdb4bcSmrg if test -n "$ac_tool_prefix"; then 2935a8fdb4bcSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2936a8fdb4bcSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2937dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2938dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; } 293977683534Smrgif ${ac_cv_prog_CC+:} false; then : 2940dbe7da2eSmrg $as_echo_n "(cached) " >&6 2941a8fdb4bcSmrgelse 2942a8fdb4bcSmrg if test -n "$CC"; then 2943a8fdb4bcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2944a8fdb4bcSmrgelse 2945a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2946a8fdb4bcSmrgfor as_dir in $PATH 2947a8fdb4bcSmrgdo 2948a8fdb4bcSmrg IFS=$as_save_IFS 2949a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 2950dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2951a8fdb4bcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2952a8fdb4bcSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2953dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2954a8fdb4bcSmrg break 2 2955a8fdb4bcSmrg fi 2956a8fdb4bcSmrgdone 2957dbe7da2eSmrg done 2958a8fdb4bcSmrgIFS=$as_save_IFS 2959a8fdb4bcSmrg 2960a8fdb4bcSmrgfi 2961a8fdb4bcSmrgfi 2962a8fdb4bcSmrgCC=$ac_cv_prog_CC 2963a8fdb4bcSmrgif test -n "$CC"; then 2964dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2965dbe7da2eSmrg$as_echo "$CC" >&6; } 2966a8fdb4bcSmrgelse 2967dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2968dbe7da2eSmrg$as_echo "no" >&6; } 2969a8fdb4bcSmrgfi 2970a8fdb4bcSmrg 2971a8fdb4bcSmrg 2972a8fdb4bcSmrg fi 2973a8fdb4bcSmrgfi 2974a8fdb4bcSmrgif test -z "$CC"; then 2975a8fdb4bcSmrg # Extract the first word of "cc", so it can be a program name with args. 2976a8fdb4bcSmrgset dummy cc; ac_word=$2 2977dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2978dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; } 297977683534Smrgif ${ac_cv_prog_CC+:} false; then : 2980dbe7da2eSmrg $as_echo_n "(cached) " >&6 2981a8fdb4bcSmrgelse 2982a8fdb4bcSmrg if test -n "$CC"; then 2983a8fdb4bcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2984a8fdb4bcSmrgelse 2985a8fdb4bcSmrg ac_prog_rejected=no 2986a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2987a8fdb4bcSmrgfor as_dir in $PATH 2988a8fdb4bcSmrgdo 2989a8fdb4bcSmrg IFS=$as_save_IFS 2990a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 2991dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2992a8fdb4bcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2993a8fdb4bcSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2994a8fdb4bcSmrg ac_prog_rejected=yes 2995a8fdb4bcSmrg continue 2996a8fdb4bcSmrg fi 2997a8fdb4bcSmrg ac_cv_prog_CC="cc" 2998dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2999a8fdb4bcSmrg break 2 3000a8fdb4bcSmrg fi 3001a8fdb4bcSmrgdone 3002dbe7da2eSmrg done 3003a8fdb4bcSmrgIFS=$as_save_IFS 3004a8fdb4bcSmrg 3005a8fdb4bcSmrgif test $ac_prog_rejected = yes; then 3006a8fdb4bcSmrg # We found a bogon in the path, so make sure we never use it. 3007a8fdb4bcSmrg set dummy $ac_cv_prog_CC 3008a8fdb4bcSmrg shift 3009a8fdb4bcSmrg if test $# != 0; then 3010a8fdb4bcSmrg # We chose a different compiler from the bogus one. 3011a8fdb4bcSmrg # However, it has the same basename, so the bogon will be chosen 3012a8fdb4bcSmrg # first if we set CC to just the basename; use the full file name. 3013a8fdb4bcSmrg shift 3014a8fdb4bcSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3015a8fdb4bcSmrg fi 3016a8fdb4bcSmrgfi 3017a8fdb4bcSmrgfi 3018a8fdb4bcSmrgfi 3019a8fdb4bcSmrgCC=$ac_cv_prog_CC 3020a8fdb4bcSmrgif test -n "$CC"; then 3021dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3022dbe7da2eSmrg$as_echo "$CC" >&6; } 3023a8fdb4bcSmrgelse 3024dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3025dbe7da2eSmrg$as_echo "no" >&6; } 3026a8fdb4bcSmrgfi 3027a8fdb4bcSmrg 3028a8fdb4bcSmrg 3029a8fdb4bcSmrgfi 3030a8fdb4bcSmrgif test -z "$CC"; then 3031a8fdb4bcSmrg if test -n "$ac_tool_prefix"; then 3032a8fdb4bcSmrg for ac_prog in cl.exe 3033a8fdb4bcSmrg do 3034a8fdb4bcSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3035a8fdb4bcSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3036dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3037dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; } 303877683534Smrgif ${ac_cv_prog_CC+:} false; then : 3039dbe7da2eSmrg $as_echo_n "(cached) " >&6 3040a8fdb4bcSmrgelse 3041a8fdb4bcSmrg if test -n "$CC"; then 3042a8fdb4bcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3043a8fdb4bcSmrgelse 3044a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3045a8fdb4bcSmrgfor as_dir in $PATH 3046a8fdb4bcSmrgdo 3047a8fdb4bcSmrg IFS=$as_save_IFS 3048a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 3049dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3050a8fdb4bcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3051a8fdb4bcSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3052dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3053a8fdb4bcSmrg break 2 3054a8fdb4bcSmrg fi 3055a8fdb4bcSmrgdone 3056dbe7da2eSmrg done 3057a8fdb4bcSmrgIFS=$as_save_IFS 3058a8fdb4bcSmrg 3059a8fdb4bcSmrgfi 3060a8fdb4bcSmrgfi 3061a8fdb4bcSmrgCC=$ac_cv_prog_CC 3062a8fdb4bcSmrgif test -n "$CC"; then 3063dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3064dbe7da2eSmrg$as_echo "$CC" >&6; } 3065a8fdb4bcSmrgelse 3066dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3067dbe7da2eSmrg$as_echo "no" >&6; } 3068a8fdb4bcSmrgfi 3069a8fdb4bcSmrg 3070a8fdb4bcSmrg 3071a8fdb4bcSmrg test -n "$CC" && break 3072a8fdb4bcSmrg done 3073a8fdb4bcSmrgfi 3074a8fdb4bcSmrgif test -z "$CC"; then 3075a8fdb4bcSmrg ac_ct_CC=$CC 3076a8fdb4bcSmrg for ac_prog in cl.exe 3077a8fdb4bcSmrgdo 3078a8fdb4bcSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3079a8fdb4bcSmrgset dummy $ac_prog; ac_word=$2 3080dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3081dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; } 308277683534Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 3083dbe7da2eSmrg $as_echo_n "(cached) " >&6 3084a8fdb4bcSmrgelse 3085a8fdb4bcSmrg if test -n "$ac_ct_CC"; then 3086a8fdb4bcSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3087a8fdb4bcSmrgelse 3088a8fdb4bcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3089a8fdb4bcSmrgfor as_dir in $PATH 3090a8fdb4bcSmrgdo 3091a8fdb4bcSmrg IFS=$as_save_IFS 3092a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 3093dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3094a8fdb4bcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3095a8fdb4bcSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 3096dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3097a8fdb4bcSmrg break 2 3098a8fdb4bcSmrg fi 3099a8fdb4bcSmrgdone 3100dbe7da2eSmrg done 3101a8fdb4bcSmrgIFS=$as_save_IFS 3102a8fdb4bcSmrg 3103a8fdb4bcSmrgfi 3104a8fdb4bcSmrgfi 3105a8fdb4bcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3106a8fdb4bcSmrgif test -n "$ac_ct_CC"; then 3107dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3108dbe7da2eSmrg$as_echo "$ac_ct_CC" >&6; } 3109a8fdb4bcSmrgelse 3110dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3111dbe7da2eSmrg$as_echo "no" >&6; } 3112a8fdb4bcSmrgfi 3113a8fdb4bcSmrg 3114a8fdb4bcSmrg 3115a8fdb4bcSmrg test -n "$ac_ct_CC" && break 3116a8fdb4bcSmrgdone 3117a8fdb4bcSmrg 3118a8fdb4bcSmrg if test "x$ac_ct_CC" = x; then 3119a8fdb4bcSmrg CC="" 3120a8fdb4bcSmrg else 3121a8fdb4bcSmrg case $cross_compiling:$ac_tool_warned in 3122a8fdb4bcSmrgyes:) 3123dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3124dbe7da2eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3125a8fdb4bcSmrgac_tool_warned=yes ;; 3126a8fdb4bcSmrgesac 3127a8fdb4bcSmrg CC=$ac_ct_CC 3128a8fdb4bcSmrg fi 3129a8fdb4bcSmrgfi 3130a8fdb4bcSmrg 3131a8fdb4bcSmrgfi 3132a8fdb4bcSmrg 3133a8fdb4bcSmrg 3134dbe7da2eSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3135dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 313677683534Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 313777683534SmrgSee \`config.log' for more details" "$LINENO" 5; } 3138a8fdb4bcSmrg 3139a8fdb4bcSmrg# Provide some information about the compiler. 3140dbe7da2eSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3141dbe7da2eSmrgset X $ac_compile 3142dbe7da2eSmrgac_compiler=$2 3143dbe7da2eSmrgfor ac_option in --version -v -V -qversion; do 3144dbe7da2eSmrg { { ac_try="$ac_compiler $ac_option >&5" 3145a8fdb4bcSmrgcase "(($ac_try" in 3146a8fdb4bcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3147a8fdb4bcSmrg *) ac_try_echo=$ac_try;; 3148a8fdb4bcSmrgesac 3149dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3150dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5 3151dbe7da2eSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3152a8fdb4bcSmrg ac_status=$? 3153dbe7da2eSmrg if test -s conftest.err; then 3154dbe7da2eSmrg sed '10a\ 3155dbe7da2eSmrg... rest of stderr output deleted ... 3156dbe7da2eSmrg 10q' conftest.err >conftest.er1 3157dbe7da2eSmrg cat conftest.er1 >&5 3158dbe7da2eSmrg fi 3159dbe7da2eSmrg rm -f conftest.er1 conftest.err 3160dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3161dbe7da2eSmrg test $ac_status = 0; } 3162dbe7da2eSmrgdone 3163a8fdb4bcSmrg 3164dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3165a8fdb4bcSmrg/* end confdefs.h. */ 3166a8fdb4bcSmrg 3167a8fdb4bcSmrgint 3168a8fdb4bcSmrgmain () 3169a8fdb4bcSmrg{ 3170a8fdb4bcSmrg 3171a8fdb4bcSmrg ; 3172a8fdb4bcSmrg return 0; 3173a8fdb4bcSmrg} 3174a8fdb4bcSmrg_ACEOF 3175a8fdb4bcSmrgac_clean_files_save=$ac_clean_files 3176dbe7da2eSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3177a8fdb4bcSmrg# Try to create an executable without -o first, disregard a.out. 3178a8fdb4bcSmrg# It will help us diagnose broken compilers, and finding out an intuition 3179a8fdb4bcSmrg# of exeext. 3180dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3181dbe7da2eSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 3182dbe7da2eSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3183dbe7da2eSmrg 3184dbe7da2eSmrg# The possible output files: 3185dbe7da2eSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3186dbe7da2eSmrg 3187a8fdb4bcSmrgac_rmfiles= 3188a8fdb4bcSmrgfor ac_file in $ac_files 3189a8fdb4bcSmrgdo 3190a8fdb4bcSmrg case $ac_file in 3191dbe7da2eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3192a8fdb4bcSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3193a8fdb4bcSmrg esac 3194a8fdb4bcSmrgdone 3195a8fdb4bcSmrgrm -f $ac_rmfiles 3196a8fdb4bcSmrg 3197dbe7da2eSmrgif { { ac_try="$ac_link_default" 3198a8fdb4bcSmrgcase "(($ac_try" in 3199a8fdb4bcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3200a8fdb4bcSmrg *) ac_try_echo=$ac_try;; 3201a8fdb4bcSmrgesac 3202dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3203dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5 3204a8fdb4bcSmrg (eval "$ac_link_default") 2>&5 3205a8fdb4bcSmrg ac_status=$? 3206dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3207dbe7da2eSmrg test $ac_status = 0; }; then : 3208a8fdb4bcSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3209a8fdb4bcSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3210a8fdb4bcSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3211a8fdb4bcSmrg# so that the user can short-circuit this test for compilers unknown to 3212a8fdb4bcSmrg# Autoconf. 3213a8fdb4bcSmrgfor ac_file in $ac_files '' 3214a8fdb4bcSmrgdo 3215a8fdb4bcSmrg test -f "$ac_file" || continue 3216a8fdb4bcSmrg case $ac_file in 3217dbe7da2eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3218a8fdb4bcSmrg ;; 3219a8fdb4bcSmrg [ab].out ) 3220a8fdb4bcSmrg # We found the default executable, but exeext='' is most 3221a8fdb4bcSmrg # certainly right. 3222a8fdb4bcSmrg break;; 3223a8fdb4bcSmrg *.* ) 3224dbe7da2eSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3225a8fdb4bcSmrg then :; else 3226a8fdb4bcSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3227a8fdb4bcSmrg fi 3228a8fdb4bcSmrg # We set ac_cv_exeext here because the later test for it is not 3229a8fdb4bcSmrg # safe: cross compilers may not add the suffix if given an `-o' 3230a8fdb4bcSmrg # argument, so we may need to know it at that point already. 3231a8fdb4bcSmrg # Even if this section looks crufty: it has the advantage of 3232a8fdb4bcSmrg # actually working. 3233a8fdb4bcSmrg break;; 3234a8fdb4bcSmrg * ) 3235a8fdb4bcSmrg break;; 3236a8fdb4bcSmrg esac 3237a8fdb4bcSmrgdone 3238a8fdb4bcSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3239a8fdb4bcSmrg 3240a8fdb4bcSmrgelse 3241a8fdb4bcSmrg ac_file='' 3242a8fdb4bcSmrgfi 3243dbe7da2eSmrgif test -z "$ac_file"; then : 3244dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3245dbe7da2eSmrg$as_echo "no" >&6; } 3246dbe7da2eSmrg$as_echo "$as_me: failed program was:" >&5 3247a8fdb4bcSmrgsed 's/^/| /' conftest.$ac_ext >&5 3248a8fdb4bcSmrg 3249dbe7da2eSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3250dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 325177683534Smrgas_fn_error 77 "C compiler cannot create executables 325277683534SmrgSee \`config.log' for more details" "$LINENO" 5; } 3253dbe7da2eSmrgelse 3254dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3255dbe7da2eSmrg$as_echo "yes" >&6; } 3256a8fdb4bcSmrgfi 3257dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3258dbe7da2eSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3259dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3260dbe7da2eSmrg$as_echo "$ac_file" >&6; } 3261a8fdb4bcSmrgac_exeext=$ac_cv_exeext 3262a8fdb4bcSmrg 3263dbe7da2eSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3264dbe7da2eSmrgac_clean_files=$ac_clean_files_save 3265dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3266dbe7da2eSmrg$as_echo_n "checking for suffix of executables... " >&6; } 3267dbe7da2eSmrgif { { ac_try="$ac_link" 3268dbe7da2eSmrgcase "(($ac_try" in 3269a8fdb4bcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3270a8fdb4bcSmrg *) ac_try_echo=$ac_try;; 3271a8fdb4bcSmrgesac 3272dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3273dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5 3274a8fdb4bcSmrg (eval "$ac_link") 2>&5 3275a8fdb4bcSmrg ac_status=$? 3276dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3277dbe7da2eSmrg test $ac_status = 0; }; then : 3278a8fdb4bcSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3279a8fdb4bcSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3280a8fdb4bcSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3281a8fdb4bcSmrg# `rm'. 3282a8fdb4bcSmrgfor ac_file in conftest.exe conftest conftest.*; do 3283a8fdb4bcSmrg test -f "$ac_file" || continue 3284a8fdb4bcSmrg case $ac_file in 3285dbe7da2eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3286a8fdb4bcSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3287a8fdb4bcSmrg break;; 3288a8fdb4bcSmrg * ) break;; 3289a8fdb4bcSmrg esac 3290a8fdb4bcSmrgdone 3291a8fdb4bcSmrgelse 3292dbe7da2eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3293dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 329477683534Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 329577683534SmrgSee \`config.log' for more details" "$LINENO" 5; } 3296a8fdb4bcSmrgfi 3297dbe7da2eSmrgrm -f conftest conftest$ac_cv_exeext 3298dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3299dbe7da2eSmrg$as_echo "$ac_cv_exeext" >&6; } 3300a8fdb4bcSmrg 3301a8fdb4bcSmrgrm -f conftest.$ac_ext 3302a8fdb4bcSmrgEXEEXT=$ac_cv_exeext 3303a8fdb4bcSmrgac_exeext=$EXEEXT 3304dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3305dbe7da2eSmrg/* end confdefs.h. */ 3306dbe7da2eSmrg#include <stdio.h> 3307dbe7da2eSmrgint 3308dbe7da2eSmrgmain () 3309dbe7da2eSmrg{ 3310dbe7da2eSmrgFILE *f = fopen ("conftest.out", "w"); 3311dbe7da2eSmrg return ferror (f) || fclose (f) != 0; 3312dbe7da2eSmrg 3313dbe7da2eSmrg ; 3314dbe7da2eSmrg return 0; 3315dbe7da2eSmrg} 3316a8fdb4bcSmrg_ACEOF 3317dbe7da2eSmrgac_clean_files="$ac_clean_files conftest.out" 3318dbe7da2eSmrg# Check that the compiler produces executables we can run. If not, either 3319dbe7da2eSmrg# the compiler is broken, or we cross compile. 3320dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3321dbe7da2eSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3322dbe7da2eSmrgif test "$cross_compiling" != yes; then 3323dbe7da2eSmrg { { ac_try="$ac_link" 3324dbe7da2eSmrgcase "(($ac_try" in 3325dbe7da2eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3326dbe7da2eSmrg *) ac_try_echo=$ac_try;; 3327dbe7da2eSmrgesac 3328dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3329dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5 3330dbe7da2eSmrg (eval "$ac_link") 2>&5 3331dbe7da2eSmrg ac_status=$? 3332dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3333dbe7da2eSmrg test $ac_status = 0; } 3334dbe7da2eSmrg if { ac_try='./conftest$ac_cv_exeext' 3335dbe7da2eSmrg { { case "(($ac_try" in 3336dbe7da2eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3337dbe7da2eSmrg *) ac_try_echo=$ac_try;; 3338dbe7da2eSmrgesac 3339dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3340dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5 3341dbe7da2eSmrg (eval "$ac_try") 2>&5 3342dbe7da2eSmrg ac_status=$? 3343dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3344dbe7da2eSmrg test $ac_status = 0; }; }; then 3345dbe7da2eSmrg cross_compiling=no 3346dbe7da2eSmrg else 3347dbe7da2eSmrg if test "$cross_compiling" = maybe; then 3348dbe7da2eSmrg cross_compiling=yes 3349dbe7da2eSmrg else 3350dbe7da2eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3351dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 335277683534Smrgas_fn_error $? "cannot run C compiled programs. 3353dbe7da2eSmrgIf you meant to cross compile, use \`--host'. 335477683534SmrgSee \`config.log' for more details" "$LINENO" 5; } 3355dbe7da2eSmrg fi 3356dbe7da2eSmrg fi 3357dbe7da2eSmrgfi 3358dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3359dbe7da2eSmrg$as_echo "$cross_compiling" >&6; } 3360dbe7da2eSmrg 3361dbe7da2eSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3362dbe7da2eSmrgac_clean_files=$ac_clean_files_save 3363dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3364dbe7da2eSmrg$as_echo_n "checking for suffix of object files... " >&6; } 336577683534Smrgif ${ac_cv_objext+:} false; then : 3366dbe7da2eSmrg $as_echo_n "(cached) " >&6 3367dbe7da2eSmrgelse 3368dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3369a8fdb4bcSmrg/* end confdefs.h. */ 3370a8fdb4bcSmrg 3371a8fdb4bcSmrgint 3372a8fdb4bcSmrgmain () 3373a8fdb4bcSmrg{ 3374a8fdb4bcSmrg 3375a8fdb4bcSmrg ; 3376a8fdb4bcSmrg return 0; 3377a8fdb4bcSmrg} 3378a8fdb4bcSmrg_ACEOF 3379a8fdb4bcSmrgrm -f conftest.o conftest.obj 3380dbe7da2eSmrgif { { ac_try="$ac_compile" 3381a8fdb4bcSmrgcase "(($ac_try" in 3382a8fdb4bcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3383a8fdb4bcSmrg *) ac_try_echo=$ac_try;; 3384a8fdb4bcSmrgesac 3385dbe7da2eSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3386dbe7da2eSmrg$as_echo "$ac_try_echo"; } >&5 3387a8fdb4bcSmrg (eval "$ac_compile") 2>&5 3388a8fdb4bcSmrg ac_status=$? 3389dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3390dbe7da2eSmrg test $ac_status = 0; }; then : 3391a8fdb4bcSmrg for ac_file in conftest.o conftest.obj conftest.*; do 3392a8fdb4bcSmrg test -f "$ac_file" || continue; 3393a8fdb4bcSmrg case $ac_file in 3394dbe7da2eSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3395a8fdb4bcSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3396a8fdb4bcSmrg break;; 3397a8fdb4bcSmrg esac 3398a8fdb4bcSmrgdone 3399a8fdb4bcSmrgelse 3400dbe7da2eSmrg $as_echo "$as_me: failed program was:" >&5 3401a8fdb4bcSmrgsed 's/^/| /' conftest.$ac_ext >&5 3402a8fdb4bcSmrg 3403dbe7da2eSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3404dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 340577683534Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 340677683534SmrgSee \`config.log' for more details" "$LINENO" 5; } 3407a8fdb4bcSmrgfi 3408a8fdb4bcSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3409a8fdb4bcSmrgfi 3410dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3411dbe7da2eSmrg$as_echo "$ac_cv_objext" >&6; } 3412a8fdb4bcSmrgOBJEXT=$ac_cv_objext 3413a8fdb4bcSmrgac_objext=$OBJEXT 3414dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3415dbe7da2eSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 341677683534Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 3417dbe7da2eSmrg $as_echo_n "(cached) " >&6 3418a8fdb4bcSmrgelse 3419dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3420a8fdb4bcSmrg/* end confdefs.h. */ 3421a8fdb4bcSmrg 3422a8fdb4bcSmrgint 3423a8fdb4bcSmrgmain () 3424a8fdb4bcSmrg{ 3425a8fdb4bcSmrg#ifndef __GNUC__ 3426a8fdb4bcSmrg choke me 3427a8fdb4bcSmrg#endif 3428a8fdb4bcSmrg 3429a8fdb4bcSmrg ; 3430a8fdb4bcSmrg return 0; 3431a8fdb4bcSmrg} 3432a8fdb4bcSmrg_ACEOF 3433dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then : 3434a8fdb4bcSmrg ac_compiler_gnu=yes 3435a8fdb4bcSmrgelse 3436dbe7da2eSmrg ac_compiler_gnu=no 3437a8fdb4bcSmrgfi 3438a8fdb4bcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3439a8fdb4bcSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3440a8fdb4bcSmrg 3441a8fdb4bcSmrgfi 3442dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3443dbe7da2eSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3444dbe7da2eSmrgif test $ac_compiler_gnu = yes; then 3445dbe7da2eSmrg GCC=yes 3446dbe7da2eSmrgelse 3447dbe7da2eSmrg GCC= 3448dbe7da2eSmrgfi 3449a8fdb4bcSmrgac_test_CFLAGS=${CFLAGS+set} 3450a8fdb4bcSmrgac_save_CFLAGS=$CFLAGS 3451dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3452dbe7da2eSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 345377683534Smrgif ${ac_cv_prog_cc_g+:} false; then : 3454dbe7da2eSmrg $as_echo_n "(cached) " >&6 3455a8fdb4bcSmrgelse 3456a8fdb4bcSmrg ac_save_c_werror_flag=$ac_c_werror_flag 3457a8fdb4bcSmrg ac_c_werror_flag=yes 3458a8fdb4bcSmrg ac_cv_prog_cc_g=no 3459a8fdb4bcSmrg CFLAGS="-g" 3460dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3461a8fdb4bcSmrg/* end confdefs.h. */ 3462a8fdb4bcSmrg 3463a8fdb4bcSmrgint 3464a8fdb4bcSmrgmain () 3465a8fdb4bcSmrg{ 3466a8fdb4bcSmrg 3467a8fdb4bcSmrg ; 3468a8fdb4bcSmrg return 0; 3469a8fdb4bcSmrg} 3470a8fdb4bcSmrg_ACEOF 3471dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then : 3472a8fdb4bcSmrg ac_cv_prog_cc_g=yes 3473a8fdb4bcSmrgelse 3474dbe7da2eSmrg CFLAGS="" 3475dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3476a8fdb4bcSmrg/* end confdefs.h. */ 3477a8fdb4bcSmrg 3478a8fdb4bcSmrgint 3479a8fdb4bcSmrgmain () 3480a8fdb4bcSmrg{ 3481a8fdb4bcSmrg 3482a8fdb4bcSmrg ; 3483a8fdb4bcSmrg return 0; 3484a8fdb4bcSmrg} 3485a8fdb4bcSmrg_ACEOF 3486dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then : 3487a8fdb4bcSmrg 3488dbe7da2eSmrgelse 3489dbe7da2eSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3490a8fdb4bcSmrg CFLAGS="-g" 3491dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3492a8fdb4bcSmrg/* end confdefs.h. */ 3493a8fdb4bcSmrg 3494a8fdb4bcSmrgint 3495a8fdb4bcSmrgmain () 3496a8fdb4bcSmrg{ 3497a8fdb4bcSmrg 3498a8fdb4bcSmrg ; 3499a8fdb4bcSmrg return 0; 3500a8fdb4bcSmrg} 3501a8fdb4bcSmrg_ACEOF 3502dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then : 3503a8fdb4bcSmrg ac_cv_prog_cc_g=yes 3504a8fdb4bcSmrgfi 3505a8fdb4bcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3506a8fdb4bcSmrgfi 3507a8fdb4bcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3508a8fdb4bcSmrgfi 3509a8fdb4bcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3510a8fdb4bcSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3511a8fdb4bcSmrgfi 3512dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3513dbe7da2eSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3514a8fdb4bcSmrgif test "$ac_test_CFLAGS" = set; then 3515a8fdb4bcSmrg CFLAGS=$ac_save_CFLAGS 3516a8fdb4bcSmrgelif test $ac_cv_prog_cc_g = yes; then 3517a8fdb4bcSmrg if test "$GCC" = yes; then 3518a8fdb4bcSmrg CFLAGS="-g -O2" 3519a8fdb4bcSmrg else 3520a8fdb4bcSmrg CFLAGS="-g" 3521a8fdb4bcSmrg fi 3522a8fdb4bcSmrgelse 3523a8fdb4bcSmrg if test "$GCC" = yes; then 3524a8fdb4bcSmrg CFLAGS="-O2" 3525a8fdb4bcSmrg else 3526a8fdb4bcSmrg CFLAGS= 3527a8fdb4bcSmrg fi 3528a8fdb4bcSmrgfi 3529dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3530dbe7da2eSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 353177683534Smrgif ${ac_cv_prog_cc_c89+:} false; then : 3532dbe7da2eSmrg $as_echo_n "(cached) " >&6 3533a8fdb4bcSmrgelse 3534a8fdb4bcSmrg ac_cv_prog_cc_c89=no 3535a8fdb4bcSmrgac_save_CC=$CC 3536dbe7da2eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3537a8fdb4bcSmrg/* end confdefs.h. */ 3538a8fdb4bcSmrg#include <stdarg.h> 3539a8fdb4bcSmrg#include <stdio.h> 3540a8fdb4bcSmrg#include <sys/types.h> 3541a8fdb4bcSmrg#include <sys/stat.h> 3542a8fdb4bcSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3543a8fdb4bcSmrgstruct buf { int x; }; 3544a8fdb4bcSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3545a8fdb4bcSmrgstatic char *e (p, i) 3546a8fdb4bcSmrg char **p; 3547a8fdb4bcSmrg int i; 3548a8fdb4bcSmrg{ 3549a8fdb4bcSmrg return p[i]; 3550a8fdb4bcSmrg} 3551a8fdb4bcSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3552a8fdb4bcSmrg{ 3553a8fdb4bcSmrg char *s; 3554a8fdb4bcSmrg va_list v; 3555a8fdb4bcSmrg va_start (v,p); 3556a8fdb4bcSmrg s = g (p, va_arg (v,int)); 3557a8fdb4bcSmrg va_end (v); 3558a8fdb4bcSmrg return s; 3559a8fdb4bcSmrg} 3560a8fdb4bcSmrg 3561a8fdb4bcSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3562a8fdb4bcSmrg function prototypes and stuff, but not '\xHH' hex character constants. 3563a8fdb4bcSmrg These don't provoke an error unfortunately, instead are silently treated 3564a8fdb4bcSmrg as 'x'. The following induces an error, until -std is added to get 3565a8fdb4bcSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3566a8fdb4bcSmrg array size at least. It's necessary to write '\x00'==0 to get something 3567a8fdb4bcSmrg that's true only with -std. */ 3568a8fdb4bcSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3569a8fdb4bcSmrg 3570a8fdb4bcSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3571a8fdb4bcSmrg inside strings and character constants. */ 3572a8fdb4bcSmrg#define FOO(x) 'x' 3573a8fdb4bcSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3574a8fdb4bcSmrg 3575a8fdb4bcSmrgint test (int i, double x); 3576a8fdb4bcSmrgstruct s1 {int (*f) (int a);}; 3577a8fdb4bcSmrgstruct s2 {int (*f) (double a);}; 3578a8fdb4bcSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3579a8fdb4bcSmrgint argc; 3580a8fdb4bcSmrgchar **argv; 3581a8fdb4bcSmrgint 3582a8fdb4bcSmrgmain () 3583a8fdb4bcSmrg{ 3584a8fdb4bcSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3585a8fdb4bcSmrg ; 3586a8fdb4bcSmrg return 0; 3587a8fdb4bcSmrg} 3588a8fdb4bcSmrg_ACEOF 3589a8fdb4bcSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3590a8fdb4bcSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3591a8fdb4bcSmrgdo 3592a8fdb4bcSmrg CC="$ac_save_CC $ac_arg" 3593dbe7da2eSmrg if ac_fn_c_try_compile "$LINENO"; then : 3594a8fdb4bcSmrg ac_cv_prog_cc_c89=$ac_arg 3595a8fdb4bcSmrgfi 3596a8fdb4bcSmrgrm -f core conftest.err conftest.$ac_objext 3597a8fdb4bcSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3598a8fdb4bcSmrgdone 3599a8fdb4bcSmrgrm -f conftest.$ac_ext 3600a8fdb4bcSmrgCC=$ac_save_CC 3601a8fdb4bcSmrg 3602a8fdb4bcSmrgfi 3603a8fdb4bcSmrg# AC_CACHE_VAL 3604a8fdb4bcSmrgcase "x$ac_cv_prog_cc_c89" in 3605a8fdb4bcSmrg x) 3606dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3607dbe7da2eSmrg$as_echo "none needed" >&6; } ;; 3608a8fdb4bcSmrg xno) 3609dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3610dbe7da2eSmrg$as_echo "unsupported" >&6; } ;; 3611a8fdb4bcSmrg *) 3612a8fdb4bcSmrg CC="$CC $ac_cv_prog_cc_c89" 3613dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3614dbe7da2eSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3615a8fdb4bcSmrgesac 3616dbe7da2eSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3617a8fdb4bcSmrg 3618dbe7da2eSmrgfi 3619a8fdb4bcSmrg 3620a8fdb4bcSmrgac_ext=c 3621a8fdb4bcSmrgac_cpp='$CPP $CPPFLAGS' 3622a8fdb4bcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3623a8fdb4bcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3624a8fdb4bcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3625a8fdb4bcSmrg 3626a8fdb4bcSmrgdepcc="$CC" am_compiler_list= 3627a8fdb4bcSmrg 3628dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3629dbe7da2eSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 363077683534Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3631dbe7da2eSmrg $as_echo_n "(cached) " >&6 3632a8fdb4bcSmrgelse 3633a8fdb4bcSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3634a8fdb4bcSmrg # We make a subdir and do the tests there. Otherwise we can end up 3635a8fdb4bcSmrg # making bogus files that we don't know about and never remove. For 3636a8fdb4bcSmrg # instance it was reported that on HP-UX the gcc test will end up 3637a8fdb4bcSmrg # making a dummy file named `D' -- because `-MD' means `put the output 3638a8fdb4bcSmrg # in D'. 3639a8fdb4bcSmrg mkdir conftest.dir 3640a8fdb4bcSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 3641a8fdb4bcSmrg # using a relative directory. 3642a8fdb4bcSmrg cp "$am_depcomp" conftest.dir 3643a8fdb4bcSmrg cd conftest.dir 3644a8fdb4bcSmrg # We will build objects and dependencies in a subdirectory because 3645a8fdb4bcSmrg # it helps to detect inapplicable dependency modes. For instance 3646a8fdb4bcSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 3647a8fdb4bcSmrg # side effect of compilation, but ICC will put the dependencies in 3648a8fdb4bcSmrg # the current directory while Tru64 will put them in the object 3649a8fdb4bcSmrg # directory. 3650a8fdb4bcSmrg mkdir sub 3651a8fdb4bcSmrg 3652a8fdb4bcSmrg am_cv_CC_dependencies_compiler_type=none 3653a8fdb4bcSmrg if test "$am_compiler_list" = ""; then 3654a8fdb4bcSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3655a8fdb4bcSmrg fi 3656dbe7da2eSmrg am__universal=false 3657dbe7da2eSmrg case " $depcc " in #( 3658dbe7da2eSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3659dbe7da2eSmrg esac 3660dbe7da2eSmrg 3661a8fdb4bcSmrg for depmode in $am_compiler_list; do 3662a8fdb4bcSmrg # Setup a source with many dependencies, because some compilers 3663a8fdb4bcSmrg # like to wrap large dependency lists on column 80 (with \), and 3664a8fdb4bcSmrg # we should not choose a depcomp mode which is confused by this. 3665a8fdb4bcSmrg # 3666a8fdb4bcSmrg # We need to recreate these files for each test, as the compiler may 3667a8fdb4bcSmrg # overwrite some of them when testing with obscure command lines. 3668a8fdb4bcSmrg # This happens at least with the AIX C compiler. 3669a8fdb4bcSmrg : > sub/conftest.c 3670a8fdb4bcSmrg for i in 1 2 3 4 5 6; do 3671a8fdb4bcSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 3672a8fdb4bcSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3673a8fdb4bcSmrg # Solaris 8's {/usr,}/bin/sh. 3674a8fdb4bcSmrg touch sub/conftst$i.h 3675a8fdb4bcSmrg done 3676a8fdb4bcSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3677a8fdb4bcSmrg 3678dbe7da2eSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3679dbe7da2eSmrg # mode. It turns out that the SunPro C++ compiler does not properly 3680dbe7da2eSmrg # handle `-M -o', and we need to detect this. Also, some Intel 3681dbe7da2eSmrg # versions had trouble with output in subdirs 3682dbe7da2eSmrg am__obj=sub/conftest.${OBJEXT-o} 3683dbe7da2eSmrg am__minus_obj="-o $am__obj" 3684a8fdb4bcSmrg case $depmode in 3685dbe7da2eSmrg gcc) 3686dbe7da2eSmrg # This depmode causes a compiler race in universal mode. 3687dbe7da2eSmrg test "$am__universal" = false || continue 3688dbe7da2eSmrg ;; 3689a8fdb4bcSmrg nosideeffect) 3690a8fdb4bcSmrg # after this tag, mechanisms are not by side-effect, so they'll 3691a8fdb4bcSmrg # only be used when explicitly requested 3692a8fdb4bcSmrg if test "x$enable_dependency_tracking" = xyes; then 3693a8fdb4bcSmrg continue 3694a8fdb4bcSmrg else 3695a8fdb4bcSmrg break 3696a8fdb4bcSmrg fi 3697a8fdb4bcSmrg ;; 3698dbe7da2eSmrg msvisualcpp | msvcmsys) 3699dbe7da2eSmrg # This compiler won't grok `-c -o', but also, the minuso test has 3700dbe7da2eSmrg # not run yet. These depmodes are late enough in the game, and 3701dbe7da2eSmrg # so weak that their functioning should not be impacted. 3702dbe7da2eSmrg am__obj=conftest.${OBJEXT-o} 3703dbe7da2eSmrg am__minus_obj= 3704dbe7da2eSmrg ;; 3705a8fdb4bcSmrg none) break ;; 3706a8fdb4bcSmrg esac 3707a8fdb4bcSmrg if depmode=$depmode \ 3708dbe7da2eSmrg source=sub/conftest.c object=$am__obj \ 3709a8fdb4bcSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3710dbe7da2eSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3711a8fdb4bcSmrg >/dev/null 2>conftest.err && 3712a8fdb4bcSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3713a8fdb4bcSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3714dbe7da2eSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3715a8fdb4bcSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3716a8fdb4bcSmrg # icc doesn't choke on unknown options, it will just issue warnings 3717a8fdb4bcSmrg # or remarks (even with -Werror). So we grep stderr for any message 3718a8fdb4bcSmrg # that says an option was ignored or not supported. 3719a8fdb4bcSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3720a8fdb4bcSmrg # icc: Command line warning: ignoring option '-M'; no argument required 3721a8fdb4bcSmrg # The diagnosis changed in icc 8.0: 3722a8fdb4bcSmrg # icc: Command line remark: option '-MP' not supported 3723a8fdb4bcSmrg if (grep 'ignoring option' conftest.err || 3724a8fdb4bcSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3725a8fdb4bcSmrg am_cv_CC_dependencies_compiler_type=$depmode 3726a8fdb4bcSmrg break 3727a8fdb4bcSmrg fi 3728a8fdb4bcSmrg fi 3729a8fdb4bcSmrg done 3730a8fdb4bcSmrg 3731a8fdb4bcSmrg cd .. 3732a8fdb4bcSmrg rm -rf conftest.dir 3733a8fdb4bcSmrgelse 3734a8fdb4bcSmrg am_cv_CC_dependencies_compiler_type=none 3735a8fdb4bcSmrgfi 3736a8fdb4bcSmrg 3737a8fdb4bcSmrgfi 3738dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3739dbe7da2eSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3740a8fdb4bcSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3741a8fdb4bcSmrg 3742a8fdb4bcSmrg if 3743a8fdb4bcSmrg test "x$enable_dependency_tracking" != xno \ 3744a8fdb4bcSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3745a8fdb4bcSmrg am__fastdepCC_TRUE= 3746a8fdb4bcSmrg am__fastdepCC_FALSE='#' 3747a8fdb4bcSmrgelse 3748a8fdb4bcSmrg am__fastdepCC_TRUE='#' 3749a8fdb4bcSmrg am__fastdepCC_FALSE= 3750a8fdb4bcSmrgfi 3751a8fdb4bcSmrg 3752a8fdb4bcSmrg 375377683534Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 375477683534Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 375577683534Smrgif ${ac_cv_prog_cc_c99+:} false; then : 375677683534Smrg $as_echo_n "(cached) " >&6 375777683534Smrgelse 375877683534Smrg ac_cv_prog_cc_c99=no 375977683534Smrgac_save_CC=$CC 376077683534Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 376177683534Smrg/* end confdefs.h. */ 376277683534Smrg#include <stdarg.h> 376377683534Smrg#include <stdbool.h> 376477683534Smrg#include <stdlib.h> 376577683534Smrg#include <wchar.h> 376677683534Smrg#include <stdio.h> 376777683534Smrg 376877683534Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 376977683534Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 377077683534Smrg#define showlist(...) puts (#__VA_ARGS__) 377177683534Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 377277683534Smrgstatic void 377377683534Smrgtest_varargs_macros (void) 377477683534Smrg{ 377577683534Smrg int x = 1234; 377677683534Smrg int y = 5678; 377777683534Smrg debug ("Flag"); 377877683534Smrg debug ("X = %d\n", x); 377977683534Smrg showlist (The first, second, and third items.); 378077683534Smrg report (x>y, "x is %d but y is %d", x, y); 378177683534Smrg} 378277683534Smrg 378377683534Smrg// Check long long types. 378477683534Smrg#define BIG64 18446744073709551615ull 378577683534Smrg#define BIG32 4294967295ul 378677683534Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 378777683534Smrg#if !BIG_OK 378877683534Smrg your preprocessor is broken; 378977683534Smrg#endif 379077683534Smrg#if BIG_OK 379177683534Smrg#else 379277683534Smrg your preprocessor is broken; 379377683534Smrg#endif 379477683534Smrgstatic long long int bignum = -9223372036854775807LL; 379577683534Smrgstatic unsigned long long int ubignum = BIG64; 379677683534Smrg 379777683534Smrgstruct incomplete_array 379877683534Smrg{ 379977683534Smrg int datasize; 380077683534Smrg double data[]; 380177683534Smrg}; 380277683534Smrg 380377683534Smrgstruct named_init { 380477683534Smrg int number; 380577683534Smrg const wchar_t *name; 380677683534Smrg double average; 380777683534Smrg}; 380877683534Smrg 380977683534Smrgtypedef const char *ccp; 381077683534Smrg 381177683534Smrgstatic inline int 381277683534Smrgtest_restrict (ccp restrict text) 381377683534Smrg{ 381477683534Smrg // See if C++-style comments work. 381577683534Smrg // Iterate through items via the restricted pointer. 381677683534Smrg // Also check for declarations in for loops. 381777683534Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 381877683534Smrg continue; 381977683534Smrg return 0; 382077683534Smrg} 382177683534Smrg 382277683534Smrg// Check varargs and va_copy. 382377683534Smrgstatic void 382477683534Smrgtest_varargs (const char *format, ...) 382577683534Smrg{ 382677683534Smrg va_list args; 382777683534Smrg va_start (args, format); 382877683534Smrg va_list args_copy; 382977683534Smrg va_copy (args_copy, args); 383077683534Smrg 383177683534Smrg const char *str; 383277683534Smrg int number; 383377683534Smrg float fnumber; 383477683534Smrg 383577683534Smrg while (*format) 383677683534Smrg { 383777683534Smrg switch (*format++) 383877683534Smrg { 383977683534Smrg case 's': // string 384077683534Smrg str = va_arg (args_copy, const char *); 384177683534Smrg break; 384277683534Smrg case 'd': // int 384377683534Smrg number = va_arg (args_copy, int); 384477683534Smrg break; 384577683534Smrg case 'f': // float 384677683534Smrg fnumber = va_arg (args_copy, double); 384777683534Smrg break; 384877683534Smrg default: 384977683534Smrg break; 385077683534Smrg } 385177683534Smrg } 385277683534Smrg va_end (args_copy); 385377683534Smrg va_end (args); 385477683534Smrg} 385577683534Smrg 385677683534Smrgint 385777683534Smrgmain () 385877683534Smrg{ 385977683534Smrg 386077683534Smrg // Check bool. 386177683534Smrg _Bool success = false; 386277683534Smrg 386377683534Smrg // Check restrict. 386477683534Smrg if (test_restrict ("String literal") == 0) 386577683534Smrg success = true; 386677683534Smrg char *restrict newvar = "Another string"; 386777683534Smrg 386877683534Smrg // Check varargs. 386977683534Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 387077683534Smrg test_varargs_macros (); 387177683534Smrg 387277683534Smrg // Check flexible array members. 387377683534Smrg struct incomplete_array *ia = 387477683534Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 387577683534Smrg ia->datasize = 10; 387677683534Smrg for (int i = 0; i < ia->datasize; ++i) 387777683534Smrg ia->data[i] = i * 1.234; 387877683534Smrg 387977683534Smrg // Check named initializers. 388077683534Smrg struct named_init ni = { 388177683534Smrg .number = 34, 388277683534Smrg .name = L"Test wide string", 388377683534Smrg .average = 543.34343, 388477683534Smrg }; 388577683534Smrg 388677683534Smrg ni.number = 58; 388777683534Smrg 388877683534Smrg int dynamic_array[ni.number]; 388977683534Smrg dynamic_array[ni.number - 1] = 543; 389077683534Smrg 389177683534Smrg // work around unused variable warnings 389277683534Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 389377683534Smrg || dynamic_array[ni.number - 1] != 543); 389477683534Smrg 389577683534Smrg ; 389677683534Smrg return 0; 389777683534Smrg} 389877683534Smrg_ACEOF 389977683534Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 390077683534Smrgdo 390177683534Smrg CC="$ac_save_CC $ac_arg" 390277683534Smrg if ac_fn_c_try_compile "$LINENO"; then : 390377683534Smrg ac_cv_prog_cc_c99=$ac_arg 390477683534Smrgfi 390577683534Smrgrm -f core conftest.err conftest.$ac_objext 390677683534Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 390777683534Smrgdone 390877683534Smrgrm -f conftest.$ac_ext 390977683534SmrgCC=$ac_save_CC 391077683534Smrg 391177683534Smrgfi 391277683534Smrg# AC_CACHE_VAL 391377683534Smrgcase "x$ac_cv_prog_cc_c99" in 391477683534Smrg x) 391577683534Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 391677683534Smrg$as_echo "none needed" >&6; } ;; 391777683534Smrg xno) 391877683534Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 391977683534Smrg$as_echo "unsupported" >&6; } ;; 392077683534Smrg *) 392177683534Smrg CC="$CC $ac_cv_prog_cc_c99" 392277683534Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 392377683534Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 392477683534Smrgesac 392577683534Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 392677683534Smrg 392777683534Smrgfi 392877683534Smrg 392977683534Smrg 3930dbe7da2eSmrg 3931dbe7da2eSmrgac_ext=c 3932dbe7da2eSmrgac_cpp='$CPP $CPPFLAGS' 3933dbe7da2eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3934dbe7da2eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3935dbe7da2eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3936dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3937dbe7da2eSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3938dbe7da2eSmrg# On Suns, sometimes $CPP names a directory. 3939dbe7da2eSmrgif test -n "$CPP" && test -d "$CPP"; then 3940dbe7da2eSmrg CPP= 3941dbe7da2eSmrgfi 3942dbe7da2eSmrgif test -z "$CPP"; then 394377683534Smrg if ${ac_cv_prog_CPP+:} false; then : 3944dbe7da2eSmrg $as_echo_n "(cached) " >&6 3945a8fdb4bcSmrgelse 3946dbe7da2eSmrg # Double quotes because CPP needs to be expanded 3947dbe7da2eSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3948dbe7da2eSmrg do 3949dbe7da2eSmrg ac_preproc_ok=false 3950dbe7da2eSmrgfor ac_c_preproc_warn_flag in '' yes 3951a8fdb4bcSmrgdo 3952dbe7da2eSmrg # Use a header file that comes with gcc, so configuring glibc 3953dbe7da2eSmrg # with a fresh cross-compiler works. 3954dbe7da2eSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3955dbe7da2eSmrg # <limits.h> exists even on freestanding compilers. 3956dbe7da2eSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 3957dbe7da2eSmrg # not just through cpp. "Syntax error" is here to catch this case. 3958dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3959dbe7da2eSmrg/* end confdefs.h. */ 3960dbe7da2eSmrg#ifdef __STDC__ 3961dbe7da2eSmrg# include <limits.h> 3962dbe7da2eSmrg#else 3963dbe7da2eSmrg# include <assert.h> 3964dbe7da2eSmrg#endif 3965dbe7da2eSmrg Syntax error 3966dbe7da2eSmrg_ACEOF 3967dbe7da2eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 3968a8fdb4bcSmrg 3969dbe7da2eSmrgelse 3970dbe7da2eSmrg # Broken: fails on valid input. 3971dbe7da2eSmrgcontinue 3972a8fdb4bcSmrgfi 397377683534Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3974a8fdb4bcSmrg 3975dbe7da2eSmrg # OK, works on sane cases. Now check whether nonexistent headers 3976dbe7da2eSmrg # can be detected and how. 3977dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3978dbe7da2eSmrg/* end confdefs.h. */ 3979dbe7da2eSmrg#include <ac_nonexistent.h> 3980dbe7da2eSmrg_ACEOF 3981dbe7da2eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 3982dbe7da2eSmrg # Broken: success on invalid input. 3983dbe7da2eSmrgcontinue 3984dbe7da2eSmrgelse 3985dbe7da2eSmrg # Passes both tests. 3986dbe7da2eSmrgac_preproc_ok=: 3987dbe7da2eSmrgbreak 3988dbe7da2eSmrgfi 398977683534Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3990a8fdb4bcSmrg 3991dbe7da2eSmrgdone 3992dbe7da2eSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 399377683534Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3994dbe7da2eSmrgif $ac_preproc_ok; then : 3995dbe7da2eSmrg break 3996dbe7da2eSmrgfi 3997a8fdb4bcSmrg 3998dbe7da2eSmrg done 3999dbe7da2eSmrg ac_cv_prog_CPP=$CPP 4000a8fdb4bcSmrg 4001dbe7da2eSmrgfi 4002dbe7da2eSmrg CPP=$ac_cv_prog_CPP 4003a8fdb4bcSmrgelse 4004dbe7da2eSmrg ac_cv_prog_CPP=$CPP 4005dbe7da2eSmrgfi 4006dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4007dbe7da2eSmrg$as_echo "$CPP" >&6; } 4008dbe7da2eSmrgac_preproc_ok=false 4009dbe7da2eSmrgfor ac_c_preproc_warn_flag in '' yes 4010dbe7da2eSmrgdo 4011dbe7da2eSmrg # Use a header file that comes with gcc, so configuring glibc 4012dbe7da2eSmrg # with a fresh cross-compiler works. 4013dbe7da2eSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4014dbe7da2eSmrg # <limits.h> exists even on freestanding compilers. 4015dbe7da2eSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 4016dbe7da2eSmrg # not just through cpp. "Syntax error" is here to catch this case. 4017dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4018dbe7da2eSmrg/* end confdefs.h. */ 4019dbe7da2eSmrg#ifdef __STDC__ 4020dbe7da2eSmrg# include <limits.h> 4021dbe7da2eSmrg#else 4022dbe7da2eSmrg# include <assert.h> 4023dbe7da2eSmrg#endif 4024dbe7da2eSmrg Syntax error 4025dbe7da2eSmrg_ACEOF 4026dbe7da2eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 4027a8fdb4bcSmrg 4028dbe7da2eSmrgelse 4029dbe7da2eSmrg # Broken: fails on valid input. 4030dbe7da2eSmrgcontinue 4031a8fdb4bcSmrgfi 403277683534Smrgrm -f conftest.err conftest.i conftest.$ac_ext 4033dbe7da2eSmrg 4034dbe7da2eSmrg # OK, works on sane cases. Now check whether nonexistent headers 4035dbe7da2eSmrg # can be detected and how. 4036dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4037dbe7da2eSmrg/* end confdefs.h. */ 4038dbe7da2eSmrg#include <ac_nonexistent.h> 4039dbe7da2eSmrg_ACEOF 4040dbe7da2eSmrgif ac_fn_c_try_cpp "$LINENO"; then : 4041dbe7da2eSmrg # Broken: success on invalid input. 4042dbe7da2eSmrgcontinue 4043dbe7da2eSmrgelse 4044dbe7da2eSmrg # Passes both tests. 4045dbe7da2eSmrgac_preproc_ok=: 4046dbe7da2eSmrgbreak 4047dbe7da2eSmrgfi 404877683534Smrgrm -f conftest.err conftest.i conftest.$ac_ext 4049a8fdb4bcSmrg 4050dbe7da2eSmrgdone 4051dbe7da2eSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 405277683534Smrgrm -f conftest.i conftest.err conftest.$ac_ext 4053dbe7da2eSmrgif $ac_preproc_ok; then : 4054a8fdb4bcSmrg 4055a8fdb4bcSmrgelse 4056dbe7da2eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4057dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 405877683534Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 405977683534SmrgSee \`config.log' for more details" "$LINENO" 5; } 4060dbe7da2eSmrgfi 4061dbe7da2eSmrg 4062dbe7da2eSmrgac_ext=c 4063dbe7da2eSmrgac_cpp='$CPP $CPPFLAGS' 4064dbe7da2eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4065dbe7da2eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4066dbe7da2eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4067dbe7da2eSmrg 4068dbe7da2eSmrg 4069dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4070dbe7da2eSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 407177683534Smrgif ${ac_cv_path_GREP+:} false; then : 4072dbe7da2eSmrg $as_echo_n "(cached) " >&6 4073a8fdb4bcSmrgelse 4074dbe7da2eSmrg if test -z "$GREP"; then 4075dbe7da2eSmrg ac_path_GREP_found=false 4076dbe7da2eSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4077dbe7da2eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4078dbe7da2eSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4079dbe7da2eSmrgdo 4080dbe7da2eSmrg IFS=$as_save_IFS 4081dbe7da2eSmrg test -z "$as_dir" && as_dir=. 4082dbe7da2eSmrg for ac_prog in grep ggrep; do 4083dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4084dbe7da2eSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4085dbe7da2eSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4086dbe7da2eSmrg# Check for GNU ac_path_GREP and select it if it is found. 4087dbe7da2eSmrg # Check for GNU $ac_path_GREP 4088dbe7da2eSmrgcase `"$ac_path_GREP" --version 2>&1` in 4089dbe7da2eSmrg*GNU*) 4090dbe7da2eSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4091dbe7da2eSmrg*) 4092dbe7da2eSmrg ac_count=0 4093dbe7da2eSmrg $as_echo_n 0123456789 >"conftest.in" 4094dbe7da2eSmrg while : 4095dbe7da2eSmrg do 4096dbe7da2eSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4097dbe7da2eSmrg mv "conftest.tmp" "conftest.in" 4098dbe7da2eSmrg cp "conftest.in" "conftest.nl" 4099dbe7da2eSmrg $as_echo 'GREP' >> "conftest.nl" 4100dbe7da2eSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4101dbe7da2eSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4102dbe7da2eSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4103dbe7da2eSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4104dbe7da2eSmrg # Best one so far, save it but keep looking for a better one 4105dbe7da2eSmrg ac_cv_path_GREP="$ac_path_GREP" 4106dbe7da2eSmrg ac_path_GREP_max=$ac_count 4107dbe7da2eSmrg fi 4108dbe7da2eSmrg # 10*(2^10) chars as input seems more than enough 4109dbe7da2eSmrg test $ac_count -gt 10 && break 4110dbe7da2eSmrg done 4111dbe7da2eSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4112dbe7da2eSmrgesac 4113dbe7da2eSmrg 4114dbe7da2eSmrg $ac_path_GREP_found && break 3 4115dbe7da2eSmrg done 4116dbe7da2eSmrg done 4117dbe7da2eSmrg done 4118dbe7da2eSmrgIFS=$as_save_IFS 4119dbe7da2eSmrg if test -z "$ac_cv_path_GREP"; then 412077683534Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4121dbe7da2eSmrg fi 4122dbe7da2eSmrgelse 4123dbe7da2eSmrg ac_cv_path_GREP=$GREP 4124a8fdb4bcSmrgfi 4125a8fdb4bcSmrg 4126a8fdb4bcSmrgfi 4127dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4128dbe7da2eSmrg$as_echo "$ac_cv_path_GREP" >&6; } 4129dbe7da2eSmrg GREP="$ac_cv_path_GREP" 4130dbe7da2eSmrg 4131dbe7da2eSmrg 4132dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4133dbe7da2eSmrg$as_echo_n "checking for egrep... " >&6; } 413477683534Smrgif ${ac_cv_path_EGREP+:} false; then : 4135dbe7da2eSmrg $as_echo_n "(cached) " >&6 4136dbe7da2eSmrgelse 4137dbe7da2eSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4138dbe7da2eSmrg then ac_cv_path_EGREP="$GREP -E" 4139dbe7da2eSmrg else 4140dbe7da2eSmrg if test -z "$EGREP"; then 4141dbe7da2eSmrg ac_path_EGREP_found=false 4142dbe7da2eSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4143dbe7da2eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4144dbe7da2eSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4145dbe7da2eSmrgdo 4146dbe7da2eSmrg IFS=$as_save_IFS 4147dbe7da2eSmrg test -z "$as_dir" && as_dir=. 4148dbe7da2eSmrg for ac_prog in egrep; do 4149dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4150dbe7da2eSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4151dbe7da2eSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4152dbe7da2eSmrg# Check for GNU ac_path_EGREP and select it if it is found. 4153dbe7da2eSmrg # Check for GNU $ac_path_EGREP 4154dbe7da2eSmrgcase `"$ac_path_EGREP" --version 2>&1` in 4155dbe7da2eSmrg*GNU*) 4156dbe7da2eSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4157dbe7da2eSmrg*) 4158dbe7da2eSmrg ac_count=0 4159dbe7da2eSmrg $as_echo_n 0123456789 >"conftest.in" 4160dbe7da2eSmrg while : 4161dbe7da2eSmrg do 4162dbe7da2eSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4163dbe7da2eSmrg mv "conftest.tmp" "conftest.in" 4164dbe7da2eSmrg cp "conftest.in" "conftest.nl" 4165dbe7da2eSmrg $as_echo 'EGREP' >> "conftest.nl" 4166dbe7da2eSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4167dbe7da2eSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4168dbe7da2eSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4169dbe7da2eSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4170dbe7da2eSmrg # Best one so far, save it but keep looking for a better one 4171dbe7da2eSmrg ac_cv_path_EGREP="$ac_path_EGREP" 4172dbe7da2eSmrg ac_path_EGREP_max=$ac_count 4173dbe7da2eSmrg fi 4174dbe7da2eSmrg # 10*(2^10) chars as input seems more than enough 4175dbe7da2eSmrg test $ac_count -gt 10 && break 4176dbe7da2eSmrg done 4177dbe7da2eSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4178a8fdb4bcSmrgesac 4179a8fdb4bcSmrg 4180dbe7da2eSmrg $ac_path_EGREP_found && break 3 4181dbe7da2eSmrg done 4182dbe7da2eSmrg done 4183dbe7da2eSmrg done 4184dbe7da2eSmrgIFS=$as_save_IFS 4185dbe7da2eSmrg if test -z "$ac_cv_path_EGREP"; then 418677683534Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4187dbe7da2eSmrg fi 4188dbe7da2eSmrgelse 4189dbe7da2eSmrg ac_cv_path_EGREP=$EGREP 4190dbe7da2eSmrgfi 4191dbe7da2eSmrg 4192dbe7da2eSmrg fi 4193dbe7da2eSmrgfi 4194dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4195dbe7da2eSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 4196dbe7da2eSmrg EGREP="$ac_cv_path_EGREP" 4197a8fdb4bcSmrg 4198a8fdb4bcSmrg 4199dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4200dbe7da2eSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 420177683534Smrgif ${ac_cv_header_stdc+:} false; then : 4202dbe7da2eSmrg $as_echo_n "(cached) " >&6 4203dbe7da2eSmrgelse 4204dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4205dbe7da2eSmrg/* end confdefs.h. */ 4206dbe7da2eSmrg#include <stdlib.h> 4207dbe7da2eSmrg#include <stdarg.h> 4208dbe7da2eSmrg#include <string.h> 4209dbe7da2eSmrg#include <float.h> 4210a8fdb4bcSmrg 4211dbe7da2eSmrgint 4212dbe7da2eSmrgmain () 4213dbe7da2eSmrg{ 4214a8fdb4bcSmrg 4215dbe7da2eSmrg ; 4216dbe7da2eSmrg return 0; 4217dbe7da2eSmrg} 4218dbe7da2eSmrg_ACEOF 4219dbe7da2eSmrgif ac_fn_c_try_compile "$LINENO"; then : 4220dbe7da2eSmrg ac_cv_header_stdc=yes 4221a8fdb4bcSmrgelse 4222dbe7da2eSmrg ac_cv_header_stdc=no 4223dbe7da2eSmrgfi 4224dbe7da2eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4225dbe7da2eSmrg 4226dbe7da2eSmrgif test $ac_cv_header_stdc = yes; then 4227dbe7da2eSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4228dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4229dbe7da2eSmrg/* end confdefs.h. */ 4230dbe7da2eSmrg#include <string.h> 4231dbe7da2eSmrg 4232a8fdb4bcSmrg_ACEOF 4233dbe7da2eSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4234dbe7da2eSmrg $EGREP "memchr" >/dev/null 2>&1; then : 4235dbe7da2eSmrg 4236dbe7da2eSmrgelse 4237dbe7da2eSmrg ac_cv_header_stdc=no 4238dbe7da2eSmrgfi 4239dbe7da2eSmrgrm -f conftest* 4240dbe7da2eSmrg 4241dbe7da2eSmrgfi 4242dbe7da2eSmrg 4243dbe7da2eSmrgif test $ac_cv_header_stdc = yes; then 4244dbe7da2eSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4245dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4246a8fdb4bcSmrg/* end confdefs.h. */ 4247dbe7da2eSmrg#include <stdlib.h> 4248a8fdb4bcSmrg 4249dbe7da2eSmrg_ACEOF 4250dbe7da2eSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4251dbe7da2eSmrg $EGREP "free" >/dev/null 2>&1; then : 4252dbe7da2eSmrg 4253dbe7da2eSmrgelse 4254dbe7da2eSmrg ac_cv_header_stdc=no 4255dbe7da2eSmrgfi 4256dbe7da2eSmrgrm -f conftest* 4257dbe7da2eSmrg 4258dbe7da2eSmrgfi 4259dbe7da2eSmrg 4260dbe7da2eSmrgif test $ac_cv_header_stdc = yes; then 4261dbe7da2eSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4262dbe7da2eSmrg if test "$cross_compiling" = yes; then : 4263dbe7da2eSmrg : 4264dbe7da2eSmrgelse 4265dbe7da2eSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4266dbe7da2eSmrg/* end confdefs.h. */ 4267dbe7da2eSmrg#include <ctype.h> 4268dbe7da2eSmrg#include <stdlib.h> 4269dbe7da2eSmrg#if ((' ' & 0x0FF) == 0x020) 4270dbe7da2eSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4271dbe7da2eSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4272dbe7da2eSmrg#else 4273dbe7da2eSmrg# define ISLOWER(c) \ 4274dbe7da2eSmrg (('a' <= (c) && (c) <= 'i') \ 4275dbe7da2eSmrg || ('j' <= (c) && (c) <= 'r') \ 4276dbe7da2eSmrg || ('s' <= (c) && (c) <= 'z')) 4277dbe7da2eSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4278a8fdb4bcSmrg#endif 4279dbe7da2eSmrg 4280dbe7da2eSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4281a8fdb4bcSmrgint 4282a8fdb4bcSmrgmain () 4283a8fdb4bcSmrg{ 4284dbe7da2eSmrg int i; 4285dbe7da2eSmrg for (i = 0; i < 256; i++) 4286dbe7da2eSmrg if (XOR (islower (i), ISLOWER (i)) 4287dbe7da2eSmrg || toupper (i) != TOUPPER (i)) 4288dbe7da2eSmrg return 2; 4289a8fdb4bcSmrg return 0; 4290a8fdb4bcSmrg} 4291a8fdb4bcSmrg_ACEOF 4292dbe7da2eSmrgif ac_fn_c_try_run "$LINENO"; then : 4293dbe7da2eSmrg 4294a8fdb4bcSmrgelse 4295dbe7da2eSmrg ac_cv_header_stdc=no 4296dbe7da2eSmrgfi 4297dbe7da2eSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4298dbe7da2eSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 4299dbe7da2eSmrgfi 4300a8fdb4bcSmrg 4301a8fdb4bcSmrgfi 4302dbe7da2eSmrgfi 4303dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4304dbe7da2eSmrg$as_echo "$ac_cv_header_stdc" >&6; } 4305dbe7da2eSmrgif test $ac_cv_header_stdc = yes; then 4306dbe7da2eSmrg 4307dbe7da2eSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4308a8fdb4bcSmrg 4309a8fdb4bcSmrgfi 4310dbe7da2eSmrg 4311dbe7da2eSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4312dbe7da2eSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4313dbe7da2eSmrg inttypes.h stdint.h unistd.h 4314dbe7da2eSmrgdo : 4315dbe7da2eSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4316dbe7da2eSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4317dbe7da2eSmrg" 431877683534Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4319a8fdb4bcSmrg cat >>confdefs.h <<_ACEOF 4320dbe7da2eSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4321a8fdb4bcSmrg_ACEOF 4322a8fdb4bcSmrg 4323a8fdb4bcSmrgfi 4324a8fdb4bcSmrg 4325dbe7da2eSmrgdone 4326a8fdb4bcSmrg 4327a8fdb4bcSmrg 432877683534Smrg 432977683534Smrg 43304ed31819Smrg 43314ed31819Smrg 43324ed31819Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 43334ed31819Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 43344ed31819Smrg CLANGCC="yes" 43354ed31819Smrgelse 43364ed31819Smrg CLANGCC="no" 43374ed31819Smrgfi 43384ed31819Smrg 43394ed31819Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 43404ed31819Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 43414ed31819Smrg INTELCC="yes" 43424ed31819Smrgelse 43434ed31819Smrg INTELCC="no" 43444ed31819Smrgfi 43454ed31819Smrg 43464ed31819Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 43474ed31819Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 43484ed31819Smrg SUNCC="yes" 43494ed31819Smrgelse 43504ed31819Smrg SUNCC="no" 43514ed31819Smrgfi 43524ed31819Smrg 43534ed31819Smrg 43544ed31819Smrg 43554ed31819Smrg 435677683534Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 435777683534Smrg if test -n "$ac_tool_prefix"; then 435877683534Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 435977683534Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 436077683534Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 436177683534Smrg$as_echo_n "checking for $ac_word... " >&6; } 436277683534Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4363dbe7da2eSmrg $as_echo_n "(cached) " >&6 4364a8fdb4bcSmrgelse 436577683534Smrg case $PKG_CONFIG in 436677683534Smrg [\\/]* | ?:[\\/]*) 436777683534Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 436877683534Smrg ;; 436977683534Smrg *) 437077683534Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 437177683534Smrgfor as_dir in $PATH 437277683534Smrgdo 437377683534Smrg IFS=$as_save_IFS 437477683534Smrg test -z "$as_dir" && as_dir=. 437577683534Smrg for ac_exec_ext in '' $ac_executable_extensions; do 437677683534Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 437777683534Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 437877683534Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 437977683534Smrg break 2 438077683534Smrg fi 438177683534Smrgdone 438277683534Smrg done 438377683534SmrgIFS=$as_save_IFS 4384a8fdb4bcSmrg 4385a8fdb4bcSmrg ;; 4386a8fdb4bcSmrgesac 4387a8fdb4bcSmrgfi 4388a8fdb4bcSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4389a8fdb4bcSmrgif test -n "$PKG_CONFIG"; then 4390dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4391dbe7da2eSmrg$as_echo "$PKG_CONFIG" >&6; } 4392a8fdb4bcSmrgelse 4393dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4394dbe7da2eSmrg$as_echo "no" >&6; } 4395a8fdb4bcSmrgfi 4396a8fdb4bcSmrg 4397a8fdb4bcSmrg 4398a8fdb4bcSmrgfi 4399a8fdb4bcSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4400a8fdb4bcSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4401a8fdb4bcSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 4402a8fdb4bcSmrgset dummy pkg-config; ac_word=$2 4403dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4404dbe7da2eSmrg$as_echo_n "checking for $ac_word... " >&6; } 440577683534Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4406dbe7da2eSmrg $as_echo_n "(cached) " >&6 4407a8fdb4bcSmrgelse 4408a8fdb4bcSmrg case $ac_pt_PKG_CONFIG in 4409a8fdb4bcSmrg [\\/]* | ?:[\\/]*) 4410a8fdb4bcSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4411a8fdb4bcSmrg ;; 4412a8fdb4bcSmrg *) 4413a8fdb4bcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4414a8fdb4bcSmrgfor as_dir in $PATH 4415a8fdb4bcSmrgdo 4416a8fdb4bcSmrg IFS=$as_save_IFS 4417a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 4418dbe7da2eSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4419a8fdb4bcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4420a8fdb4bcSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4421dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4422a8fdb4bcSmrg break 2 4423a8fdb4bcSmrg fi 4424a8fdb4bcSmrgdone 4425dbe7da2eSmrg done 4426dbe7da2eSmrgIFS=$as_save_IFS 4427dbe7da2eSmrg 4428dbe7da2eSmrg ;; 4429dbe7da2eSmrgesac 4430dbe7da2eSmrgfi 4431dbe7da2eSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4432dbe7da2eSmrgif test -n "$ac_pt_PKG_CONFIG"; then 4433dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4434dbe7da2eSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4435dbe7da2eSmrgelse 4436dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4437dbe7da2eSmrg$as_echo "no" >&6; } 4438dbe7da2eSmrgfi 4439dbe7da2eSmrg 4440dbe7da2eSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 4441dbe7da2eSmrg PKG_CONFIG="" 4442dbe7da2eSmrg else 4443dbe7da2eSmrg case $cross_compiling:$ac_tool_warned in 4444dbe7da2eSmrgyes:) 4445dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4446dbe7da2eSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4447dbe7da2eSmrgac_tool_warned=yes ;; 4448dbe7da2eSmrgesac 4449dbe7da2eSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4450dbe7da2eSmrg fi 4451dbe7da2eSmrgelse 4452dbe7da2eSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4453dbe7da2eSmrgfi 4454dbe7da2eSmrg 4455dbe7da2eSmrgfi 4456dbe7da2eSmrgif test -n "$PKG_CONFIG"; then 4457dbe7da2eSmrg _pkg_min_version=0.9.0 4458dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4459dbe7da2eSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4460dbe7da2eSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4461dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4462dbe7da2eSmrg$as_echo "yes" >&6; } 4463dbe7da2eSmrg else 4464dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4465dbe7da2eSmrg$as_echo "no" >&6; } 4466dbe7da2eSmrg PKG_CONFIG="" 4467dbe7da2eSmrg fi 4468dbe7da2eSmrg 4469dbe7da2eSmrgfi 4470dbe7da2eSmrg# Make sure we can run config.sub. 4471dbe7da2eSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 447277683534Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4473dbe7da2eSmrg 4474dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4475dbe7da2eSmrg$as_echo_n "checking build system type... " >&6; } 447677683534Smrgif ${ac_cv_build+:} false; then : 4477dbe7da2eSmrg $as_echo_n "(cached) " >&6 4478dbe7da2eSmrgelse 4479dbe7da2eSmrg ac_build_alias=$build_alias 4480dbe7da2eSmrgtest "x$ac_build_alias" = x && 4481dbe7da2eSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4482dbe7da2eSmrgtest "x$ac_build_alias" = x && 448377683534Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4484dbe7da2eSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 448577683534Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4486dbe7da2eSmrg 4487dbe7da2eSmrgfi 4488dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4489dbe7da2eSmrg$as_echo "$ac_cv_build" >&6; } 4490dbe7da2eSmrgcase $ac_cv_build in 4491dbe7da2eSmrg*-*-*) ;; 449277683534Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4493dbe7da2eSmrgesac 4494dbe7da2eSmrgbuild=$ac_cv_build 4495dbe7da2eSmrgac_save_IFS=$IFS; IFS='-' 4496dbe7da2eSmrgset x $ac_cv_build 4497dbe7da2eSmrgshift 4498dbe7da2eSmrgbuild_cpu=$1 4499dbe7da2eSmrgbuild_vendor=$2 4500dbe7da2eSmrgshift; shift 4501dbe7da2eSmrg# Remember, the first character of IFS is used to create $*, 4502dbe7da2eSmrg# except with old shells: 4503dbe7da2eSmrgbuild_os=$* 4504dbe7da2eSmrgIFS=$ac_save_IFS 4505dbe7da2eSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4506dbe7da2eSmrg 4507dbe7da2eSmrg 4508dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4509dbe7da2eSmrg$as_echo_n "checking host system type... " >&6; } 451077683534Smrgif ${ac_cv_host+:} false; then : 4511dbe7da2eSmrg $as_echo_n "(cached) " >&6 4512dbe7da2eSmrgelse 4513dbe7da2eSmrg if test "x$host_alias" = x; then 4514dbe7da2eSmrg ac_cv_host=$ac_cv_build 4515dbe7da2eSmrgelse 4516dbe7da2eSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 451777683534Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4518dbe7da2eSmrgfi 4519dbe7da2eSmrg 4520dbe7da2eSmrgfi 4521dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4522dbe7da2eSmrg$as_echo "$ac_cv_host" >&6; } 4523dbe7da2eSmrgcase $ac_cv_host in 4524dbe7da2eSmrg*-*-*) ;; 452577683534Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4526dbe7da2eSmrgesac 4527dbe7da2eSmrghost=$ac_cv_host 4528dbe7da2eSmrgac_save_IFS=$IFS; IFS='-' 4529dbe7da2eSmrgset x $ac_cv_host 4530dbe7da2eSmrgshift 4531dbe7da2eSmrghost_cpu=$1 4532dbe7da2eSmrghost_vendor=$2 4533dbe7da2eSmrgshift; shift 4534dbe7da2eSmrg# Remember, the first character of IFS is used to create $*, 4535dbe7da2eSmrg# except with old shells: 4536dbe7da2eSmrghost_os=$* 4537dbe7da2eSmrgIFS=$ac_save_IFS 4538dbe7da2eSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4539dbe7da2eSmrg 4540dbe7da2eSmrg 454177683534Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 454277683534Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 454377683534Smrgif ${ac_cv_path_SED+:} false; then : 454477683534Smrg $as_echo_n "(cached) " >&6 454577683534Smrgelse 454677683534Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 454777683534Smrg for ac_i in 1 2 3 4 5 6 7; do 454877683534Smrg ac_script="$ac_script$as_nl$ac_script" 454977683534Smrg done 455077683534Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 455177683534Smrg { ac_script=; unset ac_script;} 455277683534Smrg if test -z "$SED"; then 455377683534Smrg ac_path_SED_found=false 455477683534Smrg # Loop through the user's path and test for each of PROGNAME-LIST 455577683534Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 455677683534Smrgfor as_dir in $PATH 455777683534Smrgdo 455877683534Smrg IFS=$as_save_IFS 455977683534Smrg test -z "$as_dir" && as_dir=. 456077683534Smrg for ac_prog in sed gsed; do 456177683534Smrg for ac_exec_ext in '' $ac_executable_extensions; do 456277683534Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 456377683534Smrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 456477683534Smrg# Check for GNU ac_path_SED and select it if it is found. 456577683534Smrg # Check for GNU $ac_path_SED 456677683534Smrgcase `"$ac_path_SED" --version 2>&1` in 456777683534Smrg*GNU*) 456877683534Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 456977683534Smrg*) 457077683534Smrg ac_count=0 457177683534Smrg $as_echo_n 0123456789 >"conftest.in" 457277683534Smrg while : 457377683534Smrg do 457477683534Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 457577683534Smrg mv "conftest.tmp" "conftest.in" 457677683534Smrg cp "conftest.in" "conftest.nl" 457777683534Smrg $as_echo '' >> "conftest.nl" 457877683534Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 457977683534Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 458077683534Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 458177683534Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 458277683534Smrg # Best one so far, save it but keep looking for a better one 458377683534Smrg ac_cv_path_SED="$ac_path_SED" 458477683534Smrg ac_path_SED_max=$ac_count 458577683534Smrg fi 458677683534Smrg # 10*(2^10) chars as input seems more than enough 458777683534Smrg test $ac_count -gt 10 && break 458877683534Smrg done 458977683534Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 459077683534Smrgesac 459177683534Smrg 459277683534Smrg $ac_path_SED_found && break 3 459377683534Smrg done 459477683534Smrg done 459577683534Smrg done 459677683534SmrgIFS=$as_save_IFS 459777683534Smrg if test -z "$ac_cv_path_SED"; then 459877683534Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 459977683534Smrg fi 460077683534Smrgelse 460177683534Smrg ac_cv_path_SED=$SED 460277683534Smrgfi 460377683534Smrg 460477683534Smrgfi 460577683534Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 460677683534Smrg$as_echo "$ac_cv_path_SED" >&6; } 460777683534Smrg SED="$ac_cv_path_SED" 460877683534Smrg rm -f conftest.sed 460977683534Smrg 461077683534Smrg 4611dbe7da2eSmrg 4612dbe7da2eSmrg 4613dbe7da2eSmrg 4614dbe7da2eSmrg 46154ed31819Smrg# Check whether --enable-selective-werror was given. 46164ed31819Smrgif test "${enable_selective_werror+set}" = set; then : 46174ed31819Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 46184ed31819Smrgelse 46194ed31819Smrg SELECTIVE_WERROR=yes 4620dbe7da2eSmrgfi 4621dbe7da2eSmrg 4622dbe7da2eSmrg 4623dbe7da2eSmrg 4624dbe7da2eSmrg 4625dbe7da2eSmrg 46264ed31819Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 46274ed31819Smrgif test "x$SUNCC" = "xyes"; then 46284ed31819Smrg BASE_CFLAGS="-v" 4629dbe7da2eSmrgelse 46304ed31819Smrg BASE_CFLAGS="" 4631dbe7da2eSmrgfi 4632dbe7da2eSmrg 46334ed31819Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4634dbe7da2eSmrg 4635dbe7da2eSmrg 4636dbe7da2eSmrg 4637dbe7da2eSmrg 4638dbe7da2eSmrg 4639dbe7da2eSmrg 4640dbe7da2eSmrg 4641dbe7da2eSmrg 4642dbe7da2eSmrg 4643dbe7da2eSmrg 4644dbe7da2eSmrg 4645dbe7da2eSmrg 4646dbe7da2eSmrg 46474ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 4648dbe7da2eSmrg 46494ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 46504ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 46514ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 46524ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 46534ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 46544ed31819Smrg $as_echo_n "(cached) " >&6 46554ed31819Smrgelse 46564ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46574ed31819Smrg/* end confdefs.h. */ 46584ed31819Smrgint i; 46594ed31819Smrg_ACEOF 46604ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 46614ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 46624ed31819Smrgelse 46634ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 46644ed31819Smrgfi 46654ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46664ed31819Smrgfi 46674ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 46684ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 46694ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 46704ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 46714ed31819Smrgfi 4672dbe7da2eSmrg 46734ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 46744ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 46754ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 46764ed31819Smrg fi 46774ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 46784ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 46794ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 46804ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 46814ed31819Smrg $as_echo_n "(cached) " >&6 46824ed31819Smrgelse 46834ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46844ed31819Smrg/* end confdefs.h. */ 46854ed31819Smrgint i; 46864ed31819Smrg_ACEOF 46874ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 46884ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 46894ed31819Smrgelse 46904ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 46914ed31819Smrgfi 46924ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46934ed31819Smrgfi 46944ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 46954ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 46964ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 46974ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 46984ed31819Smrgfi 4699dbe7da2eSmrg 47004ed31819Smrgfound="no" 4701dbe7da2eSmrg 47024ed31819Smrg if test $found = "no" ; then 47034ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 47044ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47054ed31819Smrg fi 4706dbe7da2eSmrg 47074ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 47084ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 47094ed31819Smrg fi 471077683534Smrg 47114ed31819Smrg CFLAGS="$CFLAGS -Wall" 4712dbe7da2eSmrg 47134ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 47144ed31819Smrg$as_echo_n "checking if $CC supports-Wall... " >&6; } 47154ed31819Smrg cacheid=xorg_cv_cc_flag__Wall 47164ed31819Smrg if eval \${$cacheid+:} false; then : 47174ed31819Smrg $as_echo_n "(cached) " >&6 47184ed31819Smrgelse 47194ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47204ed31819Smrg/* end confdefs.h. */ 47214ed31819Smrgint i; 47224ed31819Smrgint 47234ed31819Smrgmain () 47244ed31819Smrg{ 4725dbe7da2eSmrg 47264ed31819Smrg ; 47274ed31819Smrg return 0; 47284ed31819Smrg} 47294ed31819Smrg_ACEOF 47304ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 47314ed31819Smrg eval $cacheid=yes 47324ed31819Smrgelse 47334ed31819Smrg eval $cacheid=no 4734dbe7da2eSmrgfi 47354ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 47364ed31819Smrg conftest$ac_exeext conftest.$ac_ext 4737dbe7da2eSmrgfi 4738dbe7da2eSmrg 4739dbe7da2eSmrg 47404ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4741dbe7da2eSmrg 47424ed31819Smrg eval supported=\$$cacheid 47434ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 47444ed31819Smrg$as_echo "$supported" >&6; } 47454ed31819Smrg if test "$supported" = "yes" ; then 47464ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 47474ed31819Smrg found="yes" 47484ed31819Smrg fi 47494ed31819Smrg fi 4750dbe7da2eSmrg 475177683534Smrg 475277683534Smrg 475377683534Smrg 475477683534Smrg 475577683534Smrg 475677683534Smrg 475777683534Smrg 475877683534Smrg 475977683534Smrg 476077683534Smrg 476177683534Smrg 476277683534Smrg 476377683534Smrg 476477683534Smrg 47654ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 47664ed31819Smrg 47674ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 47684ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47694ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 47704ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 47714ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 47724ed31819Smrg $as_echo_n "(cached) " >&6 47734ed31819Smrgelse 47744ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47754ed31819Smrg/* end confdefs.h. */ 47764ed31819Smrgint i; 47774ed31819Smrg_ACEOF 47784ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 47794ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 47804ed31819Smrgelse 47814ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 47824ed31819Smrgfi 47834ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47844ed31819Smrgfi 47854ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 47864ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 47874ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 47884ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 47894ed31819Smrgfi 47904ed31819Smrg 47914ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 47924ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 47934ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47944ed31819Smrg fi 47954ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 47964ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 47974ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 47984ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 47994ed31819Smrg $as_echo_n "(cached) " >&6 48004ed31819Smrgelse 48014ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48024ed31819Smrg/* end confdefs.h. */ 48034ed31819Smrgint i; 48044ed31819Smrg_ACEOF 48054ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 48064ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 48074ed31819Smrgelse 48084ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 48094ed31819Smrgfi 48104ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48114ed31819Smrgfi 48124ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 48134ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 48144ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 48154ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48164ed31819Smrgfi 48174ed31819Smrg 48184ed31819Smrgfound="no" 48194ed31819Smrg 48204ed31819Smrg if test $found = "no" ; then 48214ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 48224ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48234ed31819Smrg fi 48244ed31819Smrg 48254ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 48264ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 48274ed31819Smrg fi 48284ed31819Smrg 48294ed31819Smrg CFLAGS="$CFLAGS -Wpointer-arith" 48304ed31819Smrg 48314ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 48324ed31819Smrg$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 48334ed31819Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 48344ed31819Smrg if eval \${$cacheid+:} false; then : 48354ed31819Smrg $as_echo_n "(cached) " >&6 48364ed31819Smrgelse 48374ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48384ed31819Smrg/* end confdefs.h. */ 48394ed31819Smrgint i; 48404ed31819Smrgint 48414ed31819Smrgmain () 48424ed31819Smrg{ 48434ed31819Smrg 48444ed31819Smrg ; 48454ed31819Smrg return 0; 48464ed31819Smrg} 48474ed31819Smrg_ACEOF 48484ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 48494ed31819Smrg eval $cacheid=yes 48504ed31819Smrgelse 48514ed31819Smrg eval $cacheid=no 48524ed31819Smrgfi 48534ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 48544ed31819Smrg conftest$ac_exeext conftest.$ac_ext 48554ed31819Smrgfi 48564ed31819Smrg 48574ed31819Smrg 48584ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48594ed31819Smrg 48604ed31819Smrg eval supported=\$$cacheid 48614ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 48624ed31819Smrg$as_echo "$supported" >&6; } 48634ed31819Smrg if test "$supported" = "yes" ; then 48644ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 48654ed31819Smrg found="yes" 48664ed31819Smrg fi 48674ed31819Smrg fi 48684ed31819Smrg 48694ed31819Smrg 48704ed31819Smrg 48714ed31819Smrg 48724ed31819Smrg 48734ed31819Smrg 48744ed31819Smrg 48754ed31819Smrg 48764ed31819Smrg 48774ed31819Smrg 48784ed31819Smrg 48794ed31819Smrg 48804ed31819Smrg 48814ed31819Smrg 48824ed31819Smrg 48834ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 48844ed31819Smrg 48854ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 48864ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48874ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 48884ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 48894ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 48904ed31819Smrg $as_echo_n "(cached) " >&6 48914ed31819Smrgelse 48924ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48934ed31819Smrg/* end confdefs.h. */ 48944ed31819Smrgint i; 48954ed31819Smrg_ACEOF 48964ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 48974ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 48984ed31819Smrgelse 48994ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 49004ed31819Smrgfi 49014ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49024ed31819Smrgfi 49034ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 49044ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 49054ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 49064ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49074ed31819Smrgfi 49084ed31819Smrg 49094ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 49104ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 49114ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49124ed31819Smrg fi 49134ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49144ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 49154ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 49164ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 49174ed31819Smrg $as_echo_n "(cached) " >&6 49184ed31819Smrgelse 49194ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49204ed31819Smrg/* end confdefs.h. */ 49214ed31819Smrgint i; 49224ed31819Smrg_ACEOF 49234ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 49244ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 49254ed31819Smrgelse 49264ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 49274ed31819Smrgfi 49284ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49294ed31819Smrgfi 49304ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 49314ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 49324ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 49334ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49344ed31819Smrgfi 49354ed31819Smrg 49364ed31819Smrgfound="no" 49374ed31819Smrg 49384ed31819Smrg if test $found = "no" ; then 49394ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 49404ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49414ed31819Smrg fi 49424ed31819Smrg 49434ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 49444ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49454ed31819Smrg fi 49464ed31819Smrg 49474ed31819Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 49484ed31819Smrg 49494ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 49504ed31819Smrg$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 49514ed31819Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 49524ed31819Smrg if eval \${$cacheid+:} false; then : 49534ed31819Smrg $as_echo_n "(cached) " >&6 49544ed31819Smrgelse 49554ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49564ed31819Smrg/* end confdefs.h. */ 49574ed31819Smrgint i; 49584ed31819Smrgint 49594ed31819Smrgmain () 49604ed31819Smrg{ 49614ed31819Smrg 49624ed31819Smrg ; 49634ed31819Smrg return 0; 49644ed31819Smrg} 49654ed31819Smrg_ACEOF 49664ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 49674ed31819Smrg eval $cacheid=yes 49684ed31819Smrgelse 49694ed31819Smrg eval $cacheid=no 49704ed31819Smrgfi 49714ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 49724ed31819Smrg conftest$ac_exeext conftest.$ac_ext 49734ed31819Smrgfi 49744ed31819Smrg 49754ed31819Smrg 49764ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49774ed31819Smrg 49784ed31819Smrg eval supported=\$$cacheid 49794ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 49804ed31819Smrg$as_echo "$supported" >&6; } 49814ed31819Smrg if test "$supported" = "yes" ; then 49824ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 49834ed31819Smrg found="yes" 49844ed31819Smrg fi 49854ed31819Smrg fi 49864ed31819Smrg 49874ed31819Smrg 49884ed31819Smrg 49894ed31819Smrg 49904ed31819Smrg 49914ed31819Smrg 49924ed31819Smrg 49934ed31819Smrg 49944ed31819Smrg 49954ed31819Smrg 49964ed31819Smrg 49974ed31819Smrg 49984ed31819Smrg 49994ed31819Smrg 50004ed31819Smrg 50014ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 50024ed31819Smrg 50034ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 50044ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50054ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 50064ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 50074ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 50084ed31819Smrg $as_echo_n "(cached) " >&6 50094ed31819Smrgelse 50104ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50114ed31819Smrg/* end confdefs.h. */ 50124ed31819Smrgint i; 50134ed31819Smrg_ACEOF 50144ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 50154ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 50164ed31819Smrgelse 50174ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 50184ed31819Smrgfi 50194ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50204ed31819Smrgfi 50214ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 50224ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 50234ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 50244ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50254ed31819Smrgfi 50264ed31819Smrg 50274ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 50284ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 50294ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50304ed31819Smrg fi 50314ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50324ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 50334ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 50344ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 50354ed31819Smrg $as_echo_n "(cached) " >&6 50364ed31819Smrgelse 50374ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50384ed31819Smrg/* end confdefs.h. */ 50394ed31819Smrgint i; 50404ed31819Smrg_ACEOF 50414ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 50424ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 50434ed31819Smrgelse 50444ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 50454ed31819Smrgfi 50464ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50474ed31819Smrgfi 50484ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 50494ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 50504ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 50514ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50524ed31819Smrgfi 50534ed31819Smrg 50544ed31819Smrgfound="no" 50554ed31819Smrg 50564ed31819Smrg if test $found = "no" ; then 50574ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 50584ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50594ed31819Smrg fi 50604ed31819Smrg 50614ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 50624ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50634ed31819Smrg fi 50644ed31819Smrg 50654ed31819Smrg CFLAGS="$CFLAGS -Wformat=2" 50664ed31819Smrg 50674ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 50684ed31819Smrg$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 50694ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 50704ed31819Smrg if eval \${$cacheid+:} false; then : 50714ed31819Smrg $as_echo_n "(cached) " >&6 50724ed31819Smrgelse 50734ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50744ed31819Smrg/* end confdefs.h. */ 50754ed31819Smrgint i; 50764ed31819Smrgint 50774ed31819Smrgmain () 50784ed31819Smrg{ 50794ed31819Smrg 50804ed31819Smrg ; 50814ed31819Smrg return 0; 50824ed31819Smrg} 50834ed31819Smrg_ACEOF 50844ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 50854ed31819Smrg eval $cacheid=yes 50864ed31819Smrgelse 50874ed31819Smrg eval $cacheid=no 50884ed31819Smrgfi 50894ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 50904ed31819Smrg conftest$ac_exeext conftest.$ac_ext 50914ed31819Smrgfi 50924ed31819Smrg 50934ed31819Smrg 50944ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50954ed31819Smrg 50964ed31819Smrg eval supported=\$$cacheid 50974ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 50984ed31819Smrg$as_echo "$supported" >&6; } 50994ed31819Smrg if test "$supported" = "yes" ; then 51004ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 51014ed31819Smrg found="yes" 51024ed31819Smrg fi 51034ed31819Smrg fi 51044ed31819Smrg 51054ed31819Smrg if test $found = "no" ; then 51064ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 51074ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51084ed31819Smrg fi 51094ed31819Smrg 51104ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 51114ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 51124ed31819Smrg fi 51134ed31819Smrg 51144ed31819Smrg CFLAGS="$CFLAGS -Wformat" 51154ed31819Smrg 51164ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 51174ed31819Smrg$as_echo_n "checking if $CC supports-Wformat... " >&6; } 51184ed31819Smrg cacheid=xorg_cv_cc_flag__Wformat 51194ed31819Smrg if eval \${$cacheid+:} false; then : 51204ed31819Smrg $as_echo_n "(cached) " >&6 51214ed31819Smrgelse 51224ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51234ed31819Smrg/* end confdefs.h. */ 51244ed31819Smrgint i; 51254ed31819Smrgint 51264ed31819Smrgmain () 51274ed31819Smrg{ 51284ed31819Smrg 51294ed31819Smrg ; 51304ed31819Smrg return 0; 51314ed31819Smrg} 51324ed31819Smrg_ACEOF 51334ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 51344ed31819Smrg eval $cacheid=yes 51354ed31819Smrgelse 51364ed31819Smrg eval $cacheid=no 51374ed31819Smrgfi 51384ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 51394ed31819Smrg conftest$ac_exeext conftest.$ac_ext 51404ed31819Smrgfi 51414ed31819Smrg 51424ed31819Smrg 51434ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51444ed31819Smrg 51454ed31819Smrg eval supported=\$$cacheid 51464ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51474ed31819Smrg$as_echo "$supported" >&6; } 51484ed31819Smrg if test "$supported" = "yes" ; then 51494ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 51504ed31819Smrg found="yes" 51514ed31819Smrg fi 51524ed31819Smrg fi 51534ed31819Smrg 51544ed31819Smrg 51554ed31819Smrg 51564ed31819Smrg 51574ed31819Smrg 51584ed31819Smrg 51594ed31819Smrg 51604ed31819Smrg 51614ed31819Smrg 51624ed31819Smrg 51634ed31819Smrg 51644ed31819Smrg 51654ed31819Smrg 51664ed31819Smrg 51674ed31819Smrg 51684ed31819Smrg 51694ed31819Smrg 51704ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 51714ed31819Smrg 51724ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 51734ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51744ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 51754ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 51764ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 51774ed31819Smrg $as_echo_n "(cached) " >&6 51784ed31819Smrgelse 51794ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51804ed31819Smrg/* end confdefs.h. */ 51814ed31819Smrgint i; 51824ed31819Smrg_ACEOF 51834ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 51844ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 51854ed31819Smrgelse 51864ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 51874ed31819Smrgfi 51884ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51894ed31819Smrgfi 51904ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 51914ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 51924ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 51934ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51944ed31819Smrgfi 51954ed31819Smrg 51964ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 51974ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 51984ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51994ed31819Smrg fi 52004ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52014ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 52024ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 52034ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 52044ed31819Smrg $as_echo_n "(cached) " >&6 52054ed31819Smrgelse 52064ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52074ed31819Smrg/* end confdefs.h. */ 52084ed31819Smrgint i; 52094ed31819Smrg_ACEOF 52104ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 52114ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 52124ed31819Smrgelse 52134ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 52144ed31819Smrgfi 52154ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52164ed31819Smrgfi 52174ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 52184ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 52194ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 52204ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52214ed31819Smrgfi 52224ed31819Smrg 52234ed31819Smrgfound="no" 52244ed31819Smrg 52254ed31819Smrg if test $found = "no" ; then 52264ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 52274ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52284ed31819Smrg fi 52294ed31819Smrg 52304ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 52314ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52324ed31819Smrg fi 52334ed31819Smrg 52344ed31819Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 52354ed31819Smrg 52364ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 52374ed31819Smrg$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 52384ed31819Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 52394ed31819Smrg if eval \${$cacheid+:} false; then : 52404ed31819Smrg $as_echo_n "(cached) " >&6 52414ed31819Smrgelse 52424ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52434ed31819Smrg/* end confdefs.h. */ 52444ed31819Smrgint i; 52454ed31819Smrgint 52464ed31819Smrgmain () 52474ed31819Smrg{ 52484ed31819Smrg 52494ed31819Smrg ; 52504ed31819Smrg return 0; 52514ed31819Smrg} 52524ed31819Smrg_ACEOF 52534ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 52544ed31819Smrg eval $cacheid=yes 52554ed31819Smrgelse 52564ed31819Smrg eval $cacheid=no 52574ed31819Smrgfi 52584ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 52594ed31819Smrg conftest$ac_exeext conftest.$ac_ext 52604ed31819Smrgfi 52614ed31819Smrg 52624ed31819Smrg 52634ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52644ed31819Smrg 52654ed31819Smrg eval supported=\$$cacheid 52664ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52674ed31819Smrg$as_echo "$supported" >&6; } 52684ed31819Smrg if test "$supported" = "yes" ; then 52694ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 52704ed31819Smrg found="yes" 52714ed31819Smrg fi 52724ed31819Smrg fi 52734ed31819Smrg 52744ed31819Smrg 52754ed31819Smrg 52764ed31819Smrg 52774ed31819Smrg 52784ed31819Smrg 52794ed31819Smrg 52804ed31819Smrg 52814ed31819Smrg 52824ed31819Smrg 52834ed31819Smrg 52844ed31819Smrg 52854ed31819Smrg 52864ed31819Smrg 52874ed31819Smrg 52884ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 52894ed31819Smrg 52904ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 52914ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52924ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 52934ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 52944ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 52954ed31819Smrg $as_echo_n "(cached) " >&6 52964ed31819Smrgelse 52974ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52984ed31819Smrg/* end confdefs.h. */ 52994ed31819Smrgint i; 53004ed31819Smrg_ACEOF 53014ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 53024ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 53034ed31819Smrgelse 53044ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 53054ed31819Smrgfi 53064ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53074ed31819Smrgfi 53084ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 53094ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 53104ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 53114ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53124ed31819Smrgfi 53134ed31819Smrg 53144ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 53154ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 53164ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53174ed31819Smrg fi 53184ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53194ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 53204ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 53214ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 53224ed31819Smrg $as_echo_n "(cached) " >&6 53234ed31819Smrgelse 53244ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53254ed31819Smrg/* end confdefs.h. */ 53264ed31819Smrgint i; 53274ed31819Smrg_ACEOF 53284ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 53294ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 53304ed31819Smrgelse 53314ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 53324ed31819Smrgfi 53334ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53344ed31819Smrgfi 53354ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 53364ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 53374ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 53384ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53394ed31819Smrgfi 53404ed31819Smrg 53414ed31819Smrgfound="no" 53424ed31819Smrg 53434ed31819Smrg if test $found = "no" ; then 53444ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 53454ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53464ed31819Smrg fi 53474ed31819Smrg 53484ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 53494ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53504ed31819Smrg fi 53514ed31819Smrg 53524ed31819Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 53534ed31819Smrg 53544ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 53554ed31819Smrg$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 53564ed31819Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 53574ed31819Smrg if eval \${$cacheid+:} false; then : 53584ed31819Smrg $as_echo_n "(cached) " >&6 53594ed31819Smrgelse 53604ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53614ed31819Smrg/* end confdefs.h. */ 53624ed31819Smrgint i; 53634ed31819Smrgint 53644ed31819Smrgmain () 53654ed31819Smrg{ 53664ed31819Smrg 53674ed31819Smrg ; 53684ed31819Smrg return 0; 53694ed31819Smrg} 53704ed31819Smrg_ACEOF 53714ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 53724ed31819Smrg eval $cacheid=yes 53734ed31819Smrgelse 53744ed31819Smrg eval $cacheid=no 53754ed31819Smrgfi 53764ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 53774ed31819Smrg conftest$ac_exeext conftest.$ac_ext 53784ed31819Smrgfi 53794ed31819Smrg 53804ed31819Smrg 53814ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53824ed31819Smrg 53834ed31819Smrg eval supported=\$$cacheid 53844ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 53854ed31819Smrg$as_echo "$supported" >&6; } 53864ed31819Smrg if test "$supported" = "yes" ; then 53874ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 53884ed31819Smrg found="yes" 53894ed31819Smrg fi 53904ed31819Smrg fi 53914ed31819Smrg 53924ed31819Smrg 53934ed31819Smrg 53944ed31819Smrg 53954ed31819Smrg 53964ed31819Smrg 53974ed31819Smrg 53984ed31819Smrg 53994ed31819Smrg 54004ed31819Smrg 54014ed31819Smrg 54024ed31819Smrg 54034ed31819Smrg 54044ed31819Smrg 54054ed31819Smrg 54064ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 54074ed31819Smrg 54084ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 54094ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54104ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 54114ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 54124ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 54134ed31819Smrg $as_echo_n "(cached) " >&6 54144ed31819Smrgelse 54154ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54164ed31819Smrg/* end confdefs.h. */ 54174ed31819Smrgint i; 54184ed31819Smrg_ACEOF 54194ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 54204ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 54214ed31819Smrgelse 54224ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 54234ed31819Smrgfi 54244ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54254ed31819Smrgfi 54264ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 54274ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 54284ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 54294ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54304ed31819Smrgfi 54314ed31819Smrg 54324ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 54334ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 54344ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54354ed31819Smrg fi 54364ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54374ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 54384ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 54394ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 54404ed31819Smrg $as_echo_n "(cached) " >&6 54414ed31819Smrgelse 54424ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54434ed31819Smrg/* end confdefs.h. */ 54444ed31819Smrgint i; 54454ed31819Smrg_ACEOF 54464ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 54474ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 54484ed31819Smrgelse 54494ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 54504ed31819Smrgfi 54514ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54524ed31819Smrgfi 54534ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 54544ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 54554ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 54564ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54574ed31819Smrgfi 54584ed31819Smrg 54594ed31819Smrgfound="no" 54604ed31819Smrg 54614ed31819Smrg if test $found = "no" ; then 54624ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 54634ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54644ed31819Smrg fi 54654ed31819Smrg 54664ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 54674ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54684ed31819Smrg fi 54694ed31819Smrg 54704ed31819Smrg CFLAGS="$CFLAGS -Wnested-externs" 54714ed31819Smrg 54724ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 54734ed31819Smrg$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 54744ed31819Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 54754ed31819Smrg if eval \${$cacheid+:} false; then : 54764ed31819Smrg $as_echo_n "(cached) " >&6 54774ed31819Smrgelse 54784ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54794ed31819Smrg/* end confdefs.h. */ 54804ed31819Smrgint i; 54814ed31819Smrgint 54824ed31819Smrgmain () 54834ed31819Smrg{ 54844ed31819Smrg 54854ed31819Smrg ; 54864ed31819Smrg return 0; 54874ed31819Smrg} 54884ed31819Smrg_ACEOF 54894ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 54904ed31819Smrg eval $cacheid=yes 54914ed31819Smrgelse 54924ed31819Smrg eval $cacheid=no 54934ed31819Smrgfi 54944ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 54954ed31819Smrg conftest$ac_exeext conftest.$ac_ext 54964ed31819Smrgfi 54974ed31819Smrg 54984ed31819Smrg 54994ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55004ed31819Smrg 55014ed31819Smrg eval supported=\$$cacheid 55024ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55034ed31819Smrg$as_echo "$supported" >&6; } 55044ed31819Smrg if test "$supported" = "yes" ; then 55054ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 55064ed31819Smrg found="yes" 55074ed31819Smrg fi 55084ed31819Smrg fi 55094ed31819Smrg 55104ed31819Smrg 55114ed31819Smrg 55124ed31819Smrg 55134ed31819Smrg 55144ed31819Smrg 55154ed31819Smrg 55164ed31819Smrg 55174ed31819Smrg 55184ed31819Smrg 55194ed31819Smrg 55204ed31819Smrg 55214ed31819Smrg 55224ed31819Smrg 55234ed31819Smrg 55244ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 55254ed31819Smrg 55264ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 55274ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55284ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 55294ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 55304ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 55314ed31819Smrg $as_echo_n "(cached) " >&6 55324ed31819Smrgelse 55334ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55344ed31819Smrg/* end confdefs.h. */ 55354ed31819Smrgint i; 55364ed31819Smrg_ACEOF 55374ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 55384ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 55394ed31819Smrgelse 55404ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 55414ed31819Smrgfi 55424ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55434ed31819Smrgfi 55444ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 55454ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 55464ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 55474ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55484ed31819Smrgfi 55494ed31819Smrg 55504ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 55514ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 55524ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55534ed31819Smrg fi 55544ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55554ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 55564ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 55574ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 55584ed31819Smrg $as_echo_n "(cached) " >&6 55594ed31819Smrgelse 55604ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55614ed31819Smrg/* end confdefs.h. */ 55624ed31819Smrgint i; 55634ed31819Smrg_ACEOF 55644ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 55654ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 55664ed31819Smrgelse 55674ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 55684ed31819Smrgfi 55694ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55704ed31819Smrgfi 55714ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 55724ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 55734ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 55744ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55754ed31819Smrgfi 55764ed31819Smrg 55774ed31819Smrgfound="no" 55784ed31819Smrg 55794ed31819Smrg if test $found = "no" ; then 55804ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 55814ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55824ed31819Smrg fi 55834ed31819Smrg 55844ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 55854ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55864ed31819Smrg fi 55874ed31819Smrg 55884ed31819Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 55894ed31819Smrg 55904ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 55914ed31819Smrg$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 55924ed31819Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 55934ed31819Smrg if eval \${$cacheid+:} false; then : 55944ed31819Smrg $as_echo_n "(cached) " >&6 55954ed31819Smrgelse 55964ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55974ed31819Smrg/* end confdefs.h. */ 55984ed31819Smrgint i; 55994ed31819Smrgint 56004ed31819Smrgmain () 56014ed31819Smrg{ 56024ed31819Smrg 56034ed31819Smrg ; 56044ed31819Smrg return 0; 56054ed31819Smrg} 56064ed31819Smrg_ACEOF 56074ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 56084ed31819Smrg eval $cacheid=yes 56094ed31819Smrgelse 56104ed31819Smrg eval $cacheid=no 56114ed31819Smrgfi 56124ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 56134ed31819Smrg conftest$ac_exeext conftest.$ac_ext 56144ed31819Smrgfi 56154ed31819Smrg 56164ed31819Smrg 56174ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56184ed31819Smrg 56194ed31819Smrg eval supported=\$$cacheid 56204ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 56214ed31819Smrg$as_echo "$supported" >&6; } 56224ed31819Smrg if test "$supported" = "yes" ; then 56234ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 56244ed31819Smrg found="yes" 56254ed31819Smrg fi 56264ed31819Smrg fi 56274ed31819Smrg 56284ed31819Smrg 56294ed31819Smrg 56304ed31819Smrg 56314ed31819Smrg 56324ed31819Smrg 56334ed31819Smrg 56344ed31819Smrg 56354ed31819Smrg 56364ed31819Smrg 56374ed31819Smrg 56384ed31819Smrg 56394ed31819Smrg 56404ed31819Smrg 56414ed31819Smrg 56424ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 56434ed31819Smrg 56444ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 56454ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56464ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 56474ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 56484ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 56494ed31819Smrg $as_echo_n "(cached) " >&6 56504ed31819Smrgelse 56514ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56524ed31819Smrg/* end confdefs.h. */ 56534ed31819Smrgint i; 56544ed31819Smrg_ACEOF 56554ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 56564ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 56574ed31819Smrgelse 56584ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 56594ed31819Smrgfi 56604ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56614ed31819Smrgfi 56624ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 56634ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 56644ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 56654ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56664ed31819Smrgfi 56674ed31819Smrg 56684ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 56694ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 56704ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56714ed31819Smrg fi 56724ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56734ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 56744ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 56754ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 56764ed31819Smrg $as_echo_n "(cached) " >&6 56774ed31819Smrgelse 56784ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56794ed31819Smrg/* end confdefs.h. */ 56804ed31819Smrgint i; 56814ed31819Smrg_ACEOF 56824ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 56834ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 56844ed31819Smrgelse 56854ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 56864ed31819Smrgfi 56874ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56884ed31819Smrgfi 56894ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 56904ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 56914ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 56924ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56934ed31819Smrgfi 56944ed31819Smrg 56954ed31819Smrgfound="no" 56964ed31819Smrg 56974ed31819Smrg if test $found = "no" ; then 56984ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 56994ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57004ed31819Smrg fi 57014ed31819Smrg 57024ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 57034ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57044ed31819Smrg fi 57054ed31819Smrg 57064ed31819Smrg CFLAGS="$CFLAGS -Wold-style-definition" 57074ed31819Smrg 57084ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 57094ed31819Smrg$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 57104ed31819Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 57114ed31819Smrg if eval \${$cacheid+:} false; then : 57124ed31819Smrg $as_echo_n "(cached) " >&6 57134ed31819Smrgelse 57144ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57154ed31819Smrg/* end confdefs.h. */ 57164ed31819Smrgint i; 57174ed31819Smrgint 57184ed31819Smrgmain () 57194ed31819Smrg{ 57204ed31819Smrg 57214ed31819Smrg ; 57224ed31819Smrg return 0; 57234ed31819Smrg} 57244ed31819Smrg_ACEOF 57254ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 57264ed31819Smrg eval $cacheid=yes 57274ed31819Smrgelse 57284ed31819Smrg eval $cacheid=no 57294ed31819Smrgfi 57304ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 57314ed31819Smrg conftest$ac_exeext conftest.$ac_ext 57324ed31819Smrgfi 57334ed31819Smrg 57344ed31819Smrg 57354ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57364ed31819Smrg 57374ed31819Smrg eval supported=\$$cacheid 57384ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 57394ed31819Smrg$as_echo "$supported" >&6; } 57404ed31819Smrg if test "$supported" = "yes" ; then 57414ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 57424ed31819Smrg found="yes" 57434ed31819Smrg fi 57444ed31819Smrg fi 57454ed31819Smrg 57464ed31819Smrg 57474ed31819Smrg 57484ed31819Smrg 57494ed31819Smrg 57504ed31819Smrg 57514ed31819Smrg 57524ed31819Smrg 57534ed31819Smrg 57544ed31819Smrg 57554ed31819Smrg 57564ed31819Smrg 57574ed31819Smrg 57584ed31819Smrg 57594ed31819Smrg 57604ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 57614ed31819Smrg 57624ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 57634ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57644ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 57654ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 57664ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 57674ed31819Smrg $as_echo_n "(cached) " >&6 57684ed31819Smrgelse 57694ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57704ed31819Smrg/* end confdefs.h. */ 57714ed31819Smrgint i; 57724ed31819Smrg_ACEOF 57734ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 57744ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 57754ed31819Smrgelse 57764ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 57774ed31819Smrgfi 57784ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57794ed31819Smrgfi 57804ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 57814ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 57824ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 57834ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57844ed31819Smrgfi 57854ed31819Smrg 57864ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 57874ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 57884ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57894ed31819Smrg fi 57904ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57914ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 57924ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 57934ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 57944ed31819Smrg $as_echo_n "(cached) " >&6 57954ed31819Smrgelse 57964ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57974ed31819Smrg/* end confdefs.h. */ 57984ed31819Smrgint i; 57994ed31819Smrg_ACEOF 58004ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 58014ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 58024ed31819Smrgelse 58034ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 58044ed31819Smrgfi 58054ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58064ed31819Smrgfi 58074ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 58084ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 58094ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 58104ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58114ed31819Smrgfi 58124ed31819Smrg 58134ed31819Smrgfound="no" 58144ed31819Smrg 58154ed31819Smrg if test $found = "no" ; then 58164ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 58174ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58184ed31819Smrg fi 58194ed31819Smrg 58204ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 58214ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58224ed31819Smrg fi 58234ed31819Smrg 58244ed31819Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 58254ed31819Smrg 58264ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 58274ed31819Smrg$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 58284ed31819Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 58294ed31819Smrg if eval \${$cacheid+:} false; then : 58304ed31819Smrg $as_echo_n "(cached) " >&6 58314ed31819Smrgelse 58324ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58334ed31819Smrg/* end confdefs.h. */ 58344ed31819Smrgint i; 58354ed31819Smrgint 58364ed31819Smrgmain () 58374ed31819Smrg{ 58384ed31819Smrg 58394ed31819Smrg ; 58404ed31819Smrg return 0; 58414ed31819Smrg} 58424ed31819Smrg_ACEOF 58434ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 58444ed31819Smrg eval $cacheid=yes 58454ed31819Smrgelse 58464ed31819Smrg eval $cacheid=no 58474ed31819Smrgfi 58484ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 58494ed31819Smrg conftest$ac_exeext conftest.$ac_ext 58504ed31819Smrgfi 58514ed31819Smrg 58524ed31819Smrg 58534ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58544ed31819Smrg 58554ed31819Smrg eval supported=\$$cacheid 58564ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 58574ed31819Smrg$as_echo "$supported" >&6; } 58584ed31819Smrg if test "$supported" = "yes" ; then 58594ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 58604ed31819Smrg found="yes" 58614ed31819Smrg fi 58624ed31819Smrg fi 58634ed31819Smrg 58644ed31819Smrg 58654ed31819Smrg 58664ed31819Smrg 58674ed31819Smrg 58684ed31819Smrg# This chunk adds additional warnings that could catch undesired effects. 58694ed31819Smrg 58704ed31819Smrg 58714ed31819Smrg 58724ed31819Smrg 58734ed31819Smrg 58744ed31819Smrg 58754ed31819Smrg 58764ed31819Smrg 58774ed31819Smrg 58784ed31819Smrg 58794ed31819Smrg 58804ed31819Smrg 58814ed31819Smrg 58824ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 58834ed31819Smrg 58844ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 58854ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58864ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 58874ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 58884ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 58894ed31819Smrg $as_echo_n "(cached) " >&6 58904ed31819Smrgelse 58914ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58924ed31819Smrg/* end confdefs.h. */ 58934ed31819Smrgint i; 58944ed31819Smrg_ACEOF 58954ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 58964ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 58974ed31819Smrgelse 58984ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 58994ed31819Smrgfi 59004ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59014ed31819Smrgfi 59024ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 59034ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 59044ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 59054ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59064ed31819Smrgfi 59074ed31819Smrg 59084ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 59094ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 59104ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59114ed31819Smrg fi 59124ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59134ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 59144ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 59154ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 59164ed31819Smrg $as_echo_n "(cached) " >&6 59174ed31819Smrgelse 59184ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59194ed31819Smrg/* end confdefs.h. */ 59204ed31819Smrgint i; 59214ed31819Smrg_ACEOF 59224ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 59234ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 59244ed31819Smrgelse 59254ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 59264ed31819Smrgfi 59274ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59284ed31819Smrgfi 59294ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 59304ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 59314ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 59324ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59334ed31819Smrgfi 59344ed31819Smrg 59354ed31819Smrgfound="no" 59364ed31819Smrg 59374ed31819Smrg if test $found = "no" ; then 59384ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 59394ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59404ed31819Smrg fi 59414ed31819Smrg 59424ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 59434ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59444ed31819Smrg fi 59454ed31819Smrg 59464ed31819Smrg CFLAGS="$CFLAGS -Wunused" 59474ed31819Smrg 59484ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 59494ed31819Smrg$as_echo_n "checking if $CC supports-Wunused... " >&6; } 59504ed31819Smrg cacheid=xorg_cv_cc_flag__Wunused 59514ed31819Smrg if eval \${$cacheid+:} false; then : 59524ed31819Smrg $as_echo_n "(cached) " >&6 59534ed31819Smrgelse 59544ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59554ed31819Smrg/* end confdefs.h. */ 59564ed31819Smrgint i; 59574ed31819Smrgint 59584ed31819Smrgmain () 59594ed31819Smrg{ 59604ed31819Smrg 59614ed31819Smrg ; 59624ed31819Smrg return 0; 59634ed31819Smrg} 59644ed31819Smrg_ACEOF 59654ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 59664ed31819Smrg eval $cacheid=yes 59674ed31819Smrgelse 59684ed31819Smrg eval $cacheid=no 59694ed31819Smrgfi 59704ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 59714ed31819Smrg conftest$ac_exeext conftest.$ac_ext 59724ed31819Smrgfi 59734ed31819Smrg 59744ed31819Smrg 59754ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59764ed31819Smrg 59774ed31819Smrg eval supported=\$$cacheid 59784ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 59794ed31819Smrg$as_echo "$supported" >&6; } 59804ed31819Smrg if test "$supported" = "yes" ; then 59814ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 59824ed31819Smrg found="yes" 59834ed31819Smrg fi 59844ed31819Smrg fi 59854ed31819Smrg 59864ed31819Smrg 59874ed31819Smrg 59884ed31819Smrg 59894ed31819Smrg 59904ed31819Smrg 59914ed31819Smrg 59924ed31819Smrg 59934ed31819Smrg 59944ed31819Smrg 59954ed31819Smrg 59964ed31819Smrg 59974ed31819Smrg 59984ed31819Smrg 59994ed31819Smrg 60004ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 60014ed31819Smrg 60024ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 60034ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60044ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 60054ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 60064ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 60074ed31819Smrg $as_echo_n "(cached) " >&6 60084ed31819Smrgelse 60094ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60104ed31819Smrg/* end confdefs.h. */ 60114ed31819Smrgint i; 60124ed31819Smrg_ACEOF 60134ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 60144ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 60154ed31819Smrgelse 60164ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 60174ed31819Smrgfi 60184ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 60194ed31819Smrgfi 60204ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 60214ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 60224ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 60234ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60244ed31819Smrgfi 60254ed31819Smrg 60264ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 60274ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 60284ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60294ed31819Smrg fi 60304ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60314ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 60324ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 60334ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 60344ed31819Smrg $as_echo_n "(cached) " >&6 60354ed31819Smrgelse 60364ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60374ed31819Smrg/* end confdefs.h. */ 60384ed31819Smrgint i; 60394ed31819Smrg_ACEOF 60404ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 60414ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 60424ed31819Smrgelse 60434ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 60444ed31819Smrgfi 60454ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 60464ed31819Smrgfi 60474ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 60484ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 60494ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 60504ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60514ed31819Smrgfi 60524ed31819Smrg 60534ed31819Smrgfound="no" 60544ed31819Smrg 60554ed31819Smrg if test $found = "no" ; then 60564ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 60574ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60584ed31819Smrg fi 60594ed31819Smrg 60604ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 60614ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60624ed31819Smrg fi 60634ed31819Smrg 60644ed31819Smrg CFLAGS="$CFLAGS -Wuninitialized" 60654ed31819Smrg 60664ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 60674ed31819Smrg$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 60684ed31819Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 60694ed31819Smrg if eval \${$cacheid+:} false; then : 60704ed31819Smrg $as_echo_n "(cached) " >&6 60714ed31819Smrgelse 60724ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60734ed31819Smrg/* end confdefs.h. */ 60744ed31819Smrgint i; 60754ed31819Smrgint 60764ed31819Smrgmain () 60774ed31819Smrg{ 60784ed31819Smrg 60794ed31819Smrg ; 60804ed31819Smrg return 0; 60814ed31819Smrg} 60824ed31819Smrg_ACEOF 60834ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 60844ed31819Smrg eval $cacheid=yes 60854ed31819Smrgelse 60864ed31819Smrg eval $cacheid=no 60874ed31819Smrgfi 60884ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 60894ed31819Smrg conftest$ac_exeext conftest.$ac_ext 60904ed31819Smrgfi 60914ed31819Smrg 60924ed31819Smrg 60934ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60944ed31819Smrg 60954ed31819Smrg eval supported=\$$cacheid 60964ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 60974ed31819Smrg$as_echo "$supported" >&6; } 60984ed31819Smrg if test "$supported" = "yes" ; then 60994ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 61004ed31819Smrg found="yes" 61014ed31819Smrg fi 61024ed31819Smrg fi 61034ed31819Smrg 61044ed31819Smrg 61054ed31819Smrg 61064ed31819Smrg 61074ed31819Smrg 61084ed31819Smrg 61094ed31819Smrg 61104ed31819Smrg 61114ed31819Smrg 61124ed31819Smrg 61134ed31819Smrg 61144ed31819Smrg 61154ed31819Smrg 61164ed31819Smrg 61174ed31819Smrg 61184ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 61194ed31819Smrg 61204ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 61214ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61224ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 61234ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 61244ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 61254ed31819Smrg $as_echo_n "(cached) " >&6 61264ed31819Smrgelse 61274ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61284ed31819Smrg/* end confdefs.h. */ 61294ed31819Smrgint i; 61304ed31819Smrg_ACEOF 61314ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 61324ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 61334ed31819Smrgelse 61344ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 61354ed31819Smrgfi 61364ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 61374ed31819Smrgfi 61384ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 61394ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 61404ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 61414ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61424ed31819Smrgfi 61434ed31819Smrg 61444ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 61454ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 61464ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61474ed31819Smrg fi 61484ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61494ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 61504ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 61514ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 61524ed31819Smrg $as_echo_n "(cached) " >&6 61534ed31819Smrgelse 61544ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61554ed31819Smrg/* end confdefs.h. */ 61564ed31819Smrgint i; 61574ed31819Smrg_ACEOF 61584ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 61594ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 61604ed31819Smrgelse 61614ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 61624ed31819Smrgfi 61634ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 61644ed31819Smrgfi 61654ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 61664ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 61674ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 61684ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61694ed31819Smrgfi 61704ed31819Smrg 61714ed31819Smrgfound="no" 61724ed31819Smrg 61734ed31819Smrg if test $found = "no" ; then 61744ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 61754ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61764ed31819Smrg fi 61774ed31819Smrg 61784ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 61794ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61804ed31819Smrg fi 61814ed31819Smrg 61824ed31819Smrg CFLAGS="$CFLAGS -Wshadow" 61834ed31819Smrg 61844ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 61854ed31819Smrg$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 61864ed31819Smrg cacheid=xorg_cv_cc_flag__Wshadow 61874ed31819Smrg if eval \${$cacheid+:} false; then : 61884ed31819Smrg $as_echo_n "(cached) " >&6 61894ed31819Smrgelse 61904ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61914ed31819Smrg/* end confdefs.h. */ 61924ed31819Smrgint i; 61934ed31819Smrgint 61944ed31819Smrgmain () 61954ed31819Smrg{ 61964ed31819Smrg 61974ed31819Smrg ; 61984ed31819Smrg return 0; 61994ed31819Smrg} 62004ed31819Smrg_ACEOF 62014ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 62024ed31819Smrg eval $cacheid=yes 62034ed31819Smrgelse 62044ed31819Smrg eval $cacheid=no 62054ed31819Smrgfi 62064ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 62074ed31819Smrg conftest$ac_exeext conftest.$ac_ext 62084ed31819Smrgfi 62094ed31819Smrg 62104ed31819Smrg 62114ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62124ed31819Smrg 62134ed31819Smrg eval supported=\$$cacheid 62144ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62154ed31819Smrg$as_echo "$supported" >&6; } 62164ed31819Smrg if test "$supported" = "yes" ; then 62174ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 62184ed31819Smrg found="yes" 62194ed31819Smrg fi 62204ed31819Smrg fi 62214ed31819Smrg 62224ed31819Smrg 62234ed31819Smrg 62244ed31819Smrg 62254ed31819Smrg 62264ed31819Smrg 62274ed31819Smrg 62284ed31819Smrg 62294ed31819Smrg 62304ed31819Smrg 62314ed31819Smrg 62324ed31819Smrg 62334ed31819Smrg 62344ed31819Smrg 62354ed31819Smrg 62364ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 62374ed31819Smrg 62384ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 62394ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62404ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 62414ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 62424ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 62434ed31819Smrg $as_echo_n "(cached) " >&6 62444ed31819Smrgelse 62454ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62464ed31819Smrg/* end confdefs.h. */ 62474ed31819Smrgint i; 62484ed31819Smrg_ACEOF 62494ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 62504ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 62514ed31819Smrgelse 62524ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 62534ed31819Smrgfi 62544ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62554ed31819Smrgfi 62564ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 62574ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 62584ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 62594ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62604ed31819Smrgfi 62614ed31819Smrg 62624ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 62634ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 62644ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62654ed31819Smrg fi 62664ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62674ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 62684ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 62694ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 62704ed31819Smrg $as_echo_n "(cached) " >&6 62714ed31819Smrgelse 62724ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62734ed31819Smrg/* end confdefs.h. */ 62744ed31819Smrgint i; 62754ed31819Smrg_ACEOF 62764ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 62774ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 62784ed31819Smrgelse 62794ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 62804ed31819Smrgfi 62814ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62824ed31819Smrgfi 62834ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 62844ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 62854ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 62864ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62874ed31819Smrgfi 62884ed31819Smrg 62894ed31819Smrgfound="no" 62904ed31819Smrg 62914ed31819Smrg if test $found = "no" ; then 62924ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 62934ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62944ed31819Smrg fi 62954ed31819Smrg 62964ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 62974ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62984ed31819Smrg fi 62994ed31819Smrg 63004ed31819Smrg CFLAGS="$CFLAGS -Wcast-qual" 63014ed31819Smrg 63024ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 63034ed31819Smrg$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 63044ed31819Smrg cacheid=xorg_cv_cc_flag__Wcast_qual 63054ed31819Smrg if eval \${$cacheid+:} false; then : 63064ed31819Smrg $as_echo_n "(cached) " >&6 63074ed31819Smrgelse 63084ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63094ed31819Smrg/* end confdefs.h. */ 63104ed31819Smrgint i; 63114ed31819Smrgint 63124ed31819Smrgmain () 63134ed31819Smrg{ 63144ed31819Smrg 63154ed31819Smrg ; 63164ed31819Smrg return 0; 63174ed31819Smrg} 63184ed31819Smrg_ACEOF 63194ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 63204ed31819Smrg eval $cacheid=yes 63214ed31819Smrgelse 63224ed31819Smrg eval $cacheid=no 63234ed31819Smrgfi 63244ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 63254ed31819Smrg conftest$ac_exeext conftest.$ac_ext 63264ed31819Smrgfi 63274ed31819Smrg 63284ed31819Smrg 63294ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63304ed31819Smrg 63314ed31819Smrg eval supported=\$$cacheid 63324ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 63334ed31819Smrg$as_echo "$supported" >&6; } 63344ed31819Smrg if test "$supported" = "yes" ; then 63354ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 63364ed31819Smrg found="yes" 63374ed31819Smrg fi 63384ed31819Smrg fi 63394ed31819Smrg 63404ed31819Smrg 63414ed31819Smrg 63424ed31819Smrg 63434ed31819Smrg 63444ed31819Smrg 63454ed31819Smrg 63464ed31819Smrg 63474ed31819Smrg 63484ed31819Smrg 63494ed31819Smrg 63504ed31819Smrg 63514ed31819Smrg 63524ed31819Smrg 63534ed31819Smrg 63544ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 63554ed31819Smrg 63564ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 63574ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63584ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 63594ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 63604ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 63614ed31819Smrg $as_echo_n "(cached) " >&6 63624ed31819Smrgelse 63634ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63644ed31819Smrg/* end confdefs.h. */ 63654ed31819Smrgint i; 63664ed31819Smrg_ACEOF 63674ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 63684ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 63694ed31819Smrgelse 63704ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 63714ed31819Smrgfi 63724ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 63734ed31819Smrgfi 63744ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 63754ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 63764ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 63774ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63784ed31819Smrgfi 63794ed31819Smrg 63804ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 63814ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 63824ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63834ed31819Smrg fi 63844ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63854ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 63864ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 63874ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 63884ed31819Smrg $as_echo_n "(cached) " >&6 63894ed31819Smrgelse 63904ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63914ed31819Smrg/* end confdefs.h. */ 63924ed31819Smrgint i; 63934ed31819Smrg_ACEOF 63944ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 63954ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 63964ed31819Smrgelse 63974ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 63984ed31819Smrgfi 63994ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 64004ed31819Smrgfi 64014ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 64024ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 64034ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 64044ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64054ed31819Smrgfi 64064ed31819Smrg 64074ed31819Smrgfound="no" 64084ed31819Smrg 64094ed31819Smrg if test $found = "no" ; then 64104ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 64114ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64124ed31819Smrg fi 64134ed31819Smrg 64144ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 64154ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64164ed31819Smrg fi 64174ed31819Smrg 64184ed31819Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 64194ed31819Smrg 64204ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 64214ed31819Smrg$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 64224ed31819Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 64234ed31819Smrg if eval \${$cacheid+:} false; then : 64244ed31819Smrg $as_echo_n "(cached) " >&6 64254ed31819Smrgelse 64264ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64274ed31819Smrg/* end confdefs.h. */ 64284ed31819Smrgint i; 64294ed31819Smrgint 64304ed31819Smrgmain () 64314ed31819Smrg{ 64324ed31819Smrg 64334ed31819Smrg ; 64344ed31819Smrg return 0; 64354ed31819Smrg} 64364ed31819Smrg_ACEOF 64374ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 64384ed31819Smrg eval $cacheid=yes 64394ed31819Smrgelse 64404ed31819Smrg eval $cacheid=no 64414ed31819Smrgfi 64424ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 64434ed31819Smrg conftest$ac_exeext conftest.$ac_ext 64444ed31819Smrgfi 64454ed31819Smrg 64464ed31819Smrg 64474ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64484ed31819Smrg 64494ed31819Smrg eval supported=\$$cacheid 64504ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 64514ed31819Smrg$as_echo "$supported" >&6; } 64524ed31819Smrg if test "$supported" = "yes" ; then 64534ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 64544ed31819Smrg found="yes" 64554ed31819Smrg fi 64564ed31819Smrg fi 64574ed31819Smrg 64584ed31819Smrg 64594ed31819Smrg 64604ed31819Smrg 64614ed31819Smrg 64624ed31819Smrg 64634ed31819Smrg 64644ed31819Smrg 64654ed31819Smrg 64664ed31819Smrg 64674ed31819Smrg 64684ed31819Smrg 64694ed31819Smrg 64704ed31819Smrg 64714ed31819Smrg 64724ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 64734ed31819Smrg 64744ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 64754ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64764ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 64774ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 64784ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 64794ed31819Smrg $as_echo_n "(cached) " >&6 64804ed31819Smrgelse 64814ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64824ed31819Smrg/* end confdefs.h. */ 64834ed31819Smrgint i; 64844ed31819Smrg_ACEOF 64854ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 64864ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 64874ed31819Smrgelse 64884ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 64894ed31819Smrgfi 64904ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 64914ed31819Smrgfi 64924ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 64934ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 64944ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 64954ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64964ed31819Smrgfi 64974ed31819Smrg 64984ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 64994ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 65004ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65014ed31819Smrg fi 65024ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65034ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 65044ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 65054ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 65064ed31819Smrg $as_echo_n "(cached) " >&6 65074ed31819Smrgelse 65084ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65094ed31819Smrg/* end confdefs.h. */ 65104ed31819Smrgint i; 65114ed31819Smrg_ACEOF 65124ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 65134ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 65144ed31819Smrgelse 65154ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 65164ed31819Smrgfi 65174ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65184ed31819Smrgfi 65194ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 65204ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 65214ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 65224ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65234ed31819Smrgfi 65244ed31819Smrg 65254ed31819Smrgfound="no" 65264ed31819Smrg 65274ed31819Smrg if test $found = "no" ; then 65284ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 65294ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65304ed31819Smrg fi 65314ed31819Smrg 65324ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 65334ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65344ed31819Smrg fi 65354ed31819Smrg 65364ed31819Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 65374ed31819Smrg 65384ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 65394ed31819Smrg$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 65404ed31819Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 65414ed31819Smrg if eval \${$cacheid+:} false; then : 65424ed31819Smrg $as_echo_n "(cached) " >&6 65434ed31819Smrgelse 65444ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65454ed31819Smrg/* end confdefs.h. */ 65464ed31819Smrgint i; 65474ed31819Smrgint 65484ed31819Smrgmain () 65494ed31819Smrg{ 65504ed31819Smrg 65514ed31819Smrg ; 65524ed31819Smrg return 0; 65534ed31819Smrg} 65544ed31819Smrg_ACEOF 65554ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 65564ed31819Smrg eval $cacheid=yes 65574ed31819Smrgelse 65584ed31819Smrg eval $cacheid=no 65594ed31819Smrgfi 65604ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 65614ed31819Smrg conftest$ac_exeext conftest.$ac_ext 65624ed31819Smrgfi 65634ed31819Smrg 65644ed31819Smrg 65654ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65664ed31819Smrg 65674ed31819Smrg eval supported=\$$cacheid 65684ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 65694ed31819Smrg$as_echo "$supported" >&6; } 65704ed31819Smrg if test "$supported" = "yes" ; then 65714ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 65724ed31819Smrg found="yes" 65734ed31819Smrg fi 65744ed31819Smrg fi 65754ed31819Smrg 65764ed31819Smrg 65774ed31819Smrg 65784ed31819Smrg 65794ed31819Smrg 65804ed31819Smrg 65814ed31819Smrg 65824ed31819Smrg 65834ed31819Smrg 65844ed31819Smrg 65854ed31819Smrg 65864ed31819Smrg 65874ed31819Smrg 65884ed31819Smrg 65894ed31819Smrg 65904ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 65914ed31819Smrg 65924ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 65934ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65944ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 65954ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 65964ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 65974ed31819Smrg $as_echo_n "(cached) " >&6 65984ed31819Smrgelse 65994ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66004ed31819Smrg/* end confdefs.h. */ 66014ed31819Smrgint i; 66024ed31819Smrg_ACEOF 66034ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 66044ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 66054ed31819Smrgelse 66064ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 66074ed31819Smrgfi 66084ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66094ed31819Smrgfi 66104ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 66114ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 66124ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 66134ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66144ed31819Smrgfi 66154ed31819Smrg 66164ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 66174ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 66184ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66194ed31819Smrg fi 66204ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66214ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 66224ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 66234ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 66244ed31819Smrg $as_echo_n "(cached) " >&6 66254ed31819Smrgelse 66264ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66274ed31819Smrg/* end confdefs.h. */ 66284ed31819Smrgint i; 66294ed31819Smrg_ACEOF 66304ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 66314ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 66324ed31819Smrgelse 66334ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 66344ed31819Smrgfi 66354ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66364ed31819Smrgfi 66374ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 66384ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 66394ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 66404ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66414ed31819Smrgfi 66424ed31819Smrg 66434ed31819Smrgfound="no" 66444ed31819Smrg 66454ed31819Smrg if test $found = "no" ; then 66464ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 66474ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66484ed31819Smrg fi 66494ed31819Smrg 66504ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 66514ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66524ed31819Smrg fi 66534ed31819Smrg 66544ed31819Smrg CFLAGS="$CFLAGS -Wredundant-decls" 66554ed31819Smrg 66564ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 66574ed31819Smrg$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 66584ed31819Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 66594ed31819Smrg if eval \${$cacheid+:} false; then : 66604ed31819Smrg $as_echo_n "(cached) " >&6 66614ed31819Smrgelse 66624ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66634ed31819Smrg/* end confdefs.h. */ 66644ed31819Smrgint i; 66654ed31819Smrgint 66664ed31819Smrgmain () 66674ed31819Smrg{ 66684ed31819Smrg 66694ed31819Smrg ; 66704ed31819Smrg return 0; 66714ed31819Smrg} 66724ed31819Smrg_ACEOF 66734ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 66744ed31819Smrg eval $cacheid=yes 66754ed31819Smrgelse 66764ed31819Smrg eval $cacheid=no 66774ed31819Smrgfi 66784ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 66794ed31819Smrg conftest$ac_exeext conftest.$ac_ext 66804ed31819Smrgfi 66814ed31819Smrg 66824ed31819Smrg 66834ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66844ed31819Smrg 66854ed31819Smrg eval supported=\$$cacheid 66864ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 66874ed31819Smrg$as_echo "$supported" >&6; } 66884ed31819Smrg if test "$supported" = "yes" ; then 66894ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 66904ed31819Smrg found="yes" 66914ed31819Smrg fi 66924ed31819Smrg fi 66934ed31819Smrg 66944ed31819Smrg 66954ed31819Smrg 66964ed31819Smrg# These are currently disabled because they are noisy. They will be enabled 66974ed31819Smrg# in the future once the codebase is sufficiently modernized to silence 66984ed31819Smrg# them. For now, I don't want them to drown out the other warnings. 66994ed31819Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 67004ed31819Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 67014ed31819Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 67024ed31819Smrg 67034ed31819Smrg# Turn some warnings into errors, so we don't accidently get successful builds 67044ed31819Smrg# when there are problems that should be fixed. 67054ed31819Smrg 67064ed31819Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 67074ed31819Smrg 67084ed31819Smrg 67094ed31819Smrg 67104ed31819Smrg 67114ed31819Smrg 67124ed31819Smrg 67134ed31819Smrg 67144ed31819Smrg 67154ed31819Smrg 67164ed31819Smrg 67174ed31819Smrg 67184ed31819Smrg 67194ed31819Smrg 67204ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 67214ed31819Smrg 67224ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 67234ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67244ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 67254ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 67264ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 67274ed31819Smrg $as_echo_n "(cached) " >&6 67284ed31819Smrgelse 67294ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67304ed31819Smrg/* end confdefs.h. */ 67314ed31819Smrgint i; 67324ed31819Smrg_ACEOF 67334ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 67344ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 67354ed31819Smrgelse 67364ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 67374ed31819Smrgfi 67384ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67394ed31819Smrgfi 67404ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 67414ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 67424ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 67434ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67444ed31819Smrgfi 67454ed31819Smrg 67464ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 67474ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 67484ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67494ed31819Smrg fi 67504ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67514ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 67524ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 67534ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 67544ed31819Smrg $as_echo_n "(cached) " >&6 67554ed31819Smrgelse 67564ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67574ed31819Smrg/* end confdefs.h. */ 67584ed31819Smrgint i; 67594ed31819Smrg_ACEOF 67604ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 67614ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 67624ed31819Smrgelse 67634ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 67644ed31819Smrgfi 67654ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67664ed31819Smrgfi 67674ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 67684ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 67694ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 67704ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67714ed31819Smrgfi 67724ed31819Smrg 67734ed31819Smrgfound="no" 67744ed31819Smrg 67754ed31819Smrg if test $found = "no" ; then 67764ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 67774ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67784ed31819Smrg fi 67794ed31819Smrg 67804ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 67814ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67824ed31819Smrg fi 67834ed31819Smrg 67844ed31819Smrg CFLAGS="$CFLAGS -Werror=implicit" 67854ed31819Smrg 67864ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 67874ed31819Smrg$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 67884ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 67894ed31819Smrg if eval \${$cacheid+:} false; then : 67904ed31819Smrg $as_echo_n "(cached) " >&6 67914ed31819Smrgelse 67924ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67934ed31819Smrg/* end confdefs.h. */ 67944ed31819Smrgint i; 67954ed31819Smrgint 67964ed31819Smrgmain () 67974ed31819Smrg{ 67984ed31819Smrg 67994ed31819Smrg ; 68004ed31819Smrg return 0; 68014ed31819Smrg} 68024ed31819Smrg_ACEOF 68034ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 68044ed31819Smrg eval $cacheid=yes 68054ed31819Smrgelse 68064ed31819Smrg eval $cacheid=no 68074ed31819Smrgfi 68084ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 68094ed31819Smrg conftest$ac_exeext conftest.$ac_ext 68104ed31819Smrgfi 68114ed31819Smrg 68124ed31819Smrg 68134ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68144ed31819Smrg 68154ed31819Smrg eval supported=\$$cacheid 68164ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68174ed31819Smrg$as_echo "$supported" >&6; } 68184ed31819Smrg if test "$supported" = "yes" ; then 68194ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 68204ed31819Smrg found="yes" 68214ed31819Smrg fi 68224ed31819Smrg fi 68234ed31819Smrg 68244ed31819Smrg if test $found = "no" ; then 68254ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 68264ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68274ed31819Smrg fi 68284ed31819Smrg 68294ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 68304ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68314ed31819Smrg fi 68324ed31819Smrg 68334ed31819Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 68344ed31819Smrg 68354ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 68364ed31819Smrg$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 68374ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 68384ed31819Smrg if eval \${$cacheid+:} false; then : 68394ed31819Smrg $as_echo_n "(cached) " >&6 68404ed31819Smrgelse 68414ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68424ed31819Smrg/* end confdefs.h. */ 68434ed31819Smrgint i; 68444ed31819Smrgint 68454ed31819Smrgmain () 68464ed31819Smrg{ 68474ed31819Smrg 68484ed31819Smrg ; 68494ed31819Smrg return 0; 68504ed31819Smrg} 68514ed31819Smrg_ACEOF 68524ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 68534ed31819Smrg eval $cacheid=yes 68544ed31819Smrgelse 68554ed31819Smrg eval $cacheid=no 68564ed31819Smrgfi 68574ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 68584ed31819Smrg conftest$ac_exeext conftest.$ac_ext 68594ed31819Smrgfi 68604ed31819Smrg 68614ed31819Smrg 68624ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68634ed31819Smrg 68644ed31819Smrg eval supported=\$$cacheid 68654ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68664ed31819Smrg$as_echo "$supported" >&6; } 68674ed31819Smrg if test "$supported" = "yes" ; then 68684ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 68694ed31819Smrg found="yes" 68704ed31819Smrg fi 68714ed31819Smrg fi 68724ed31819Smrg 68734ed31819Smrg 68744ed31819Smrg 68754ed31819Smrg 68764ed31819Smrg 68774ed31819Smrg 68784ed31819Smrg 68794ed31819Smrg 68804ed31819Smrg 68814ed31819Smrg 68824ed31819Smrg 68834ed31819Smrg 68844ed31819Smrg 68854ed31819Smrg 68864ed31819Smrg 68874ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 68884ed31819Smrg 68894ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 68904ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68914ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 68924ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 68934ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 68944ed31819Smrg $as_echo_n "(cached) " >&6 68954ed31819Smrgelse 68964ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68974ed31819Smrg/* end confdefs.h. */ 68984ed31819Smrgint i; 68994ed31819Smrg_ACEOF 69004ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 69014ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 69024ed31819Smrgelse 69034ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 69044ed31819Smrgfi 69054ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 69064ed31819Smrgfi 69074ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 69084ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 69094ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 69104ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69114ed31819Smrgfi 69124ed31819Smrg 69134ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 69144ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 69154ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69164ed31819Smrg fi 69174ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69184ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 69194ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 69204ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 69214ed31819Smrg $as_echo_n "(cached) " >&6 69224ed31819Smrgelse 69234ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69244ed31819Smrg/* end confdefs.h. */ 69254ed31819Smrgint i; 69264ed31819Smrg_ACEOF 69274ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 69284ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 69294ed31819Smrgelse 69304ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 69314ed31819Smrgfi 69324ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 69334ed31819Smrgfi 69344ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 69354ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 69364ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 69374ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69384ed31819Smrgfi 69394ed31819Smrg 69404ed31819Smrgfound="no" 69414ed31819Smrg 69424ed31819Smrg if test $found = "no" ; then 69434ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 69444ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69454ed31819Smrg fi 69464ed31819Smrg 69474ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 69484ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69494ed31819Smrg fi 69504ed31819Smrg 69514ed31819Smrg CFLAGS="$CFLAGS -Werror=nonnull" 69524ed31819Smrg 69534ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 69544ed31819Smrg$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 69554ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 69564ed31819Smrg if eval \${$cacheid+:} false; then : 69574ed31819Smrg $as_echo_n "(cached) " >&6 69584ed31819Smrgelse 69594ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69604ed31819Smrg/* end confdefs.h. */ 69614ed31819Smrgint i; 69624ed31819Smrgint 69634ed31819Smrgmain () 69644ed31819Smrg{ 69654ed31819Smrg 69664ed31819Smrg ; 69674ed31819Smrg return 0; 69684ed31819Smrg} 69694ed31819Smrg_ACEOF 69704ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 69714ed31819Smrg eval $cacheid=yes 69724ed31819Smrgelse 69734ed31819Smrg eval $cacheid=no 69744ed31819Smrgfi 69754ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 69764ed31819Smrg conftest$ac_exeext conftest.$ac_ext 69774ed31819Smrgfi 69784ed31819Smrg 69794ed31819Smrg 69804ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69814ed31819Smrg 69824ed31819Smrg eval supported=\$$cacheid 69834ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 69844ed31819Smrg$as_echo "$supported" >&6; } 69854ed31819Smrg if test "$supported" = "yes" ; then 69864ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 69874ed31819Smrg found="yes" 69884ed31819Smrg fi 69894ed31819Smrg fi 69904ed31819Smrg 69914ed31819Smrg 69924ed31819Smrg 69934ed31819Smrg 69944ed31819Smrg 69954ed31819Smrg 69964ed31819Smrg 69974ed31819Smrg 69984ed31819Smrg 69994ed31819Smrg 70004ed31819Smrg 70014ed31819Smrg 70024ed31819Smrg 70034ed31819Smrg 70044ed31819Smrg 70054ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 70064ed31819Smrg 70074ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 70084ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70094ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 70104ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 70114ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 70124ed31819Smrg $as_echo_n "(cached) " >&6 70134ed31819Smrgelse 70144ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70154ed31819Smrg/* end confdefs.h. */ 70164ed31819Smrgint i; 70174ed31819Smrg_ACEOF 70184ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 70194ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 70204ed31819Smrgelse 70214ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 70224ed31819Smrgfi 70234ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 70244ed31819Smrgfi 70254ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 70264ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 70274ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 70284ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70294ed31819Smrgfi 70304ed31819Smrg 70314ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 70324ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 70334ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70344ed31819Smrg fi 70354ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70364ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 70374ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 70384ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 70394ed31819Smrg $as_echo_n "(cached) " >&6 70404ed31819Smrgelse 70414ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70424ed31819Smrg/* end confdefs.h. */ 70434ed31819Smrgint i; 70444ed31819Smrg_ACEOF 70454ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 70464ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 70474ed31819Smrgelse 70484ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 70494ed31819Smrgfi 70504ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 70514ed31819Smrgfi 70524ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 70534ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 70544ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 70554ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70564ed31819Smrgfi 70574ed31819Smrg 70584ed31819Smrgfound="no" 70594ed31819Smrg 70604ed31819Smrg if test $found = "no" ; then 70614ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 70624ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70634ed31819Smrg fi 70644ed31819Smrg 70654ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 70664ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70674ed31819Smrg fi 70684ed31819Smrg 70694ed31819Smrg CFLAGS="$CFLAGS -Werror=init-self" 70704ed31819Smrg 70714ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 70724ed31819Smrg$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 70734ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 70744ed31819Smrg if eval \${$cacheid+:} false; then : 70754ed31819Smrg $as_echo_n "(cached) " >&6 70764ed31819Smrgelse 70774ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70784ed31819Smrg/* end confdefs.h. */ 70794ed31819Smrgint i; 70804ed31819Smrgint 70814ed31819Smrgmain () 70824ed31819Smrg{ 70834ed31819Smrg 70844ed31819Smrg ; 70854ed31819Smrg return 0; 70864ed31819Smrg} 70874ed31819Smrg_ACEOF 70884ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 70894ed31819Smrg eval $cacheid=yes 70904ed31819Smrgelse 70914ed31819Smrg eval $cacheid=no 70924ed31819Smrgfi 70934ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 70944ed31819Smrg conftest$ac_exeext conftest.$ac_ext 70954ed31819Smrgfi 70964ed31819Smrg 70974ed31819Smrg 70984ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70994ed31819Smrg 71004ed31819Smrg eval supported=\$$cacheid 71014ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 71024ed31819Smrg$as_echo "$supported" >&6; } 71034ed31819Smrg if test "$supported" = "yes" ; then 71044ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 71054ed31819Smrg found="yes" 71064ed31819Smrg fi 71074ed31819Smrg fi 71084ed31819Smrg 71094ed31819Smrg 71104ed31819Smrg 71114ed31819Smrg 71124ed31819Smrg 71134ed31819Smrg 71144ed31819Smrg 71154ed31819Smrg 71164ed31819Smrg 71174ed31819Smrg 71184ed31819Smrg 71194ed31819Smrg 71204ed31819Smrg 71214ed31819Smrg 71224ed31819Smrg 71234ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 71244ed31819Smrg 71254ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 71264ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71274ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 71284ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 71294ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 71304ed31819Smrg $as_echo_n "(cached) " >&6 71314ed31819Smrgelse 71324ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71334ed31819Smrg/* end confdefs.h. */ 71344ed31819Smrgint i; 71354ed31819Smrg_ACEOF 71364ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 71374ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 71384ed31819Smrgelse 71394ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 71404ed31819Smrgfi 71414ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 71424ed31819Smrgfi 71434ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 71444ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 71454ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 71464ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71474ed31819Smrgfi 71484ed31819Smrg 71494ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 71504ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 71514ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71524ed31819Smrg fi 71534ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71544ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 71554ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 71564ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 71574ed31819Smrg $as_echo_n "(cached) " >&6 71584ed31819Smrgelse 71594ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71604ed31819Smrg/* end confdefs.h. */ 71614ed31819Smrgint i; 71624ed31819Smrg_ACEOF 71634ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 71644ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 71654ed31819Smrgelse 71664ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 71674ed31819Smrgfi 71684ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 71694ed31819Smrgfi 71704ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 71714ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 71724ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 71734ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71744ed31819Smrgfi 71754ed31819Smrg 71764ed31819Smrgfound="no" 71774ed31819Smrg 71784ed31819Smrg if test $found = "no" ; then 71794ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 71804ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71814ed31819Smrg fi 71824ed31819Smrg 71834ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 71844ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71854ed31819Smrg fi 71864ed31819Smrg 71874ed31819Smrg CFLAGS="$CFLAGS -Werror=main" 71884ed31819Smrg 71894ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 71904ed31819Smrg$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 71914ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 71924ed31819Smrg if eval \${$cacheid+:} false; then : 71934ed31819Smrg $as_echo_n "(cached) " >&6 71944ed31819Smrgelse 71954ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71964ed31819Smrg/* end confdefs.h. */ 71974ed31819Smrgint i; 71984ed31819Smrgint 71994ed31819Smrgmain () 72004ed31819Smrg{ 72014ed31819Smrg 72024ed31819Smrg ; 72034ed31819Smrg return 0; 72044ed31819Smrg} 72054ed31819Smrg_ACEOF 72064ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 72074ed31819Smrg eval $cacheid=yes 72084ed31819Smrgelse 72094ed31819Smrg eval $cacheid=no 72104ed31819Smrgfi 72114ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 72124ed31819Smrg conftest$ac_exeext conftest.$ac_ext 72134ed31819Smrgfi 72144ed31819Smrg 72154ed31819Smrg 72164ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72174ed31819Smrg 72184ed31819Smrg eval supported=\$$cacheid 72194ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 72204ed31819Smrg$as_echo "$supported" >&6; } 72214ed31819Smrg if test "$supported" = "yes" ; then 72224ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 72234ed31819Smrg found="yes" 72244ed31819Smrg fi 72254ed31819Smrg fi 72264ed31819Smrg 72274ed31819Smrg 72284ed31819Smrg 72294ed31819Smrg 72304ed31819Smrg 72314ed31819Smrg 72324ed31819Smrg 72334ed31819Smrg 72344ed31819Smrg 72354ed31819Smrg 72364ed31819Smrg 72374ed31819Smrg 72384ed31819Smrg 72394ed31819Smrg 72404ed31819Smrg 72414ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 72424ed31819Smrg 72434ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 72444ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72454ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 72464ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 72474ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 72484ed31819Smrg $as_echo_n "(cached) " >&6 72494ed31819Smrgelse 72504ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72514ed31819Smrg/* end confdefs.h. */ 72524ed31819Smrgint i; 72534ed31819Smrg_ACEOF 72544ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 72554ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 72564ed31819Smrgelse 72574ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 72584ed31819Smrgfi 72594ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 72604ed31819Smrgfi 72614ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 72624ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 72634ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 72644ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72654ed31819Smrgfi 72664ed31819Smrg 72674ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 72684ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 72694ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72704ed31819Smrg fi 72714ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72724ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 72734ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 72744ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 72754ed31819Smrg $as_echo_n "(cached) " >&6 72764ed31819Smrgelse 72774ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72784ed31819Smrg/* end confdefs.h. */ 72794ed31819Smrgint i; 72804ed31819Smrg_ACEOF 72814ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 72824ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 72834ed31819Smrgelse 72844ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 72854ed31819Smrgfi 72864ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 72874ed31819Smrgfi 72884ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 72894ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 72904ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 72914ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72924ed31819Smrgfi 72934ed31819Smrg 72944ed31819Smrgfound="no" 72954ed31819Smrg 72964ed31819Smrg if test $found = "no" ; then 72974ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 72984ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72994ed31819Smrg fi 73004ed31819Smrg 73014ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 73024ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73034ed31819Smrg fi 73044ed31819Smrg 73054ed31819Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 73064ed31819Smrg 73074ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 73084ed31819Smrg$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 73094ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 73104ed31819Smrg if eval \${$cacheid+:} false; then : 73114ed31819Smrg $as_echo_n "(cached) " >&6 73124ed31819Smrgelse 73134ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73144ed31819Smrg/* end confdefs.h. */ 73154ed31819Smrgint i; 73164ed31819Smrgint 73174ed31819Smrgmain () 73184ed31819Smrg{ 73194ed31819Smrg 73204ed31819Smrg ; 73214ed31819Smrg return 0; 73224ed31819Smrg} 73234ed31819Smrg_ACEOF 73244ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 73254ed31819Smrg eval $cacheid=yes 73264ed31819Smrgelse 73274ed31819Smrg eval $cacheid=no 73284ed31819Smrgfi 73294ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 73304ed31819Smrg conftest$ac_exeext conftest.$ac_ext 73314ed31819Smrgfi 73324ed31819Smrg 73334ed31819Smrg 73344ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73354ed31819Smrg 73364ed31819Smrg eval supported=\$$cacheid 73374ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 73384ed31819Smrg$as_echo "$supported" >&6; } 73394ed31819Smrg if test "$supported" = "yes" ; then 73404ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 73414ed31819Smrg found="yes" 73424ed31819Smrg fi 73434ed31819Smrg fi 73444ed31819Smrg 73454ed31819Smrg 73464ed31819Smrg 73474ed31819Smrg 73484ed31819Smrg 73494ed31819Smrg 73504ed31819Smrg 73514ed31819Smrg 73524ed31819Smrg 73534ed31819Smrg 73544ed31819Smrg 73554ed31819Smrg 73564ed31819Smrg 73574ed31819Smrg 73584ed31819Smrg 73594ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 73604ed31819Smrg 73614ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 73624ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73634ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 73644ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 73654ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 73664ed31819Smrg $as_echo_n "(cached) " >&6 73674ed31819Smrgelse 73684ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73694ed31819Smrg/* end confdefs.h. */ 73704ed31819Smrgint i; 73714ed31819Smrg_ACEOF 73724ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 73734ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 73744ed31819Smrgelse 73754ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 73764ed31819Smrgfi 73774ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 73784ed31819Smrgfi 73794ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 73804ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 73814ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 73824ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73834ed31819Smrgfi 73844ed31819Smrg 73854ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 73864ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 73874ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73884ed31819Smrg fi 73894ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73904ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 73914ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 73924ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 73934ed31819Smrg $as_echo_n "(cached) " >&6 73944ed31819Smrgelse 73954ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73964ed31819Smrg/* end confdefs.h. */ 73974ed31819Smrgint i; 73984ed31819Smrg_ACEOF 73994ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 74004ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 74014ed31819Smrgelse 74024ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 74034ed31819Smrgfi 74044ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 74054ed31819Smrgfi 74064ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 74074ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 74084ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 74094ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74104ed31819Smrgfi 74114ed31819Smrg 74124ed31819Smrgfound="no" 74134ed31819Smrg 74144ed31819Smrg if test $found = "no" ; then 74154ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 74164ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74174ed31819Smrg fi 74184ed31819Smrg 74194ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 74204ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74214ed31819Smrg fi 74224ed31819Smrg 74234ed31819Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 74244ed31819Smrg 74254ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 74264ed31819Smrg$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 74274ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 74284ed31819Smrg if eval \${$cacheid+:} false; then : 74294ed31819Smrg $as_echo_n "(cached) " >&6 74304ed31819Smrgelse 74314ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74324ed31819Smrg/* end confdefs.h. */ 74334ed31819Smrgint i; 74344ed31819Smrgint 74354ed31819Smrgmain () 74364ed31819Smrg{ 74374ed31819Smrg 74384ed31819Smrg ; 74394ed31819Smrg return 0; 74404ed31819Smrg} 74414ed31819Smrg_ACEOF 74424ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 74434ed31819Smrg eval $cacheid=yes 74444ed31819Smrgelse 74454ed31819Smrg eval $cacheid=no 74464ed31819Smrgfi 74474ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 74484ed31819Smrg conftest$ac_exeext conftest.$ac_ext 74494ed31819Smrgfi 74504ed31819Smrg 74514ed31819Smrg 74524ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74534ed31819Smrg 74544ed31819Smrg eval supported=\$$cacheid 74554ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74564ed31819Smrg$as_echo "$supported" >&6; } 74574ed31819Smrg if test "$supported" = "yes" ; then 74584ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 74594ed31819Smrg found="yes" 74604ed31819Smrg fi 74614ed31819Smrg fi 74624ed31819Smrg 74634ed31819Smrg 74644ed31819Smrg 74654ed31819Smrg 74664ed31819Smrg 74674ed31819Smrg 74684ed31819Smrg 74694ed31819Smrg 74704ed31819Smrg 74714ed31819Smrg 74724ed31819Smrg 74734ed31819Smrg 74744ed31819Smrg 74754ed31819Smrg 74764ed31819Smrg 74774ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 74784ed31819Smrg 74794ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 74804ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74814ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 74824ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 74834ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 74844ed31819Smrg $as_echo_n "(cached) " >&6 74854ed31819Smrgelse 74864ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74874ed31819Smrg/* end confdefs.h. */ 74884ed31819Smrgint i; 74894ed31819Smrg_ACEOF 74904ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 74914ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 74924ed31819Smrgelse 74934ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 74944ed31819Smrgfi 74954ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 74964ed31819Smrgfi 74974ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 74984ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 74994ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 75004ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75014ed31819Smrgfi 75024ed31819Smrg 75034ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 75044ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 75054ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75064ed31819Smrg fi 75074ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75084ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 75094ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 75104ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 75114ed31819Smrg $as_echo_n "(cached) " >&6 75124ed31819Smrgelse 75134ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75144ed31819Smrg/* end confdefs.h. */ 75154ed31819Smrgint i; 75164ed31819Smrg_ACEOF 75174ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 75184ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 75194ed31819Smrgelse 75204ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 75214ed31819Smrgfi 75224ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 75234ed31819Smrgfi 75244ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 75254ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 75264ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 75274ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75284ed31819Smrgfi 75294ed31819Smrg 75304ed31819Smrgfound="no" 75314ed31819Smrg 75324ed31819Smrg if test $found = "no" ; then 75334ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 75344ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75354ed31819Smrg fi 75364ed31819Smrg 75374ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 75384ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75394ed31819Smrg fi 75404ed31819Smrg 75414ed31819Smrg CFLAGS="$CFLAGS -Werror=return-type" 75424ed31819Smrg 75434ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 75444ed31819Smrg$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 75454ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 75464ed31819Smrg if eval \${$cacheid+:} false; then : 75474ed31819Smrg $as_echo_n "(cached) " >&6 75484ed31819Smrgelse 75494ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75504ed31819Smrg/* end confdefs.h. */ 75514ed31819Smrgint i; 75524ed31819Smrgint 75534ed31819Smrgmain () 75544ed31819Smrg{ 75554ed31819Smrg 75564ed31819Smrg ; 75574ed31819Smrg return 0; 75584ed31819Smrg} 75594ed31819Smrg_ACEOF 75604ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 75614ed31819Smrg eval $cacheid=yes 75624ed31819Smrgelse 75634ed31819Smrg eval $cacheid=no 75644ed31819Smrgfi 75654ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 75664ed31819Smrg conftest$ac_exeext conftest.$ac_ext 75674ed31819Smrgfi 75684ed31819Smrg 75694ed31819Smrg 75704ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75714ed31819Smrg 75724ed31819Smrg eval supported=\$$cacheid 75734ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 75744ed31819Smrg$as_echo "$supported" >&6; } 75754ed31819Smrg if test "$supported" = "yes" ; then 75764ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 75774ed31819Smrg found="yes" 75784ed31819Smrg fi 75794ed31819Smrg fi 75804ed31819Smrg 75814ed31819Smrg if test $found = "no" ; then 75824ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 75834ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75844ed31819Smrg fi 75854ed31819Smrg 75864ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 75874ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75884ed31819Smrg fi 75894ed31819Smrg 75904ed31819Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 75914ed31819Smrg 75924ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 75934ed31819Smrg$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 75944ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 75954ed31819Smrg if eval \${$cacheid+:} false; then : 75964ed31819Smrg $as_echo_n "(cached) " >&6 75974ed31819Smrgelse 75984ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75994ed31819Smrg/* end confdefs.h. */ 76004ed31819Smrgint i; 76014ed31819Smrgint 76024ed31819Smrgmain () 76034ed31819Smrg{ 76044ed31819Smrg 76054ed31819Smrg ; 76064ed31819Smrg return 0; 76074ed31819Smrg} 76084ed31819Smrg_ACEOF 76094ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 76104ed31819Smrg eval $cacheid=yes 76114ed31819Smrgelse 76124ed31819Smrg eval $cacheid=no 76134ed31819Smrgfi 76144ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 76154ed31819Smrg conftest$ac_exeext conftest.$ac_ext 76164ed31819Smrgfi 76174ed31819Smrg 76184ed31819Smrg 76194ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76204ed31819Smrg 76214ed31819Smrg eval supported=\$$cacheid 76224ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 76234ed31819Smrg$as_echo "$supported" >&6; } 76244ed31819Smrg if test "$supported" = "yes" ; then 76254ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 76264ed31819Smrg found="yes" 76274ed31819Smrg fi 76284ed31819Smrg fi 76294ed31819Smrg 76304ed31819Smrg 76314ed31819Smrg 76324ed31819Smrg 76334ed31819Smrg 76344ed31819Smrg 76354ed31819Smrg 76364ed31819Smrg 76374ed31819Smrg 76384ed31819Smrg 76394ed31819Smrg 76404ed31819Smrg 76414ed31819Smrg 76424ed31819Smrg 76434ed31819Smrg 76444ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 76454ed31819Smrg 76464ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 76474ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76484ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 76494ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 76504ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 76514ed31819Smrg $as_echo_n "(cached) " >&6 76524ed31819Smrgelse 76534ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76544ed31819Smrg/* end confdefs.h. */ 76554ed31819Smrgint i; 76564ed31819Smrg_ACEOF 76574ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 76584ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 76594ed31819Smrgelse 76604ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 76614ed31819Smrgfi 76624ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 76634ed31819Smrgfi 76644ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 76654ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 76664ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 76674ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76684ed31819Smrgfi 76694ed31819Smrg 76704ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 76714ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 76724ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76734ed31819Smrg fi 76744ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76754ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 76764ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 76774ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 76784ed31819Smrg $as_echo_n "(cached) " >&6 76794ed31819Smrgelse 76804ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76814ed31819Smrg/* end confdefs.h. */ 76824ed31819Smrgint i; 76834ed31819Smrg_ACEOF 76844ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 76854ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 76864ed31819Smrgelse 76874ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 76884ed31819Smrgfi 76894ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 76904ed31819Smrgfi 76914ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 76924ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 76934ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 76944ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76954ed31819Smrgfi 76964ed31819Smrg 76974ed31819Smrgfound="no" 76984ed31819Smrg 76994ed31819Smrg if test $found = "no" ; then 77004ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 77014ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77024ed31819Smrg fi 77034ed31819Smrg 77044ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 77054ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77064ed31819Smrg fi 77074ed31819Smrg 77084ed31819Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 77094ed31819Smrg 77104ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 77114ed31819Smrg$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 77124ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 77134ed31819Smrg if eval \${$cacheid+:} false; then : 77144ed31819Smrg $as_echo_n "(cached) " >&6 77154ed31819Smrgelse 77164ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77174ed31819Smrg/* end confdefs.h. */ 77184ed31819Smrgint i; 77194ed31819Smrgint 77204ed31819Smrgmain () 77214ed31819Smrg{ 77224ed31819Smrg 77234ed31819Smrg ; 77244ed31819Smrg return 0; 77254ed31819Smrg} 77264ed31819Smrg_ACEOF 77274ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 77284ed31819Smrg eval $cacheid=yes 77294ed31819Smrgelse 77304ed31819Smrg eval $cacheid=no 77314ed31819Smrgfi 77324ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 77334ed31819Smrg conftest$ac_exeext conftest.$ac_ext 77344ed31819Smrgfi 77354ed31819Smrg 77364ed31819Smrg 77374ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77384ed31819Smrg 77394ed31819Smrg eval supported=\$$cacheid 77404ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 77414ed31819Smrg$as_echo "$supported" >&6; } 77424ed31819Smrg if test "$supported" = "yes" ; then 77434ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 77444ed31819Smrg found="yes" 77454ed31819Smrg fi 77464ed31819Smrg fi 77474ed31819Smrg 77484ed31819Smrg 77494ed31819Smrg 77504ed31819Smrg 77514ed31819Smrg 77524ed31819Smrg 77534ed31819Smrg 77544ed31819Smrg 77554ed31819Smrg 77564ed31819Smrg 77574ed31819Smrg 77584ed31819Smrg 77594ed31819Smrg 77604ed31819Smrg 77614ed31819Smrg 77624ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 77634ed31819Smrg 77644ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 77654ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77664ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 77674ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 77684ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 77694ed31819Smrg $as_echo_n "(cached) " >&6 77704ed31819Smrgelse 77714ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77724ed31819Smrg/* end confdefs.h. */ 77734ed31819Smrgint i; 77744ed31819Smrg_ACEOF 77754ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 77764ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 77774ed31819Smrgelse 77784ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 77794ed31819Smrgfi 77804ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 77814ed31819Smrgfi 77824ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 77834ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 77844ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 77854ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77864ed31819Smrgfi 77874ed31819Smrg 77884ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 77894ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 77904ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77914ed31819Smrg fi 77924ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77934ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 77944ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 77954ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 77964ed31819Smrg $as_echo_n "(cached) " >&6 77974ed31819Smrgelse 77984ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77994ed31819Smrg/* end confdefs.h. */ 78004ed31819Smrgint i; 78014ed31819Smrg_ACEOF 78024ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 78034ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 78044ed31819Smrgelse 78054ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 78064ed31819Smrgfi 78074ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 78084ed31819Smrgfi 78094ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 78104ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 78114ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 78124ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78134ed31819Smrgfi 78144ed31819Smrg 78154ed31819Smrgfound="no" 78164ed31819Smrg 78174ed31819Smrg if test $found = "no" ; then 78184ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 78194ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78204ed31819Smrg fi 78214ed31819Smrg 78224ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 78234ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78244ed31819Smrg fi 78254ed31819Smrg 78264ed31819Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 78274ed31819Smrg 78284ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 78294ed31819Smrg$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 78304ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 78314ed31819Smrg if eval \${$cacheid+:} false; then : 78324ed31819Smrg $as_echo_n "(cached) " >&6 78334ed31819Smrgelse 78344ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78354ed31819Smrg/* end confdefs.h. */ 78364ed31819Smrgint i; 78374ed31819Smrgint 78384ed31819Smrgmain () 78394ed31819Smrg{ 78404ed31819Smrg 78414ed31819Smrg ; 78424ed31819Smrg return 0; 78434ed31819Smrg} 78444ed31819Smrg_ACEOF 78454ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 78464ed31819Smrg eval $cacheid=yes 78474ed31819Smrgelse 78484ed31819Smrg eval $cacheid=no 78494ed31819Smrgfi 78504ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 78514ed31819Smrg conftest$ac_exeext conftest.$ac_ext 78524ed31819Smrgfi 78534ed31819Smrg 78544ed31819Smrg 78554ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78564ed31819Smrg 78574ed31819Smrg eval supported=\$$cacheid 78584ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 78594ed31819Smrg$as_echo "$supported" >&6; } 78604ed31819Smrg if test "$supported" = "yes" ; then 78614ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 78624ed31819Smrg found="yes" 78634ed31819Smrg fi 78644ed31819Smrg fi 78654ed31819Smrg 78664ed31819Smrg 78674ed31819Smrg 78684ed31819Smrg 78694ed31819Smrg 78704ed31819Smrg 78714ed31819Smrg 78724ed31819Smrg 78734ed31819Smrg 78744ed31819Smrg 78754ed31819Smrg 78764ed31819Smrg 78774ed31819Smrg 78784ed31819Smrg 78794ed31819Smrg 78804ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 78814ed31819Smrg 78824ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 78834ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78844ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 78854ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 78864ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 78874ed31819Smrg $as_echo_n "(cached) " >&6 78884ed31819Smrgelse 78894ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78904ed31819Smrg/* end confdefs.h. */ 78914ed31819Smrgint i; 78924ed31819Smrg_ACEOF 78934ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 78944ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 78954ed31819Smrgelse 78964ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 78974ed31819Smrgfi 78984ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 78994ed31819Smrgfi 79004ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 79014ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 79024ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 79034ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79044ed31819Smrgfi 79054ed31819Smrg 79064ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 79074ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 79084ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79094ed31819Smrg fi 79104ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79114ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 79124ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 79134ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 79144ed31819Smrg $as_echo_n "(cached) " >&6 79154ed31819Smrgelse 79164ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79174ed31819Smrg/* end confdefs.h. */ 79184ed31819Smrgint i; 79194ed31819Smrg_ACEOF 79204ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 79214ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 79224ed31819Smrgelse 79234ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 79244ed31819Smrgfi 79254ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 79264ed31819Smrgfi 79274ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 79284ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 79294ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 79304ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79314ed31819Smrgfi 79324ed31819Smrg 79334ed31819Smrgfound="no" 79344ed31819Smrg 79354ed31819Smrg if test $found = "no" ; then 79364ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 79374ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79384ed31819Smrg fi 79394ed31819Smrg 79404ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 79414ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79424ed31819Smrg fi 79434ed31819Smrg 79444ed31819Smrg CFLAGS="$CFLAGS -Werror=write-strings" 79454ed31819Smrg 79464ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 79474ed31819Smrg$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 79484ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 79494ed31819Smrg if eval \${$cacheid+:} false; then : 79504ed31819Smrg $as_echo_n "(cached) " >&6 79514ed31819Smrgelse 79524ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79534ed31819Smrg/* end confdefs.h. */ 79544ed31819Smrgint i; 79554ed31819Smrgint 79564ed31819Smrgmain () 79574ed31819Smrg{ 79584ed31819Smrg 79594ed31819Smrg ; 79604ed31819Smrg return 0; 79614ed31819Smrg} 79624ed31819Smrg_ACEOF 79634ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 79644ed31819Smrg eval $cacheid=yes 79654ed31819Smrgelse 79664ed31819Smrg eval $cacheid=no 79674ed31819Smrgfi 79684ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 79694ed31819Smrg conftest$ac_exeext conftest.$ac_ext 79704ed31819Smrgfi 79714ed31819Smrg 79724ed31819Smrg 79734ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79744ed31819Smrg 79754ed31819Smrg eval supported=\$$cacheid 79764ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 79774ed31819Smrg$as_echo "$supported" >&6; } 79784ed31819Smrg if test "$supported" = "yes" ; then 79794ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 79804ed31819Smrg found="yes" 79814ed31819Smrg fi 79824ed31819Smrg fi 79834ed31819Smrg 79844ed31819Smrg 79854ed31819Smrg 79864ed31819Smrg 79874ed31819Smrg 79884ed31819Smrg 79894ed31819Smrg 79904ed31819Smrg 79914ed31819Smrg 79924ed31819Smrg 79934ed31819Smrg 79944ed31819Smrg 79954ed31819Smrg 79964ed31819Smrg 79974ed31819Smrg 79984ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 79994ed31819Smrg 80004ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 80014ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80024ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 80034ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 80044ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 80054ed31819Smrg $as_echo_n "(cached) " >&6 80064ed31819Smrgelse 80074ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80084ed31819Smrg/* end confdefs.h. */ 80094ed31819Smrgint i; 80104ed31819Smrg_ACEOF 80114ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 80124ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 80134ed31819Smrgelse 80144ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 80154ed31819Smrgfi 80164ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 80174ed31819Smrgfi 80184ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 80194ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 80204ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 80214ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80224ed31819Smrgfi 80234ed31819Smrg 80244ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 80254ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 80264ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80274ed31819Smrg fi 80284ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80294ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 80304ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 80314ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 80324ed31819Smrg $as_echo_n "(cached) " >&6 80334ed31819Smrgelse 80344ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80354ed31819Smrg/* end confdefs.h. */ 80364ed31819Smrgint i; 80374ed31819Smrg_ACEOF 80384ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 80394ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 80404ed31819Smrgelse 80414ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 80424ed31819Smrgfi 80434ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 80444ed31819Smrgfi 80454ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 80464ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 80474ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 80484ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80494ed31819Smrgfi 80504ed31819Smrg 80514ed31819Smrgfound="no" 80524ed31819Smrg 80534ed31819Smrg if test $found = "no" ; then 80544ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 80554ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80564ed31819Smrg fi 80574ed31819Smrg 80584ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 80594ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80604ed31819Smrg fi 80614ed31819Smrg 80624ed31819Smrg CFLAGS="$CFLAGS -Werror=address" 80634ed31819Smrg 80644ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 80654ed31819Smrg$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 80664ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 80674ed31819Smrg if eval \${$cacheid+:} false; then : 80684ed31819Smrg $as_echo_n "(cached) " >&6 80694ed31819Smrgelse 80704ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80714ed31819Smrg/* end confdefs.h. */ 80724ed31819Smrgint i; 80734ed31819Smrgint 80744ed31819Smrgmain () 80754ed31819Smrg{ 80764ed31819Smrg 80774ed31819Smrg ; 80784ed31819Smrg return 0; 80794ed31819Smrg} 80804ed31819Smrg_ACEOF 80814ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 80824ed31819Smrg eval $cacheid=yes 80834ed31819Smrgelse 80844ed31819Smrg eval $cacheid=no 80854ed31819Smrgfi 80864ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 80874ed31819Smrg conftest$ac_exeext conftest.$ac_ext 80884ed31819Smrgfi 80894ed31819Smrg 80904ed31819Smrg 80914ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80924ed31819Smrg 80934ed31819Smrg eval supported=\$$cacheid 80944ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 80954ed31819Smrg$as_echo "$supported" >&6; } 80964ed31819Smrg if test "$supported" = "yes" ; then 80974ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 80984ed31819Smrg found="yes" 80994ed31819Smrg fi 81004ed31819Smrg fi 81014ed31819Smrg 81024ed31819Smrg 81034ed31819Smrg 81044ed31819Smrg 81054ed31819Smrg 81064ed31819Smrg 81074ed31819Smrg 81084ed31819Smrg 81094ed31819Smrg 81104ed31819Smrg 81114ed31819Smrg 81124ed31819Smrg 81134ed31819Smrg 81144ed31819Smrg 81154ed31819Smrg 81164ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 81174ed31819Smrg 81184ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 81194ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81204ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 81214ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 81224ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 81234ed31819Smrg $as_echo_n "(cached) " >&6 81244ed31819Smrgelse 81254ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81264ed31819Smrg/* end confdefs.h. */ 81274ed31819Smrgint i; 81284ed31819Smrg_ACEOF 81294ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 81304ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 81314ed31819Smrgelse 81324ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 81334ed31819Smrgfi 81344ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 81354ed31819Smrgfi 81364ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 81374ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 81384ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 81394ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81404ed31819Smrgfi 81414ed31819Smrg 81424ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 81434ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 81444ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81454ed31819Smrg fi 81464ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81474ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 81484ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 81494ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 81504ed31819Smrg $as_echo_n "(cached) " >&6 81514ed31819Smrgelse 81524ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81534ed31819Smrg/* end confdefs.h. */ 81544ed31819Smrgint i; 81554ed31819Smrg_ACEOF 81564ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 81574ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 81584ed31819Smrgelse 81594ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 81604ed31819Smrgfi 81614ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 81624ed31819Smrgfi 81634ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 81644ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 81654ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 81664ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81674ed31819Smrgfi 81684ed31819Smrg 81694ed31819Smrgfound="no" 81704ed31819Smrg 81714ed31819Smrg if test $found = "no" ; then 81724ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 81734ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81744ed31819Smrg fi 81754ed31819Smrg 81764ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 81774ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81784ed31819Smrg fi 81794ed31819Smrg 81804ed31819Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 81814ed31819Smrg 81824ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 81834ed31819Smrg$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 81844ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 81854ed31819Smrg if eval \${$cacheid+:} false; then : 81864ed31819Smrg $as_echo_n "(cached) " >&6 81874ed31819Smrgelse 81884ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81894ed31819Smrg/* end confdefs.h. */ 81904ed31819Smrgint i; 81914ed31819Smrgint 81924ed31819Smrgmain () 81934ed31819Smrg{ 81944ed31819Smrg 81954ed31819Smrg ; 81964ed31819Smrg return 0; 81974ed31819Smrg} 81984ed31819Smrg_ACEOF 81994ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 82004ed31819Smrg eval $cacheid=yes 82014ed31819Smrgelse 82024ed31819Smrg eval $cacheid=no 82034ed31819Smrgfi 82044ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 82054ed31819Smrg conftest$ac_exeext conftest.$ac_ext 82064ed31819Smrgfi 82074ed31819Smrg 82084ed31819Smrg 82094ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82104ed31819Smrg 82114ed31819Smrg eval supported=\$$cacheid 82124ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82134ed31819Smrg$as_echo "$supported" >&6; } 82144ed31819Smrg if test "$supported" = "yes" ; then 82154ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 82164ed31819Smrg found="yes" 82174ed31819Smrg fi 82184ed31819Smrg fi 82194ed31819Smrg 82204ed31819Smrg if test $found = "no" ; then 82214ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 82224ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82234ed31819Smrg fi 82244ed31819Smrg 82254ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 82264ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82274ed31819Smrg fi 82284ed31819Smrg 82294ed31819Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 82304ed31819Smrg 82314ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 82324ed31819Smrg$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 82334ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 82344ed31819Smrg if eval \${$cacheid+:} false; then : 82354ed31819Smrg $as_echo_n "(cached) " >&6 82364ed31819Smrgelse 82374ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82384ed31819Smrg/* end confdefs.h. */ 82394ed31819Smrgint i; 82404ed31819Smrgint 82414ed31819Smrgmain () 82424ed31819Smrg{ 82434ed31819Smrg 82444ed31819Smrg ; 82454ed31819Smrg return 0; 82464ed31819Smrg} 82474ed31819Smrg_ACEOF 82484ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 82494ed31819Smrg eval $cacheid=yes 82504ed31819Smrgelse 82514ed31819Smrg eval $cacheid=no 82524ed31819Smrgfi 82534ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 82544ed31819Smrg conftest$ac_exeext conftest.$ac_ext 82554ed31819Smrgfi 82564ed31819Smrg 82574ed31819Smrg 82584ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82594ed31819Smrg 82604ed31819Smrg eval supported=\$$cacheid 82614ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82624ed31819Smrg$as_echo "$supported" >&6; } 82634ed31819Smrg if test "$supported" = "yes" ; then 82644ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 82654ed31819Smrg found="yes" 82664ed31819Smrg fi 82674ed31819Smrg fi 82684ed31819Smrg 82694ed31819Smrg 82704ed31819Smrg 82714ed31819Smrg 82724ed31819Smrg 82734ed31819Smrg 82744ed31819Smrg 82754ed31819Smrg 82764ed31819Smrg 82774ed31819Smrg 82784ed31819Smrg 82794ed31819Smrg 82804ed31819Smrg 82814ed31819Smrg 82824ed31819Smrg 82834ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 82844ed31819Smrg 82854ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 82864ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82874ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 82884ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 82894ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 82904ed31819Smrg $as_echo_n "(cached) " >&6 82914ed31819Smrgelse 82924ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82934ed31819Smrg/* end confdefs.h. */ 82944ed31819Smrgint i; 82954ed31819Smrg_ACEOF 82964ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 82974ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 82984ed31819Smrgelse 82994ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 83004ed31819Smrgfi 83014ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 83024ed31819Smrgfi 83034ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 83044ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 83054ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 83064ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83074ed31819Smrgfi 83084ed31819Smrg 83094ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 83104ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 83114ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83124ed31819Smrg fi 83134ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83144ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 83154ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 83164ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 83174ed31819Smrg $as_echo_n "(cached) " >&6 83184ed31819Smrgelse 83194ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83204ed31819Smrg/* end confdefs.h. */ 83214ed31819Smrgint i; 83224ed31819Smrg_ACEOF 83234ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 83244ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 83254ed31819Smrgelse 83264ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 83274ed31819Smrgfi 83284ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 83294ed31819Smrgfi 83304ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 83314ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 83324ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 83334ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83344ed31819Smrgfi 83354ed31819Smrg 83364ed31819Smrgfound="no" 83374ed31819Smrg 83384ed31819Smrg if test $found = "no" ; then 83394ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 83404ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83414ed31819Smrg fi 83424ed31819Smrg 83434ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 83444ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83454ed31819Smrg fi 83464ed31819Smrg 83474ed31819Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 83484ed31819Smrg 83494ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 83504ed31819Smrg$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 83514ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 83524ed31819Smrg if eval \${$cacheid+:} false; then : 83534ed31819Smrg $as_echo_n "(cached) " >&6 83544ed31819Smrgelse 83554ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83564ed31819Smrg/* end confdefs.h. */ 83574ed31819Smrgint i; 83584ed31819Smrgint 83594ed31819Smrgmain () 83604ed31819Smrg{ 83614ed31819Smrg 83624ed31819Smrg ; 83634ed31819Smrg return 0; 83644ed31819Smrg} 83654ed31819Smrg_ACEOF 83664ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 83674ed31819Smrg eval $cacheid=yes 83684ed31819Smrgelse 83694ed31819Smrg eval $cacheid=no 83704ed31819Smrgfi 83714ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 83724ed31819Smrg conftest$ac_exeext conftest.$ac_ext 83734ed31819Smrgfi 83744ed31819Smrg 83754ed31819Smrg 83764ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83774ed31819Smrg 83784ed31819Smrg eval supported=\$$cacheid 83794ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 83804ed31819Smrg$as_echo "$supported" >&6; } 83814ed31819Smrg if test "$supported" = "yes" ; then 83824ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 83834ed31819Smrg found="yes" 83844ed31819Smrg fi 83854ed31819Smrg fi 83864ed31819Smrg 83874ed31819Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 83884ed31819Smrgelse 83894ed31819Smrg{ $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 83904ed31819Smrg$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;} 83914ed31819Smrg 83924ed31819Smrg 83934ed31819Smrg 83944ed31819Smrg 83954ed31819Smrg 83964ed31819Smrg 83974ed31819Smrg 83984ed31819Smrg 83994ed31819Smrg 84004ed31819Smrg 84014ed31819Smrg 84024ed31819Smrg 84034ed31819Smrg 84044ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 84054ed31819Smrg 84064ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 84074ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84084ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 84094ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 84104ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 84114ed31819Smrg $as_echo_n "(cached) " >&6 84124ed31819Smrgelse 84134ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84144ed31819Smrg/* end confdefs.h. */ 84154ed31819Smrgint i; 84164ed31819Smrg_ACEOF 84174ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 84184ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 84194ed31819Smrgelse 84204ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 84214ed31819Smrgfi 84224ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 84234ed31819Smrgfi 84244ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 84254ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 84264ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 84274ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 84284ed31819Smrgfi 84294ed31819Smrg 84304ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 84314ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 84324ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84334ed31819Smrg fi 84344ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84354ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 84364ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 84374ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 84384ed31819Smrg $as_echo_n "(cached) " >&6 84394ed31819Smrgelse 84404ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84414ed31819Smrg/* end confdefs.h. */ 84424ed31819Smrgint i; 84434ed31819Smrg_ACEOF 84444ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 84454ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 84464ed31819Smrgelse 84474ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 84484ed31819Smrgfi 84494ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 84504ed31819Smrgfi 84514ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 84524ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 84534ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 84544ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 84554ed31819Smrgfi 84564ed31819Smrg 84574ed31819Smrgfound="no" 84584ed31819Smrg 84594ed31819Smrg if test $found = "no" ; then 84604ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 84614ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84624ed31819Smrg fi 84634ed31819Smrg 84644ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 84654ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84664ed31819Smrg fi 84674ed31819Smrg 84684ed31819Smrg CFLAGS="$CFLAGS -Wimplicit" 84694ed31819Smrg 84704ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 84714ed31819Smrg$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 84724ed31819Smrg cacheid=xorg_cv_cc_flag__Wimplicit 84734ed31819Smrg if eval \${$cacheid+:} false; then : 84744ed31819Smrg $as_echo_n "(cached) " >&6 84754ed31819Smrgelse 84764ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84774ed31819Smrg/* end confdefs.h. */ 84784ed31819Smrgint i; 84794ed31819Smrgint 84804ed31819Smrgmain () 84814ed31819Smrg{ 84824ed31819Smrg 84834ed31819Smrg ; 84844ed31819Smrg return 0; 84854ed31819Smrg} 84864ed31819Smrg_ACEOF 84874ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 84884ed31819Smrg eval $cacheid=yes 84894ed31819Smrgelse 84904ed31819Smrg eval $cacheid=no 84914ed31819Smrgfi 84924ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 84934ed31819Smrg conftest$ac_exeext conftest.$ac_ext 84944ed31819Smrgfi 84954ed31819Smrg 84964ed31819Smrg 84974ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 84984ed31819Smrg 84994ed31819Smrg eval supported=\$$cacheid 85004ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 85014ed31819Smrg$as_echo "$supported" >&6; } 85024ed31819Smrg if test "$supported" = "yes" ; then 85034ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 85044ed31819Smrg found="yes" 85054ed31819Smrg fi 85064ed31819Smrg fi 85074ed31819Smrg 85084ed31819Smrg 85094ed31819Smrg 85104ed31819Smrg 85114ed31819Smrg 85124ed31819Smrg 85134ed31819Smrg 85144ed31819Smrg 85154ed31819Smrg 85164ed31819Smrg 85174ed31819Smrg 85184ed31819Smrg 85194ed31819Smrg 85204ed31819Smrg 85214ed31819Smrg 85224ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 85234ed31819Smrg 85244ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 85254ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85264ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 85274ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 85284ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 85294ed31819Smrg $as_echo_n "(cached) " >&6 85304ed31819Smrgelse 85314ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85324ed31819Smrg/* end confdefs.h. */ 85334ed31819Smrgint i; 85344ed31819Smrg_ACEOF 85354ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 85364ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 85374ed31819Smrgelse 85384ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 85394ed31819Smrgfi 85404ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 85414ed31819Smrgfi 85424ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 85434ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 85444ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 85454ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85464ed31819Smrgfi 85474ed31819Smrg 85484ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 85494ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 85504ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85514ed31819Smrg fi 85524ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85534ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 85544ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 85554ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 85564ed31819Smrg $as_echo_n "(cached) " >&6 85574ed31819Smrgelse 85584ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85594ed31819Smrg/* end confdefs.h. */ 85604ed31819Smrgint i; 85614ed31819Smrg_ACEOF 85624ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 85634ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 85644ed31819Smrgelse 85654ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 85664ed31819Smrgfi 85674ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 85684ed31819Smrgfi 85694ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 85704ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 85714ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 85724ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85734ed31819Smrgfi 85744ed31819Smrg 85754ed31819Smrgfound="no" 85764ed31819Smrg 85774ed31819Smrg if test $found = "no" ; then 85784ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 85794ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85804ed31819Smrg fi 85814ed31819Smrg 85824ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 85834ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85844ed31819Smrg fi 85854ed31819Smrg 85864ed31819Smrg CFLAGS="$CFLAGS -Wnonnull" 85874ed31819Smrg 85884ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 85894ed31819Smrg$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 85904ed31819Smrg cacheid=xorg_cv_cc_flag__Wnonnull 85914ed31819Smrg if eval \${$cacheid+:} false; then : 85924ed31819Smrg $as_echo_n "(cached) " >&6 85934ed31819Smrgelse 85944ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85954ed31819Smrg/* end confdefs.h. */ 85964ed31819Smrgint i; 85974ed31819Smrgint 85984ed31819Smrgmain () 85994ed31819Smrg{ 86004ed31819Smrg 86014ed31819Smrg ; 86024ed31819Smrg return 0; 86034ed31819Smrg} 86044ed31819Smrg_ACEOF 86054ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 86064ed31819Smrg eval $cacheid=yes 86074ed31819Smrgelse 86084ed31819Smrg eval $cacheid=no 86094ed31819Smrgfi 86104ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 86114ed31819Smrg conftest$ac_exeext conftest.$ac_ext 86124ed31819Smrgfi 86134ed31819Smrg 86144ed31819Smrg 86154ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86164ed31819Smrg 86174ed31819Smrg eval supported=\$$cacheid 86184ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 86194ed31819Smrg$as_echo "$supported" >&6; } 86204ed31819Smrg if test "$supported" = "yes" ; then 86214ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 86224ed31819Smrg found="yes" 86234ed31819Smrg fi 86244ed31819Smrg fi 86254ed31819Smrg 86264ed31819Smrg 86274ed31819Smrg 86284ed31819Smrg 86294ed31819Smrg 86304ed31819Smrg 86314ed31819Smrg 86324ed31819Smrg 86334ed31819Smrg 86344ed31819Smrg 86354ed31819Smrg 86364ed31819Smrg 86374ed31819Smrg 86384ed31819Smrg 86394ed31819Smrg 86404ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 86414ed31819Smrg 86424ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 86434ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86444ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 86454ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 86464ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 86474ed31819Smrg $as_echo_n "(cached) " >&6 86484ed31819Smrgelse 86494ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86504ed31819Smrg/* end confdefs.h. */ 86514ed31819Smrgint i; 86524ed31819Smrg_ACEOF 86534ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 86544ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 86554ed31819Smrgelse 86564ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 86574ed31819Smrgfi 86584ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 86594ed31819Smrgfi 86604ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 86614ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 86624ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 86634ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86644ed31819Smrgfi 86654ed31819Smrg 86664ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 86674ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 86684ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86694ed31819Smrg fi 86704ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86714ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 86724ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 86734ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 86744ed31819Smrg $as_echo_n "(cached) " >&6 86754ed31819Smrgelse 86764ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86774ed31819Smrg/* end confdefs.h. */ 86784ed31819Smrgint i; 86794ed31819Smrg_ACEOF 86804ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 86814ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 86824ed31819Smrgelse 86834ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 86844ed31819Smrgfi 86854ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 86864ed31819Smrgfi 86874ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 86884ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 86894ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 86904ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86914ed31819Smrgfi 86924ed31819Smrg 86934ed31819Smrgfound="no" 86944ed31819Smrg 86954ed31819Smrg if test $found = "no" ; then 86964ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 86974ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86984ed31819Smrg fi 86994ed31819Smrg 87004ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 87014ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87024ed31819Smrg fi 87034ed31819Smrg 87044ed31819Smrg CFLAGS="$CFLAGS -Winit-self" 87054ed31819Smrg 87064ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 87074ed31819Smrg$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 87084ed31819Smrg cacheid=xorg_cv_cc_flag__Winit_self 87094ed31819Smrg if eval \${$cacheid+:} false; then : 87104ed31819Smrg $as_echo_n "(cached) " >&6 87114ed31819Smrgelse 87124ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87134ed31819Smrg/* end confdefs.h. */ 87144ed31819Smrgint i; 87154ed31819Smrgint 87164ed31819Smrgmain () 87174ed31819Smrg{ 87184ed31819Smrg 87194ed31819Smrg ; 87204ed31819Smrg return 0; 87214ed31819Smrg} 87224ed31819Smrg_ACEOF 87234ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 87244ed31819Smrg eval $cacheid=yes 87254ed31819Smrgelse 87264ed31819Smrg eval $cacheid=no 87274ed31819Smrgfi 87284ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 87294ed31819Smrg conftest$ac_exeext conftest.$ac_ext 87304ed31819Smrgfi 87314ed31819Smrg 87324ed31819Smrg 87334ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 87344ed31819Smrg 87354ed31819Smrg eval supported=\$$cacheid 87364ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 87374ed31819Smrg$as_echo "$supported" >&6; } 87384ed31819Smrg if test "$supported" = "yes" ; then 87394ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 87404ed31819Smrg found="yes" 87414ed31819Smrg fi 87424ed31819Smrg fi 87434ed31819Smrg 87444ed31819Smrg 87454ed31819Smrg 87464ed31819Smrg 87474ed31819Smrg 87484ed31819Smrg 87494ed31819Smrg 87504ed31819Smrg 87514ed31819Smrg 87524ed31819Smrg 87534ed31819Smrg 87544ed31819Smrg 87554ed31819Smrg 87564ed31819Smrg 87574ed31819Smrg 87584ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 87594ed31819Smrg 87604ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 87614ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87624ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 87634ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 87644ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 87654ed31819Smrg $as_echo_n "(cached) " >&6 87664ed31819Smrgelse 87674ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87684ed31819Smrg/* end confdefs.h. */ 87694ed31819Smrgint i; 87704ed31819Smrg_ACEOF 87714ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 87724ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 87734ed31819Smrgelse 87744ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 87754ed31819Smrgfi 87764ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 87774ed31819Smrgfi 87784ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 87794ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 87804ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 87814ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 87824ed31819Smrgfi 87834ed31819Smrg 87844ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 87854ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 87864ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87874ed31819Smrg fi 87884ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87894ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 87904ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 87914ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 87924ed31819Smrg $as_echo_n "(cached) " >&6 87934ed31819Smrgelse 87944ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87954ed31819Smrg/* end confdefs.h. */ 87964ed31819Smrgint i; 87974ed31819Smrg_ACEOF 87984ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 87994ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 88004ed31819Smrgelse 88014ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 88024ed31819Smrgfi 88034ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 88044ed31819Smrgfi 88054ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 88064ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 88074ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 88084ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88094ed31819Smrgfi 88104ed31819Smrg 88114ed31819Smrgfound="no" 88124ed31819Smrg 88134ed31819Smrg if test $found = "no" ; then 88144ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 88154ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88164ed31819Smrg fi 88174ed31819Smrg 88184ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 88194ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88204ed31819Smrg fi 88214ed31819Smrg 88224ed31819Smrg CFLAGS="$CFLAGS -Wmain" 88234ed31819Smrg 88244ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 88254ed31819Smrg$as_echo_n "checking if $CC supports-Wmain... " >&6; } 88264ed31819Smrg cacheid=xorg_cv_cc_flag__Wmain 88274ed31819Smrg if eval \${$cacheid+:} false; then : 88284ed31819Smrg $as_echo_n "(cached) " >&6 88294ed31819Smrgelse 88304ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88314ed31819Smrg/* end confdefs.h. */ 88324ed31819Smrgint i; 88334ed31819Smrgint 88344ed31819Smrgmain () 88354ed31819Smrg{ 88364ed31819Smrg 88374ed31819Smrg ; 88384ed31819Smrg return 0; 88394ed31819Smrg} 88404ed31819Smrg_ACEOF 88414ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 88424ed31819Smrg eval $cacheid=yes 88434ed31819Smrgelse 88444ed31819Smrg eval $cacheid=no 88454ed31819Smrgfi 88464ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 88474ed31819Smrg conftest$ac_exeext conftest.$ac_ext 88484ed31819Smrgfi 88494ed31819Smrg 88504ed31819Smrg 88514ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88524ed31819Smrg 88534ed31819Smrg eval supported=\$$cacheid 88544ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88554ed31819Smrg$as_echo "$supported" >&6; } 88564ed31819Smrg if test "$supported" = "yes" ; then 88574ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 88584ed31819Smrg found="yes" 88594ed31819Smrg fi 88604ed31819Smrg fi 88614ed31819Smrg 88624ed31819Smrg 88634ed31819Smrg 88644ed31819Smrg 88654ed31819Smrg 88664ed31819Smrg 88674ed31819Smrg 88684ed31819Smrg 88694ed31819Smrg 88704ed31819Smrg 88714ed31819Smrg 88724ed31819Smrg 88734ed31819Smrg 88744ed31819Smrg 88754ed31819Smrg 88764ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 88774ed31819Smrg 88784ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 88794ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88804ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 88814ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 88824ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 88834ed31819Smrg $as_echo_n "(cached) " >&6 88844ed31819Smrgelse 88854ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88864ed31819Smrg/* end confdefs.h. */ 88874ed31819Smrgint i; 88884ed31819Smrg_ACEOF 88894ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 88904ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 88914ed31819Smrgelse 88924ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 88934ed31819Smrgfi 88944ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 88954ed31819Smrgfi 88964ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 88974ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 88984ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 88994ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89004ed31819Smrgfi 89014ed31819Smrg 89024ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 89034ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 89044ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89054ed31819Smrg fi 89064ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89074ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 89084ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 89094ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 89104ed31819Smrg $as_echo_n "(cached) " >&6 89114ed31819Smrgelse 89124ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89134ed31819Smrg/* end confdefs.h. */ 89144ed31819Smrgint i; 89154ed31819Smrg_ACEOF 89164ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 89174ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 89184ed31819Smrgelse 89194ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 89204ed31819Smrgfi 89214ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 89224ed31819Smrgfi 89234ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 89244ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 89254ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 89264ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89274ed31819Smrgfi 89284ed31819Smrg 89294ed31819Smrgfound="no" 89304ed31819Smrg 89314ed31819Smrg if test $found = "no" ; then 89324ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 89334ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89344ed31819Smrg fi 89354ed31819Smrg 89364ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 89374ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89384ed31819Smrg fi 89394ed31819Smrg 89404ed31819Smrg CFLAGS="$CFLAGS -Wmissing-braces" 89414ed31819Smrg 89424ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 89434ed31819Smrg$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 89444ed31819Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 89454ed31819Smrg if eval \${$cacheid+:} false; then : 89464ed31819Smrg $as_echo_n "(cached) " >&6 89474ed31819Smrgelse 89484ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89494ed31819Smrg/* end confdefs.h. */ 89504ed31819Smrgint i; 89514ed31819Smrgint 89524ed31819Smrgmain () 89534ed31819Smrg{ 89544ed31819Smrg 89554ed31819Smrg ; 89564ed31819Smrg return 0; 89574ed31819Smrg} 89584ed31819Smrg_ACEOF 89594ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 89604ed31819Smrg eval $cacheid=yes 89614ed31819Smrgelse 89624ed31819Smrg eval $cacheid=no 89634ed31819Smrgfi 89644ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 89654ed31819Smrg conftest$ac_exeext conftest.$ac_ext 89664ed31819Smrgfi 89674ed31819Smrg 89684ed31819Smrg 89694ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89704ed31819Smrg 89714ed31819Smrg eval supported=\$$cacheid 89724ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 89734ed31819Smrg$as_echo "$supported" >&6; } 89744ed31819Smrg if test "$supported" = "yes" ; then 89754ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 89764ed31819Smrg found="yes" 89774ed31819Smrg fi 89784ed31819Smrg fi 89794ed31819Smrg 89804ed31819Smrg 89814ed31819Smrg 89824ed31819Smrg 89834ed31819Smrg 89844ed31819Smrg 89854ed31819Smrg 89864ed31819Smrg 89874ed31819Smrg 89884ed31819Smrg 89894ed31819Smrg 89904ed31819Smrg 89914ed31819Smrg 89924ed31819Smrg 89934ed31819Smrg 89944ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 89954ed31819Smrg 89964ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 89974ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89984ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 89994ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 90004ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 90014ed31819Smrg $as_echo_n "(cached) " >&6 90024ed31819Smrgelse 90034ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90044ed31819Smrg/* end confdefs.h. */ 90054ed31819Smrgint i; 90064ed31819Smrg_ACEOF 90074ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 90084ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 90094ed31819Smrgelse 90104ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 90114ed31819Smrgfi 90124ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 90134ed31819Smrgfi 90144ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 90154ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 90164ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 90174ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90184ed31819Smrgfi 90194ed31819Smrg 90204ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 90214ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 90224ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90234ed31819Smrg fi 90244ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90254ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 90264ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 90274ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 90284ed31819Smrg $as_echo_n "(cached) " >&6 90294ed31819Smrgelse 90304ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90314ed31819Smrg/* end confdefs.h. */ 90324ed31819Smrgint i; 90334ed31819Smrg_ACEOF 90344ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 90354ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 90364ed31819Smrgelse 90374ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 90384ed31819Smrgfi 90394ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 90404ed31819Smrgfi 90414ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 90424ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 90434ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 90444ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90454ed31819Smrgfi 90464ed31819Smrg 90474ed31819Smrgfound="no" 90484ed31819Smrg 90494ed31819Smrg if test $found = "no" ; then 90504ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 90514ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90524ed31819Smrg fi 90534ed31819Smrg 90544ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 90554ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90564ed31819Smrg fi 90574ed31819Smrg 90584ed31819Smrg CFLAGS="$CFLAGS -Wsequence-point" 90594ed31819Smrg 90604ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 90614ed31819Smrg$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 90624ed31819Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 90634ed31819Smrg if eval \${$cacheid+:} false; then : 90644ed31819Smrg $as_echo_n "(cached) " >&6 90654ed31819Smrgelse 90664ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90674ed31819Smrg/* end confdefs.h. */ 90684ed31819Smrgint i; 90694ed31819Smrgint 90704ed31819Smrgmain () 90714ed31819Smrg{ 90724ed31819Smrg 90734ed31819Smrg ; 90744ed31819Smrg return 0; 90754ed31819Smrg} 90764ed31819Smrg_ACEOF 90774ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 90784ed31819Smrg eval $cacheid=yes 90794ed31819Smrgelse 90804ed31819Smrg eval $cacheid=no 90814ed31819Smrgfi 90824ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 90834ed31819Smrg conftest$ac_exeext conftest.$ac_ext 90844ed31819Smrgfi 90854ed31819Smrg 90864ed31819Smrg 90874ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90884ed31819Smrg 90894ed31819Smrg eval supported=\$$cacheid 90904ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 90914ed31819Smrg$as_echo "$supported" >&6; } 90924ed31819Smrg if test "$supported" = "yes" ; then 90934ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 90944ed31819Smrg found="yes" 90954ed31819Smrg fi 90964ed31819Smrg fi 90974ed31819Smrg 90984ed31819Smrg 90994ed31819Smrg 91004ed31819Smrg 91014ed31819Smrg 91024ed31819Smrg 91034ed31819Smrg 91044ed31819Smrg 91054ed31819Smrg 91064ed31819Smrg 91074ed31819Smrg 91084ed31819Smrg 91094ed31819Smrg 91104ed31819Smrg 91114ed31819Smrg 91124ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 91134ed31819Smrg 91144ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 91154ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91164ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 91174ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 91184ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 91194ed31819Smrg $as_echo_n "(cached) " >&6 91204ed31819Smrgelse 91214ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91224ed31819Smrg/* end confdefs.h. */ 91234ed31819Smrgint i; 91244ed31819Smrg_ACEOF 91254ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 91264ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 91274ed31819Smrgelse 91284ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 91294ed31819Smrgfi 91304ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 91314ed31819Smrgfi 91324ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 91334ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 91344ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 91354ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91364ed31819Smrgfi 91374ed31819Smrg 91384ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 91394ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 91404ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91414ed31819Smrg fi 91424ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91434ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 91444ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 91454ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 91464ed31819Smrg $as_echo_n "(cached) " >&6 91474ed31819Smrgelse 91484ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91494ed31819Smrg/* end confdefs.h. */ 91504ed31819Smrgint i; 91514ed31819Smrg_ACEOF 91524ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 91534ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 91544ed31819Smrgelse 91554ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 91564ed31819Smrgfi 91574ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 91584ed31819Smrgfi 91594ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 91604ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 91614ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 91624ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91634ed31819Smrgfi 91644ed31819Smrg 91654ed31819Smrgfound="no" 91664ed31819Smrg 91674ed31819Smrg if test $found = "no" ; then 91684ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 91694ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91704ed31819Smrg fi 91714ed31819Smrg 91724ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 91734ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91744ed31819Smrg fi 91754ed31819Smrg 91764ed31819Smrg CFLAGS="$CFLAGS -Wreturn-type" 91774ed31819Smrg 91784ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 91794ed31819Smrg$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 91804ed31819Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 91814ed31819Smrg if eval \${$cacheid+:} false; then : 91824ed31819Smrg $as_echo_n "(cached) " >&6 91834ed31819Smrgelse 91844ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91854ed31819Smrg/* end confdefs.h. */ 91864ed31819Smrgint i; 91874ed31819Smrgint 91884ed31819Smrgmain () 91894ed31819Smrg{ 91904ed31819Smrg 91914ed31819Smrg ; 91924ed31819Smrg return 0; 91934ed31819Smrg} 91944ed31819Smrg_ACEOF 91954ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 91964ed31819Smrg eval $cacheid=yes 91974ed31819Smrgelse 91984ed31819Smrg eval $cacheid=no 91994ed31819Smrgfi 92004ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 92014ed31819Smrg conftest$ac_exeext conftest.$ac_ext 92024ed31819Smrgfi 92034ed31819Smrg 92044ed31819Smrg 92054ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92064ed31819Smrg 92074ed31819Smrg eval supported=\$$cacheid 92084ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 92094ed31819Smrg$as_echo "$supported" >&6; } 92104ed31819Smrg if test "$supported" = "yes" ; then 92114ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 92124ed31819Smrg found="yes" 92134ed31819Smrg fi 92144ed31819Smrg fi 92154ed31819Smrg 92164ed31819Smrg 92174ed31819Smrg 92184ed31819Smrg 92194ed31819Smrg 92204ed31819Smrg 92214ed31819Smrg 92224ed31819Smrg 92234ed31819Smrg 92244ed31819Smrg 92254ed31819Smrg 92264ed31819Smrg 92274ed31819Smrg 92284ed31819Smrg 92294ed31819Smrg 92304ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 92314ed31819Smrg 92324ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 92334ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92344ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 92354ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 92364ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 92374ed31819Smrg $as_echo_n "(cached) " >&6 92384ed31819Smrgelse 92394ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92404ed31819Smrg/* end confdefs.h. */ 92414ed31819Smrgint i; 92424ed31819Smrg_ACEOF 92434ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 92444ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 92454ed31819Smrgelse 92464ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 92474ed31819Smrgfi 92484ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 92494ed31819Smrgfi 92504ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 92514ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 92524ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 92534ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92544ed31819Smrgfi 92554ed31819Smrg 92564ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 92574ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 92584ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92594ed31819Smrg fi 92604ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92614ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 92624ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 92634ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 92644ed31819Smrg $as_echo_n "(cached) " >&6 92654ed31819Smrgelse 92664ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92674ed31819Smrg/* end confdefs.h. */ 92684ed31819Smrgint i; 92694ed31819Smrg_ACEOF 92704ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 92714ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 92724ed31819Smrgelse 92734ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 92744ed31819Smrgfi 92754ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 92764ed31819Smrgfi 92774ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 92784ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 92794ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 92804ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92814ed31819Smrgfi 92824ed31819Smrg 92834ed31819Smrgfound="no" 92844ed31819Smrg 92854ed31819Smrg if test $found = "no" ; then 92864ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 92874ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92884ed31819Smrg fi 92894ed31819Smrg 92904ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 92914ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92924ed31819Smrg fi 92934ed31819Smrg 92944ed31819Smrg CFLAGS="$CFLAGS -Wtrigraphs" 92954ed31819Smrg 92964ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 92974ed31819Smrg$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 92984ed31819Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 92994ed31819Smrg if eval \${$cacheid+:} false; then : 93004ed31819Smrg $as_echo_n "(cached) " >&6 93014ed31819Smrgelse 93024ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93034ed31819Smrg/* end confdefs.h. */ 93044ed31819Smrgint i; 93054ed31819Smrgint 93064ed31819Smrgmain () 93074ed31819Smrg{ 93084ed31819Smrg 93094ed31819Smrg ; 93104ed31819Smrg return 0; 93114ed31819Smrg} 93124ed31819Smrg_ACEOF 93134ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 93144ed31819Smrg eval $cacheid=yes 93154ed31819Smrgelse 93164ed31819Smrg eval $cacheid=no 93174ed31819Smrgfi 93184ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 93194ed31819Smrg conftest$ac_exeext conftest.$ac_ext 93204ed31819Smrgfi 93214ed31819Smrg 93224ed31819Smrg 93234ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93244ed31819Smrg 93254ed31819Smrg eval supported=\$$cacheid 93264ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 93274ed31819Smrg$as_echo "$supported" >&6; } 93284ed31819Smrg if test "$supported" = "yes" ; then 93294ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 93304ed31819Smrg found="yes" 93314ed31819Smrg fi 93324ed31819Smrg fi 93334ed31819Smrg 93344ed31819Smrg 93354ed31819Smrg 93364ed31819Smrg 93374ed31819Smrg 93384ed31819Smrg 93394ed31819Smrg 93404ed31819Smrg 93414ed31819Smrg 93424ed31819Smrg 93434ed31819Smrg 93444ed31819Smrg 93454ed31819Smrg 93464ed31819Smrg 93474ed31819Smrg 93484ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 93494ed31819Smrg 93504ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 93514ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93524ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 93534ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 93544ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 93554ed31819Smrg $as_echo_n "(cached) " >&6 93564ed31819Smrgelse 93574ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93584ed31819Smrg/* end confdefs.h. */ 93594ed31819Smrgint i; 93604ed31819Smrg_ACEOF 93614ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 93624ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 93634ed31819Smrgelse 93644ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 93654ed31819Smrgfi 93664ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 93674ed31819Smrgfi 93684ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 93694ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 93704ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 93714ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93724ed31819Smrgfi 93734ed31819Smrg 93744ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 93754ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 93764ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93774ed31819Smrg fi 93784ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93794ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 93804ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 93814ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 93824ed31819Smrg $as_echo_n "(cached) " >&6 93834ed31819Smrgelse 93844ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93854ed31819Smrg/* end confdefs.h. */ 93864ed31819Smrgint i; 93874ed31819Smrg_ACEOF 93884ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 93894ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 93904ed31819Smrgelse 93914ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 93924ed31819Smrgfi 93934ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 93944ed31819Smrgfi 93954ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 93964ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 93974ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 93984ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93994ed31819Smrgfi 94004ed31819Smrg 94014ed31819Smrgfound="no" 94024ed31819Smrg 94034ed31819Smrg if test $found = "no" ; then 94044ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 94054ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94064ed31819Smrg fi 94074ed31819Smrg 94084ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 94094ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94104ed31819Smrg fi 94114ed31819Smrg 94124ed31819Smrg CFLAGS="$CFLAGS -Warray-bounds" 94134ed31819Smrg 94144ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 94154ed31819Smrg$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 94164ed31819Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 94174ed31819Smrg if eval \${$cacheid+:} false; then : 94184ed31819Smrg $as_echo_n "(cached) " >&6 94194ed31819Smrgelse 94204ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94214ed31819Smrg/* end confdefs.h. */ 94224ed31819Smrgint i; 94234ed31819Smrgint 94244ed31819Smrgmain () 94254ed31819Smrg{ 94264ed31819Smrg 94274ed31819Smrg ; 94284ed31819Smrg return 0; 94294ed31819Smrg} 94304ed31819Smrg_ACEOF 94314ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 94324ed31819Smrg eval $cacheid=yes 94334ed31819Smrgelse 94344ed31819Smrg eval $cacheid=no 94354ed31819Smrgfi 94364ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 94374ed31819Smrg conftest$ac_exeext conftest.$ac_ext 94384ed31819Smrgfi 94394ed31819Smrg 94404ed31819Smrg 94414ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94424ed31819Smrg 94434ed31819Smrg eval supported=\$$cacheid 94444ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 94454ed31819Smrg$as_echo "$supported" >&6; } 94464ed31819Smrg if test "$supported" = "yes" ; then 94474ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 94484ed31819Smrg found="yes" 94494ed31819Smrg fi 94504ed31819Smrg fi 94514ed31819Smrg 94524ed31819Smrg 94534ed31819Smrg 94544ed31819Smrg 94554ed31819Smrg 94564ed31819Smrg 94574ed31819Smrg 94584ed31819Smrg 94594ed31819Smrg 94604ed31819Smrg 94614ed31819Smrg 94624ed31819Smrg 94634ed31819Smrg 94644ed31819Smrg 94654ed31819Smrg 94664ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 94674ed31819Smrg 94684ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 94694ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94704ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 94714ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 94724ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 94734ed31819Smrg $as_echo_n "(cached) " >&6 94744ed31819Smrgelse 94754ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94764ed31819Smrg/* end confdefs.h. */ 94774ed31819Smrgint i; 94784ed31819Smrg_ACEOF 94794ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 94804ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 94814ed31819Smrgelse 94824ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 94834ed31819Smrgfi 94844ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 94854ed31819Smrgfi 94864ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 94874ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 94884ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 94894ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94904ed31819Smrgfi 94914ed31819Smrg 94924ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 94934ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 94944ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94954ed31819Smrg fi 94964ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94974ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 94984ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 94994ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 95004ed31819Smrg $as_echo_n "(cached) " >&6 95014ed31819Smrgelse 95024ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95034ed31819Smrg/* end confdefs.h. */ 95044ed31819Smrgint i; 95054ed31819Smrg_ACEOF 95064ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 95074ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 95084ed31819Smrgelse 95094ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 95104ed31819Smrgfi 95114ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 95124ed31819Smrgfi 95134ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 95144ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 95154ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 95164ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95174ed31819Smrgfi 95184ed31819Smrg 95194ed31819Smrgfound="no" 95204ed31819Smrg 95214ed31819Smrg if test $found = "no" ; then 95224ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 95234ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95244ed31819Smrg fi 95254ed31819Smrg 95264ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 95274ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95284ed31819Smrg fi 95294ed31819Smrg 95304ed31819Smrg CFLAGS="$CFLAGS -Wwrite-strings" 95314ed31819Smrg 95324ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 95334ed31819Smrg$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 95344ed31819Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 95354ed31819Smrg if eval \${$cacheid+:} false; then : 95364ed31819Smrg $as_echo_n "(cached) " >&6 95374ed31819Smrgelse 95384ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95394ed31819Smrg/* end confdefs.h. */ 95404ed31819Smrgint i; 95414ed31819Smrgint 95424ed31819Smrgmain () 95434ed31819Smrg{ 95444ed31819Smrg 95454ed31819Smrg ; 95464ed31819Smrg return 0; 95474ed31819Smrg} 95484ed31819Smrg_ACEOF 95494ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 95504ed31819Smrg eval $cacheid=yes 95514ed31819Smrgelse 95524ed31819Smrg eval $cacheid=no 95534ed31819Smrgfi 95544ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 95554ed31819Smrg conftest$ac_exeext conftest.$ac_ext 95564ed31819Smrgfi 95574ed31819Smrg 95584ed31819Smrg 95594ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95604ed31819Smrg 95614ed31819Smrg eval supported=\$$cacheid 95624ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 95634ed31819Smrg$as_echo "$supported" >&6; } 95644ed31819Smrg if test "$supported" = "yes" ; then 95654ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 95664ed31819Smrg found="yes" 95674ed31819Smrg fi 95684ed31819Smrg fi 95694ed31819Smrg 95704ed31819Smrg 95714ed31819Smrg 95724ed31819Smrg 95734ed31819Smrg 95744ed31819Smrg 95754ed31819Smrg 95764ed31819Smrg 95774ed31819Smrg 95784ed31819Smrg 95794ed31819Smrg 95804ed31819Smrg 95814ed31819Smrg 95824ed31819Smrg 95834ed31819Smrg 95844ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 95854ed31819Smrg 95864ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 95874ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95884ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 95894ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 95904ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 95914ed31819Smrg $as_echo_n "(cached) " >&6 95924ed31819Smrgelse 95934ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95944ed31819Smrg/* end confdefs.h. */ 95954ed31819Smrgint i; 95964ed31819Smrg_ACEOF 95974ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 95984ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 95994ed31819Smrgelse 96004ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 96014ed31819Smrgfi 96024ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 96034ed31819Smrgfi 96044ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 96054ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 96064ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 96074ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96084ed31819Smrgfi 96094ed31819Smrg 96104ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 96114ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 96124ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96134ed31819Smrg fi 96144ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96154ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 96164ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 96174ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 96184ed31819Smrg $as_echo_n "(cached) " >&6 96194ed31819Smrgelse 96204ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96214ed31819Smrg/* end confdefs.h. */ 96224ed31819Smrgint i; 96234ed31819Smrg_ACEOF 96244ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 96254ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 96264ed31819Smrgelse 96274ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 96284ed31819Smrgfi 96294ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 96304ed31819Smrgfi 96314ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 96324ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 96334ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 96344ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96354ed31819Smrgfi 96364ed31819Smrg 96374ed31819Smrgfound="no" 96384ed31819Smrg 96394ed31819Smrg if test $found = "no" ; then 96404ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 96414ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96424ed31819Smrg fi 96434ed31819Smrg 96444ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 96454ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96464ed31819Smrg fi 96474ed31819Smrg 96484ed31819Smrg CFLAGS="$CFLAGS -Waddress" 96494ed31819Smrg 96504ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 96514ed31819Smrg$as_echo_n "checking if $CC supports-Waddress... " >&6; } 96524ed31819Smrg cacheid=xorg_cv_cc_flag__Waddress 96534ed31819Smrg if eval \${$cacheid+:} false; then : 96544ed31819Smrg $as_echo_n "(cached) " >&6 96554ed31819Smrgelse 96564ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96574ed31819Smrg/* end confdefs.h. */ 96584ed31819Smrgint i; 96594ed31819Smrgint 96604ed31819Smrgmain () 96614ed31819Smrg{ 96624ed31819Smrg 96634ed31819Smrg ; 96644ed31819Smrg return 0; 96654ed31819Smrg} 96664ed31819Smrg_ACEOF 96674ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 96684ed31819Smrg eval $cacheid=yes 96694ed31819Smrgelse 96704ed31819Smrg eval $cacheid=no 96714ed31819Smrgfi 96724ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 96734ed31819Smrg conftest$ac_exeext conftest.$ac_ext 96744ed31819Smrgfi 96754ed31819Smrg 96764ed31819Smrg 96774ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96784ed31819Smrg 96794ed31819Smrg eval supported=\$$cacheid 96804ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 96814ed31819Smrg$as_echo "$supported" >&6; } 96824ed31819Smrg if test "$supported" = "yes" ; then 96834ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 96844ed31819Smrg found="yes" 96854ed31819Smrg fi 96864ed31819Smrg fi 96874ed31819Smrg 96884ed31819Smrg 96894ed31819Smrg 96904ed31819Smrg 96914ed31819Smrg 96924ed31819Smrg 96934ed31819Smrg 96944ed31819Smrg 96954ed31819Smrg 96964ed31819Smrg 96974ed31819Smrg 96984ed31819Smrg 96994ed31819Smrg 97004ed31819Smrg 97014ed31819Smrg 97024ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 97034ed31819Smrg 97044ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 97054ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97064ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 97074ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 97084ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 97094ed31819Smrg $as_echo_n "(cached) " >&6 97104ed31819Smrgelse 97114ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97124ed31819Smrg/* end confdefs.h. */ 97134ed31819Smrgint i; 97144ed31819Smrg_ACEOF 97154ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 97164ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 97174ed31819Smrgelse 97184ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 97194ed31819Smrgfi 97204ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97214ed31819Smrgfi 97224ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 97234ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 97244ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 97254ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 97264ed31819Smrgfi 97274ed31819Smrg 97284ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 97294ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 97304ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97314ed31819Smrg fi 97324ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97334ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 97344ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 97354ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 97364ed31819Smrg $as_echo_n "(cached) " >&6 97374ed31819Smrgelse 97384ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97394ed31819Smrg/* end confdefs.h. */ 97404ed31819Smrgint i; 97414ed31819Smrg_ACEOF 97424ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 97434ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 97444ed31819Smrgelse 97454ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 97464ed31819Smrgfi 97474ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97484ed31819Smrgfi 97494ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 97504ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 97514ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 97524ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 97534ed31819Smrgfi 97544ed31819Smrg 97554ed31819Smrgfound="no" 97564ed31819Smrg 97574ed31819Smrg if test $found = "no" ; then 97584ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 97594ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97604ed31819Smrg fi 97614ed31819Smrg 97624ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 97634ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97644ed31819Smrg fi 97654ed31819Smrg 97664ed31819Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 97674ed31819Smrg 97684ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 97694ed31819Smrg$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 97704ed31819Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 97714ed31819Smrg if eval \${$cacheid+:} false; then : 97724ed31819Smrg $as_echo_n "(cached) " >&6 97734ed31819Smrgelse 97744ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97754ed31819Smrg/* end confdefs.h. */ 97764ed31819Smrgint i; 97774ed31819Smrgint 97784ed31819Smrgmain () 97794ed31819Smrg{ 97804ed31819Smrg 97814ed31819Smrg ; 97824ed31819Smrg return 0; 97834ed31819Smrg} 97844ed31819Smrg_ACEOF 97854ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 97864ed31819Smrg eval $cacheid=yes 97874ed31819Smrgelse 97884ed31819Smrg eval $cacheid=no 97894ed31819Smrgfi 97904ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 97914ed31819Smrg conftest$ac_exeext conftest.$ac_ext 97924ed31819Smrgfi 97934ed31819Smrg 97944ed31819Smrg 97954ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 97964ed31819Smrg 97974ed31819Smrg eval supported=\$$cacheid 97984ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 97994ed31819Smrg$as_echo "$supported" >&6; } 98004ed31819Smrg if test "$supported" = "yes" ; then 98014ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 98024ed31819Smrg found="yes" 98034ed31819Smrg fi 98044ed31819Smrg fi 98054ed31819Smrg 98064ed31819Smrg 98074ed31819Smrg 98084ed31819Smrg 98094ed31819Smrg 98104ed31819Smrg 98114ed31819Smrg 98124ed31819Smrg 98134ed31819Smrg 98144ed31819Smrg 98154ed31819Smrg 98164ed31819Smrg 98174ed31819Smrg 98184ed31819Smrg 98194ed31819Smrg 98204ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 98214ed31819Smrg 98224ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 98234ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98244ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 98254ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 98264ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 98274ed31819Smrg $as_echo_n "(cached) " >&6 98284ed31819Smrgelse 98294ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98304ed31819Smrg/* end confdefs.h. */ 98314ed31819Smrgint i; 98324ed31819Smrg_ACEOF 98334ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 98344ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 98354ed31819Smrgelse 98364ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 98374ed31819Smrgfi 98384ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98394ed31819Smrgfi 98404ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 98414ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 98424ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 98434ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98444ed31819Smrgfi 98454ed31819Smrg 98464ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 98474ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 98484ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98494ed31819Smrg fi 98504ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98514ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 98524ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 98534ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 98544ed31819Smrg $as_echo_n "(cached) " >&6 98554ed31819Smrgelse 98564ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98574ed31819Smrg/* end confdefs.h. */ 98584ed31819Smrgint i; 98594ed31819Smrg_ACEOF 98604ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 98614ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 98624ed31819Smrgelse 98634ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 98644ed31819Smrgfi 98654ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98664ed31819Smrgfi 98674ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 98684ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 98694ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 98704ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98714ed31819Smrgfi 98724ed31819Smrg 98734ed31819Smrgfound="no" 98744ed31819Smrg 98754ed31819Smrg if test $found = "no" ; then 98764ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 98774ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98784ed31819Smrg fi 98794ed31819Smrg 98804ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 98814ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98824ed31819Smrg fi 98834ed31819Smrg 98844ed31819Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 98854ed31819Smrg 98864ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 98874ed31819Smrg$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 98884ed31819Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 98894ed31819Smrg if eval \${$cacheid+:} false; then : 98904ed31819Smrg $as_echo_n "(cached) " >&6 98914ed31819Smrgelse 98924ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98934ed31819Smrg/* end confdefs.h. */ 98944ed31819Smrgint i; 98954ed31819Smrgint 98964ed31819Smrgmain () 98974ed31819Smrg{ 98984ed31819Smrg 98994ed31819Smrg ; 99004ed31819Smrg return 0; 99014ed31819Smrg} 99024ed31819Smrg_ACEOF 99034ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 99044ed31819Smrg eval $cacheid=yes 99054ed31819Smrgelse 99064ed31819Smrg eval $cacheid=no 99074ed31819Smrgfi 99084ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 99094ed31819Smrg conftest$ac_exeext conftest.$ac_ext 99104ed31819Smrgfi 99114ed31819Smrg 99124ed31819Smrg 99134ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 99144ed31819Smrg 99154ed31819Smrg eval supported=\$$cacheid 99164ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 99174ed31819Smrg$as_echo "$supported" >&6; } 99184ed31819Smrg if test "$supported" = "yes" ; then 99194ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 99204ed31819Smrg found="yes" 99214ed31819Smrg fi 99224ed31819Smrg fi 99234ed31819Smrg 99244ed31819Smrg 99254ed31819Smrgfi 99264ed31819Smrg 99274ed31819Smrg 99284ed31819Smrg 99294ed31819Smrg 99304ed31819Smrg 99314ed31819Smrg 99324ed31819Smrg 99334ed31819Smrg CWARNFLAGS="$BASE_CFLAGS" 99344ed31819Smrg if test "x$GCC" = xyes ; then 99354ed31819Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 99364ed31819Smrg fi 99374ed31819Smrg 99384ed31819Smrg 99394ed31819Smrg 99404ed31819Smrg 99414ed31819Smrg 99424ed31819Smrg 99434ed31819Smrg 99444ed31819Smrg 99454ed31819Smrg# Check whether --enable-strict-compilation was given. 99464ed31819Smrgif test "${enable_strict_compilation+set}" = set; then : 99474ed31819Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 99484ed31819Smrgelse 99494ed31819Smrg STRICT_COMPILE=no 99504ed31819Smrgfi 99514ed31819Smrg 99524ed31819Smrg 99534ed31819Smrg 99544ed31819Smrg 99554ed31819Smrg 99564ed31819Smrg 99574ed31819SmrgSTRICT_CFLAGS="" 99584ed31819Smrg 99594ed31819Smrg 99604ed31819Smrg 99614ed31819Smrg 99624ed31819Smrg 99634ed31819Smrg 99644ed31819Smrg 99654ed31819Smrg 99664ed31819Smrg 99674ed31819Smrg 99684ed31819Smrg 99694ed31819Smrg 99704ed31819Smrg 99714ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 99724ed31819Smrg 99734ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 99744ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99754ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 99764ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 99774ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 99784ed31819Smrg $as_echo_n "(cached) " >&6 99794ed31819Smrgelse 99804ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99814ed31819Smrg/* end confdefs.h. */ 99824ed31819Smrgint i; 99834ed31819Smrg_ACEOF 99844ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 99854ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 99864ed31819Smrgelse 99874ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 99884ed31819Smrgfi 99894ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 99904ed31819Smrgfi 99914ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 99924ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 99934ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 99944ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 99954ed31819Smrgfi 99964ed31819Smrg 99974ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 99984ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 99994ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100004ed31819Smrg fi 100014ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100024ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 100034ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 100044ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 100054ed31819Smrg $as_echo_n "(cached) " >&6 100064ed31819Smrgelse 100074ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100084ed31819Smrg/* end confdefs.h. */ 100094ed31819Smrgint i; 100104ed31819Smrg_ACEOF 100114ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 100124ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 100134ed31819Smrgelse 100144ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 100154ed31819Smrgfi 100164ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 100174ed31819Smrgfi 100184ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 100194ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 100204ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 100214ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 100224ed31819Smrgfi 100234ed31819Smrg 100244ed31819Smrgfound="no" 100254ed31819Smrg 100264ed31819Smrg if test $found = "no" ; then 100274ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 100284ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100294ed31819Smrg fi 100304ed31819Smrg 100314ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 100324ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100334ed31819Smrg fi 100344ed31819Smrg 100354ed31819Smrg CFLAGS="$CFLAGS -pedantic" 100364ed31819Smrg 100374ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 100384ed31819Smrg$as_echo_n "checking if $CC supports-pedantic... " >&6; } 100394ed31819Smrg cacheid=xorg_cv_cc_flag__pedantic 100404ed31819Smrg if eval \${$cacheid+:} false; then : 100414ed31819Smrg $as_echo_n "(cached) " >&6 100424ed31819Smrgelse 100434ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100444ed31819Smrg/* end confdefs.h. */ 100454ed31819Smrgint i; 100464ed31819Smrgint 100474ed31819Smrgmain () 100484ed31819Smrg{ 100494ed31819Smrg 100504ed31819Smrg ; 100514ed31819Smrg return 0; 100524ed31819Smrg} 100534ed31819Smrg_ACEOF 100544ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 100554ed31819Smrg eval $cacheid=yes 100564ed31819Smrgelse 100574ed31819Smrg eval $cacheid=no 100584ed31819Smrgfi 100594ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 100604ed31819Smrg conftest$ac_exeext conftest.$ac_ext 100614ed31819Smrgfi 100624ed31819Smrg 100634ed31819Smrg 100644ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 100654ed31819Smrg 100664ed31819Smrg eval supported=\$$cacheid 100674ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 100684ed31819Smrg$as_echo "$supported" >&6; } 100694ed31819Smrg if test "$supported" = "yes" ; then 100704ed31819Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 100714ed31819Smrg found="yes" 100724ed31819Smrg fi 100734ed31819Smrg fi 100744ed31819Smrg 100754ed31819Smrg 100764ed31819Smrg 100774ed31819Smrg 100784ed31819Smrg 100794ed31819Smrg 100804ed31819Smrg 100814ed31819Smrg 100824ed31819Smrg 100834ed31819Smrg 100844ed31819Smrg 100854ed31819Smrg 100864ed31819Smrg 100874ed31819Smrg 100884ed31819Smrg 100894ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 100904ed31819Smrg 100914ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 100924ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100934ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 100944ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 100954ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 100964ed31819Smrg $as_echo_n "(cached) " >&6 100974ed31819Smrgelse 100984ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100994ed31819Smrg/* end confdefs.h. */ 101004ed31819Smrgint i; 101014ed31819Smrg_ACEOF 101024ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 101034ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 101044ed31819Smrgelse 101054ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 101064ed31819Smrgfi 101074ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 101084ed31819Smrgfi 101094ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 101104ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 101114ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 101124ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101134ed31819Smrgfi 101144ed31819Smrg 101154ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 101164ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 101174ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101184ed31819Smrg fi 101194ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101204ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 101214ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 101224ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 101234ed31819Smrg $as_echo_n "(cached) " >&6 101244ed31819Smrgelse 101254ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101264ed31819Smrg/* end confdefs.h. */ 101274ed31819Smrgint i; 101284ed31819Smrg_ACEOF 101294ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 101304ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 101314ed31819Smrgelse 101324ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 101334ed31819Smrgfi 101344ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 101354ed31819Smrgfi 101364ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 101374ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 101384ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 101394ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101404ed31819Smrgfi 101414ed31819Smrg 101424ed31819Smrgfound="no" 101434ed31819Smrg 101444ed31819Smrg if test $found = "no" ; then 101454ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 101464ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101474ed31819Smrg fi 101484ed31819Smrg 101494ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 101504ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101514ed31819Smrg fi 101524ed31819Smrg 101534ed31819Smrg CFLAGS="$CFLAGS -Werror" 101544ed31819Smrg 101554ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 101564ed31819Smrg$as_echo_n "checking if $CC supports-Werror... " >&6; } 101574ed31819Smrg cacheid=xorg_cv_cc_flag__Werror 101584ed31819Smrg if eval \${$cacheid+:} false; then : 101594ed31819Smrg $as_echo_n "(cached) " >&6 101604ed31819Smrgelse 101614ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101624ed31819Smrg/* end confdefs.h. */ 101634ed31819Smrgint i; 101644ed31819Smrgint 101654ed31819Smrgmain () 101664ed31819Smrg{ 101674ed31819Smrg 101684ed31819Smrg ; 101694ed31819Smrg return 0; 101704ed31819Smrg} 101714ed31819Smrg_ACEOF 101724ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 101734ed31819Smrg eval $cacheid=yes 101744ed31819Smrgelse 101754ed31819Smrg eval $cacheid=no 101764ed31819Smrgfi 101774ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 101784ed31819Smrg conftest$ac_exeext conftest.$ac_ext 101794ed31819Smrgfi 101804ed31819Smrg 101814ed31819Smrg 101824ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101834ed31819Smrg 101844ed31819Smrg eval supported=\$$cacheid 101854ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 101864ed31819Smrg$as_echo "$supported" >&6; } 101874ed31819Smrg if test "$supported" = "yes" ; then 101884ed31819Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 101894ed31819Smrg found="yes" 101904ed31819Smrg fi 101914ed31819Smrg fi 101924ed31819Smrg 101934ed31819Smrg if test $found = "no" ; then 101944ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 101954ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101964ed31819Smrg fi 101974ed31819Smrg 101984ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 101994ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 102004ed31819Smrg fi 102014ed31819Smrg 102024ed31819Smrg CFLAGS="$CFLAGS -errwarn" 102034ed31819Smrg 102044ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 102054ed31819Smrg$as_echo_n "checking if $CC supports-errwarn... " >&6; } 102064ed31819Smrg cacheid=xorg_cv_cc_flag__errwarn 102074ed31819Smrg if eval \${$cacheid+:} false; then : 102084ed31819Smrg $as_echo_n "(cached) " >&6 102094ed31819Smrgelse 102104ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102114ed31819Smrg/* end confdefs.h. */ 102124ed31819Smrgint i; 102134ed31819Smrgint 102144ed31819Smrgmain () 102154ed31819Smrg{ 102164ed31819Smrg 102174ed31819Smrg ; 102184ed31819Smrg return 0; 102194ed31819Smrg} 102204ed31819Smrg_ACEOF 102214ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 102224ed31819Smrg eval $cacheid=yes 102234ed31819Smrgelse 102244ed31819Smrg eval $cacheid=no 102254ed31819Smrgfi 102264ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 102274ed31819Smrg conftest$ac_exeext conftest.$ac_ext 102284ed31819Smrgfi 102294ed31819Smrg 102304ed31819Smrg 102314ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 102324ed31819Smrg 102334ed31819Smrg eval supported=\$$cacheid 102344ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102354ed31819Smrg$as_echo "$supported" >&6; } 102364ed31819Smrg if test "$supported" = "yes" ; then 102374ed31819Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 102384ed31819Smrg found="yes" 102394ed31819Smrg fi 102404ed31819Smrg fi 102414ed31819Smrg 102424ed31819Smrg 102434ed31819Smrg 102444ed31819Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 102454ed31819Smrg# activate it with -Werror, so we add it here explicitly. 102464ed31819Smrg 102474ed31819Smrg 102484ed31819Smrg 102494ed31819Smrg 102504ed31819Smrg 102514ed31819Smrg 102524ed31819Smrg 102534ed31819Smrg 102544ed31819Smrg 102554ed31819Smrg 102564ed31819Smrg 102574ed31819Smrg 102584ed31819Smrg 102594ed31819Smrgxorg_testset_save_CFLAGS="$CFLAGS" 102604ed31819Smrg 102614ed31819Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 102624ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102634ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 102644ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 102654ed31819Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 102664ed31819Smrg $as_echo_n "(cached) " >&6 102674ed31819Smrgelse 102684ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102694ed31819Smrg/* end confdefs.h. */ 102704ed31819Smrgint i; 102714ed31819Smrg_ACEOF 102724ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 102734ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=yes 102744ed31819Smrgelse 102754ed31819Smrg xorg_cv_cc_flag_unknown_warning_option=no 102764ed31819Smrgfi 102774ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 102784ed31819Smrgfi 102794ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 102804ed31819Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 102814ed31819Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 102824ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 102834ed31819Smrgfi 102844ed31819Smrg 102854ed31819Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 102864ed31819Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 102874ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102884ed31819Smrg fi 102894ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 102904ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 102914ed31819Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 102924ed31819Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 102934ed31819Smrg $as_echo_n "(cached) " >&6 102944ed31819Smrgelse 102954ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102964ed31819Smrg/* end confdefs.h. */ 102974ed31819Smrgint i; 102984ed31819Smrg_ACEOF 102994ed31819Smrgif ac_fn_c_try_compile "$LINENO"; then : 103004ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 103014ed31819Smrgelse 103024ed31819Smrg xorg_cv_cc_flag_unused_command_line_argument=no 103034ed31819Smrgfi 103044ed31819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 103054ed31819Smrgfi 103064ed31819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 103074ed31819Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 103084ed31819Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 103094ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 103104ed31819Smrgfi 103114ed31819Smrg 103124ed31819Smrgfound="no" 103134ed31819Smrg 103144ed31819Smrg if test $found = "no" ; then 103154ed31819Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 103164ed31819Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103174ed31819Smrg fi 103184ed31819Smrg 103194ed31819Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 103204ed31819Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103214ed31819Smrg fi 103224ed31819Smrg 103234ed31819Smrg CFLAGS="$CFLAGS -Werror=attributes" 103244ed31819Smrg 103254ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 103264ed31819Smrg$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 103274ed31819Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 103284ed31819Smrg if eval \${$cacheid+:} false; then : 103294ed31819Smrg $as_echo_n "(cached) " >&6 103304ed31819Smrgelse 103314ed31819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 103324ed31819Smrg/* end confdefs.h. */ 103334ed31819Smrgint i; 103344ed31819Smrgint 103354ed31819Smrgmain () 103364ed31819Smrg{ 103374ed31819Smrg 103384ed31819Smrg ; 103394ed31819Smrg return 0; 103404ed31819Smrg} 103414ed31819Smrg_ACEOF 103424ed31819Smrgif ac_fn_c_try_link "$LINENO"; then : 103434ed31819Smrg eval $cacheid=yes 103444ed31819Smrgelse 103454ed31819Smrg eval $cacheid=no 103464ed31819Smrgfi 103474ed31819Smrgrm -f core conftest.err conftest.$ac_objext \ 103484ed31819Smrg conftest$ac_exeext conftest.$ac_ext 103494ed31819Smrgfi 103504ed31819Smrg 103514ed31819Smrg 103524ed31819Smrg CFLAGS="$xorg_testset_save_CFLAGS" 103534ed31819Smrg 103544ed31819Smrg eval supported=\$$cacheid 103554ed31819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 103564ed31819Smrg$as_echo "$supported" >&6; } 103574ed31819Smrg if test "$supported" = "yes" ; then 103584ed31819Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 103594ed31819Smrg found="yes" 103604ed31819Smrg fi 103614ed31819Smrg fi 103624ed31819Smrg 103634ed31819Smrg 103644ed31819Smrg 103654ed31819Smrgif test "x$STRICT_COMPILE" = "xyes"; then 103664ed31819Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 103674ed31819Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 103684ed31819Smrgfi 103694ed31819Smrg 103704ed31819Smrg 103714ed31819Smrg 103724ed31819Smrg 103734ed31819Smrg 103744ed31819Smrg 103754ed31819Smrgcat >>confdefs.h <<_ACEOF 103764ed31819Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 103774ed31819Smrg_ACEOF 103784ed31819Smrg 103794ed31819Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 103804ed31819Smrg if test "x$PVM" = "x"; then 103814ed31819Smrg PVM="0" 103824ed31819Smrg fi 103834ed31819Smrg 103844ed31819Smrgcat >>confdefs.h <<_ACEOF 103854ed31819Smrg#define PACKAGE_VERSION_MINOR $PVM 103864ed31819Smrg_ACEOF 103874ed31819Smrg 103884ed31819Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 103894ed31819Smrg if test "x$PVP" = "x"; then 103904ed31819Smrg PVP="0" 103914ed31819Smrg fi 103924ed31819Smrg 103934ed31819Smrgcat >>confdefs.h <<_ACEOF 103944ed31819Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 103954ed31819Smrg_ACEOF 103964ed31819Smrg 103974ed31819Smrg 103984ed31819Smrg 103994ed31819SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 104004ed31819Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 104014ed31819Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 104024ed31819Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 104034ed31819Smrg 104044ed31819Smrg 104054ed31819Smrg 104064ed31819Smrg 104074ed31819Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 104084ed31819SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 104094ed31819Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 104104ed31819Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 104114ed31819Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 104124ed31819Smrg 104134ed31819Smrg 104144ed31819Smrg 104154ed31819Smrg 104164ed31819Smrg 104174ed31819Smrg 104184ed31819Smrgif test x$APP_MAN_SUFFIX = x ; then 104194ed31819Smrg APP_MAN_SUFFIX=1 104204ed31819Smrgfi 104214ed31819Smrgif test x$APP_MAN_DIR = x ; then 104224ed31819Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 104234ed31819Smrgfi 104244ed31819Smrg 104254ed31819Smrgif test x$LIB_MAN_SUFFIX = x ; then 104264ed31819Smrg LIB_MAN_SUFFIX=3 104274ed31819Smrgfi 104284ed31819Smrgif test x$LIB_MAN_DIR = x ; then 104294ed31819Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 104304ed31819Smrgfi 104314ed31819Smrg 104324ed31819Smrgif test x$FILE_MAN_SUFFIX = x ; then 104334ed31819Smrg case $host_os in 104344ed31819Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 104354ed31819Smrg *) FILE_MAN_SUFFIX=5 ;; 104364ed31819Smrg esac 104374ed31819Smrgfi 104384ed31819Smrgif test x$FILE_MAN_DIR = x ; then 104394ed31819Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 104404ed31819Smrgfi 104414ed31819Smrg 104424ed31819Smrgif test x$MISC_MAN_SUFFIX = x ; then 104434ed31819Smrg case $host_os in 104444ed31819Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 104454ed31819Smrg *) MISC_MAN_SUFFIX=7 ;; 104464ed31819Smrg esac 104474ed31819Smrgfi 104484ed31819Smrgif test x$MISC_MAN_DIR = x ; then 104494ed31819Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 104504ed31819Smrgfi 104514ed31819Smrg 104524ed31819Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 104534ed31819Smrg case $host_os in 104544ed31819Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 104554ed31819Smrg *) DRIVER_MAN_SUFFIX=4 ;; 104564ed31819Smrg esac 104574ed31819Smrgfi 104584ed31819Smrgif test x$DRIVER_MAN_DIR = x ; then 104594ed31819Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 104604ed31819Smrgfi 104614ed31819Smrg 104624ed31819Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 104634ed31819Smrg case $host_os in 104644ed31819Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 104654ed31819Smrg *) ADMIN_MAN_SUFFIX=8 ;; 104664ed31819Smrg esac 104674ed31819Smrgfi 104684ed31819Smrgif test x$ADMIN_MAN_DIR = x ; then 104694ed31819Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 104704ed31819Smrgfi 104714ed31819Smrg 104724ed31819Smrg 104734ed31819Smrg 104744ed31819Smrg 104754ed31819Smrg 104764ed31819Smrg 104774ed31819Smrg 104784ed31819Smrg 104794ed31819Smrg 104804ed31819Smrg 104814ed31819Smrg 104824ed31819Smrg 104834ed31819Smrg 104844ed31819Smrg 104854ed31819Smrg 104864ed31819SmrgXORG_MAN_PAGE="X Version 11" 1048777683534Smrg 1048877683534SmrgMAN_SUBSTS="\ 1048977683534Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1049077683534Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1049177683534Smrg -e 's|__xservername__|Xorg|g' \ 1049277683534Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 1049377683534Smrg -e 's|__projectroot__|\$(prefix)|g' \ 1049477683534Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1049577683534Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1049677683534Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1049777683534Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1049877683534Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1049977683534Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1050077683534Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1050177683534Smrg 1050277683534Smrg 1050377683534Smrg 1050477683534Smrg# Check whether --enable-silent-rules was given. 1050577683534Smrgif test "${enable_silent_rules+set}" = set; then : 1050677683534Smrg enableval=$enable_silent_rules; 10507dbe7da2eSmrgfi 10508dbe7da2eSmrg 1050977683534Smrgcase $enable_silent_rules in 1051077683534Smrgyes) AM_DEFAULT_VERBOSITY=0;; 1051177683534Smrgno) AM_DEFAULT_VERBOSITY=1;; 1051277683534Smrg*) AM_DEFAULT_VERBOSITY=0;; 1051377683534Smrgesac 1051477683534SmrgAM_BACKSLASH='\' 1051577683534Smrg 1051677683534Smrg 1051777683534Smrg 1051877683534Smrgac_config_headers="$ac_config_headers config.h" 10519dbe7da2eSmrg 10520dbe7da2eSmrg 10521dbe7da2eSmrg 10522dbe7da2eSmrg 10523dbe7da2eSmrg 10524dbe7da2eSmrgfor ac_header in pty.h stropts.h sys/param.h sys/select.h 10525dbe7da2eSmrgdo : 10526dbe7da2eSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10527dbe7da2eSmrgac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 1052877683534Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10529dbe7da2eSmrg cat >>confdefs.h <<_ACEOF 10530dbe7da2eSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10531dbe7da2eSmrg_ACEOF 10532dbe7da2eSmrg 10533dbe7da2eSmrgfi 10534dbe7da2eSmrg 10535a8fdb4bcSmrgdone 10536a8fdb4bcSmrg 105374ed31819Smrgfor ac_func in select grantpt posix_openpt 10538dbe7da2eSmrgdo : 10539dbe7da2eSmrg as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10540dbe7da2eSmrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 1054177683534Smrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10542dbe7da2eSmrg cat >>confdefs.h <<_ACEOF 10543dbe7da2eSmrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10544dbe7da2eSmrg_ACEOF 10545dbe7da2eSmrg 10546a8fdb4bcSmrgfi 10547dbe7da2eSmrgdone 10548dbe7da2eSmrg 10549dbe7da2eSmrg 10550dbe7da2eSmrg 10551dbe7da2eSmrg# Check whether --with-localealiasfile was given. 10552dbe7da2eSmrgif test "${with_localealiasfile+set}" = set; then : 10553dbe7da2eSmrg withval=$with_localealiasfile; LOCALEALIASFILE="$withval" 10554dbe7da2eSmrgelse 10555dbe7da2eSmrg LOCALEALIASFILE=${datadir}/X11/locale/locale.alias 10556a8fdb4bcSmrgfi 10557a8fdb4bcSmrg 10558dbe7da2eSmrg 10559dbe7da2eSmrg 10560dbe7da2eSmrg# Checks for pkg-config packages 10561dbe7da2eSmrg 10562a8fdb4bcSmrgpkg_failed=no 10563dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUIT" >&5 10564dbe7da2eSmrg$as_echo_n "checking for LUIT... " >&6; } 10565a8fdb4bcSmrg 1056677683534Smrgif test -n "$LUIT_CFLAGS"; then 1056777683534Smrg pkg_cv_LUIT_CFLAGS="$LUIT_CFLAGS" 1056877683534Smrg elif test -n "$PKG_CONFIG"; then 1056977683534Smrg if test -n "$PKG_CONFIG" && \ 1057077683534Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc\""; } >&5 1057177683534Smrg ($PKG_CONFIG --exists --print-errors "fontenc") 2>&5 10572a8fdb4bcSmrg ac_status=$? 10573dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10574dbe7da2eSmrg test $ac_status = 0; }; then 1057577683534Smrg pkg_cv_LUIT_CFLAGS=`$PKG_CONFIG --cflags "fontenc" 2>/dev/null` 10576a8fdb4bcSmrgelse 10577a8fdb4bcSmrg pkg_failed=yes 10578a8fdb4bcSmrgfi 1057977683534Smrg else 1058077683534Smrg pkg_failed=untried 10581a8fdb4bcSmrgfi 1058277683534Smrgif test -n "$LUIT_LIBS"; then 1058377683534Smrg pkg_cv_LUIT_LIBS="$LUIT_LIBS" 1058477683534Smrg elif test -n "$PKG_CONFIG"; then 1058577683534Smrg if test -n "$PKG_CONFIG" && \ 1058677683534Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc\""; } >&5 1058777683534Smrg ($PKG_CONFIG --exists --print-errors "fontenc") 2>&5 10588a8fdb4bcSmrg ac_status=$? 10589dbe7da2eSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10590dbe7da2eSmrg test $ac_status = 0; }; then 1059177683534Smrg pkg_cv_LUIT_LIBS=`$PKG_CONFIG --libs "fontenc" 2>/dev/null` 10592a8fdb4bcSmrgelse 10593a8fdb4bcSmrg pkg_failed=yes 10594a8fdb4bcSmrgfi 1059577683534Smrg else 1059677683534Smrg pkg_failed=untried 10597a8fdb4bcSmrgfi 10598a8fdb4bcSmrg 10599a8fdb4bcSmrg 10600a8fdb4bcSmrg 10601a8fdb4bcSmrgif test $pkg_failed = yes; then 10602a8fdb4bcSmrg 10603a8fdb4bcSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10604a8fdb4bcSmrg _pkg_short_errors_supported=yes 10605a8fdb4bcSmrgelse 10606a8fdb4bcSmrg _pkg_short_errors_supported=no 10607a8fdb4bcSmrgfi 10608a8fdb4bcSmrg if test $_pkg_short_errors_supported = yes; then 1060977683534Smrg LUIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontenc" 2>&1` 10610a8fdb4bcSmrg else 1061177683534Smrg LUIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontenc" 2>&1` 10612a8fdb4bcSmrg fi 10613a8fdb4bcSmrg # Put the nasty error message in config.log where it belongs 10614a8fdb4bcSmrg echo "$LUIT_PKG_ERRORS" >&5 10615a8fdb4bcSmrg 1061677683534Smrg as_fn_error $? "Package requirements (fontenc) were not met: 10617a8fdb4bcSmrg 10618a8fdb4bcSmrg$LUIT_PKG_ERRORS 10619a8fdb4bcSmrg 10620a8fdb4bcSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 10621a8fdb4bcSmrginstalled software in a non-standard prefix. 10622a8fdb4bcSmrg 10623a8fdb4bcSmrgAlternatively, you may set the environment variables LUIT_CFLAGS 10624a8fdb4bcSmrgand LUIT_LIBS to avoid the need to call pkg-config. 10625a8fdb4bcSmrgSee the pkg-config man page for more details. 10626dbe7da2eSmrg" "$LINENO" 5 10627a8fdb4bcSmrgelif test $pkg_failed = untried; then 10628dbe7da2eSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10629dbe7da2eSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1063077683534Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10631a8fdb4bcSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 10632a8fdb4bcSmrgpath to pkg-config. 10633a8fdb4bcSmrg 10634a8fdb4bcSmrgAlternatively, you may set the environment variables LUIT_CFLAGS 10635a8fdb4bcSmrgand LUIT_LIBS to avoid the need to call pkg-config. 10636a8fdb4bcSmrgSee the pkg-config man page for more details. 10637a8fdb4bcSmrg 10638a8fdb4bcSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 1063977683534SmrgSee \`config.log' for more details" "$LINENO" 5; } 10640a8fdb4bcSmrgelse 10641a8fdb4bcSmrg LUIT_CFLAGS=$pkg_cv_LUIT_CFLAGS 10642a8fdb4bcSmrg LUIT_LIBS=$pkg_cv_LUIT_LIBS 10643dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10644dbe7da2eSmrg$as_echo "yes" >&6; } 10645a8fdb4bcSmrg : 10646a8fdb4bcSmrgfi 10647a8fdb4bcSmrg 1064877683534Smrg# We don't link against libX11, just use its locale.alias data file 1064977683534Smrgif test -n "$PKG_CONFIG" && \ 1065077683534Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 1065177683534Smrg ($PKG_CONFIG --exists --print-errors "x11") 2>&5 1065277683534Smrg ac_status=$? 1065377683534Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1065477683534Smrg test $ac_status = 0; }; then 1065577683534Smrg : 1065677683534Smrgelse 1065777683534Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libX11 not found. luit may not be able to find locale aliases without it." >&5 1065877683534Smrg$as_echo "$as_me: WARNING: libX11 not found. luit may not be able to find locale aliases without it." >&2;} 1065977683534Smrgfi 1066077683534Smrg 10661a8fdb4bcSmrgcase $host_os in 10662dbe7da2eSmrg # darwin has poll() but can't be used to poll character devices (atleast through SnowLeopard) 10663dbe7da2eSmrg darwin*) 10664a8fdb4bcSmrg OS_CFLAGS= 10665a8fdb4bcSmrg ;; 10666dbe7da2eSmrg linux*) 10667dbe7da2eSmrg for ac_header in poll.h 10668dbe7da2eSmrgdo : 10669dbe7da2eSmrg ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 1067077683534Smrgif test "x$ac_cv_header_poll_h" = xyes; then : 10671dbe7da2eSmrg cat >>confdefs.h <<_ACEOF 10672dbe7da2eSmrg#define HAVE_POLL_H 1 10673dbe7da2eSmrg_ACEOF 10674a8fdb4bcSmrg 10675a8fdb4bcSmrgfi 10676a8fdb4bcSmrg 10677dbe7da2eSmrgdone 10678a8fdb4bcSmrg 10679dbe7da2eSmrg for ac_func in poll 10680dbe7da2eSmrgdo : 10681dbe7da2eSmrg ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 1068277683534Smrgif test "x$ac_cv_func_poll" = xyes; then : 10683dbe7da2eSmrg cat >>confdefs.h <<_ACEOF 10684dbe7da2eSmrg#define HAVE_POLL 1 10685dbe7da2eSmrg_ACEOF 10686a8fdb4bcSmrg 10687a8fdb4bcSmrgfi 10688dbe7da2eSmrgdone 10689a8fdb4bcSmrg 10690dbe7da2eSmrg OS_CFLAGS="-D_XOPEN_SOURCE=500" 10691dbe7da2eSmrg ;; 10692dbe7da2eSmrg *) 10693dbe7da2eSmrg for ac_header in poll.h 10694dbe7da2eSmrgdo : 10695dbe7da2eSmrg ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 1069677683534Smrgif test "x$ac_cv_header_poll_h" = xyes; then : 10697dbe7da2eSmrg cat >>confdefs.h <<_ACEOF 10698dbe7da2eSmrg#define HAVE_POLL_H 1 10699dbe7da2eSmrg_ACEOF 10700a8fdb4bcSmrg 10701a8fdb4bcSmrgfi 10702a8fdb4bcSmrg 10703dbe7da2eSmrgdone 10704a8fdb4bcSmrg 10705dbe7da2eSmrg for ac_func in poll 10706dbe7da2eSmrgdo : 10707dbe7da2eSmrg ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 1070877683534Smrgif test "x$ac_cv_func_poll" = xyes; then : 10709dbe7da2eSmrg cat >>confdefs.h <<_ACEOF 10710dbe7da2eSmrg#define HAVE_POLL 1 10711a8fdb4bcSmrg_ACEOF 10712a8fdb4bcSmrg 10713dbe7da2eSmrgfi 10714dbe7da2eSmrgdone 10715a8fdb4bcSmrg 10716dbe7da2eSmrg OS_CFLAGS= 10717dbe7da2eSmrg ;; 10718dbe7da2eSmrgesac 10719a8fdb4bcSmrg 10720a8fdb4bcSmrg 1072177683534Smrgfor ac_header in pty.h stropts.h sys/ioctl.h sys/param.h sys/poll.h sys/select.h sys/time.h termios.h 1072277683534Smrgdo : 1072377683534Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 1072477683534Smrgac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 1072577683534Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 1072677683534Smrg cat >>confdefs.h <<_ACEOF 1072777683534Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 1072877683534Smrg_ACEOF 1072977683534Smrg 1073077683534Smrgfi 1073177683534Smrg 1073277683534Smrgdone 1073377683534Smrg 1073477683534Smrgfor ac_func in grantpt putenv select strdup 1073577683534Smrgdo : 1073677683534Smrg as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 1073777683534Smrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 1073877683534Smrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 1073977683534Smrg cat >>confdefs.h <<_ACEOF 1074077683534Smrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 1074177683534Smrg_ACEOF 1074277683534Smrg 1074377683534Smrgfi 1074477683534Smrgdone 1074577683534Smrg 1074677683534Smrg 1074777683534Smrgif test "x$ac_cv_func_grantpt" != "xyes" ; then 1074877683534Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 1074977683534Smrg$as_echo_n "checking for openpty in -lutil... " >&6; } 1075077683534Smrgif ${ac_cv_lib_util_openpty+:} false; then : 1075177683534Smrg $as_echo_n "(cached) " >&6 1075277683534Smrgelse 1075377683534Smrg ac_check_lib_save_LIBS=$LIBS 1075477683534SmrgLIBS="-lutil $LIBS" 1075577683534Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1075677683534Smrg/* end confdefs.h. */ 1075777683534Smrg 1075877683534Smrg/* Override any GCC internal prototype to avoid an error. 1075977683534Smrg Use char because int might match the return type of a GCC 1076077683534Smrg builtin and then its argument prototype would still apply. */ 1076177683534Smrg#ifdef __cplusplus 1076277683534Smrgextern "C" 1076377683534Smrg#endif 1076477683534Smrgchar openpty (); 1076577683534Smrgint 1076677683534Smrgmain () 1076777683534Smrg{ 1076877683534Smrgreturn openpty (); 1076977683534Smrg ; 1077077683534Smrg return 0; 1077177683534Smrg} 1077277683534Smrg_ACEOF 1077377683534Smrgif ac_fn_c_try_link "$LINENO"; then : 1077477683534Smrg ac_cv_lib_util_openpty=yes 1077577683534Smrgelse 1077677683534Smrg ac_cv_lib_util_openpty=no 1077777683534Smrgfi 1077877683534Smrgrm -f core conftest.err conftest.$ac_objext \ 1077977683534Smrg conftest$ac_exeext conftest.$ac_ext 1078077683534SmrgLIBS=$ac_check_lib_save_LIBS 1078177683534Smrgfi 1078277683534Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 1078377683534Smrg$as_echo "$ac_cv_lib_util_openpty" >&6; } 1078477683534Smrgif test "x$ac_cv_lib_util_openpty" = xyes; then : 1078577683534Smrg cf_have_openpty=yes 1078677683534Smrgelse 1078777683534Smrg cf_have_openpty=no 1078877683534Smrgfi 1078977683534Smrg 1079077683534Smrg if test "$cf_have_openpty" = yes ; then 1079177683534Smrg LIBS="-lutil $LIBS" 1079277683534Smrg 1079377683534Smrg$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 1079477683534Smrg 1079577683534Smrg for ac_header in \ 1079677683534Smrg util.h \ 1079777683534Smrg libutil.h \ 1079877683534Smrg pty.h \ 1079977683534Smrg 1080077683534Smrgdo : 1080177683534Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 1080277683534Smrgac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 1080377683534Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 1080477683534Smrg cat >>confdefs.h <<_ACEOF 1080577683534Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 1080677683534Smrg_ACEOF 1080777683534Smrg 1080877683534Smrgfi 1080977683534Smrg 1081077683534Smrgdone 1081177683534Smrg 1081277683534Smrg fi 1081377683534Smrgfi 1081477683534Smrg 1081577683534Smrg 1081677683534Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll really works" >&5 1081777683534Smrg$as_echo_n "checking if poll really works... " >&6; } 1081877683534Smrgif ${cf_cv_working_poll+:} false; then : 1081977683534Smrg $as_echo_n "(cached) " >&6 1082077683534Smrgelse 1082177683534Smrg 1082277683534Smrgif test "$cross_compiling" = yes; then : 1082377683534Smrg cf_cv_working_poll=unknown 1082477683534Smrgelse 1082577683534Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1082677683534Smrg/* end confdefs.h. */ 1082777683534Smrg 1082877683534Smrg#include <stdio.h> 1082977683534Smrg#ifdef HAVE_POLL_H 1083077683534Smrg#include <poll.h> 1083177683534Smrg#else 1083277683534Smrg#include <sys/poll.h> 1083377683534Smrg#endif 1083477683534Smrgint main() { 1083577683534Smrg struct pollfd myfds; 1083677683534Smrg int ret; 1083777683534Smrg 1083877683534Smrg myfds.fd = 0; 1083977683534Smrg myfds.events = POLLIN; 1084077683534Smrg 1084177683534Smrg ret = poll(&myfds, 1, 100); 1084277683534Smrg ${cf_cv_main_return:-return}(ret != 0); 1084377683534Smrg} 1084477683534Smrg_ACEOF 1084577683534Smrgif ac_fn_c_try_run "$LINENO"; then : 1084677683534Smrg cf_cv_working_poll=yes 1084777683534Smrgelse 1084877683534Smrg cf_cv_working_poll=no 1084977683534Smrgfi 1085077683534Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1085177683534Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 1085277683534Smrgfi 1085377683534Smrg 1085477683534Smrgfi 1085577683534Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_working_poll" >&5 1085677683534Smrg$as_echo "$cf_cv_working_poll" >&6; } 1085777683534Smrgtest "$cf_cv_working_poll" = "yes" && 1085877683534Smrg$as_echo "#define HAVE_WORKING_POLL 1" >>confdefs.h 1085977683534Smrg 1086077683534Smrg 1086177683534Smrg 1086277683534Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIGWINCH is defined" >&5 1086377683534Smrg$as_echo_n "checking if SIGWINCH is defined... " >&6; } 1086477683534Smrgif ${cf_cv_define_sigwinch+:} false; then : 1086577683534Smrg $as_echo_n "(cached) " >&6 1086677683534Smrgelse 1086777683534Smrg 1086877683534Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1086977683534Smrg/* end confdefs.h. */ 1087077683534Smrg 1087177683534Smrg#include <sys/types.h> 1087277683534Smrg#include <sys/signal.h> 1087377683534Smrg 1087477683534Smrgint 1087577683534Smrgmain () 1087677683534Smrg{ 1087777683534Smrgint x = SIGWINCH 1087877683534Smrg ; 1087977683534Smrg return 0; 1088077683534Smrg} 1088177683534Smrg_ACEOF 1088277683534Smrgif ac_fn_c_try_compile "$LINENO"; then : 1088377683534Smrg cf_cv_define_sigwinch=yes 1088477683534Smrgelse 1088577683534Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1088677683534Smrg/* end confdefs.h. */ 1088777683534Smrg 1088877683534Smrg#undef _XOPEN_SOURCE 1088977683534Smrg#undef _POSIX_SOURCE 1089077683534Smrg#undef _POSIX_C_SOURCE 1089177683534Smrg#include <sys/types.h> 1089277683534Smrg#include <sys/signal.h> 1089377683534Smrg 1089477683534Smrgint 1089577683534Smrgmain () 1089677683534Smrg{ 1089777683534Smrgint x = SIGWINCH 1089877683534Smrg ; 1089977683534Smrg return 0; 1090077683534Smrg} 1090177683534Smrg_ACEOF 1090277683534Smrgif ac_fn_c_try_compile "$LINENO"; then : 1090377683534Smrg cf_cv_define_sigwinch=maybe 1090477683534Smrgelse 1090577683534Smrg cf_cv_define_sigwinch=no 1090677683534Smrgfi 1090777683534Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1090877683534Smrg 1090977683534Smrgfi 1091077683534Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1091177683534Smrg 1091277683534Smrgfi 1091377683534Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_define_sigwinch" >&5 1091477683534Smrg$as_echo "$cf_cv_define_sigwinch" >&6; } 1091577683534Smrg 1091677683534Smrgif test "$cf_cv_define_sigwinch" = maybe ; then 1091777683534Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for actual SIGWINCH definition" >&5 1091877683534Smrg$as_echo_n "checking for actual SIGWINCH definition... " >&6; } 1091977683534Smrgif ${cf_cv_fixup_sigwinch+:} false; then : 1092077683534Smrg $as_echo_n "(cached) " >&6 1092177683534Smrgelse 1092277683534Smrg 1092377683534Smrgcf_cv_fixup_sigwinch=unknown 1092477683534Smrgcf_sigwinch=32 1092577683534Smrgwhile test $cf_sigwinch != 1 1092677683534Smrgdo 1092777683534Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1092877683534Smrg/* end confdefs.h. */ 1092977683534Smrg 1093077683534Smrg#undef _XOPEN_SOURCE 1093177683534Smrg#undef _POSIX_SOURCE 1093277683534Smrg#undef _POSIX_C_SOURCE 1093377683534Smrg#include <sys/types.h> 1093477683534Smrg#include <sys/signal.h> 1093577683534Smrg 1093677683534Smrgint 1093777683534Smrgmain () 1093877683534Smrg{ 1093977683534Smrg 1094077683534Smrg#if SIGWINCH != $cf_sigwinch 1094177683534Smrgmake an error 1094277683534Smrg#endif 1094377683534Smrgint x = SIGWINCH 1094477683534Smrg ; 1094577683534Smrg return 0; 1094677683534Smrg} 1094777683534Smrg_ACEOF 1094877683534Smrgif ac_fn_c_try_compile "$LINENO"; then : 1094977683534Smrg cf_cv_fixup_sigwinch=$cf_sigwinch 1095077683534Smrg break 1095177683534Smrgfi 1095277683534Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1095377683534Smrg 1095477683534Smrgcf_sigwinch=`expr $cf_sigwinch - 1` 1095577683534Smrgdone 1095677683534Smrg 1095777683534Smrgfi 1095877683534Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_fixup_sigwinch" >&5 1095977683534Smrg$as_echo "$cf_cv_fixup_sigwinch" >&6; } 1096077683534Smrg 1096177683534Smrg if test "$cf_cv_fixup_sigwinch" != unknown ; then 1096277683534Smrg CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" 1096377683534Smrg fi 1096477683534Smrgfi 10965a8fdb4bcSmrg 10966a8fdb4bcSmrg 1096777683534Smrgac_config_files="$ac_config_files Makefile man/Makefile" 1096877683534Smrg 10969a8fdb4bcSmrg 10970a8fdb4bcSmrgcat >confcache <<\_ACEOF 10971a8fdb4bcSmrg# This file is a shell script that caches the results of configure 10972a8fdb4bcSmrg# tests run on this system so they can be shared between configure 10973a8fdb4bcSmrg# scripts and configure runs, see configure's option --config-cache. 10974a8fdb4bcSmrg# It is not useful on other systems. If it contains results you don't 10975a8fdb4bcSmrg# want to keep, you may remove or edit it. 10976a8fdb4bcSmrg# 10977a8fdb4bcSmrg# config.status only pays attention to the cache file if you give it 10978a8fdb4bcSmrg# the --recheck option to rerun configure. 10979a8fdb4bcSmrg# 10980a8fdb4bcSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 10981a8fdb4bcSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 10982a8fdb4bcSmrg# following values. 10983a8fdb4bcSmrg 10984a8fdb4bcSmrg_ACEOF 10985a8fdb4bcSmrg 10986a8fdb4bcSmrg# The following way of writing the cache mishandles newlines in values, 10987a8fdb4bcSmrg# but we know of no workaround that is simple, portable, and efficient. 10988a8fdb4bcSmrg# So, we kill variables containing newlines. 10989a8fdb4bcSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 10990a8fdb4bcSmrg# and sets the high bit in the cache file unless we assign to the vars. 10991a8fdb4bcSmrg( 10992a8fdb4bcSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10993a8fdb4bcSmrg eval ac_val=\$$ac_var 10994a8fdb4bcSmrg case $ac_val in #( 10995a8fdb4bcSmrg *${as_nl}*) 10996a8fdb4bcSmrg case $ac_var in #( 10997dbe7da2eSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10998dbe7da2eSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10999a8fdb4bcSmrg esac 11000a8fdb4bcSmrg case $ac_var in #( 11001a8fdb4bcSmrg _ | IFS | as_nl) ;; #( 11002dbe7da2eSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11003dbe7da2eSmrg *) { eval $ac_var=; unset $ac_var;} ;; 11004a8fdb4bcSmrg esac ;; 11005a8fdb4bcSmrg esac 11006a8fdb4bcSmrg done 11007a8fdb4bcSmrg 11008a8fdb4bcSmrg (set) 2>&1 | 11009a8fdb4bcSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 11010a8fdb4bcSmrg *${as_nl}ac_space=\ *) 11011dbe7da2eSmrg # `set' does not quote correctly, so add quotes: double-quote 11012dbe7da2eSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 11013a8fdb4bcSmrg sed -n \ 11014a8fdb4bcSmrg "s/'/'\\\\''/g; 11015a8fdb4bcSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11016a8fdb4bcSmrg ;; #( 11017a8fdb4bcSmrg *) 11018a8fdb4bcSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 11019a8fdb4bcSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11020a8fdb4bcSmrg ;; 11021a8fdb4bcSmrg esac | 11022a8fdb4bcSmrg sort 11023a8fdb4bcSmrg) | 11024a8fdb4bcSmrg sed ' 11025a8fdb4bcSmrg /^ac_cv_env_/b end 11026a8fdb4bcSmrg t clear 11027a8fdb4bcSmrg :clear 11028a8fdb4bcSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11029a8fdb4bcSmrg t end 11030a8fdb4bcSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11031a8fdb4bcSmrg :end' >>confcache 11032a8fdb4bcSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11033a8fdb4bcSmrg if test -w "$cache_file"; then 1103477683534Smrg if test "x$cache_file" != "x/dev/null"; then 11035dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11036dbe7da2eSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 1103777683534Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 1103877683534Smrg cat confcache >"$cache_file" 1103977683534Smrg else 1104077683534Smrg case $cache_file in #( 1104177683534Smrg */* | ?:*) 1104277683534Smrg mv -f confcache "$cache_file"$$ && 1104377683534Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 1104477683534Smrg *) 1104577683534Smrg mv -f confcache "$cache_file" ;; 1104677683534Smrg esac 1104777683534Smrg fi 1104877683534Smrg fi 11049a8fdb4bcSmrg else 11050dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11051dbe7da2eSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11052a8fdb4bcSmrg fi 11053a8fdb4bcSmrgfi 11054a8fdb4bcSmrgrm -f confcache 11055a8fdb4bcSmrg 11056a8fdb4bcSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 11057a8fdb4bcSmrg# Let make expand exec_prefix. 11058a8fdb4bcSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11059a8fdb4bcSmrg 11060a8fdb4bcSmrgDEFS=-DHAVE_CONFIG_H 11061a8fdb4bcSmrg 11062a8fdb4bcSmrgac_libobjs= 11063a8fdb4bcSmrgac_ltlibobjs= 1106477683534SmrgU= 11065a8fdb4bcSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11066a8fdb4bcSmrg # 1. Remove the extension, and $U if already installed. 11067a8fdb4bcSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11068dbe7da2eSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11069a8fdb4bcSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11070a8fdb4bcSmrg # will be set to the directory where LIBOBJS objects are built. 11071dbe7da2eSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11072dbe7da2eSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11073a8fdb4bcSmrgdone 11074a8fdb4bcSmrgLIBOBJS=$ac_libobjs 11075a8fdb4bcSmrg 11076a8fdb4bcSmrgLTLIBOBJS=$ac_ltlibobjs 11077a8fdb4bcSmrg 11078a8fdb4bcSmrg 11079dbe7da2eSmrg if test -n "$EXEEXT"; then 11080dbe7da2eSmrg am__EXEEXT_TRUE= 11081dbe7da2eSmrg am__EXEEXT_FALSE='#' 11082dbe7da2eSmrgelse 11083dbe7da2eSmrg am__EXEEXT_TRUE='#' 11084dbe7da2eSmrg am__EXEEXT_FALSE= 11085dbe7da2eSmrgfi 11086dbe7da2eSmrg 11087a8fdb4bcSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 1108877683534Smrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11089dbe7da2eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11090a8fdb4bcSmrgfi 11091a8fdb4bcSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 1109277683534Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 11093dbe7da2eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11094a8fdb4bcSmrgfi 11095a8fdb4bcSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1109677683534Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11097dbe7da2eSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11098a8fdb4bcSmrgfi 11099a8fdb4bcSmrg 1110077683534Smrg: "${CONFIG_STATUS=./config.status}" 11101dbe7da2eSmrgac_write_fail=0 11102a8fdb4bcSmrgac_clean_files_save=$ac_clean_files 11103a8fdb4bcSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 11104dbe7da2eSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11105dbe7da2eSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11106dbe7da2eSmrgas_write_fail=0 11107dbe7da2eSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11108a8fdb4bcSmrg#! $SHELL 11109a8fdb4bcSmrg# Generated by $as_me. 11110a8fdb4bcSmrg# Run this file to recreate the current configuration. 11111a8fdb4bcSmrg# Compiler output produced by configure, useful for debugging 11112a8fdb4bcSmrg# configure, is in config.log if it exists. 11113a8fdb4bcSmrg 11114a8fdb4bcSmrgdebug=false 11115a8fdb4bcSmrgac_cs_recheck=false 11116a8fdb4bcSmrgac_cs_silent=false 11117a8fdb4bcSmrg 11118dbe7da2eSmrgSHELL=\${CONFIG_SHELL-$SHELL} 11119dbe7da2eSmrgexport SHELL 11120dbe7da2eSmrg_ASEOF 11121dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11122dbe7da2eSmrg## -------------------- ## 11123dbe7da2eSmrg## M4sh Initialization. ## 11124dbe7da2eSmrg## -------------------- ## 11125a8fdb4bcSmrg 11126a8fdb4bcSmrg# Be more Bourne compatible 11127a8fdb4bcSmrgDUALCASE=1; export DUALCASE # for MKS sh 11128dbe7da2eSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11129a8fdb4bcSmrg emulate sh 11130a8fdb4bcSmrg NULLCMD=: 11131dbe7da2eSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11132a8fdb4bcSmrg # is contrary to our usage. Disable this feature. 11133a8fdb4bcSmrg alias -g '${1+"$@"}'='"$@"' 11134a8fdb4bcSmrg setopt NO_GLOB_SUBST 11135a8fdb4bcSmrgelse 11136dbe7da2eSmrg case `(set -o) 2>/dev/null` in #( 11137dbe7da2eSmrg *posix*) : 11138dbe7da2eSmrg set -o posix ;; #( 11139dbe7da2eSmrg *) : 11140dbe7da2eSmrg ;; 11141a8fdb4bcSmrgesac 11142a8fdb4bcSmrgfi 11143a8fdb4bcSmrg 11144a8fdb4bcSmrg 11145dbe7da2eSmrgas_nl=' 11146dbe7da2eSmrg' 11147dbe7da2eSmrgexport as_nl 11148dbe7da2eSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 11149dbe7da2eSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11150dbe7da2eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11151dbe7da2eSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11152dbe7da2eSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 11153dbe7da2eSmrg# but without wasting forks for bash or zsh. 11154dbe7da2eSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 11155dbe7da2eSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11156dbe7da2eSmrg as_echo='print -r --' 11157dbe7da2eSmrg as_echo_n='print -rn --' 11158dbe7da2eSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11159dbe7da2eSmrg as_echo='printf %s\n' 11160dbe7da2eSmrg as_echo_n='printf %s' 11161dbe7da2eSmrgelse 11162dbe7da2eSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11163dbe7da2eSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11164dbe7da2eSmrg as_echo_n='/usr/ucb/echo -n' 11165a8fdb4bcSmrg else 11166dbe7da2eSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11167dbe7da2eSmrg as_echo_n_body='eval 11168dbe7da2eSmrg arg=$1; 11169dbe7da2eSmrg case $arg in #( 11170dbe7da2eSmrg *"$as_nl"*) 11171dbe7da2eSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 11172dbe7da2eSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11173dbe7da2eSmrg esac; 11174dbe7da2eSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11175dbe7da2eSmrg ' 11176dbe7da2eSmrg export as_echo_n_body 11177dbe7da2eSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 11178a8fdb4bcSmrg fi 11179dbe7da2eSmrg export as_echo_body 11180dbe7da2eSmrg as_echo='sh -c $as_echo_body as_echo' 11181a8fdb4bcSmrgfi 11182a8fdb4bcSmrg 11183dbe7da2eSmrg# The user is always right. 11184dbe7da2eSmrgif test "${PATH_SEPARATOR+set}" != set; then 11185dbe7da2eSmrg PATH_SEPARATOR=: 11186dbe7da2eSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11187dbe7da2eSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11188dbe7da2eSmrg PATH_SEPARATOR=';' 11189dbe7da2eSmrg } 11190a8fdb4bcSmrgfi 11191a8fdb4bcSmrg 11192a8fdb4bcSmrg 11193a8fdb4bcSmrg# IFS 11194a8fdb4bcSmrg# We need space, tab and new line, in precisely that order. Quoting is 11195a8fdb4bcSmrg# there to prevent editors from complaining about space-tab. 11196a8fdb4bcSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11197a8fdb4bcSmrg# splitting by setting IFS to empty value.) 11198a8fdb4bcSmrgIFS=" "" $as_nl" 11199a8fdb4bcSmrg 11200a8fdb4bcSmrg# Find who we are. Look in the path if we contain no directory separator. 1120177683534Smrgas_myself= 11202dbe7da2eSmrgcase $0 in #(( 11203a8fdb4bcSmrg *[\\/]* ) as_myself=$0 ;; 11204a8fdb4bcSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11205a8fdb4bcSmrgfor as_dir in $PATH 11206a8fdb4bcSmrgdo 11207a8fdb4bcSmrg IFS=$as_save_IFS 11208a8fdb4bcSmrg test -z "$as_dir" && as_dir=. 11209dbe7da2eSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11210dbe7da2eSmrg done 11211a8fdb4bcSmrgIFS=$as_save_IFS 11212a8fdb4bcSmrg 11213a8fdb4bcSmrg ;; 11214a8fdb4bcSmrgesac 11215a8fdb4bcSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 11216a8fdb4bcSmrg# in which case we are not to be found in the path. 11217a8fdb4bcSmrgif test "x$as_myself" = x; then 11218a8fdb4bcSmrg as_myself=$0 11219a8fdb4bcSmrgfi 11220a8fdb4bcSmrgif test ! -f "$as_myself"; then 11221dbe7da2eSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11222dbe7da2eSmrg exit 1 11223a8fdb4bcSmrgfi 11224a8fdb4bcSmrg 11225dbe7da2eSmrg# Unset variables that we do not need and which cause bugs (e.g. in 11226dbe7da2eSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11227dbe7da2eSmrg# suppresses any "Segmentation fault" message there. '((' could 11228dbe7da2eSmrg# trigger a bug in pdksh 5.2.14. 11229dbe7da2eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 11230dbe7da2eSmrgdo eval test x\${$as_var+set} = xset \ 11231dbe7da2eSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11232a8fdb4bcSmrgdone 11233a8fdb4bcSmrgPS1='$ ' 11234a8fdb4bcSmrgPS2='> ' 11235a8fdb4bcSmrgPS4='+ ' 11236a8fdb4bcSmrg 11237a8fdb4bcSmrg# NLS nuisances. 11238dbe7da2eSmrgLC_ALL=C 11239dbe7da2eSmrgexport LC_ALL 11240dbe7da2eSmrgLANGUAGE=C 11241dbe7da2eSmrgexport LANGUAGE 11242dbe7da2eSmrg 11243dbe7da2eSmrg# CDPATH. 11244dbe7da2eSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11245dbe7da2eSmrg 11246dbe7da2eSmrg 1124777683534Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 1124877683534Smrg# ---------------------------------------- 11249dbe7da2eSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11250dbe7da2eSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 1125177683534Smrg# script with STATUS, using 1 if that was 0. 11252dbe7da2eSmrgas_fn_error () 11253dbe7da2eSmrg{ 1125477683534Smrg as_status=$1; test $as_status -eq 0 && as_status=1 1125577683534Smrg if test "$4"; then 1125677683534Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1125777683534Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11258a8fdb4bcSmrg fi 1125977683534Smrg $as_echo "$as_me: error: $2" >&2 11260dbe7da2eSmrg as_fn_exit $as_status 11261dbe7da2eSmrg} # as_fn_error 11262dbe7da2eSmrg 11263dbe7da2eSmrg 11264dbe7da2eSmrg# as_fn_set_status STATUS 11265dbe7da2eSmrg# ----------------------- 11266dbe7da2eSmrg# Set $? to STATUS, without forking. 11267dbe7da2eSmrgas_fn_set_status () 11268dbe7da2eSmrg{ 11269dbe7da2eSmrg return $1 11270dbe7da2eSmrg} # as_fn_set_status 11271dbe7da2eSmrg 11272dbe7da2eSmrg# as_fn_exit STATUS 11273dbe7da2eSmrg# ----------------- 11274dbe7da2eSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11275dbe7da2eSmrgas_fn_exit () 11276dbe7da2eSmrg{ 11277dbe7da2eSmrg set +e 11278dbe7da2eSmrg as_fn_set_status $1 11279dbe7da2eSmrg exit $1 11280dbe7da2eSmrg} # as_fn_exit 11281dbe7da2eSmrg 11282dbe7da2eSmrg# as_fn_unset VAR 11283dbe7da2eSmrg# --------------- 11284dbe7da2eSmrg# Portably unset VAR. 11285dbe7da2eSmrgas_fn_unset () 11286dbe7da2eSmrg{ 11287dbe7da2eSmrg { eval $1=; unset $1;} 11288dbe7da2eSmrg} 11289dbe7da2eSmrgas_unset=as_fn_unset 11290dbe7da2eSmrg# as_fn_append VAR VALUE 11291dbe7da2eSmrg# ---------------------- 11292dbe7da2eSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 11293dbe7da2eSmrg# advantage of any shell optimizations that allow amortized linear growth over 11294dbe7da2eSmrg# repeated appends, instead of the typical quadratic growth present in naive 11295dbe7da2eSmrg# implementations. 11296dbe7da2eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11297dbe7da2eSmrg eval 'as_fn_append () 11298dbe7da2eSmrg { 11299dbe7da2eSmrg eval $1+=\$2 11300dbe7da2eSmrg }' 11301dbe7da2eSmrgelse 11302dbe7da2eSmrg as_fn_append () 11303dbe7da2eSmrg { 11304dbe7da2eSmrg eval $1=\$$1\$2 11305dbe7da2eSmrg } 11306dbe7da2eSmrgfi # as_fn_append 11307dbe7da2eSmrg 11308dbe7da2eSmrg# as_fn_arith ARG... 11309dbe7da2eSmrg# ------------------ 11310dbe7da2eSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 11311dbe7da2eSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 11312dbe7da2eSmrg# must be portable across $(()) and expr. 11313dbe7da2eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11314dbe7da2eSmrg eval 'as_fn_arith () 11315dbe7da2eSmrg { 11316dbe7da2eSmrg as_val=$(( $* )) 11317dbe7da2eSmrg }' 11318dbe7da2eSmrgelse 11319dbe7da2eSmrg as_fn_arith () 11320dbe7da2eSmrg { 11321dbe7da2eSmrg as_val=`expr "$@" || test $? -eq 1` 11322dbe7da2eSmrg } 11323dbe7da2eSmrgfi # as_fn_arith 11324dbe7da2eSmrg 11325a8fdb4bcSmrg 11326a8fdb4bcSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 11327a8fdb4bcSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 11328a8fdb4bcSmrg as_expr=expr 11329a8fdb4bcSmrgelse 11330a8fdb4bcSmrg as_expr=false 11331a8fdb4bcSmrgfi 11332a8fdb4bcSmrg 11333a8fdb4bcSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11334a8fdb4bcSmrg as_basename=basename 11335a8fdb4bcSmrgelse 11336a8fdb4bcSmrg as_basename=false 11337a8fdb4bcSmrgfi 11338a8fdb4bcSmrg 11339dbe7da2eSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11340dbe7da2eSmrg as_dirname=dirname 11341dbe7da2eSmrgelse 11342dbe7da2eSmrg as_dirname=false 11343dbe7da2eSmrgfi 11344a8fdb4bcSmrg 11345a8fdb4bcSmrgas_me=`$as_basename -- "$0" || 11346a8fdb4bcSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11347a8fdb4bcSmrg X"$0" : 'X\(//\)$' \| \ 11348a8fdb4bcSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 11349dbe7da2eSmrg$as_echo X/"$0" | 11350a8fdb4bcSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 11351a8fdb4bcSmrg s//\1/ 11352a8fdb4bcSmrg q 11353a8fdb4bcSmrg } 11354a8fdb4bcSmrg /^X\/\(\/\/\)$/{ 11355a8fdb4bcSmrg s//\1/ 11356a8fdb4bcSmrg q 11357a8fdb4bcSmrg } 11358a8fdb4bcSmrg /^X\/\(\/\).*/{ 11359a8fdb4bcSmrg s//\1/ 11360a8fdb4bcSmrg q 11361a8fdb4bcSmrg } 11362a8fdb4bcSmrg s/.*/./; q'` 11363a8fdb4bcSmrg 11364dbe7da2eSmrg# Avoid depending upon Character Ranges. 11365dbe7da2eSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 11366dbe7da2eSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11367dbe7da2eSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 11368dbe7da2eSmrgas_cr_digits='0123456789' 11369dbe7da2eSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 11370a8fdb4bcSmrg 11371a8fdb4bcSmrgECHO_C= ECHO_N= ECHO_T= 11372dbe7da2eSmrgcase `echo -n x` in #((((( 11373a8fdb4bcSmrg-n*) 11374dbe7da2eSmrg case `echo 'xy\c'` in 11375a8fdb4bcSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11376dbe7da2eSmrg xy) ECHO_C='\c';; 11377dbe7da2eSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11378dbe7da2eSmrg ECHO_T=' ';; 11379a8fdb4bcSmrg esac;; 11380a8fdb4bcSmrg*) 11381a8fdb4bcSmrg ECHO_N='-n';; 11382a8fdb4bcSmrgesac 11383a8fdb4bcSmrg 11384a8fdb4bcSmrgrm -f conf$$ conf$$.exe conf$$.file 11385a8fdb4bcSmrgif test -d conf$$.dir; then 11386a8fdb4bcSmrg rm -f conf$$.dir/conf$$.file 11387a8fdb4bcSmrgelse 11388a8fdb4bcSmrg rm -f conf$$.dir 11389dbe7da2eSmrg mkdir conf$$.dir 2>/dev/null 11390dbe7da2eSmrgfi 11391dbe7da2eSmrgif (echo >conf$$.file) 2>/dev/null; then 11392dbe7da2eSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 11393dbe7da2eSmrg as_ln_s='ln -s' 11394dbe7da2eSmrg # ... but there are two gotchas: 11395dbe7da2eSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11396dbe7da2eSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11397dbe7da2eSmrg # In both cases, we have to default to `cp -p'. 11398dbe7da2eSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11399dbe7da2eSmrg as_ln_s='cp -p' 11400dbe7da2eSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 11401dbe7da2eSmrg as_ln_s=ln 11402dbe7da2eSmrg else 11403a8fdb4bcSmrg as_ln_s='cp -p' 11404dbe7da2eSmrg fi 11405a8fdb4bcSmrgelse 11406a8fdb4bcSmrg as_ln_s='cp -p' 11407a8fdb4bcSmrgfi 11408a8fdb4bcSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11409a8fdb4bcSmrgrmdir conf$$.dir 2>/dev/null 11410a8fdb4bcSmrg 11411dbe7da2eSmrg 11412dbe7da2eSmrg# as_fn_mkdir_p 11413dbe7da2eSmrg# ------------- 11414dbe7da2eSmrg# Create "$as_dir" as a directory, including parents if necessary. 11415dbe7da2eSmrgas_fn_mkdir_p () 11416dbe7da2eSmrg{ 11417dbe7da2eSmrg 11418dbe7da2eSmrg case $as_dir in #( 11419dbe7da2eSmrg -*) as_dir=./$as_dir;; 11420dbe7da2eSmrg esac 11421dbe7da2eSmrg test -d "$as_dir" || eval $as_mkdir_p || { 11422dbe7da2eSmrg as_dirs= 11423dbe7da2eSmrg while :; do 11424dbe7da2eSmrg case $as_dir in #( 11425dbe7da2eSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11426dbe7da2eSmrg *) as_qdir=$as_dir;; 11427dbe7da2eSmrg esac 11428dbe7da2eSmrg as_dirs="'$as_qdir' $as_dirs" 11429dbe7da2eSmrg as_dir=`$as_dirname -- "$as_dir" || 11430dbe7da2eSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11431dbe7da2eSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 11432dbe7da2eSmrg X"$as_dir" : 'X\(//\)$' \| \ 11433dbe7da2eSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11434dbe7da2eSmrg$as_echo X"$as_dir" | 11435dbe7da2eSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11436dbe7da2eSmrg s//\1/ 11437dbe7da2eSmrg q 11438dbe7da2eSmrg } 11439dbe7da2eSmrg /^X\(\/\/\)[^/].*/{ 11440dbe7da2eSmrg s//\1/ 11441dbe7da2eSmrg q 11442dbe7da2eSmrg } 11443dbe7da2eSmrg /^X\(\/\/\)$/{ 11444dbe7da2eSmrg s//\1/ 11445dbe7da2eSmrg q 11446dbe7da2eSmrg } 11447dbe7da2eSmrg /^X\(\/\).*/{ 11448dbe7da2eSmrg s//\1/ 11449dbe7da2eSmrg q 11450dbe7da2eSmrg } 11451dbe7da2eSmrg s/.*/./; q'` 11452dbe7da2eSmrg test -d "$as_dir" && break 11453dbe7da2eSmrg done 11454dbe7da2eSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 1145577683534Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11456dbe7da2eSmrg 11457dbe7da2eSmrg 11458dbe7da2eSmrg} # as_fn_mkdir_p 11459a8fdb4bcSmrgif mkdir -p . 2>/dev/null; then 11460dbe7da2eSmrg as_mkdir_p='mkdir -p "$as_dir"' 11461a8fdb4bcSmrgelse 11462a8fdb4bcSmrg test -d ./-p && rmdir ./-p 11463a8fdb4bcSmrg as_mkdir_p=false 11464a8fdb4bcSmrgfi 11465a8fdb4bcSmrg 11466a8fdb4bcSmrgif test -x / >/dev/null 2>&1; then 11467a8fdb4bcSmrg as_test_x='test -x' 11468a8fdb4bcSmrgelse 11469a8fdb4bcSmrg if ls -dL / >/dev/null 2>&1; then 11470a8fdb4bcSmrg as_ls_L_option=L 11471a8fdb4bcSmrg else 11472a8fdb4bcSmrg as_ls_L_option= 11473a8fdb4bcSmrg fi 11474a8fdb4bcSmrg as_test_x=' 11475a8fdb4bcSmrg eval sh -c '\'' 11476a8fdb4bcSmrg if test -d "$1"; then 11477dbe7da2eSmrg test -d "$1/."; 11478a8fdb4bcSmrg else 11479dbe7da2eSmrg case $1 in #( 11480dbe7da2eSmrg -*)set "./$1";; 11481a8fdb4bcSmrg esac; 11482dbe7da2eSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11483a8fdb4bcSmrg ???[sx]*):;;*)false;;esac;fi 11484a8fdb4bcSmrg '\'' sh 11485a8fdb4bcSmrg ' 11486a8fdb4bcSmrgfi 11487a8fdb4bcSmrgas_executable_p=$as_test_x 11488a8fdb4bcSmrg 11489a8fdb4bcSmrg# Sed expression to map a string onto a valid CPP name. 11490a8fdb4bcSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11491a8fdb4bcSmrg 11492a8fdb4bcSmrg# Sed expression to map a string onto a valid variable name. 11493a8fdb4bcSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11494a8fdb4bcSmrg 11495a8fdb4bcSmrg 11496a8fdb4bcSmrgexec 6>&1 11497dbe7da2eSmrg## ----------------------------------- ## 11498dbe7da2eSmrg## Main body of $CONFIG_STATUS script. ## 11499dbe7da2eSmrg## ----------------------------------- ## 11500dbe7da2eSmrg_ASEOF 11501dbe7da2eSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11502a8fdb4bcSmrg 11503dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11504dbe7da2eSmrg# Save the log message, to keep $0 and so on meaningful, and to 11505a8fdb4bcSmrg# report actual input values of CONFIG_FILES etc. instead of their 11506a8fdb4bcSmrg# values after options handling. 11507a8fdb4bcSmrgac_log=" 115084ed31819SmrgThis file was extended by luit $as_me 1.1.1, which was 1150977683534Smrggenerated by GNU Autoconf 2.68. Invocation command line was 11510a8fdb4bcSmrg 11511a8fdb4bcSmrg CONFIG_FILES = $CONFIG_FILES 11512a8fdb4bcSmrg CONFIG_HEADERS = $CONFIG_HEADERS 11513a8fdb4bcSmrg CONFIG_LINKS = $CONFIG_LINKS 11514a8fdb4bcSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 11515a8fdb4bcSmrg $ $0 $@ 11516a8fdb4bcSmrg 11517a8fdb4bcSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 11518a8fdb4bcSmrg" 11519a8fdb4bcSmrg 11520a8fdb4bcSmrg_ACEOF 11521a8fdb4bcSmrg 11522dbe7da2eSmrgcase $ac_config_files in *" 11523dbe7da2eSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 11524dbe7da2eSmrgesac 11525dbe7da2eSmrg 11526dbe7da2eSmrgcase $ac_config_headers in *" 11527dbe7da2eSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11528dbe7da2eSmrgesac 11529dbe7da2eSmrg 11530dbe7da2eSmrg 11531dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11532a8fdb4bcSmrg# Files that config.status was made for. 11533a8fdb4bcSmrgconfig_files="$ac_config_files" 11534a8fdb4bcSmrgconfig_headers="$ac_config_headers" 11535a8fdb4bcSmrgconfig_commands="$ac_config_commands" 11536a8fdb4bcSmrg 11537a8fdb4bcSmrg_ACEOF 11538a8fdb4bcSmrg 11539dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11540a8fdb4bcSmrgac_cs_usage="\ 11541dbe7da2eSmrg\`$as_me' instantiates files and other configuration actions 11542dbe7da2eSmrgfrom templates according to the current configuration. Unless the files 11543dbe7da2eSmrgand actions are specified as TAGs, all are instantiated by default. 11544a8fdb4bcSmrg 11545dbe7da2eSmrgUsage: $0 [OPTION]... [TAG]... 11546a8fdb4bcSmrg 11547a8fdb4bcSmrg -h, --help print this help, then exit 11548a8fdb4bcSmrg -V, --version print version number and configuration settings, then exit 11549dbe7da2eSmrg --config print configuration, then exit 11550dbe7da2eSmrg -q, --quiet, --silent 11551dbe7da2eSmrg do not print progress messages 11552a8fdb4bcSmrg -d, --debug don't remove temporary files 11553a8fdb4bcSmrg --recheck update $as_me by reconfiguring in the same conditions 11554dbe7da2eSmrg --file=FILE[:TEMPLATE] 11555dbe7da2eSmrg instantiate the configuration file FILE 11556dbe7da2eSmrg --header=FILE[:TEMPLATE] 11557dbe7da2eSmrg instantiate the configuration header FILE 11558a8fdb4bcSmrg 11559a8fdb4bcSmrgConfiguration files: 11560a8fdb4bcSmrg$config_files 11561a8fdb4bcSmrg 11562a8fdb4bcSmrgConfiguration headers: 11563a8fdb4bcSmrg$config_headers 11564a8fdb4bcSmrg 11565a8fdb4bcSmrgConfiguration commands: 11566a8fdb4bcSmrg$config_commands 11567a8fdb4bcSmrg 11568dbe7da2eSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11569a8fdb4bcSmrg 11570a8fdb4bcSmrg_ACEOF 11571dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11572dbe7da2eSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11573a8fdb4bcSmrgac_cs_version="\\ 115744ed31819Smrgluit config.status 1.1.1 1157577683534Smrgconfigured by $0, generated by GNU Autoconf 2.68, 11576dbe7da2eSmrg with options \\"\$ac_cs_config\\" 11577a8fdb4bcSmrg 1157877683534SmrgCopyright (C) 2010 Free Software Foundation, Inc. 11579a8fdb4bcSmrgThis config.status script is free software; the Free Software Foundation 11580a8fdb4bcSmrggives unlimited permission to copy, distribute and modify it." 11581a8fdb4bcSmrg 11582a8fdb4bcSmrgac_pwd='$ac_pwd' 11583a8fdb4bcSmrgsrcdir='$srcdir' 11584a8fdb4bcSmrgINSTALL='$INSTALL' 11585a8fdb4bcSmrgMKDIR_P='$MKDIR_P' 11586dbe7da2eSmrgAWK='$AWK' 11587dbe7da2eSmrgtest -n "\$AWK" || AWK=awk 11588a8fdb4bcSmrg_ACEOF 11589a8fdb4bcSmrg 11590dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11591dbe7da2eSmrg# The default lists apply if the user does not specify any file. 11592a8fdb4bcSmrgac_need_defaults=: 11593a8fdb4bcSmrgwhile test $# != 0 11594a8fdb4bcSmrgdo 11595a8fdb4bcSmrg case $1 in 1159677683534Smrg --*=?*) 11597a8fdb4bcSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 11598a8fdb4bcSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11599a8fdb4bcSmrg ac_shift=: 11600a8fdb4bcSmrg ;; 1160177683534Smrg --*=) 1160277683534Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1160377683534Smrg ac_optarg= 1160477683534Smrg ac_shift=: 1160577683534Smrg ;; 11606a8fdb4bcSmrg *) 11607a8fdb4bcSmrg ac_option=$1 11608a8fdb4bcSmrg ac_optarg=$2 11609a8fdb4bcSmrg ac_shift=shift 11610a8fdb4bcSmrg ;; 11611a8fdb4bcSmrg esac 11612a8fdb4bcSmrg 11613a8fdb4bcSmrg case $ac_option in 11614a8fdb4bcSmrg # Handling of the options. 11615a8fdb4bcSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11616a8fdb4bcSmrg ac_cs_recheck=: ;; 11617a8fdb4bcSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11618dbe7da2eSmrg $as_echo "$ac_cs_version"; exit ;; 11619dbe7da2eSmrg --config | --confi | --conf | --con | --co | --c ) 11620dbe7da2eSmrg $as_echo "$ac_cs_config"; exit ;; 11621a8fdb4bcSmrg --debug | --debu | --deb | --de | --d | -d ) 11622a8fdb4bcSmrg debug=: ;; 11623a8fdb4bcSmrg --file | --fil | --fi | --f ) 11624a8fdb4bcSmrg $ac_shift 11625dbe7da2eSmrg case $ac_optarg in 11626dbe7da2eSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1162777683534Smrg '') as_fn_error $? "missing file argument" ;; 11628dbe7da2eSmrg esac 11629dbe7da2eSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 11630a8fdb4bcSmrg ac_need_defaults=false;; 11631a8fdb4bcSmrg --header | --heade | --head | --hea ) 11632a8fdb4bcSmrg $ac_shift 11633dbe7da2eSmrg case $ac_optarg in 11634dbe7da2eSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11635dbe7da2eSmrg esac 11636dbe7da2eSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11637a8fdb4bcSmrg ac_need_defaults=false;; 11638a8fdb4bcSmrg --he | --h) 11639a8fdb4bcSmrg # Conflict between --help and --header 1164077683534Smrg as_fn_error $? "ambiguous option: \`$1' 11641dbe7da2eSmrgTry \`$0 --help' for more information.";; 11642a8fdb4bcSmrg --help | --hel | -h ) 11643dbe7da2eSmrg $as_echo "$ac_cs_usage"; exit ;; 11644a8fdb4bcSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11645a8fdb4bcSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 11646a8fdb4bcSmrg ac_cs_silent=: ;; 11647a8fdb4bcSmrg 11648a8fdb4bcSmrg # This is an error. 1164977683534Smrg -*) as_fn_error $? "unrecognized option: \`$1' 11650dbe7da2eSmrgTry \`$0 --help' for more information." ;; 11651a8fdb4bcSmrg 11652dbe7da2eSmrg *) as_fn_append ac_config_targets " $1" 11653a8fdb4bcSmrg ac_need_defaults=false ;; 11654a8fdb4bcSmrg 11655a8fdb4bcSmrg esac 11656a8fdb4bcSmrg shift 11657a8fdb4bcSmrgdone 11658a8fdb4bcSmrg 11659a8fdb4bcSmrgac_configure_extra_args= 11660a8fdb4bcSmrg 11661a8fdb4bcSmrgif $ac_cs_silent; then 11662a8fdb4bcSmrg exec 6>/dev/null 11663a8fdb4bcSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 11664a8fdb4bcSmrgfi 11665a8fdb4bcSmrg 11666a8fdb4bcSmrg_ACEOF 11667dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11668a8fdb4bcSmrgif \$ac_cs_recheck; then 11669dbe7da2eSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11670dbe7da2eSmrg shift 11671dbe7da2eSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11672dbe7da2eSmrg CONFIG_SHELL='$SHELL' 11673a8fdb4bcSmrg export CONFIG_SHELL 11674dbe7da2eSmrg exec "\$@" 11675a8fdb4bcSmrgfi 11676a8fdb4bcSmrg 11677a8fdb4bcSmrg_ACEOF 11678dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11679a8fdb4bcSmrgexec 5>>config.log 11680a8fdb4bcSmrg{ 11681a8fdb4bcSmrg echo 11682a8fdb4bcSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11683a8fdb4bcSmrg## Running $as_me. ## 11684a8fdb4bcSmrg_ASBOX 11685dbe7da2eSmrg $as_echo "$ac_log" 11686a8fdb4bcSmrg} >&5 11687a8fdb4bcSmrg 11688a8fdb4bcSmrg_ACEOF 11689dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11690a8fdb4bcSmrg# 11691a8fdb4bcSmrg# INIT-COMMANDS 11692a8fdb4bcSmrg# 11693a8fdb4bcSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11694a8fdb4bcSmrg 11695a8fdb4bcSmrg_ACEOF 11696a8fdb4bcSmrg 11697dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11698a8fdb4bcSmrg 11699a8fdb4bcSmrg# Handling of arguments. 11700a8fdb4bcSmrgfor ac_config_target in $ac_config_targets 11701a8fdb4bcSmrgdo 11702a8fdb4bcSmrg case $ac_config_target in 11703a8fdb4bcSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11704dbe7da2eSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11705a8fdb4bcSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 1170677683534Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11707a8fdb4bcSmrg 1170877683534Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11709a8fdb4bcSmrg esac 11710a8fdb4bcSmrgdone 11711a8fdb4bcSmrg 11712a8fdb4bcSmrg 11713a8fdb4bcSmrg# If the user did not use the arguments to specify the items to instantiate, 11714a8fdb4bcSmrg# then the envvar interface is used. Set only those that are not. 11715a8fdb4bcSmrg# We use the long form for the default assignment because of an extremely 11716a8fdb4bcSmrg# bizarre bug on SunOS 4.1.3. 11717a8fdb4bcSmrgif $ac_need_defaults; then 11718a8fdb4bcSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11719a8fdb4bcSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11720a8fdb4bcSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11721a8fdb4bcSmrgfi 11722a8fdb4bcSmrg 11723a8fdb4bcSmrg# Have a temporary directory for convenience. Make it in the build tree 11724a8fdb4bcSmrg# simply because there is no reason against having it here, and in addition, 11725a8fdb4bcSmrg# creating and moving files from /tmp can sometimes cause problems. 11726a8fdb4bcSmrg# Hook for its removal unless debugging. 11727a8fdb4bcSmrg# Note that there is a small window in which the directory will not be cleaned: 11728a8fdb4bcSmrg# after its creation but before its name has been assigned to `$tmp'. 11729a8fdb4bcSmrg$debug || 11730a8fdb4bcSmrg{ 1173177683534Smrg tmp= ac_tmp= 11732a8fdb4bcSmrg trap 'exit_status=$? 1173377683534Smrg : "${ac_tmp:=$tmp}" 1173477683534Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11735a8fdb4bcSmrg' 0 11736dbe7da2eSmrg trap 'as_fn_exit 1' 1 2 13 15 11737a8fdb4bcSmrg} 11738a8fdb4bcSmrg# Create a (secure) tmp directory for tmp files. 11739a8fdb4bcSmrg 11740a8fdb4bcSmrg{ 11741a8fdb4bcSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 1174277683534Smrg test -d "$tmp" 11743a8fdb4bcSmrg} || 11744a8fdb4bcSmrg{ 11745a8fdb4bcSmrg tmp=./conf$$-$RANDOM 11746a8fdb4bcSmrg (umask 077 && mkdir "$tmp") 1174777683534Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 1174877683534Smrgac_tmp=$tmp 11749a8fdb4bcSmrg 11750dbe7da2eSmrg# Set up the scripts for CONFIG_FILES section. 11751dbe7da2eSmrg# No need to generate them if there are no CONFIG_FILES. 11752dbe7da2eSmrg# This happens for instance with `./config.status config.h'. 11753a8fdb4bcSmrgif test -n "$CONFIG_FILES"; then 11754a8fdb4bcSmrg 11755a8fdb4bcSmrg 11756dbe7da2eSmrgac_cr=`echo X | tr X '\015'` 11757dbe7da2eSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 11758dbe7da2eSmrg# But we know of no other shell where ac_cr would be empty at this 11759dbe7da2eSmrg# point, so we can use a bashism as a fallback. 11760dbe7da2eSmrgif test "x$ac_cr" = x; then 11761dbe7da2eSmrg eval ac_cr=\$\'\\r\' 11762dbe7da2eSmrgfi 11763dbe7da2eSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11764dbe7da2eSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 1176577683534Smrg ac_cs_awk_cr='\\r' 11766dbe7da2eSmrgelse 11767dbe7da2eSmrg ac_cs_awk_cr=$ac_cr 11768a8fdb4bcSmrgfi 11769a8fdb4bcSmrg 1177077683534Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 11771a8fdb4bcSmrg_ACEOF 11772a8fdb4bcSmrg 11773a8fdb4bcSmrg 11774dbe7da2eSmrg{ 11775dbe7da2eSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 11776dbe7da2eSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11777dbe7da2eSmrg echo "_ACEOF" 11778dbe7da2eSmrg} >conf$$subs.sh || 1177977683534Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1178077683534Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11781a8fdb4bcSmrgac_delim='%!_!# ' 11782a8fdb4bcSmrgfor ac_last_try in false false false false false :; do 11783dbe7da2eSmrg . ./conf$$subs.sh || 1178477683534Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11785a8fdb4bcSmrg 11786dbe7da2eSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11787dbe7da2eSmrg if test $ac_delim_n = $ac_delim_num; then 11788a8fdb4bcSmrg break 11789a8fdb4bcSmrg elif $ac_last_try; then 1179077683534Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11791a8fdb4bcSmrg else 11792a8fdb4bcSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11793a8fdb4bcSmrg fi 11794a8fdb4bcSmrgdone 11795dbe7da2eSmrgrm -f conf$$subs.sh 11796a8fdb4bcSmrg 11797dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1179877683534Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11799dbe7da2eSmrg_ACEOF 11800dbe7da2eSmrgsed -n ' 11801dbe7da2eSmrgh 11802dbe7da2eSmrgs/^/S["/; s/!.*/"]=/ 11803dbe7da2eSmrgp 11804dbe7da2eSmrgg 11805dbe7da2eSmrgs/^[^!]*!// 11806dbe7da2eSmrg:repl 11807dbe7da2eSmrgt repl 11808dbe7da2eSmrgs/'"$ac_delim"'$// 11809dbe7da2eSmrgt delim 11810dbe7da2eSmrg:nl 11811dbe7da2eSmrgh 11812dbe7da2eSmrgs/\(.\{148\}\)..*/\1/ 11813dbe7da2eSmrgt more1 11814dbe7da2eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11815dbe7da2eSmrgp 11816dbe7da2eSmrgn 11817dbe7da2eSmrgb repl 11818dbe7da2eSmrg:more1 11819dbe7da2eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11820dbe7da2eSmrgp 11821dbe7da2eSmrgg 11822dbe7da2eSmrgs/.\{148\}// 11823dbe7da2eSmrgt nl 11824dbe7da2eSmrg:delim 11825dbe7da2eSmrgh 11826dbe7da2eSmrgs/\(.\{148\}\)..*/\1/ 11827dbe7da2eSmrgt more2 11828dbe7da2eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 11829dbe7da2eSmrgp 11830dbe7da2eSmrgb 11831dbe7da2eSmrg:more2 11832dbe7da2eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11833dbe7da2eSmrgp 11834dbe7da2eSmrgg 11835dbe7da2eSmrgs/.\{148\}// 11836dbe7da2eSmrgt delim 11837dbe7da2eSmrg' <conf$$subs.awk | sed ' 11838dbe7da2eSmrg/^[^""]/{ 11839dbe7da2eSmrg N 11840dbe7da2eSmrg s/\n// 11841dbe7da2eSmrg} 11842dbe7da2eSmrg' >>$CONFIG_STATUS || ac_write_fail=1 11843dbe7da2eSmrgrm -f conf$$subs.awk 11844dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11845dbe7da2eSmrg_ACAWK 1184677683534Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11847dbe7da2eSmrg for (key in S) S_is_set[key] = 1 11848dbe7da2eSmrg FS = "" 11849dbe7da2eSmrg 11850dbe7da2eSmrg} 11851dbe7da2eSmrg{ 11852dbe7da2eSmrg line = $ 0 11853dbe7da2eSmrg nfields = split(line, field, "@") 11854dbe7da2eSmrg substed = 0 11855dbe7da2eSmrg len = length(field[1]) 11856dbe7da2eSmrg for (i = 2; i < nfields; i++) { 11857dbe7da2eSmrg key = field[i] 11858dbe7da2eSmrg keylen = length(key) 11859dbe7da2eSmrg if (S_is_set[key]) { 11860dbe7da2eSmrg value = S[key] 11861dbe7da2eSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11862dbe7da2eSmrg len += length(value) + length(field[++i]) 11863dbe7da2eSmrg substed = 1 11864dbe7da2eSmrg } else 11865dbe7da2eSmrg len += 1 + keylen 11866dbe7da2eSmrg } 11867dbe7da2eSmrg 11868dbe7da2eSmrg print line 11869dbe7da2eSmrg} 11870a8fdb4bcSmrg 11871dbe7da2eSmrg_ACAWK 11872a8fdb4bcSmrg_ACEOF 11873dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11874dbe7da2eSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11875dbe7da2eSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11876dbe7da2eSmrgelse 11877dbe7da2eSmrg cat 1187877683534Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 1187977683534Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11880a8fdb4bcSmrg_ACEOF 11881a8fdb4bcSmrg 1188277683534Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 1188377683534Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11884a8fdb4bcSmrg# trailing colons and then remove the whole line if VPATH becomes empty 11885a8fdb4bcSmrg# (actually we leave an empty line to preserve line numbers). 11886a8fdb4bcSmrgif test "x$srcdir" = x.; then 1188777683534Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 1188877683534Smrgh 1188977683534Smrgs/// 1189077683534Smrgs/^/:/ 1189177683534Smrgs/[ ]*$/:/ 1189277683534Smrgs/:\$(srcdir):/:/g 1189377683534Smrgs/:\${srcdir}:/:/g 1189477683534Smrgs/:@srcdir@:/:/g 1189577683534Smrgs/^:*// 11896a8fdb4bcSmrgs/:*$// 1189777683534Smrgx 1189877683534Smrgs/\(=[ ]*\).*/\1/ 1189977683534SmrgG 1190077683534Smrgs/\n// 11901a8fdb4bcSmrgs/^[^=]*=[ ]*$// 11902a8fdb4bcSmrg}' 11903a8fdb4bcSmrgfi 11904a8fdb4bcSmrg 11905dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11906a8fdb4bcSmrgfi # test -n "$CONFIG_FILES" 11907a8fdb4bcSmrg 11908dbe7da2eSmrg# Set up the scripts for CONFIG_HEADERS section. 11909dbe7da2eSmrg# No need to generate them if there are no CONFIG_HEADERS. 11910dbe7da2eSmrg# This happens for instance with `./config.status Makefile'. 11911dbe7da2eSmrgif test -n "$CONFIG_HEADERS"; then 1191277683534Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 11913dbe7da2eSmrgBEGIN { 11914dbe7da2eSmrg_ACEOF 11915dbe7da2eSmrg 11916dbe7da2eSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 11917dbe7da2eSmrg# here-document in config.status, that substitutes the proper values into 11918dbe7da2eSmrg# config.h.in to produce config.h. 11919dbe7da2eSmrg 11920dbe7da2eSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 11921dbe7da2eSmrg# handling of long lines. 11922dbe7da2eSmrgac_delim='%!_!# ' 11923dbe7da2eSmrgfor ac_last_try in false false :; do 1192477683534Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 1192577683534Smrg if test -z "$ac_tt"; then 11926dbe7da2eSmrg break 11927dbe7da2eSmrg elif $ac_last_try; then 1192877683534Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11929dbe7da2eSmrg else 11930dbe7da2eSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11931dbe7da2eSmrg fi 11932dbe7da2eSmrgdone 11933dbe7da2eSmrg 11934dbe7da2eSmrg# For the awk script, D is an array of macro values keyed by name, 11935dbe7da2eSmrg# likewise P contains macro parameters if any. Preserve backslash 11936dbe7da2eSmrg# newline sequences. 11937dbe7da2eSmrg 11938dbe7da2eSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11939dbe7da2eSmrgsed -n ' 11940dbe7da2eSmrgs/.\{148\}/&'"$ac_delim"'/g 11941dbe7da2eSmrgt rset 11942dbe7da2eSmrg:rset 11943dbe7da2eSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 11944dbe7da2eSmrgt def 11945dbe7da2eSmrgd 11946dbe7da2eSmrg:def 11947dbe7da2eSmrgs/\\$// 11948dbe7da2eSmrgt bsnl 11949dbe7da2eSmrgs/["\\]/\\&/g 11950dbe7da2eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11951dbe7da2eSmrgD["\1"]=" \3"/p 11952dbe7da2eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11953dbe7da2eSmrgd 11954dbe7da2eSmrg:bsnl 11955dbe7da2eSmrgs/["\\]/\\&/g 11956dbe7da2eSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11957dbe7da2eSmrgD["\1"]=" \3\\\\\\n"\\/p 11958dbe7da2eSmrgt cont 11959dbe7da2eSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11960dbe7da2eSmrgt cont 11961dbe7da2eSmrgd 11962dbe7da2eSmrg:cont 11963dbe7da2eSmrgn 11964dbe7da2eSmrgs/.\{148\}/&'"$ac_delim"'/g 11965dbe7da2eSmrgt clear 11966dbe7da2eSmrg:clear 11967dbe7da2eSmrgs/\\$// 11968dbe7da2eSmrgt bsnlc 11969dbe7da2eSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 11970dbe7da2eSmrgd 11971dbe7da2eSmrg:bsnlc 11972dbe7da2eSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11973dbe7da2eSmrgb cont 11974dbe7da2eSmrg' <confdefs.h | sed ' 11975dbe7da2eSmrgs/'"$ac_delim"'/"\\\ 11976dbe7da2eSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 11977dbe7da2eSmrg 11978dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11979dbe7da2eSmrg for (key in D) D_is_set[key] = 1 11980dbe7da2eSmrg FS = "" 11981dbe7da2eSmrg} 11982dbe7da2eSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11983dbe7da2eSmrg line = \$ 0 11984dbe7da2eSmrg split(line, arg, " ") 11985dbe7da2eSmrg if (arg[1] == "#") { 11986dbe7da2eSmrg defundef = arg[2] 11987dbe7da2eSmrg mac1 = arg[3] 11988dbe7da2eSmrg } else { 11989dbe7da2eSmrg defundef = substr(arg[1], 2) 11990dbe7da2eSmrg mac1 = arg[2] 11991dbe7da2eSmrg } 11992dbe7da2eSmrg split(mac1, mac2, "(") #) 11993dbe7da2eSmrg macro = mac2[1] 11994dbe7da2eSmrg prefix = substr(line, 1, index(line, defundef) - 1) 11995dbe7da2eSmrg if (D_is_set[macro]) { 11996dbe7da2eSmrg # Preserve the white space surrounding the "#". 11997dbe7da2eSmrg print prefix "define", macro P[macro] D[macro] 11998dbe7da2eSmrg next 11999dbe7da2eSmrg } else { 12000dbe7da2eSmrg # Replace #undef with comments. This is necessary, for example, 12001dbe7da2eSmrg # in the case of _POSIX_SOURCE, which is predefined and required 12002dbe7da2eSmrg # on some systems where configure will not decide to define it. 12003dbe7da2eSmrg if (defundef == "undef") { 12004dbe7da2eSmrg print "/*", prefix defundef, macro, "*/" 12005dbe7da2eSmrg next 12006dbe7da2eSmrg } 12007dbe7da2eSmrg } 12008dbe7da2eSmrg} 12009dbe7da2eSmrg{ print } 12010dbe7da2eSmrg_ACAWK 12011dbe7da2eSmrg_ACEOF 12012dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1201377683534Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12014dbe7da2eSmrgfi # test -n "$CONFIG_HEADERS" 12015dbe7da2eSmrg 12016a8fdb4bcSmrg 12017dbe7da2eSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12018dbe7da2eSmrgshift 12019dbe7da2eSmrgfor ac_tag 12020a8fdb4bcSmrgdo 12021a8fdb4bcSmrg case $ac_tag in 12022a8fdb4bcSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 12023a8fdb4bcSmrg esac 12024a8fdb4bcSmrg case $ac_mode$ac_tag in 12025a8fdb4bcSmrg :[FHL]*:*);; 1202677683534Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12027a8fdb4bcSmrg :[FH]-) ac_tag=-:-;; 12028a8fdb4bcSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12029a8fdb4bcSmrg esac 12030a8fdb4bcSmrg ac_save_IFS=$IFS 12031a8fdb4bcSmrg IFS=: 12032a8fdb4bcSmrg set x $ac_tag 12033a8fdb4bcSmrg IFS=$ac_save_IFS 12034a8fdb4bcSmrg shift 12035a8fdb4bcSmrg ac_file=$1 12036a8fdb4bcSmrg shift 12037a8fdb4bcSmrg 12038a8fdb4bcSmrg case $ac_mode in 12039a8fdb4bcSmrg :L) ac_source=$1;; 12040a8fdb4bcSmrg :[FH]) 12041a8fdb4bcSmrg ac_file_inputs= 12042a8fdb4bcSmrg for ac_f 12043a8fdb4bcSmrg do 12044a8fdb4bcSmrg case $ac_f in 1204577683534Smrg -) ac_f="$ac_tmp/stdin";; 12046a8fdb4bcSmrg *) # Look for the file first in the build tree, then in the source tree 12047a8fdb4bcSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 12048a8fdb4bcSmrg # because $ac_f cannot contain `:'. 12049a8fdb4bcSmrg test -f "$ac_f" || 12050a8fdb4bcSmrg case $ac_f in 12051a8fdb4bcSmrg [\\/$]*) false;; 12052a8fdb4bcSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12053a8fdb4bcSmrg esac || 1205477683534Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12055a8fdb4bcSmrg esac 12056dbe7da2eSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12057dbe7da2eSmrg as_fn_append ac_file_inputs " '$ac_f'" 12058a8fdb4bcSmrg done 12059a8fdb4bcSmrg 12060a8fdb4bcSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 12061a8fdb4bcSmrg # use $as_me), people would be surprised to read: 12062a8fdb4bcSmrg # /* config.h. Generated by config.status. */ 12063dbe7da2eSmrg configure_input='Generated from '` 12064dbe7da2eSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12065dbe7da2eSmrg `' by configure.' 12066a8fdb4bcSmrg if test x"$ac_file" != x-; then 12067a8fdb4bcSmrg configure_input="$ac_file. $configure_input" 12068dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12069dbe7da2eSmrg$as_echo "$as_me: creating $ac_file" >&6;} 12070a8fdb4bcSmrg fi 12071dbe7da2eSmrg # Neutralize special characters interpreted by sed in replacement strings. 12072dbe7da2eSmrg case $configure_input in #( 12073dbe7da2eSmrg *\&* | *\|* | *\\* ) 12074dbe7da2eSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 12075dbe7da2eSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 12076dbe7da2eSmrg *) ac_sed_conf_input=$configure_input;; 12077dbe7da2eSmrg esac 12078a8fdb4bcSmrg 12079a8fdb4bcSmrg case $ac_tag in 1208077683534Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 1208177683534Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12082a8fdb4bcSmrg esac 12083a8fdb4bcSmrg ;; 12084a8fdb4bcSmrg esac 12085a8fdb4bcSmrg 12086a8fdb4bcSmrg ac_dir=`$as_dirname -- "$ac_file" || 12087a8fdb4bcSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12088a8fdb4bcSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 12089a8fdb4bcSmrg X"$ac_file" : 'X\(//\)$' \| \ 12090a8fdb4bcSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12091dbe7da2eSmrg$as_echo X"$ac_file" | 12092a8fdb4bcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12093a8fdb4bcSmrg s//\1/ 12094a8fdb4bcSmrg q 12095a8fdb4bcSmrg } 12096a8fdb4bcSmrg /^X\(\/\/\)[^/].*/{ 12097a8fdb4bcSmrg s//\1/ 12098a8fdb4bcSmrg q 12099a8fdb4bcSmrg } 12100a8fdb4bcSmrg /^X\(\/\/\)$/{ 12101a8fdb4bcSmrg s//\1/ 12102a8fdb4bcSmrg q 12103a8fdb4bcSmrg } 12104a8fdb4bcSmrg /^X\(\/\).*/{ 12105a8fdb4bcSmrg s//\1/ 12106a8fdb4bcSmrg q 12107a8fdb4bcSmrg } 12108a8fdb4bcSmrg s/.*/./; q'` 12109dbe7da2eSmrg as_dir="$ac_dir"; as_fn_mkdir_p 12110a8fdb4bcSmrg ac_builddir=. 12111a8fdb4bcSmrg 12112a8fdb4bcSmrgcase "$ac_dir" in 12113a8fdb4bcSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12114a8fdb4bcSmrg*) 12115dbe7da2eSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12116a8fdb4bcSmrg # A ".." for each directory in $ac_dir_suffix. 12117dbe7da2eSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12118a8fdb4bcSmrg case $ac_top_builddir_sub in 12119a8fdb4bcSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12120a8fdb4bcSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12121a8fdb4bcSmrg esac ;; 12122a8fdb4bcSmrgesac 12123a8fdb4bcSmrgac_abs_top_builddir=$ac_pwd 12124a8fdb4bcSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 12125a8fdb4bcSmrg# for backward compatibility: 12126a8fdb4bcSmrgac_top_builddir=$ac_top_build_prefix 12127a8fdb4bcSmrg 12128a8fdb4bcSmrgcase $srcdir in 12129a8fdb4bcSmrg .) # We are building in place. 12130a8fdb4bcSmrg ac_srcdir=. 12131a8fdb4bcSmrg ac_top_srcdir=$ac_top_builddir_sub 12132a8fdb4bcSmrg ac_abs_top_srcdir=$ac_pwd ;; 12133a8fdb4bcSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 12134a8fdb4bcSmrg ac_srcdir=$srcdir$ac_dir_suffix; 12135a8fdb4bcSmrg ac_top_srcdir=$srcdir 12136a8fdb4bcSmrg ac_abs_top_srcdir=$srcdir ;; 12137a8fdb4bcSmrg *) # Relative name. 12138a8fdb4bcSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12139a8fdb4bcSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 12140a8fdb4bcSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12141a8fdb4bcSmrgesac 12142a8fdb4bcSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12143a8fdb4bcSmrg 12144a8fdb4bcSmrg 12145a8fdb4bcSmrg case $ac_mode in 12146a8fdb4bcSmrg :F) 12147a8fdb4bcSmrg # 12148a8fdb4bcSmrg # CONFIG_FILE 12149a8fdb4bcSmrg # 12150a8fdb4bcSmrg 12151a8fdb4bcSmrg case $INSTALL in 12152a8fdb4bcSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12153a8fdb4bcSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12154a8fdb4bcSmrg esac 12155a8fdb4bcSmrg ac_MKDIR_P=$MKDIR_P 12156a8fdb4bcSmrg case $MKDIR_P in 12157a8fdb4bcSmrg [\\/$]* | ?:[\\/]* ) ;; 12158a8fdb4bcSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12159a8fdb4bcSmrg esac 12160a8fdb4bcSmrg_ACEOF 12161a8fdb4bcSmrg 12162dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12163a8fdb4bcSmrg# If the template does not know about datarootdir, expand it. 12164a8fdb4bcSmrg# FIXME: This hack should be removed a few years after 2.60. 12165a8fdb4bcSmrgac_datarootdir_hack=; ac_datarootdir_seen= 12166dbe7da2eSmrgac_sed_dataroot=' 12167dbe7da2eSmrg/datarootdir/ { 12168a8fdb4bcSmrg p 12169a8fdb4bcSmrg q 12170a8fdb4bcSmrg} 12171a8fdb4bcSmrg/@datadir@/p 12172a8fdb4bcSmrg/@docdir@/p 12173a8fdb4bcSmrg/@infodir@/p 12174a8fdb4bcSmrg/@localedir@/p 12175dbe7da2eSmrg/@mandir@/p' 12176dbe7da2eSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12177a8fdb4bcSmrg*datarootdir*) ac_datarootdir_seen=yes;; 12178a8fdb4bcSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12179dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12180dbe7da2eSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12181a8fdb4bcSmrg_ACEOF 12182dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12183a8fdb4bcSmrg ac_datarootdir_hack=' 12184a8fdb4bcSmrg s&@datadir@&$datadir&g 12185a8fdb4bcSmrg s&@docdir@&$docdir&g 12186a8fdb4bcSmrg s&@infodir@&$infodir&g 12187a8fdb4bcSmrg s&@localedir@&$localedir&g 12188a8fdb4bcSmrg s&@mandir@&$mandir&g 12189dbe7da2eSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 12190a8fdb4bcSmrgesac 12191a8fdb4bcSmrg_ACEOF 12192a8fdb4bcSmrg 12193a8fdb4bcSmrg# Neutralize VPATH when `$srcdir' = `.'. 12194a8fdb4bcSmrg# Shell code in configure.ac might set extrasub. 12195a8fdb4bcSmrg# FIXME: do we really want to maintain this feature? 12196dbe7da2eSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12197dbe7da2eSmrgac_sed_extra="$ac_vpsub 12198a8fdb4bcSmrg$extrasub 12199a8fdb4bcSmrg_ACEOF 12200dbe7da2eSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12201a8fdb4bcSmrg:t 12202a8fdb4bcSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12203dbe7da2eSmrgs|@configure_input@|$ac_sed_conf_input|;t t 12204a8fdb4bcSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 12205dbe7da2eSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 12206a8fdb4bcSmrgs&@srcdir@&$ac_srcdir&;t t 12207a8fdb4bcSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 12208a8fdb4bcSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 12209a8fdb4bcSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12210a8fdb4bcSmrgs&@builddir@&$ac_builddir&;t t 12211a8fdb4bcSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 12212a8fdb4bcSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12213a8fdb4bcSmrgs&@INSTALL@&$ac_INSTALL&;t t 12214a8fdb4bcSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 12215a8fdb4bcSmrg$ac_datarootdir_hack 12216dbe7da2eSmrg" 1221777683534Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 1221877683534Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12219a8fdb4bcSmrg 12220a8fdb4bcSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 1222177683534Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 1222277683534Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 1222377683534Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 12224dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1222577683534Smrgwhich seems to be undefined. Please make sure it is defined" >&5 12226dbe7da2eSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1222777683534Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 12228a8fdb4bcSmrg 1222977683534Smrg rm -f "$ac_tmp/stdin" 12230a8fdb4bcSmrg case $ac_file in 1223177683534Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 1223277683534Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12233dbe7da2eSmrg esac \ 1223477683534Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12235a8fdb4bcSmrg ;; 12236a8fdb4bcSmrg :H) 12237a8fdb4bcSmrg # 12238a8fdb4bcSmrg # CONFIG_HEADER 12239a8fdb4bcSmrg # 12240a8fdb4bcSmrg if test x"$ac_file" != x-; then 12241dbe7da2eSmrg { 12242dbe7da2eSmrg $as_echo "/* $configure_input */" \ 1224377683534Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 1224477683534Smrg } >"$ac_tmp/config.h" \ 1224577683534Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1224677683534Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12247dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12248dbe7da2eSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 12249a8fdb4bcSmrg else 12250dbe7da2eSmrg rm -f "$ac_file" 1225177683534Smrg mv "$ac_tmp/config.h" "$ac_file" \ 1225277683534Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12253a8fdb4bcSmrg fi 12254a8fdb4bcSmrg else 12255dbe7da2eSmrg $as_echo "/* $configure_input */" \ 1225677683534Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 1225777683534Smrg || as_fn_error $? "could not create -" "$LINENO" 5 12258a8fdb4bcSmrg fi 12259dbe7da2eSmrg# Compute "$ac_file"'s index in $config_headers. 12260dbe7da2eSmrg_am_arg="$ac_file" 12261a8fdb4bcSmrg_am_stamp_count=1 12262a8fdb4bcSmrgfor _am_header in $config_headers :; do 12263a8fdb4bcSmrg case $_am_header in 12264a8fdb4bcSmrg $_am_arg | $_am_arg:* ) 12265a8fdb4bcSmrg break ;; 12266a8fdb4bcSmrg * ) 12267a8fdb4bcSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12268a8fdb4bcSmrg esac 12269a8fdb4bcSmrgdone 12270a8fdb4bcSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12271a8fdb4bcSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12272a8fdb4bcSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 12273a8fdb4bcSmrg X"$_am_arg" : 'X\(//\)$' \| \ 12274a8fdb4bcSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12275dbe7da2eSmrg$as_echo X"$_am_arg" | 12276a8fdb4bcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12277a8fdb4bcSmrg s//\1/ 12278a8fdb4bcSmrg q 12279a8fdb4bcSmrg } 12280a8fdb4bcSmrg /^X\(\/\/\)[^/].*/{ 12281a8fdb4bcSmrg s//\1/ 12282a8fdb4bcSmrg q 12283a8fdb4bcSmrg } 12284a8fdb4bcSmrg /^X\(\/\/\)$/{ 12285a8fdb4bcSmrg s//\1/ 12286a8fdb4bcSmrg q 12287a8fdb4bcSmrg } 12288a8fdb4bcSmrg /^X\(\/\).*/{ 12289a8fdb4bcSmrg s//\1/ 12290a8fdb4bcSmrg q 12291a8fdb4bcSmrg } 12292a8fdb4bcSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 12293a8fdb4bcSmrg ;; 12294a8fdb4bcSmrg 12295dbe7da2eSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12296dbe7da2eSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 12297a8fdb4bcSmrg ;; 12298a8fdb4bcSmrg esac 12299a8fdb4bcSmrg 12300a8fdb4bcSmrg 12301a8fdb4bcSmrg case $ac_file$ac_mode in 12302dbe7da2eSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12303dbe7da2eSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 12304dbe7da2eSmrg # are listed without --file. Let's play safe and only enable the eval 12305dbe7da2eSmrg # if we detect the quoting. 12306dbe7da2eSmrg case $CONFIG_FILES in 12307dbe7da2eSmrg *\'*) eval set x "$CONFIG_FILES" ;; 12308dbe7da2eSmrg *) set x $CONFIG_FILES ;; 12309dbe7da2eSmrg esac 12310dbe7da2eSmrg shift 12311dbe7da2eSmrg for mf 12312dbe7da2eSmrg do 12313dbe7da2eSmrg # Strip MF so we end up with the name of the file. 12314dbe7da2eSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 12315dbe7da2eSmrg # Check whether this is an Automake generated Makefile or not. 12316dbe7da2eSmrg # We used to match only the files named `Makefile.in', but 12317dbe7da2eSmrg # some people rename them; so instead we look at the file content. 12318dbe7da2eSmrg # Grep'ing the first line is not enough: some people post-process 12319dbe7da2eSmrg # each Makefile.in and add a new line on top of each file to say so. 12320dbe7da2eSmrg # Grep'ing the whole file is not good either: AIX grep has a line 12321dbe7da2eSmrg # limit of 2048, but all sed's we know have understand at least 4000. 12322dbe7da2eSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12323dbe7da2eSmrg dirpart=`$as_dirname -- "$mf" || 12324a8fdb4bcSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12325a8fdb4bcSmrg X"$mf" : 'X\(//\)[^/]' \| \ 12326a8fdb4bcSmrg X"$mf" : 'X\(//\)$' \| \ 12327a8fdb4bcSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12328dbe7da2eSmrg$as_echo X"$mf" | 12329a8fdb4bcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12330a8fdb4bcSmrg s//\1/ 12331a8fdb4bcSmrg q 12332a8fdb4bcSmrg } 12333a8fdb4bcSmrg /^X\(\/\/\)[^/].*/{ 12334a8fdb4bcSmrg s//\1/ 12335a8fdb4bcSmrg q 12336a8fdb4bcSmrg } 12337a8fdb4bcSmrg /^X\(\/\/\)$/{ 12338a8fdb4bcSmrg s//\1/ 12339a8fdb4bcSmrg q 12340a8fdb4bcSmrg } 12341a8fdb4bcSmrg /^X\(\/\).*/{ 12342a8fdb4bcSmrg s//\1/ 12343a8fdb4bcSmrg q 12344a8fdb4bcSmrg } 12345a8fdb4bcSmrg s/.*/./; q'` 12346dbe7da2eSmrg else 12347dbe7da2eSmrg continue 12348dbe7da2eSmrg fi 12349dbe7da2eSmrg # Extract the definition of DEPDIR, am__include, and am__quote 12350dbe7da2eSmrg # from the Makefile without running `make'. 12351dbe7da2eSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12352dbe7da2eSmrg test -z "$DEPDIR" && continue 12353dbe7da2eSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 12354dbe7da2eSmrg test -z "am__include" && continue 12355dbe7da2eSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12356dbe7da2eSmrg # When using ansi2knr, U may be empty or an underscore; expand it 12357dbe7da2eSmrg U=`sed -n 's/^U = //p' < "$mf"` 12358dbe7da2eSmrg # Find all dependency output files, they are included files with 12359dbe7da2eSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 12360dbe7da2eSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 12361dbe7da2eSmrg # expansion. 12362dbe7da2eSmrg for file in `sed -n " 12363dbe7da2eSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12364dbe7da2eSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12365dbe7da2eSmrg # Make sure the directory exists. 12366dbe7da2eSmrg test -f "$dirpart/$file" && continue 12367dbe7da2eSmrg fdir=`$as_dirname -- "$file" || 12368a8fdb4bcSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12369a8fdb4bcSmrg X"$file" : 'X\(//\)[^/]' \| \ 12370a8fdb4bcSmrg X"$file" : 'X\(//\)$' \| \ 12371a8fdb4bcSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 12372dbe7da2eSmrg$as_echo X"$file" | 12373a8fdb4bcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12374a8fdb4bcSmrg s//\1/ 12375a8fdb4bcSmrg q 12376a8fdb4bcSmrg } 12377a8fdb4bcSmrg /^X\(\/\/\)[^/].*/{ 12378a8fdb4bcSmrg s//\1/ 12379a8fdb4bcSmrg q 12380a8fdb4bcSmrg } 12381a8fdb4bcSmrg /^X\(\/\/\)$/{ 12382a8fdb4bcSmrg s//\1/ 12383a8fdb4bcSmrg q 12384a8fdb4bcSmrg } 12385a8fdb4bcSmrg /^X\(\/\).*/{ 12386a8fdb4bcSmrg s//\1/ 12387a8fdb4bcSmrg q 12388a8fdb4bcSmrg } 12389a8fdb4bcSmrg s/.*/./; q'` 12390dbe7da2eSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 12391dbe7da2eSmrg # echo "creating $dirpart/$file" 12392dbe7da2eSmrg echo '# dummy' > "$dirpart/$file" 12393a8fdb4bcSmrg done 12394a8fdb4bcSmrg done 12395dbe7da2eSmrg} 12396a8fdb4bcSmrg ;; 12397a8fdb4bcSmrg 12398a8fdb4bcSmrg esac 12399a8fdb4bcSmrgdone # for ac_tag 12400a8fdb4bcSmrg 12401a8fdb4bcSmrg 12402dbe7da2eSmrgas_fn_exit 0 12403a8fdb4bcSmrg_ACEOF 12404a8fdb4bcSmrgac_clean_files=$ac_clean_files_save 12405a8fdb4bcSmrg 12406dbe7da2eSmrgtest $ac_write_fail = 0 || 1240777683534Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12408dbe7da2eSmrg 12409a8fdb4bcSmrg 12410a8fdb4bcSmrg# configure is writing to config.log, and then calls config.status. 12411a8fdb4bcSmrg# config.status does its own redirection, appending to config.log. 12412a8fdb4bcSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 12413a8fdb4bcSmrg# by configure, so config.status won't be able to write to it; its 12414a8fdb4bcSmrg# output is simply discarded. So we exec the FD to /dev/null, 12415a8fdb4bcSmrg# effectively closing config.log, so it can be properly (re)opened and 12416a8fdb4bcSmrg# appended to by config.status. When coming back to configure, we 12417a8fdb4bcSmrg# need to make the FD available again. 12418a8fdb4bcSmrgif test "$no_create" != yes; then 12419a8fdb4bcSmrg ac_cs_success=: 12420a8fdb4bcSmrg ac_config_status_args= 12421a8fdb4bcSmrg test "$silent" = yes && 12422a8fdb4bcSmrg ac_config_status_args="$ac_config_status_args --quiet" 12423a8fdb4bcSmrg exec 5>/dev/null 12424a8fdb4bcSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12425a8fdb4bcSmrg exec 5>>config.log 12426a8fdb4bcSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12427a8fdb4bcSmrg # would make configure fail if this is the last instruction. 1242877683534Smrg $ac_cs_success || as_fn_exit 1 12429dbe7da2eSmrgfi 12430dbe7da2eSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12431dbe7da2eSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12432dbe7da2eSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12433a8fdb4bcSmrgfi 12434a8fdb4bcSmrg 12435