configure revision 0d22642b
17a0395d0Smrg#! /bin/sh 27a0395d0Smrg# Guess values for system-dependent variables and create Makefiles. 30d22642bSmrg# Generated by GNU Autoconf 2.69 for xauth 1.1.1. 47a0395d0Smrg# 56c3c2bceSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>. 67a0395d0Smrg# 72adc0320Smrg# 88abc0ccfSmrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 92adc0320Smrg# 102adc0320Smrg# 117a0395d0Smrg# This configure script is free software; the Free Software Foundation 127a0395d0Smrg# gives unlimited permission to copy, distribute and modify it. 132adc0320Smrg## -------------------- ## 142adc0320Smrg## M4sh Initialization. ## 152adc0320Smrg## -------------------- ## 167a0395d0Smrg 177a0395d0Smrg# Be more Bourne compatible 187a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh 192adc0320Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 207a0395d0Smrg emulate sh 217a0395d0Smrg NULLCMD=: 227366012aSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 237a0395d0Smrg # is contrary to our usage. Disable this feature. 247a0395d0Smrg alias -g '${1+"$@"}'='"$@"' 257a0395d0Smrg setopt NO_GLOB_SUBST 267a0395d0Smrgelse 272adc0320Smrg case `(set -o) 2>/dev/null` in #( 282adc0320Smrg *posix*) : 292adc0320Smrg set -o posix ;; #( 302adc0320Smrg *) : 312adc0320Smrg ;; 327a0395d0Smrgesac 337a0395d0Smrgfi 347a0395d0Smrg 357a0395d0Smrg 367366012aSmrgas_nl=' 377366012aSmrg' 387366012aSmrgexport as_nl 397366012aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 407366012aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 417366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 427366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 432adc0320Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 442adc0320Smrg# but without wasting forks for bash or zsh. 452adc0320Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 462adc0320Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 472adc0320Smrg as_echo='print -r --' 482adc0320Smrg as_echo_n='print -rn --' 492adc0320Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 507366012aSmrg as_echo='printf %s\n' 517366012aSmrg as_echo_n='printf %s' 527366012aSmrgelse 537366012aSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 547366012aSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 557366012aSmrg as_echo_n='/usr/ucb/echo -n' 567a0395d0Smrg else 577366012aSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 587366012aSmrg as_echo_n_body='eval 597366012aSmrg arg=$1; 602adc0320Smrg case $arg in #( 617366012aSmrg *"$as_nl"*) 627366012aSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 637366012aSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 647366012aSmrg esac; 657366012aSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 667366012aSmrg ' 677366012aSmrg export as_echo_n_body 687366012aSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 697a0395d0Smrg fi 707366012aSmrg export as_echo_body 717366012aSmrg as_echo='sh -c $as_echo_body as_echo' 727366012aSmrgfi 737366012aSmrg 747366012aSmrg# The user is always right. 757366012aSmrgif test "${PATH_SEPARATOR+set}" != set; then 767366012aSmrg PATH_SEPARATOR=: 777366012aSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 787366012aSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 797366012aSmrg PATH_SEPARATOR=';' 807366012aSmrg } 817a0395d0Smrgfi 827a0395d0Smrg 837a0395d0Smrg 847a0395d0Smrg# IFS 857a0395d0Smrg# We need space, tab and new line, in precisely that order. Quoting is 867a0395d0Smrg# there to prevent editors from complaining about space-tab. 877a0395d0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 887a0395d0Smrg# splitting by setting IFS to empty value.) 897a0395d0SmrgIFS=" "" $as_nl" 907a0395d0Smrg 917a0395d0Smrg# Find who we are. Look in the path if we contain no directory separator. 922adc0320Smrgas_myself= 932adc0320Smrgcase $0 in #(( 947a0395d0Smrg *[\\/]* ) as_myself=$0 ;; 957a0395d0Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 967a0395d0Smrgfor as_dir in $PATH 977a0395d0Smrgdo 987a0395d0Smrg IFS=$as_save_IFS 997a0395d0Smrg test -z "$as_dir" && as_dir=. 1002adc0320Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1012adc0320Smrg done 1027a0395d0SmrgIFS=$as_save_IFS 1037a0395d0Smrg 1047a0395d0Smrg ;; 1057a0395d0Smrgesac 1067a0395d0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1077a0395d0Smrg# in which case we are not to be found in the path. 1087a0395d0Smrgif test "x$as_myself" = x; then 1097a0395d0Smrg as_myself=$0 1107a0395d0Smrgfi 1117a0395d0Smrgif test ! -f "$as_myself"; then 1127366012aSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1132adc0320Smrg exit 1 1147a0395d0Smrgfi 1157a0395d0Smrg 1162adc0320Smrg# Unset variables that we do not need and which cause bugs (e.g. in 1172adc0320Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1182adc0320Smrg# suppresses any "Segmentation fault" message there. '((' could 1192adc0320Smrg# trigger a bug in pdksh 5.2.14. 1202adc0320Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1212adc0320Smrgdo eval test x\${$as_var+set} = xset \ 1222adc0320Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1237a0395d0Smrgdone 1247a0395d0SmrgPS1='$ ' 1257a0395d0SmrgPS2='> ' 1267a0395d0SmrgPS4='+ ' 1277a0395d0Smrg 1287a0395d0Smrg# NLS nuisances. 1297366012aSmrgLC_ALL=C 1307366012aSmrgexport LC_ALL 1317366012aSmrgLANGUAGE=C 1327366012aSmrgexport LANGUAGE 1337a0395d0Smrg 1342adc0320Smrg# CDPATH. 1352adc0320Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1362adc0320Smrg 1378abc0ccfSmrg# Use a proper internal environment variable to ensure we don't fall 1388abc0ccfSmrg # into an infinite loop, continuously re-executing ourselves. 1398abc0ccfSmrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 1408abc0ccfSmrg _as_can_reexec=no; export _as_can_reexec; 1418abc0ccfSmrg # We cannot yet assume a decent shell, so we have to provide a 1428abc0ccfSmrg# neutralization value for shells without unset; and this also 1438abc0ccfSmrg# works around shells that cannot unset nonexistent variables. 1448abc0ccfSmrg# Preserve -v and -x to the replacement shell. 1458abc0ccfSmrgBASH_ENV=/dev/null 1468abc0ccfSmrgENV=/dev/null 1478abc0ccfSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 1488abc0ccfSmrgcase $- in # (((( 1498abc0ccfSmrg *v*x* | *x*v* ) as_opts=-vx ;; 1508abc0ccfSmrg *v* ) as_opts=-v ;; 1518abc0ccfSmrg *x* ) as_opts=-x ;; 1528abc0ccfSmrg * ) as_opts= ;; 1538abc0ccfSmrgesac 1548abc0ccfSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 1558abc0ccfSmrg# Admittedly, this is quite paranoid, since all the known shells bail 1568abc0ccfSmrg# out after a failed `exec'. 1578abc0ccfSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 1588abc0ccfSmrgas_fn_exit 255 1598abc0ccfSmrg fi 1608abc0ccfSmrg # We don't want this to propagate to other subprocesses. 1618abc0ccfSmrg { _as_can_reexec=; unset _as_can_reexec;} 1622adc0320Smrgif test "x$CONFIG_SHELL" = x; then 1632adc0320Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 1642adc0320Smrg emulate sh 1652adc0320Smrg NULLCMD=: 1662adc0320Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1672adc0320Smrg # is contrary to our usage. Disable this feature. 1682adc0320Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1692adc0320Smrg setopt NO_GLOB_SUBST 1702adc0320Smrgelse 1712adc0320Smrg case \`(set -o) 2>/dev/null\` in #( 1722adc0320Smrg *posix*) : 1732adc0320Smrg set -o posix ;; #( 1742adc0320Smrg *) : 1752adc0320Smrg ;; 1762adc0320Smrgesac 1772adc0320Smrgfi 1782adc0320Smrg" 1792adc0320Smrg as_required="as_fn_return () { (exit \$1); } 1802adc0320Smrgas_fn_success () { as_fn_return 0; } 1812adc0320Smrgas_fn_failure () { as_fn_return 1; } 1822adc0320Smrgas_fn_ret_success () { return 0; } 1832adc0320Smrgas_fn_ret_failure () { return 1; } 1842adc0320Smrg 1852adc0320Smrgexitcode=0 1862adc0320Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1872adc0320Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1882adc0320Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1892adc0320Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1902adc0320Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1912adc0320Smrg 1922adc0320Smrgelse 1932adc0320Smrg exitcode=1; echo positional parameters were not saved. 1942adc0320Smrgfi 1958abc0ccfSmrgtest x\$exitcode = x0 || exit 1 1968abc0ccfSmrgtest -x / || exit 1" 1972adc0320Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1982adc0320Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1992adc0320Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 2002adc0320Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 2012adc0320Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 2022adc0320Smrg if (eval "$as_required") 2>/dev/null; then : 2032adc0320Smrg as_have_required=yes 2042adc0320Smrgelse 2052adc0320Smrg as_have_required=no 2062adc0320Smrgfi 2072adc0320Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 2082adc0320Smrg 2092adc0320Smrgelse 2102adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2112adc0320Smrgas_found=false 2122adc0320Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2132adc0320Smrgdo 2142adc0320Smrg IFS=$as_save_IFS 2152adc0320Smrg test -z "$as_dir" && as_dir=. 2162adc0320Smrg as_found=: 2172adc0320Smrg case $as_dir in #( 2182adc0320Smrg /*) 2192adc0320Smrg for as_base in sh bash ksh sh5; do 2202adc0320Smrg # Try only shells that exist, to save several forks. 2212adc0320Smrg as_shell=$as_dir/$as_base 2222adc0320Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2232adc0320Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 2242adc0320Smrg CONFIG_SHELL=$as_shell as_have_required=yes 2252adc0320Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 2262adc0320Smrg break 2 2272adc0320Smrgfi 2282adc0320Smrgfi 2292adc0320Smrg done;; 2302adc0320Smrg esac 2312adc0320Smrg as_found=false 2322adc0320Smrgdone 2332adc0320Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2342adc0320Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 2352adc0320Smrg CONFIG_SHELL=$SHELL as_have_required=yes 2362adc0320Smrgfi; } 2372adc0320SmrgIFS=$as_save_IFS 2382adc0320Smrg 2392adc0320Smrg 2402adc0320Smrg if test "x$CONFIG_SHELL" != x; then : 2418abc0ccfSmrg export CONFIG_SHELL 2428abc0ccfSmrg # We cannot yet assume a decent shell, so we have to provide a 2438abc0ccfSmrg# neutralization value for shells without unset; and this also 2448abc0ccfSmrg# works around shells that cannot unset nonexistent variables. 2458abc0ccfSmrg# Preserve -v and -x to the replacement shell. 2468abc0ccfSmrgBASH_ENV=/dev/null 2478abc0ccfSmrgENV=/dev/null 2488abc0ccfSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2498abc0ccfSmrgcase $- in # (((( 2508abc0ccfSmrg *v*x* | *x*v* ) as_opts=-vx ;; 2518abc0ccfSmrg *v* ) as_opts=-v ;; 2528abc0ccfSmrg *x* ) as_opts=-x ;; 2538abc0ccfSmrg * ) as_opts= ;; 2548abc0ccfSmrgesac 2558abc0ccfSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 2568abc0ccfSmrg# Admittedly, this is quite paranoid, since all the known shells bail 2578abc0ccfSmrg# out after a failed `exec'. 2588abc0ccfSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 2598abc0ccfSmrgexit 255 2602adc0320Smrgfi 2612adc0320Smrg 2622adc0320Smrg if test x$as_have_required = xno; then : 2632adc0320Smrg $as_echo "$0: This script requires a shell more modern than all" 2642adc0320Smrg $as_echo "$0: the shells that I found on your system." 2652adc0320Smrg if test x${ZSH_VERSION+set} = xset ; then 2662adc0320Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2672adc0320Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2682adc0320Smrg else 2692adc0320Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 2706c3c2bceSmrg$0: https://gitlab.freedesktop.org/xorg/app/xauth/issues 2712adc0320Smrg$0: about your system, including any error possibly output 2722adc0320Smrg$0: before this message. Then install a modern shell, or 2732adc0320Smrg$0: manually run the script under such a shell if you do 2742adc0320Smrg$0: have one." 2752adc0320Smrg fi 2762adc0320Smrg exit 1 2772adc0320Smrgfi 2782adc0320Smrgfi 2792adc0320Smrgfi 2802adc0320SmrgSHELL=${CONFIG_SHELL-/bin/sh} 2812adc0320Smrgexport SHELL 2822adc0320Smrg# Unset more variables known to interfere with behavior of common tools. 2832adc0320SmrgCLICOLOR_FORCE= GREP_OPTIONS= 2842adc0320Smrgunset CLICOLOR_FORCE GREP_OPTIONS 2852adc0320Smrg 2862adc0320Smrg## --------------------- ## 2872adc0320Smrg## M4sh Shell Functions. ## 2882adc0320Smrg## --------------------- ## 2892adc0320Smrg# as_fn_unset VAR 2902adc0320Smrg# --------------- 2912adc0320Smrg# Portably unset VAR. 2922adc0320Smrgas_fn_unset () 2932adc0320Smrg{ 2942adc0320Smrg { eval $1=; unset $1;} 2952adc0320Smrg} 2962adc0320Smrgas_unset=as_fn_unset 2972adc0320Smrg 2982adc0320Smrg# as_fn_set_status STATUS 2992adc0320Smrg# ----------------------- 3002adc0320Smrg# Set $? to STATUS, without forking. 3012adc0320Smrgas_fn_set_status () 3022adc0320Smrg{ 3032adc0320Smrg return $1 3042adc0320Smrg} # as_fn_set_status 3052adc0320Smrg 3062adc0320Smrg# as_fn_exit STATUS 3072adc0320Smrg# ----------------- 3082adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3092adc0320Smrgas_fn_exit () 3102adc0320Smrg{ 3112adc0320Smrg set +e 3122adc0320Smrg as_fn_set_status $1 3132adc0320Smrg exit $1 3142adc0320Smrg} # as_fn_exit 3152adc0320Smrg 3162adc0320Smrg# as_fn_mkdir_p 3172adc0320Smrg# ------------- 3182adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary. 3192adc0320Smrgas_fn_mkdir_p () 3202adc0320Smrg{ 3212adc0320Smrg 3222adc0320Smrg case $as_dir in #( 3232adc0320Smrg -*) as_dir=./$as_dir;; 3242adc0320Smrg esac 3252adc0320Smrg test -d "$as_dir" || eval $as_mkdir_p || { 3262adc0320Smrg as_dirs= 3272adc0320Smrg while :; do 3282adc0320Smrg case $as_dir in #( 3292adc0320Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3302adc0320Smrg *) as_qdir=$as_dir;; 3312adc0320Smrg esac 3322adc0320Smrg as_dirs="'$as_qdir' $as_dirs" 3332adc0320Smrg as_dir=`$as_dirname -- "$as_dir" || 3342adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3352adc0320Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3362adc0320Smrg X"$as_dir" : 'X\(//\)$' \| \ 3372adc0320Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3382adc0320Smrg$as_echo X"$as_dir" | 3392adc0320Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3402adc0320Smrg s//\1/ 3412adc0320Smrg q 3422adc0320Smrg } 3432adc0320Smrg /^X\(\/\/\)[^/].*/{ 3442adc0320Smrg s//\1/ 3452adc0320Smrg q 3462adc0320Smrg } 3472adc0320Smrg /^X\(\/\/\)$/{ 3482adc0320Smrg s//\1/ 3492adc0320Smrg q 3502adc0320Smrg } 3512adc0320Smrg /^X\(\/\).*/{ 3522adc0320Smrg s//\1/ 3532adc0320Smrg q 3542adc0320Smrg } 3552adc0320Smrg s/.*/./; q'` 3562adc0320Smrg test -d "$as_dir" && break 3572adc0320Smrg done 3582adc0320Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3592adc0320Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3602adc0320Smrg 3612adc0320Smrg 3622adc0320Smrg} # as_fn_mkdir_p 3638abc0ccfSmrg 3648abc0ccfSmrg# as_fn_executable_p FILE 3658abc0ccfSmrg# ----------------------- 3668abc0ccfSmrg# Test if FILE is an executable regular file. 3678abc0ccfSmrgas_fn_executable_p () 3688abc0ccfSmrg{ 3698abc0ccfSmrg test -f "$1" && test -x "$1" 3708abc0ccfSmrg} # as_fn_executable_p 3712adc0320Smrg# as_fn_append VAR VALUE 3722adc0320Smrg# ---------------------- 3732adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3742adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over 3752adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive 3762adc0320Smrg# implementations. 3772adc0320Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3782adc0320Smrg eval 'as_fn_append () 3792adc0320Smrg { 3802adc0320Smrg eval $1+=\$2 3812adc0320Smrg }' 3822adc0320Smrgelse 3832adc0320Smrg as_fn_append () 3842adc0320Smrg { 3852adc0320Smrg eval $1=\$$1\$2 3862adc0320Smrg } 3872adc0320Smrgfi # as_fn_append 3882adc0320Smrg 3892adc0320Smrg# as_fn_arith ARG... 3902adc0320Smrg# ------------------ 3912adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 3922adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 3932adc0320Smrg# must be portable across $(()) and expr. 3942adc0320Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3952adc0320Smrg eval 'as_fn_arith () 3962adc0320Smrg { 3972adc0320Smrg as_val=$(( $* )) 3982adc0320Smrg }' 3992adc0320Smrgelse 4002adc0320Smrg as_fn_arith () 4012adc0320Smrg { 4022adc0320Smrg as_val=`expr "$@" || test $? -eq 1` 4032adc0320Smrg } 4042adc0320Smrgfi # as_fn_arith 4052adc0320Smrg 4062adc0320Smrg 4072adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 4082adc0320Smrg# ---------------------------------------- 4092adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4102adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4112adc0320Smrg# script with STATUS, using 1 if that was 0. 4122adc0320Smrgas_fn_error () 4132adc0320Smrg{ 4142adc0320Smrg as_status=$1; test $as_status -eq 0 && as_status=1 4152adc0320Smrg if test "$4"; then 4162adc0320Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4172adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4182adc0320Smrg fi 4192adc0320Smrg $as_echo "$as_me: error: $2" >&2 4202adc0320Smrg as_fn_exit $as_status 4212adc0320Smrg} # as_fn_error 4222adc0320Smrg 4237a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 4247a0395d0Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 4257a0395d0Smrg as_expr=expr 4267a0395d0Smrgelse 4277a0395d0Smrg as_expr=false 4287a0395d0Smrgfi 4297a0395d0Smrg 4307a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4317a0395d0Smrg as_basename=basename 4327a0395d0Smrgelse 4337a0395d0Smrg as_basename=false 4347a0395d0Smrgfi 4357a0395d0Smrg 4362adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4372adc0320Smrg as_dirname=dirname 4382adc0320Smrgelse 4392adc0320Smrg as_dirname=false 4402adc0320Smrgfi 4417a0395d0Smrg 4427a0395d0Smrgas_me=`$as_basename -- "$0" || 4437a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4447a0395d0Smrg X"$0" : 'X\(//\)$' \| \ 4457a0395d0Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4467366012aSmrg$as_echo X/"$0" | 4477a0395d0Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4487a0395d0Smrg s//\1/ 4497a0395d0Smrg q 4507a0395d0Smrg } 4517a0395d0Smrg /^X\/\(\/\/\)$/{ 4527a0395d0Smrg s//\1/ 4537a0395d0Smrg q 4547a0395d0Smrg } 4557a0395d0Smrg /^X\/\(\/\).*/{ 4567a0395d0Smrg s//\1/ 4577a0395d0Smrg q 4587a0395d0Smrg } 4597a0395d0Smrg s/.*/./; q'` 4607a0395d0Smrg 4612adc0320Smrg# Avoid depending upon Character Ranges. 4622adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4632adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4642adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4652adc0320Smrgas_cr_digits='0123456789' 4662adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4677a0395d0Smrg 4687a0395d0Smrg 4692adc0320Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4702adc0320Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4712adc0320Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4722adc0320Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4732adc0320Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4742adc0320Smrg sed -n ' 4752adc0320Smrg p 4762adc0320Smrg /[$]LINENO/= 4772adc0320Smrg ' <$as_myself | 4782adc0320Smrg sed ' 4792adc0320Smrg s/[$]LINENO.*/&-/ 4802adc0320Smrg t lineno 4812adc0320Smrg b 4822adc0320Smrg :lineno 4832adc0320Smrg N 4842adc0320Smrg :loop 4852adc0320Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4862adc0320Smrg t loop 4872adc0320Smrg s/-\n.*// 4882adc0320Smrg ' >$as_me.lineno && 4892adc0320Smrg chmod +x "$as_me.lineno" || 4902adc0320Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4917a0395d0Smrg 4928abc0ccfSmrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 4938abc0ccfSmrg # already done that, so ensure we don't try to do so again and fall 4948abc0ccfSmrg # in an infinite loop. This has already happened in practice. 4958abc0ccfSmrg _as_can_reexec=no; export _as_can_reexec 4962adc0320Smrg # Don't try to exec as it changes $[0], causing all sort of problems 4972adc0320Smrg # (the dirname of $[0] is not the place where we might find the 4982adc0320Smrg # original and so on. Autoconf is especially sensitive to this). 4992adc0320Smrg . "./$as_me.lineno" 5002adc0320Smrg # Exit status is that of the last command. 5012adc0320Smrg exit 5027a0395d0Smrg} 5037a0395d0Smrg 5042adc0320SmrgECHO_C= ECHO_N= ECHO_T= 5052adc0320Smrgcase `echo -n x` in #((((( 5062adc0320Smrg-n*) 5072adc0320Smrg case `echo 'xy\c'` in 5082adc0320Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5092adc0320Smrg xy) ECHO_C='\c';; 5102adc0320Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5112adc0320Smrg ECHO_T=' ';; 5122adc0320Smrg esac;; 5132adc0320Smrg*) 5142adc0320Smrg ECHO_N='-n';; 5152adc0320Smrgesac 5167a0395d0Smrg 5172adc0320Smrgrm -f conf$$ conf$$.exe conf$$.file 5182adc0320Smrgif test -d conf$$.dir; then 5192adc0320Smrg rm -f conf$$.dir/conf$$.file 5202adc0320Smrgelse 5212adc0320Smrg rm -f conf$$.dir 5222adc0320Smrg mkdir conf$$.dir 2>/dev/null 5237a0395d0Smrgfi 5242adc0320Smrgif (echo >conf$$.file) 2>/dev/null; then 5252adc0320Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5262adc0320Smrg as_ln_s='ln -s' 5272adc0320Smrg # ... but there are two gotchas: 5282adc0320Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5292adc0320Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5308abc0ccfSmrg # In both cases, we have to default to `cp -pR'. 5312adc0320Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5328abc0ccfSmrg as_ln_s='cp -pR' 5332adc0320Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5342adc0320Smrg as_ln_s=ln 5352adc0320Smrg else 5368abc0ccfSmrg as_ln_s='cp -pR' 5372adc0320Smrg fi 5387a0395d0Smrgelse 5398abc0ccfSmrg as_ln_s='cp -pR' 5407a0395d0Smrgfi 5412adc0320Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5422adc0320Smrgrmdir conf$$.dir 2>/dev/null 5437a0395d0Smrg 5442adc0320Smrgif mkdir -p . 2>/dev/null; then 5452adc0320Smrg as_mkdir_p='mkdir -p "$as_dir"' 5462adc0320Smrgelse 5472adc0320Smrg test -d ./-p && rmdir ./-p 5482adc0320Smrg as_mkdir_p=false 5497a0395d0Smrgfi 5507a0395d0Smrg 5518abc0ccfSmrgas_test_x='test -x' 5528abc0ccfSmrgas_executable_p=as_fn_executable_p 5537a0395d0Smrg 5542adc0320Smrg# Sed expression to map a string onto a valid CPP name. 5552adc0320Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5567a0395d0Smrg 5572adc0320Smrg# Sed expression to map a string onto a valid variable name. 5582adc0320Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5597a0395d0Smrg 5607a0395d0Smrg 5612adc0320Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5622adc0320Smrgexec 6>&1 5637a0395d0Smrg 5647a0395d0Smrg# Name of the host. 5652adc0320Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5667a0395d0Smrg# so uname gets run too. 5677a0395d0Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5687a0395d0Smrg 5697a0395d0Smrg# 5707a0395d0Smrg# Initializations. 5717a0395d0Smrg# 5727a0395d0Smrgac_default_prefix=/usr/local 5737a0395d0Smrgac_clean_files= 5747a0395d0Smrgac_config_libobj_dir=. 5757a0395d0SmrgLIBOBJS= 5767a0395d0Smrgcross_compiling=no 5777a0395d0Smrgsubdirs= 5787a0395d0SmrgMFLAGS= 5797a0395d0SmrgMAKEFLAGS= 5807a0395d0Smrg 5817a0395d0Smrg# Identity of this package. 5827a0395d0SmrgPACKAGE_NAME='xauth' 5837a0395d0SmrgPACKAGE_TARNAME='xauth' 5840d22642bSmrgPACKAGE_VERSION='1.1.1' 5850d22642bSmrgPACKAGE_STRING='xauth 1.1.1' 5866c3c2bceSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xauth/issues' 5872adc0320SmrgPACKAGE_URL='' 5887a0395d0Smrg 5897a0395d0Smrg# Factoring default headers for most tests. 5907a0395d0Smrgac_includes_default="\ 5917a0395d0Smrg#include <stdio.h> 5927a0395d0Smrg#ifdef HAVE_SYS_TYPES_H 5937a0395d0Smrg# include <sys/types.h> 5947a0395d0Smrg#endif 5957a0395d0Smrg#ifdef HAVE_SYS_STAT_H 5967a0395d0Smrg# include <sys/stat.h> 5977a0395d0Smrg#endif 5987a0395d0Smrg#ifdef STDC_HEADERS 5997a0395d0Smrg# include <stdlib.h> 6007a0395d0Smrg# include <stddef.h> 6017a0395d0Smrg#else 6027a0395d0Smrg# ifdef HAVE_STDLIB_H 6037a0395d0Smrg# include <stdlib.h> 6047a0395d0Smrg# endif 6057a0395d0Smrg#endif 6067a0395d0Smrg#ifdef HAVE_STRING_H 6077a0395d0Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 6087a0395d0Smrg# include <memory.h> 6097a0395d0Smrg# endif 6107a0395d0Smrg# include <string.h> 6117a0395d0Smrg#endif 6127a0395d0Smrg#ifdef HAVE_STRINGS_H 6137a0395d0Smrg# include <strings.h> 6147a0395d0Smrg#endif 6157a0395d0Smrg#ifdef HAVE_INTTYPES_H 6167a0395d0Smrg# include <inttypes.h> 6177a0395d0Smrg#endif 6187a0395d0Smrg#ifdef HAVE_STDINT_H 6197a0395d0Smrg# include <stdint.h> 6207a0395d0Smrg#endif 6217a0395d0Smrg#ifdef HAVE_UNISTD_H 6227a0395d0Smrg# include <unistd.h> 6237a0395d0Smrg#endif" 6247a0395d0Smrg 6257366012aSmrgac_subst_vars='am__EXEEXT_FALSE 6267366012aSmrgam__EXEEXT_TRUE 6277366012aSmrgLTLIBOBJS 6287366012aSmrgLIBOBJS 6297a0395d0SmrgLINT_FALSE 6307366012aSmrgLINT_TRUE 6317366012aSmrgLINT_FLAGS 6327366012aSmrgLINT 6337366012aSmrgXAUTH_LIBS 6347366012aSmrgXAUTH_CFLAGS 6352adc0320SmrgMAN_SUBSTS 6362adc0320SmrgXORG_MAN_PAGE 6377a0395d0SmrgADMIN_MAN_DIR 6387366012aSmrgDRIVER_MAN_DIR 6397366012aSmrgMISC_MAN_DIR 6407366012aSmrgFILE_MAN_DIR 6417366012aSmrgLIB_MAN_DIR 6427366012aSmrgAPP_MAN_DIR 6437366012aSmrgADMIN_MAN_SUFFIX 6447366012aSmrgDRIVER_MAN_SUFFIX 6457366012aSmrgMISC_MAN_SUFFIX 6467366012aSmrgFILE_MAN_SUFFIX 6477366012aSmrgLIB_MAN_SUFFIX 6487366012aSmrgAPP_MAN_SUFFIX 6492adc0320SmrgSED 6507366012aSmrghost_os 6517366012aSmrghost_vendor 6527366012aSmrghost_cpu 6537366012aSmrghost 6547366012aSmrgbuild_os 6557366012aSmrgbuild_vendor 6567366012aSmrgbuild_cpu 6577366012aSmrgbuild 6582adc0320SmrgINSTALL_CMD 6598abc0ccfSmrgPKG_CONFIG_LIBDIR 6608abc0ccfSmrgPKG_CONFIG_PATH 6612adc0320SmrgPKG_CONFIG 6627366012aSmrgCHANGELOG_CMD 66396402570SmrgSTRICT_CFLAGS 6647366012aSmrgCWARNFLAGS 66596402570SmrgBASE_CFLAGS 6667366012aSmrgEGREP 6677366012aSmrgGREP 6687366012aSmrgCPP 6697366012aSmrgam__fastdepCC_FALSE 6707366012aSmrgam__fastdepCC_TRUE 6717366012aSmrgCCDEPMODE 6728abc0ccfSmrgam__nodep 6737366012aSmrgAMDEPBACKSLASH 6747366012aSmrgAMDEP_FALSE 6757366012aSmrgAMDEP_TRUE 6767366012aSmrgam__include 6777366012aSmrgDEPDIR 6787366012aSmrgOBJEXT 6797366012aSmrgEXEEXT 6807366012aSmrgac_ct_CC 6817366012aSmrgCPPFLAGS 6827366012aSmrgLDFLAGS 6837366012aSmrgCFLAGS 6847366012aSmrgCC 6859a011757SmrgAM_BACKSLASH 6869a011757SmrgAM_DEFAULT_VERBOSITY 6879a011757SmrgAM_DEFAULT_V 6889a011757SmrgAM_V 6897366012aSmrgam__untar 6907366012aSmrgam__tar 6917366012aSmrgAMTAR 6927366012aSmrgam__leading_dot 6937366012aSmrgSET_MAKE 6947366012aSmrgAWK 6957366012aSmrgmkdir_p 6967366012aSmrgMKDIR_P 6977366012aSmrgINSTALL_STRIP_PROGRAM 6987366012aSmrgSTRIP 6997366012aSmrginstall_sh 7007366012aSmrgMAKEINFO 7017366012aSmrgAUTOHEADER 7027366012aSmrgAUTOMAKE 7037366012aSmrgAUTOCONF 7047366012aSmrgACLOCAL 7057366012aSmrgVERSION 7067366012aSmrgPACKAGE 7077366012aSmrgCYGPATH_W 7087366012aSmrgam__isrc 7097366012aSmrgINSTALL_DATA 7107366012aSmrgINSTALL_SCRIPT 7117366012aSmrgINSTALL_PROGRAM 7127366012aSmrgtarget_alias 7137366012aSmrghost_alias 7147366012aSmrgbuild_alias 7157366012aSmrgLIBS 7167366012aSmrgECHO_T 7177366012aSmrgECHO_N 7187366012aSmrgECHO_C 7197366012aSmrgDEFS 7207366012aSmrgmandir 7217366012aSmrglocaledir 7227366012aSmrglibdir 7237366012aSmrgpsdir 7247366012aSmrgpdfdir 7257366012aSmrgdvidir 7267366012aSmrghtmldir 7277366012aSmrginfodir 7287366012aSmrgdocdir 7297366012aSmrgoldincludedir 7307366012aSmrgincludedir 7317366012aSmrglocalstatedir 7327366012aSmrgsharedstatedir 7337366012aSmrgsysconfdir 7347366012aSmrgdatadir 7357366012aSmrgdatarootdir 7367366012aSmrglibexecdir 7377366012aSmrgsbindir 7387366012aSmrgbindir 7397366012aSmrgprogram_transform_name 7407366012aSmrgprefix 7417366012aSmrgexec_prefix 7422adc0320SmrgPACKAGE_URL 7437366012aSmrgPACKAGE_BUGREPORT 7447366012aSmrgPACKAGE_STRING 7457366012aSmrgPACKAGE_VERSION 7467366012aSmrgPACKAGE_TARNAME 7477366012aSmrgPACKAGE_NAME 7487366012aSmrgPATH_SEPARATOR 7496c3c2bceSmrgSHELL 7506c3c2bceSmrgam__quote' 7517a0395d0Smrgac_subst_files='' 7527366012aSmrgac_user_opts=' 7537366012aSmrgenable_option_checking 7549a011757Smrgenable_silent_rules 7557366012aSmrgenable_dependency_tracking 75696402570Smrgenable_selective_werror 7577366012aSmrgenable_strict_compilation 7587366012aSmrgenable_unix_transport 7597366012aSmrgenable_tcp_transport 7607366012aSmrgenable_ipv6 7617366012aSmrgenable_local_transport 7627366012aSmrgwith_lint 7637366012aSmrg' 7647a0395d0Smrg ac_precious_vars='build_alias 7657a0395d0Smrghost_alias 7667a0395d0Smrgtarget_alias 7677a0395d0SmrgCC 7687a0395d0SmrgCFLAGS 7697a0395d0SmrgLDFLAGS 7707a0395d0SmrgLIBS 7717a0395d0SmrgCPPFLAGS 7727a0395d0SmrgCPP 7737a0395d0SmrgPKG_CONFIG 7748abc0ccfSmrgPKG_CONFIG_PATH 7758abc0ccfSmrgPKG_CONFIG_LIBDIR 7767a0395d0SmrgXAUTH_CFLAGS 7772adc0320SmrgXAUTH_LIBS 7782adc0320SmrgLINT 7792adc0320SmrgLINT_FLAGS' 7807a0395d0Smrg 7817a0395d0Smrg 7827a0395d0Smrg# Initialize some variables set by options. 7837a0395d0Smrgac_init_help= 7847a0395d0Smrgac_init_version=false 7857366012aSmrgac_unrecognized_opts= 7867366012aSmrgac_unrecognized_sep= 7877a0395d0Smrg# The variables have the same names as the options, with 7887a0395d0Smrg# dashes changed to underlines. 7897a0395d0Smrgcache_file=/dev/null 7907a0395d0Smrgexec_prefix=NONE 7917a0395d0Smrgno_create= 7927a0395d0Smrgno_recursion= 7937a0395d0Smrgprefix=NONE 7947a0395d0Smrgprogram_prefix=NONE 7957a0395d0Smrgprogram_suffix=NONE 7967a0395d0Smrgprogram_transform_name=s,x,x, 7977a0395d0Smrgsilent= 7987a0395d0Smrgsite= 7997a0395d0Smrgsrcdir= 8007a0395d0Smrgverbose= 8017a0395d0Smrgx_includes=NONE 8027a0395d0Smrgx_libraries=NONE 8037a0395d0Smrg 8047a0395d0Smrg# Installation directory options. 8057a0395d0Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 8067a0395d0Smrg# and all the variables that are supposed to be based on exec_prefix 8077a0395d0Smrg# by default will actually change. 8087a0395d0Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 8097a0395d0Smrg# (The list follows the same order as the GNU Coding Standards.) 8107a0395d0Smrgbindir='${exec_prefix}/bin' 8117a0395d0Smrgsbindir='${exec_prefix}/sbin' 8127a0395d0Smrglibexecdir='${exec_prefix}/libexec' 8137a0395d0Smrgdatarootdir='${prefix}/share' 8147a0395d0Smrgdatadir='${datarootdir}' 8157a0395d0Smrgsysconfdir='${prefix}/etc' 8167a0395d0Smrgsharedstatedir='${prefix}/com' 8177a0395d0Smrglocalstatedir='${prefix}/var' 8187a0395d0Smrgincludedir='${prefix}/include' 8197a0395d0Smrgoldincludedir='/usr/include' 8207a0395d0Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 8217a0395d0Smrginfodir='${datarootdir}/info' 8227a0395d0Smrghtmldir='${docdir}' 8237a0395d0Smrgdvidir='${docdir}' 8247a0395d0Smrgpdfdir='${docdir}' 8257a0395d0Smrgpsdir='${docdir}' 8267a0395d0Smrglibdir='${exec_prefix}/lib' 8277a0395d0Smrglocaledir='${datarootdir}/locale' 8287a0395d0Smrgmandir='${datarootdir}/man' 8297a0395d0Smrg 8307a0395d0Smrgac_prev= 8317a0395d0Smrgac_dashdash= 8327a0395d0Smrgfor ac_option 8337a0395d0Smrgdo 8347a0395d0Smrg # If the previous option needs an argument, assign it. 8357a0395d0Smrg if test -n "$ac_prev"; then 8367a0395d0Smrg eval $ac_prev=\$ac_option 8377a0395d0Smrg ac_prev= 8387a0395d0Smrg continue 8397a0395d0Smrg fi 8407a0395d0Smrg 8417a0395d0Smrg case $ac_option in 8422adc0320Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8432adc0320Smrg *=) ac_optarg= ;; 8442adc0320Smrg *) ac_optarg=yes ;; 8457a0395d0Smrg esac 8467a0395d0Smrg 8477a0395d0Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 8487a0395d0Smrg 8497a0395d0Smrg case $ac_dashdash$ac_option in 8507a0395d0Smrg --) 8517a0395d0Smrg ac_dashdash=yes ;; 8527a0395d0Smrg 8537a0395d0Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8547a0395d0Smrg ac_prev=bindir ;; 8557a0395d0Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8567a0395d0Smrg bindir=$ac_optarg ;; 8577a0395d0Smrg 8587a0395d0Smrg -build | --build | --buil | --bui | --bu) 8597a0395d0Smrg ac_prev=build_alias ;; 8607a0395d0Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8617a0395d0Smrg build_alias=$ac_optarg ;; 8627a0395d0Smrg 8637a0395d0Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8647a0395d0Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8657a0395d0Smrg ac_prev=cache_file ;; 8667a0395d0Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8677a0395d0Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8687a0395d0Smrg cache_file=$ac_optarg ;; 8697a0395d0Smrg 8707a0395d0Smrg --config-cache | -C) 8717a0395d0Smrg cache_file=config.cache ;; 8727a0395d0Smrg 8737a0395d0Smrg -datadir | --datadir | --datadi | --datad) 8747a0395d0Smrg ac_prev=datadir ;; 8757a0395d0Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8767a0395d0Smrg datadir=$ac_optarg ;; 8777a0395d0Smrg 8787a0395d0Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8797a0395d0Smrg | --dataroo | --dataro | --datar) 8807a0395d0Smrg ac_prev=datarootdir ;; 8817a0395d0Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8827a0395d0Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8837a0395d0Smrg datarootdir=$ac_optarg ;; 8847a0395d0Smrg 8857a0395d0Smrg -disable-* | --disable-*) 8867366012aSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8877a0395d0Smrg # Reject names that are not valid shell variable names. 8887366012aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8892adc0320Smrg as_fn_error $? "invalid feature name: $ac_useropt" 8907366012aSmrg ac_useropt_orig=$ac_useropt 8917366012aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 8927366012aSmrg case $ac_user_opts in 8937366012aSmrg *" 8947366012aSmrg"enable_$ac_useropt" 8957366012aSmrg"*) ;; 8967366012aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 8977366012aSmrg ac_unrecognized_sep=', ';; 8987366012aSmrg esac 8997366012aSmrg eval enable_$ac_useropt=no ;; 9007a0395d0Smrg 9017a0395d0Smrg -docdir | --docdir | --docdi | --doc | --do) 9027a0395d0Smrg ac_prev=docdir ;; 9037a0395d0Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 9047a0395d0Smrg docdir=$ac_optarg ;; 9057a0395d0Smrg 9067a0395d0Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 9077a0395d0Smrg ac_prev=dvidir ;; 9087a0395d0Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 9097a0395d0Smrg dvidir=$ac_optarg ;; 9107a0395d0Smrg 9117a0395d0Smrg -enable-* | --enable-*) 9127366012aSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 9137a0395d0Smrg # Reject names that are not valid shell variable names. 9147366012aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9152adc0320Smrg as_fn_error $? "invalid feature name: $ac_useropt" 9167366012aSmrg ac_useropt_orig=$ac_useropt 9177366012aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 9187366012aSmrg case $ac_user_opts in 9197366012aSmrg *" 9207366012aSmrg"enable_$ac_useropt" 9217366012aSmrg"*) ;; 9227366012aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9237366012aSmrg ac_unrecognized_sep=', ';; 9247366012aSmrg esac 9257366012aSmrg eval enable_$ac_useropt=\$ac_optarg ;; 9267a0395d0Smrg 9277a0395d0Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9287a0395d0Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9297a0395d0Smrg | --exec | --exe | --ex) 9307a0395d0Smrg ac_prev=exec_prefix ;; 9317a0395d0Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9327a0395d0Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9337a0395d0Smrg | --exec=* | --exe=* | --ex=*) 9347a0395d0Smrg exec_prefix=$ac_optarg ;; 9357a0395d0Smrg 9367a0395d0Smrg -gas | --gas | --ga | --g) 9377a0395d0Smrg # Obsolete; use --with-gas. 9387a0395d0Smrg with_gas=yes ;; 9397a0395d0Smrg 9407a0395d0Smrg -help | --help | --hel | --he | -h) 9417a0395d0Smrg ac_init_help=long ;; 9427a0395d0Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9437a0395d0Smrg ac_init_help=recursive ;; 9447a0395d0Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9457a0395d0Smrg ac_init_help=short ;; 9467a0395d0Smrg 9477a0395d0Smrg -host | --host | --hos | --ho) 9487a0395d0Smrg ac_prev=host_alias ;; 9497a0395d0Smrg -host=* | --host=* | --hos=* | --ho=*) 9507a0395d0Smrg host_alias=$ac_optarg ;; 9517a0395d0Smrg 9527a0395d0Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9537a0395d0Smrg ac_prev=htmldir ;; 9547a0395d0Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9557a0395d0Smrg | --ht=*) 9567a0395d0Smrg htmldir=$ac_optarg ;; 9577a0395d0Smrg 9587a0395d0Smrg -includedir | --includedir | --includedi | --included | --include \ 9597a0395d0Smrg | --includ | --inclu | --incl | --inc) 9607a0395d0Smrg ac_prev=includedir ;; 9617a0395d0Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9627a0395d0Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9637a0395d0Smrg includedir=$ac_optarg ;; 9647a0395d0Smrg 9657a0395d0Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9667a0395d0Smrg ac_prev=infodir ;; 9677a0395d0Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9687a0395d0Smrg infodir=$ac_optarg ;; 9697a0395d0Smrg 9707a0395d0Smrg -libdir | --libdir | --libdi | --libd) 9717a0395d0Smrg ac_prev=libdir ;; 9727a0395d0Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9737a0395d0Smrg libdir=$ac_optarg ;; 9747a0395d0Smrg 9757a0395d0Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9767a0395d0Smrg | --libexe | --libex | --libe) 9777a0395d0Smrg ac_prev=libexecdir ;; 9787a0395d0Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9797a0395d0Smrg | --libexe=* | --libex=* | --libe=*) 9807a0395d0Smrg libexecdir=$ac_optarg ;; 9817a0395d0Smrg 9827a0395d0Smrg -localedir | --localedir | --localedi | --localed | --locale) 9837a0395d0Smrg ac_prev=localedir ;; 9847a0395d0Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 9857a0395d0Smrg localedir=$ac_optarg ;; 9867a0395d0Smrg 9877a0395d0Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 9887a0395d0Smrg | --localstate | --localstat | --localsta | --localst | --locals) 9897a0395d0Smrg ac_prev=localstatedir ;; 9907a0395d0Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 9917a0395d0Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9927a0395d0Smrg localstatedir=$ac_optarg ;; 9937a0395d0Smrg 9947a0395d0Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9957a0395d0Smrg ac_prev=mandir ;; 9967a0395d0Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9977a0395d0Smrg mandir=$ac_optarg ;; 9987a0395d0Smrg 9997a0395d0Smrg -nfp | --nfp | --nf) 10007a0395d0Smrg # Obsolete; use --without-fp. 10017a0395d0Smrg with_fp=no ;; 10027a0395d0Smrg 10037a0395d0Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 10047a0395d0Smrg | --no-cr | --no-c | -n) 10057a0395d0Smrg no_create=yes ;; 10067a0395d0Smrg 10077a0395d0Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 10087a0395d0Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 10097a0395d0Smrg no_recursion=yes ;; 10107a0395d0Smrg 10117a0395d0Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 10127a0395d0Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 10137a0395d0Smrg | --oldin | --oldi | --old | --ol | --o) 10147a0395d0Smrg ac_prev=oldincludedir ;; 10157a0395d0Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10167a0395d0Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10177a0395d0Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10187a0395d0Smrg oldincludedir=$ac_optarg ;; 10197a0395d0Smrg 10207a0395d0Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10217a0395d0Smrg ac_prev=prefix ;; 10227a0395d0Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10237a0395d0Smrg prefix=$ac_optarg ;; 10247a0395d0Smrg 10257a0395d0Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10267a0395d0Smrg | --program-pre | --program-pr | --program-p) 10277a0395d0Smrg ac_prev=program_prefix ;; 10287a0395d0Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10297a0395d0Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10307a0395d0Smrg program_prefix=$ac_optarg ;; 10317a0395d0Smrg 10327a0395d0Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10337a0395d0Smrg | --program-suf | --program-su | --program-s) 10347a0395d0Smrg ac_prev=program_suffix ;; 10357a0395d0Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10367a0395d0Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10377a0395d0Smrg program_suffix=$ac_optarg ;; 10387a0395d0Smrg 10397a0395d0Smrg -program-transform-name | --program-transform-name \ 10407a0395d0Smrg | --program-transform-nam | --program-transform-na \ 10417a0395d0Smrg | --program-transform-n | --program-transform- \ 10427a0395d0Smrg | --program-transform | --program-transfor \ 10437a0395d0Smrg | --program-transfo | --program-transf \ 10447a0395d0Smrg | --program-trans | --program-tran \ 10457a0395d0Smrg | --progr-tra | --program-tr | --program-t) 10467a0395d0Smrg ac_prev=program_transform_name ;; 10477a0395d0Smrg -program-transform-name=* | --program-transform-name=* \ 10487a0395d0Smrg | --program-transform-nam=* | --program-transform-na=* \ 10497a0395d0Smrg | --program-transform-n=* | --program-transform-=* \ 10507a0395d0Smrg | --program-transform=* | --program-transfor=* \ 10517a0395d0Smrg | --program-transfo=* | --program-transf=* \ 10527a0395d0Smrg | --program-trans=* | --program-tran=* \ 10537a0395d0Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 10547a0395d0Smrg program_transform_name=$ac_optarg ;; 10557a0395d0Smrg 10567a0395d0Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10577a0395d0Smrg ac_prev=pdfdir ;; 10587a0395d0Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10597a0395d0Smrg pdfdir=$ac_optarg ;; 10607a0395d0Smrg 10617a0395d0Smrg -psdir | --psdir | --psdi | --psd | --ps) 10627a0395d0Smrg ac_prev=psdir ;; 10637a0395d0Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10647a0395d0Smrg psdir=$ac_optarg ;; 10657a0395d0Smrg 10667a0395d0Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10677a0395d0Smrg | -silent | --silent | --silen | --sile | --sil) 10687a0395d0Smrg silent=yes ;; 10697a0395d0Smrg 10707a0395d0Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10717a0395d0Smrg ac_prev=sbindir ;; 10727a0395d0Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10737a0395d0Smrg | --sbi=* | --sb=*) 10747a0395d0Smrg sbindir=$ac_optarg ;; 10757a0395d0Smrg 10767a0395d0Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10777a0395d0Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10787a0395d0Smrg | --sharedst | --shareds | --shared | --share | --shar \ 10797a0395d0Smrg | --sha | --sh) 10807a0395d0Smrg ac_prev=sharedstatedir ;; 10817a0395d0Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10827a0395d0Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10837a0395d0Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10847a0395d0Smrg | --sha=* | --sh=*) 10857a0395d0Smrg sharedstatedir=$ac_optarg ;; 10867a0395d0Smrg 10877a0395d0Smrg -site | --site | --sit) 10887a0395d0Smrg ac_prev=site ;; 10897a0395d0Smrg -site=* | --site=* | --sit=*) 10907a0395d0Smrg site=$ac_optarg ;; 10917a0395d0Smrg 10927a0395d0Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10937a0395d0Smrg ac_prev=srcdir ;; 10947a0395d0Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10957a0395d0Smrg srcdir=$ac_optarg ;; 10967a0395d0Smrg 10977a0395d0Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10987a0395d0Smrg | --syscon | --sysco | --sysc | --sys | --sy) 10997a0395d0Smrg ac_prev=sysconfdir ;; 11007a0395d0Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 11017a0395d0Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 11027a0395d0Smrg sysconfdir=$ac_optarg ;; 11037a0395d0Smrg 11047a0395d0Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 11057a0395d0Smrg ac_prev=target_alias ;; 11067a0395d0Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 11077a0395d0Smrg target_alias=$ac_optarg ;; 11087a0395d0Smrg 11097a0395d0Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 11107a0395d0Smrg verbose=yes ;; 11117a0395d0Smrg 11127a0395d0Smrg -version | --version | --versio | --versi | --vers | -V) 11137a0395d0Smrg ac_init_version=: ;; 11147a0395d0Smrg 11157a0395d0Smrg -with-* | --with-*) 11167366012aSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11177a0395d0Smrg # Reject names that are not valid shell variable names. 11187366012aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11192adc0320Smrg as_fn_error $? "invalid package name: $ac_useropt" 11207366012aSmrg ac_useropt_orig=$ac_useropt 11217366012aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11227366012aSmrg case $ac_user_opts in 11237366012aSmrg *" 11247366012aSmrg"with_$ac_useropt" 11257366012aSmrg"*) ;; 11267366012aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11277366012aSmrg ac_unrecognized_sep=', ';; 11287366012aSmrg esac 11297366012aSmrg eval with_$ac_useropt=\$ac_optarg ;; 11307a0395d0Smrg 11317a0395d0Smrg -without-* | --without-*) 11327366012aSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11337a0395d0Smrg # Reject names that are not valid shell variable names. 11347366012aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11352adc0320Smrg as_fn_error $? "invalid package name: $ac_useropt" 11367366012aSmrg ac_useropt_orig=$ac_useropt 11377366012aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11387366012aSmrg case $ac_user_opts in 11397366012aSmrg *" 11407366012aSmrg"with_$ac_useropt" 11417366012aSmrg"*) ;; 11427366012aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11437366012aSmrg ac_unrecognized_sep=', ';; 11447366012aSmrg esac 11457366012aSmrg eval with_$ac_useropt=no ;; 11467a0395d0Smrg 11477a0395d0Smrg --x) 11487a0395d0Smrg # Obsolete; use --with-x. 11497a0395d0Smrg with_x=yes ;; 11507a0395d0Smrg 11517a0395d0Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11527a0395d0Smrg | --x-incl | --x-inc | --x-in | --x-i) 11537a0395d0Smrg ac_prev=x_includes ;; 11547a0395d0Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11557a0395d0Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11567a0395d0Smrg x_includes=$ac_optarg ;; 11577a0395d0Smrg 11587a0395d0Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11597a0395d0Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11607a0395d0Smrg ac_prev=x_libraries ;; 11617a0395d0Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11627a0395d0Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11637a0395d0Smrg x_libraries=$ac_optarg ;; 11647a0395d0Smrg 11652adc0320Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 11662adc0320SmrgTry \`$0 --help' for more information" 11677a0395d0Smrg ;; 11687a0395d0Smrg 11697a0395d0Smrg *=*) 11707a0395d0Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11717a0395d0Smrg # Reject names that are not valid shell variable names. 11722adc0320Smrg case $ac_envvar in #( 11732adc0320Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 11742adc0320Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 11752adc0320Smrg esac 11767a0395d0Smrg eval $ac_envvar=\$ac_optarg 11777a0395d0Smrg export $ac_envvar ;; 11787a0395d0Smrg 11797a0395d0Smrg *) 11807a0395d0Smrg # FIXME: should be removed in autoconf 3.0. 11817366012aSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11827a0395d0Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 11837366012aSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 11842adc0320Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11857a0395d0Smrg ;; 11867a0395d0Smrg 11877a0395d0Smrg esac 11887a0395d0Smrgdone 11897a0395d0Smrg 11907a0395d0Smrgif test -n "$ac_prev"; then 11917a0395d0Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 11922adc0320Smrg as_fn_error $? "missing argument to $ac_option" 11937a0395d0Smrgfi 11947a0395d0Smrg 11957366012aSmrgif test -n "$ac_unrecognized_opts"; then 11967366012aSmrg case $enable_option_checking in 11977366012aSmrg no) ;; 11982adc0320Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 11997366012aSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 12007366012aSmrg esac 12017366012aSmrgfi 12027366012aSmrg 12037366012aSmrg# Check all directory arguments for consistency. 12047a0395d0Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 12057a0395d0Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 12067a0395d0Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 12077a0395d0Smrg libdir localedir mandir 12087a0395d0Smrgdo 12097a0395d0Smrg eval ac_val=\$$ac_var 12107366012aSmrg # Remove trailing slashes. 12117366012aSmrg case $ac_val in 12127366012aSmrg */ ) 12137366012aSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 12147366012aSmrg eval $ac_var=\$ac_val;; 12157366012aSmrg esac 12167366012aSmrg # Be sure to have absolute directory names. 12177a0395d0Smrg case $ac_val in 12187a0395d0Smrg [\\/$]* | ?:[\\/]* ) continue;; 12197a0395d0Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 12207a0395d0Smrg esac 12212adc0320Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12227a0395d0Smrgdone 12237a0395d0Smrg 12247a0395d0Smrg# There might be people who depend on the old broken behavior: `$host' 12257a0395d0Smrg# used to hold the argument of --host etc. 12267a0395d0Smrg# FIXME: To remove some day. 12277a0395d0Smrgbuild=$build_alias 12287a0395d0Smrghost=$host_alias 12297a0395d0Smrgtarget=$target_alias 12307a0395d0Smrg 12317a0395d0Smrg# FIXME: To remove some day. 12327a0395d0Smrgif test "x$host_alias" != x; then 12337a0395d0Smrg if test "x$build_alias" = x; then 12347a0395d0Smrg cross_compiling=maybe 12357a0395d0Smrg elif test "x$build_alias" != "x$host_alias"; then 12367a0395d0Smrg cross_compiling=yes 12377a0395d0Smrg fi 12387a0395d0Smrgfi 12397a0395d0Smrg 12407a0395d0Smrgac_tool_prefix= 12417a0395d0Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12427a0395d0Smrg 12437a0395d0Smrgtest "$silent" = yes && exec 6>/dev/null 12447a0395d0Smrg 12457a0395d0Smrg 12467a0395d0Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 12477a0395d0Smrgac_ls_di=`ls -di .` && 12487a0395d0Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12492adc0320Smrg as_fn_error $? "working directory cannot be determined" 12507a0395d0Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12512adc0320Smrg as_fn_error $? "pwd does not report name of working directory" 12527a0395d0Smrg 12537a0395d0Smrg 12547a0395d0Smrg# Find the source files, if location was not specified. 12557a0395d0Smrgif test -z "$srcdir"; then 12567a0395d0Smrg ac_srcdir_defaulted=yes 12577a0395d0Smrg # Try the directory containing this script, then the parent directory. 12587366012aSmrg ac_confdir=`$as_dirname -- "$as_myself" || 12597366012aSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12607366012aSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12617366012aSmrg X"$as_myself" : 'X\(//\)$' \| \ 12627366012aSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12637366012aSmrg$as_echo X"$as_myself" | 12647a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12657a0395d0Smrg s//\1/ 12667a0395d0Smrg q 12677a0395d0Smrg } 12687a0395d0Smrg /^X\(\/\/\)[^/].*/{ 12697a0395d0Smrg s//\1/ 12707a0395d0Smrg q 12717a0395d0Smrg } 12727a0395d0Smrg /^X\(\/\/\)$/{ 12737a0395d0Smrg s//\1/ 12747a0395d0Smrg q 12757a0395d0Smrg } 12767a0395d0Smrg /^X\(\/\).*/{ 12777a0395d0Smrg s//\1/ 12787a0395d0Smrg q 12797a0395d0Smrg } 12807a0395d0Smrg s/.*/./; q'` 12817a0395d0Smrg srcdir=$ac_confdir 12827a0395d0Smrg if test ! -r "$srcdir/$ac_unique_file"; then 12837a0395d0Smrg srcdir=.. 12847a0395d0Smrg fi 12857a0395d0Smrgelse 12867a0395d0Smrg ac_srcdir_defaulted=no 12877a0395d0Smrgfi 12887a0395d0Smrgif test ! -r "$srcdir/$ac_unique_file"; then 12897a0395d0Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 12902adc0320Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 12917a0395d0Smrgfi 12927a0395d0Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 12937a0395d0Smrgac_abs_confdir=`( 12942adc0320Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 12957a0395d0Smrg pwd)` 12967a0395d0Smrg# When building in place, set srcdir=. 12977a0395d0Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 12987a0395d0Smrg srcdir=. 12997a0395d0Smrgfi 13007a0395d0Smrg# Remove unnecessary trailing slashes from srcdir. 13017a0395d0Smrg# Double slashes in file names in object file debugging info 13027a0395d0Smrg# mess up M-x gdb in Emacs. 13037a0395d0Smrgcase $srcdir in 13047a0395d0Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 13057a0395d0Smrgesac 13067a0395d0Smrgfor ac_var in $ac_precious_vars; do 13077a0395d0Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 13087a0395d0Smrg eval ac_env_${ac_var}_value=\$${ac_var} 13097a0395d0Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 13107a0395d0Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 13117a0395d0Smrgdone 13127a0395d0Smrg 13137a0395d0Smrg# 13147a0395d0Smrg# Report the --help message. 13157a0395d0Smrg# 13167a0395d0Smrgif test "$ac_init_help" = "long"; then 13177a0395d0Smrg # Omit some internal or obsolete options to make the list less imposing. 13187a0395d0Smrg # This message is too long to be a string in the A/UX 3.1 sh. 13197a0395d0Smrg cat <<_ACEOF 13200d22642bSmrg\`configure' configures xauth 1.1.1 to adapt to many kinds of systems. 13217a0395d0Smrg 13227a0395d0SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13237a0395d0Smrg 13247a0395d0SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13257a0395d0SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13267a0395d0Smrg 13277a0395d0SmrgDefaults for the options are specified in brackets. 13287a0395d0Smrg 13297a0395d0SmrgConfiguration: 13307a0395d0Smrg -h, --help display this help and exit 13317a0395d0Smrg --help=short display options specific to this package 13327a0395d0Smrg --help=recursive display the short help of all the included packages 13337a0395d0Smrg -V, --version display version information and exit 13342adc0320Smrg -q, --quiet, --silent do not print \`checking ...' messages 13357a0395d0Smrg --cache-file=FILE cache test results in FILE [disabled] 13367a0395d0Smrg -C, --config-cache alias for \`--cache-file=config.cache' 13377a0395d0Smrg -n, --no-create do not create output files 13387a0395d0Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13397a0395d0Smrg 13407a0395d0SmrgInstallation directories: 13417a0395d0Smrg --prefix=PREFIX install architecture-independent files in PREFIX 13427366012aSmrg [$ac_default_prefix] 13437a0395d0Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13447366012aSmrg [PREFIX] 13457a0395d0Smrg 13467a0395d0SmrgBy default, \`make install' will install all the files in 13477a0395d0Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13487a0395d0Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13497a0395d0Smrgfor instance \`--prefix=\$HOME'. 13507a0395d0Smrg 13517a0395d0SmrgFor better control, use the options below. 13527a0395d0Smrg 13537a0395d0SmrgFine tuning of the installation directories: 13547366012aSmrg --bindir=DIR user executables [EPREFIX/bin] 13557366012aSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13567366012aSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 13577366012aSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13587366012aSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13597366012aSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13607366012aSmrg --libdir=DIR object code libraries [EPREFIX/lib] 13617366012aSmrg --includedir=DIR C header files [PREFIX/include] 13627366012aSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 13637366012aSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13647366012aSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 13657366012aSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 13667366012aSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 13677366012aSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 13687366012aSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/xauth] 13697366012aSmrg --htmldir=DIR html documentation [DOCDIR] 13707366012aSmrg --dvidir=DIR dvi documentation [DOCDIR] 13717366012aSmrg --pdfdir=DIR pdf documentation [DOCDIR] 13727366012aSmrg --psdir=DIR ps documentation [DOCDIR] 13737a0395d0Smrg_ACEOF 13747a0395d0Smrg 13757a0395d0Smrg cat <<\_ACEOF 13767a0395d0Smrg 13777a0395d0SmrgProgram names: 13787a0395d0Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 13797a0395d0Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 13807a0395d0Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13817a0395d0Smrg 13827a0395d0SmrgSystem types: 13837a0395d0Smrg --build=BUILD configure for building on BUILD [guessed] 13847a0395d0Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13857a0395d0Smrg_ACEOF 13867a0395d0Smrgfi 13877a0395d0Smrg 13887a0395d0Smrgif test -n "$ac_init_help"; then 13897a0395d0Smrg case $ac_init_help in 13900d22642bSmrg short | recursive ) echo "Configuration of xauth 1.1.1:";; 13917a0395d0Smrg esac 13927a0395d0Smrg cat <<\_ACEOF 13937a0395d0Smrg 13947a0395d0SmrgOptional Features: 13957366012aSmrg --disable-option-checking ignore unrecognized --enable/--with options 13967a0395d0Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13977a0395d0Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 13989a011757Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 13999a011757Smrg --disable-silent-rules verbose build output (undo: "make V=0") 14008abc0ccfSmrg --enable-dependency-tracking 14018abc0ccfSmrg do not reject slow dependency extractors 14028abc0ccfSmrg --disable-dependency-tracking 14038abc0ccfSmrg speeds up one-time build 140496402570Smrg --disable-selective-werror 140596402570Smrg Turn off selective compiler errors. (default: 140696402570Smrg enabled) 14077366012aSmrg --enable-strict-compilation 14087366012aSmrg Enable all warnings from compiler and make them 14097366012aSmrg errors (default: disabled) 14107a0395d0Smrg --enable-unix-transport Enable UNIX domain socket transport 14117a0395d0Smrg --enable-tcp-transport Enable TCP socket transport 14127366012aSmrg --enable-ipv6 Enable IPv6 support 14137a0395d0Smrg --enable-local-transport 14147a0395d0Smrg Enable os-specific local transport 14157a0395d0Smrg 14167a0395d0SmrgOptional Packages: 14177a0395d0Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 14187a0395d0Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 14197366012aSmrg --with-lint Use a lint-style source code checker (default: 14207366012aSmrg disabled) 14217a0395d0Smrg 14227a0395d0SmrgSome influential environment variables: 14237a0395d0Smrg CC C compiler command 14247a0395d0Smrg CFLAGS C compiler flags 14257a0395d0Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14267a0395d0Smrg nonstandard directory <lib dir> 14277a0395d0Smrg LIBS libraries to pass to the linker, e.g. -l<library> 14282adc0320Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14297a0395d0Smrg you have headers in a nonstandard directory <include dir> 14307a0395d0Smrg CPP C preprocessor 14317a0395d0Smrg PKG_CONFIG path to pkg-config utility 14328abc0ccfSmrg PKG_CONFIG_PATH 14338abc0ccfSmrg directories to add to pkg-config's search path 14348abc0ccfSmrg PKG_CONFIG_LIBDIR 14358abc0ccfSmrg path overriding pkg-config's built-in search path 14367a0395d0Smrg XAUTH_CFLAGS 14377a0395d0Smrg C compiler flags for XAUTH, overriding pkg-config 14387a0395d0Smrg XAUTH_LIBS linker flags for XAUTH, overriding pkg-config 14392adc0320Smrg LINT Path to a lint-style command 14402adc0320Smrg LINT_FLAGS Flags for the lint-style command 14417a0395d0Smrg 14427a0395d0SmrgUse these variables to override the choices made by `configure' or to help 14437a0395d0Smrgit to find libraries and programs with nonstandard names/locations. 14447a0395d0Smrg 14456c3c2bceSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>. 14467a0395d0Smrg_ACEOF 14477a0395d0Smrgac_status=$? 14487a0395d0Smrgfi 14497a0395d0Smrg 14507a0395d0Smrgif test "$ac_init_help" = "recursive"; then 14517a0395d0Smrg # If there are subdirs, report their specific --help. 14527a0395d0Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14537366012aSmrg test -d "$ac_dir" || 14547366012aSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14557366012aSmrg continue 14567a0395d0Smrg ac_builddir=. 14577a0395d0Smrg 14587a0395d0Smrgcase "$ac_dir" in 14597a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14607a0395d0Smrg*) 14617366012aSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14627a0395d0Smrg # A ".." for each directory in $ac_dir_suffix. 14637366012aSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14647a0395d0Smrg case $ac_top_builddir_sub in 14657a0395d0Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14667a0395d0Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14677a0395d0Smrg esac ;; 14687a0395d0Smrgesac 14697a0395d0Smrgac_abs_top_builddir=$ac_pwd 14707a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14717a0395d0Smrg# for backward compatibility: 14727a0395d0Smrgac_top_builddir=$ac_top_build_prefix 14737a0395d0Smrg 14747a0395d0Smrgcase $srcdir in 14757a0395d0Smrg .) # We are building in place. 14767a0395d0Smrg ac_srcdir=. 14777a0395d0Smrg ac_top_srcdir=$ac_top_builddir_sub 14787a0395d0Smrg ac_abs_top_srcdir=$ac_pwd ;; 14797a0395d0Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 14807a0395d0Smrg ac_srcdir=$srcdir$ac_dir_suffix; 14817a0395d0Smrg ac_top_srcdir=$srcdir 14827a0395d0Smrg ac_abs_top_srcdir=$srcdir ;; 14837a0395d0Smrg *) # Relative name. 14847a0395d0Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14857a0395d0Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14867a0395d0Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14877a0395d0Smrgesac 14887a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14897a0395d0Smrg 14907a0395d0Smrg cd "$ac_dir" || { ac_status=$?; continue; } 14917a0395d0Smrg # Check for guested configure. 14927a0395d0Smrg if test -f "$ac_srcdir/configure.gnu"; then 14937a0395d0Smrg echo && 14947a0395d0Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 14957a0395d0Smrg elif test -f "$ac_srcdir/configure"; then 14967a0395d0Smrg echo && 14977a0395d0Smrg $SHELL "$ac_srcdir/configure" --help=recursive 14987a0395d0Smrg else 14997366012aSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 15007a0395d0Smrg fi || ac_status=$? 15017a0395d0Smrg cd "$ac_pwd" || { ac_status=$?; break; } 15027a0395d0Smrg done 15037a0395d0Smrgfi 15047a0395d0Smrg 15057a0395d0Smrgtest -n "$ac_init_help" && exit $ac_status 15067a0395d0Smrgif $ac_init_version; then 15077a0395d0Smrg cat <<\_ACEOF 15080d22642bSmrgxauth configure 1.1.1 15098abc0ccfSmrggenerated by GNU Autoconf 2.69 15107a0395d0Smrg 15118abc0ccfSmrgCopyright (C) 2012 Free Software Foundation, Inc. 15127a0395d0SmrgThis configure script is free software; the Free Software Foundation 15137a0395d0Smrggives unlimited permission to copy, distribute and modify it. 15147a0395d0Smrg_ACEOF 15157a0395d0Smrg exit 15167a0395d0Smrgfi 15177a0395d0Smrg 15182adc0320Smrg## ------------------------ ## 15192adc0320Smrg## Autoconf initialization. ## 15202adc0320Smrg## ------------------------ ## 15217a0395d0Smrg 15222adc0320Smrg# ac_fn_c_try_compile LINENO 15232adc0320Smrg# -------------------------- 15242adc0320Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 15252adc0320Smrgac_fn_c_try_compile () 15267a0395d0Smrg{ 15272adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15282adc0320Smrg rm -f conftest.$ac_objext 15292adc0320Smrg if { { ac_try="$ac_compile" 15302adc0320Smrgcase "(($ac_try" in 15312adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15322adc0320Smrg *) ac_try_echo=$ac_try;; 15332adc0320Smrgesac 15342adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15352adc0320Smrg$as_echo "$ac_try_echo"; } >&5 15362adc0320Smrg (eval "$ac_compile") 2>conftest.err 15372adc0320Smrg ac_status=$? 15382adc0320Smrg if test -s conftest.err; then 15392adc0320Smrg grep -v '^ *+' conftest.err >conftest.er1 15402adc0320Smrg cat conftest.er1 >&5 15412adc0320Smrg mv -f conftest.er1 conftest.err 15422adc0320Smrg fi 15432adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15442adc0320Smrg test $ac_status = 0; } && { 15452adc0320Smrg test -z "$ac_c_werror_flag" || 15462adc0320Smrg test ! -s conftest.err 15472adc0320Smrg } && test -s conftest.$ac_objext; then : 15482adc0320Smrg ac_retval=0 15492adc0320Smrgelse 15502adc0320Smrg $as_echo "$as_me: failed program was:" >&5 15512adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5 15527a0395d0Smrg 15532adc0320Smrg ac_retval=1 15542adc0320Smrgfi 15552adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15562adc0320Smrg as_fn_set_status $ac_retval 15577a0395d0Smrg 15582adc0320Smrg} # ac_fn_c_try_compile 15592adc0320Smrg 15602adc0320Smrg# ac_fn_c_try_cpp LINENO 15612adc0320Smrg# ---------------------- 15622adc0320Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 15632adc0320Smrgac_fn_c_try_cpp () 15642adc0320Smrg{ 15652adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15662adc0320Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 15672adc0320Smrgcase "(($ac_try" in 15682adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15692adc0320Smrg *) ac_try_echo=$ac_try;; 15702adc0320Smrgesac 15712adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15722adc0320Smrg$as_echo "$ac_try_echo"; } >&5 15732adc0320Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 15742adc0320Smrg ac_status=$? 15752adc0320Smrg if test -s conftest.err; then 15762adc0320Smrg grep -v '^ *+' conftest.err >conftest.er1 15772adc0320Smrg cat conftest.er1 >&5 15782adc0320Smrg mv -f conftest.er1 conftest.err 15792adc0320Smrg fi 15802adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15812adc0320Smrg test $ac_status = 0; } > conftest.i && { 15822adc0320Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15832adc0320Smrg test ! -s conftest.err 15842adc0320Smrg }; then : 15852adc0320Smrg ac_retval=0 15862adc0320Smrgelse 15872adc0320Smrg $as_echo "$as_me: failed program was:" >&5 15882adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5 15892adc0320Smrg 15902adc0320Smrg ac_retval=1 15912adc0320Smrgfi 15922adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15932adc0320Smrg as_fn_set_status $ac_retval 15942adc0320Smrg 15952adc0320Smrg} # ac_fn_c_try_cpp 15962adc0320Smrg 15979a011757Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 15989a011757Smrg# ------------------------------------------------------- 15999a011757Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using 16009a011757Smrg# the include files in INCLUDES and setting the cache variable VAR 16019a011757Smrg# accordingly. 16029a011757Smrgac_fn_c_check_header_mongrel () 16039a011757Smrg{ 16049a011757Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16059a011757Smrg if eval \${$3+:} false; then : 16069a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16079a011757Smrg$as_echo_n "checking for $2... " >&6; } 16089a011757Smrgif eval \${$3+:} false; then : 16099a011757Smrg $as_echo_n "(cached) " >&6 16109a011757Smrgfi 16119a011757Smrgeval ac_res=\$$3 16129a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16139a011757Smrg$as_echo "$ac_res" >&6; } 16149a011757Smrgelse 16159a011757Smrg # Is the header compilable? 16169a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 16179a011757Smrg$as_echo_n "checking $2 usability... " >&6; } 16189a011757Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 16199a011757Smrg/* end confdefs.h. */ 16209a011757Smrg$4 16219a011757Smrg#include <$2> 16229a011757Smrg_ACEOF 16239a011757Smrgif ac_fn_c_try_compile "$LINENO"; then : 16249a011757Smrg ac_header_compiler=yes 16259a011757Smrgelse 16269a011757Smrg ac_header_compiler=no 16279a011757Smrgfi 16289a011757Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16299a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 16309a011757Smrg$as_echo "$ac_header_compiler" >&6; } 16319a011757Smrg 16329a011757Smrg# Is the header present? 16339a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 16349a011757Smrg$as_echo_n "checking $2 presence... " >&6; } 16359a011757Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 16369a011757Smrg/* end confdefs.h. */ 16379a011757Smrg#include <$2> 16389a011757Smrg_ACEOF 16399a011757Smrgif ac_fn_c_try_cpp "$LINENO"; then : 16409a011757Smrg ac_header_preproc=yes 16419a011757Smrgelse 16429a011757Smrg ac_header_preproc=no 16439a011757Smrgfi 16449a011757Smrgrm -f conftest.err conftest.i conftest.$ac_ext 16459a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 16469a011757Smrg$as_echo "$ac_header_preproc" >&6; } 16479a011757Smrg 16489a011757Smrg# So? What about this header? 16499a011757Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 16509a011757Smrg yes:no: ) 16519a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 16529a011757Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 16539a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 16549a011757Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 16559a011757Smrg ;; 16569a011757Smrg no:yes:* ) 16579a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 16589a011757Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 16599a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 16609a011757Smrg$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 16619a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 16629a011757Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 16639a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 16649a011757Smrg$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 16659a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 16669a011757Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 16676c3c2bceSmrg( $as_echo "## ------------------------------------------------------------------- ## 16686c3c2bceSmrg## Report this to https://gitlab.freedesktop.org/xorg/app/xauth/issues ## 16696c3c2bceSmrg## ------------------------------------------------------------------- ##" 16709a011757Smrg ) | sed "s/^/$as_me: WARNING: /" >&2 16719a011757Smrg ;; 16729a011757Smrgesac 16739a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16749a011757Smrg$as_echo_n "checking for $2... " >&6; } 16759a011757Smrgif eval \${$3+:} false; then : 16769a011757Smrg $as_echo_n "(cached) " >&6 16779a011757Smrgelse 16789a011757Smrg eval "$3=\$ac_header_compiler" 16799a011757Smrgfi 16809a011757Smrgeval ac_res=\$$3 16819a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16829a011757Smrg$as_echo "$ac_res" >&6; } 16839a011757Smrgfi 16849a011757Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16859a011757Smrg 16869a011757Smrg} # ac_fn_c_check_header_mongrel 16879a011757Smrg 16882adc0320Smrg# ac_fn_c_try_run LINENO 16892adc0320Smrg# ---------------------- 16902adc0320Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 16912adc0320Smrg# that executables *can* be run. 16922adc0320Smrgac_fn_c_try_run () 16932adc0320Smrg{ 16942adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16952adc0320Smrg if { { ac_try="$ac_link" 16962adc0320Smrgcase "(($ac_try" in 16972adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16982adc0320Smrg *) ac_try_echo=$ac_try;; 16992adc0320Smrgesac 17002adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17012adc0320Smrg$as_echo "$ac_try_echo"; } >&5 17022adc0320Smrg (eval "$ac_link") 2>&5 17032adc0320Smrg ac_status=$? 17042adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17052adc0320Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 17062adc0320Smrg { { case "(($ac_try" in 17072adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17082adc0320Smrg *) ac_try_echo=$ac_try;; 17092adc0320Smrgesac 17102adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17112adc0320Smrg$as_echo "$ac_try_echo"; } >&5 17122adc0320Smrg (eval "$ac_try") 2>&5 17132adc0320Smrg ac_status=$? 17142adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17152adc0320Smrg test $ac_status = 0; }; }; then : 17162adc0320Smrg ac_retval=0 17172adc0320Smrgelse 17182adc0320Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 17192adc0320Smrg $as_echo "$as_me: failed program was:" >&5 17202adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5 17212adc0320Smrg 17222adc0320Smrg ac_retval=$ac_status 17232adc0320Smrgfi 17242adc0320Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17252adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17262adc0320Smrg as_fn_set_status $ac_retval 17272adc0320Smrg 17282adc0320Smrg} # ac_fn_c_try_run 17292adc0320Smrg 17302adc0320Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 17312adc0320Smrg# ------------------------------------------------------- 17322adc0320Smrg# Tests whether HEADER exists and can be compiled using the include files in 17332adc0320Smrg# INCLUDES, setting the cache variable VAR accordingly. 17342adc0320Smrgac_fn_c_check_header_compile () 17352adc0320Smrg{ 17362adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17372adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17382adc0320Smrg$as_echo_n "checking for $2... " >&6; } 17392adc0320Smrgif eval \${$3+:} false; then : 17402adc0320Smrg $as_echo_n "(cached) " >&6 17412adc0320Smrgelse 17422adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17432adc0320Smrg/* end confdefs.h. */ 17442adc0320Smrg$4 17452adc0320Smrg#include <$2> 17462adc0320Smrg_ACEOF 17472adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 17482adc0320Smrg eval "$3=yes" 17492adc0320Smrgelse 17502adc0320Smrg eval "$3=no" 17512adc0320Smrgfi 17522adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17532adc0320Smrgfi 17542adc0320Smrgeval ac_res=\$$3 17552adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17562adc0320Smrg$as_echo "$ac_res" >&6; } 17572adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17582adc0320Smrg 17592adc0320Smrg} # ac_fn_c_check_header_compile 17602adc0320Smrg 17619a011757Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 17629a011757Smrg# --------------------------------------------- 17639a011757Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 17649a011757Smrg# accordingly. 17659a011757Smrgac_fn_c_check_decl () 17669a011757Smrg{ 17679a011757Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17689a011757Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 17699a011757Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 17709a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 17719a011757Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 17729a011757Smrgif eval \${$3+:} false; then : 17739a011757Smrg $as_echo_n "(cached) " >&6 17749a011757Smrgelse 17759a011757Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17769a011757Smrg/* end confdefs.h. */ 17779a011757Smrg$4 17789a011757Smrgint 17799a011757Smrgmain () 17809a011757Smrg{ 17819a011757Smrg#ifndef $as_decl_name 17829a011757Smrg#ifdef __cplusplus 17839a011757Smrg (void) $as_decl_use; 17849a011757Smrg#else 17859a011757Smrg (void) $as_decl_name; 17869a011757Smrg#endif 17879a011757Smrg#endif 17889a011757Smrg 17899a011757Smrg ; 17909a011757Smrg return 0; 17919a011757Smrg} 17929a011757Smrg_ACEOF 17939a011757Smrgif ac_fn_c_try_compile "$LINENO"; then : 17949a011757Smrg eval "$3=yes" 17959a011757Smrgelse 17969a011757Smrg eval "$3=no" 17979a011757Smrgfi 17989a011757Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17999a011757Smrgfi 18009a011757Smrgeval ac_res=\$$3 18019a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18029a011757Smrg$as_echo "$ac_res" >&6; } 18039a011757Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18049a011757Smrg 18059a011757Smrg} # ac_fn_c_check_decl 18069a011757Smrg 180796402570Smrg# ac_fn_c_try_link LINENO 180896402570Smrg# ----------------------- 180996402570Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 181096402570Smrgac_fn_c_try_link () 181196402570Smrg{ 181296402570Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 181396402570Smrg rm -f conftest.$ac_objext conftest$ac_exeext 181496402570Smrg if { { ac_try="$ac_link" 181596402570Smrgcase "(($ac_try" in 181696402570Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 181796402570Smrg *) ac_try_echo=$ac_try;; 181896402570Smrgesac 181996402570Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 182096402570Smrg$as_echo "$ac_try_echo"; } >&5 182196402570Smrg (eval "$ac_link") 2>conftest.err 182296402570Smrg ac_status=$? 182396402570Smrg if test -s conftest.err; then 182496402570Smrg grep -v '^ *+' conftest.err >conftest.er1 182596402570Smrg cat conftest.er1 >&5 182696402570Smrg mv -f conftest.er1 conftest.err 182796402570Smrg fi 182896402570Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 182996402570Smrg test $ac_status = 0; } && { 183096402570Smrg test -z "$ac_c_werror_flag" || 183196402570Smrg test ! -s conftest.err 183296402570Smrg } && test -s conftest$ac_exeext && { 183396402570Smrg test "$cross_compiling" = yes || 18348abc0ccfSmrg test -x conftest$ac_exeext 183596402570Smrg }; then : 183696402570Smrg ac_retval=0 183796402570Smrgelse 183896402570Smrg $as_echo "$as_me: failed program was:" >&5 183996402570Smrgsed 's/^/| /' conftest.$ac_ext >&5 184096402570Smrg 184196402570Smrg ac_retval=1 184296402570Smrgfi 184396402570Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 184496402570Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 184596402570Smrg # interfere with the next link command; also delete a directory that is 184696402570Smrg # left behind by Apple's compiler. We do this before executing the actions. 184796402570Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 184896402570Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 184996402570Smrg as_fn_set_status $ac_retval 185096402570Smrg 185196402570Smrg} # ac_fn_c_try_link 185296402570Smrg 18539a011757Smrg# ac_fn_c_check_func LINENO FUNC VAR 18549a011757Smrg# ---------------------------------- 18559a011757Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 18569a011757Smrgac_fn_c_check_func () 18572adc0320Smrg{ 18582adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18592adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 18602adc0320Smrg$as_echo_n "checking for $2... " >&6; } 18612adc0320Smrgif eval \${$3+:} false; then : 18622adc0320Smrg $as_echo_n "(cached) " >&6 18632adc0320Smrgelse 18649a011757Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18652adc0320Smrg/* end confdefs.h. */ 18669a011757Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 18679a011757Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18689a011757Smrg#define $2 innocuous_$2 18692adc0320Smrg 18709a011757Smrg/* System header to define __stub macros and hopefully few prototypes, 18719a011757Smrg which can conflict with char $2 (); below. 18729a011757Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18739a011757Smrg <limits.h> exists even on freestanding compilers. */ 18742adc0320Smrg 18752adc0320Smrg#ifdef __STDC__ 18762adc0320Smrg# include <limits.h> 18772adc0320Smrg#else 18782adc0320Smrg# include <assert.h> 18792adc0320Smrg#endif 18802adc0320Smrg 18812adc0320Smrg#undef $2 18822adc0320Smrg 18832adc0320Smrg/* Override any GCC internal prototype to avoid an error. 18842adc0320Smrg Use char because int might match the return type of a GCC 18852adc0320Smrg builtin and then its argument prototype would still apply. */ 18862adc0320Smrg#ifdef __cplusplus 18872adc0320Smrgextern "C" 18882adc0320Smrg#endif 18892adc0320Smrgchar $2 (); 18902adc0320Smrg/* The GNU C library defines this for functions which it implements 18912adc0320Smrg to always fail with ENOSYS. Some functions are actually named 18922adc0320Smrg something starting with __ and the normal name is an alias. */ 18932adc0320Smrg#if defined __stub_$2 || defined __stub___$2 18942adc0320Smrgchoke me 18952adc0320Smrg#endif 18962adc0320Smrg 18972adc0320Smrgint 18982adc0320Smrgmain () 18992adc0320Smrg{ 19002adc0320Smrgreturn $2 (); 19012adc0320Smrg ; 19022adc0320Smrg return 0; 19032adc0320Smrg} 19042adc0320Smrg_ACEOF 19052adc0320Smrgif ac_fn_c_try_link "$LINENO"; then : 19062adc0320Smrg eval "$3=yes" 19072adc0320Smrgelse 19082adc0320Smrg eval "$3=no" 19092adc0320Smrgfi 19102adc0320Smrgrm -f core conftest.err conftest.$ac_objext \ 19112adc0320Smrg conftest$ac_exeext conftest.$ac_ext 19122adc0320Smrgfi 19132adc0320Smrgeval ac_res=\$$3 19142adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19152adc0320Smrg$as_echo "$ac_res" >&6; } 19162adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 19172adc0320Smrg 19182adc0320Smrg} # ac_fn_c_check_func 19192adc0320Smrg 19202adc0320Smrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 19212adc0320Smrg# ---------------------------------------------------- 19222adc0320Smrg# Tries to find if the field MEMBER exists in type AGGR, after including 19232adc0320Smrg# INCLUDES, setting cache variable VAR accordingly. 19242adc0320Smrgac_fn_c_check_member () 19252adc0320Smrg{ 19262adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19272adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 19282adc0320Smrg$as_echo_n "checking for $2.$3... " >&6; } 19292adc0320Smrgif eval \${$4+:} false; then : 19302adc0320Smrg $as_echo_n "(cached) " >&6 19312adc0320Smrgelse 19322adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19332adc0320Smrg/* end confdefs.h. */ 19342adc0320Smrg$5 19352adc0320Smrgint 19362adc0320Smrgmain () 19372adc0320Smrg{ 19382adc0320Smrgstatic $2 ac_aggr; 19392adc0320Smrgif (ac_aggr.$3) 19402adc0320Smrgreturn 0; 19412adc0320Smrg ; 19422adc0320Smrg return 0; 19432adc0320Smrg} 19442adc0320Smrg_ACEOF 19452adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 19462adc0320Smrg eval "$4=yes" 19472adc0320Smrgelse 19482adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19492adc0320Smrg/* end confdefs.h. */ 19502adc0320Smrg$5 19512adc0320Smrgint 19522adc0320Smrgmain () 19532adc0320Smrg{ 19542adc0320Smrgstatic $2 ac_aggr; 19552adc0320Smrgif (sizeof ac_aggr.$3) 19562adc0320Smrgreturn 0; 19572adc0320Smrg ; 19582adc0320Smrg return 0; 19592adc0320Smrg} 19602adc0320Smrg_ACEOF 19612adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 19622adc0320Smrg eval "$4=yes" 19632adc0320Smrgelse 19642adc0320Smrg eval "$4=no" 19652adc0320Smrgfi 19662adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19672adc0320Smrgfi 19682adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19692adc0320Smrgfi 19702adc0320Smrgeval ac_res=\$$4 19712adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19722adc0320Smrg$as_echo "$ac_res" >&6; } 19732adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 19742adc0320Smrg 19752adc0320Smrg} # ac_fn_c_check_member 19762adc0320Smrg 19772adc0320Smrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 19782adc0320Smrg# ------------------------------------------- 19792adc0320Smrg# Tests whether TYPE exists after having included INCLUDES, setting cache 19802adc0320Smrg# variable VAR accordingly. 19812adc0320Smrgac_fn_c_check_type () 19822adc0320Smrg{ 19832adc0320Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19842adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 19852adc0320Smrg$as_echo_n "checking for $2... " >&6; } 19862adc0320Smrgif eval \${$3+:} false; then : 19872adc0320Smrg $as_echo_n "(cached) " >&6 19882adc0320Smrgelse 19892adc0320Smrg eval "$3=no" 19902adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19912adc0320Smrg/* end confdefs.h. */ 19922adc0320Smrg$4 19932adc0320Smrgint 19942adc0320Smrgmain () 19952adc0320Smrg{ 19962adc0320Smrgif (sizeof ($2)) 19972adc0320Smrg return 0; 19982adc0320Smrg ; 19992adc0320Smrg return 0; 20002adc0320Smrg} 20012adc0320Smrg_ACEOF 20022adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 20032adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20042adc0320Smrg/* end confdefs.h. */ 20052adc0320Smrg$4 20062adc0320Smrgint 20072adc0320Smrgmain () 20082adc0320Smrg{ 20092adc0320Smrgif (sizeof (($2))) 20102adc0320Smrg return 0; 20112adc0320Smrg ; 20122adc0320Smrg return 0; 20132adc0320Smrg} 20142adc0320Smrg_ACEOF 20152adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 20162adc0320Smrg 20172adc0320Smrgelse 20182adc0320Smrg eval "$3=yes" 20192adc0320Smrgfi 20202adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20212adc0320Smrgfi 20222adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20232adc0320Smrgfi 20242adc0320Smrgeval ac_res=\$$3 20252adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20262adc0320Smrg$as_echo "$ac_res" >&6; } 20272adc0320Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 20282adc0320Smrg 20292adc0320Smrg} # ac_fn_c_check_type 20302adc0320Smrgcat >config.log <<_ACEOF 20312adc0320SmrgThis file contains any messages produced by compilers while 20322adc0320Smrgrunning configure, to aid debugging if configure makes a mistake. 20332adc0320Smrg 20340d22642bSmrgIt was created by xauth $as_me 1.1.1, which was 20358abc0ccfSmrggenerated by GNU Autoconf 2.69. Invocation command line was 20362adc0320Smrg 20372adc0320Smrg $ $0 $@ 20382adc0320Smrg 20392adc0320Smrg_ACEOF 20402adc0320Smrgexec 5>>config.log 20412adc0320Smrg{ 20422adc0320Smrgcat <<_ASUNAME 20432adc0320Smrg## --------- ## 20442adc0320Smrg## Platform. ## 20452adc0320Smrg## --------- ## 20462adc0320Smrg 20472adc0320Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 20482adc0320Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 20492adc0320Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 20502adc0320Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 20512adc0320Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 20522adc0320Smrg 20532adc0320Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 20542adc0320Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 20552adc0320Smrg 20562adc0320Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 20572adc0320Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 20582adc0320Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 20592adc0320Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 20602adc0320Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 20612adc0320Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 20622adc0320Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 20632adc0320Smrg 20642adc0320Smrg_ASUNAME 20657a0395d0Smrg 20667a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20677a0395d0Smrgfor as_dir in $PATH 20687a0395d0Smrgdo 20697a0395d0Smrg IFS=$as_save_IFS 20707a0395d0Smrg test -z "$as_dir" && as_dir=. 20712adc0320Smrg $as_echo "PATH: $as_dir" 20722adc0320Smrg done 20737a0395d0SmrgIFS=$as_save_IFS 20747a0395d0Smrg 20757a0395d0Smrg} >&5 20767a0395d0Smrg 20777a0395d0Smrgcat >&5 <<_ACEOF 20787a0395d0Smrg 20797a0395d0Smrg 20807a0395d0Smrg## ----------- ## 20817a0395d0Smrg## Core tests. ## 20827a0395d0Smrg## ----------- ## 20837a0395d0Smrg 20847a0395d0Smrg_ACEOF 20857a0395d0Smrg 20867a0395d0Smrg 20877a0395d0Smrg# Keep a trace of the command line. 20887a0395d0Smrg# Strip out --no-create and --no-recursion so they do not pile up. 20897a0395d0Smrg# Strip out --silent because we don't want to record it for future runs. 20907a0395d0Smrg# Also quote any args containing shell meta-characters. 20917a0395d0Smrg# Make two passes to allow for proper duplicate-argument suppression. 20927a0395d0Smrgac_configure_args= 20937a0395d0Smrgac_configure_args0= 20947a0395d0Smrgac_configure_args1= 20957a0395d0Smrgac_must_keep_next=false 20967a0395d0Smrgfor ac_pass in 1 2 20977a0395d0Smrgdo 20987a0395d0Smrg for ac_arg 20997a0395d0Smrg do 21007a0395d0Smrg case $ac_arg in 21017a0395d0Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 21027a0395d0Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21037a0395d0Smrg | -silent | --silent | --silen | --sile | --sil) 21047a0395d0Smrg continue ;; 21057a0395d0Smrg *\'*) 21067366012aSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 21077a0395d0Smrg esac 21087a0395d0Smrg case $ac_pass in 21092adc0320Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 21107a0395d0Smrg 2) 21112adc0320Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 21127a0395d0Smrg if test $ac_must_keep_next = true; then 21137a0395d0Smrg ac_must_keep_next=false # Got value, back to normal. 21147a0395d0Smrg else 21157a0395d0Smrg case $ac_arg in 21167a0395d0Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 21177a0395d0Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 21187a0395d0Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 21197a0395d0Smrg | -with-* | --with-* | -without-* | --without-* | --x) 21207a0395d0Smrg case "$ac_configure_args0 " in 21217a0395d0Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 21227a0395d0Smrg esac 21237a0395d0Smrg ;; 21247a0395d0Smrg -* ) ac_must_keep_next=true ;; 21257a0395d0Smrg esac 21267a0395d0Smrg fi 21272adc0320Smrg as_fn_append ac_configure_args " '$ac_arg'" 21287a0395d0Smrg ;; 21297a0395d0Smrg esac 21307a0395d0Smrg done 21317a0395d0Smrgdone 21322adc0320Smrg{ ac_configure_args0=; unset ac_configure_args0;} 21332adc0320Smrg{ ac_configure_args1=; unset ac_configure_args1;} 21347a0395d0Smrg 21357a0395d0Smrg# When interrupted or exit'd, cleanup temporary files, and complete 21367a0395d0Smrg# config.log. We remove comments because anyway the quotes in there 21377a0395d0Smrg# would cause problems or look ugly. 21387a0395d0Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 21397a0395d0Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 21407a0395d0Smrgtrap 'exit_status=$? 21417a0395d0Smrg # Save into config.log some information that might help in debugging. 21427a0395d0Smrg { 21437a0395d0Smrg echo 21447a0395d0Smrg 21452adc0320Smrg $as_echo "## ---------------- ## 21467a0395d0Smrg## Cache variables. ## 21472adc0320Smrg## ---------------- ##" 21487a0395d0Smrg echo 21497a0395d0Smrg # The following way of writing the cache mishandles newlines in values, 21507a0395d0Smrg( 21517a0395d0Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 21527a0395d0Smrg eval ac_val=\$$ac_var 21537a0395d0Smrg case $ac_val in #( 21547a0395d0Smrg *${as_nl}*) 21557a0395d0Smrg case $ac_var in #( 21562adc0320Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21577366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21587a0395d0Smrg esac 21597a0395d0Smrg case $ac_var in #( 21607a0395d0Smrg _ | IFS | as_nl) ;; #( 21617366012aSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21622adc0320Smrg *) { eval $ac_var=; unset $ac_var;} ;; 21637a0395d0Smrg esac ;; 21647a0395d0Smrg esac 21657a0395d0Smrg done 21667a0395d0Smrg (set) 2>&1 | 21677a0395d0Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 21687a0395d0Smrg *${as_nl}ac_space=\ *) 21697a0395d0Smrg sed -n \ 21707a0395d0Smrg "s/'\''/'\''\\\\'\'''\''/g; 21717a0395d0Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 21727a0395d0Smrg ;; #( 21737a0395d0Smrg *) 21747a0395d0Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21757a0395d0Smrg ;; 21767a0395d0Smrg esac | 21777a0395d0Smrg sort 21787a0395d0Smrg) 21797a0395d0Smrg echo 21807a0395d0Smrg 21812adc0320Smrg $as_echo "## ----------------- ## 21827a0395d0Smrg## Output variables. ## 21832adc0320Smrg## ----------------- ##" 21847a0395d0Smrg echo 21857a0395d0Smrg for ac_var in $ac_subst_vars 21867a0395d0Smrg do 21877a0395d0Smrg eval ac_val=\$$ac_var 21887a0395d0Smrg case $ac_val in 21897366012aSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 21907a0395d0Smrg esac 21917366012aSmrg $as_echo "$ac_var='\''$ac_val'\''" 21927a0395d0Smrg done | sort 21937a0395d0Smrg echo 21947a0395d0Smrg 21957a0395d0Smrg if test -n "$ac_subst_files"; then 21962adc0320Smrg $as_echo "## ------------------- ## 21977a0395d0Smrg## File substitutions. ## 21982adc0320Smrg## ------------------- ##" 21997a0395d0Smrg echo 22007a0395d0Smrg for ac_var in $ac_subst_files 22017a0395d0Smrg do 22027a0395d0Smrg eval ac_val=\$$ac_var 22037a0395d0Smrg case $ac_val in 22047366012aSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 22057a0395d0Smrg esac 22067366012aSmrg $as_echo "$ac_var='\''$ac_val'\''" 22077a0395d0Smrg done | sort 22087a0395d0Smrg echo 22097a0395d0Smrg fi 22107a0395d0Smrg 22117a0395d0Smrg if test -s confdefs.h; then 22122adc0320Smrg $as_echo "## ----------- ## 22137a0395d0Smrg## confdefs.h. ## 22142adc0320Smrg## ----------- ##" 22157a0395d0Smrg echo 22167a0395d0Smrg cat confdefs.h 22177a0395d0Smrg echo 22187a0395d0Smrg fi 22197a0395d0Smrg test "$ac_signal" != 0 && 22207366012aSmrg $as_echo "$as_me: caught signal $ac_signal" 22217366012aSmrg $as_echo "$as_me: exit $exit_status" 22227a0395d0Smrg } >&5 22237a0395d0Smrg rm -f core *.core core.conftest.* && 22247a0395d0Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 22257a0395d0Smrg exit $exit_status 22267a0395d0Smrg' 0 22277a0395d0Smrgfor ac_signal in 1 2 13 15; do 22282adc0320Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 22297a0395d0Smrgdone 22307a0395d0Smrgac_signal=0 22317a0395d0Smrg 22327a0395d0Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 22337a0395d0Smrgrm -f -r conftest* confdefs.h 22347a0395d0Smrg 22352adc0320Smrg$as_echo "/* confdefs.h */" > confdefs.h 22362adc0320Smrg 22377a0395d0Smrg# Predefined preprocessor variables. 22387a0395d0Smrg 22397a0395d0Smrgcat >>confdefs.h <<_ACEOF 22407a0395d0Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 22417a0395d0Smrg_ACEOF 22427a0395d0Smrg 22437a0395d0Smrgcat >>confdefs.h <<_ACEOF 22447a0395d0Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 22457a0395d0Smrg_ACEOF 22467a0395d0Smrg 22477a0395d0Smrgcat >>confdefs.h <<_ACEOF 22487a0395d0Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 22497a0395d0Smrg_ACEOF 22507a0395d0Smrg 22517a0395d0Smrgcat >>confdefs.h <<_ACEOF 22527a0395d0Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 22537a0395d0Smrg_ACEOF 22547a0395d0Smrg 22557a0395d0Smrgcat >>confdefs.h <<_ACEOF 22567a0395d0Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 22577a0395d0Smrg_ACEOF 22587a0395d0Smrg 22592adc0320Smrgcat >>confdefs.h <<_ACEOF 22602adc0320Smrg#define PACKAGE_URL "$PACKAGE_URL" 22612adc0320Smrg_ACEOF 22622adc0320Smrg 22637a0395d0Smrg 22647a0395d0Smrg# Let the site file select an alternate cache file if it wants to. 22657366012aSmrg# Prefer an explicitly selected file to automatically selected ones. 22667366012aSmrgac_site_file1=NONE 22677366012aSmrgac_site_file2=NONE 22687a0395d0Smrgif test -n "$CONFIG_SITE"; then 22692adc0320Smrg # We do not want a PATH search for config.site. 22702adc0320Smrg case $CONFIG_SITE in #(( 22712adc0320Smrg -*) ac_site_file1=./$CONFIG_SITE;; 22722adc0320Smrg */*) ac_site_file1=$CONFIG_SITE;; 22732adc0320Smrg *) ac_site_file1=./$CONFIG_SITE;; 22742adc0320Smrg esac 22757a0395d0Smrgelif test "x$prefix" != xNONE; then 22767366012aSmrg ac_site_file1=$prefix/share/config.site 22777366012aSmrg ac_site_file2=$prefix/etc/config.site 22787a0395d0Smrgelse 22797366012aSmrg ac_site_file1=$ac_default_prefix/share/config.site 22807366012aSmrg ac_site_file2=$ac_default_prefix/etc/config.site 22817a0395d0Smrgfi 22827366012aSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 22837a0395d0Smrgdo 22847366012aSmrg test "x$ac_site_file" = xNONE && continue 22852adc0320Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 22862adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 22877366012aSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 22887a0395d0Smrg sed 's/^/| /' "$ac_site_file" >&5 22892adc0320Smrg . "$ac_site_file" \ 22902adc0320Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22912adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22922adc0320Smrgas_fn_error $? "failed to load site script $ac_site_file 22932adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 22947a0395d0Smrg fi 22957a0395d0Smrgdone 22967a0395d0Smrg 22977a0395d0Smrgif test -r "$cache_file"; then 22982adc0320Smrg # Some versions of bash will fail to source /dev/null (special files 22992adc0320Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 23002adc0320Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 23012adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 23027366012aSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 23037a0395d0Smrg case $cache_file in 23047a0395d0Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 23057a0395d0Smrg *) . "./$cache_file";; 23067a0395d0Smrg esac 23077a0395d0Smrg fi 23087a0395d0Smrgelse 23092adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 23107366012aSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 23117a0395d0Smrg >$cache_file 23127a0395d0Smrgfi 23137a0395d0Smrg 23147a0395d0Smrg# Check that the precious variables saved in the cache have kept the same 23157a0395d0Smrg# value. 23167a0395d0Smrgac_cache_corrupted=false 23177a0395d0Smrgfor ac_var in $ac_precious_vars; do 23187a0395d0Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 23197a0395d0Smrg eval ac_new_set=\$ac_env_${ac_var}_set 23207a0395d0Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 23217a0395d0Smrg eval ac_new_val=\$ac_env_${ac_var}_value 23227a0395d0Smrg case $ac_old_set,$ac_new_set in 23237a0395d0Smrg set,) 23242adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 23257366012aSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 23267a0395d0Smrg ac_cache_corrupted=: ;; 23277a0395d0Smrg ,set) 23282adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 23297366012aSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 23307a0395d0Smrg ac_cache_corrupted=: ;; 23317a0395d0Smrg ,);; 23327a0395d0Smrg *) 23337a0395d0Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 23347366012aSmrg # differences in whitespace do not lead to failure. 23357366012aSmrg ac_old_val_w=`echo x $ac_old_val` 23367366012aSmrg ac_new_val_w=`echo x $ac_new_val` 23377366012aSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 23382adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 23397366012aSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 23407366012aSmrg ac_cache_corrupted=: 23417366012aSmrg else 23422adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 23437366012aSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 23447366012aSmrg eval $ac_var=\$ac_old_val 23457366012aSmrg fi 23462adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 23477366012aSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 23482adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 23497366012aSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 23507a0395d0Smrg fi;; 23512adc0320Smrg esac 23522adc0320Smrg # Pass precious variables to config.status. 23532adc0320Smrg if test "$ac_new_set" = set; then 23542adc0320Smrg case $ac_new_val in 23552adc0320Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 23562adc0320Smrg *) ac_arg=$ac_var=$ac_new_val ;; 23572adc0320Smrg esac 23582adc0320Smrg case " $ac_configure_args " in 23592adc0320Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 23602adc0320Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 23612adc0320Smrg esac 23622adc0320Smrg fi 23632adc0320Smrgdone 23642adc0320Smrgif $ac_cache_corrupted; then 23652adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23662adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23672adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 23682adc0320Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 23692adc0320Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 23702adc0320Smrgfi 23712adc0320Smrg## -------------------- ## 23722adc0320Smrg## Main body of script. ## 23732adc0320Smrg## -------------------- ## 23747a0395d0Smrg 23757a0395d0Smrgac_ext=c 23767a0395d0Smrgac_cpp='$CPP $CPPFLAGS' 23777a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23787a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23797a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 23807a0395d0Smrg 23817a0395d0Smrg 23826c3c2bceSmrgam__api_version='1.16' 23837a0395d0Smrg 23847a0395d0Smrgac_aux_dir= 23857a0395d0Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 23867a0395d0Smrg if test -f "$ac_dir/install-sh"; then 23877a0395d0Smrg ac_aux_dir=$ac_dir 23887a0395d0Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 23897a0395d0Smrg break 23907a0395d0Smrg elif test -f "$ac_dir/install.sh"; then 23917a0395d0Smrg ac_aux_dir=$ac_dir 23927a0395d0Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 23937a0395d0Smrg break 23947a0395d0Smrg elif test -f "$ac_dir/shtool"; then 23957a0395d0Smrg ac_aux_dir=$ac_dir 23967a0395d0Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 23977a0395d0Smrg break 23987a0395d0Smrg fi 23997a0395d0Smrgdone 24007a0395d0Smrgif test -z "$ac_aux_dir"; then 24012adc0320Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 24027a0395d0Smrgfi 24037a0395d0Smrg 24047a0395d0Smrg# These three variables are undocumented and unsupported, 24057a0395d0Smrg# and are intended to be withdrawn in a future Autoconf release. 24067a0395d0Smrg# They can cause serious problems if a builder's source tree is in a directory 24077a0395d0Smrg# whose full name contains unusual characters. 24087a0395d0Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 24097a0395d0Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 24107a0395d0Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 24117a0395d0Smrg 24127a0395d0Smrg 24137a0395d0Smrg# Find a good install program. We prefer a C program (faster), 24147a0395d0Smrg# so one script is as good as another. But avoid the broken or 24157a0395d0Smrg# incompatible versions: 24167a0395d0Smrg# SysV /etc/install, /usr/sbin/install 24177a0395d0Smrg# SunOS /usr/etc/install 24187a0395d0Smrg# IRIX /sbin/install 24197a0395d0Smrg# AIX /bin/install 24207a0395d0Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 24217a0395d0Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 24227a0395d0Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 24237a0395d0Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 24247a0395d0Smrg# OS/2's system install, which has a completely different semantic 24257a0395d0Smrg# ./install, which can be erroneously created by make from ./install.sh. 24267366012aSmrg# Reject install programs that cannot install multiple files. 24272adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 24287366012aSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 24297a0395d0Smrgif test -z "$INSTALL"; then 24302adc0320Smrgif ${ac_cv_path_install+:} false; then : 24317366012aSmrg $as_echo_n "(cached) " >&6 24327a0395d0Smrgelse 24337a0395d0Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24347a0395d0Smrgfor as_dir in $PATH 24357a0395d0Smrgdo 24367a0395d0Smrg IFS=$as_save_IFS 24377a0395d0Smrg test -z "$as_dir" && as_dir=. 24382adc0320Smrg # Account for people who put trailing slashes in PATH elements. 24392adc0320Smrgcase $as_dir/ in #(( 24402adc0320Smrg ./ | .// | /[cC]/* | \ 24417a0395d0Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 24422adc0320Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 24437a0395d0Smrg /usr/ucb/* ) ;; 24447a0395d0Smrg *) 24457a0395d0Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 24467a0395d0Smrg # Don't use installbsd from OSF since it installs stuff as root 24477a0395d0Smrg # by default. 24487a0395d0Smrg for ac_prog in ginstall scoinst install; do 24497a0395d0Smrg for ac_exec_ext in '' $ac_executable_extensions; do 24508abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 24517a0395d0Smrg if test $ac_prog = install && 24527a0395d0Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 24537a0395d0Smrg # AIX install. It has an incompatible calling convention. 24547a0395d0Smrg : 24557a0395d0Smrg elif test $ac_prog = install && 24567a0395d0Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 24577a0395d0Smrg # program-specific install script used by HP pwplus--don't use. 24587a0395d0Smrg : 24597a0395d0Smrg else 24607366012aSmrg rm -rf conftest.one conftest.two conftest.dir 24617366012aSmrg echo one > conftest.one 24627366012aSmrg echo two > conftest.two 24637366012aSmrg mkdir conftest.dir 24647366012aSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 24657366012aSmrg test -s conftest.one && test -s conftest.two && 24667366012aSmrg test -s conftest.dir/conftest.one && 24677366012aSmrg test -s conftest.dir/conftest.two 24687366012aSmrg then 24697366012aSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 24707366012aSmrg break 3 24717366012aSmrg fi 24727a0395d0Smrg fi 24737a0395d0Smrg fi 24747a0395d0Smrg done 24757a0395d0Smrg done 24767a0395d0Smrg ;; 24777a0395d0Smrgesac 24787366012aSmrg 24792adc0320Smrg done 24807a0395d0SmrgIFS=$as_save_IFS 24817a0395d0Smrg 24827366012aSmrgrm -rf conftest.one conftest.two conftest.dir 24837a0395d0Smrg 24847a0395d0Smrgfi 24857a0395d0Smrg if test "${ac_cv_path_install+set}" = set; then 24867a0395d0Smrg INSTALL=$ac_cv_path_install 24877a0395d0Smrg else 24887a0395d0Smrg # As a last resort, use the slow shell script. Don't cache a 24897a0395d0Smrg # value for INSTALL within a source directory, because that will 24907a0395d0Smrg # break other packages using the cache if that directory is 24917a0395d0Smrg # removed, or if the value is a relative name. 24927a0395d0Smrg INSTALL=$ac_install_sh 24937a0395d0Smrg fi 24947a0395d0Smrgfi 24952adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 24967366012aSmrg$as_echo "$INSTALL" >&6; } 24977a0395d0Smrg 24987a0395d0Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 24997a0395d0Smrg# It thinks the first close brace ends the variable substitution. 25007a0395d0Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 25017a0395d0Smrg 25027a0395d0Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 25037a0395d0Smrg 25047a0395d0Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 25057a0395d0Smrg 25062adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 25077366012aSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 25087366012aSmrg# Reject unsafe characters in $srcdir or the absolute working directory 25097366012aSmrg# name. Accept space and tab only in the latter. 25107366012aSmrgam_lf=' 25117366012aSmrg' 25127366012aSmrgcase `pwd` in 25137366012aSmrg *[\\\"\#\$\&\'\`$am_lf]*) 25142adc0320Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 25157366012aSmrgesac 25167366012aSmrgcase $srcdir in 25177366012aSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 25188abc0ccfSmrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 25197366012aSmrgesac 25207366012aSmrg 25218abc0ccfSmrg# Do 'set' in a subshell so we don't clobber the current shell's 25227366012aSmrg# arguments. Must try -L first in case configure is actually a 25237366012aSmrg# symlink; some systems play weird games with the mod time of symlinks 25247366012aSmrg# (eg FreeBSD returns the mod time of the symlink's containing 25257366012aSmrg# directory). 25267366012aSmrgif ( 25278abc0ccfSmrg am_has_slept=no 25288abc0ccfSmrg for am_try in 1 2; do 25298abc0ccfSmrg echo "timestamp, slept: $am_has_slept" > conftest.file 25308abc0ccfSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 25318abc0ccfSmrg if test "$*" = "X"; then 25328abc0ccfSmrg # -L didn't work. 25338abc0ccfSmrg set X `ls -t "$srcdir/configure" conftest.file` 25348abc0ccfSmrg fi 25358abc0ccfSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 25368abc0ccfSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 25378abc0ccfSmrg 25388abc0ccfSmrg # If neither matched, then we have a broken ls. This can happen 25398abc0ccfSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 25408abc0ccfSmrg # broken ls alias from the environment. This has actually 25418abc0ccfSmrg # happened. Such a system could not be considered "sane". 25428abc0ccfSmrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 25438abc0ccfSmrg alias in your environment" "$LINENO" 5 25448abc0ccfSmrg fi 25458abc0ccfSmrg if test "$2" = conftest.file || test $am_try -eq 2; then 25468abc0ccfSmrg break 25478abc0ccfSmrg fi 25488abc0ccfSmrg # Just in case. 25498abc0ccfSmrg sleep 1 25508abc0ccfSmrg am_has_slept=yes 25518abc0ccfSmrg done 25527a0395d0Smrg test "$2" = conftest.file 25537a0395d0Smrg ) 25547a0395d0Smrgthen 25557a0395d0Smrg # Ok. 25567a0395d0Smrg : 25577a0395d0Smrgelse 25582adc0320Smrg as_fn_error $? "newly created file is older than distributed files! 25592adc0320SmrgCheck your system clock" "$LINENO" 5 25607a0395d0Smrgfi 25612adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25627366012aSmrg$as_echo "yes" >&6; } 25638abc0ccfSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and 25648abc0ccfSmrg# generated files are strictly newer. 25658abc0ccfSmrgam_sleep_pid= 25668abc0ccfSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 25678abc0ccfSmrg ( sleep 1 ) & 25688abc0ccfSmrg am_sleep_pid=$! 25698abc0ccfSmrgfi 25708abc0ccfSmrg 25718abc0ccfSmrgrm -f conftest.file 25728abc0ccfSmrg 25737a0395d0Smrgtest "$program_prefix" != NONE && 25747a0395d0Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 25757a0395d0Smrg# Use a double $ so make ignores it. 25767a0395d0Smrgtest "$program_suffix" != NONE && 25777a0395d0Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 25787366012aSmrg# Double any \ or $. 25797a0395d0Smrg# By default was `s,x,x', remove it if useless. 25807366012aSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 25817366012aSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 25827a0395d0Smrg 258340c5344fSmrg# Expand $ac_aux_dir to an absolute path. 258440c5344fSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 25857a0395d0Smrg 25867366012aSmrgif test x"${MISSING+set}" != xset; then 25870d22642bSmrg MISSING="\${SHELL} '$am_aux_dir/missing'" 25887366012aSmrgfi 25897a0395d0Smrg# Use eval to expand $SHELL 25909a011757Smrgif eval "$MISSING --is-lightweight"; then 25919a011757Smrg am_missing_run="$MISSING " 25927a0395d0Smrgelse 25937a0395d0Smrg am_missing_run= 25948abc0ccfSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 25958abc0ccfSmrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 25967366012aSmrgfi 25977366012aSmrg 259840c5344fSmrgif test x"${install_sh+set}" != xset; then 25997366012aSmrg case $am_aux_dir in 26007366012aSmrg *\ * | *\ *) 26017366012aSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 26027366012aSmrg *) 26037366012aSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 26047366012aSmrg esac 26057366012aSmrgfi 26067366012aSmrg 26078abc0ccfSmrg# Installed binaries are usually stripped using 'strip' when the user 26088abc0ccfSmrg# run "make install-strip". However 'strip' might not be the right 26097366012aSmrg# tool to use in cross-compilation environments, therefore Automake 26108abc0ccfSmrg# will honor the 'STRIP' environment variable to overrule this program. 26117366012aSmrgif test "$cross_compiling" != no; then 26127366012aSmrg if test -n "$ac_tool_prefix"; then 26137366012aSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 26147366012aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 26152adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26167366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 26172adc0320Smrgif ${ac_cv_prog_STRIP+:} false; then : 26187366012aSmrg $as_echo_n "(cached) " >&6 26197366012aSmrgelse 26207366012aSmrg if test -n "$STRIP"; then 26217366012aSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 26227366012aSmrgelse 26237366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26247366012aSmrgfor as_dir in $PATH 26257366012aSmrgdo 26267366012aSmrg IFS=$as_save_IFS 26277366012aSmrg test -z "$as_dir" && as_dir=. 26282adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 26298abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26307366012aSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 26312adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26327366012aSmrg break 2 26337366012aSmrg fi 26347366012aSmrgdone 26352adc0320Smrg done 26367366012aSmrgIFS=$as_save_IFS 26377366012aSmrg 26387366012aSmrgfi 26397366012aSmrgfi 26407366012aSmrgSTRIP=$ac_cv_prog_STRIP 26417366012aSmrgif test -n "$STRIP"; then 26422adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 26437366012aSmrg$as_echo "$STRIP" >&6; } 26447366012aSmrgelse 26452adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26467366012aSmrg$as_echo "no" >&6; } 26477366012aSmrgfi 26487366012aSmrg 26497366012aSmrg 26507366012aSmrgfi 26517366012aSmrgif test -z "$ac_cv_prog_STRIP"; then 26527366012aSmrg ac_ct_STRIP=$STRIP 26537366012aSmrg # Extract the first word of "strip", so it can be a program name with args. 26547366012aSmrgset dummy strip; ac_word=$2 26552adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26567366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 26572adc0320Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 26587366012aSmrg $as_echo_n "(cached) " >&6 26597366012aSmrgelse 26607366012aSmrg if test -n "$ac_ct_STRIP"; then 26617366012aSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 26627366012aSmrgelse 26637366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26647366012aSmrgfor as_dir in $PATH 26657366012aSmrgdo 26667366012aSmrg IFS=$as_save_IFS 26677366012aSmrg test -z "$as_dir" && as_dir=. 26682adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 26698abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26707366012aSmrg ac_cv_prog_ac_ct_STRIP="strip" 26712adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26727366012aSmrg break 2 26737366012aSmrg fi 26747366012aSmrgdone 26752adc0320Smrg done 26767366012aSmrgIFS=$as_save_IFS 26777366012aSmrg 26787366012aSmrgfi 26797366012aSmrgfi 26807366012aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 26817366012aSmrgif test -n "$ac_ct_STRIP"; then 26822adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 26837366012aSmrg$as_echo "$ac_ct_STRIP" >&6; } 26847366012aSmrgelse 26852adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26867366012aSmrg$as_echo "no" >&6; } 26877366012aSmrgfi 26887366012aSmrg 26897366012aSmrg if test "x$ac_ct_STRIP" = x; then 26907366012aSmrg STRIP=":" 26917366012aSmrg else 26927366012aSmrg case $cross_compiling:$ac_tool_warned in 26937366012aSmrgyes:) 26942adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26957366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26967366012aSmrgac_tool_warned=yes ;; 26977366012aSmrgesac 26987366012aSmrg STRIP=$ac_ct_STRIP 26997366012aSmrg fi 27007366012aSmrgelse 27017366012aSmrg STRIP="$ac_cv_prog_STRIP" 27027a0395d0Smrgfi 27037a0395d0Smrg 27047366012aSmrgfi 27057366012aSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 27067366012aSmrg 27072adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 27087366012aSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 27097a0395d0Smrgif test -z "$MKDIR_P"; then 27102adc0320Smrg if ${ac_cv_path_mkdir+:} false; then : 27117366012aSmrg $as_echo_n "(cached) " >&6 27127a0395d0Smrgelse 27137a0395d0Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27147a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 27157a0395d0Smrgdo 27167a0395d0Smrg IFS=$as_save_IFS 27177a0395d0Smrg test -z "$as_dir" && as_dir=. 27182adc0320Smrg for ac_prog in mkdir gmkdir; do 27197a0395d0Smrg for ac_exec_ext in '' $ac_executable_extensions; do 27208abc0ccfSmrg as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 27217a0395d0Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 27227a0395d0Smrg 'mkdir (GNU coreutils) '* | \ 27237a0395d0Smrg 'mkdir (coreutils) '* | \ 27247a0395d0Smrg 'mkdir (fileutils) '4.1*) 27257a0395d0Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 27267a0395d0Smrg break 3;; 27277a0395d0Smrg esac 27287a0395d0Smrg done 27297a0395d0Smrg done 27302adc0320Smrg done 27317a0395d0SmrgIFS=$as_save_IFS 27327a0395d0Smrg 27337a0395d0Smrgfi 27347a0395d0Smrg 27352adc0320Smrg test -d ./--version && rmdir ./--version 27367a0395d0Smrg if test "${ac_cv_path_mkdir+set}" = set; then 27377a0395d0Smrg MKDIR_P="$ac_cv_path_mkdir -p" 27387a0395d0Smrg else 27397a0395d0Smrg # As a last resort, use the slow shell script. Don't cache a 27407a0395d0Smrg # value for MKDIR_P within a source directory, because that will 27417a0395d0Smrg # break other packages using the cache if that directory is 27427a0395d0Smrg # removed, or if the value is a relative name. 27437a0395d0Smrg MKDIR_P="$ac_install_sh -d" 27447a0395d0Smrg fi 27457a0395d0Smrgfi 27462adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 27477366012aSmrg$as_echo "$MKDIR_P" >&6; } 27487a0395d0Smrg 27497a0395d0Smrgfor ac_prog in gawk mawk nawk awk 27507a0395d0Smrgdo 27517a0395d0Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 27527a0395d0Smrgset dummy $ac_prog; ac_word=$2 27532adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27547366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 27552adc0320Smrgif ${ac_cv_prog_AWK+:} false; then : 27567366012aSmrg $as_echo_n "(cached) " >&6 27577a0395d0Smrgelse 27587a0395d0Smrg if test -n "$AWK"; then 27597a0395d0Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 27607a0395d0Smrgelse 27617a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27627a0395d0Smrgfor as_dir in $PATH 27637a0395d0Smrgdo 27647a0395d0Smrg IFS=$as_save_IFS 27657a0395d0Smrg test -z "$as_dir" && as_dir=. 27662adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 27678abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27687a0395d0Smrg ac_cv_prog_AWK="$ac_prog" 27692adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27707a0395d0Smrg break 2 27717a0395d0Smrg fi 27727a0395d0Smrgdone 27732adc0320Smrg done 27747a0395d0SmrgIFS=$as_save_IFS 27757a0395d0Smrg 27767a0395d0Smrgfi 27777a0395d0Smrgfi 27787a0395d0SmrgAWK=$ac_cv_prog_AWK 27797a0395d0Smrgif test -n "$AWK"; then 27802adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 27817366012aSmrg$as_echo "$AWK" >&6; } 27827a0395d0Smrgelse 27832adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27847366012aSmrg$as_echo "no" >&6; } 27857a0395d0Smrgfi 27867a0395d0Smrg 27877a0395d0Smrg 27887a0395d0Smrg test -n "$AWK" && break 27897a0395d0Smrgdone 27907a0395d0Smrg 27912adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 27927366012aSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 27937366012aSmrgset x ${MAKE-make} 27947366012aSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 27952adc0320Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 27967366012aSmrg $as_echo_n "(cached) " >&6 27977a0395d0Smrgelse 27987a0395d0Smrg cat >conftest.make <<\_ACEOF 27997a0395d0SmrgSHELL = /bin/sh 28007a0395d0Smrgall: 28017a0395d0Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 28027a0395d0Smrg_ACEOF 28032adc0320Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 28047a0395d0Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 28057a0395d0Smrg *@@@%%%=?*=@@@%%%*) 28067a0395d0Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 28077a0395d0Smrg *) 28087a0395d0Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 28097a0395d0Smrgesac 28107a0395d0Smrgrm -f conftest.make 28117a0395d0Smrgfi 28127a0395d0Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 28132adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28147366012aSmrg$as_echo "yes" >&6; } 28157a0395d0Smrg SET_MAKE= 28167a0395d0Smrgelse 28172adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28187366012aSmrg$as_echo "no" >&6; } 28197a0395d0Smrg SET_MAKE="MAKE=${MAKE-make}" 28207a0395d0Smrgfi 28217a0395d0Smrg 28227a0395d0Smrgrm -rf .tst 2>/dev/null 28237a0395d0Smrgmkdir .tst 2>/dev/null 28247a0395d0Smrgif test -d .tst; then 28257a0395d0Smrg am__leading_dot=. 28267a0395d0Smrgelse 28277a0395d0Smrg am__leading_dot=_ 28287a0395d0Smrgfi 28297a0395d0Smrgrmdir .tst 2>/dev/null 28307a0395d0Smrg 28319a011757Smrg# Check whether --enable-silent-rules was given. 28329a011757Smrgif test "${enable_silent_rules+set}" = set; then : 28339a011757Smrg enableval=$enable_silent_rules; 28349a011757Smrgfi 28359a011757Smrg 28369a011757Smrgcase $enable_silent_rules in # ((( 28379a011757Smrg yes) AM_DEFAULT_VERBOSITY=0;; 28389a011757Smrg no) AM_DEFAULT_VERBOSITY=1;; 28399a011757Smrg *) AM_DEFAULT_VERBOSITY=1;; 28409a011757Smrgesac 28419a011757Smrgam_make=${MAKE-make} 28429a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 28439a011757Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 28449a011757Smrgif ${am_cv_make_support_nested_variables+:} false; then : 28459a011757Smrg $as_echo_n "(cached) " >&6 28469a011757Smrgelse 28479a011757Smrg if $as_echo 'TRUE=$(BAR$(V)) 28489a011757SmrgBAR0=false 28499a011757SmrgBAR1=true 28509a011757SmrgV=1 28519a011757Smrgam__doit: 28529a011757Smrg @$(TRUE) 28539a011757Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 28549a011757Smrg am_cv_make_support_nested_variables=yes 28559a011757Smrgelse 28569a011757Smrg am_cv_make_support_nested_variables=no 28579a011757Smrgfi 28589a011757Smrgfi 28599a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 28609a011757Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 28619a011757Smrgif test $am_cv_make_support_nested_variables = yes; then 28629a011757Smrg AM_V='$(V)' 28639a011757Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 28649a011757Smrgelse 28659a011757Smrg AM_V=$AM_DEFAULT_VERBOSITY 28669a011757Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 28679a011757Smrgfi 28689a011757SmrgAM_BACKSLASH='\' 28699a011757Smrg 28707a0395d0Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 28717a0395d0Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 28727a0395d0Smrg # is not polluted with repeated "-I." 28737a0395d0Smrg am__isrc=' -I$(srcdir)' 28747a0395d0Smrg # test to see if srcdir already configured 28757a0395d0Smrg if test -f $srcdir/config.status; then 28762adc0320Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 28777a0395d0Smrg fi 28787a0395d0Smrgfi 28797a0395d0Smrg 28807a0395d0Smrg# test whether we have cygpath 28817a0395d0Smrgif test -z "$CYGPATH_W"; then 28827a0395d0Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 28837a0395d0Smrg CYGPATH_W='cygpath -w' 28847a0395d0Smrg else 28857a0395d0Smrg CYGPATH_W=echo 28867a0395d0Smrg fi 28877a0395d0Smrgfi 28887a0395d0Smrg 28897a0395d0Smrg 28907a0395d0Smrg# Define the identity of the package. 28917a0395d0Smrg PACKAGE='xauth' 28920d22642bSmrg VERSION='1.1.1' 28937a0395d0Smrg 28947a0395d0Smrg 28957a0395d0Smrgcat >>confdefs.h <<_ACEOF 28967a0395d0Smrg#define PACKAGE "$PACKAGE" 28977a0395d0Smrg_ACEOF 28987a0395d0Smrg 28997a0395d0Smrg 29007a0395d0Smrgcat >>confdefs.h <<_ACEOF 29017a0395d0Smrg#define VERSION "$VERSION" 29027a0395d0Smrg_ACEOF 29037a0395d0Smrg 29047a0395d0Smrg# Some tools Automake needs. 29057a0395d0Smrg 29067a0395d0SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 29077a0395d0Smrg 29087a0395d0Smrg 29097a0395d0SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 29107a0395d0Smrg 29117a0395d0Smrg 29127a0395d0SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 29137a0395d0Smrg 29147a0395d0Smrg 29157a0395d0SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 29167a0395d0Smrg 29177a0395d0Smrg 29187a0395d0SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 29197a0395d0Smrg 29208abc0ccfSmrg# For better backward compatibility. To be removed once Automake 1.9.x 29218abc0ccfSmrg# dies out for good. For more background, see: 29226c3c2bceSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 29236c3c2bceSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 29248abc0ccfSmrgmkdir_p='$(MKDIR_P)' 29258abc0ccfSmrg 292640c5344fSmrg# We need awk for the "check" target (and possibly the TAP driver). The 292740c5344fSmrg# system "awk" is bad on some platforms. 29288abc0ccfSmrg# Always define AMTAR for backward compatibility. Yes, it's still used 29298abc0ccfSmrg# in the wild :-( We should find a proper way to deprecate it ... 29308abc0ccfSmrgAMTAR='$${TAR-tar}' 29317a0395d0Smrg 29329a011757Smrg 29339a011757Smrg# We'll loop over all known methods to create a tar archive until one works. 29349a011757Smrg_am_tools='gnutar pax cpio none' 29359a011757Smrg 29368abc0ccfSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 29377a0395d0Smrg 29387a0395d0Smrg 29397a0395d0Smrg 29407a0395d0Smrg 29417a0395d0Smrg 29427366012aSmrg 294340c5344fSmrg# POSIX will say in a future version that running "rm -f" with no argument 294440c5344fSmrg# is OK; and we want to be able to make that assumption in our Makefile 294540c5344fSmrg# recipes. So use an aggressive probe to check that the usage we want is 294640c5344fSmrg# actually supported "in the wild" to an acceptable degree. 294740c5344fSmrg# See automake bug#10828. 294840c5344fSmrg# To make any issue more visible, cause the running configure to be aborted 294940c5344fSmrg# by default if the 'rm' program in use doesn't match our expectations; the 295040c5344fSmrg# user can still override this though. 295140c5344fSmrgif rm -f && rm -fr && rm -rf; then : OK; else 295240c5344fSmrg cat >&2 <<'END' 295340c5344fSmrgOops! 29549a011757Smrg 295540c5344fSmrgYour 'rm' program seems unable to run without file operands specified 295640c5344fSmrgon the command line, even when the '-f' option is present. This is contrary 295740c5344fSmrgto the behaviour of most rm programs out there, and not conforming with 295840c5344fSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 29597a0395d0Smrg 296040c5344fSmrgPlease tell bug-automake@gnu.org about your system, including the value 296140c5344fSmrgof your $PATH and any error possibly output before this message. This 296240c5344fSmrgcan help us improve future automake versions. 29637a0395d0Smrg 296440c5344fSmrgEND 296540c5344fSmrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 296640c5344fSmrg echo 'Configuration will proceed anyway, since you have set the' >&2 296740c5344fSmrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 296840c5344fSmrg echo >&2 296940c5344fSmrg else 297040c5344fSmrg cat >&2 <<'END' 297140c5344fSmrgAborting the configuration process, to ensure you take notice of the issue. 29727a0395d0Smrg 297340c5344fSmrgYou can download and install GNU coreutils to get an 'rm' implementation 29746c3c2bceSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 297540c5344fSmrg 297640c5344fSmrgIf you want to complete the configuration process using your problematic 297740c5344fSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 297840c5344fSmrgto "yes", and re-run configure. 297940c5344fSmrg 298040c5344fSmrgEND 298140c5344fSmrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 298240c5344fSmrg fi 298340c5344fSmrgfi 29847a0395d0Smrg 29857a0395d0Smrg 29867a0395d0Smrgac_config_headers="$ac_config_headers config.h" 29877a0395d0Smrg 29887a0395d0Smrg 29899a011757Smrg# Set common system defines for POSIX extensions, such as _GNU_SOURCE 29909a011757Smrg# Must be called before any macros that run the compiler (like 29919a011757Smrg# AC_PROG_LIBTOOL) to avoid autoconf errors. 29922adc0320SmrgDEPDIR="${am__leading_dot}deps" 29932adc0320Smrg 29942adc0320Smrgac_config_commands="$ac_config_commands depfiles" 29952adc0320Smrg 29966c3c2bceSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 29976c3c2bceSmrg$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 29986c3c2bceSmrgcat > confinc.mk << 'END' 29992adc0320Smrgam__doit: 30006c3c2bceSmrg @echo this is the am__doit target >confinc.out 30012adc0320Smrg.PHONY: am__doit 30022adc0320SmrgEND 30032adc0320Smrgam__include="#" 30042adc0320Smrgam__quote= 30056c3c2bceSmrg# BSD make does it like this. 30066c3c2bceSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD 30076c3c2bceSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 30086c3c2bceSmrgecho 'include confinc.mk # ignored' > confmf.GNU 30096c3c2bceSmrg_am_result=no 30106c3c2bceSmrgfor s in GNU BSD; do 30116c3c2bceSmrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 30126c3c2bceSmrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 30136c3c2bceSmrg ac_status=$? 30146c3c2bceSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 30156c3c2bceSmrg (exit $ac_status); } 30166c3c2bceSmrg case $?:`cat confinc.out 2>/dev/null` in #( 30176c3c2bceSmrg '0:this is the am__doit target') : 30186c3c2bceSmrg case $s in #( 30196c3c2bceSmrg BSD) : 30206c3c2bceSmrg am__include='.include' am__quote='"' ;; #( 30216c3c2bceSmrg *) : 30226c3c2bceSmrg am__include='include' am__quote='' ;; 30236c3c2bceSmrgesac ;; #( 30246c3c2bceSmrg *) : 30252adc0320Smrg ;; 30266c3c2bceSmrgesac 30276c3c2bceSmrg if test "$am__include" != "#"; then 30286c3c2bceSmrg _am_result="yes ($s style)" 30296c3c2bceSmrg break 30306c3c2bceSmrg fi 30316c3c2bceSmrgdone 30326c3c2bceSmrgrm -f confinc.* confmf.* 30336c3c2bceSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 30346c3c2bceSmrg$as_echo "${_am_result}" >&6; } 30352adc0320Smrg 30362adc0320Smrg# Check whether --enable-dependency-tracking was given. 30372adc0320Smrgif test "${enable_dependency_tracking+set}" = set; then : 30382adc0320Smrg enableval=$enable_dependency_tracking; 30392adc0320Smrgfi 30407a0395d0Smrg 30412adc0320Smrgif test "x$enable_dependency_tracking" != xno; then 30422adc0320Smrg am_depcomp="$ac_aux_dir/depcomp" 30432adc0320Smrg AMDEPBACKSLASH='\' 30448abc0ccfSmrg am__nodep='_no' 30452adc0320Smrgfi 30462adc0320Smrg if test "x$enable_dependency_tracking" != xno; then 30472adc0320Smrg AMDEP_TRUE= 30482adc0320Smrg AMDEP_FALSE='#' 30492adc0320Smrgelse 30502adc0320Smrg AMDEP_TRUE='#' 30512adc0320Smrg AMDEP_FALSE= 30522adc0320Smrgfi 30537a0395d0Smrg 30547a0395d0Smrg 30557a0395d0Smrgac_ext=c 30567a0395d0Smrgac_cpp='$CPP $CPPFLAGS' 30577a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30587a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30597a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 30607a0395d0Smrgif test -n "$ac_tool_prefix"; then 30617a0395d0Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 30627a0395d0Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 30632adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30647366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 30652adc0320Smrgif ${ac_cv_prog_CC+:} false; then : 30667366012aSmrg $as_echo_n "(cached) " >&6 30677a0395d0Smrgelse 30687a0395d0Smrg if test -n "$CC"; then 30697a0395d0Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 30707a0395d0Smrgelse 30717a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30727a0395d0Smrgfor as_dir in $PATH 30737a0395d0Smrgdo 30747a0395d0Smrg IFS=$as_save_IFS 30757a0395d0Smrg test -z "$as_dir" && as_dir=. 30762adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 30778abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30787a0395d0Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 30792adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30807a0395d0Smrg break 2 30817a0395d0Smrg fi 30827a0395d0Smrgdone 30832adc0320Smrg done 30847a0395d0SmrgIFS=$as_save_IFS 30857a0395d0Smrg 30867a0395d0Smrgfi 30877a0395d0Smrgfi 30887a0395d0SmrgCC=$ac_cv_prog_CC 30897a0395d0Smrgif test -n "$CC"; then 30902adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 30917366012aSmrg$as_echo "$CC" >&6; } 30927a0395d0Smrgelse 30932adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30947366012aSmrg$as_echo "no" >&6; } 30957a0395d0Smrgfi 30967a0395d0Smrg 30977a0395d0Smrg 30987a0395d0Smrgfi 30997a0395d0Smrgif test -z "$ac_cv_prog_CC"; then 31007a0395d0Smrg ac_ct_CC=$CC 31017a0395d0Smrg # Extract the first word of "gcc", so it can be a program name with args. 31027a0395d0Smrgset dummy gcc; ac_word=$2 31032adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31047366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 31052adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 31067366012aSmrg $as_echo_n "(cached) " >&6 31077a0395d0Smrgelse 31087a0395d0Smrg if test -n "$ac_ct_CC"; then 31097a0395d0Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 31107a0395d0Smrgelse 31117a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31127a0395d0Smrgfor as_dir in $PATH 31137a0395d0Smrgdo 31147a0395d0Smrg IFS=$as_save_IFS 31157a0395d0Smrg test -z "$as_dir" && as_dir=. 31162adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 31178abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31187a0395d0Smrg ac_cv_prog_ac_ct_CC="gcc" 31192adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31207a0395d0Smrg break 2 31217a0395d0Smrg fi 31227a0395d0Smrgdone 31232adc0320Smrg done 31247a0395d0SmrgIFS=$as_save_IFS 31257a0395d0Smrg 31267a0395d0Smrgfi 31277a0395d0Smrgfi 31287a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 31297a0395d0Smrgif test -n "$ac_ct_CC"; then 31302adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 31317366012aSmrg$as_echo "$ac_ct_CC" >&6; } 31327a0395d0Smrgelse 31332adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31347366012aSmrg$as_echo "no" >&6; } 31357a0395d0Smrgfi 31367a0395d0Smrg 31377a0395d0Smrg if test "x$ac_ct_CC" = x; then 31387a0395d0Smrg CC="" 31397a0395d0Smrg else 31407a0395d0Smrg case $cross_compiling:$ac_tool_warned in 31417a0395d0Smrgyes:) 31422adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31437366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31447a0395d0Smrgac_tool_warned=yes ;; 31457a0395d0Smrgesac 31467a0395d0Smrg CC=$ac_ct_CC 31477a0395d0Smrg fi 31487a0395d0Smrgelse 31497a0395d0Smrg CC="$ac_cv_prog_CC" 31507a0395d0Smrgfi 31517a0395d0Smrg 31527a0395d0Smrgif test -z "$CC"; then 31537a0395d0Smrg if test -n "$ac_tool_prefix"; then 31547a0395d0Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 31557a0395d0Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 31562adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31577366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 31582adc0320Smrgif ${ac_cv_prog_CC+:} false; then : 31597366012aSmrg $as_echo_n "(cached) " >&6 31607a0395d0Smrgelse 31617a0395d0Smrg if test -n "$CC"; then 31627a0395d0Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 31637a0395d0Smrgelse 31647a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31657a0395d0Smrgfor as_dir in $PATH 31667a0395d0Smrgdo 31677a0395d0Smrg IFS=$as_save_IFS 31687a0395d0Smrg test -z "$as_dir" && as_dir=. 31692adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 31708abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31717a0395d0Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 31722adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31737a0395d0Smrg break 2 31747a0395d0Smrg fi 31757a0395d0Smrgdone 31762adc0320Smrg done 31777a0395d0SmrgIFS=$as_save_IFS 31787a0395d0Smrg 31797a0395d0Smrgfi 31807a0395d0Smrgfi 31817a0395d0SmrgCC=$ac_cv_prog_CC 31827a0395d0Smrgif test -n "$CC"; then 31832adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 31847366012aSmrg$as_echo "$CC" >&6; } 31857a0395d0Smrgelse 31862adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31877366012aSmrg$as_echo "no" >&6; } 31887a0395d0Smrgfi 31897a0395d0Smrg 31907a0395d0Smrg 31917a0395d0Smrg fi 31927a0395d0Smrgfi 31937a0395d0Smrgif test -z "$CC"; then 31947a0395d0Smrg # Extract the first word of "cc", so it can be a program name with args. 31957a0395d0Smrgset dummy cc; ac_word=$2 31962adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31977366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 31982adc0320Smrgif ${ac_cv_prog_CC+:} false; then : 31997366012aSmrg $as_echo_n "(cached) " >&6 32007a0395d0Smrgelse 32017a0395d0Smrg if test -n "$CC"; then 32027a0395d0Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 32037a0395d0Smrgelse 32047a0395d0Smrg ac_prog_rejected=no 32057a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32067a0395d0Smrgfor as_dir in $PATH 32077a0395d0Smrgdo 32087a0395d0Smrg IFS=$as_save_IFS 32097a0395d0Smrg test -z "$as_dir" && as_dir=. 32102adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 32118abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32127a0395d0Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 32137a0395d0Smrg ac_prog_rejected=yes 32147a0395d0Smrg continue 32157a0395d0Smrg fi 32167a0395d0Smrg ac_cv_prog_CC="cc" 32172adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32187a0395d0Smrg break 2 32197a0395d0Smrg fi 32207a0395d0Smrgdone 32212adc0320Smrg done 32227a0395d0SmrgIFS=$as_save_IFS 32237a0395d0Smrg 32247a0395d0Smrgif test $ac_prog_rejected = yes; then 32257a0395d0Smrg # We found a bogon in the path, so make sure we never use it. 32267a0395d0Smrg set dummy $ac_cv_prog_CC 32277a0395d0Smrg shift 32287a0395d0Smrg if test $# != 0; then 32297a0395d0Smrg # We chose a different compiler from the bogus one. 32307a0395d0Smrg # However, it has the same basename, so the bogon will be chosen 32317a0395d0Smrg # first if we set CC to just the basename; use the full file name. 32327a0395d0Smrg shift 32337a0395d0Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 32347a0395d0Smrg fi 32357a0395d0Smrgfi 32367a0395d0Smrgfi 32377a0395d0Smrgfi 32387a0395d0SmrgCC=$ac_cv_prog_CC 32397a0395d0Smrgif test -n "$CC"; then 32402adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 32417366012aSmrg$as_echo "$CC" >&6; } 32427a0395d0Smrgelse 32432adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32447366012aSmrg$as_echo "no" >&6; } 32457a0395d0Smrgfi 32467a0395d0Smrg 32477a0395d0Smrg 32487a0395d0Smrgfi 32497a0395d0Smrgif test -z "$CC"; then 32507a0395d0Smrg if test -n "$ac_tool_prefix"; then 32517a0395d0Smrg for ac_prog in cl.exe 32527a0395d0Smrg do 32537a0395d0Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32547a0395d0Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 32552adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32567366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 32572adc0320Smrgif ${ac_cv_prog_CC+:} false; then : 32587366012aSmrg $as_echo_n "(cached) " >&6 32597a0395d0Smrgelse 32607a0395d0Smrg if test -n "$CC"; then 32617a0395d0Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 32627a0395d0Smrgelse 32637a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32647a0395d0Smrgfor as_dir in $PATH 32657a0395d0Smrgdo 32667a0395d0Smrg IFS=$as_save_IFS 32677a0395d0Smrg test -z "$as_dir" && as_dir=. 32682adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 32698abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32707a0395d0Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 32712adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32727a0395d0Smrg break 2 32737a0395d0Smrg fi 32747a0395d0Smrgdone 32752adc0320Smrg done 32767a0395d0SmrgIFS=$as_save_IFS 32777a0395d0Smrg 32787a0395d0Smrgfi 32797a0395d0Smrgfi 32807a0395d0SmrgCC=$ac_cv_prog_CC 32817a0395d0Smrgif test -n "$CC"; then 32822adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 32837366012aSmrg$as_echo "$CC" >&6; } 32847a0395d0Smrgelse 32852adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32867366012aSmrg$as_echo "no" >&6; } 32877a0395d0Smrgfi 32887a0395d0Smrg 32897a0395d0Smrg 32907a0395d0Smrg test -n "$CC" && break 32917a0395d0Smrg done 32927a0395d0Smrgfi 32937a0395d0Smrgif test -z "$CC"; then 32947a0395d0Smrg ac_ct_CC=$CC 32957a0395d0Smrg for ac_prog in cl.exe 32967a0395d0Smrgdo 32977a0395d0Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 32987a0395d0Smrgset dummy $ac_prog; ac_word=$2 32992adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33007366012aSmrg$as_echo_n "checking for $ac_word... " >&6; } 33012adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 33027366012aSmrg $as_echo_n "(cached) " >&6 33037a0395d0Smrgelse 33047a0395d0Smrg if test -n "$ac_ct_CC"; then 33057a0395d0Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 33067a0395d0Smrgelse 33077a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33087a0395d0Smrgfor as_dir in $PATH 33097a0395d0Smrgdo 33107a0395d0Smrg IFS=$as_save_IFS 33117a0395d0Smrg test -z "$as_dir" && as_dir=. 33122adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 33138abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33147a0395d0Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 33152adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33167a0395d0Smrg break 2 33177a0395d0Smrg fi 33187a0395d0Smrgdone 33192adc0320Smrg done 33207a0395d0SmrgIFS=$as_save_IFS 33217a0395d0Smrg 33227a0395d0Smrgfi 33237a0395d0Smrgfi 33247a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 33257a0395d0Smrgif test -n "$ac_ct_CC"; then 33262adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 33277366012aSmrg$as_echo "$ac_ct_CC" >&6; } 33287a0395d0Smrgelse 33292adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33307366012aSmrg$as_echo "no" >&6; } 33317a0395d0Smrgfi 33327a0395d0Smrg 33337a0395d0Smrg 33347a0395d0Smrg test -n "$ac_ct_CC" && break 33357a0395d0Smrgdone 33367a0395d0Smrg 33377a0395d0Smrg if test "x$ac_ct_CC" = x; then 33387a0395d0Smrg CC="" 33397a0395d0Smrg else 33407a0395d0Smrg case $cross_compiling:$ac_tool_warned in 33417a0395d0Smrgyes:) 33422adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33437366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33447a0395d0Smrgac_tool_warned=yes ;; 33457a0395d0Smrgesac 33467a0395d0Smrg CC=$ac_ct_CC 33477a0395d0Smrg fi 33487a0395d0Smrgfi 33497a0395d0Smrg 33507a0395d0Smrgfi 33517a0395d0Smrg 33527a0395d0Smrg 33532adc0320Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33547366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33552adc0320Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 33562adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 33577a0395d0Smrg 33587a0395d0Smrg# Provide some information about the compiler. 33592adc0320Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 33607366012aSmrgset X $ac_compile 33617366012aSmrgac_compiler=$2 33622adc0320Smrgfor ac_option in --version -v -V -qversion; do 33632adc0320Smrg { { ac_try="$ac_compiler $ac_option >&5" 33647a0395d0Smrgcase "(($ac_try" in 33657a0395d0Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33667a0395d0Smrg *) ac_try_echo=$ac_try;; 33677a0395d0Smrgesac 33682adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33692adc0320Smrg$as_echo "$ac_try_echo"; } >&5 33702adc0320Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33717a0395d0Smrg ac_status=$? 33722adc0320Smrg if test -s conftest.err; then 33732adc0320Smrg sed '10a\ 33742adc0320Smrg... rest of stderr output deleted ... 33752adc0320Smrg 10q' conftest.err >conftest.er1 33762adc0320Smrg cat conftest.er1 >&5 33772adc0320Smrg fi 33782adc0320Smrg rm -f conftest.er1 conftest.err 33792adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33802adc0320Smrg test $ac_status = 0; } 33812adc0320Smrgdone 33827a0395d0Smrg 33832adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 33847a0395d0Smrg/* end confdefs.h. */ 33857a0395d0Smrg 33867a0395d0Smrgint 33877a0395d0Smrgmain () 33887a0395d0Smrg{ 33897a0395d0Smrg 33907a0395d0Smrg ; 33917a0395d0Smrg return 0; 33927a0395d0Smrg} 33937a0395d0Smrg_ACEOF 33947a0395d0Smrgac_clean_files_save=$ac_clean_files 33957366012aSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 33967a0395d0Smrg# Try to create an executable without -o first, disregard a.out. 33977a0395d0Smrg# It will help us diagnose broken compilers, and finding out an intuition 33987a0395d0Smrg# of exeext. 33992adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 34002adc0320Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 34017366012aSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 34027366012aSmrg 34037366012aSmrg# The possible output files: 34047366012aSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 34057366012aSmrg 34067a0395d0Smrgac_rmfiles= 34077a0395d0Smrgfor ac_file in $ac_files 34087a0395d0Smrgdo 34097a0395d0Smrg case $ac_file in 34107366012aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34117a0395d0Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 34127a0395d0Smrg esac 34137a0395d0Smrgdone 34147a0395d0Smrgrm -f $ac_rmfiles 34157a0395d0Smrg 34162adc0320Smrgif { { ac_try="$ac_link_default" 34177a0395d0Smrgcase "(($ac_try" in 34187a0395d0Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34197a0395d0Smrg *) ac_try_echo=$ac_try;; 34207a0395d0Smrgesac 34212adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34222adc0320Smrg$as_echo "$ac_try_echo"; } >&5 34237a0395d0Smrg (eval "$ac_link_default") 2>&5 34247a0395d0Smrg ac_status=$? 34252adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34262adc0320Smrg test $ac_status = 0; }; then : 34277a0395d0Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 34287a0395d0Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 34297a0395d0Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 34307a0395d0Smrg# so that the user can short-circuit this test for compilers unknown to 34317a0395d0Smrg# Autoconf. 34327a0395d0Smrgfor ac_file in $ac_files '' 34337a0395d0Smrgdo 34347a0395d0Smrg test -f "$ac_file" || continue 34357a0395d0Smrg case $ac_file in 34367366012aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 34377a0395d0Smrg ;; 34387a0395d0Smrg [ab].out ) 34397a0395d0Smrg # We found the default executable, but exeext='' is most 34407a0395d0Smrg # certainly right. 34417a0395d0Smrg break;; 34427a0395d0Smrg *.* ) 34432adc0320Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 34447a0395d0Smrg then :; else 34457a0395d0Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34467a0395d0Smrg fi 34477a0395d0Smrg # We set ac_cv_exeext here because the later test for it is not 34487a0395d0Smrg # safe: cross compilers may not add the suffix if given an `-o' 34497a0395d0Smrg # argument, so we may need to know it at that point already. 34507a0395d0Smrg # Even if this section looks crufty: it has the advantage of 34517a0395d0Smrg # actually working. 34527a0395d0Smrg break;; 34537a0395d0Smrg * ) 34547a0395d0Smrg break;; 34557a0395d0Smrg esac 34567a0395d0Smrgdone 34577a0395d0Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 34587a0395d0Smrg 34597a0395d0Smrgelse 34607a0395d0Smrg ac_file='' 34617a0395d0Smrgfi 34622adc0320Smrgif test -z "$ac_file"; then : 34632adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34642adc0320Smrg$as_echo "no" >&6; } 34652adc0320Smrg$as_echo "$as_me: failed program was:" >&5 34667a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5 34677a0395d0Smrg 34682adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34697366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34702adc0320Smrgas_fn_error 77 "C compiler cannot create executables 34712adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 34722adc0320Smrgelse 34732adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34742adc0320Smrg$as_echo "yes" >&6; } 34757a0395d0Smrgfi 34762adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 34772adc0320Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 34782adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 34792adc0320Smrg$as_echo "$ac_file" >&6; } 34807a0395d0Smrgac_exeext=$ac_cv_exeext 34817a0395d0Smrg 34827366012aSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 34837a0395d0Smrgac_clean_files=$ac_clean_files_save 34842adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 34857366012aSmrg$as_echo_n "checking for suffix of executables... " >&6; } 34862adc0320Smrgif { { ac_try="$ac_link" 34877a0395d0Smrgcase "(($ac_try" in 34887a0395d0Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34897a0395d0Smrg *) ac_try_echo=$ac_try;; 34907a0395d0Smrgesac 34912adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34922adc0320Smrg$as_echo "$ac_try_echo"; } >&5 34937a0395d0Smrg (eval "$ac_link") 2>&5 34947a0395d0Smrg ac_status=$? 34952adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34962adc0320Smrg test $ac_status = 0; }; then : 34977a0395d0Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 34987a0395d0Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34997a0395d0Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 35007a0395d0Smrg# `rm'. 35017a0395d0Smrgfor ac_file in conftest.exe conftest conftest.*; do 35027a0395d0Smrg test -f "$ac_file" || continue 35037a0395d0Smrg case $ac_file in 35047366012aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 35057a0395d0Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 35067a0395d0Smrg break;; 35077a0395d0Smrg * ) break;; 35087a0395d0Smrg esac 35097a0395d0Smrgdone 35107a0395d0Smrgelse 35112adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35127366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35132adc0320Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 35142adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 35157a0395d0Smrgfi 35162adc0320Smrgrm -f conftest conftest$ac_cv_exeext 35172adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 35187366012aSmrg$as_echo "$ac_cv_exeext" >&6; } 35197a0395d0Smrg 35207a0395d0Smrgrm -f conftest.$ac_ext 35217a0395d0SmrgEXEEXT=$ac_cv_exeext 35227a0395d0Smrgac_exeext=$EXEEXT 35232adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 35242adc0320Smrg/* end confdefs.h. */ 35252adc0320Smrg#include <stdio.h> 35262adc0320Smrgint 35272adc0320Smrgmain () 35282adc0320Smrg{ 35292adc0320SmrgFILE *f = fopen ("conftest.out", "w"); 35302adc0320Smrg return ferror (f) || fclose (f) != 0; 35312adc0320Smrg 35322adc0320Smrg ; 35332adc0320Smrg return 0; 35342adc0320Smrg} 35352adc0320Smrg_ACEOF 35362adc0320Smrgac_clean_files="$ac_clean_files conftest.out" 35372adc0320Smrg# Check that the compiler produces executables we can run. If not, either 35382adc0320Smrg# the compiler is broken, or we cross compile. 35392adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 35402adc0320Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 35412adc0320Smrgif test "$cross_compiling" != yes; then 35422adc0320Smrg { { ac_try="$ac_link" 35432adc0320Smrgcase "(($ac_try" in 35442adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35452adc0320Smrg *) ac_try_echo=$ac_try;; 35462adc0320Smrgesac 35472adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35482adc0320Smrg$as_echo "$ac_try_echo"; } >&5 35492adc0320Smrg (eval "$ac_link") 2>&5 35502adc0320Smrg ac_status=$? 35512adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35522adc0320Smrg test $ac_status = 0; } 35532adc0320Smrg if { ac_try='./conftest$ac_cv_exeext' 35542adc0320Smrg { { case "(($ac_try" in 35552adc0320Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35562adc0320Smrg *) ac_try_echo=$ac_try;; 35572adc0320Smrgesac 35582adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35592adc0320Smrg$as_echo "$ac_try_echo"; } >&5 35602adc0320Smrg (eval "$ac_try") 2>&5 35612adc0320Smrg ac_status=$? 35622adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35632adc0320Smrg test $ac_status = 0; }; }; then 35642adc0320Smrg cross_compiling=no 35652adc0320Smrg else 35662adc0320Smrg if test "$cross_compiling" = maybe; then 35672adc0320Smrg cross_compiling=yes 35682adc0320Smrg else 35692adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35702adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35712adc0320Smrgas_fn_error $? "cannot run C compiled programs. 35722adc0320SmrgIf you meant to cross compile, use \`--host'. 35732adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 35742adc0320Smrg fi 35752adc0320Smrg fi 35762adc0320Smrgfi 35772adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 35782adc0320Smrg$as_echo "$cross_compiling" >&6; } 35792adc0320Smrg 35802adc0320Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 35812adc0320Smrgac_clean_files=$ac_clean_files_save 35822adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 35837366012aSmrg$as_echo_n "checking for suffix of object files... " >&6; } 35842adc0320Smrgif ${ac_cv_objext+:} false; then : 35857366012aSmrg $as_echo_n "(cached) " >&6 35867a0395d0Smrgelse 35872adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35887a0395d0Smrg/* end confdefs.h. */ 35897a0395d0Smrg 35907a0395d0Smrgint 35917a0395d0Smrgmain () 35927a0395d0Smrg{ 35937a0395d0Smrg 35947a0395d0Smrg ; 35957a0395d0Smrg return 0; 35967a0395d0Smrg} 35977a0395d0Smrg_ACEOF 35987a0395d0Smrgrm -f conftest.o conftest.obj 35992adc0320Smrgif { { ac_try="$ac_compile" 36007a0395d0Smrgcase "(($ac_try" in 36017a0395d0Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36027a0395d0Smrg *) ac_try_echo=$ac_try;; 36037a0395d0Smrgesac 36042adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 36052adc0320Smrg$as_echo "$ac_try_echo"; } >&5 36067a0395d0Smrg (eval "$ac_compile") 2>&5 36077a0395d0Smrg ac_status=$? 36082adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36092adc0320Smrg test $ac_status = 0; }; then : 36107a0395d0Smrg for ac_file in conftest.o conftest.obj conftest.*; do 36117a0395d0Smrg test -f "$ac_file" || continue; 36127a0395d0Smrg case $ac_file in 36137366012aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 36147a0395d0Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 36157a0395d0Smrg break;; 36167a0395d0Smrg esac 36177a0395d0Smrgdone 36187a0395d0Smrgelse 36197366012aSmrg $as_echo "$as_me: failed program was:" >&5 36207a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5 36217a0395d0Smrg 36222adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36237366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36242adc0320Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 36252adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 36267a0395d0Smrgfi 36277a0395d0Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 36287a0395d0Smrgfi 36292adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 36307366012aSmrg$as_echo "$ac_cv_objext" >&6; } 36317a0395d0SmrgOBJEXT=$ac_cv_objext 36327a0395d0Smrgac_objext=$OBJEXT 36332adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 36347366012aSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 36352adc0320Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 36367366012aSmrg $as_echo_n "(cached) " >&6 36377a0395d0Smrgelse 36382adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36397a0395d0Smrg/* end confdefs.h. */ 36407a0395d0Smrg 36417a0395d0Smrgint 36427a0395d0Smrgmain () 36437a0395d0Smrg{ 36447a0395d0Smrg#ifndef __GNUC__ 36457a0395d0Smrg choke me 36467a0395d0Smrg#endif 36477a0395d0Smrg 36487a0395d0Smrg ; 36497a0395d0Smrg return 0; 36507a0395d0Smrg} 36517a0395d0Smrg_ACEOF 36522adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 36537a0395d0Smrg ac_compiler_gnu=yes 36547a0395d0Smrgelse 36552adc0320Smrg ac_compiler_gnu=no 36567a0395d0Smrgfi 36577a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36587a0395d0Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 36597a0395d0Smrg 36607a0395d0Smrgfi 36612adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 36627366012aSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 36637366012aSmrgif test $ac_compiler_gnu = yes; then 36647366012aSmrg GCC=yes 36657366012aSmrgelse 36667366012aSmrg GCC= 36677366012aSmrgfi 36687a0395d0Smrgac_test_CFLAGS=${CFLAGS+set} 36697a0395d0Smrgac_save_CFLAGS=$CFLAGS 36702adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 36717366012aSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 36722adc0320Smrgif ${ac_cv_prog_cc_g+:} false; then : 36737366012aSmrg $as_echo_n "(cached) " >&6 36747a0395d0Smrgelse 36757a0395d0Smrg ac_save_c_werror_flag=$ac_c_werror_flag 36767a0395d0Smrg ac_c_werror_flag=yes 36777a0395d0Smrg ac_cv_prog_cc_g=no 36787a0395d0Smrg CFLAGS="-g" 36792adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36807a0395d0Smrg/* end confdefs.h. */ 36817a0395d0Smrg 36827a0395d0Smrgint 36837a0395d0Smrgmain () 36847a0395d0Smrg{ 36857a0395d0Smrg 36867a0395d0Smrg ; 36877a0395d0Smrg return 0; 36887a0395d0Smrg} 36897a0395d0Smrg_ACEOF 36902adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 36917a0395d0Smrg ac_cv_prog_cc_g=yes 36927a0395d0Smrgelse 36932adc0320Smrg CFLAGS="" 36942adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36957a0395d0Smrg/* end confdefs.h. */ 36967a0395d0Smrg 36977a0395d0Smrgint 36987a0395d0Smrgmain () 36997a0395d0Smrg{ 37007a0395d0Smrg 37017a0395d0Smrg ; 37027a0395d0Smrg return 0; 37037a0395d0Smrg} 37047a0395d0Smrg_ACEOF 37052adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 37067a0395d0Smrg 37072adc0320Smrgelse 37082adc0320Smrg ac_c_werror_flag=$ac_save_c_werror_flag 37097a0395d0Smrg CFLAGS="-g" 37102adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37117a0395d0Smrg/* end confdefs.h. */ 37127a0395d0Smrg 37132adc0320Smrgint 37142adc0320Smrgmain () 37152adc0320Smrg{ 37167a0395d0Smrg 37172adc0320Smrg ; 37182adc0320Smrg return 0; 37192adc0320Smrg} 37202adc0320Smrg_ACEOF 37212adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then : 37222adc0320Smrg ac_cv_prog_cc_g=yes 37237a0395d0Smrgfi 37247a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37257a0395d0Smrgfi 37267a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37277a0395d0Smrgfi 37287a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37297a0395d0Smrg ac_c_werror_flag=$ac_save_c_werror_flag 37307a0395d0Smrgfi 37312adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 37327366012aSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 37337a0395d0Smrgif test "$ac_test_CFLAGS" = set; then 37347a0395d0Smrg CFLAGS=$ac_save_CFLAGS 37357a0395d0Smrgelif test $ac_cv_prog_cc_g = yes; then 37367a0395d0Smrg if test "$GCC" = yes; then 37377a0395d0Smrg CFLAGS="-g -O2" 37387a0395d0Smrg else 37397a0395d0Smrg CFLAGS="-g" 37407a0395d0Smrg fi 37417a0395d0Smrgelse 37427a0395d0Smrg if test "$GCC" = yes; then 37437a0395d0Smrg CFLAGS="-O2" 37447a0395d0Smrg else 37457a0395d0Smrg CFLAGS= 37467a0395d0Smrg fi 37477a0395d0Smrgfi 37482adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 37497366012aSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 37502adc0320Smrgif ${ac_cv_prog_cc_c89+:} false; then : 37517366012aSmrg $as_echo_n "(cached) " >&6 37527a0395d0Smrgelse 37537a0395d0Smrg ac_cv_prog_cc_c89=no 37547a0395d0Smrgac_save_CC=$CC 37552adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 37567a0395d0Smrg/* end confdefs.h. */ 37577a0395d0Smrg#include <stdarg.h> 37587a0395d0Smrg#include <stdio.h> 37598abc0ccfSmrgstruct stat; 37607a0395d0Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 37617a0395d0Smrgstruct buf { int x; }; 37627a0395d0SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 37637a0395d0Smrgstatic char *e (p, i) 37647a0395d0Smrg char **p; 37657a0395d0Smrg int i; 37667a0395d0Smrg{ 37677a0395d0Smrg return p[i]; 37687a0395d0Smrg} 37697a0395d0Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 37707a0395d0Smrg{ 37717a0395d0Smrg char *s; 37727a0395d0Smrg va_list v; 37737a0395d0Smrg va_start (v,p); 37747a0395d0Smrg s = g (p, va_arg (v,int)); 37757a0395d0Smrg va_end (v); 37767a0395d0Smrg return s; 37777a0395d0Smrg} 37787a0395d0Smrg 37797a0395d0Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 37807a0395d0Smrg function prototypes and stuff, but not '\xHH' hex character constants. 37817a0395d0Smrg These don't provoke an error unfortunately, instead are silently treated 37827a0395d0Smrg as 'x'. The following induces an error, until -std is added to get 37837a0395d0Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 37847a0395d0Smrg array size at least. It's necessary to write '\x00'==0 to get something 37857a0395d0Smrg that's true only with -std. */ 37867a0395d0Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 37877a0395d0Smrg 37887a0395d0Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 37897a0395d0Smrg inside strings and character constants. */ 37907a0395d0Smrg#define FOO(x) 'x' 37917a0395d0Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 37927a0395d0Smrg 37937a0395d0Smrgint test (int i, double x); 37947a0395d0Smrgstruct s1 {int (*f) (int a);}; 37957a0395d0Smrgstruct s2 {int (*f) (double a);}; 37967a0395d0Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 37977a0395d0Smrgint argc; 37987a0395d0Smrgchar **argv; 37997a0395d0Smrgint 38007a0395d0Smrgmain () 38017a0395d0Smrg{ 38027a0395d0Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 38037a0395d0Smrg ; 38047a0395d0Smrg return 0; 38057a0395d0Smrg} 38067a0395d0Smrg_ACEOF 38077a0395d0Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 38087a0395d0Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 38097a0395d0Smrgdo 38107a0395d0Smrg CC="$ac_save_CC $ac_arg" 38112adc0320Smrg if ac_fn_c_try_compile "$LINENO"; then : 38127a0395d0Smrg ac_cv_prog_cc_c89=$ac_arg 38137a0395d0Smrgfi 38147a0395d0Smrgrm -f core conftest.err conftest.$ac_objext 38157a0395d0Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 38167a0395d0Smrgdone 38177a0395d0Smrgrm -f conftest.$ac_ext 38187a0395d0SmrgCC=$ac_save_CC 38197a0395d0Smrg 38207a0395d0Smrgfi 38217a0395d0Smrg# AC_CACHE_VAL 38227a0395d0Smrgcase "x$ac_cv_prog_cc_c89" in 38237a0395d0Smrg x) 38242adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 38257366012aSmrg$as_echo "none needed" >&6; } ;; 38267a0395d0Smrg xno) 38272adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 38287366012aSmrg$as_echo "unsupported" >&6; } ;; 38297a0395d0Smrg *) 38307a0395d0Smrg CC="$CC $ac_cv_prog_cc_c89" 38312adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 38327366012aSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 38337a0395d0Smrgesac 38342adc0320Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 38357a0395d0Smrg 38362adc0320Smrgfi 38377a0395d0Smrg 38387a0395d0Smrgac_ext=c 38397a0395d0Smrgac_cpp='$CPP $CPPFLAGS' 38407a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 38417a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 38427a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 38437a0395d0Smrg 384440c5344fSmrgac_ext=c 384540c5344fSmrgac_cpp='$CPP $CPPFLAGS' 384640c5344fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 384740c5344fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 384840c5344fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 384940c5344fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 385040c5344fSmrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 385140c5344fSmrgif ${am_cv_prog_cc_c_o+:} false; then : 385240c5344fSmrg $as_echo_n "(cached) " >&6 385340c5344fSmrgelse 385440c5344fSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 385540c5344fSmrg/* end confdefs.h. */ 385640c5344fSmrg 385740c5344fSmrgint 385840c5344fSmrgmain () 385940c5344fSmrg{ 386040c5344fSmrg 386140c5344fSmrg ; 386240c5344fSmrg return 0; 386340c5344fSmrg} 386440c5344fSmrg_ACEOF 386540c5344fSmrg # Make sure it works both with $CC and with simple cc. 386640c5344fSmrg # Following AC_PROG_CC_C_O, we do the test twice because some 386740c5344fSmrg # compilers refuse to overwrite an existing .o file with -o, 386840c5344fSmrg # though they will create one. 386940c5344fSmrg am_cv_prog_cc_c_o=yes 387040c5344fSmrg for am_i in 1 2; do 387140c5344fSmrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 387240c5344fSmrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 387340c5344fSmrg ac_status=$? 387440c5344fSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 387540c5344fSmrg (exit $ac_status); } \ 387640c5344fSmrg && test -f conftest2.$ac_objext; then 387740c5344fSmrg : OK 387840c5344fSmrg else 387940c5344fSmrg am_cv_prog_cc_c_o=no 388040c5344fSmrg break 388140c5344fSmrg fi 388240c5344fSmrg done 388340c5344fSmrg rm -f core conftest* 388440c5344fSmrg unset am_i 388540c5344fSmrgfi 388640c5344fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 388740c5344fSmrg$as_echo "$am_cv_prog_cc_c_o" >&6; } 388840c5344fSmrgif test "$am_cv_prog_cc_c_o" != yes; then 388940c5344fSmrg # Losing compiler, so override with the script. 389040c5344fSmrg # FIXME: It is wrong to rewrite CC. 389140c5344fSmrg # But if we don't then we get into trouble of one sort or another. 389240c5344fSmrg # A longer-term fix would be to have automake use am__CC in this case, 389340c5344fSmrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 389440c5344fSmrg CC="$am_aux_dir/compile $CC" 389540c5344fSmrgfi 389640c5344fSmrgac_ext=c 389740c5344fSmrgac_cpp='$CPP $CPPFLAGS' 389840c5344fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 389940c5344fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 390040c5344fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 390140c5344fSmrg 390240c5344fSmrg 39037a0395d0Smrgdepcc="$CC" am_compiler_list= 39047a0395d0Smrg 39052adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 39067366012aSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 39072adc0320Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 39087366012aSmrg $as_echo_n "(cached) " >&6 39097a0395d0Smrgelse 39107a0395d0Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 39117a0395d0Smrg # We make a subdir and do the tests there. Otherwise we can end up 39127a0395d0Smrg # making bogus files that we don't know about and never remove. For 39137a0395d0Smrg # instance it was reported that on HP-UX the gcc test will end up 39148abc0ccfSmrg # making a dummy file named 'D' -- because '-MD' means "put the output 39158abc0ccfSmrg # in D". 39168abc0ccfSmrg rm -rf conftest.dir 39177a0395d0Smrg mkdir conftest.dir 39187a0395d0Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 39197a0395d0Smrg # using a relative directory. 39207a0395d0Smrg cp "$am_depcomp" conftest.dir 39217a0395d0Smrg cd conftest.dir 39227a0395d0Smrg # We will build objects and dependencies in a subdirectory because 39237a0395d0Smrg # it helps to detect inapplicable dependency modes. For instance 39247a0395d0Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 39257a0395d0Smrg # side effect of compilation, but ICC will put the dependencies in 39267a0395d0Smrg # the current directory while Tru64 will put them in the object 39277a0395d0Smrg # directory. 39287a0395d0Smrg mkdir sub 39297a0395d0Smrg 39307a0395d0Smrg am_cv_CC_dependencies_compiler_type=none 39317a0395d0Smrg if test "$am_compiler_list" = ""; then 39327a0395d0Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 39337a0395d0Smrg fi 39347366012aSmrg am__universal=false 39357366012aSmrg case " $depcc " in #( 39367366012aSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 39377366012aSmrg esac 39387366012aSmrg 39397a0395d0Smrg for depmode in $am_compiler_list; do 39407a0395d0Smrg # Setup a source with many dependencies, because some compilers 39417a0395d0Smrg # like to wrap large dependency lists on column 80 (with \), and 39427a0395d0Smrg # we should not choose a depcomp mode which is confused by this. 39437a0395d0Smrg # 39447a0395d0Smrg # We need to recreate these files for each test, as the compiler may 39457a0395d0Smrg # overwrite some of them when testing with obscure command lines. 39467a0395d0Smrg # This happens at least with the AIX C compiler. 39477a0395d0Smrg : > sub/conftest.c 39487a0395d0Smrg for i in 1 2 3 4 5 6; do 39497a0395d0Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 39508abc0ccfSmrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 39518abc0ccfSmrg # Solaris 10 /bin/sh. 39528abc0ccfSmrg echo '/* dummy */' > sub/conftst$i.h 39537a0395d0Smrg done 39547a0395d0Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 39557a0395d0Smrg 39568abc0ccfSmrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 39572adc0320Smrg # mode. It turns out that the SunPro C++ compiler does not properly 39588abc0ccfSmrg # handle '-M -o', and we need to detect this. Also, some Intel 39598abc0ccfSmrg # versions had trouble with output in subdirs. 39602adc0320Smrg am__obj=sub/conftest.${OBJEXT-o} 39612adc0320Smrg am__minus_obj="-o $am__obj" 39622adc0320Smrg case $depmode in 39632adc0320Smrg gcc) 39642adc0320Smrg # This depmode causes a compiler race in universal mode. 39652adc0320Smrg test "$am__universal" = false || continue 39662adc0320Smrg ;; 39672adc0320Smrg nosideeffect) 39688abc0ccfSmrg # After this tag, mechanisms are not by side-effect, so they'll 39698abc0ccfSmrg # only be used when explicitly requested. 39702adc0320Smrg if test "x$enable_dependency_tracking" = xyes; then 39712adc0320Smrg continue 39722adc0320Smrg else 39732adc0320Smrg break 39742adc0320Smrg fi 39752adc0320Smrg ;; 39768abc0ccfSmrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 39778abc0ccfSmrg # This compiler won't grok '-c -o', but also, the minuso test has 39782adc0320Smrg # not run yet. These depmodes are late enough in the game, and 39792adc0320Smrg # so weak that their functioning should not be impacted. 39802adc0320Smrg am__obj=conftest.${OBJEXT-o} 39812adc0320Smrg am__minus_obj= 39822adc0320Smrg ;; 39832adc0320Smrg none) break ;; 39842adc0320Smrg esac 39852adc0320Smrg if depmode=$depmode \ 39862adc0320Smrg source=sub/conftest.c object=$am__obj \ 39872adc0320Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 39882adc0320Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 39892adc0320Smrg >/dev/null 2>conftest.err && 39902adc0320Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 39912adc0320Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 39922adc0320Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 39932adc0320Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 39942adc0320Smrg # icc doesn't choke on unknown options, it will just issue warnings 39952adc0320Smrg # or remarks (even with -Werror). So we grep stderr for any message 39962adc0320Smrg # that says an option was ignored or not supported. 39972adc0320Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 39982adc0320Smrg # icc: Command line warning: ignoring option '-M'; no argument required 39992adc0320Smrg # The diagnosis changed in icc 8.0: 40002adc0320Smrg # icc: Command line remark: option '-MP' not supported 40012adc0320Smrg if (grep 'ignoring option' conftest.err || 40022adc0320Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 40032adc0320Smrg am_cv_CC_dependencies_compiler_type=$depmode 40042adc0320Smrg break 40052adc0320Smrg fi 40062adc0320Smrg fi 40072adc0320Smrg done 40082adc0320Smrg 40092adc0320Smrg cd .. 40102adc0320Smrg rm -rf conftest.dir 40112adc0320Smrgelse 40122adc0320Smrg am_cv_CC_dependencies_compiler_type=none 40132adc0320Smrgfi 40142adc0320Smrg 40152adc0320Smrgfi 40162adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 40172adc0320Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 40182adc0320SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 40192adc0320Smrg 40202adc0320Smrg if 40212adc0320Smrg test "x$enable_dependency_tracking" != xno \ 40222adc0320Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 40232adc0320Smrg am__fastdepCC_TRUE= 40242adc0320Smrg am__fastdepCC_FALSE='#' 40252adc0320Smrgelse 40262adc0320Smrg am__fastdepCC_TRUE='#' 40272adc0320Smrg am__fastdepCC_FALSE= 40282adc0320Smrgfi 40292adc0320Smrg 40302adc0320Smrg 40319a011757Smrg 40329a011757Smrgac_ext=c 40339a011757Smrgac_cpp='$CPP $CPPFLAGS' 40349a011757Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40359a011757Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40369a011757Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 40379a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 40389a011757Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 40399a011757Smrg# On Suns, sometimes $CPP names a directory. 40409a011757Smrgif test -n "$CPP" && test -d "$CPP"; then 40419a011757Smrg CPP= 40429a011757Smrgfi 40439a011757Smrgif test -z "$CPP"; then 40449a011757Smrg if ${ac_cv_prog_CPP+:} false; then : 40452adc0320Smrg $as_echo_n "(cached) " >&6 40462adc0320Smrgelse 40479a011757Smrg # Double quotes because CPP needs to be expanded 40489a011757Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 40499a011757Smrg do 40509a011757Smrg ac_preproc_ok=false 40519a011757Smrgfor ac_c_preproc_warn_flag in '' yes 40529a011757Smrgdo 40539a011757Smrg # Use a header file that comes with gcc, so configuring glibc 40549a011757Smrg # with a fresh cross-compiler works. 40559a011757Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 40569a011757Smrg # <limits.h> exists even on freestanding compilers. 40579a011757Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 40589a011757Smrg # not just through cpp. "Syntax error" is here to catch this case. 40599a011757Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40602adc0320Smrg/* end confdefs.h. */ 40619a011757Smrg#ifdef __STDC__ 40629a011757Smrg# include <limits.h> 40632adc0320Smrg#else 40649a011757Smrg# include <assert.h> 40652adc0320Smrg#endif 40669a011757Smrg Syntax error 40679a011757Smrg_ACEOF 40689a011757Smrgif ac_fn_c_try_cpp "$LINENO"; then : 40692adc0320Smrg 40709a011757Smrgelse 40719a011757Smrg # Broken: fails on valid input. 40729a011757Smrgcontinue 40739a011757Smrgfi 40749a011757Smrgrm -f conftest.err conftest.i conftest.$ac_ext 40752adc0320Smrg 40769a011757Smrg # OK, works on sane cases. Now check whether nonexistent headers 40779a011757Smrg # can be detected and how. 40789a011757Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40799a011757Smrg/* end confdefs.h. */ 40809a011757Smrg#include <ac_nonexistent.h> 40819a011757Smrg_ACEOF 40829a011757Smrgif ac_fn_c_try_cpp "$LINENO"; then : 40839a011757Smrg # Broken: success on invalid input. 40849a011757Smrgcontinue 40859a011757Smrgelse 40869a011757Smrg # Passes both tests. 40879a011757Smrgac_preproc_ok=: 40889a011757Smrgbreak 40899a011757Smrgfi 40909a011757Smrgrm -f conftest.err conftest.i conftest.$ac_ext 40912adc0320Smrg 40929a011757Smrgdone 40939a011757Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 40949a011757Smrgrm -f conftest.i conftest.err conftest.$ac_ext 40959a011757Smrgif $ac_preproc_ok; then : 40969a011757Smrg break 40979a011757Smrgfi 40982adc0320Smrg 40999a011757Smrg done 41009a011757Smrg ac_cv_prog_CPP=$CPP 41017a0395d0Smrg 41027a0395d0Smrgfi 41037a0395d0Smrg CPP=$ac_cv_prog_CPP 41047a0395d0Smrgelse 41057a0395d0Smrg ac_cv_prog_CPP=$CPP 41067a0395d0Smrgfi 41072adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 41087366012aSmrg$as_echo "$CPP" >&6; } 41097a0395d0Smrgac_preproc_ok=false 41107a0395d0Smrgfor ac_c_preproc_warn_flag in '' yes 41117a0395d0Smrgdo 41127a0395d0Smrg # Use a header file that comes with gcc, so configuring glibc 41137a0395d0Smrg # with a fresh cross-compiler works. 41147a0395d0Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 41157a0395d0Smrg # <limits.h> exists even on freestanding compilers. 41162adc0320Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 41172adc0320Smrg # not just through cpp. "Syntax error" is here to catch this case. 41182adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41192adc0320Smrg/* end confdefs.h. */ 41202adc0320Smrg#ifdef __STDC__ 41212adc0320Smrg# include <limits.h> 41222adc0320Smrg#else 41232adc0320Smrg# include <assert.h> 41242adc0320Smrg#endif 41252adc0320Smrg Syntax error 41262adc0320Smrg_ACEOF 41272adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then : 41287a0395d0Smrg 41292adc0320Smrgelse 41307a0395d0Smrg # Broken: fails on valid input. 41317a0395d0Smrgcontinue 41327a0395d0Smrgfi 41332adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext 41347a0395d0Smrg 41357a0395d0Smrg # OK, works on sane cases. Now check whether nonexistent headers 41367a0395d0Smrg # can be detected and how. 41372adc0320Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41387a0395d0Smrg/* end confdefs.h. */ 41397a0395d0Smrg#include <ac_nonexistent.h> 41407a0395d0Smrg_ACEOF 41412adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then : 41427a0395d0Smrg # Broken: success on invalid input. 41437a0395d0Smrgcontinue 41447a0395d0Smrgelse 41457a0395d0Smrg # Passes both tests. 41467a0395d0Smrgac_preproc_ok=: 41477a0395d0Smrgbreak 41487a0395d0Smrgfi 41492adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext 41507a0395d0Smrg 41517a0395d0Smrgdone 41527a0395d0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 41532adc0320Smrgrm -f conftest.i conftest.err conftest.$ac_ext 41542adc0320Smrgif $ac_preproc_ok; then : 41552adc0320Smrg 41567a0395d0Smrgelse 41572adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41587366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41592adc0320Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 41602adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 41617a0395d0Smrgfi 41627a0395d0Smrg 41637a0395d0Smrgac_ext=c 41647a0395d0Smrgac_cpp='$CPP $CPPFLAGS' 41657a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41667a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41677a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 41687a0395d0Smrg 41697a0395d0Smrg 41702adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 41717366012aSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 41722adc0320Smrgif ${ac_cv_path_GREP+:} false; then : 41737366012aSmrg $as_echo_n "(cached) " >&6 41747a0395d0Smrgelse 41757366012aSmrg if test -z "$GREP"; then 41767a0395d0Smrg ac_path_GREP_found=false 41777366012aSmrg # Loop through the user's path and test for each of PROGNAME-LIST 41787366012aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41797a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 41807a0395d0Smrgdo 41817a0395d0Smrg IFS=$as_save_IFS 41827a0395d0Smrg test -z "$as_dir" && as_dir=. 41832adc0320Smrg for ac_prog in grep ggrep; do 41847366012aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 41857366012aSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 41868abc0ccfSmrg as_fn_executable_p "$ac_path_GREP" || continue 41877366012aSmrg# Check for GNU ac_path_GREP and select it if it is found. 41887a0395d0Smrg # Check for GNU $ac_path_GREP 41897a0395d0Smrgcase `"$ac_path_GREP" --version 2>&1` in 41907a0395d0Smrg*GNU*) 41917a0395d0Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 41927a0395d0Smrg*) 41937a0395d0Smrg ac_count=0 41947366012aSmrg $as_echo_n 0123456789 >"conftest.in" 41957a0395d0Smrg while : 41967a0395d0Smrg do 41977a0395d0Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 41987a0395d0Smrg mv "conftest.tmp" "conftest.in" 41997a0395d0Smrg cp "conftest.in" "conftest.nl" 42007366012aSmrg $as_echo 'GREP' >> "conftest.nl" 42017a0395d0Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 42027a0395d0Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 42032adc0320Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 42047a0395d0Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 42057a0395d0Smrg # Best one so far, save it but keep looking for a better one 42067a0395d0Smrg ac_cv_path_GREP="$ac_path_GREP" 42077a0395d0Smrg ac_path_GREP_max=$ac_count 42087a0395d0Smrg fi 42097a0395d0Smrg # 10*(2^10) chars as input seems more than enough 42107a0395d0Smrg test $ac_count -gt 10 && break 42117a0395d0Smrg done 42127a0395d0Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 42137a0395d0Smrgesac 42147a0395d0Smrg 42157366012aSmrg $ac_path_GREP_found && break 3 42167366012aSmrg done 42177a0395d0Smrg done 42182adc0320Smrg done 42197a0395d0SmrgIFS=$as_save_IFS 42207366012aSmrg if test -z "$ac_cv_path_GREP"; then 42212adc0320Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 42227366012aSmrg fi 42237a0395d0Smrgelse 42247a0395d0Smrg ac_cv_path_GREP=$GREP 42257a0395d0Smrgfi 42267a0395d0Smrg 42277a0395d0Smrgfi 42282adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 42297366012aSmrg$as_echo "$ac_cv_path_GREP" >&6; } 42307a0395d0Smrg GREP="$ac_cv_path_GREP" 42317a0395d0Smrg 42327a0395d0Smrg 42332adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 42347366012aSmrg$as_echo_n "checking for egrep... " >&6; } 42352adc0320Smrgif ${ac_cv_path_EGREP+:} false; then : 42367366012aSmrg $as_echo_n "(cached) " >&6 42377a0395d0Smrgelse 42387a0395d0Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 42397a0395d0Smrg then ac_cv_path_EGREP="$GREP -E" 42407a0395d0Smrg else 42417366012aSmrg if test -z "$EGREP"; then 42427a0395d0Smrg ac_path_EGREP_found=false 42437366012aSmrg # Loop through the user's path and test for each of PROGNAME-LIST 42447366012aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42457a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 42467a0395d0Smrgdo 42477a0395d0Smrg IFS=$as_save_IFS 42487a0395d0Smrg test -z "$as_dir" && as_dir=. 42492adc0320Smrg for ac_prog in egrep; do 42507366012aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 42517366012aSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 42528abc0ccfSmrg as_fn_executable_p "$ac_path_EGREP" || continue 42537366012aSmrg# Check for GNU ac_path_EGREP and select it if it is found. 42547a0395d0Smrg # Check for GNU $ac_path_EGREP 42557a0395d0Smrgcase `"$ac_path_EGREP" --version 2>&1` in 42567a0395d0Smrg*GNU*) 42577a0395d0Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 42587a0395d0Smrg*) 42597a0395d0Smrg ac_count=0 42607366012aSmrg $as_echo_n 0123456789 >"conftest.in" 42617a0395d0Smrg while : 42627a0395d0Smrg do 42637a0395d0Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 42647a0395d0Smrg mv "conftest.tmp" "conftest.in" 42657a0395d0Smrg cp "conftest.in" "conftest.nl" 42667366012aSmrg $as_echo 'EGREP' >> "conftest.nl" 42677a0395d0Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 42687a0395d0Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 42692adc0320Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 42707a0395d0Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 42717a0395d0Smrg # Best one so far, save it but keep looking for a better one 42727a0395d0Smrg ac_cv_path_EGREP="$ac_path_EGREP" 42737a0395d0Smrg ac_path_EGREP_max=$ac_count 42747a0395d0Smrg fi 42757a0395d0Smrg # 10*(2^10) chars as input seems more than enough 42767a0395d0Smrg test $ac_count -gt 10 && break 42777a0395d0Smrg done 42787a0395d0Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 42797a0395d0Smrgesac 42807a0395d0Smrg 42817366012aSmrg $ac_path_EGREP_found && break 3 42827366012aSmrg done 42837a0395d0Smrg done 42842adc0320Smrg done 42857a0395d0SmrgIFS=$as_save_IFS 42867366012aSmrg if test -z "$ac_cv_path_EGREP"; then 42872adc0320Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 42887366012aSmrg fi 42897a0395d0Smrgelse 42907a0395d0Smrg ac_cv_path_EGREP=$EGREP 42917a0395d0Smrgfi 42927a0395d0Smrg 42937a0395d0Smrg fi 42947a0395d0Smrgfi 42952adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 42967366012aSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 42977a0395d0Smrg EGREP="$ac_cv_path_EGREP" 42987a0395d0Smrg 42997a0395d0Smrg 43009a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 43019a011757Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 43029a011757Smrgif ${ac_cv_header_stdc+:} false; then : 43039a011757Smrg $as_echo_n "(cached) " >&6 43049a011757Smrgelse 43059a011757Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43069a011757Smrg/* end confdefs.h. */ 43079a011757Smrg#include <stdlib.h> 43089a011757Smrg#include <stdarg.h> 43099a011757Smrg#include <string.h> 43109a011757Smrg#include <float.h> 43119a011757Smrg 43129a011757Smrgint 43139a011757Smrgmain () 43149a011757Smrg{ 43159a011757Smrg 43169a011757Smrg ; 43179a011757Smrg return 0; 43189a011757Smrg} 43199a011757Smrg_ACEOF 43209a011757Smrgif ac_fn_c_try_compile "$LINENO"; then : 43219a011757Smrg ac_cv_header_stdc=yes 43229a011757Smrgelse 43239a011757Smrg ac_cv_header_stdc=no 43249a011757Smrgfi 43259a011757Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43269a011757Smrg 43279a011757Smrgif test $ac_cv_header_stdc = yes; then 43289a011757Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 43299a011757Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43309a011757Smrg/* end confdefs.h. */ 43319a011757Smrg#include <string.h> 43329a011757Smrg 43339a011757Smrg_ACEOF 43349a011757Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43359a011757Smrg $EGREP "memchr" >/dev/null 2>&1; then : 43369a011757Smrg 43379a011757Smrgelse 43389a011757Smrg ac_cv_header_stdc=no 43399a011757Smrgfi 43409a011757Smrgrm -f conftest* 43419a011757Smrg 43429a011757Smrgfi 43439a011757Smrg 43449a011757Smrgif test $ac_cv_header_stdc = yes; then 43459a011757Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 43469a011757Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43479a011757Smrg/* end confdefs.h. */ 43489a011757Smrg#include <stdlib.h> 43499a011757Smrg 43509a011757Smrg_ACEOF 43519a011757Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43529a011757Smrg $EGREP "free" >/dev/null 2>&1; then : 43539a011757Smrg 43549a011757Smrgelse 43559a011757Smrg ac_cv_header_stdc=no 43569a011757Smrgfi 43579a011757Smrgrm -f conftest* 43589a011757Smrg 43599a011757Smrgfi 43609a011757Smrg 43619a011757Smrgif test $ac_cv_header_stdc = yes; then 43629a011757Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 43639a011757Smrg if test "$cross_compiling" = yes; then : 43649a011757Smrg : 43659a011757Smrgelse 43669a011757Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43679a011757Smrg/* end confdefs.h. */ 43689a011757Smrg#include <ctype.h> 43699a011757Smrg#include <stdlib.h> 43709a011757Smrg#if ((' ' & 0x0FF) == 0x020) 43719a011757Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 43729a011757Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 43739a011757Smrg#else 43749a011757Smrg# define ISLOWER(c) \ 43759a011757Smrg (('a' <= (c) && (c) <= 'i') \ 43769a011757Smrg || ('j' <= (c) && (c) <= 'r') \ 43779a011757Smrg || ('s' <= (c) && (c) <= 'z')) 43789a011757Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 43799a011757Smrg#endif 43809a011757Smrg 43819a011757Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 43829a011757Smrgint 43839a011757Smrgmain () 43849a011757Smrg{ 43859a011757Smrg int i; 43869a011757Smrg for (i = 0; i < 256; i++) 43879a011757Smrg if (XOR (islower (i), ISLOWER (i)) 43889a011757Smrg || toupper (i) != TOUPPER (i)) 43899a011757Smrg return 2; 43909a011757Smrg return 0; 43919a011757Smrg} 43929a011757Smrg_ACEOF 43939a011757Smrgif ac_fn_c_try_run "$LINENO"; then : 43949a011757Smrg 43959a011757Smrgelse 43969a011757Smrg ac_cv_header_stdc=no 43979a011757Smrgfi 43989a011757Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 43999a011757Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 44009a011757Smrgfi 44019a011757Smrg 44029a011757Smrgfi 44039a011757Smrgfi 44049a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 44059a011757Smrg$as_echo "$ac_cv_header_stdc" >&6; } 44069a011757Smrgif test $ac_cv_header_stdc = yes; then 44079a011757Smrg 44089a011757Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 44099a011757Smrg 44109a011757Smrgfi 44119a011757Smrg 44129a011757Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 44139a011757Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 44149a011757Smrg inttypes.h stdint.h unistd.h 44159a011757Smrgdo : 44169a011757Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44179a011757Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 44189a011757Smrg" 44199a011757Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44209a011757Smrg cat >>confdefs.h <<_ACEOF 44219a011757Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44229a011757Smrg_ACEOF 44239a011757Smrg 44249a011757Smrgfi 44259a011757Smrg 44269a011757Smrgdone 44279a011757Smrg 44289a011757Smrg 44299a011757Smrg 44309a011757Smrg ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 44319a011757Smrgif test "x$ac_cv_header_minix_config_h" = xyes; then : 44329a011757Smrg MINIX=yes 44339a011757Smrgelse 44349a011757Smrg MINIX= 44359a011757Smrgfi 44369a011757Smrg 44379a011757Smrg 44389a011757Smrg if test "$MINIX" = yes; then 44399a011757Smrg 44409a011757Smrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 44419a011757Smrg 44429a011757Smrg 44439a011757Smrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 44449a011757Smrg 44459a011757Smrg 44469a011757Smrg$as_echo "#define _MINIX 1" >>confdefs.h 44479a011757Smrg 44489a011757Smrg fi 44499a011757Smrg 44509a011757Smrg 44519a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 44529a011757Smrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 44539a011757Smrgif ${ac_cv_safe_to_define___extensions__+:} false; then : 44549a011757Smrg $as_echo_n "(cached) " >&6 44559a011757Smrgelse 44569a011757Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44579a011757Smrg/* end confdefs.h. */ 44589a011757Smrg 44599a011757Smrg# define __EXTENSIONS__ 1 44609a011757Smrg $ac_includes_default 44619a011757Smrgint 44629a011757Smrgmain () 44639a011757Smrg{ 44649a011757Smrg 44659a011757Smrg ; 44669a011757Smrg return 0; 44679a011757Smrg} 44689a011757Smrg_ACEOF 44699a011757Smrgif ac_fn_c_try_compile "$LINENO"; then : 44709a011757Smrg ac_cv_safe_to_define___extensions__=yes 44719a011757Smrgelse 44729a011757Smrg ac_cv_safe_to_define___extensions__=no 44739a011757Smrgfi 44749a011757Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 44759a011757Smrgfi 44769a011757Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 44779a011757Smrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 44789a011757Smrg test $ac_cv_safe_to_define___extensions__ = yes && 44799a011757Smrg $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 44809a011757Smrg 44819a011757Smrg $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 44829a011757Smrg 44839a011757Smrg $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 44849a011757Smrg 44859a011757Smrg $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 44869a011757Smrg 44879a011757Smrg $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 44889a011757Smrg 44899a011757Smrg 44909a011757Smrg 44919a011757Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 44929a011757Smrg 44939a011757Smrg 44949a011757Smrg 44959a011757Smrg 44969a011757Smrg 44979a011757Smrg 44989a011757Smrg 44999a011757Smrg 45009a011757Smrg 45019a011757Smrg 45029a011757Smrg 45039a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 45049a011757Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 45059a011757Smrgif ${ac_cv_prog_cc_c99+:} false; then : 45069a011757Smrg $as_echo_n "(cached) " >&6 45079a011757Smrgelse 45089a011757Smrg ac_cv_prog_cc_c99=no 45099a011757Smrgac_save_CC=$CC 45109a011757Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 45119a011757Smrg/* end confdefs.h. */ 45129a011757Smrg#include <stdarg.h> 45139a011757Smrg#include <stdbool.h> 45149a011757Smrg#include <stdlib.h> 45159a011757Smrg#include <wchar.h> 45169a011757Smrg#include <stdio.h> 45179a011757Smrg 45189a011757Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 45199a011757Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 45209a011757Smrg#define showlist(...) puts (#__VA_ARGS__) 45219a011757Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 45229a011757Smrgstatic void 45239a011757Smrgtest_varargs_macros (void) 45249a011757Smrg{ 45259a011757Smrg int x = 1234; 45269a011757Smrg int y = 5678; 45279a011757Smrg debug ("Flag"); 45289a011757Smrg debug ("X = %d\n", x); 45299a011757Smrg showlist (The first, second, and third items.); 45309a011757Smrg report (x>y, "x is %d but y is %d", x, y); 45319a011757Smrg} 45329a011757Smrg 45339a011757Smrg// Check long long types. 45349a011757Smrg#define BIG64 18446744073709551615ull 45359a011757Smrg#define BIG32 4294967295ul 45369a011757Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 45379a011757Smrg#if !BIG_OK 45389a011757Smrg your preprocessor is broken; 45399a011757Smrg#endif 45409a011757Smrg#if BIG_OK 45419a011757Smrg#else 45429a011757Smrg your preprocessor is broken; 45439a011757Smrg#endif 45449a011757Smrgstatic long long int bignum = -9223372036854775807LL; 45459a011757Smrgstatic unsigned long long int ubignum = BIG64; 45469a011757Smrg 45479a011757Smrgstruct incomplete_array 45489a011757Smrg{ 45499a011757Smrg int datasize; 45509a011757Smrg double data[]; 45519a011757Smrg}; 45529a011757Smrg 45539a011757Smrgstruct named_init { 45549a011757Smrg int number; 45559a011757Smrg const wchar_t *name; 45569a011757Smrg double average; 45579a011757Smrg}; 45589a011757Smrg 45599a011757Smrgtypedef const char *ccp; 45609a011757Smrg 45619a011757Smrgstatic inline int 45629a011757Smrgtest_restrict (ccp restrict text) 45639a011757Smrg{ 45649a011757Smrg // See if C++-style comments work. 45659a011757Smrg // Iterate through items via the restricted pointer. 45669a011757Smrg // Also check for declarations in for loops. 45679a011757Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 45689a011757Smrg continue; 45699a011757Smrg return 0; 45709a011757Smrg} 45717a0395d0Smrg 45729a011757Smrg// Check varargs and va_copy. 45739a011757Smrgstatic void 45749a011757Smrgtest_varargs (const char *format, ...) 45757a0395d0Smrg{ 45769a011757Smrg va_list args; 45779a011757Smrg va_start (args, format); 45789a011757Smrg va_list args_copy; 45799a011757Smrg va_copy (args_copy, args); 45807a0395d0Smrg 45819a011757Smrg const char *str; 45829a011757Smrg int number; 45839a011757Smrg float fnumber; 45849a011757Smrg 45859a011757Smrg while (*format) 45869a011757Smrg { 45879a011757Smrg switch (*format++) 45889a011757Smrg { 45899a011757Smrg case 's': // string 45909a011757Smrg str = va_arg (args_copy, const char *); 45919a011757Smrg break; 45929a011757Smrg case 'd': // int 45939a011757Smrg number = va_arg (args_copy, int); 45949a011757Smrg break; 45959a011757Smrg case 'f': // float 45969a011757Smrg fnumber = va_arg (args_copy, double); 45979a011757Smrg break; 45989a011757Smrg default: 45999a011757Smrg break; 46009a011757Smrg } 46019a011757Smrg } 46029a011757Smrg va_end (args_copy); 46039a011757Smrg va_end (args); 46047a0395d0Smrg} 46057a0395d0Smrg 46069a011757Smrgint 46079a011757Smrgmain () 46089a011757Smrg{ 46097a0395d0Smrg 46109a011757Smrg // Check bool. 46119a011757Smrg _Bool success = false; 46122adc0320Smrg 46139a011757Smrg // Check restrict. 46149a011757Smrg if (test_restrict ("String literal") == 0) 46159a011757Smrg success = true; 46169a011757Smrg char *restrict newvar = "Another string"; 46177a0395d0Smrg 46189a011757Smrg // Check varargs. 46199a011757Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 46209a011757Smrg test_varargs_macros (); 46217a0395d0Smrg 46229a011757Smrg // Check flexible array members. 46239a011757Smrg struct incomplete_array *ia = 46249a011757Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 46259a011757Smrg ia->datasize = 10; 46269a011757Smrg for (int i = 0; i < ia->datasize; ++i) 46279a011757Smrg ia->data[i] = i * 1.234; 46287a0395d0Smrg 46299a011757Smrg // Check named initializers. 46309a011757Smrg struct named_init ni = { 46319a011757Smrg .number = 34, 46329a011757Smrg .name = L"Test wide string", 46339a011757Smrg .average = 543.34343, 46349a011757Smrg }; 46352adc0320Smrg 46369a011757Smrg ni.number = 58; 46377a0395d0Smrg 46389a011757Smrg int dynamic_array[ni.number]; 46399a011757Smrg dynamic_array[ni.number - 1] = 543; 46407a0395d0Smrg 46419a011757Smrg // work around unused variable warnings 46429a011757Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 46439a011757Smrg || dynamic_array[ni.number - 1] != 543); 46447a0395d0Smrg 46459a011757Smrg ; 46467a0395d0Smrg return 0; 46477a0395d0Smrg} 46487a0395d0Smrg_ACEOF 46499a011757Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 46509a011757Smrgdo 46519a011757Smrg CC="$ac_save_CC $ac_arg" 46529a011757Smrg if ac_fn_c_try_compile "$LINENO"; then : 46539a011757Smrg ac_cv_prog_cc_c99=$ac_arg 46547a0395d0Smrgfi 46559a011757Smrgrm -f core conftest.err conftest.$ac_objext 46569a011757Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 46579a011757Smrgdone 46589a011757Smrgrm -f conftest.$ac_ext 46599a011757SmrgCC=$ac_save_CC 46607366012aSmrg 46617366012aSmrgfi 46629a011757Smrg# AC_CACHE_VAL 46639a011757Smrgcase "x$ac_cv_prog_cc_c99" in 46649a011757Smrg x) 46659a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 46669a011757Smrg$as_echo "none needed" >&6; } ;; 46679a011757Smrg xno) 46689a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 46699a011757Smrg$as_echo "unsupported" >&6; } ;; 46709a011757Smrg *) 46719a011757Smrg CC="$CC $ac_cv_prog_cc_c99" 46729a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 46739a011757Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 46749a011757Smrgesac 46759a011757Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 46767366012aSmrg 46777366012aSmrgfi 46787366012aSmrg 46797366012aSmrg 46807366012aSmrg 46817366012aSmrg 46822852888eSmrg 46832852888eSmrg 468496402570Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 468596402570Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 468696402570Smrg CLANGCC="yes" 468796402570Smrgelse 468896402570Smrg CLANGCC="no" 468996402570Smrgfi 469096402570Smrg 469196402570Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 469296402570Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 469396402570Smrg INTELCC="yes" 469496402570Smrgelse 469596402570Smrg INTELCC="no" 469696402570Smrgfi 469796402570Smrg 469896402570Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 469996402570Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 470096402570Smrg SUNCC="yes" 470196402570Smrgelse 470296402570Smrg SUNCC="no" 470396402570Smrgfi 470496402570Smrg 470596402570Smrg 47062852888eSmrg 47072852888eSmrg 47088abc0ccfSmrg 47098abc0ccfSmrg 47108abc0ccfSmrg 47118abc0ccfSmrg 47128abc0ccfSmrg 47132adc0320Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 47142adc0320Smrg if test -n "$ac_tool_prefix"; then 47152adc0320Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 47162adc0320Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 47172adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47182adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; } 47192adc0320Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 47202adc0320Smrg $as_echo_n "(cached) " >&6 47212adc0320Smrgelse 47222adc0320Smrg case $PKG_CONFIG in 47232adc0320Smrg [\\/]* | ?:[\\/]*) 47242adc0320Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 47252adc0320Smrg ;; 47262adc0320Smrg *) 47272adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47282adc0320Smrgfor as_dir in $PATH 47297366012aSmrgdo 47302adc0320Smrg IFS=$as_save_IFS 47312adc0320Smrg test -z "$as_dir" && as_dir=. 47322adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 47338abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47342adc0320Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 47352adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47362adc0320Smrg break 2 47372adc0320Smrg fi 47382adc0320Smrgdone 47392adc0320Smrg done 47402adc0320SmrgIFS=$as_save_IFS 47412adc0320Smrg 47422adc0320Smrg ;; 47437366012aSmrgesac 47442adc0320Smrgfi 47452adc0320SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 47462adc0320Smrgif test -n "$PKG_CONFIG"; then 47472adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 47482adc0320Smrg$as_echo "$PKG_CONFIG" >&6; } 47497366012aSmrgelse 47502adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47512adc0320Smrg$as_echo "no" >&6; } 47527366012aSmrgfi 47537366012aSmrg 47547366012aSmrg 47557366012aSmrgfi 47562adc0320Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 47572adc0320Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 47582adc0320Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 47592adc0320Smrgset dummy pkg-config; ac_word=$2 47602adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47612adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; } 47622adc0320Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 47632adc0320Smrg $as_echo_n "(cached) " >&6 47642adc0320Smrgelse 47652adc0320Smrg case $ac_pt_PKG_CONFIG in 47662adc0320Smrg [\\/]* | ?:[\\/]*) 47672adc0320Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 47682adc0320Smrg ;; 47697366012aSmrg *) 47702adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47712adc0320Smrgfor as_dir in $PATH 47722adc0320Smrgdo 47732adc0320Smrg IFS=$as_save_IFS 47742adc0320Smrg test -z "$as_dir" && as_dir=. 47752adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 47768abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47772adc0320Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 47782adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47792adc0320Smrg break 2 47802adc0320Smrg fi 47812adc0320Smrgdone 47822adc0320Smrg done 47832adc0320SmrgIFS=$as_save_IFS 47842adc0320Smrg 47852adc0320Smrg ;; 47867366012aSmrgesac 47872adc0320Smrgfi 47882adc0320Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 47892adc0320Smrgif test -n "$ac_pt_PKG_CONFIG"; then 47902adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 47912adc0320Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 47922adc0320Smrgelse 47932adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47942adc0320Smrg$as_echo "no" >&6; } 47952adc0320Smrgfi 47967366012aSmrg 47972adc0320Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 47982adc0320Smrg PKG_CONFIG="" 47992adc0320Smrg else 48002adc0320Smrg case $cross_compiling:$ac_tool_warned in 48012adc0320Smrgyes:) 48022adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 48032adc0320Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 48042adc0320Smrgac_tool_warned=yes ;; 48052adc0320Smrgesac 48062adc0320Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 48072adc0320Smrg fi 48082adc0320Smrgelse 48092adc0320Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 48102adc0320Smrgfi 48117366012aSmrg 48122adc0320Smrgfi 48132adc0320Smrgif test -n "$PKG_CONFIG"; then 48142adc0320Smrg _pkg_min_version=0.9.0 48152adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 48162adc0320Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 48172adc0320Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 48182adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48192adc0320Smrg$as_echo "yes" >&6; } 48202adc0320Smrg else 48212adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48222adc0320Smrg$as_echo "no" >&6; } 48232adc0320Smrg PKG_CONFIG="" 48242adc0320Smrg fi 48252adc0320Smrgfi 48267366012aSmrg# Make sure we can run config.sub. 48277366012aSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 48282adc0320Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 48297366012aSmrg 48302adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 48317366012aSmrg$as_echo_n "checking build system type... " >&6; } 48322adc0320Smrgif ${ac_cv_build+:} false; then : 48337366012aSmrg $as_echo_n "(cached) " >&6 48347366012aSmrgelse 48357366012aSmrg ac_build_alias=$build_alias 48367366012aSmrgtest "x$ac_build_alias" = x && 48377366012aSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 48387366012aSmrgtest "x$ac_build_alias" = x && 48392adc0320Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 48407366012aSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 48412adc0320Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 48427366012aSmrg 48437366012aSmrgfi 48442adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 48457366012aSmrg$as_echo "$ac_cv_build" >&6; } 48467366012aSmrgcase $ac_cv_build in 48477366012aSmrg*-*-*) ;; 48482adc0320Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 48497366012aSmrgesac 48507366012aSmrgbuild=$ac_cv_build 48517366012aSmrgac_save_IFS=$IFS; IFS='-' 48527366012aSmrgset x $ac_cv_build 48537366012aSmrgshift 48547366012aSmrgbuild_cpu=$1 48557366012aSmrgbuild_vendor=$2 48567366012aSmrgshift; shift 48577366012aSmrg# Remember, the first character of IFS is used to create $*, 48587366012aSmrg# except with old shells: 48597366012aSmrgbuild_os=$* 48607366012aSmrgIFS=$ac_save_IFS 48617366012aSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 48627366012aSmrg 48637366012aSmrg 48642adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 48657366012aSmrg$as_echo_n "checking host system type... " >&6; } 48662adc0320Smrgif ${ac_cv_host+:} false; then : 48677366012aSmrg $as_echo_n "(cached) " >&6 48687366012aSmrgelse 48697366012aSmrg if test "x$host_alias" = x; then 48707366012aSmrg ac_cv_host=$ac_cv_build 48717366012aSmrgelse 48727366012aSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 48732adc0320Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 48747366012aSmrgfi 48757366012aSmrg 48767366012aSmrgfi 48772adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 48787366012aSmrg$as_echo "$ac_cv_host" >&6; } 48797366012aSmrgcase $ac_cv_host in 48807366012aSmrg*-*-*) ;; 48812adc0320Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 48827366012aSmrgesac 48837366012aSmrghost=$ac_cv_host 48847366012aSmrgac_save_IFS=$IFS; IFS='-' 48857366012aSmrgset x $ac_cv_host 48867366012aSmrgshift 48877366012aSmrghost_cpu=$1 48887366012aSmrghost_vendor=$2 48897366012aSmrgshift; shift 48907366012aSmrg# Remember, the first character of IFS is used to create $*, 48917366012aSmrg# except with old shells: 48927366012aSmrghost_os=$* 48937366012aSmrgIFS=$ac_save_IFS 48947366012aSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 48957366012aSmrg 48967366012aSmrg 48972adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 48982adc0320Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 48992adc0320Smrgif ${ac_cv_path_SED+:} false; then : 49007366012aSmrg $as_echo_n "(cached) " >&6 49017366012aSmrgelse 49022adc0320Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 49032adc0320Smrg for ac_i in 1 2 3 4 5 6 7; do 49042adc0320Smrg ac_script="$ac_script$as_nl$ac_script" 49052adc0320Smrg done 49062adc0320Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 49072adc0320Smrg { ac_script=; unset ac_script;} 49082adc0320Smrg if test -z "$SED"; then 49092adc0320Smrg ac_path_SED_found=false 49102adc0320Smrg # Loop through the user's path and test for each of PROGNAME-LIST 49112adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49122adc0320Smrgfor as_dir in $PATH 49132adc0320Smrgdo 49142adc0320Smrg IFS=$as_save_IFS 49152adc0320Smrg test -z "$as_dir" && as_dir=. 49162adc0320Smrg for ac_prog in sed gsed; do 49172adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 49182adc0320Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 49198abc0ccfSmrg as_fn_executable_p "$ac_path_SED" || continue 49202adc0320Smrg# Check for GNU ac_path_SED and select it if it is found. 49212adc0320Smrg # Check for GNU $ac_path_SED 49222adc0320Smrgcase `"$ac_path_SED" --version 2>&1` in 49232adc0320Smrg*GNU*) 49242adc0320Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 49252adc0320Smrg*) 49262adc0320Smrg ac_count=0 49272adc0320Smrg $as_echo_n 0123456789 >"conftest.in" 49282adc0320Smrg while : 49292adc0320Smrg do 49302adc0320Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 49312adc0320Smrg mv "conftest.tmp" "conftest.in" 49322adc0320Smrg cp "conftest.in" "conftest.nl" 49332adc0320Smrg $as_echo '' >> "conftest.nl" 49342adc0320Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 49352adc0320Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 49362adc0320Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 49372adc0320Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 49382adc0320Smrg # Best one so far, save it but keep looking for a better one 49392adc0320Smrg ac_cv_path_SED="$ac_path_SED" 49402adc0320Smrg ac_path_SED_max=$ac_count 49412adc0320Smrg fi 49422adc0320Smrg # 10*(2^10) chars as input seems more than enough 49432adc0320Smrg test $ac_count -gt 10 && break 49442adc0320Smrg done 49452adc0320Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 49467366012aSmrgesac 49477366012aSmrg 49482adc0320Smrg $ac_path_SED_found && break 3 49492adc0320Smrg done 49502adc0320Smrg done 49512adc0320Smrg done 49522adc0320SmrgIFS=$as_save_IFS 49532adc0320Smrg if test -z "$ac_cv_path_SED"; then 49542adc0320Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 49552adc0320Smrg fi 49567366012aSmrgelse 49572adc0320Smrg ac_cv_path_SED=$SED 49587366012aSmrgfi 49597366012aSmrg 49607366012aSmrgfi 49612adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 49622adc0320Smrg$as_echo "$ac_cv_path_SED" >&6; } 49632adc0320Smrg SED="$ac_cv_path_SED" 49642adc0320Smrg rm -f conftest.sed 49657366012aSmrg 49667366012aSmrg 49677366012aSmrg 49687366012aSmrg 49697366012aSmrg 49707366012aSmrg 497196402570Smrg# Check whether --enable-selective-werror was given. 497296402570Smrgif test "${enable_selective_werror+set}" = set; then : 497396402570Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 497496402570Smrgelse 497596402570Smrg SELECTIVE_WERROR=yes 49762adc0320Smrgfi 49772adc0320Smrg 49782adc0320Smrg 49792adc0320Smrg 49807366012aSmrg 49812adc0320Smrg 498296402570Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 498396402570Smrgif test "x$SUNCC" = "xyes"; then 498496402570Smrg BASE_CFLAGS="-v" 49857366012aSmrgelse 498696402570Smrg BASE_CFLAGS="" 49877366012aSmrgfi 49887366012aSmrg 498996402570Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 49907366012aSmrg 49917366012aSmrg 49927366012aSmrg 49937366012aSmrg 49947366012aSmrg 49957366012aSmrg 49967366012aSmrg 49977366012aSmrg 49987366012aSmrg 49997366012aSmrg 50002adc0320Smrg 50012adc0320Smrg 50022adc0320Smrg 500396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 50042adc0320Smrg 500596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 500696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 500796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 500896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 500996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 501096402570Smrg $as_echo_n "(cached) " >&6 501196402570Smrgelse 501296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 501396402570Smrg/* end confdefs.h. */ 501496402570Smrgint i; 501596402570Smrg_ACEOF 501696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 501796402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 501896402570Smrgelse 501996402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 502096402570Smrgfi 502196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 502296402570Smrgfi 502396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 502496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 502596402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 502696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 502796402570Smrgfi 50287366012aSmrg 502996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 503096402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 503196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 503296402570Smrg fi 503396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 503496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 503596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 503696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 503796402570Smrg $as_echo_n "(cached) " >&6 503896402570Smrgelse 503996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 504096402570Smrg/* end confdefs.h. */ 504196402570Smrgint i; 504296402570Smrg_ACEOF 504396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 504496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 504596402570Smrgelse 504696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 504796402570Smrgfi 504896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 504996402570Smrgfi 505096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 505196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 505296402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 505396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 505496402570Smrgfi 50557366012aSmrg 505696402570Smrgfound="no" 50577366012aSmrg 505896402570Smrg if test $found = "no" ; then 505940c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 506096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 506196402570Smrg fi 50627366012aSmrg 506340c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 506496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 506596402570Smrg fi 50667366012aSmrg 506796402570Smrg CFLAGS="$CFLAGS -Wall" 50687366012aSmrg 506940c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 507040c5344fSmrg$as_echo_n "checking if $CC supports -Wall... " >&6; } 507196402570Smrg cacheid=xorg_cv_cc_flag__Wall 507296402570Smrg if eval \${$cacheid+:} false; then : 507396402570Smrg $as_echo_n "(cached) " >&6 507496402570Smrgelse 507596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 507696402570Smrg/* end confdefs.h. */ 507796402570Smrgint i; 507896402570Smrgint 507996402570Smrgmain () 508096402570Smrg{ 50817366012aSmrg 508296402570Smrg ; 508396402570Smrg return 0; 508496402570Smrg} 508596402570Smrg_ACEOF 508696402570Smrgif ac_fn_c_try_link "$LINENO"; then : 508796402570Smrg eval $cacheid=yes 508896402570Smrgelse 508996402570Smrg eval $cacheid=no 50907366012aSmrgfi 509196402570Smrgrm -f core conftest.err conftest.$ac_objext \ 509296402570Smrg conftest$ac_exeext conftest.$ac_ext 50937366012aSmrgfi 50947366012aSmrg 50957366012aSmrg 509696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50977366012aSmrg 509896402570Smrg eval supported=\$$cacheid 509996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 510096402570Smrg$as_echo "$supported" >&6; } 510196402570Smrg if test "$supported" = "yes" ; then 510296402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 510396402570Smrg found="yes" 510496402570Smrg fi 510596402570Smrg fi 51067366012aSmrg 51077366012aSmrg 51087366012aSmrg 51097366012aSmrg 51107366012aSmrg 51117a0395d0Smrg 51127a0395d0Smrg 51137a0395d0Smrg 51147a0395d0Smrg 51157a0395d0Smrg 51167a0395d0Smrg 51177a0395d0Smrg 51187a0395d0Smrg 51197a0395d0Smrg 51207a0395d0Smrg 512196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 51222adc0320Smrg 512396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 512496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 512596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 512696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 512796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 512896402570Smrg $as_echo_n "(cached) " >&6 512996402570Smrgelse 513096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 513196402570Smrg/* end confdefs.h. */ 513296402570Smrgint i; 513396402570Smrg_ACEOF 513496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 513596402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 513696402570Smrgelse 513796402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 513896402570Smrgfi 513996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 514096402570Smrgfi 514196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 514296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 514396402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 514496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 514596402570Smrgfi 514696402570Smrg 514796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 514896402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 514996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 515096402570Smrg fi 515196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 515296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 515396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 515496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 515596402570Smrg $as_echo_n "(cached) " >&6 515696402570Smrgelse 515796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 515896402570Smrg/* end confdefs.h. */ 515996402570Smrgint i; 516096402570Smrg_ACEOF 516196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 516296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 516396402570Smrgelse 516496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 516596402570Smrgfi 516696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 516796402570Smrgfi 516896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 516996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 517096402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 517196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 517296402570Smrgfi 517396402570Smrg 517496402570Smrgfound="no" 517596402570Smrg 517696402570Smrg if test $found = "no" ; then 517740c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 517896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 517996402570Smrg fi 518096402570Smrg 518140c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 518296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 518396402570Smrg fi 518496402570Smrg 518596402570Smrg CFLAGS="$CFLAGS -Wpointer-arith" 518696402570Smrg 518740c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 518840c5344fSmrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 518996402570Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 519096402570Smrg if eval \${$cacheid+:} false; then : 519196402570Smrg $as_echo_n "(cached) " >&6 519296402570Smrgelse 519396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 519496402570Smrg/* end confdefs.h. */ 519596402570Smrgint i; 519696402570Smrgint 519796402570Smrgmain () 519896402570Smrg{ 519996402570Smrg 520096402570Smrg ; 520196402570Smrg return 0; 520296402570Smrg} 520396402570Smrg_ACEOF 520496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 520596402570Smrg eval $cacheid=yes 520696402570Smrgelse 520796402570Smrg eval $cacheid=no 520896402570Smrgfi 520996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 521096402570Smrg conftest$ac_exeext conftest.$ac_ext 521196402570Smrgfi 521296402570Smrg 521396402570Smrg 521496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 521596402570Smrg 521696402570Smrg eval supported=\$$cacheid 521796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 521896402570Smrg$as_echo "$supported" >&6; } 521996402570Smrg if test "$supported" = "yes" ; then 522096402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 522196402570Smrg found="yes" 522296402570Smrg fi 522396402570Smrg fi 522496402570Smrg 522596402570Smrg 522696402570Smrg 522796402570Smrg 522896402570Smrg 522996402570Smrg 523096402570Smrg 523196402570Smrg 523296402570Smrg 523396402570Smrg 523496402570Smrg 523596402570Smrg 523696402570Smrg 523796402570Smrg 523896402570Smrg 523996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 524096402570Smrg 524196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 524296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 524396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 524496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 524596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 524696402570Smrg $as_echo_n "(cached) " >&6 524796402570Smrgelse 524896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 524996402570Smrg/* end confdefs.h. */ 525096402570Smrgint i; 525196402570Smrg_ACEOF 525296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 525396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 525496402570Smrgelse 525596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 525696402570Smrgfi 525796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 525896402570Smrgfi 525996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 526096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 526196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 526296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 526396402570Smrgfi 526496402570Smrg 526596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 526696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 526796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 526896402570Smrg fi 526996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 527096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 527196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 527296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 527396402570Smrg $as_echo_n "(cached) " >&6 527496402570Smrgelse 527596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 527696402570Smrg/* end confdefs.h. */ 527796402570Smrgint i; 527896402570Smrg_ACEOF 527996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 528096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 528196402570Smrgelse 528296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 528396402570Smrgfi 528496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 528596402570Smrgfi 528696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 528796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 528896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 528996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 529096402570Smrgfi 529196402570Smrg 529296402570Smrgfound="no" 529396402570Smrg 529496402570Smrg if test $found = "no" ; then 529540c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 529696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 529796402570Smrg fi 529896402570Smrg 529940c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 530096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 530196402570Smrg fi 530296402570Smrg 530396402570Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 530496402570Smrg 530540c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 530640c5344fSmrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 530796402570Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 530896402570Smrg if eval \${$cacheid+:} false; then : 530996402570Smrg $as_echo_n "(cached) " >&6 531096402570Smrgelse 531196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 531296402570Smrg/* end confdefs.h. */ 531396402570Smrgint i; 531496402570Smrgint 531596402570Smrgmain () 531696402570Smrg{ 531796402570Smrg 531896402570Smrg ; 531996402570Smrg return 0; 532096402570Smrg} 532196402570Smrg_ACEOF 532296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 532396402570Smrg eval $cacheid=yes 532496402570Smrgelse 532596402570Smrg eval $cacheid=no 532696402570Smrgfi 532796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 532896402570Smrg conftest$ac_exeext conftest.$ac_ext 532996402570Smrgfi 533096402570Smrg 533196402570Smrg 533296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 533396402570Smrg 533496402570Smrg eval supported=\$$cacheid 533596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 533696402570Smrg$as_echo "$supported" >&6; } 533796402570Smrg if test "$supported" = "yes" ; then 533896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 533996402570Smrg found="yes" 534096402570Smrg fi 534196402570Smrg fi 534296402570Smrg 534396402570Smrg 534496402570Smrg 534596402570Smrg 534696402570Smrg 534796402570Smrg 534896402570Smrg 534996402570Smrg 535096402570Smrg 535196402570Smrg 535296402570Smrg 535396402570Smrg 535496402570Smrg 535596402570Smrg 535696402570Smrg 535796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 535896402570Smrg 535996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 536096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 536196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 536296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 536396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 536496402570Smrg $as_echo_n "(cached) " >&6 536596402570Smrgelse 536696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 536796402570Smrg/* end confdefs.h. */ 536896402570Smrgint i; 536996402570Smrg_ACEOF 537096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 537196402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 537296402570Smrgelse 537396402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 537496402570Smrgfi 537596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 537696402570Smrgfi 537796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 537896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 537996402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 538096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 538196402570Smrgfi 538296402570Smrg 538396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 538496402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 538596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 538696402570Smrg fi 538796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 538896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 538996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 539096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 539196402570Smrg $as_echo_n "(cached) " >&6 539296402570Smrgelse 539396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 539496402570Smrg/* end confdefs.h. */ 539596402570Smrgint i; 539696402570Smrg_ACEOF 539796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 539896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 539996402570Smrgelse 540096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 540196402570Smrgfi 540296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 540396402570Smrgfi 540496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 540596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 540696402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 540796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 540896402570Smrgfi 540996402570Smrg 541096402570Smrgfound="no" 541196402570Smrg 541296402570Smrg if test $found = "no" ; then 541340c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 541496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 541596402570Smrg fi 541696402570Smrg 541740c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 541896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 541996402570Smrg fi 542096402570Smrg 542196402570Smrg CFLAGS="$CFLAGS -Wformat=2" 542296402570Smrg 542340c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 542440c5344fSmrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 54258abc0ccfSmrg cacheid=xorg_cv_cc_flag__Wformat_2 542696402570Smrg if eval \${$cacheid+:} false; then : 542796402570Smrg $as_echo_n "(cached) " >&6 542896402570Smrgelse 542996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 543096402570Smrg/* end confdefs.h. */ 543196402570Smrgint i; 543296402570Smrgint 543396402570Smrgmain () 543496402570Smrg{ 543596402570Smrg 543696402570Smrg ; 543796402570Smrg return 0; 543896402570Smrg} 543996402570Smrg_ACEOF 544096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 544196402570Smrg eval $cacheid=yes 544296402570Smrgelse 544396402570Smrg eval $cacheid=no 544496402570Smrgfi 544596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 544696402570Smrg conftest$ac_exeext conftest.$ac_ext 544796402570Smrgfi 544896402570Smrg 544996402570Smrg 545096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 545196402570Smrg 545296402570Smrg eval supported=\$$cacheid 545396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 545496402570Smrg$as_echo "$supported" >&6; } 545596402570Smrg if test "$supported" = "yes" ; then 545696402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 545796402570Smrg found="yes" 545896402570Smrg fi 545996402570Smrg fi 546096402570Smrg 546196402570Smrg if test $found = "no" ; then 546240c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 546396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 546496402570Smrg fi 546596402570Smrg 546640c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 546796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 546896402570Smrg fi 546996402570Smrg 547096402570Smrg CFLAGS="$CFLAGS -Wformat" 547196402570Smrg 547240c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 547340c5344fSmrg$as_echo_n "checking if $CC supports -Wformat... " >&6; } 547496402570Smrg cacheid=xorg_cv_cc_flag__Wformat 547596402570Smrg if eval \${$cacheid+:} false; then : 547696402570Smrg $as_echo_n "(cached) " >&6 547796402570Smrgelse 547896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 547996402570Smrg/* end confdefs.h. */ 548096402570Smrgint i; 548196402570Smrgint 548296402570Smrgmain () 548396402570Smrg{ 548496402570Smrg 548596402570Smrg ; 548696402570Smrg return 0; 548796402570Smrg} 548896402570Smrg_ACEOF 548996402570Smrgif ac_fn_c_try_link "$LINENO"; then : 549096402570Smrg eval $cacheid=yes 549196402570Smrgelse 549296402570Smrg eval $cacheid=no 549396402570Smrgfi 549496402570Smrgrm -f core conftest.err conftest.$ac_objext \ 549596402570Smrg conftest$ac_exeext conftest.$ac_ext 549696402570Smrgfi 549796402570Smrg 549896402570Smrg 549996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 550096402570Smrg 550196402570Smrg eval supported=\$$cacheid 550296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 550396402570Smrg$as_echo "$supported" >&6; } 550496402570Smrg if test "$supported" = "yes" ; then 550596402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 550696402570Smrg found="yes" 550796402570Smrg fi 550896402570Smrg fi 550996402570Smrg 551096402570Smrg 551196402570Smrg 551296402570Smrg 551396402570Smrg 551496402570Smrg 551596402570Smrg 551696402570Smrg 551796402570Smrg 551896402570Smrg 551996402570Smrg 552096402570Smrg 552196402570Smrg 552296402570Smrg 552396402570Smrg 552496402570Smrg 552596402570Smrg 552696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 552796402570Smrg 552896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 552996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 553096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 553196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 553296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 553396402570Smrg $as_echo_n "(cached) " >&6 553496402570Smrgelse 553596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 553696402570Smrg/* end confdefs.h. */ 553796402570Smrgint i; 553896402570Smrg_ACEOF 553996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 554096402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 554196402570Smrgelse 554296402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 554396402570Smrgfi 554496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 554596402570Smrgfi 554696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 554796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 554896402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 554996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 555096402570Smrgfi 555196402570Smrg 555296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 555396402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 555496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 555596402570Smrg fi 555696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 555796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 555896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 555996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 556096402570Smrg $as_echo_n "(cached) " >&6 556196402570Smrgelse 556296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 556396402570Smrg/* end confdefs.h. */ 556496402570Smrgint i; 556596402570Smrg_ACEOF 556696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 556796402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 556896402570Smrgelse 556996402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 557096402570Smrgfi 557196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 557296402570Smrgfi 557396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 557496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 557596402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 557696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 557796402570Smrgfi 557896402570Smrg 557996402570Smrgfound="no" 558096402570Smrg 558196402570Smrg if test $found = "no" ; then 558240c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 558396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 558496402570Smrg fi 558596402570Smrg 558640c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 558796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 558896402570Smrg fi 558996402570Smrg 559096402570Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 559196402570Smrg 559240c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 559340c5344fSmrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 559496402570Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 559596402570Smrg if eval \${$cacheid+:} false; then : 559696402570Smrg $as_echo_n "(cached) " >&6 559796402570Smrgelse 559896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 559996402570Smrg/* end confdefs.h. */ 560096402570Smrgint i; 560196402570Smrgint 560296402570Smrgmain () 560396402570Smrg{ 560496402570Smrg 560596402570Smrg ; 560696402570Smrg return 0; 560796402570Smrg} 560896402570Smrg_ACEOF 560996402570Smrgif ac_fn_c_try_link "$LINENO"; then : 561096402570Smrg eval $cacheid=yes 561196402570Smrgelse 561296402570Smrg eval $cacheid=no 561396402570Smrgfi 561496402570Smrgrm -f core conftest.err conftest.$ac_objext \ 561596402570Smrg conftest$ac_exeext conftest.$ac_ext 561696402570Smrgfi 561796402570Smrg 561896402570Smrg 561996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 562096402570Smrg 562196402570Smrg eval supported=\$$cacheid 562296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 562396402570Smrg$as_echo "$supported" >&6; } 562496402570Smrg if test "$supported" = "yes" ; then 562596402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 562696402570Smrg found="yes" 562796402570Smrg fi 562896402570Smrg fi 562996402570Smrg 563096402570Smrg 563196402570Smrg 563296402570Smrg 563396402570Smrg 563496402570Smrg 563596402570Smrg 563696402570Smrg 563796402570Smrg 563896402570Smrg 563996402570Smrg 564096402570Smrg 564196402570Smrg 564296402570Smrg 564396402570Smrg 564496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 564596402570Smrg 564696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 564796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 564896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 564996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 565096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 565196402570Smrg $as_echo_n "(cached) " >&6 565296402570Smrgelse 565396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 565496402570Smrg/* end confdefs.h. */ 565596402570Smrgint i; 565696402570Smrg_ACEOF 565796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 565896402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 565996402570Smrgelse 566096402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 566196402570Smrgfi 566296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 566396402570Smrgfi 566496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 566596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 566696402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 566796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 566896402570Smrgfi 566996402570Smrg 567096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 567196402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 567296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 567396402570Smrg fi 567496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 567596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 567696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 567796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 567896402570Smrg $as_echo_n "(cached) " >&6 567996402570Smrgelse 568096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 568196402570Smrg/* end confdefs.h. */ 568296402570Smrgint i; 568396402570Smrg_ACEOF 568496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 568596402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 568696402570Smrgelse 568796402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 568896402570Smrgfi 568996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 569096402570Smrgfi 569196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 569296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 569396402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 569496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 569596402570Smrgfi 569696402570Smrg 569796402570Smrgfound="no" 569896402570Smrg 569996402570Smrg if test $found = "no" ; then 570040c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 570196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 570296402570Smrg fi 570396402570Smrg 570440c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 570596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 570696402570Smrg fi 570796402570Smrg 570896402570Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 570996402570Smrg 571040c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 571140c5344fSmrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 571296402570Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 571396402570Smrg if eval \${$cacheid+:} false; then : 571496402570Smrg $as_echo_n "(cached) " >&6 571596402570Smrgelse 571696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 571796402570Smrg/* end confdefs.h. */ 571896402570Smrgint i; 571996402570Smrgint 572096402570Smrgmain () 572196402570Smrg{ 572296402570Smrg 572396402570Smrg ; 572496402570Smrg return 0; 572596402570Smrg} 572696402570Smrg_ACEOF 572796402570Smrgif ac_fn_c_try_link "$LINENO"; then : 572896402570Smrg eval $cacheid=yes 572996402570Smrgelse 573096402570Smrg eval $cacheid=no 573196402570Smrgfi 573296402570Smrgrm -f core conftest.err conftest.$ac_objext \ 573396402570Smrg conftest$ac_exeext conftest.$ac_ext 573496402570Smrgfi 573596402570Smrg 573696402570Smrg 573796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 573896402570Smrg 573996402570Smrg eval supported=\$$cacheid 574096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 574196402570Smrg$as_echo "$supported" >&6; } 574296402570Smrg if test "$supported" = "yes" ; then 574396402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 574496402570Smrg found="yes" 574596402570Smrg fi 574696402570Smrg fi 574796402570Smrg 574896402570Smrg 574996402570Smrg 575096402570Smrg 575196402570Smrg 575296402570Smrg 575396402570Smrg 575496402570Smrg 575596402570Smrg 575696402570Smrg 575796402570Smrg 575896402570Smrg 575996402570Smrg 576096402570Smrg 576196402570Smrg 576296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 576396402570Smrg 576496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 576596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 576696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 576796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 576896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 576996402570Smrg $as_echo_n "(cached) " >&6 577096402570Smrgelse 577196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 577296402570Smrg/* end confdefs.h. */ 577396402570Smrgint i; 577496402570Smrg_ACEOF 577596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 577696402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 577796402570Smrgelse 577896402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 577996402570Smrgfi 578096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 578196402570Smrgfi 578296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 578396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 578496402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 578596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 578696402570Smrgfi 578796402570Smrg 578896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 578996402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 579096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 579196402570Smrg fi 579296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 579396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 579496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 579596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 579696402570Smrg $as_echo_n "(cached) " >&6 579796402570Smrgelse 579896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 579996402570Smrg/* end confdefs.h. */ 580096402570Smrgint i; 580196402570Smrg_ACEOF 580296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 580396402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 580496402570Smrgelse 580596402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 580696402570Smrgfi 580796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 580896402570Smrgfi 580996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 581096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 581196402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 581296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 581396402570Smrgfi 581496402570Smrg 581596402570Smrgfound="no" 581696402570Smrg 581796402570Smrg if test $found = "no" ; then 581840c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 581996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 582096402570Smrg fi 582196402570Smrg 582240c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 582396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 582496402570Smrg fi 582596402570Smrg 582696402570Smrg CFLAGS="$CFLAGS -Wnested-externs" 582796402570Smrg 582840c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 582940c5344fSmrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 583096402570Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 583196402570Smrg if eval \${$cacheid+:} false; then : 583296402570Smrg $as_echo_n "(cached) " >&6 583396402570Smrgelse 583496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 583596402570Smrg/* end confdefs.h. */ 583696402570Smrgint i; 583796402570Smrgint 583896402570Smrgmain () 583996402570Smrg{ 584096402570Smrg 584196402570Smrg ; 584296402570Smrg return 0; 584396402570Smrg} 584496402570Smrg_ACEOF 584596402570Smrgif ac_fn_c_try_link "$LINENO"; then : 584696402570Smrg eval $cacheid=yes 584796402570Smrgelse 584896402570Smrg eval $cacheid=no 584996402570Smrgfi 585096402570Smrgrm -f core conftest.err conftest.$ac_objext \ 585196402570Smrg conftest$ac_exeext conftest.$ac_ext 585296402570Smrgfi 585396402570Smrg 585496402570Smrg 585596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 585696402570Smrg 585796402570Smrg eval supported=\$$cacheid 585896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 585996402570Smrg$as_echo "$supported" >&6; } 586096402570Smrg if test "$supported" = "yes" ; then 586196402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 586296402570Smrg found="yes" 586396402570Smrg fi 586496402570Smrg fi 586596402570Smrg 586696402570Smrg 586796402570Smrg 586896402570Smrg 586996402570Smrg 587096402570Smrg 587196402570Smrg 587296402570Smrg 587396402570Smrg 587496402570Smrg 587596402570Smrg 587696402570Smrg 587796402570Smrg 587896402570Smrg 587996402570Smrg 588096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 588196402570Smrg 588296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 588396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 588496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 588596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 588696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 588796402570Smrg $as_echo_n "(cached) " >&6 588896402570Smrgelse 588996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 589096402570Smrg/* end confdefs.h. */ 589196402570Smrgint i; 589296402570Smrg_ACEOF 589396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 589496402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 589596402570Smrgelse 589696402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 589796402570Smrgfi 589896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 589996402570Smrgfi 590096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 590196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 590296402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 590396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 590496402570Smrgfi 590596402570Smrg 590696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 590796402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 590896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 590996402570Smrg fi 591096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 591196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 591296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 591396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 591496402570Smrg $as_echo_n "(cached) " >&6 591596402570Smrgelse 591696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 591796402570Smrg/* end confdefs.h. */ 591896402570Smrgint i; 591996402570Smrg_ACEOF 592096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 592196402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 592296402570Smrgelse 592396402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 592496402570Smrgfi 592596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 592696402570Smrgfi 592796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 592896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 592996402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 593096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 593196402570Smrgfi 593296402570Smrg 593396402570Smrgfound="no" 593496402570Smrg 593596402570Smrg if test $found = "no" ; then 593640c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 593796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 593896402570Smrg fi 593996402570Smrg 594040c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 594196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 594296402570Smrg fi 594396402570Smrg 594496402570Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 594596402570Smrg 594640c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 594740c5344fSmrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 594896402570Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 594996402570Smrg if eval \${$cacheid+:} false; then : 595096402570Smrg $as_echo_n "(cached) " >&6 595196402570Smrgelse 595296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 595396402570Smrg/* end confdefs.h. */ 595496402570Smrgint i; 595596402570Smrgint 595696402570Smrgmain () 595796402570Smrg{ 595896402570Smrg 595996402570Smrg ; 596096402570Smrg return 0; 596196402570Smrg} 596296402570Smrg_ACEOF 596396402570Smrgif ac_fn_c_try_link "$LINENO"; then : 596496402570Smrg eval $cacheid=yes 596596402570Smrgelse 596696402570Smrg eval $cacheid=no 596796402570Smrgfi 596896402570Smrgrm -f core conftest.err conftest.$ac_objext \ 596996402570Smrg conftest$ac_exeext conftest.$ac_ext 597096402570Smrgfi 597196402570Smrg 597296402570Smrg 597396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 597496402570Smrg 597596402570Smrg eval supported=\$$cacheid 597696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 597796402570Smrg$as_echo "$supported" >&6; } 597896402570Smrg if test "$supported" = "yes" ; then 597996402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 598096402570Smrg found="yes" 598196402570Smrg fi 598296402570Smrg fi 598396402570Smrg 598496402570Smrg 598596402570Smrg 598696402570Smrg 598796402570Smrg 598896402570Smrg 598996402570Smrg 599096402570Smrg 599196402570Smrg 599296402570Smrg 599396402570Smrg 599496402570Smrg 599596402570Smrg 599696402570Smrg 599796402570Smrg 599896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 599996402570Smrg 600096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 600196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 600296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 600396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 600496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 600596402570Smrg $as_echo_n "(cached) " >&6 600696402570Smrgelse 600796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 600896402570Smrg/* end confdefs.h. */ 600996402570Smrgint i; 601096402570Smrg_ACEOF 601196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 601296402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 601396402570Smrgelse 601496402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 601596402570Smrgfi 601696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 601796402570Smrgfi 601896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 601996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 602096402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 602196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 602296402570Smrgfi 602396402570Smrg 602496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 602596402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 602696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 602796402570Smrg fi 602896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 602996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 603096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 603196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 603296402570Smrg $as_echo_n "(cached) " >&6 603396402570Smrgelse 603496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 603596402570Smrg/* end confdefs.h. */ 603696402570Smrgint i; 603796402570Smrg_ACEOF 603896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 603996402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 604096402570Smrgelse 604196402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 604296402570Smrgfi 604396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 604496402570Smrgfi 604596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 604696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 604796402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 604896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 604996402570Smrgfi 605096402570Smrg 605196402570Smrgfound="no" 605296402570Smrg 605396402570Smrg if test $found = "no" ; then 605440c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 605596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 605696402570Smrg fi 605796402570Smrg 605840c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 605996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 606096402570Smrg fi 606196402570Smrg 606296402570Smrg CFLAGS="$CFLAGS -Wold-style-definition" 606396402570Smrg 606440c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 606540c5344fSmrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 606696402570Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 606796402570Smrg if eval \${$cacheid+:} false; then : 606896402570Smrg $as_echo_n "(cached) " >&6 606996402570Smrgelse 607096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 607196402570Smrg/* end confdefs.h. */ 607296402570Smrgint i; 607396402570Smrgint 607496402570Smrgmain () 607596402570Smrg{ 607696402570Smrg 607796402570Smrg ; 607896402570Smrg return 0; 607996402570Smrg} 608096402570Smrg_ACEOF 608196402570Smrgif ac_fn_c_try_link "$LINENO"; then : 608296402570Smrg eval $cacheid=yes 608396402570Smrgelse 608496402570Smrg eval $cacheid=no 608596402570Smrgfi 608696402570Smrgrm -f core conftest.err conftest.$ac_objext \ 608796402570Smrg conftest$ac_exeext conftest.$ac_ext 608896402570Smrgfi 608996402570Smrg 609096402570Smrg 609196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 609296402570Smrg 609396402570Smrg eval supported=\$$cacheid 609496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 609596402570Smrg$as_echo "$supported" >&6; } 609696402570Smrg if test "$supported" = "yes" ; then 609796402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 609896402570Smrg found="yes" 609996402570Smrg fi 610096402570Smrg fi 610196402570Smrg 610240c5344fSmrg if test $found = "no" ; then 610340c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 610440c5344fSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 610540c5344fSmrg fi 610640c5344fSmrg 610740c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 610840c5344fSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 610940c5344fSmrg fi 611040c5344fSmrg 611140c5344fSmrg CFLAGS="$CFLAGS -fd" 611240c5344fSmrg 611340c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 611440c5344fSmrg$as_echo_n "checking if $CC supports -fd... " >&6; } 611540c5344fSmrg cacheid=xorg_cv_cc_flag__fd 611640c5344fSmrg if eval \${$cacheid+:} false; then : 611740c5344fSmrg $as_echo_n "(cached) " >&6 611840c5344fSmrgelse 611940c5344fSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 612040c5344fSmrg/* end confdefs.h. */ 612140c5344fSmrgint i; 612240c5344fSmrgint 612340c5344fSmrgmain () 612440c5344fSmrg{ 612540c5344fSmrg 612640c5344fSmrg ; 612740c5344fSmrg return 0; 612840c5344fSmrg} 612940c5344fSmrg_ACEOF 613040c5344fSmrgif ac_fn_c_try_link "$LINENO"; then : 613140c5344fSmrg eval $cacheid=yes 613240c5344fSmrgelse 613340c5344fSmrg eval $cacheid=no 613440c5344fSmrgfi 613540c5344fSmrgrm -f core conftest.err conftest.$ac_objext \ 613640c5344fSmrg conftest$ac_exeext conftest.$ac_ext 613740c5344fSmrgfi 613840c5344fSmrg 613940c5344fSmrg 614040c5344fSmrg CFLAGS="$xorg_testset_save_CFLAGS" 614140c5344fSmrg 614240c5344fSmrg eval supported=\$$cacheid 614340c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 614440c5344fSmrg$as_echo "$supported" >&6; } 614540c5344fSmrg if test "$supported" = "yes" ; then 614640c5344fSmrg BASE_CFLAGS="$BASE_CFLAGS -fd" 614740c5344fSmrg found="yes" 614840c5344fSmrg fi 614940c5344fSmrg fi 615040c5344fSmrg 615196402570Smrg 615296402570Smrg 615396402570Smrg 615496402570Smrg 615596402570Smrg 615696402570Smrg 615796402570Smrg 615896402570Smrg 615996402570Smrg 616096402570Smrg 616196402570Smrg 616296402570Smrg 616396402570Smrg 616496402570Smrg 616596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 616696402570Smrg 616796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 616896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 616996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 617096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 617196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 617296402570Smrg $as_echo_n "(cached) " >&6 617396402570Smrgelse 617496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 617596402570Smrg/* end confdefs.h. */ 617696402570Smrgint i; 617796402570Smrg_ACEOF 617896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 617996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 618096402570Smrgelse 618196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 618296402570Smrgfi 618396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 618496402570Smrgfi 618596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 618696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 618796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 618896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 618996402570Smrgfi 619096402570Smrg 619196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 619296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 619396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 619496402570Smrg fi 619596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 619696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 619796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 619896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 619996402570Smrg $as_echo_n "(cached) " >&6 620096402570Smrgelse 620196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 620296402570Smrg/* end confdefs.h. */ 620396402570Smrgint i; 620496402570Smrg_ACEOF 620596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 620696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 620796402570Smrgelse 620896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 620996402570Smrgfi 621096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 621196402570Smrgfi 621296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 621396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 621496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 621596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 621696402570Smrgfi 621796402570Smrg 621896402570Smrgfound="no" 621996402570Smrg 622096402570Smrg if test $found = "no" ; then 622140c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 622296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 622396402570Smrg fi 622496402570Smrg 622540c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 622696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 622796402570Smrg fi 622896402570Smrg 622996402570Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 623096402570Smrg 623140c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 623240c5344fSmrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 623396402570Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 623496402570Smrg if eval \${$cacheid+:} false; then : 623596402570Smrg $as_echo_n "(cached) " >&6 623696402570Smrgelse 623796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 623896402570Smrg/* end confdefs.h. */ 623996402570Smrgint i; 624096402570Smrgint 624196402570Smrgmain () 624296402570Smrg{ 624396402570Smrg 624496402570Smrg ; 624596402570Smrg return 0; 624696402570Smrg} 624796402570Smrg_ACEOF 624896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 624996402570Smrg eval $cacheid=yes 625096402570Smrgelse 625196402570Smrg eval $cacheid=no 625296402570Smrgfi 625396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 625496402570Smrg conftest$ac_exeext conftest.$ac_ext 625596402570Smrgfi 625696402570Smrg 625796402570Smrg 625896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 625996402570Smrg 626096402570Smrg eval supported=\$$cacheid 626196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 626296402570Smrg$as_echo "$supported" >&6; } 626396402570Smrg if test "$supported" = "yes" ; then 626496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 626596402570Smrg found="yes" 626696402570Smrg fi 626796402570Smrg fi 626896402570Smrg 626996402570Smrg 627096402570Smrg 627196402570Smrg 627296402570Smrg 627396402570Smrg# This chunk adds additional warnings that could catch undesired effects. 627496402570Smrg 627596402570Smrg 627696402570Smrg 627796402570Smrg 627896402570Smrg 627996402570Smrg 628096402570Smrg 628196402570Smrg 628296402570Smrg 628396402570Smrg 628496402570Smrg 628596402570Smrg 628696402570Smrg 628796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 628896402570Smrg 628996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 629096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 629196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 629296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 629396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 629496402570Smrg $as_echo_n "(cached) " >&6 629596402570Smrgelse 629696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 629796402570Smrg/* end confdefs.h. */ 629896402570Smrgint i; 629996402570Smrg_ACEOF 630096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 630196402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 630296402570Smrgelse 630396402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 630496402570Smrgfi 630596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 630696402570Smrgfi 630796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 630896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 630996402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 631096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 631196402570Smrgfi 631296402570Smrg 631396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 631496402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 631596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 631696402570Smrg fi 631796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 631896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 631996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 632096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 632196402570Smrg $as_echo_n "(cached) " >&6 632296402570Smrgelse 632396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 632496402570Smrg/* end confdefs.h. */ 632596402570Smrgint i; 632696402570Smrg_ACEOF 632796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 632896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 632996402570Smrgelse 633096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 633196402570Smrgfi 633296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 633396402570Smrgfi 633496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 633596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 633696402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 633796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 633896402570Smrgfi 633996402570Smrg 634096402570Smrgfound="no" 634196402570Smrg 634296402570Smrg if test $found = "no" ; then 634340c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 634496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 634596402570Smrg fi 634696402570Smrg 634740c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 634896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 634996402570Smrg fi 635096402570Smrg 635196402570Smrg CFLAGS="$CFLAGS -Wunused" 635296402570Smrg 635340c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 635440c5344fSmrg$as_echo_n "checking if $CC supports -Wunused... " >&6; } 635596402570Smrg cacheid=xorg_cv_cc_flag__Wunused 635696402570Smrg if eval \${$cacheid+:} false; then : 635796402570Smrg $as_echo_n "(cached) " >&6 635896402570Smrgelse 635996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 636096402570Smrg/* end confdefs.h. */ 636196402570Smrgint i; 636296402570Smrgint 636396402570Smrgmain () 636496402570Smrg{ 636596402570Smrg 636696402570Smrg ; 636796402570Smrg return 0; 636896402570Smrg} 636996402570Smrg_ACEOF 637096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 637196402570Smrg eval $cacheid=yes 637296402570Smrgelse 637396402570Smrg eval $cacheid=no 637496402570Smrgfi 637596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 637696402570Smrg conftest$ac_exeext conftest.$ac_ext 637796402570Smrgfi 637896402570Smrg 637996402570Smrg 638096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 638196402570Smrg 638296402570Smrg eval supported=\$$cacheid 638396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 638496402570Smrg$as_echo "$supported" >&6; } 638596402570Smrg if test "$supported" = "yes" ; then 638696402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 638796402570Smrg found="yes" 638896402570Smrg fi 638996402570Smrg fi 639096402570Smrg 639196402570Smrg 639296402570Smrg 639396402570Smrg 639496402570Smrg 639596402570Smrg 639696402570Smrg 639796402570Smrg 639896402570Smrg 639996402570Smrg 640096402570Smrg 640196402570Smrg 640296402570Smrg 640396402570Smrg 640496402570Smrg 640596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 640696402570Smrg 640796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 640896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 640996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 641096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 641196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 641296402570Smrg $as_echo_n "(cached) " >&6 641396402570Smrgelse 641496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 641596402570Smrg/* end confdefs.h. */ 641696402570Smrgint i; 641796402570Smrg_ACEOF 641896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 641996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 642096402570Smrgelse 642196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 642296402570Smrgfi 642396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 642496402570Smrgfi 642596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 642696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 642796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 642896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 642996402570Smrgfi 643096402570Smrg 643196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 643296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 643396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 643496402570Smrg fi 643596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 643696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 643796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 643896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 643996402570Smrg $as_echo_n "(cached) " >&6 644096402570Smrgelse 644196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 644296402570Smrg/* end confdefs.h. */ 644396402570Smrgint i; 644496402570Smrg_ACEOF 644596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 644696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 644796402570Smrgelse 644896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 644996402570Smrgfi 645096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 645196402570Smrgfi 645296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 645396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 645496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 645596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 645696402570Smrgfi 645796402570Smrg 645896402570Smrgfound="no" 645996402570Smrg 646096402570Smrg if test $found = "no" ; then 646140c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 646296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 646396402570Smrg fi 646496402570Smrg 646540c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 646696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 646796402570Smrg fi 646896402570Smrg 646996402570Smrg CFLAGS="$CFLAGS -Wuninitialized" 647096402570Smrg 647140c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 647240c5344fSmrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 647396402570Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 647496402570Smrg if eval \${$cacheid+:} false; then : 647596402570Smrg $as_echo_n "(cached) " >&6 647696402570Smrgelse 647796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 647896402570Smrg/* end confdefs.h. */ 647996402570Smrgint i; 648096402570Smrgint 648196402570Smrgmain () 648296402570Smrg{ 648396402570Smrg 648496402570Smrg ; 648596402570Smrg return 0; 648696402570Smrg} 648796402570Smrg_ACEOF 648896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 648996402570Smrg eval $cacheid=yes 649096402570Smrgelse 649196402570Smrg eval $cacheid=no 649296402570Smrgfi 649396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 649496402570Smrg conftest$ac_exeext conftest.$ac_ext 649596402570Smrgfi 649696402570Smrg 649796402570Smrg 649896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 649996402570Smrg 650096402570Smrg eval supported=\$$cacheid 650196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 650296402570Smrg$as_echo "$supported" >&6; } 650396402570Smrg if test "$supported" = "yes" ; then 650496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 650596402570Smrg found="yes" 650696402570Smrg fi 650796402570Smrg fi 650896402570Smrg 650996402570Smrg 651096402570Smrg 651196402570Smrg 651296402570Smrg 651396402570Smrg 651496402570Smrg 651596402570Smrg 651696402570Smrg 651796402570Smrg 651896402570Smrg 651996402570Smrg 652096402570Smrg 652196402570Smrg 652296402570Smrg 652396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 652496402570Smrg 652596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 652696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 652796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 652896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 652996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 653096402570Smrg $as_echo_n "(cached) " >&6 653196402570Smrgelse 653296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 653396402570Smrg/* end confdefs.h. */ 653496402570Smrgint i; 653596402570Smrg_ACEOF 653696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 653796402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 653896402570Smrgelse 653996402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 654096402570Smrgfi 654196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 654296402570Smrgfi 654396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 654496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 654596402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 654696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 654796402570Smrgfi 654896402570Smrg 654996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 655096402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 655196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 655296402570Smrg fi 655396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 655496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 655596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 655696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 655796402570Smrg $as_echo_n "(cached) " >&6 655896402570Smrgelse 655996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 656096402570Smrg/* end confdefs.h. */ 656196402570Smrgint i; 656296402570Smrg_ACEOF 656396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 656496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 656596402570Smrgelse 656696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 656796402570Smrgfi 656896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 656996402570Smrgfi 657096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 657196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 657296402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 657396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 657496402570Smrgfi 657596402570Smrg 657696402570Smrgfound="no" 657796402570Smrg 657896402570Smrg if test $found = "no" ; then 657940c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 658096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 658196402570Smrg fi 658296402570Smrg 658340c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 658496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 658596402570Smrg fi 658696402570Smrg 658796402570Smrg CFLAGS="$CFLAGS -Wshadow" 658896402570Smrg 658940c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 659040c5344fSmrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 659196402570Smrg cacheid=xorg_cv_cc_flag__Wshadow 659296402570Smrg if eval \${$cacheid+:} false; then : 659396402570Smrg $as_echo_n "(cached) " >&6 659496402570Smrgelse 659596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 659696402570Smrg/* end confdefs.h. */ 659796402570Smrgint i; 659896402570Smrgint 659996402570Smrgmain () 660096402570Smrg{ 660196402570Smrg 660296402570Smrg ; 660396402570Smrg return 0; 660496402570Smrg} 660596402570Smrg_ACEOF 660696402570Smrgif ac_fn_c_try_link "$LINENO"; then : 660796402570Smrg eval $cacheid=yes 660896402570Smrgelse 660996402570Smrg eval $cacheid=no 661096402570Smrgfi 661196402570Smrgrm -f core conftest.err conftest.$ac_objext \ 661296402570Smrg conftest$ac_exeext conftest.$ac_ext 661396402570Smrgfi 661496402570Smrg 661596402570Smrg 661696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 661796402570Smrg 661896402570Smrg eval supported=\$$cacheid 661996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 662096402570Smrg$as_echo "$supported" >&6; } 662196402570Smrg if test "$supported" = "yes" ; then 662296402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 662396402570Smrg found="yes" 662496402570Smrg fi 662596402570Smrg fi 662696402570Smrg 662796402570Smrg 662896402570Smrg 662996402570Smrg 663096402570Smrg 663196402570Smrg 663296402570Smrg 663396402570Smrg 663496402570Smrg 663596402570Smrg 663696402570Smrg 663796402570Smrg 663896402570Smrg 663996402570Smrg 664096402570Smrg 664196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 664296402570Smrg 664396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 664496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 664596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 664696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 664796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 664896402570Smrg $as_echo_n "(cached) " >&6 664996402570Smrgelse 665096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 665196402570Smrg/* end confdefs.h. */ 665296402570Smrgint i; 665396402570Smrg_ACEOF 665496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 665596402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 665696402570Smrgelse 665796402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 665896402570Smrgfi 665996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 666096402570Smrgfi 666196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 666296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 666396402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 666496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 666596402570Smrgfi 666696402570Smrg 666796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 666896402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 666996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 667096402570Smrg fi 667196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 667296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 667396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 667496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 667596402570Smrg $as_echo_n "(cached) " >&6 667696402570Smrgelse 667796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 667896402570Smrg/* end confdefs.h. */ 667996402570Smrgint i; 668096402570Smrg_ACEOF 668196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 668296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 668396402570Smrgelse 668496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 668596402570Smrgfi 668696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 668796402570Smrgfi 668896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 668996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 669096402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 669196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 669296402570Smrgfi 669396402570Smrg 669496402570Smrgfound="no" 669596402570Smrg 669696402570Smrg if test $found = "no" ; then 669740c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 669896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 669996402570Smrg fi 670096402570Smrg 670140c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 670296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 670396402570Smrg fi 670496402570Smrg 670540c5344fSmrg CFLAGS="$CFLAGS -Wmissing-noreturn" 670696402570Smrg 670740c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 670840c5344fSmrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 670940c5344fSmrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 671096402570Smrg if eval \${$cacheid+:} false; then : 671196402570Smrg $as_echo_n "(cached) " >&6 671296402570Smrgelse 671396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 671496402570Smrg/* end confdefs.h. */ 671596402570Smrgint i; 671696402570Smrgint 671796402570Smrgmain () 671896402570Smrg{ 671996402570Smrg 672096402570Smrg ; 672196402570Smrg return 0; 672296402570Smrg} 672396402570Smrg_ACEOF 672496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 672596402570Smrg eval $cacheid=yes 672696402570Smrgelse 672796402570Smrg eval $cacheid=no 672896402570Smrgfi 672996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 673096402570Smrg conftest$ac_exeext conftest.$ac_ext 673196402570Smrgfi 673296402570Smrg 673396402570Smrg 673496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 673596402570Smrg 673696402570Smrg eval supported=\$$cacheid 673796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 673896402570Smrg$as_echo "$supported" >&6; } 673996402570Smrg if test "$supported" = "yes" ; then 674040c5344fSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 674196402570Smrg found="yes" 674296402570Smrg fi 674396402570Smrg fi 674496402570Smrg 674596402570Smrg 674696402570Smrg 674796402570Smrg 674896402570Smrg 674996402570Smrg 675096402570Smrg 675196402570Smrg 675296402570Smrg 675396402570Smrg 675496402570Smrg 675596402570Smrg 675696402570Smrg 675796402570Smrg 675896402570Smrg 675996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 676096402570Smrg 676196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 676296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 676396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 676496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 676596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 676696402570Smrg $as_echo_n "(cached) " >&6 676796402570Smrgelse 676896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 676996402570Smrg/* end confdefs.h. */ 677096402570Smrgint i; 677196402570Smrg_ACEOF 677296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 677396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 677496402570Smrgelse 677596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 677696402570Smrgfi 677796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 677896402570Smrgfi 677996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 678096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 678196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 678296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 678396402570Smrgfi 678496402570Smrg 678596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 678696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 678796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 678896402570Smrg fi 678996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 679096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 679196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 679296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 679396402570Smrg $as_echo_n "(cached) " >&6 679496402570Smrgelse 679596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 679696402570Smrg/* end confdefs.h. */ 679796402570Smrgint i; 679896402570Smrg_ACEOF 679996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 680096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 680196402570Smrgelse 680296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 680396402570Smrgfi 680496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 680596402570Smrgfi 680696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 680796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 680896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 680996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 681096402570Smrgfi 681196402570Smrg 681296402570Smrgfound="no" 681396402570Smrg 681496402570Smrg if test $found = "no" ; then 681540c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 681696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 681796402570Smrg fi 681896402570Smrg 681940c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 682096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 682196402570Smrg fi 682296402570Smrg 682340c5344fSmrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 682496402570Smrg 682540c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 682640c5344fSmrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 682740c5344fSmrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 682896402570Smrg if eval \${$cacheid+:} false; then : 682996402570Smrg $as_echo_n "(cached) " >&6 683096402570Smrgelse 683196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 683296402570Smrg/* end confdefs.h. */ 683396402570Smrgint i; 683496402570Smrgint 683596402570Smrgmain () 683696402570Smrg{ 683796402570Smrg 683896402570Smrg ; 683996402570Smrg return 0; 684096402570Smrg} 684196402570Smrg_ACEOF 684296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 684396402570Smrg eval $cacheid=yes 684496402570Smrgelse 684596402570Smrg eval $cacheid=no 684696402570Smrgfi 684796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 684896402570Smrg conftest$ac_exeext conftest.$ac_ext 684996402570Smrgfi 685096402570Smrg 685196402570Smrg 685296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 685396402570Smrg 685496402570Smrg eval supported=\$$cacheid 685596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 685696402570Smrg$as_echo "$supported" >&6; } 685796402570Smrg if test "$supported" = "yes" ; then 685840c5344fSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 685996402570Smrg found="yes" 686096402570Smrg fi 686196402570Smrg fi 686296402570Smrg 686396402570Smrg 686496402570Smrg 686596402570Smrg 686696402570Smrg 686796402570Smrg 686896402570Smrg 686996402570Smrg 687096402570Smrg 687196402570Smrg 687296402570Smrg 687396402570Smrg 687496402570Smrg 687596402570Smrg 687696402570Smrg 687796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 687896402570Smrg 687996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 688096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 688196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 688296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 688396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 688496402570Smrg $as_echo_n "(cached) " >&6 688596402570Smrgelse 688696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 688796402570Smrg/* end confdefs.h. */ 688896402570Smrgint i; 688996402570Smrg_ACEOF 689096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 689196402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 689296402570Smrgelse 689396402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 689496402570Smrgfi 689596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 689696402570Smrgfi 689796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 689896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 689996402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 690096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 690196402570Smrgfi 690296402570Smrg 690396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 690496402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 690596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 690696402570Smrg fi 690796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 690896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 690996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 691096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 691196402570Smrg $as_echo_n "(cached) " >&6 691296402570Smrgelse 691396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 691496402570Smrg/* end confdefs.h. */ 691596402570Smrgint i; 691696402570Smrg_ACEOF 691796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 691896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 691996402570Smrgelse 692096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 692196402570Smrgfi 692296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 692396402570Smrgfi 692496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 692596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 692696402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 692796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 692896402570Smrgfi 692996402570Smrg 693096402570Smrgfound="no" 693196402570Smrg 693296402570Smrg if test $found = "no" ; then 693340c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 693496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 693596402570Smrg fi 693696402570Smrg 693740c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 693896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 693996402570Smrg fi 694096402570Smrg 694140c5344fSmrg CFLAGS="$CFLAGS -Wredundant-decls" 694296402570Smrg 694340c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 694440c5344fSmrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 694540c5344fSmrg cacheid=xorg_cv_cc_flag__Wredundant_decls 694696402570Smrg if eval \${$cacheid+:} false; then : 694796402570Smrg $as_echo_n "(cached) " >&6 694896402570Smrgelse 694996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 695096402570Smrg/* end confdefs.h. */ 695196402570Smrgint i; 695296402570Smrgint 695396402570Smrgmain () 695496402570Smrg{ 695596402570Smrg 695696402570Smrg ; 695796402570Smrg return 0; 695896402570Smrg} 695996402570Smrg_ACEOF 696096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 696196402570Smrg eval $cacheid=yes 696296402570Smrgelse 696396402570Smrg eval $cacheid=no 696496402570Smrgfi 696596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 696696402570Smrg conftest$ac_exeext conftest.$ac_ext 696796402570Smrgfi 696896402570Smrg 696996402570Smrg 697096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 697196402570Smrg 697296402570Smrg eval supported=\$$cacheid 697396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 697496402570Smrg$as_echo "$supported" >&6; } 697596402570Smrg if test "$supported" = "yes" ; then 697640c5344fSmrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 697796402570Smrg found="yes" 697896402570Smrg fi 697996402570Smrg fi 698096402570Smrg 698196402570Smrg 698296402570Smrg 698396402570Smrg 698496402570Smrg 698596402570Smrg 698696402570Smrg 698796402570Smrg 698896402570Smrg 698996402570Smrg 699096402570Smrg 699196402570Smrg 699296402570Smrg 699396402570Smrg 699496402570Smrg 699596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 699696402570Smrg 699796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 699896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 699996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 700096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 700196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 700296402570Smrg $as_echo_n "(cached) " >&6 700396402570Smrgelse 700496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 700596402570Smrg/* end confdefs.h. */ 700696402570Smrgint i; 700796402570Smrg_ACEOF 700896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 700996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 701096402570Smrgelse 701196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 701296402570Smrgfi 701396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 701496402570Smrgfi 701596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 701696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 701796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 701896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 701996402570Smrgfi 702096402570Smrg 702196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 702296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 702396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 702496402570Smrg fi 702596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 702696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 702796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 702896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 702996402570Smrg $as_echo_n "(cached) " >&6 703096402570Smrgelse 703196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 703296402570Smrg/* end confdefs.h. */ 703396402570Smrgint i; 703496402570Smrg_ACEOF 703596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 703696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 703796402570Smrgelse 703896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 703996402570Smrgfi 704096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 704196402570Smrgfi 704296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 704396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 704496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 704596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 704696402570Smrgfi 704796402570Smrg 704896402570Smrgfound="no" 704996402570Smrg 705096402570Smrg if test $found = "no" ; then 705140c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 705296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 705396402570Smrg fi 705496402570Smrg 705540c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 705696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 705796402570Smrg fi 705896402570Smrg 705940c5344fSmrg CFLAGS="$CFLAGS -Wlogical-op" 706096402570Smrg 706140c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 706240c5344fSmrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 706340c5344fSmrg cacheid=xorg_cv_cc_flag__Wlogical_op 706496402570Smrg if eval \${$cacheid+:} false; then : 706596402570Smrg $as_echo_n "(cached) " >&6 706696402570Smrgelse 706796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 706896402570Smrg/* end confdefs.h. */ 706996402570Smrgint i; 707096402570Smrgint 707196402570Smrgmain () 707296402570Smrg{ 707396402570Smrg 707496402570Smrg ; 707596402570Smrg return 0; 707696402570Smrg} 707796402570Smrg_ACEOF 707896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 707996402570Smrg eval $cacheid=yes 708096402570Smrgelse 708196402570Smrg eval $cacheid=no 708296402570Smrgfi 708396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 708496402570Smrg conftest$ac_exeext conftest.$ac_ext 708596402570Smrgfi 708696402570Smrg 708796402570Smrg 708896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 708996402570Smrg 709096402570Smrg eval supported=\$$cacheid 709196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 709296402570Smrg$as_echo "$supported" >&6; } 709396402570Smrg if test "$supported" = "yes" ; then 709440c5344fSmrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 709596402570Smrg found="yes" 709696402570Smrg fi 709796402570Smrg fi 709896402570Smrg 709996402570Smrg 710096402570Smrg 710196402570Smrg# These are currently disabled because they are noisy. They will be enabled 710296402570Smrg# in the future once the codebase is sufficiently modernized to silence 710396402570Smrg# them. For now, I don't want them to drown out the other warnings. 710496402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 710596402570Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 710640c5344fSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 710796402570Smrg 710896402570Smrg# Turn some warnings into errors, so we don't accidently get successful builds 710996402570Smrg# when there are problems that should be fixed. 711096402570Smrg 711196402570Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 711296402570Smrg 711396402570Smrg 711496402570Smrg 711596402570Smrg 711696402570Smrg 711796402570Smrg 711896402570Smrg 711996402570Smrg 712096402570Smrg 712196402570Smrg 712296402570Smrg 712396402570Smrg 712496402570Smrg 712596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 712696402570Smrg 712796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 712896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 712996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 713096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 713196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 713296402570Smrg $as_echo_n "(cached) " >&6 713396402570Smrgelse 713496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 713596402570Smrg/* end confdefs.h. */ 713696402570Smrgint i; 713796402570Smrg_ACEOF 713896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 713996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 714096402570Smrgelse 714196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 714296402570Smrgfi 714396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 714496402570Smrgfi 714596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 714696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 714796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 714896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 714996402570Smrgfi 715096402570Smrg 715196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 715296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 715396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 715496402570Smrg fi 715596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 715696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 715796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 715896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 715996402570Smrg $as_echo_n "(cached) " >&6 716096402570Smrgelse 716196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 716296402570Smrg/* end confdefs.h. */ 716396402570Smrgint i; 716496402570Smrg_ACEOF 716596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 716696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 716796402570Smrgelse 716896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 716996402570Smrgfi 717096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 717196402570Smrgfi 717296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 717396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 717496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 717596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 717696402570Smrgfi 717796402570Smrg 717896402570Smrgfound="no" 717996402570Smrg 718096402570Smrg if test $found = "no" ; then 718140c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 718296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 718396402570Smrg fi 718496402570Smrg 718540c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 718696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 718796402570Smrg fi 718896402570Smrg 718996402570Smrg CFLAGS="$CFLAGS -Werror=implicit" 719096402570Smrg 719140c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 719240c5344fSmrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 71938abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_implicit 719496402570Smrg if eval \${$cacheid+:} false; then : 719596402570Smrg $as_echo_n "(cached) " >&6 719696402570Smrgelse 719796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 719896402570Smrg/* end confdefs.h. */ 719996402570Smrgint i; 720096402570Smrgint 720196402570Smrgmain () 720296402570Smrg{ 720396402570Smrg 720496402570Smrg ; 720596402570Smrg return 0; 720696402570Smrg} 720796402570Smrg_ACEOF 720896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 720996402570Smrg eval $cacheid=yes 721096402570Smrgelse 721196402570Smrg eval $cacheid=no 721296402570Smrgfi 721396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 721496402570Smrg conftest$ac_exeext conftest.$ac_ext 721596402570Smrgfi 721696402570Smrg 721796402570Smrg 721896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 721996402570Smrg 722096402570Smrg eval supported=\$$cacheid 722196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 722296402570Smrg$as_echo "$supported" >&6; } 722396402570Smrg if test "$supported" = "yes" ; then 722496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 722596402570Smrg found="yes" 722696402570Smrg fi 722796402570Smrg fi 722896402570Smrg 722996402570Smrg if test $found = "no" ; then 723040c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 723196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 723296402570Smrg fi 723396402570Smrg 723440c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 723596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 723696402570Smrg fi 723796402570Smrg 723896402570Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 723996402570Smrg 724040c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 724140c5344fSmrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 72428abc0ccfSmrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 724396402570Smrg if eval \${$cacheid+:} false; then : 724496402570Smrg $as_echo_n "(cached) " >&6 724596402570Smrgelse 724696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 724796402570Smrg/* end confdefs.h. */ 724896402570Smrgint i; 724996402570Smrgint 725096402570Smrgmain () 725196402570Smrg{ 725296402570Smrg 725396402570Smrg ; 725496402570Smrg return 0; 725596402570Smrg} 725696402570Smrg_ACEOF 725796402570Smrgif ac_fn_c_try_link "$LINENO"; then : 725896402570Smrg eval $cacheid=yes 725996402570Smrgelse 726096402570Smrg eval $cacheid=no 726196402570Smrgfi 726296402570Smrgrm -f core conftest.err conftest.$ac_objext \ 726396402570Smrg conftest$ac_exeext conftest.$ac_ext 726496402570Smrgfi 726596402570Smrg 726696402570Smrg 726796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 726896402570Smrg 726996402570Smrg eval supported=\$$cacheid 727096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 727196402570Smrg$as_echo "$supported" >&6; } 727296402570Smrg if test "$supported" = "yes" ; then 727396402570Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 727496402570Smrg found="yes" 727596402570Smrg fi 727696402570Smrg fi 727796402570Smrg 727896402570Smrg 727996402570Smrg 728096402570Smrg 728196402570Smrg 728296402570Smrg 728396402570Smrg 728496402570Smrg 728596402570Smrg 728696402570Smrg 728796402570Smrg 728896402570Smrg 728996402570Smrg 729096402570Smrg 729196402570Smrg 729296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 729396402570Smrg 729496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 729596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 729696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 729796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 729896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 729996402570Smrg $as_echo_n "(cached) " >&6 730096402570Smrgelse 730196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 730296402570Smrg/* end confdefs.h. */ 730396402570Smrgint i; 730496402570Smrg_ACEOF 730596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 730696402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 730796402570Smrgelse 730896402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 730996402570Smrgfi 731096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 731196402570Smrgfi 731296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 731396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 731496402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 731596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 731696402570Smrgfi 731796402570Smrg 731896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 731996402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 732096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 732196402570Smrg fi 732296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 732396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 732496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 732596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 732696402570Smrg $as_echo_n "(cached) " >&6 732796402570Smrgelse 732896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 732996402570Smrg/* end confdefs.h. */ 733096402570Smrgint i; 733196402570Smrg_ACEOF 733296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 733396402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 733496402570Smrgelse 733596402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 733696402570Smrgfi 733796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 733896402570Smrgfi 733996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 734096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 734196402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 734296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 734396402570Smrgfi 734496402570Smrg 734596402570Smrgfound="no" 734696402570Smrg 734796402570Smrg if test $found = "no" ; then 734840c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 734996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 735096402570Smrg fi 735196402570Smrg 735240c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 735396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 735496402570Smrg fi 735596402570Smrg 735696402570Smrg CFLAGS="$CFLAGS -Werror=nonnull" 735796402570Smrg 735840c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 735940c5344fSmrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 73608abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_nonnull 736196402570Smrg if eval \${$cacheid+:} false; then : 736296402570Smrg $as_echo_n "(cached) " >&6 736396402570Smrgelse 736496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 736596402570Smrg/* end confdefs.h. */ 736696402570Smrgint i; 736796402570Smrgint 736896402570Smrgmain () 736996402570Smrg{ 737096402570Smrg 737196402570Smrg ; 737296402570Smrg return 0; 737396402570Smrg} 737496402570Smrg_ACEOF 737596402570Smrgif ac_fn_c_try_link "$LINENO"; then : 737696402570Smrg eval $cacheid=yes 737796402570Smrgelse 737896402570Smrg eval $cacheid=no 737996402570Smrgfi 738096402570Smrgrm -f core conftest.err conftest.$ac_objext \ 738196402570Smrg conftest$ac_exeext conftest.$ac_ext 738296402570Smrgfi 738396402570Smrg 738496402570Smrg 738596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 738696402570Smrg 738796402570Smrg eval supported=\$$cacheid 738896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 738996402570Smrg$as_echo "$supported" >&6; } 739096402570Smrg if test "$supported" = "yes" ; then 739196402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 739296402570Smrg found="yes" 739396402570Smrg fi 739496402570Smrg fi 739596402570Smrg 739696402570Smrg 739796402570Smrg 739896402570Smrg 739996402570Smrg 740096402570Smrg 740196402570Smrg 740296402570Smrg 740396402570Smrg 740496402570Smrg 740596402570Smrg 740696402570Smrg 740796402570Smrg 740896402570Smrg 740996402570Smrg 741096402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 741196402570Smrg 741296402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 741396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 741496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 741596402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 741696402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 741796402570Smrg $as_echo_n "(cached) " >&6 741896402570Smrgelse 741996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 742096402570Smrg/* end confdefs.h. */ 742196402570Smrgint i; 742296402570Smrg_ACEOF 742396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 742496402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 742596402570Smrgelse 742696402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 742796402570Smrgfi 742896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 742996402570Smrgfi 743096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 743196402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 743296402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 743396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 743496402570Smrgfi 743596402570Smrg 743696402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 743796402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 743896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 743996402570Smrg fi 744096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 744196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 744296402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 744396402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 744496402570Smrg $as_echo_n "(cached) " >&6 744596402570Smrgelse 744696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 744796402570Smrg/* end confdefs.h. */ 744896402570Smrgint i; 744996402570Smrg_ACEOF 745096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 745196402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 745296402570Smrgelse 745396402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 745496402570Smrgfi 745596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 745696402570Smrgfi 745796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 745896402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 745996402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 746096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 746196402570Smrgfi 746296402570Smrg 746396402570Smrgfound="no" 746496402570Smrg 746596402570Smrg if test $found = "no" ; then 746640c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 746796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 746896402570Smrg fi 746996402570Smrg 747040c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 747196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 747296402570Smrg fi 747396402570Smrg 747496402570Smrg CFLAGS="$CFLAGS -Werror=init-self" 747596402570Smrg 747640c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 747740c5344fSmrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 74788abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_init_self 747996402570Smrg if eval \${$cacheid+:} false; then : 748096402570Smrg $as_echo_n "(cached) " >&6 748196402570Smrgelse 748296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 748396402570Smrg/* end confdefs.h. */ 748496402570Smrgint i; 748596402570Smrgint 748696402570Smrgmain () 748796402570Smrg{ 748896402570Smrg 748996402570Smrg ; 749096402570Smrg return 0; 749196402570Smrg} 749296402570Smrg_ACEOF 749396402570Smrgif ac_fn_c_try_link "$LINENO"; then : 749496402570Smrg eval $cacheid=yes 749596402570Smrgelse 749696402570Smrg eval $cacheid=no 749796402570Smrgfi 749896402570Smrgrm -f core conftest.err conftest.$ac_objext \ 749996402570Smrg conftest$ac_exeext conftest.$ac_ext 750096402570Smrgfi 750196402570Smrg 750296402570Smrg 750396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 750496402570Smrg 750596402570Smrg eval supported=\$$cacheid 750696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 750796402570Smrg$as_echo "$supported" >&6; } 750896402570Smrg if test "$supported" = "yes" ; then 750996402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 751096402570Smrg found="yes" 751196402570Smrg fi 751296402570Smrg fi 751396402570Smrg 751496402570Smrg 751596402570Smrg 751696402570Smrg 751796402570Smrg 751896402570Smrg 751996402570Smrg 752096402570Smrg 752196402570Smrg 752296402570Smrg 752396402570Smrg 752496402570Smrg 752596402570Smrg 752696402570Smrg 752796402570Smrg 752896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 752996402570Smrg 753096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 753196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 753296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 753396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 753496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 753596402570Smrg $as_echo_n "(cached) " >&6 753696402570Smrgelse 753796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 753896402570Smrg/* end confdefs.h. */ 753996402570Smrgint i; 754096402570Smrg_ACEOF 754196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 754296402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 754396402570Smrgelse 754496402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 754596402570Smrgfi 754696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 754796402570Smrgfi 754896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 754996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 755096402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 755196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 755296402570Smrgfi 755396402570Smrg 755496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 755596402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 755696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 755796402570Smrg fi 755896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 755996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 756096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 756196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 756296402570Smrg $as_echo_n "(cached) " >&6 756396402570Smrgelse 756496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 756596402570Smrg/* end confdefs.h. */ 756696402570Smrgint i; 756796402570Smrg_ACEOF 756896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 756996402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 757096402570Smrgelse 757196402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 757296402570Smrgfi 757396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 757496402570Smrgfi 757596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 757696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 757796402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 757896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 757996402570Smrgfi 758096402570Smrg 758196402570Smrgfound="no" 758296402570Smrg 758396402570Smrg if test $found = "no" ; then 758440c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 758596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 758696402570Smrg fi 758796402570Smrg 758840c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 758996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 759096402570Smrg fi 759196402570Smrg 759296402570Smrg CFLAGS="$CFLAGS -Werror=main" 759396402570Smrg 759440c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 759540c5344fSmrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 75968abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_main 759796402570Smrg if eval \${$cacheid+:} false; then : 759896402570Smrg $as_echo_n "(cached) " >&6 759996402570Smrgelse 760096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 760196402570Smrg/* end confdefs.h. */ 760296402570Smrgint i; 760396402570Smrgint 760496402570Smrgmain () 760596402570Smrg{ 760696402570Smrg 760796402570Smrg ; 760896402570Smrg return 0; 760996402570Smrg} 761096402570Smrg_ACEOF 761196402570Smrgif ac_fn_c_try_link "$LINENO"; then : 761296402570Smrg eval $cacheid=yes 761396402570Smrgelse 761496402570Smrg eval $cacheid=no 761596402570Smrgfi 761696402570Smrgrm -f core conftest.err conftest.$ac_objext \ 761796402570Smrg conftest$ac_exeext conftest.$ac_ext 761896402570Smrgfi 761996402570Smrg 762096402570Smrg 762196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 762296402570Smrg 762396402570Smrg eval supported=\$$cacheid 762496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 762596402570Smrg$as_echo "$supported" >&6; } 762696402570Smrg if test "$supported" = "yes" ; then 762796402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 762896402570Smrg found="yes" 762996402570Smrg fi 763096402570Smrg fi 763196402570Smrg 763296402570Smrg 763396402570Smrg 763496402570Smrg 763596402570Smrg 763696402570Smrg 763796402570Smrg 763896402570Smrg 763996402570Smrg 764096402570Smrg 764196402570Smrg 764296402570Smrg 764396402570Smrg 764496402570Smrg 764596402570Smrg 764696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 764796402570Smrg 764896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 764996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 765096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 765196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 765296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 765396402570Smrg $as_echo_n "(cached) " >&6 765496402570Smrgelse 765596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 765696402570Smrg/* end confdefs.h. */ 765796402570Smrgint i; 765896402570Smrg_ACEOF 765996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 766096402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 766196402570Smrgelse 766296402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 766396402570Smrgfi 766496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 766596402570Smrgfi 766696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 766796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 766896402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 766996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 767096402570Smrgfi 767196402570Smrg 767296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 767396402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 767496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 767596402570Smrg fi 767696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 767796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 767896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 767996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 768096402570Smrg $as_echo_n "(cached) " >&6 768196402570Smrgelse 768296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 768396402570Smrg/* end confdefs.h. */ 768496402570Smrgint i; 768596402570Smrg_ACEOF 768696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 768796402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 768896402570Smrgelse 768996402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 769096402570Smrgfi 769196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 769296402570Smrgfi 769396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 769496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 769596402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 769696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 769796402570Smrgfi 769896402570Smrg 769996402570Smrgfound="no" 770096402570Smrg 770196402570Smrg if test $found = "no" ; then 770240c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 770396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 770496402570Smrg fi 770596402570Smrg 770640c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 770796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 770896402570Smrg fi 770996402570Smrg 771096402570Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 771196402570Smrg 771240c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 771340c5344fSmrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 77148abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 771596402570Smrg if eval \${$cacheid+:} false; then : 771696402570Smrg $as_echo_n "(cached) " >&6 771796402570Smrgelse 771896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 771996402570Smrg/* end confdefs.h. */ 772096402570Smrgint i; 772196402570Smrgint 772296402570Smrgmain () 772396402570Smrg{ 772496402570Smrg 772596402570Smrg ; 772696402570Smrg return 0; 772796402570Smrg} 772896402570Smrg_ACEOF 772996402570Smrgif ac_fn_c_try_link "$LINENO"; then : 773096402570Smrg eval $cacheid=yes 773196402570Smrgelse 773296402570Smrg eval $cacheid=no 773396402570Smrgfi 773496402570Smrgrm -f core conftest.err conftest.$ac_objext \ 773596402570Smrg conftest$ac_exeext conftest.$ac_ext 773696402570Smrgfi 773796402570Smrg 773896402570Smrg 773996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 774096402570Smrg 774196402570Smrg eval supported=\$$cacheid 774296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 774396402570Smrg$as_echo "$supported" >&6; } 774496402570Smrg if test "$supported" = "yes" ; then 774596402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 774696402570Smrg found="yes" 774796402570Smrg fi 774896402570Smrg fi 774996402570Smrg 775096402570Smrg 775196402570Smrg 775296402570Smrg 775396402570Smrg 775496402570Smrg 775596402570Smrg 775696402570Smrg 775796402570Smrg 775896402570Smrg 775996402570Smrg 776096402570Smrg 776196402570Smrg 776296402570Smrg 776396402570Smrg 776496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 776596402570Smrg 776696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 776796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 776896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 776996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 777096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 777196402570Smrg $as_echo_n "(cached) " >&6 777296402570Smrgelse 777396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 777496402570Smrg/* end confdefs.h. */ 777596402570Smrgint i; 777696402570Smrg_ACEOF 777796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 777896402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 777996402570Smrgelse 778096402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 778196402570Smrgfi 778296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 778396402570Smrgfi 778496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 778596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 778696402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 778796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 778896402570Smrgfi 778996402570Smrg 779096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 779196402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 779296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 779396402570Smrg fi 779496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 779596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 779696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 779796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 779896402570Smrg $as_echo_n "(cached) " >&6 779996402570Smrgelse 780096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 780196402570Smrg/* end confdefs.h. */ 780296402570Smrgint i; 780396402570Smrg_ACEOF 780496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 780596402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 780696402570Smrgelse 780796402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 780896402570Smrgfi 780996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 781096402570Smrgfi 781196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 781296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 781396402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 781496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 781596402570Smrgfi 781696402570Smrg 781796402570Smrgfound="no" 781896402570Smrg 781996402570Smrg if test $found = "no" ; then 782040c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 782196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 782296402570Smrg fi 782396402570Smrg 782440c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 782596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 782696402570Smrg fi 782796402570Smrg 782896402570Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 782996402570Smrg 783040c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 783140c5344fSmrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 78328abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 783396402570Smrg if eval \${$cacheid+:} false; then : 783496402570Smrg $as_echo_n "(cached) " >&6 783596402570Smrgelse 783696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 783796402570Smrg/* end confdefs.h. */ 783896402570Smrgint i; 783996402570Smrgint 784096402570Smrgmain () 784196402570Smrg{ 784296402570Smrg 784396402570Smrg ; 784496402570Smrg return 0; 784596402570Smrg} 784696402570Smrg_ACEOF 784796402570Smrgif ac_fn_c_try_link "$LINENO"; then : 784896402570Smrg eval $cacheid=yes 784996402570Smrgelse 785096402570Smrg eval $cacheid=no 785196402570Smrgfi 785296402570Smrgrm -f core conftest.err conftest.$ac_objext \ 785396402570Smrg conftest$ac_exeext conftest.$ac_ext 785496402570Smrgfi 785596402570Smrg 785696402570Smrg 785796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 785896402570Smrg 785996402570Smrg eval supported=\$$cacheid 786096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 786196402570Smrg$as_echo "$supported" >&6; } 786296402570Smrg if test "$supported" = "yes" ; then 786396402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 786496402570Smrg found="yes" 786596402570Smrg fi 786696402570Smrg fi 786796402570Smrg 786896402570Smrg 786996402570Smrg 787096402570Smrg 787196402570Smrg 787296402570Smrg 787396402570Smrg 787496402570Smrg 787596402570Smrg 787696402570Smrg 787796402570Smrg 787896402570Smrg 787996402570Smrg 788096402570Smrg 788196402570Smrg 788296402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 788396402570Smrg 788496402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 788596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 788696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 788796402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 788896402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 788996402570Smrg $as_echo_n "(cached) " >&6 789096402570Smrgelse 789196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 789296402570Smrg/* end confdefs.h. */ 789396402570Smrgint i; 789496402570Smrg_ACEOF 789596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 789696402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 789796402570Smrgelse 789896402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 789996402570Smrgfi 790096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 790196402570Smrgfi 790296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 790396402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 790496402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 790596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 790696402570Smrgfi 790796402570Smrg 790896402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 790996402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 791096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 791196402570Smrg fi 791296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 791396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 791496402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 791596402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 791696402570Smrg $as_echo_n "(cached) " >&6 791796402570Smrgelse 791896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 791996402570Smrg/* end confdefs.h. */ 792096402570Smrgint i; 792196402570Smrg_ACEOF 792296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 792396402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 792496402570Smrgelse 792596402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 792696402570Smrgfi 792796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 792896402570Smrgfi 792996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 793096402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 793196402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 793296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 793396402570Smrgfi 793496402570Smrg 793596402570Smrgfound="no" 793696402570Smrg 793796402570Smrg if test $found = "no" ; then 793840c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 793996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 794096402570Smrg fi 794196402570Smrg 794240c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 794396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 794496402570Smrg fi 794596402570Smrg 794696402570Smrg CFLAGS="$CFLAGS -Werror=return-type" 794796402570Smrg 794840c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 794940c5344fSmrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 79508abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_return_type 795196402570Smrg if eval \${$cacheid+:} false; then : 795296402570Smrg $as_echo_n "(cached) " >&6 795396402570Smrgelse 795496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 795596402570Smrg/* end confdefs.h. */ 795696402570Smrgint i; 795796402570Smrgint 795896402570Smrgmain () 795996402570Smrg{ 796096402570Smrg 796196402570Smrg ; 796296402570Smrg return 0; 796396402570Smrg} 796496402570Smrg_ACEOF 796596402570Smrgif ac_fn_c_try_link "$LINENO"; then : 796696402570Smrg eval $cacheid=yes 796796402570Smrgelse 796896402570Smrg eval $cacheid=no 796996402570Smrgfi 797096402570Smrgrm -f core conftest.err conftest.$ac_objext \ 797196402570Smrg conftest$ac_exeext conftest.$ac_ext 797296402570Smrgfi 797396402570Smrg 797496402570Smrg 797596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 797696402570Smrg 797796402570Smrg eval supported=\$$cacheid 797896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 797996402570Smrg$as_echo "$supported" >&6; } 798096402570Smrg if test "$supported" = "yes" ; then 798196402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 798296402570Smrg found="yes" 798396402570Smrg fi 798496402570Smrg fi 798596402570Smrg 798696402570Smrg if test $found = "no" ; then 798740c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 798896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 798996402570Smrg fi 799096402570Smrg 799140c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 799296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 799396402570Smrg fi 799496402570Smrg 799596402570Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 799696402570Smrg 799740c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 799840c5344fSmrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 79998abc0ccfSmrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 800096402570Smrg if eval \${$cacheid+:} false; then : 800196402570Smrg $as_echo_n "(cached) " >&6 800296402570Smrgelse 800396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 800496402570Smrg/* end confdefs.h. */ 800596402570Smrgint i; 800696402570Smrgint 800796402570Smrgmain () 800896402570Smrg{ 800996402570Smrg 801096402570Smrg ; 801196402570Smrg return 0; 801296402570Smrg} 801396402570Smrg_ACEOF 801496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 801596402570Smrg eval $cacheid=yes 801696402570Smrgelse 801796402570Smrg eval $cacheid=no 801896402570Smrgfi 801996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 802096402570Smrg conftest$ac_exeext conftest.$ac_ext 802196402570Smrgfi 802296402570Smrg 802396402570Smrg 802496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 802596402570Smrg 802696402570Smrg eval supported=\$$cacheid 802796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 802896402570Smrg$as_echo "$supported" >&6; } 802996402570Smrg if test "$supported" = "yes" ; then 803096402570Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 803196402570Smrg found="yes" 803296402570Smrg fi 803396402570Smrg fi 803496402570Smrg 803596402570Smrg 803696402570Smrg 803796402570Smrg 803896402570Smrg 803996402570Smrg 804096402570Smrg 804196402570Smrg 804296402570Smrg 804396402570Smrg 804496402570Smrg 804596402570Smrg 804696402570Smrg 804796402570Smrg 804896402570Smrg 804996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 805096402570Smrg 805196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 805296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 805396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 805496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 805596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 805696402570Smrg $as_echo_n "(cached) " >&6 805796402570Smrgelse 805896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 805996402570Smrg/* end confdefs.h. */ 806096402570Smrgint i; 806196402570Smrg_ACEOF 806296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 806396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 806496402570Smrgelse 806596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 806696402570Smrgfi 806796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 806896402570Smrgfi 806996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 807096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 807196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 807296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 807396402570Smrgfi 807496402570Smrg 807596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 807696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 807796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 807896402570Smrg fi 807996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 808096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 808196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 808296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 808396402570Smrg $as_echo_n "(cached) " >&6 808496402570Smrgelse 808596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 808696402570Smrg/* end confdefs.h. */ 808796402570Smrgint i; 808896402570Smrg_ACEOF 808996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 809096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 809196402570Smrgelse 809296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 809396402570Smrgfi 809496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 809596402570Smrgfi 809696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 809796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 809896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 809996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 810096402570Smrgfi 810196402570Smrg 810296402570Smrgfound="no" 810396402570Smrg 810496402570Smrg if test $found = "no" ; then 810540c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 810696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 810796402570Smrg fi 810896402570Smrg 810940c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 811096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 811196402570Smrg fi 811296402570Smrg 811396402570Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 811496402570Smrg 811540c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 811640c5344fSmrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 81178abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 811896402570Smrg if eval \${$cacheid+:} false; then : 811996402570Smrg $as_echo_n "(cached) " >&6 812096402570Smrgelse 812196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 812296402570Smrg/* end confdefs.h. */ 812396402570Smrgint i; 812496402570Smrgint 812596402570Smrgmain () 812696402570Smrg{ 812796402570Smrg 812896402570Smrg ; 812996402570Smrg return 0; 813096402570Smrg} 813196402570Smrg_ACEOF 813296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 813396402570Smrg eval $cacheid=yes 813496402570Smrgelse 813596402570Smrg eval $cacheid=no 813696402570Smrgfi 813796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 813896402570Smrg conftest$ac_exeext conftest.$ac_ext 813996402570Smrgfi 814096402570Smrg 814196402570Smrg 814296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 814396402570Smrg 814496402570Smrg eval supported=\$$cacheid 814596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 814696402570Smrg$as_echo "$supported" >&6; } 814796402570Smrg if test "$supported" = "yes" ; then 814896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 814996402570Smrg found="yes" 815096402570Smrg fi 815196402570Smrg fi 815296402570Smrg 815396402570Smrg 815496402570Smrg 815596402570Smrg 815696402570Smrg 815796402570Smrg 815896402570Smrg 815996402570Smrg 816096402570Smrg 816196402570Smrg 816296402570Smrg 816396402570Smrg 816496402570Smrg 816596402570Smrg 816696402570Smrg 816796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 816896402570Smrg 816996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 817096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 817196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 817296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 817396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 817496402570Smrg $as_echo_n "(cached) " >&6 817596402570Smrgelse 817696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 817796402570Smrg/* end confdefs.h. */ 817896402570Smrgint i; 817996402570Smrg_ACEOF 818096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 818196402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 818296402570Smrgelse 818396402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 818496402570Smrgfi 818596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 818696402570Smrgfi 818796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 818896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 818996402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 819096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 819196402570Smrgfi 819296402570Smrg 819396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 819496402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 819596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 819696402570Smrg fi 819796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 819896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 819996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 820096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 820196402570Smrg $as_echo_n "(cached) " >&6 820296402570Smrgelse 820396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 820496402570Smrg/* end confdefs.h. */ 820596402570Smrgint i; 820696402570Smrg_ACEOF 820796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 820896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 820996402570Smrgelse 821096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 821196402570Smrgfi 821296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 821396402570Smrgfi 821496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 821596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 821696402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 821796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 821896402570Smrgfi 821996402570Smrg 822096402570Smrgfound="no" 822196402570Smrg 822296402570Smrg if test $found = "no" ; then 822340c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 822496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 822596402570Smrg fi 822696402570Smrg 822740c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 822896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 822996402570Smrg fi 823096402570Smrg 823196402570Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 823296402570Smrg 823340c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 823440c5344fSmrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 82358abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 823696402570Smrg if eval \${$cacheid+:} false; then : 823796402570Smrg $as_echo_n "(cached) " >&6 823896402570Smrgelse 823996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 824096402570Smrg/* end confdefs.h. */ 824196402570Smrgint i; 824296402570Smrgint 824396402570Smrgmain () 824496402570Smrg{ 824596402570Smrg 824696402570Smrg ; 824796402570Smrg return 0; 824896402570Smrg} 824996402570Smrg_ACEOF 825096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 825196402570Smrg eval $cacheid=yes 825296402570Smrgelse 825396402570Smrg eval $cacheid=no 825496402570Smrgfi 825596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 825696402570Smrg conftest$ac_exeext conftest.$ac_ext 825796402570Smrgfi 825896402570Smrg 825996402570Smrg 826096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 826196402570Smrg 826296402570Smrg eval supported=\$$cacheid 826396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 826496402570Smrg$as_echo "$supported" >&6; } 826596402570Smrg if test "$supported" = "yes" ; then 826696402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 826796402570Smrg found="yes" 826896402570Smrg fi 826996402570Smrg fi 827096402570Smrg 827196402570Smrg 827296402570Smrg 827396402570Smrg 827496402570Smrg 827596402570Smrg 827696402570Smrg 827796402570Smrg 827896402570Smrg 827996402570Smrg 828096402570Smrg 828196402570Smrg 828296402570Smrg 828396402570Smrg 828496402570Smrg 828596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 828696402570Smrg 828796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 828896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 828996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 829096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 829196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 829296402570Smrg $as_echo_n "(cached) " >&6 829396402570Smrgelse 829496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 829596402570Smrg/* end confdefs.h. */ 829696402570Smrgint i; 829796402570Smrg_ACEOF 829896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 829996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 830096402570Smrgelse 830196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 830296402570Smrgfi 830396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 830496402570Smrgfi 830596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 830696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 830796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 830896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 830996402570Smrgfi 831096402570Smrg 831196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 831296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 831396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 831496402570Smrg fi 831596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 831696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 831796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 831896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 831996402570Smrg $as_echo_n "(cached) " >&6 832096402570Smrgelse 832196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 832296402570Smrg/* end confdefs.h. */ 832396402570Smrgint i; 832496402570Smrg_ACEOF 832596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 832696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 832796402570Smrgelse 832896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 832996402570Smrgfi 833096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 833196402570Smrgfi 833296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 833396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 833496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 833596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 833696402570Smrgfi 833796402570Smrg 833896402570Smrgfound="no" 833996402570Smrg 834096402570Smrg if test $found = "no" ; then 834140c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 834296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 834396402570Smrg fi 834496402570Smrg 834540c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 834696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 834796402570Smrg fi 834896402570Smrg 834996402570Smrg CFLAGS="$CFLAGS -Werror=write-strings" 835096402570Smrg 835140c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 835240c5344fSmrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 83538abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_write_strings 835496402570Smrg if eval \${$cacheid+:} false; then : 835596402570Smrg $as_echo_n "(cached) " >&6 835696402570Smrgelse 835796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 835896402570Smrg/* end confdefs.h. */ 835996402570Smrgint i; 836096402570Smrgint 836196402570Smrgmain () 836296402570Smrg{ 836396402570Smrg 836496402570Smrg ; 836596402570Smrg return 0; 836696402570Smrg} 836796402570Smrg_ACEOF 836896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 836996402570Smrg eval $cacheid=yes 837096402570Smrgelse 837196402570Smrg eval $cacheid=no 837296402570Smrgfi 837396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 837496402570Smrg conftest$ac_exeext conftest.$ac_ext 837596402570Smrgfi 837696402570Smrg 837796402570Smrg 837896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 837996402570Smrg 838096402570Smrg eval supported=\$$cacheid 838196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 838296402570Smrg$as_echo "$supported" >&6; } 838396402570Smrg if test "$supported" = "yes" ; then 838496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 838596402570Smrg found="yes" 838696402570Smrg fi 838796402570Smrg fi 838896402570Smrg 838996402570Smrg 839096402570Smrg 839196402570Smrg 839296402570Smrg 839396402570Smrg 839496402570Smrg 839596402570Smrg 839696402570Smrg 839796402570Smrg 839896402570Smrg 839996402570Smrg 840096402570Smrg 840196402570Smrg 840296402570Smrg 840396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 840496402570Smrg 840596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 840696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 840796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 840896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 840996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 841096402570Smrg $as_echo_n "(cached) " >&6 841196402570Smrgelse 841296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 841396402570Smrg/* end confdefs.h. */ 841496402570Smrgint i; 841596402570Smrg_ACEOF 841696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 841796402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 841896402570Smrgelse 841996402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 842096402570Smrgfi 842196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 842296402570Smrgfi 842396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 842496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 842596402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 842696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 842796402570Smrgfi 842896402570Smrg 842996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 843096402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 843196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 843296402570Smrg fi 843396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 843496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 843596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 843696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 843796402570Smrg $as_echo_n "(cached) " >&6 843896402570Smrgelse 843996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 844096402570Smrg/* end confdefs.h. */ 844196402570Smrgint i; 844296402570Smrg_ACEOF 844396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 844496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 844596402570Smrgelse 844696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 844796402570Smrgfi 844896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 844996402570Smrgfi 845096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 845196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 845296402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 845396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 845496402570Smrgfi 845596402570Smrg 845696402570Smrgfound="no" 845796402570Smrg 845896402570Smrg if test $found = "no" ; then 845940c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 846096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 846196402570Smrg fi 846296402570Smrg 846340c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 846496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 846596402570Smrg fi 846696402570Smrg 846796402570Smrg CFLAGS="$CFLAGS -Werror=address" 846896402570Smrg 846940c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 847040c5344fSmrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 84718abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_address 847296402570Smrg if eval \${$cacheid+:} false; then : 847396402570Smrg $as_echo_n "(cached) " >&6 847496402570Smrgelse 847596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 847696402570Smrg/* end confdefs.h. */ 847796402570Smrgint i; 847896402570Smrgint 847996402570Smrgmain () 848096402570Smrg{ 848196402570Smrg 848296402570Smrg ; 848396402570Smrg return 0; 848496402570Smrg} 848596402570Smrg_ACEOF 848696402570Smrgif ac_fn_c_try_link "$LINENO"; then : 848796402570Smrg eval $cacheid=yes 848896402570Smrgelse 848996402570Smrg eval $cacheid=no 849096402570Smrgfi 849196402570Smrgrm -f core conftest.err conftest.$ac_objext \ 849296402570Smrg conftest$ac_exeext conftest.$ac_ext 849396402570Smrgfi 849496402570Smrg 849596402570Smrg 849696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 849796402570Smrg 849896402570Smrg eval supported=\$$cacheid 849996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 850096402570Smrg$as_echo "$supported" >&6; } 850196402570Smrg if test "$supported" = "yes" ; then 850296402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 850396402570Smrg found="yes" 850496402570Smrg fi 850596402570Smrg fi 850696402570Smrg 850796402570Smrg 850896402570Smrg 850996402570Smrg 851096402570Smrg 851196402570Smrg 851296402570Smrg 851396402570Smrg 851496402570Smrg 851596402570Smrg 851696402570Smrg 851796402570Smrg 851896402570Smrg 851996402570Smrg 852096402570Smrg 852196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 852296402570Smrg 852396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 852496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 852596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 852696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 852796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 852896402570Smrg $as_echo_n "(cached) " >&6 852996402570Smrgelse 853096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 853196402570Smrg/* end confdefs.h. */ 853296402570Smrgint i; 853396402570Smrg_ACEOF 853496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 853596402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 853696402570Smrgelse 853796402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 853896402570Smrgfi 853996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 854096402570Smrgfi 854196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 854296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 854396402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 854496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 854596402570Smrgfi 854696402570Smrg 854796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 854896402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 854996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 855096402570Smrg fi 855196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 855296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 855396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 855496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 855596402570Smrg $as_echo_n "(cached) " >&6 855696402570Smrgelse 855796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 855896402570Smrg/* end confdefs.h. */ 855996402570Smrgint i; 856096402570Smrg_ACEOF 856196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 856296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 856396402570Smrgelse 856496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 856596402570Smrgfi 856696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 856796402570Smrgfi 856896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 856996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 857096402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 857196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 857296402570Smrgfi 857396402570Smrg 857496402570Smrgfound="no" 857596402570Smrg 857696402570Smrg if test $found = "no" ; then 857740c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 857896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 857996402570Smrg fi 858096402570Smrg 858140c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 858296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 858396402570Smrg fi 858496402570Smrg 858596402570Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 858696402570Smrg 858740c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 858840c5344fSmrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 85898abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 859096402570Smrg if eval \${$cacheid+:} false; then : 859196402570Smrg $as_echo_n "(cached) " >&6 859296402570Smrgelse 859396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 859496402570Smrg/* end confdefs.h. */ 859596402570Smrgint i; 859696402570Smrgint 859796402570Smrgmain () 859896402570Smrg{ 859996402570Smrg 860096402570Smrg ; 860196402570Smrg return 0; 860296402570Smrg} 860396402570Smrg_ACEOF 860496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 860596402570Smrg eval $cacheid=yes 860696402570Smrgelse 860796402570Smrg eval $cacheid=no 860896402570Smrgfi 860996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 861096402570Smrg conftest$ac_exeext conftest.$ac_ext 861196402570Smrgfi 861296402570Smrg 861396402570Smrg 861496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 861596402570Smrg 861696402570Smrg eval supported=\$$cacheid 861796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 861896402570Smrg$as_echo "$supported" >&6; } 861996402570Smrg if test "$supported" = "yes" ; then 862096402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 862196402570Smrg found="yes" 862296402570Smrg fi 862396402570Smrg fi 862496402570Smrg 862596402570Smrg if test $found = "no" ; then 862640c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 862796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 862896402570Smrg fi 862996402570Smrg 863040c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 863196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 863296402570Smrg fi 863396402570Smrg 863496402570Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 863596402570Smrg 863640c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 863740c5344fSmrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 86388abc0ccfSmrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 863996402570Smrg if eval \${$cacheid+:} false; then : 864096402570Smrg $as_echo_n "(cached) " >&6 864196402570Smrgelse 864296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 864396402570Smrg/* end confdefs.h. */ 864496402570Smrgint i; 864596402570Smrgint 864696402570Smrgmain () 864796402570Smrg{ 864896402570Smrg 864996402570Smrg ; 865096402570Smrg return 0; 865196402570Smrg} 865296402570Smrg_ACEOF 865396402570Smrgif ac_fn_c_try_link "$LINENO"; then : 865496402570Smrg eval $cacheid=yes 865596402570Smrgelse 865696402570Smrg eval $cacheid=no 865796402570Smrgfi 865896402570Smrgrm -f core conftest.err conftest.$ac_objext \ 865996402570Smrg conftest$ac_exeext conftest.$ac_ext 866096402570Smrgfi 866196402570Smrg 866296402570Smrg 866396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 866496402570Smrg 866596402570Smrg eval supported=\$$cacheid 866696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 866796402570Smrg$as_echo "$supported" >&6; } 866896402570Smrg if test "$supported" = "yes" ; then 866996402570Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 867096402570Smrg found="yes" 867196402570Smrg fi 867296402570Smrg fi 867396402570Smrg 867496402570Smrg 867596402570Smrg 867696402570Smrg 867796402570Smrg 867896402570Smrg 867996402570Smrg 868096402570Smrg 868196402570Smrg 868296402570Smrg 868396402570Smrg 868496402570Smrg 868596402570Smrg 868696402570Smrg 868796402570Smrg 868896402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 868996402570Smrg 869096402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 869196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 869296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 869396402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 869496402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 869596402570Smrg $as_echo_n "(cached) " >&6 869696402570Smrgelse 869796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 869896402570Smrg/* end confdefs.h. */ 869996402570Smrgint i; 870096402570Smrg_ACEOF 870196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 870296402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 870396402570Smrgelse 870496402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 870596402570Smrgfi 870696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 870796402570Smrgfi 870896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 870996402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 871096402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 871196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 871296402570Smrgfi 871396402570Smrg 871496402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 871596402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 871696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 871796402570Smrg fi 871896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 871996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 872096402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 872196402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 872296402570Smrg $as_echo_n "(cached) " >&6 872396402570Smrgelse 872496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 872596402570Smrg/* end confdefs.h. */ 872696402570Smrgint i; 872796402570Smrg_ACEOF 872896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 872996402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 873096402570Smrgelse 873196402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 873296402570Smrgfi 873396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 873496402570Smrgfi 873596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 873696402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 873796402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 873896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 873996402570Smrgfi 874096402570Smrg 874196402570Smrgfound="no" 874296402570Smrg 874396402570Smrg if test $found = "no" ; then 874440c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 874596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 874696402570Smrg fi 874796402570Smrg 874840c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 874996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 875096402570Smrg fi 875196402570Smrg 875296402570Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 875396402570Smrg 875440c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 875540c5344fSmrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 87568abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 875796402570Smrg if eval \${$cacheid+:} false; then : 875896402570Smrg $as_echo_n "(cached) " >&6 875996402570Smrgelse 876096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 876196402570Smrg/* end confdefs.h. */ 876296402570Smrgint i; 876396402570Smrgint 876496402570Smrgmain () 876596402570Smrg{ 876696402570Smrg 876796402570Smrg ; 876896402570Smrg return 0; 876996402570Smrg} 877096402570Smrg_ACEOF 877196402570Smrgif ac_fn_c_try_link "$LINENO"; then : 877296402570Smrg eval $cacheid=yes 877396402570Smrgelse 877496402570Smrg eval $cacheid=no 877596402570Smrgfi 877696402570Smrgrm -f core conftest.err conftest.$ac_objext \ 877796402570Smrg conftest$ac_exeext conftest.$ac_ext 877896402570Smrgfi 877996402570Smrg 878096402570Smrg 878196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 878296402570Smrg 878396402570Smrg eval supported=\$$cacheid 878496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 878596402570Smrg$as_echo "$supported" >&6; } 878696402570Smrg if test "$supported" = "yes" ; then 878796402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 878896402570Smrg found="yes" 878996402570Smrg fi 879096402570Smrg fi 879196402570Smrg 879296402570Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 879396402570Smrgelse 879496402570Smrg{ $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 879596402570Smrg$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;} 879696402570Smrg 879796402570Smrg 879896402570Smrg 879996402570Smrg 880096402570Smrg 880196402570Smrg 880296402570Smrg 880396402570Smrg 880496402570Smrg 880596402570Smrg 880696402570Smrg 880796402570Smrg 880896402570Smrg 880996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 881096402570Smrg 881196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 881296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 881396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 881496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 881596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 881696402570Smrg $as_echo_n "(cached) " >&6 881796402570Smrgelse 881896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 881996402570Smrg/* end confdefs.h. */ 882096402570Smrgint i; 882196402570Smrg_ACEOF 882296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 882396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 882496402570Smrgelse 882596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 882696402570Smrgfi 882796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 882896402570Smrgfi 882996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 883096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 883196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 883296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 883396402570Smrgfi 883496402570Smrg 883596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 883696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 883796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 883896402570Smrg fi 883996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 884096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 884196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 884296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 884396402570Smrg $as_echo_n "(cached) " >&6 884496402570Smrgelse 884596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 884696402570Smrg/* end confdefs.h. */ 884796402570Smrgint i; 884896402570Smrg_ACEOF 884996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 885096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 885196402570Smrgelse 885296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 885396402570Smrgfi 885496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 885596402570Smrgfi 885696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 885796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 885896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 885996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 886096402570Smrgfi 886196402570Smrg 886296402570Smrgfound="no" 886396402570Smrg 886496402570Smrg if test $found = "no" ; then 886540c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 886696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 886796402570Smrg fi 886896402570Smrg 886940c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 887096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 887196402570Smrg fi 887296402570Smrg 887396402570Smrg CFLAGS="$CFLAGS -Wimplicit" 887496402570Smrg 887540c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 887640c5344fSmrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 887796402570Smrg cacheid=xorg_cv_cc_flag__Wimplicit 887896402570Smrg if eval \${$cacheid+:} false; then : 887996402570Smrg $as_echo_n "(cached) " >&6 888096402570Smrgelse 888196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 888296402570Smrg/* end confdefs.h. */ 888396402570Smrgint i; 888496402570Smrgint 888596402570Smrgmain () 888696402570Smrg{ 888796402570Smrg 888896402570Smrg ; 888996402570Smrg return 0; 889096402570Smrg} 889196402570Smrg_ACEOF 889296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 889396402570Smrg eval $cacheid=yes 889496402570Smrgelse 889596402570Smrg eval $cacheid=no 889696402570Smrgfi 889796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 889896402570Smrg conftest$ac_exeext conftest.$ac_ext 889996402570Smrgfi 890096402570Smrg 890196402570Smrg 890296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 890396402570Smrg 890496402570Smrg eval supported=\$$cacheid 890596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 890696402570Smrg$as_echo "$supported" >&6; } 890796402570Smrg if test "$supported" = "yes" ; then 890896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 890996402570Smrg found="yes" 891096402570Smrg fi 891196402570Smrg fi 891296402570Smrg 891396402570Smrg 891496402570Smrg 891596402570Smrg 891696402570Smrg 891796402570Smrg 891896402570Smrg 891996402570Smrg 892096402570Smrg 892196402570Smrg 892296402570Smrg 892396402570Smrg 892496402570Smrg 892596402570Smrg 892696402570Smrg 892796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 892896402570Smrg 892996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 893096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 893196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 893296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 893396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 893496402570Smrg $as_echo_n "(cached) " >&6 893596402570Smrgelse 893696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 893796402570Smrg/* end confdefs.h. */ 893896402570Smrgint i; 893996402570Smrg_ACEOF 894096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 894196402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 894296402570Smrgelse 894396402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 894496402570Smrgfi 894596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 894696402570Smrgfi 894796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 894896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 894996402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 895096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 895196402570Smrgfi 895296402570Smrg 895396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 895496402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 895596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 895696402570Smrg fi 895796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 895896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 895996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 896096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 896196402570Smrg $as_echo_n "(cached) " >&6 896296402570Smrgelse 896396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 896496402570Smrg/* end confdefs.h. */ 896596402570Smrgint i; 896696402570Smrg_ACEOF 896796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 896896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 896996402570Smrgelse 897096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 897196402570Smrgfi 897296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 897396402570Smrgfi 897496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 897596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 897696402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 897796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 897896402570Smrgfi 897996402570Smrg 898096402570Smrgfound="no" 898196402570Smrg 898296402570Smrg if test $found = "no" ; then 898340c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 898496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 898596402570Smrg fi 898696402570Smrg 898740c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 898896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 898996402570Smrg fi 899096402570Smrg 899196402570Smrg CFLAGS="$CFLAGS -Wnonnull" 899296402570Smrg 899340c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 899440c5344fSmrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 899596402570Smrg cacheid=xorg_cv_cc_flag__Wnonnull 899696402570Smrg if eval \${$cacheid+:} false; then : 899796402570Smrg $as_echo_n "(cached) " >&6 899896402570Smrgelse 899996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 900096402570Smrg/* end confdefs.h. */ 900196402570Smrgint i; 900296402570Smrgint 900396402570Smrgmain () 900496402570Smrg{ 900596402570Smrg 900696402570Smrg ; 900796402570Smrg return 0; 900896402570Smrg} 900996402570Smrg_ACEOF 901096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 901196402570Smrg eval $cacheid=yes 901296402570Smrgelse 901396402570Smrg eval $cacheid=no 901496402570Smrgfi 901596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 901696402570Smrg conftest$ac_exeext conftest.$ac_ext 901796402570Smrgfi 901896402570Smrg 901996402570Smrg 902096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 902196402570Smrg 902296402570Smrg eval supported=\$$cacheid 902396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 902496402570Smrg$as_echo "$supported" >&6; } 902596402570Smrg if test "$supported" = "yes" ; then 902696402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 902796402570Smrg found="yes" 902896402570Smrg fi 902996402570Smrg fi 903096402570Smrg 903196402570Smrg 903296402570Smrg 903396402570Smrg 903496402570Smrg 903596402570Smrg 903696402570Smrg 903796402570Smrg 903896402570Smrg 903996402570Smrg 904096402570Smrg 904196402570Smrg 904296402570Smrg 904396402570Smrg 904496402570Smrg 904596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 904696402570Smrg 904796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 904896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 904996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 905096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 905196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 905296402570Smrg $as_echo_n "(cached) " >&6 905396402570Smrgelse 905496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 905596402570Smrg/* end confdefs.h. */ 905696402570Smrgint i; 905796402570Smrg_ACEOF 905896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 905996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 906096402570Smrgelse 906196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 906296402570Smrgfi 906396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 906496402570Smrgfi 906596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 906696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 906796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 906896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 906996402570Smrgfi 907096402570Smrg 907196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 907296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 907396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 907496402570Smrg fi 907596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 907696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 907796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 907896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 907996402570Smrg $as_echo_n "(cached) " >&6 908096402570Smrgelse 908196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 908296402570Smrg/* end confdefs.h. */ 908396402570Smrgint i; 908496402570Smrg_ACEOF 908596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 908696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 908796402570Smrgelse 908896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 908996402570Smrgfi 909096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 909196402570Smrgfi 909296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 909396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 909496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 909596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 909696402570Smrgfi 909796402570Smrg 909896402570Smrgfound="no" 909996402570Smrg 910096402570Smrg if test $found = "no" ; then 910140c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 910296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 910396402570Smrg fi 910496402570Smrg 910540c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 910696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 910796402570Smrg fi 910896402570Smrg 910996402570Smrg CFLAGS="$CFLAGS -Winit-self" 911096402570Smrg 911140c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 911240c5344fSmrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 911396402570Smrg cacheid=xorg_cv_cc_flag__Winit_self 911496402570Smrg if eval \${$cacheid+:} false; then : 911596402570Smrg $as_echo_n "(cached) " >&6 911696402570Smrgelse 911796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 911896402570Smrg/* end confdefs.h. */ 911996402570Smrgint i; 912096402570Smrgint 912196402570Smrgmain () 912296402570Smrg{ 912396402570Smrg 912496402570Smrg ; 912596402570Smrg return 0; 912696402570Smrg} 912796402570Smrg_ACEOF 912896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 912996402570Smrg eval $cacheid=yes 913096402570Smrgelse 913196402570Smrg eval $cacheid=no 913296402570Smrgfi 913396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 913496402570Smrg conftest$ac_exeext conftest.$ac_ext 913596402570Smrgfi 913696402570Smrg 913796402570Smrg 913896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 913996402570Smrg 914096402570Smrg eval supported=\$$cacheid 914196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 914296402570Smrg$as_echo "$supported" >&6; } 914396402570Smrg if test "$supported" = "yes" ; then 914496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 914596402570Smrg found="yes" 914696402570Smrg fi 914796402570Smrg fi 914896402570Smrg 914996402570Smrg 915096402570Smrg 915196402570Smrg 915296402570Smrg 915396402570Smrg 915496402570Smrg 915596402570Smrg 915696402570Smrg 915796402570Smrg 915896402570Smrg 915996402570Smrg 916096402570Smrg 916196402570Smrg 916296402570Smrg 916396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 916496402570Smrg 916596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 916696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 916796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 916896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 916996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 917096402570Smrg $as_echo_n "(cached) " >&6 917196402570Smrgelse 917296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 917396402570Smrg/* end confdefs.h. */ 917496402570Smrgint i; 917596402570Smrg_ACEOF 917696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 917796402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 917896402570Smrgelse 917996402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 918096402570Smrgfi 918196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 918296402570Smrgfi 918396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 918496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 918596402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 918696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 918796402570Smrgfi 918896402570Smrg 918996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 919096402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 919196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 919296402570Smrg fi 919396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 919496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 919596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 919696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 919796402570Smrg $as_echo_n "(cached) " >&6 919896402570Smrgelse 919996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 920096402570Smrg/* end confdefs.h. */ 920196402570Smrgint i; 920296402570Smrg_ACEOF 920396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 920496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 920596402570Smrgelse 920696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 920796402570Smrgfi 920896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 920996402570Smrgfi 921096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 921196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 921296402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 921396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 921496402570Smrgfi 921596402570Smrg 921696402570Smrgfound="no" 921796402570Smrg 921896402570Smrg if test $found = "no" ; then 921940c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 922096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 922196402570Smrg fi 922296402570Smrg 922340c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 922496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 922596402570Smrg fi 922696402570Smrg 922796402570Smrg CFLAGS="$CFLAGS -Wmain" 922896402570Smrg 922940c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 923040c5344fSmrg$as_echo_n "checking if $CC supports -Wmain... " >&6; } 923196402570Smrg cacheid=xorg_cv_cc_flag__Wmain 923296402570Smrg if eval \${$cacheid+:} false; then : 923396402570Smrg $as_echo_n "(cached) " >&6 923496402570Smrgelse 923596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 923696402570Smrg/* end confdefs.h. */ 923796402570Smrgint i; 923896402570Smrgint 923996402570Smrgmain () 924096402570Smrg{ 924196402570Smrg 924296402570Smrg ; 924396402570Smrg return 0; 924496402570Smrg} 924596402570Smrg_ACEOF 924696402570Smrgif ac_fn_c_try_link "$LINENO"; then : 924796402570Smrg eval $cacheid=yes 924896402570Smrgelse 924996402570Smrg eval $cacheid=no 925096402570Smrgfi 925196402570Smrgrm -f core conftest.err conftest.$ac_objext \ 925296402570Smrg conftest$ac_exeext conftest.$ac_ext 925396402570Smrgfi 925496402570Smrg 925596402570Smrg 925696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 925796402570Smrg 925896402570Smrg eval supported=\$$cacheid 925996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 926096402570Smrg$as_echo "$supported" >&6; } 926196402570Smrg if test "$supported" = "yes" ; then 926296402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 926396402570Smrg found="yes" 926496402570Smrg fi 926596402570Smrg fi 926696402570Smrg 926796402570Smrg 926896402570Smrg 926996402570Smrg 927096402570Smrg 927196402570Smrg 927296402570Smrg 927396402570Smrg 927496402570Smrg 927596402570Smrg 927696402570Smrg 927796402570Smrg 927896402570Smrg 927996402570Smrg 928096402570Smrg 928196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 928296402570Smrg 928396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 928496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 928596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 928696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 928796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 928896402570Smrg $as_echo_n "(cached) " >&6 928996402570Smrgelse 929096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 929196402570Smrg/* end confdefs.h. */ 929296402570Smrgint i; 929396402570Smrg_ACEOF 929496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 929596402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 929696402570Smrgelse 929796402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 929896402570Smrgfi 929996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 930096402570Smrgfi 930196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 930296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 930396402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 930496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 930596402570Smrgfi 930696402570Smrg 930796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 930896402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 930996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 931096402570Smrg fi 931196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 931296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 931396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 931496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 931596402570Smrg $as_echo_n "(cached) " >&6 931696402570Smrgelse 931796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 931896402570Smrg/* end confdefs.h. */ 931996402570Smrgint i; 932096402570Smrg_ACEOF 932196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 932296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 932396402570Smrgelse 932496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 932596402570Smrgfi 932696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 932796402570Smrgfi 932896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 932996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 933096402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 933196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 933296402570Smrgfi 933396402570Smrg 933496402570Smrgfound="no" 933596402570Smrg 933696402570Smrg if test $found = "no" ; then 933740c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 933896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 933996402570Smrg fi 934096402570Smrg 934140c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 934296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 934396402570Smrg fi 934496402570Smrg 934596402570Smrg CFLAGS="$CFLAGS -Wmissing-braces" 934696402570Smrg 934740c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 934840c5344fSmrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 934996402570Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 935096402570Smrg if eval \${$cacheid+:} false; then : 935196402570Smrg $as_echo_n "(cached) " >&6 935296402570Smrgelse 935396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 935496402570Smrg/* end confdefs.h. */ 935596402570Smrgint i; 935696402570Smrgint 935796402570Smrgmain () 935896402570Smrg{ 935996402570Smrg 936096402570Smrg ; 936196402570Smrg return 0; 936296402570Smrg} 936396402570Smrg_ACEOF 936496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 936596402570Smrg eval $cacheid=yes 936696402570Smrgelse 936796402570Smrg eval $cacheid=no 936896402570Smrgfi 936996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 937096402570Smrg conftest$ac_exeext conftest.$ac_ext 937196402570Smrgfi 937296402570Smrg 937396402570Smrg 937496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 937596402570Smrg 937696402570Smrg eval supported=\$$cacheid 937796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 937896402570Smrg$as_echo "$supported" >&6; } 937996402570Smrg if test "$supported" = "yes" ; then 938096402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 938196402570Smrg found="yes" 938296402570Smrg fi 938396402570Smrg fi 938496402570Smrg 938596402570Smrg 938696402570Smrg 938796402570Smrg 938896402570Smrg 938996402570Smrg 939096402570Smrg 939196402570Smrg 939296402570Smrg 939396402570Smrg 939496402570Smrg 939596402570Smrg 939696402570Smrg 939796402570Smrg 939896402570Smrg 939996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 940096402570Smrg 940196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 940296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 940396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 940496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 940596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 940696402570Smrg $as_echo_n "(cached) " >&6 940796402570Smrgelse 940896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 940996402570Smrg/* end confdefs.h. */ 941096402570Smrgint i; 941196402570Smrg_ACEOF 941296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 941396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 941496402570Smrgelse 941596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 941696402570Smrgfi 941796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 941896402570Smrgfi 941996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 942096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 942196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 942296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 942396402570Smrgfi 942496402570Smrg 942596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 942696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 942796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 942896402570Smrg fi 942996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 943096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 943196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 943296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 943396402570Smrg $as_echo_n "(cached) " >&6 943496402570Smrgelse 943596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 943696402570Smrg/* end confdefs.h. */ 943796402570Smrgint i; 943896402570Smrg_ACEOF 943996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 944096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 944196402570Smrgelse 944296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 944396402570Smrgfi 944496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 944596402570Smrgfi 944696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 944796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 944896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 944996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 945096402570Smrgfi 945196402570Smrg 945296402570Smrgfound="no" 945396402570Smrg 945496402570Smrg if test $found = "no" ; then 945540c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 945696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 945796402570Smrg fi 945896402570Smrg 945940c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 946096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 946196402570Smrg fi 946296402570Smrg 946396402570Smrg CFLAGS="$CFLAGS -Wsequence-point" 946496402570Smrg 946540c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 946640c5344fSmrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 946796402570Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 946896402570Smrg if eval \${$cacheid+:} false; then : 946996402570Smrg $as_echo_n "(cached) " >&6 947096402570Smrgelse 947196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 947296402570Smrg/* end confdefs.h. */ 947396402570Smrgint i; 947496402570Smrgint 947596402570Smrgmain () 947696402570Smrg{ 947796402570Smrg 947896402570Smrg ; 947996402570Smrg return 0; 948096402570Smrg} 948196402570Smrg_ACEOF 948296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 948396402570Smrg eval $cacheid=yes 948496402570Smrgelse 948596402570Smrg eval $cacheid=no 948696402570Smrgfi 948796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 948896402570Smrg conftest$ac_exeext conftest.$ac_ext 948996402570Smrgfi 949096402570Smrg 949196402570Smrg 949296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 949396402570Smrg 949496402570Smrg eval supported=\$$cacheid 949596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 949696402570Smrg$as_echo "$supported" >&6; } 949796402570Smrg if test "$supported" = "yes" ; then 949896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 949996402570Smrg found="yes" 950096402570Smrg fi 950196402570Smrg fi 950296402570Smrg 950396402570Smrg 950496402570Smrg 950596402570Smrg 950696402570Smrg 950796402570Smrg 950896402570Smrg 950996402570Smrg 951096402570Smrg 951196402570Smrg 951296402570Smrg 951396402570Smrg 951496402570Smrg 951596402570Smrg 951696402570Smrg 951796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 951896402570Smrg 951996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 952096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 952196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 952296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 952396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 952496402570Smrg $as_echo_n "(cached) " >&6 952596402570Smrgelse 952696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 952796402570Smrg/* end confdefs.h. */ 952896402570Smrgint i; 952996402570Smrg_ACEOF 953096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 953196402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 953296402570Smrgelse 953396402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 953496402570Smrgfi 953596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 953696402570Smrgfi 953796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 953896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 953996402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 954096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 954196402570Smrgfi 954296402570Smrg 954396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 954496402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 954596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 954696402570Smrg fi 954796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 954896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 954996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 955096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 955196402570Smrg $as_echo_n "(cached) " >&6 955296402570Smrgelse 955396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 955496402570Smrg/* end confdefs.h. */ 955596402570Smrgint i; 955696402570Smrg_ACEOF 955796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 955896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 955996402570Smrgelse 956096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 956196402570Smrgfi 956296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 956396402570Smrgfi 956496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 956596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 956696402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 956796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 956896402570Smrgfi 956996402570Smrg 957096402570Smrgfound="no" 957196402570Smrg 957296402570Smrg if test $found = "no" ; then 957340c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 957496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 957596402570Smrg fi 957696402570Smrg 957740c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 957896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 957996402570Smrg fi 958096402570Smrg 958196402570Smrg CFLAGS="$CFLAGS -Wreturn-type" 958296402570Smrg 958340c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 958440c5344fSmrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 958596402570Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 958696402570Smrg if eval \${$cacheid+:} false; then : 958796402570Smrg $as_echo_n "(cached) " >&6 958896402570Smrgelse 958996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 959096402570Smrg/* end confdefs.h. */ 959196402570Smrgint i; 959296402570Smrgint 959396402570Smrgmain () 959496402570Smrg{ 959596402570Smrg 959696402570Smrg ; 959796402570Smrg return 0; 959896402570Smrg} 959996402570Smrg_ACEOF 960096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 960196402570Smrg eval $cacheid=yes 960296402570Smrgelse 960396402570Smrg eval $cacheid=no 960496402570Smrgfi 960596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 960696402570Smrg conftest$ac_exeext conftest.$ac_ext 960796402570Smrgfi 960896402570Smrg 960996402570Smrg 961096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 961196402570Smrg 961296402570Smrg eval supported=\$$cacheid 961396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 961496402570Smrg$as_echo "$supported" >&6; } 961596402570Smrg if test "$supported" = "yes" ; then 961696402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 961796402570Smrg found="yes" 961896402570Smrg fi 961996402570Smrg fi 962096402570Smrg 962196402570Smrg 962296402570Smrg 962396402570Smrg 962496402570Smrg 962596402570Smrg 962696402570Smrg 962796402570Smrg 962896402570Smrg 962996402570Smrg 963096402570Smrg 963196402570Smrg 963296402570Smrg 963396402570Smrg 963496402570Smrg 963596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 963696402570Smrg 963796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 963896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 963996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 964096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 964196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 964296402570Smrg $as_echo_n "(cached) " >&6 964396402570Smrgelse 964496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 964596402570Smrg/* end confdefs.h. */ 964696402570Smrgint i; 964796402570Smrg_ACEOF 964896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 964996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 965096402570Smrgelse 965196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 965296402570Smrgfi 965396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 965496402570Smrgfi 965596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 965696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 965796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 965896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 965996402570Smrgfi 966096402570Smrg 966196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 966296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 966396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 966496402570Smrg fi 966596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 966696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 966796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 966896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 966996402570Smrg $as_echo_n "(cached) " >&6 967096402570Smrgelse 967196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 967296402570Smrg/* end confdefs.h. */ 967396402570Smrgint i; 967496402570Smrg_ACEOF 967596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 967696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 967796402570Smrgelse 967896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 967996402570Smrgfi 968096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 968196402570Smrgfi 968296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 968396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 968496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 968596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 968696402570Smrgfi 968796402570Smrg 968896402570Smrgfound="no" 968996402570Smrg 969096402570Smrg if test $found = "no" ; then 969140c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 969296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 969396402570Smrg fi 969496402570Smrg 969540c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 969696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 969796402570Smrg fi 969896402570Smrg 969996402570Smrg CFLAGS="$CFLAGS -Wtrigraphs" 970096402570Smrg 970140c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 970240c5344fSmrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 970396402570Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 970496402570Smrg if eval \${$cacheid+:} false; then : 970596402570Smrg $as_echo_n "(cached) " >&6 970696402570Smrgelse 970796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 970896402570Smrg/* end confdefs.h. */ 970996402570Smrgint i; 971096402570Smrgint 971196402570Smrgmain () 971296402570Smrg{ 971396402570Smrg 971496402570Smrg ; 971596402570Smrg return 0; 971696402570Smrg} 971796402570Smrg_ACEOF 971896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 971996402570Smrg eval $cacheid=yes 972096402570Smrgelse 972196402570Smrg eval $cacheid=no 972296402570Smrgfi 972396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 972496402570Smrg conftest$ac_exeext conftest.$ac_ext 972596402570Smrgfi 972696402570Smrg 972796402570Smrg 972896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 972996402570Smrg 973096402570Smrg eval supported=\$$cacheid 973196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 973296402570Smrg$as_echo "$supported" >&6; } 973396402570Smrg if test "$supported" = "yes" ; then 973496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 973596402570Smrg found="yes" 973696402570Smrg fi 973796402570Smrg fi 973896402570Smrg 973996402570Smrg 974096402570Smrg 974196402570Smrg 974296402570Smrg 974396402570Smrg 974496402570Smrg 974596402570Smrg 974696402570Smrg 974796402570Smrg 974896402570Smrg 974996402570Smrg 975096402570Smrg 975196402570Smrg 975296402570Smrg 975396402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 975496402570Smrg 975596402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 975696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 975796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 975896402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 975996402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 976096402570Smrg $as_echo_n "(cached) " >&6 976196402570Smrgelse 976296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 976396402570Smrg/* end confdefs.h. */ 976496402570Smrgint i; 976596402570Smrg_ACEOF 976696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 976796402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 976896402570Smrgelse 976996402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 977096402570Smrgfi 977196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 977296402570Smrgfi 977396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 977496402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 977596402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 977696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 977796402570Smrgfi 977896402570Smrg 977996402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 978096402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 978196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 978296402570Smrg fi 978396402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 978496402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 978596402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 978696402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 978796402570Smrg $as_echo_n "(cached) " >&6 978896402570Smrgelse 978996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 979096402570Smrg/* end confdefs.h. */ 979196402570Smrgint i; 979296402570Smrg_ACEOF 979396402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 979496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 979596402570Smrgelse 979696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 979796402570Smrgfi 979896402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 979996402570Smrgfi 980096402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 980196402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 980296402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 980396402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 980496402570Smrgfi 980596402570Smrg 980696402570Smrgfound="no" 980796402570Smrg 980896402570Smrg if test $found = "no" ; then 980940c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 981096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 981196402570Smrg fi 981296402570Smrg 981340c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 981496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 981596402570Smrg fi 981696402570Smrg 981796402570Smrg CFLAGS="$CFLAGS -Warray-bounds" 981896402570Smrg 981940c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 982040c5344fSmrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 982196402570Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 982296402570Smrg if eval \${$cacheid+:} false; then : 982396402570Smrg $as_echo_n "(cached) " >&6 982496402570Smrgelse 982596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 982696402570Smrg/* end confdefs.h. */ 982796402570Smrgint i; 982896402570Smrgint 982996402570Smrgmain () 983096402570Smrg{ 983196402570Smrg 983296402570Smrg ; 983396402570Smrg return 0; 983496402570Smrg} 983596402570Smrg_ACEOF 983696402570Smrgif ac_fn_c_try_link "$LINENO"; then : 983796402570Smrg eval $cacheid=yes 983896402570Smrgelse 983996402570Smrg eval $cacheid=no 984096402570Smrgfi 984196402570Smrgrm -f core conftest.err conftest.$ac_objext \ 984296402570Smrg conftest$ac_exeext conftest.$ac_ext 984396402570Smrgfi 984496402570Smrg 984596402570Smrg 984696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 984796402570Smrg 984896402570Smrg eval supported=\$$cacheid 984996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 985096402570Smrg$as_echo "$supported" >&6; } 985196402570Smrg if test "$supported" = "yes" ; then 985296402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 985396402570Smrg found="yes" 985496402570Smrg fi 985596402570Smrg fi 985696402570Smrg 985796402570Smrg 985896402570Smrg 985996402570Smrg 986096402570Smrg 986196402570Smrg 986296402570Smrg 986396402570Smrg 986496402570Smrg 986596402570Smrg 986696402570Smrg 986796402570Smrg 986896402570Smrg 986996402570Smrg 987096402570Smrg 987196402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 987296402570Smrg 987396402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 987496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 987596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 987696402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 987796402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 987896402570Smrg $as_echo_n "(cached) " >&6 987996402570Smrgelse 988096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 988196402570Smrg/* end confdefs.h. */ 988296402570Smrgint i; 988396402570Smrg_ACEOF 988496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 988596402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 988696402570Smrgelse 988796402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 988896402570Smrgfi 988996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 989096402570Smrgfi 989196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 989296402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 989396402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 989496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 989596402570Smrgfi 989696402570Smrg 989796402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 989896402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 989996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 990096402570Smrg fi 990196402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 990296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 990396402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 990496402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 990596402570Smrg $as_echo_n "(cached) " >&6 990696402570Smrgelse 990796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 990896402570Smrg/* end confdefs.h. */ 990996402570Smrgint i; 991096402570Smrg_ACEOF 991196402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 991296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 991396402570Smrgelse 991496402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 991596402570Smrgfi 991696402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 991796402570Smrgfi 991896402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 991996402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 992096402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 992196402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 992296402570Smrgfi 992396402570Smrg 992496402570Smrgfound="no" 992596402570Smrg 992696402570Smrg if test $found = "no" ; then 992740c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 992896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 992996402570Smrg fi 993096402570Smrg 993140c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 993296402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 993396402570Smrg fi 993496402570Smrg 993596402570Smrg CFLAGS="$CFLAGS -Wwrite-strings" 993696402570Smrg 993740c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 993840c5344fSmrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 993996402570Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 994096402570Smrg if eval \${$cacheid+:} false; then : 994196402570Smrg $as_echo_n "(cached) " >&6 994296402570Smrgelse 994396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 994496402570Smrg/* end confdefs.h. */ 994596402570Smrgint i; 994696402570Smrgint 994796402570Smrgmain () 994896402570Smrg{ 994996402570Smrg 995096402570Smrg ; 995196402570Smrg return 0; 995296402570Smrg} 995396402570Smrg_ACEOF 995496402570Smrgif ac_fn_c_try_link "$LINENO"; then : 995596402570Smrg eval $cacheid=yes 995696402570Smrgelse 995796402570Smrg eval $cacheid=no 995896402570Smrgfi 995996402570Smrgrm -f core conftest.err conftest.$ac_objext \ 996096402570Smrg conftest$ac_exeext conftest.$ac_ext 996196402570Smrgfi 996296402570Smrg 996396402570Smrg 996496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 996596402570Smrg 996696402570Smrg eval supported=\$$cacheid 996796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 996896402570Smrg$as_echo "$supported" >&6; } 996996402570Smrg if test "$supported" = "yes" ; then 997096402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 997196402570Smrg found="yes" 997296402570Smrg fi 997396402570Smrg fi 997496402570Smrg 997596402570Smrg 997696402570Smrg 997796402570Smrg 997896402570Smrg 997996402570Smrg 998096402570Smrg 998196402570Smrg 998296402570Smrg 998396402570Smrg 998496402570Smrg 998596402570Smrg 998696402570Smrg 998796402570Smrg 998896402570Smrg 998996402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 999096402570Smrg 999196402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 999296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 999396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 999496402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 999596402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 999696402570Smrg $as_echo_n "(cached) " >&6 999796402570Smrgelse 999896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 999996402570Smrg/* end confdefs.h. */ 1000096402570Smrgint i; 1000196402570Smrg_ACEOF 1000296402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1000396402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1000496402570Smrgelse 1000596402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 1000696402570Smrgfi 1000796402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1000896402570Smrgfi 1000996402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1001096402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1001196402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1001296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1001396402570Smrgfi 1001496402570Smrg 1001596402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1001696402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1001796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1001896402570Smrg fi 1001996402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1002096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1002196402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1002296402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1002396402570Smrg $as_echo_n "(cached) " >&6 1002496402570Smrgelse 1002596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1002696402570Smrg/* end confdefs.h. */ 1002796402570Smrgint i; 1002896402570Smrg_ACEOF 1002996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1003096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1003196402570Smrgelse 1003296402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1003396402570Smrgfi 1003496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1003596402570Smrgfi 1003696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1003796402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1003896402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1003996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1004096402570Smrgfi 1004196402570Smrg 1004296402570Smrgfound="no" 1004396402570Smrg 1004496402570Smrg if test $found = "no" ; then 1004540c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1004696402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1004796402570Smrg fi 1004896402570Smrg 1004940c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1005096402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1005196402570Smrg fi 1005296402570Smrg 1005396402570Smrg CFLAGS="$CFLAGS -Waddress" 1005496402570Smrg 1005540c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 1005640c5344fSmrg$as_echo_n "checking if $CC supports -Waddress... " >&6; } 1005796402570Smrg cacheid=xorg_cv_cc_flag__Waddress 1005896402570Smrg if eval \${$cacheid+:} false; then : 1005996402570Smrg $as_echo_n "(cached) " >&6 1006096402570Smrgelse 1006196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1006296402570Smrg/* end confdefs.h. */ 1006396402570Smrgint i; 1006496402570Smrgint 1006596402570Smrgmain () 1006696402570Smrg{ 1006796402570Smrg 1006896402570Smrg ; 1006996402570Smrg return 0; 1007096402570Smrg} 1007196402570Smrg_ACEOF 1007296402570Smrgif ac_fn_c_try_link "$LINENO"; then : 1007396402570Smrg eval $cacheid=yes 1007496402570Smrgelse 1007596402570Smrg eval $cacheid=no 1007696402570Smrgfi 1007796402570Smrgrm -f core conftest.err conftest.$ac_objext \ 1007896402570Smrg conftest$ac_exeext conftest.$ac_ext 1007996402570Smrgfi 1008096402570Smrg 1008196402570Smrg 1008296402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1008396402570Smrg 1008496402570Smrg eval supported=\$$cacheid 1008596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1008696402570Smrg$as_echo "$supported" >&6; } 1008796402570Smrg if test "$supported" = "yes" ; then 1008896402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 1008996402570Smrg found="yes" 1009096402570Smrg fi 1009196402570Smrg fi 1009296402570Smrg 1009396402570Smrg 1009496402570Smrg 1009596402570Smrg 1009696402570Smrg 1009796402570Smrg 1009896402570Smrg 1009996402570Smrg 1010096402570Smrg 1010196402570Smrg 1010296402570Smrg 1010396402570Smrg 1010496402570Smrg 1010596402570Smrg 1010696402570Smrg 1010796402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1010896402570Smrg 1010996402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1011096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1011196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1011296402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1011396402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1011496402570Smrg $as_echo_n "(cached) " >&6 1011596402570Smrgelse 1011696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1011796402570Smrg/* end confdefs.h. */ 1011896402570Smrgint i; 1011996402570Smrg_ACEOF 1012096402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1012196402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1012296402570Smrgelse 1012396402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 1012496402570Smrgfi 1012596402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1012696402570Smrgfi 1012796402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1012896402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1012996402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1013096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1013196402570Smrgfi 1013296402570Smrg 1013396402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1013496402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1013596402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1013696402570Smrg fi 1013796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1013896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1013996402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1014096402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1014196402570Smrg $as_echo_n "(cached) " >&6 1014296402570Smrgelse 1014396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1014496402570Smrg/* end confdefs.h. */ 1014596402570Smrgint i; 1014696402570Smrg_ACEOF 1014796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1014896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1014996402570Smrgelse 1015096402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1015196402570Smrgfi 1015296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1015396402570Smrgfi 1015496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1015596402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1015696402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1015796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1015896402570Smrgfi 1015996402570Smrg 1016096402570Smrgfound="no" 1016196402570Smrg 1016296402570Smrg if test $found = "no" ; then 1016340c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1016496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1016596402570Smrg fi 1016696402570Smrg 1016740c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1016896402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1016996402570Smrg fi 1017096402570Smrg 1017196402570Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 1017296402570Smrg 1017340c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 1017440c5344fSmrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 1017596402570Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 1017696402570Smrg if eval \${$cacheid+:} false; then : 1017796402570Smrg $as_echo_n "(cached) " >&6 1017896402570Smrgelse 1017996402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1018096402570Smrg/* end confdefs.h. */ 1018196402570Smrgint i; 1018296402570Smrgint 1018396402570Smrgmain () 1018496402570Smrg{ 1018596402570Smrg 1018696402570Smrg ; 1018796402570Smrg return 0; 1018896402570Smrg} 1018996402570Smrg_ACEOF 1019096402570Smrgif ac_fn_c_try_link "$LINENO"; then : 1019196402570Smrg eval $cacheid=yes 1019296402570Smrgelse 1019396402570Smrg eval $cacheid=no 1019496402570Smrgfi 1019596402570Smrgrm -f core conftest.err conftest.$ac_objext \ 1019696402570Smrg conftest$ac_exeext conftest.$ac_ext 1019796402570Smrgfi 1019896402570Smrg 1019996402570Smrg 1020096402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1020196402570Smrg 1020296402570Smrg eval supported=\$$cacheid 1020396402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1020496402570Smrg$as_echo "$supported" >&6; } 1020596402570Smrg if test "$supported" = "yes" ; then 1020696402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 1020796402570Smrg found="yes" 1020896402570Smrg fi 1020996402570Smrg fi 1021096402570Smrg 1021196402570Smrg 1021296402570Smrg 1021396402570Smrg 1021496402570Smrg 1021596402570Smrg 1021696402570Smrg 1021796402570Smrg 1021896402570Smrg 1021996402570Smrg 1022096402570Smrg 1022196402570Smrg 1022296402570Smrg 1022396402570Smrg 1022496402570Smrg 1022596402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1022696402570Smrg 1022796402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1022896402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1022996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1023096402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1023196402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1023296402570Smrg $as_echo_n "(cached) " >&6 1023396402570Smrgelse 1023496402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1023596402570Smrg/* end confdefs.h. */ 1023696402570Smrgint i; 1023796402570Smrg_ACEOF 1023896402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1023996402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1024096402570Smrgelse 1024196402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 1024296402570Smrgfi 1024396402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1024496402570Smrgfi 1024596402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1024696402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1024796402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1024896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1024996402570Smrgfi 1025096402570Smrg 1025196402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1025296402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1025396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1025496402570Smrg fi 1025596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1025696402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1025796402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1025896402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1025996402570Smrg $as_echo_n "(cached) " >&6 1026096402570Smrgelse 1026196402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1026296402570Smrg/* end confdefs.h. */ 1026396402570Smrgint i; 1026496402570Smrg_ACEOF 1026596402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1026696402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1026796402570Smrgelse 1026896402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1026996402570Smrgfi 1027096402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1027196402570Smrgfi 1027296402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1027396402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1027496402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1027596402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1027696402570Smrgfi 1027796402570Smrg 1027896402570Smrgfound="no" 1027996402570Smrg 1028096402570Smrg if test $found = "no" ; then 1028140c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1028296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1028396402570Smrg fi 1028496402570Smrg 1028540c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1028696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1028796402570Smrg fi 1028896402570Smrg 1028996402570Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 1029096402570Smrg 1029140c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 1029240c5344fSmrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 1029396402570Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 1029496402570Smrg if eval \${$cacheid+:} false; then : 1029596402570Smrg $as_echo_n "(cached) " >&6 1029696402570Smrgelse 1029796402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1029896402570Smrg/* end confdefs.h. */ 1029996402570Smrgint i; 1030096402570Smrgint 1030196402570Smrgmain () 1030296402570Smrg{ 1030396402570Smrg 1030496402570Smrg ; 1030596402570Smrg return 0; 1030696402570Smrg} 1030796402570Smrg_ACEOF 1030896402570Smrgif ac_fn_c_try_link "$LINENO"; then : 1030996402570Smrg eval $cacheid=yes 1031096402570Smrgelse 1031196402570Smrg eval $cacheid=no 1031296402570Smrgfi 1031396402570Smrgrm -f core conftest.err conftest.$ac_objext \ 1031496402570Smrg conftest$ac_exeext conftest.$ac_ext 1031596402570Smrgfi 1031696402570Smrg 1031796402570Smrg 1031896402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1031996402570Smrg 1032096402570Smrg eval supported=\$$cacheid 1032196402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1032296402570Smrg$as_echo "$supported" >&6; } 1032396402570Smrg if test "$supported" = "yes" ; then 1032496402570Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 1032596402570Smrg found="yes" 1032696402570Smrg fi 1032796402570Smrg fi 1032896402570Smrg 1032996402570Smrg 1033096402570Smrgfi 1033196402570Smrg 1033296402570Smrg 1033396402570Smrg 1033496402570Smrg 1033596402570Smrg 1033696402570Smrg 1033796402570Smrg 1033896402570Smrg CWARNFLAGS="$BASE_CFLAGS" 1033996402570Smrg if test "x$GCC" = xyes ; then 1034096402570Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 1034196402570Smrg fi 1034296402570Smrg 1034396402570Smrg 1034496402570Smrg 1034596402570Smrg 1034696402570Smrg 1034796402570Smrg 1034896402570Smrg 1034996402570Smrg 1035096402570Smrg# Check whether --enable-strict-compilation was given. 1035196402570Smrgif test "${enable_strict_compilation+set}" = set; then : 1035296402570Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 1035396402570Smrgelse 1035496402570Smrg STRICT_COMPILE=no 1035596402570Smrgfi 1035696402570Smrg 1035796402570Smrg 1035896402570Smrg 1035996402570Smrg 1036096402570Smrg 1036196402570Smrg 1036296402570SmrgSTRICT_CFLAGS="" 1036396402570Smrg 1036496402570Smrg 1036596402570Smrg 1036696402570Smrg 1036796402570Smrg 1036896402570Smrg 1036996402570Smrg 1037096402570Smrg 1037196402570Smrg 1037296402570Smrg 1037396402570Smrg 1037496402570Smrg 1037596402570Smrg 1037696402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1037796402570Smrg 1037896402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1037996402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1038096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1038196402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1038296402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1038396402570Smrg $as_echo_n "(cached) " >&6 1038496402570Smrgelse 1038596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1038696402570Smrg/* end confdefs.h. */ 1038796402570Smrgint i; 1038896402570Smrg_ACEOF 1038996402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1039096402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1039196402570Smrgelse 1039296402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 1039396402570Smrgfi 1039496402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1039596402570Smrgfi 1039696402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1039796402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1039896402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1039996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1040096402570Smrgfi 1040196402570Smrg 1040296402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1040396402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1040496402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1040596402570Smrg fi 1040696402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1040796402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1040896402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1040996402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1041096402570Smrg $as_echo_n "(cached) " >&6 1041196402570Smrgelse 1041296402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1041396402570Smrg/* end confdefs.h. */ 1041496402570Smrgint i; 1041596402570Smrg_ACEOF 1041696402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1041796402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1041896402570Smrgelse 1041996402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1042096402570Smrgfi 1042196402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1042296402570Smrgfi 1042396402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1042496402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1042596402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1042696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1042796402570Smrgfi 1042896402570Smrg 1042996402570Smrgfound="no" 1043096402570Smrg 1043196402570Smrg if test $found = "no" ; then 1043240c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1043396402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1043496402570Smrg fi 1043596402570Smrg 1043640c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1043796402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1043896402570Smrg fi 1043996402570Smrg 1044096402570Smrg CFLAGS="$CFLAGS -pedantic" 1044196402570Smrg 1044240c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 1044340c5344fSmrg$as_echo_n "checking if $CC supports -pedantic... " >&6; } 1044496402570Smrg cacheid=xorg_cv_cc_flag__pedantic 1044596402570Smrg if eval \${$cacheid+:} false; then : 1044696402570Smrg $as_echo_n "(cached) " >&6 1044796402570Smrgelse 1044896402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1044996402570Smrg/* end confdefs.h. */ 1045096402570Smrgint i; 1045196402570Smrgint 1045296402570Smrgmain () 1045396402570Smrg{ 1045496402570Smrg 1045596402570Smrg ; 1045696402570Smrg return 0; 1045796402570Smrg} 1045896402570Smrg_ACEOF 1045996402570Smrgif ac_fn_c_try_link "$LINENO"; then : 1046096402570Smrg eval $cacheid=yes 1046196402570Smrgelse 1046296402570Smrg eval $cacheid=no 1046396402570Smrgfi 1046496402570Smrgrm -f core conftest.err conftest.$ac_objext \ 1046596402570Smrg conftest$ac_exeext conftest.$ac_ext 1046696402570Smrgfi 1046796402570Smrg 1046896402570Smrg 1046996402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1047096402570Smrg 1047196402570Smrg eval supported=\$$cacheid 1047296402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1047396402570Smrg$as_echo "$supported" >&6; } 1047496402570Smrg if test "$supported" = "yes" ; then 1047596402570Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1047696402570Smrg found="yes" 1047796402570Smrg fi 1047896402570Smrg fi 1047996402570Smrg 1048096402570Smrg 1048196402570Smrg 1048296402570Smrg 1048396402570Smrg 1048496402570Smrg 1048596402570Smrg 1048696402570Smrg 1048796402570Smrg 1048896402570Smrg 1048996402570Smrg 1049096402570Smrg 1049196402570Smrg 1049296402570Smrg 1049396402570Smrg 1049496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1049596402570Smrg 1049696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1049796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1049896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1049996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1050096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1050196402570Smrg $as_echo_n "(cached) " >&6 1050296402570Smrgelse 1050396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1050496402570Smrg/* end confdefs.h. */ 1050596402570Smrgint i; 1050696402570Smrg_ACEOF 1050796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1050896402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1050996402570Smrgelse 1051096402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 1051196402570Smrgfi 1051296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1051396402570Smrgfi 1051496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1051596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1051696402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1051796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1051896402570Smrgfi 1051996402570Smrg 1052096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1052196402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1052296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1052396402570Smrg fi 1052496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1052596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1052696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1052796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1052896402570Smrg $as_echo_n "(cached) " >&6 1052996402570Smrgelse 1053096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1053196402570Smrg/* end confdefs.h. */ 1053296402570Smrgint i; 1053396402570Smrg_ACEOF 1053496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1053596402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1053696402570Smrgelse 1053796402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1053896402570Smrgfi 1053996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1054096402570Smrgfi 1054196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1054296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1054396402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1054496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1054596402570Smrgfi 1054696402570Smrg 1054796402570Smrgfound="no" 1054896402570Smrg 1054996402570Smrg if test $found = "no" ; then 1055040c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1055196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1055296402570Smrg fi 1055396402570Smrg 1055440c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1055596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1055696402570Smrg fi 1055796402570Smrg 1055896402570Smrg CFLAGS="$CFLAGS -Werror" 1055996402570Smrg 1056040c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 1056140c5344fSmrg$as_echo_n "checking if $CC supports -Werror... " >&6; } 1056296402570Smrg cacheid=xorg_cv_cc_flag__Werror 1056396402570Smrg if eval \${$cacheid+:} false; then : 1056496402570Smrg $as_echo_n "(cached) " >&6 1056596402570Smrgelse 1056696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1056796402570Smrg/* end confdefs.h. */ 1056896402570Smrgint i; 1056996402570Smrgint 1057096402570Smrgmain () 1057196402570Smrg{ 1057296402570Smrg 1057396402570Smrg ; 1057496402570Smrg return 0; 1057596402570Smrg} 1057696402570Smrg_ACEOF 1057796402570Smrgif ac_fn_c_try_link "$LINENO"; then : 1057896402570Smrg eval $cacheid=yes 1057996402570Smrgelse 1058096402570Smrg eval $cacheid=no 1058196402570Smrgfi 1058296402570Smrgrm -f core conftest.err conftest.$ac_objext \ 1058396402570Smrg conftest$ac_exeext conftest.$ac_ext 1058496402570Smrgfi 1058596402570Smrg 1058696402570Smrg 1058796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1058896402570Smrg 1058996402570Smrg eval supported=\$$cacheid 1059096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1059196402570Smrg$as_echo "$supported" >&6; } 1059296402570Smrg if test "$supported" = "yes" ; then 1059396402570Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1059496402570Smrg found="yes" 1059596402570Smrg fi 1059696402570Smrg fi 1059796402570Smrg 1059896402570Smrg if test $found = "no" ; then 1059940c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1060096402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1060196402570Smrg fi 1060296402570Smrg 1060340c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1060496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1060596402570Smrg fi 1060696402570Smrg 1060796402570Smrg CFLAGS="$CFLAGS -errwarn" 1060896402570Smrg 1060940c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 1061040c5344fSmrg$as_echo_n "checking if $CC supports -errwarn... " >&6; } 1061196402570Smrg cacheid=xorg_cv_cc_flag__errwarn 1061296402570Smrg if eval \${$cacheid+:} false; then : 1061396402570Smrg $as_echo_n "(cached) " >&6 1061496402570Smrgelse 1061596402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1061696402570Smrg/* end confdefs.h. */ 1061796402570Smrgint i; 1061896402570Smrgint 1061996402570Smrgmain () 1062096402570Smrg{ 1062196402570Smrg 1062296402570Smrg ; 1062396402570Smrg return 0; 1062496402570Smrg} 1062596402570Smrg_ACEOF 1062696402570Smrgif ac_fn_c_try_link "$LINENO"; then : 1062796402570Smrg eval $cacheid=yes 1062896402570Smrgelse 1062996402570Smrg eval $cacheid=no 1063096402570Smrgfi 1063196402570Smrgrm -f core conftest.err conftest.$ac_objext \ 1063296402570Smrg conftest$ac_exeext conftest.$ac_ext 1063396402570Smrgfi 1063496402570Smrg 1063596402570Smrg 1063696402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1063796402570Smrg 1063896402570Smrg eval supported=\$$cacheid 1063996402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1064096402570Smrg$as_echo "$supported" >&6; } 1064196402570Smrg if test "$supported" = "yes" ; then 1064296402570Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1064396402570Smrg found="yes" 1064496402570Smrg fi 1064596402570Smrg fi 1064696402570Smrg 1064796402570Smrg 1064896402570Smrg 1064996402570Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1065096402570Smrg# activate it with -Werror, so we add it here explicitly. 1065196402570Smrg 1065296402570Smrg 1065396402570Smrg 1065496402570Smrg 1065596402570Smrg 1065696402570Smrg 1065796402570Smrg 1065896402570Smrg 1065996402570Smrg 1066096402570Smrg 1066196402570Smrg 1066296402570Smrg 1066396402570Smrg 1066496402570Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1066596402570Smrg 1066696402570Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1066796402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1066896402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1066996402570Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1067096402570Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1067196402570Smrg $as_echo_n "(cached) " >&6 1067296402570Smrgelse 1067396402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1067496402570Smrg/* end confdefs.h. */ 1067596402570Smrgint i; 1067696402570Smrg_ACEOF 1067796402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1067896402570Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1067996402570Smrgelse 1068096402570Smrg xorg_cv_cc_flag_unknown_warning_option=no 1068196402570Smrgfi 1068296402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1068396402570Smrgfi 1068496402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1068596402570Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1068696402570Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1068796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1068896402570Smrgfi 1068996402570Smrg 1069096402570Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1069196402570Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1069296402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1069396402570Smrg fi 1069496402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1069596402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1069696402570Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1069796402570Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1069896402570Smrg $as_echo_n "(cached) " >&6 1069996402570Smrgelse 1070096402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1070196402570Smrg/* end confdefs.h. */ 1070296402570Smrgint i; 1070396402570Smrg_ACEOF 1070496402570Smrgif ac_fn_c_try_compile "$LINENO"; then : 1070596402570Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1070696402570Smrgelse 1070796402570Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1070896402570Smrgfi 1070996402570Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1071096402570Smrgfi 1071196402570Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1071296402570Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1071396402570Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1071496402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1071596402570Smrgfi 1071696402570Smrg 1071796402570Smrgfound="no" 1071896402570Smrg 1071996402570Smrg if test $found = "no" ; then 1072040c5344fSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1072196402570Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1072296402570Smrg fi 1072396402570Smrg 1072440c5344fSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1072596402570Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1072696402570Smrg fi 1072796402570Smrg 1072896402570Smrg CFLAGS="$CFLAGS -Werror=attributes" 1072996402570Smrg 1073040c5344fSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 1073140c5344fSmrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 107328abc0ccfSmrg cacheid=xorg_cv_cc_flag__Werror_attributes 1073396402570Smrg if eval \${$cacheid+:} false; then : 1073496402570Smrg $as_echo_n "(cached) " >&6 1073596402570Smrgelse 1073696402570Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1073796402570Smrg/* end confdefs.h. */ 1073896402570Smrgint i; 1073996402570Smrgint 1074096402570Smrgmain () 1074196402570Smrg{ 1074296402570Smrg 1074396402570Smrg ; 1074496402570Smrg return 0; 1074596402570Smrg} 1074696402570Smrg_ACEOF 1074796402570Smrgif ac_fn_c_try_link "$LINENO"; then : 1074896402570Smrg eval $cacheid=yes 1074996402570Smrgelse 1075096402570Smrg eval $cacheid=no 1075196402570Smrgfi 1075296402570Smrgrm -f core conftest.err conftest.$ac_objext \ 1075396402570Smrg conftest$ac_exeext conftest.$ac_ext 1075496402570Smrgfi 1075596402570Smrg 1075696402570Smrg 1075796402570Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1075896402570Smrg 1075996402570Smrg eval supported=\$$cacheid 1076096402570Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1076196402570Smrg$as_echo "$supported" >&6; } 1076296402570Smrg if test "$supported" = "yes" ; then 1076396402570Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1076496402570Smrg found="yes" 1076596402570Smrg fi 1076696402570Smrg fi 1076796402570Smrg 1076896402570Smrg 1076996402570Smrg 1077096402570Smrgif test "x$STRICT_COMPILE" = "xyes"; then 1077196402570Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 1077296402570Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 1077396402570Smrgfi 1077496402570Smrg 1077596402570Smrg 1077696402570Smrg 1077796402570Smrg 1077896402570Smrg 1077996402570Smrg 1078096402570Smrgcat >>confdefs.h <<_ACEOF 1078196402570Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 1078296402570Smrg_ACEOF 1078396402570Smrg 1078496402570Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 1078596402570Smrg if test "x$PVM" = "x"; then 1078696402570Smrg PVM="0" 1078796402570Smrg fi 1078896402570Smrg 1078996402570Smrgcat >>confdefs.h <<_ACEOF 1079096402570Smrg#define PACKAGE_VERSION_MINOR $PVM 1079196402570Smrg_ACEOF 1079296402570Smrg 1079396402570Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 1079496402570Smrg if test "x$PVP" = "x"; then 1079596402570Smrg PVP="0" 1079696402570Smrg fi 1079796402570Smrg 1079896402570Smrgcat >>confdefs.h <<_ACEOF 1079996402570Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 1080096402570Smrg_ACEOF 1080196402570Smrg 1080296402570Smrg 1080396402570Smrg 108046c3c2bceSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 1080596402570Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 108066c3c2bceSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 108076c3c2bceSmrgtouch \$(top_srcdir)/ChangeLog; \ 108086c3c2bceSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 1080996402570Smrg 1081096402570Smrg 1081196402570Smrg 1081296402570Smrg 1081396402570Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 1081496402570SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 1081596402570Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 108166c3c2bceSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 108176c3c2bceSmrgtouch \$(top_srcdir)/INSTALL; \ 108186c3c2bceSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 1081996402570Smrg 1082096402570Smrg 1082196402570Smrg 1082296402570Smrg 1082396402570Smrg 1082496402570Smrg 108256c3c2bceSmrgcase $host_os in 108266c3c2bceSmrg solaris*) 108276c3c2bceSmrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 108286c3c2bceSmrg # check for a man page file found in later versions that use 108296c3c2bceSmrg # traditional section numbers instead 108306c3c2bceSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 108316c3c2bceSmrg$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 108326c3c2bceSmrgif ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 108336c3c2bceSmrg $as_echo_n "(cached) " >&6 108346c3c2bceSmrgelse 108356c3c2bceSmrg test "$cross_compiling" = yes && 108366c3c2bceSmrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 108376c3c2bceSmrgif test -r "/usr/share/man/man7/attributes.7"; then 108386c3c2bceSmrg ac_cv_file__usr_share_man_man7_attributes_7=yes 108396c3c2bceSmrgelse 108406c3c2bceSmrg ac_cv_file__usr_share_man_man7_attributes_7=no 108416c3c2bceSmrgfi 108426c3c2bceSmrgfi 108436c3c2bceSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 108446c3c2bceSmrg$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 108456c3c2bceSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 108466c3c2bceSmrg SYSV_MAN_SECTIONS=false 108476c3c2bceSmrgelse 108486c3c2bceSmrg SYSV_MAN_SECTIONS=true 108496c3c2bceSmrgfi 108506c3c2bceSmrg 108516c3c2bceSmrg ;; 108526c3c2bceSmrg *) SYSV_MAN_SECTIONS=false ;; 108536c3c2bceSmrgesac 108546c3c2bceSmrg 1085596402570Smrgif test x$APP_MAN_SUFFIX = x ; then 1085696402570Smrg APP_MAN_SUFFIX=1 1085796402570Smrgfi 1085896402570Smrgif test x$APP_MAN_DIR = x ; then 1085996402570Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1086096402570Smrgfi 1086196402570Smrg 1086296402570Smrgif test x$LIB_MAN_SUFFIX = x ; then 1086396402570Smrg LIB_MAN_SUFFIX=3 1086496402570Smrgfi 1086596402570Smrgif test x$LIB_MAN_DIR = x ; then 1086696402570Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1086796402570Smrgfi 1086896402570Smrg 1086996402570Smrgif test x$FILE_MAN_SUFFIX = x ; then 108706c3c2bceSmrg case $SYSV_MAN_SECTIONS in 108716c3c2bceSmrg true) FILE_MAN_SUFFIX=4 ;; 1087240c5344fSmrg *) FILE_MAN_SUFFIX=5 ;; 1087396402570Smrg esac 1087496402570Smrgfi 1087596402570Smrgif test x$FILE_MAN_DIR = x ; then 1087696402570Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1087796402570Smrgfi 1087896402570Smrg 1087996402570Smrgif test x$MISC_MAN_SUFFIX = x ; then 108806c3c2bceSmrg case $SYSV_MAN_SECTIONS in 108816c3c2bceSmrg true) MISC_MAN_SUFFIX=5 ;; 1088240c5344fSmrg *) MISC_MAN_SUFFIX=7 ;; 1088396402570Smrg esac 1088496402570Smrgfi 1088596402570Smrgif test x$MISC_MAN_DIR = x ; then 1088696402570Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1088796402570Smrgfi 1088896402570Smrg 1088996402570Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 108906c3c2bceSmrg case $SYSV_MAN_SECTIONS in 108916c3c2bceSmrg true) DRIVER_MAN_SUFFIX=7 ;; 1089240c5344fSmrg *) DRIVER_MAN_SUFFIX=4 ;; 1089396402570Smrg esac 1089496402570Smrgfi 1089596402570Smrgif test x$DRIVER_MAN_DIR = x ; then 1089696402570Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1089796402570Smrgfi 1089896402570Smrg 1089996402570Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 109006c3c2bceSmrg case $SYSV_MAN_SECTIONS in 109016c3c2bceSmrg true) ADMIN_MAN_SUFFIX=1m ;; 1090240c5344fSmrg *) ADMIN_MAN_SUFFIX=8 ;; 1090396402570Smrg esac 1090496402570Smrgfi 1090596402570Smrgif test x$ADMIN_MAN_DIR = x ; then 1090696402570Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1090796402570Smrgfi 1090896402570Smrg 1090996402570Smrg 1091096402570Smrg 1091196402570Smrg 1091296402570Smrg 1091396402570Smrg 1091496402570Smrg 1091596402570Smrg 1091696402570Smrg 1091796402570Smrg 1091896402570Smrg 1091996402570Smrg 1092096402570Smrg 1092196402570Smrg 1092296402570Smrg 1092396402570SmrgXORG_MAN_PAGE="X Version 11" 1092496402570Smrg 1092596402570SmrgMAN_SUBSTS="\ 1092696402570Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1092796402570Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 109282adc0320Smrg -e 's|__xservername__|Xorg|g' \ 109292adc0320Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 109302adc0320Smrg -e 's|__projectroot__|\$(prefix)|g' \ 109312adc0320Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 109322adc0320Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 109332adc0320Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 109342adc0320Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 109352adc0320Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 109362adc0320Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 109372adc0320Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 109382adc0320Smrg 109392adc0320Smrg 109402adc0320Smrg 109412adc0320Smrg# Check whether --enable-silent-rules was given. 109422adc0320Smrgif test "${enable_silent_rules+set}" = set; then : 109432adc0320Smrg enableval=$enable_silent_rules; 109442adc0320Smrgfi 109452adc0320Smrg 109468abc0ccfSmrgcase $enable_silent_rules in # ((( 109478abc0ccfSmrg yes) AM_DEFAULT_VERBOSITY=0;; 109488abc0ccfSmrg no) AM_DEFAULT_VERBOSITY=1;; 109498abc0ccfSmrg *) AM_DEFAULT_VERBOSITY=0;; 109502adc0320Smrgesac 109518abc0ccfSmrgam_make=${MAKE-make} 109528abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 109538abc0ccfSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 109548abc0ccfSmrgif ${am_cv_make_support_nested_variables+:} false; then : 109557366012aSmrg $as_echo_n "(cached) " >&6 109567a0395d0Smrgelse 109578abc0ccfSmrg if $as_echo 'TRUE=$(BAR$(V)) 109588abc0ccfSmrgBAR0=false 109598abc0ccfSmrgBAR1=true 109608abc0ccfSmrgV=1 109618abc0ccfSmrgam__doit: 109628abc0ccfSmrg @$(TRUE) 109638abc0ccfSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 109648abc0ccfSmrg am_cv_make_support_nested_variables=yes 109657a0395d0Smrgelse 109668abc0ccfSmrg am_cv_make_support_nested_variables=no 109677a0395d0Smrgfi 109687a0395d0Smrgfi 109698abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 109708abc0ccfSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 109718abc0ccfSmrgif test $am_cv_make_support_nested_variables = yes; then 109728abc0ccfSmrg AM_V='$(V)' 109738abc0ccfSmrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 109748abc0ccfSmrgelse 109758abc0ccfSmrg AM_V=$AM_DEFAULT_VERBOSITY 109768abc0ccfSmrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 109778abc0ccfSmrgfi 109788abc0ccfSmrgAM_BACKSLASH='\' 109797a0395d0Smrg 109807a0395d0Smrg 109817a0395d0Smrg 109827a0395d0Smrgfor ac_header in net/errno.h 109832adc0320Smrgdo : 109842adc0320Smrg ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" 109852adc0320Smrgif test "x$ac_cv_header_net_errno_h" = xyes; then : 109862adc0320Smrg cat >>confdefs.h <<_ACEOF 109872adc0320Smrg#define HAVE_NET_ERRNO_H 1 109887a0395d0Smrg_ACEOF 109897a0395d0Smrg 109907a0395d0Smrgfi 109917a0395d0Smrg 109922adc0320Smrgdone 109937a0395d0Smrg 109947a0395d0Smrg 109950d22642bSmrgfor ac_func in reallocarray strlcpy 109962adc0320Smrgdo : 109970d22642bSmrg as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 109980d22642bSmrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 109990d22642bSmrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 110007a0395d0Smrg cat >>confdefs.h <<_ACEOF 110010d22642bSmrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 110027a0395d0Smrg_ACEOF 110037a0395d0Smrg 110047a0395d0Smrgfi 110057a0395d0Smrgdone 110067a0395d0Smrg 110077a0395d0Smrg 110087a0395d0Smrg# Checks for pkg-config packages 110097a0395d0Smrg 110107a0395d0Smrgpkg_failed=no 110112adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5 110127366012aSmrg$as_echo_n "checking for XAUTH... " >&6; } 110137a0395d0Smrg 110147a0395d0Smrgif test -n "$XAUTH_CFLAGS"; then 110157a0395d0Smrg pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS" 110167a0395d0Smrg elif test -n "$PKG_CONFIG"; then 110177a0395d0Smrg if test -n "$PKG_CONFIG" && \ 110188abc0ccfSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5 110198abc0ccfSmrg ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5 110207a0395d0Smrg ac_status=$? 110212adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 110222adc0320Smrg test $ac_status = 0; }; then 110238abc0ccfSmrg pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null` 110248abc0ccfSmrg test "x$?" != "x0" && pkg_failed=yes 110257a0395d0Smrgelse 110267a0395d0Smrg pkg_failed=yes 110277a0395d0Smrgfi 110287a0395d0Smrg else 110297a0395d0Smrg pkg_failed=untried 110307a0395d0Smrgfi 110317a0395d0Smrgif test -n "$XAUTH_LIBS"; then 110327a0395d0Smrg pkg_cv_XAUTH_LIBS="$XAUTH_LIBS" 110337a0395d0Smrg elif test -n "$PKG_CONFIG"; then 110347a0395d0Smrg if test -n "$PKG_CONFIG" && \ 110358abc0ccfSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5 110368abc0ccfSmrg ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5 110377a0395d0Smrg ac_status=$? 110382adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 110392adc0320Smrg test $ac_status = 0; }; then 110408abc0ccfSmrg pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null` 110418abc0ccfSmrg test "x$?" != "x0" && pkg_failed=yes 110427a0395d0Smrgelse 110437a0395d0Smrg pkg_failed=yes 110447a0395d0Smrgfi 110457a0395d0Smrg else 110467a0395d0Smrg pkg_failed=untried 110477a0395d0Smrgfi 110487a0395d0Smrg 110497a0395d0Smrg 110507a0395d0Smrg 110517a0395d0Smrgif test $pkg_failed = yes; then 110528abc0ccfSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 110538abc0ccfSmrg$as_echo "no" >&6; } 110547a0395d0Smrg 110557a0395d0Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 110567a0395d0Smrg _pkg_short_errors_supported=yes 110577a0395d0Smrgelse 110587a0395d0Smrg _pkg_short_errors_supported=no 110597a0395d0Smrgfi 110607a0395d0Smrg if test $_pkg_short_errors_supported = yes; then 110618abc0ccfSmrg XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1` 110627a0395d0Smrg else 110638abc0ccfSmrg XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1` 110647a0395d0Smrg fi 110657a0395d0Smrg # Put the nasty error message in config.log where it belongs 110667a0395d0Smrg echo "$XAUTH_PKG_ERRORS" >&5 110677a0395d0Smrg 110688abc0ccfSmrg as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met: 110697a0395d0Smrg 110707a0395d0Smrg$XAUTH_PKG_ERRORS 110717a0395d0Smrg 110727a0395d0SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 110737a0395d0Smrginstalled software in a non-standard prefix. 110747a0395d0Smrg 110757a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS 110767a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config. 110778abc0ccfSmrgSee the pkg-config man page for more details." "$LINENO" 5 110787a0395d0Smrgelif test $pkg_failed = untried; then 110798abc0ccfSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 110808abc0ccfSmrg$as_echo "no" >&6; } 110812adc0320Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 110827366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 110832adc0320Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 110847a0395d0Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 110857a0395d0Smrgpath to pkg-config. 110867a0395d0Smrg 110877a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS 110887a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config. 110897a0395d0SmrgSee the pkg-config man page for more details. 110907a0395d0Smrg 110917a0395d0SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 110922adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; } 110937a0395d0Smrgelse 110947a0395d0Smrg XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS 110957a0395d0Smrg XAUTH_LIBS=$pkg_cv_XAUTH_LIBS 110962adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 110977366012aSmrg$as_echo "yes" >&6; } 110988abc0ccfSmrg 110997a0395d0Smrgfi 111007a0395d0Smrg 111017a0395d0Smrg# Transport selection macro from xtrans.m4 111027a0395d0Smrg# Needed to set *CONN defines for gethost.c & parsedpy.c 111037a0395d0Smrg 111047a0395d0Smrg 111057366012aSmrg case $host_os in 111067366012aSmrg mingw*) unixdef="no" ;; 111077366012aSmrg *) unixdef="yes" ;; 111087366012aSmrg esac 111097a0395d0Smrg # Check whether --enable-unix-transport was given. 111102adc0320Smrgif test "${enable_unix_transport+set}" = set; then : 111117a0395d0Smrg enableval=$enable_unix_transport; UNIXCONN=$enableval 111127a0395d0Smrgelse 111137366012aSmrg UNIXCONN=$unixdef 111147a0395d0Smrgfi 111157a0395d0Smrg 111162adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 111177366012aSmrg$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 111187a0395d0Smrg if test "$UNIXCONN" = "yes"; then 111197a0395d0Smrg 111202adc0320Smrg$as_echo "#define UNIXCONN 1" >>confdefs.h 111217a0395d0Smrg 111227a0395d0Smrg fi 111232adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 111247366012aSmrg$as_echo "$UNIXCONN" >&6; } 111257366012aSmrg # Check whether --enable-tcp-transport was given. 111262adc0320Smrgif test "${enable_tcp_transport+set}" = set; then : 111277366012aSmrg enableval=$enable_tcp_transport; TCPCONN=$enableval 111287366012aSmrgelse 111297366012aSmrg TCPCONN=yes 111307366012aSmrgfi 111317366012aSmrg 111322adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 111337366012aSmrg$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 111342adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 111357366012aSmrg$as_echo "$TCPCONN" >&6; } 111367a0395d0Smrg if test "$TCPCONN" = "yes"; then 111377a0395d0Smrg 111382adc0320Smrg$as_echo "#define TCPCONN 1" >>confdefs.h 111397a0395d0Smrg 111407a0395d0Smrg 111417a0395d0Smrg # SVR4 hides these in libraries other than libc 111422adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 111437366012aSmrg$as_echo_n "checking for library containing socket... " >&6; } 111442adc0320Smrgif ${ac_cv_search_socket+:} false; then : 111457366012aSmrg $as_echo_n "(cached) " >&6 111467a0395d0Smrgelse 111477a0395d0Smrg ac_func_search_save_LIBS=$LIBS 111482adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 111497a0395d0Smrg/* end confdefs.h. */ 111507a0395d0Smrg 111517a0395d0Smrg/* Override any GCC internal prototype to avoid an error. 111527a0395d0Smrg Use char because int might match the return type of a GCC 111537a0395d0Smrg builtin and then its argument prototype would still apply. */ 111547a0395d0Smrg#ifdef __cplusplus 111557a0395d0Smrgextern "C" 111567a0395d0Smrg#endif 111577a0395d0Smrgchar socket (); 111587a0395d0Smrgint 111597a0395d0Smrgmain () 111607a0395d0Smrg{ 111617a0395d0Smrgreturn socket (); 111627a0395d0Smrg ; 111637a0395d0Smrg return 0; 111647a0395d0Smrg} 111657a0395d0Smrg_ACEOF 111667a0395d0Smrgfor ac_lib in '' socket; do 111677a0395d0Smrg if test -z "$ac_lib"; then 111687a0395d0Smrg ac_res="none required" 111697a0395d0Smrg else 111707a0395d0Smrg ac_res=-l$ac_lib 111717a0395d0Smrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 111722adc0320Smrg fi 111732adc0320Smrg if ac_fn_c_try_link "$LINENO"; then : 111742adc0320Smrg ac_cv_search_socket=$ac_res 111757a0395d0Smrgfi 111762adc0320Smrgrm -f core conftest.err conftest.$ac_objext \ 111772adc0320Smrg conftest$ac_exeext 111782adc0320Smrg if ${ac_cv_search_socket+:} false; then : 111797a0395d0Smrg break 111807a0395d0Smrgfi 111817a0395d0Smrgdone 111822adc0320Smrgif ${ac_cv_search_socket+:} false; then : 111832adc0320Smrg 111847a0395d0Smrgelse 111857a0395d0Smrg ac_cv_search_socket=no 111867a0395d0Smrgfi 111877a0395d0Smrgrm conftest.$ac_ext 111887a0395d0SmrgLIBS=$ac_func_search_save_LIBS 111897a0395d0Smrgfi 111902adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 111917366012aSmrg$as_echo "$ac_cv_search_socket" >&6; } 111927a0395d0Smrgac_res=$ac_cv_search_socket 111932adc0320Smrgif test "$ac_res" != no; then : 111947a0395d0Smrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 111957a0395d0Smrg 111967a0395d0Smrgfi 111977a0395d0Smrg 111982adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 111997366012aSmrg$as_echo_n "checking for library containing gethostbyname... " >&6; } 112002adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then : 112017366012aSmrg $as_echo_n "(cached) " >&6 112027a0395d0Smrgelse 112037a0395d0Smrg ac_func_search_save_LIBS=$LIBS 112042adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 112057a0395d0Smrg/* end confdefs.h. */ 112067a0395d0Smrg 112077a0395d0Smrg/* Override any GCC internal prototype to avoid an error. 112087a0395d0Smrg Use char because int might match the return type of a GCC 112097a0395d0Smrg builtin and then its argument prototype would still apply. */ 112107a0395d0Smrg#ifdef __cplusplus 112117a0395d0Smrgextern "C" 112127a0395d0Smrg#endif 112137a0395d0Smrgchar gethostbyname (); 112147a0395d0Smrgint 112157a0395d0Smrgmain () 112167a0395d0Smrg{ 112177a0395d0Smrgreturn gethostbyname (); 112187a0395d0Smrg ; 112197a0395d0Smrg return 0; 112207a0395d0Smrg} 112217a0395d0Smrg_ACEOF 112227a0395d0Smrgfor ac_lib in '' nsl; do 112237a0395d0Smrg if test -z "$ac_lib"; then 112247a0395d0Smrg ac_res="none required" 112257a0395d0Smrg else 112267a0395d0Smrg ac_res=-l$ac_lib 112277a0395d0Smrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 112287a0395d0Smrg fi 112292adc0320Smrg if ac_fn_c_try_link "$LINENO"; then : 112307a0395d0Smrg ac_cv_search_gethostbyname=$ac_res 112317a0395d0Smrgfi 112322adc0320Smrgrm -f core conftest.err conftest.$ac_objext \ 112332adc0320Smrg conftest$ac_exeext 112342adc0320Smrg if ${ac_cv_search_gethostbyname+:} false; then : 112357a0395d0Smrg break 112367a0395d0Smrgfi 112377a0395d0Smrgdone 112382adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then : 112392adc0320Smrg 112407a0395d0Smrgelse 112417a0395d0Smrg ac_cv_search_gethostbyname=no 112427a0395d0Smrgfi 112437a0395d0Smrgrm conftest.$ac_ext 112447a0395d0SmrgLIBS=$ac_func_search_save_LIBS 112457a0395d0Smrgfi 112462adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 112477366012aSmrg$as_echo "$ac_cv_search_gethostbyname" >&6; } 112487a0395d0Smrgac_res=$ac_cv_search_gethostbyname 112492adc0320Smrgif test "$ac_res" != no; then : 112507a0395d0Smrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 112517a0395d0Smrg 112527a0395d0Smrgfi 112537a0395d0Smrg 112542adc0320Smrg if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 112552adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 112567366012aSmrg$as_echo_n "checking for main in -lws2_32... " >&6; } 112572adc0320Smrgif ${ac_cv_lib_ws2_32_main+:} false; then : 112587366012aSmrg $as_echo_n "(cached) " >&6 112597366012aSmrgelse 112607366012aSmrg ac_check_lib_save_LIBS=$LIBS 112617366012aSmrgLIBS="-lws2_32 $LIBS" 112622adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 112637366012aSmrg/* end confdefs.h. */ 112647366012aSmrg 112657366012aSmrg 112667366012aSmrgint 112677366012aSmrgmain () 112687366012aSmrg{ 112697366012aSmrgreturn main (); 112707366012aSmrg ; 112717366012aSmrg return 0; 112727366012aSmrg} 112737366012aSmrg_ACEOF 112742adc0320Smrgif ac_fn_c_try_link "$LINENO"; then : 112757366012aSmrg ac_cv_lib_ws2_32_main=yes 112767366012aSmrgelse 112772adc0320Smrg ac_cv_lib_ws2_32_main=no 112787366012aSmrgfi 112792adc0320Smrgrm -f core conftest.err conftest.$ac_objext \ 112802adc0320Smrg conftest$ac_exeext conftest.$ac_ext 112817366012aSmrgLIBS=$ac_check_lib_save_LIBS 112827366012aSmrgfi 112832adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 112847366012aSmrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 112852adc0320Smrgif test "x$ac_cv_lib_ws2_32_main" = xyes; then : 112867366012aSmrg cat >>confdefs.h <<_ACEOF 112877366012aSmrg#define HAVE_LIBWS2_32 1 112887366012aSmrg_ACEOF 112897366012aSmrg 112907366012aSmrg LIBS="-lws2_32 $LIBS" 112917366012aSmrg 112927366012aSmrgfi 112937366012aSmrg 112942adc0320Smrg fi 112957366012aSmrg 112967a0395d0Smrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems 112977a0395d0Smrg # Check whether --enable-ipv6 was given. 112982adc0320Smrgif test "${enable_ipv6+set}" = set; then : 112997a0395d0Smrg enableval=$enable_ipv6; IPV6CONN=$enableval 113007a0395d0Smrgelse 113012adc0320Smrg ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 113022adc0320Smrgif test "x$ac_cv_func_getaddrinfo" = xyes; then : 113037a0395d0Smrg IPV6CONN=yes 113047a0395d0Smrgelse 113057a0395d0Smrg IPV6CONN=no 113067a0395d0Smrgfi 113077a0395d0Smrg 113087a0395d0Smrgfi 113097a0395d0Smrg 113102adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 113117366012aSmrg$as_echo_n "checking if IPv6 support should be built... " >&6; } 113127a0395d0Smrg if test "$IPV6CONN" = "yes"; then 113137a0395d0Smrg 113142adc0320Smrg$as_echo "#define IPv6 1" >>confdefs.h 113157a0395d0Smrg 113167a0395d0Smrg fi 113172adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 113187366012aSmrg$as_echo "$IPV6CONN" >&6; } 113197a0395d0Smrg 113207a0395d0Smrg # 4.3BSD-Reno added a new member to struct sockaddr_in 113212adc0320Smrg ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 113227a0395d0Smrg#include <sys/types.h> 113237a0395d0Smrg#include <sys/socket.h> 113247a0395d0Smrg#include <netinet/in.h> 113257a0395d0Smrg 113262adc0320Smrg" 113272adc0320Smrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 113287a0395d0Smrg 113292adc0320Smrg$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 113307366012aSmrg 113312adc0320Smrgfi 113327366012aSmrg 113337366012aSmrg 113342adc0320Smrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 113352adc0320Smrg ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 113362adc0320Smrg$ac_includes_default 113372adc0320Smrg#include <sys/socket.h> 113382adc0320Smrg" 113392adc0320Smrgif test "x$ac_cv_type_socklen_t" = xyes; then : 113407366012aSmrg 113412adc0320Smrgcat >>confdefs.h <<_ACEOF 113422adc0320Smrg#define HAVE_SOCKLEN_T 1 113437366012aSmrg_ACEOF 113447366012aSmrg 113457366012aSmrg 113467366012aSmrgfi 113477366012aSmrg 113487366012aSmrg 113499a011757Smrg # XPG4v2/UNIX95 added msg_control - check to see if we need to define 113509a011757Smrg # _XOPEN_SOURCE to get it (such as on Solaris) 113519a011757Smrg ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 113529a011757Smrg$ac_includes_default 113539a011757Smrg#include <sys/socket.h> 113549a011757Smrg 113559a011757Smrg" 113569a011757Smrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 113579a011757Smrg 113589a011757Smrgfi 113599a011757Smrg 113609a011757Smrg # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 113619a011757Smrg if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 113629a011757Smrg unset ac_cv_member_struct_msghdr_msg_control 113639a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 113649a011757Smrg$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 113659a011757Smrg ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 113669a011757Smrg#define _XOPEN_SOURCE 600 113679a011757Smrg$ac_includes_default 113689a011757Smrg#include <sys/socket.h> 113699a011757Smrg 113709a011757Smrg" 113719a011757Smrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 113729a011757Smrg 113739a011757Smrg$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 113749a011757Smrg 113759a011757Smrg 113769a011757Smrgfi 113779a011757Smrg 113789a011757Smrg fi 113799a011757Smrg # If that didn't work, fall back to XPG5/UNIX98 with C89 113809a011757Smrg if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 113819a011757Smrg unset ac_cv_member_struct_msghdr_msg_control 113829a011757Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 113839a011757Smrg$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 113849a011757Smrg ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 113859a011757Smrg#define _XOPEN_SOURCE 500 113869a011757Smrg$ac_includes_default 113879a011757Smrg#include <sys/socket.h> 113889a011757Smrg 113899a011757Smrg" 113909a011757Smrgif test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 113919a011757Smrg 113929a011757Smrg$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 113939a011757Smrg 113949a011757Smrg 113959a011757Smrgfi 113969a011757Smrg 113979a011757Smrg fi 113989a011757Smrg 113999a011757Smrg 114007366012aSmrg 114012adc0320Smrg fi 114022adc0320Smrg case $host_os in 114032adc0320Smrg solaris*|sco*|sysv4*) localdef="yes" ;; 114042adc0320Smrg *) localdef="no" ;; 114052adc0320Smrg esac 114062adc0320Smrg # Check whether --enable-local-transport was given. 114072adc0320Smrgif test "${enable_local_transport+set}" = set; then : 114082adc0320Smrg enableval=$enable_local_transport; LOCALCONN=$enableval 114097366012aSmrgelse 114102adc0320Smrg LOCALCONN=$localdef 114112adc0320Smrgfi 114127366012aSmrg 114132adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 114142adc0320Smrg$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 114152adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 114162adc0320Smrg$as_echo "$LOCALCONN" >&6; } 114172adc0320Smrg if test "$LOCALCONN" = "yes"; then 114187a0395d0Smrg 114192adc0320Smrg$as_echo "#define LOCALCONN 1" >>confdefs.h 114207a0395d0Smrg 114212adc0320Smrg fi 114227a0395d0Smrg 114230d22642bSmrg # Other functions Xtrans may need 114240d22642bSmrg for ac_func in strcasecmp strlcpy 114250d22642bSmrgdo : 114260d22642bSmrg as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 114270d22642bSmrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 114280d22642bSmrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 114290d22642bSmrg cat >>confdefs.h <<_ACEOF 114300d22642bSmrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 114310d22642bSmrg_ACEOF 114320d22642bSmrg 114330d22642bSmrgfi 114340d22642bSmrgdone 114350d22642bSmrg 114360d22642bSmrg 114377a0395d0Smrg 114387366012aSmrg 114397366012aSmrg 114407a0395d0Smrg 114417a0395d0Smrg 114427a0395d0Smrg 114437366012aSmrg 114442adc0320Smrg# Check whether --with-lint was given. 114452adc0320Smrgif test "${with_lint+set}" = set; then : 114462adc0320Smrg withval=$with_lint; use_lint=$withval 114472adc0320Smrgelse 114482adc0320Smrg use_lint=no 114497a0395d0Smrgfi 114507a0395d0Smrg 114517a0395d0Smrg 114522adc0320Smrg# Obtain platform specific info like program name and options 114532adc0320Smrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris 114542adc0320Smrgcase $host_os in 114552adc0320Smrg *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 114562adc0320Smrg lint_name=splint 114572adc0320Smrg lint_options="-badflag" 114582adc0320Smrg ;; 114592adc0320Smrg *freebsd* | *netbsd*) 114602adc0320Smrg lint_name=lint 114612adc0320Smrg lint_options="-u -b" 114622adc0320Smrg ;; 114632adc0320Smrg *solaris*) 114642adc0320Smrg lint_name=lint 114652adc0320Smrg lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 114662adc0320Smrg ;; 114672adc0320Smrgesac 114687366012aSmrg 114692adc0320Smrg# Test for the presence of the program (either guessed by the code or spelled out by the user) 114702adc0320Smrgif test "x$use_lint" = x"yes" ; then 114712adc0320Smrg # Extract the first word of "$lint_name", so it can be a program name with args. 114722adc0320Smrgset dummy $lint_name; ac_word=$2 114732adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 114742adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; } 114752adc0320Smrgif ${ac_cv_path_LINT+:} false; then : 114762adc0320Smrg $as_echo_n "(cached) " >&6 114772adc0320Smrgelse 114782adc0320Smrg case $LINT in 114792adc0320Smrg [\\/]* | ?:[\\/]*) 114802adc0320Smrg ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 114812adc0320Smrg ;; 114822adc0320Smrg *) 114832adc0320Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 114842adc0320Smrgfor as_dir in $PATH 114852adc0320Smrgdo 114862adc0320Smrg IFS=$as_save_IFS 114872adc0320Smrg test -z "$as_dir" && as_dir=. 114882adc0320Smrg for ac_exec_ext in '' $ac_executable_extensions; do 114898abc0ccfSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 114902adc0320Smrg ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 114912adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 114922adc0320Smrg break 2 114932adc0320Smrg fi 114942adc0320Smrgdone 114952adc0320Smrg done 114962adc0320SmrgIFS=$as_save_IFS 114972adc0320Smrg 114982adc0320Smrg ;; 114992adc0320Smrgesac 115002adc0320Smrgfi 115012adc0320SmrgLINT=$ac_cv_path_LINT 115022adc0320Smrgif test -n "$LINT"; then 115032adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 115042adc0320Smrg$as_echo "$LINT" >&6; } 115057a0395d0Smrgelse 115062adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 115072adc0320Smrg$as_echo "no" >&6; } 115087a0395d0Smrgfi 115097a0395d0Smrg 115107a0395d0Smrg 115112adc0320Smrg if test "x$LINT" = "x"; then 115122adc0320Smrg as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 115132adc0320Smrg fi 115142adc0320Smrgelif test "x$use_lint" = x"no" ; then 115152adc0320Smrg if test "x$LINT" != "x"; then 115162adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 115172adc0320Smrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 115182adc0320Smrg fi 115197a0395d0Smrgelse 115202adc0320Smrg as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 115217a0395d0Smrgfi 115227a0395d0Smrg 115232adc0320Smrg# User supplied flags override default flags 115242adc0320Smrgif test "x$LINT_FLAGS" != "x"; then 115252adc0320Smrg lint_options=$LINT_FLAGS 115267a0395d0Smrgfi 115277a0395d0Smrg 115282adc0320SmrgLINT_FLAGS=$lint_options 115297a0395d0Smrg 115302adc0320Smrg if test "x$LINT" != x; then 115317a0395d0Smrg LINT_TRUE= 115327a0395d0Smrg LINT_FALSE='#' 115337a0395d0Smrgelse 115347a0395d0Smrg LINT_TRUE='#' 115357a0395d0Smrg LINT_FALSE= 115367a0395d0Smrgfi 115377a0395d0Smrg 115387a0395d0Smrg 115397a0395d0Smrg 115407a0395d0Smrg 115418abc0ccfSmrgac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile" 115427a0395d0Smrg 115437a0395d0Smrgcat >confcache <<\_ACEOF 115447a0395d0Smrg# This file is a shell script that caches the results of configure 115457a0395d0Smrg# tests run on this system so they can be shared between configure 115467a0395d0Smrg# scripts and configure runs, see configure's option --config-cache. 115477a0395d0Smrg# It is not useful on other systems. If it contains results you don't 115487a0395d0Smrg# want to keep, you may remove or edit it. 115497a0395d0Smrg# 115507a0395d0Smrg# config.status only pays attention to the cache file if you give it 115517a0395d0Smrg# the --recheck option to rerun configure. 115527a0395d0Smrg# 115537a0395d0Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 115547a0395d0Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 115557a0395d0Smrg# following values. 115567a0395d0Smrg 115577a0395d0Smrg_ACEOF 115587a0395d0Smrg 115597a0395d0Smrg# The following way of writing the cache mishandles newlines in values, 115607a0395d0Smrg# but we know of no workaround that is simple, portable, and efficient. 115617a0395d0Smrg# So, we kill variables containing newlines. 115627a0395d0Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 115637a0395d0Smrg# and sets the high bit in the cache file unless we assign to the vars. 115647a0395d0Smrg( 115657a0395d0Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 115667a0395d0Smrg eval ac_val=\$$ac_var 115677a0395d0Smrg case $ac_val in #( 115687a0395d0Smrg *${as_nl}*) 115697a0395d0Smrg case $ac_var in #( 115702adc0320Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 115717366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 115727a0395d0Smrg esac 115737a0395d0Smrg case $ac_var in #( 115747a0395d0Smrg _ | IFS | as_nl) ;; #( 115757366012aSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 115762adc0320Smrg *) { eval $ac_var=; unset $ac_var;} ;; 115777a0395d0Smrg esac ;; 115787a0395d0Smrg esac 115797a0395d0Smrg done 115807a0395d0Smrg 115817a0395d0Smrg (set) 2>&1 | 115827a0395d0Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 115837a0395d0Smrg *${as_nl}ac_space=\ *) 115842adc0320Smrg # `set' does not quote correctly, so add quotes: double-quote 115852adc0320Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 115867a0395d0Smrg sed -n \ 115877a0395d0Smrg "s/'/'\\\\''/g; 115887a0395d0Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 115897a0395d0Smrg ;; #( 115907a0395d0Smrg *) 115917a0395d0Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 115927a0395d0Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 115937a0395d0Smrg ;; 115947a0395d0Smrg esac | 115957a0395d0Smrg sort 115967a0395d0Smrg) | 115977a0395d0Smrg sed ' 115987a0395d0Smrg /^ac_cv_env_/b end 115997a0395d0Smrg t clear 116007a0395d0Smrg :clear 116017a0395d0Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 116027a0395d0Smrg t end 116037a0395d0Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 116047a0395d0Smrg :end' >>confcache 116057a0395d0Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 116067a0395d0Smrg if test -w "$cache_file"; then 116072adc0320Smrg if test "x$cache_file" != "x/dev/null"; then 116082adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 116097366012aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 116102adc0320Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 116112adc0320Smrg cat confcache >"$cache_file" 116122adc0320Smrg else 116132adc0320Smrg case $cache_file in #( 116142adc0320Smrg */* | ?:*) 116152adc0320Smrg mv -f confcache "$cache_file"$$ && 116162adc0320Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 116172adc0320Smrg *) 116182adc0320Smrg mv -f confcache "$cache_file" ;; 116192adc0320Smrg esac 116202adc0320Smrg fi 116212adc0320Smrg fi 116227a0395d0Smrg else 116232adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 116247366012aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 116257a0395d0Smrg fi 116267a0395d0Smrgfi 116277a0395d0Smrgrm -f confcache 116287a0395d0Smrg 116297a0395d0Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 116307a0395d0Smrg# Let make expand exec_prefix. 116317a0395d0Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 116327a0395d0Smrg 116337a0395d0SmrgDEFS=-DHAVE_CONFIG_H 116347a0395d0Smrg 116357a0395d0Smrgac_libobjs= 116367a0395d0Smrgac_ltlibobjs= 116372adc0320SmrgU= 116387a0395d0Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 116397a0395d0Smrg # 1. Remove the extension, and $U if already installed. 116407a0395d0Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 116417366012aSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 116427a0395d0Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 116437a0395d0Smrg # will be set to the directory where LIBOBJS objects are built. 116442adc0320Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 116452adc0320Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 116467a0395d0Smrgdone 116477a0395d0SmrgLIBOBJS=$ac_libobjs 116487a0395d0Smrg 116497a0395d0SmrgLTLIBOBJS=$ac_ltlibobjs 116507a0395d0Smrg 116517a0395d0Smrg 116528abc0ccfSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 116538abc0ccfSmrg$as_echo_n "checking that generated files are newer than configure... " >&6; } 116548abc0ccfSmrg if test -n "$am_sleep_pid"; then 116558abc0ccfSmrg # Hide warnings about reused PIDs. 116568abc0ccfSmrg wait $am_sleep_pid 2>/dev/null 116578abc0ccfSmrg fi 116588abc0ccfSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 116598abc0ccfSmrg$as_echo "done" >&6; } 116607366012aSmrg if test -n "$EXEEXT"; then 116617366012aSmrg am__EXEEXT_TRUE= 116627366012aSmrg am__EXEEXT_FALSE='#' 116637366012aSmrgelse 116647366012aSmrg am__EXEEXT_TRUE='#' 116657366012aSmrg am__EXEEXT_FALSE= 116667366012aSmrgfi 116677366012aSmrg 116687a0395d0Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 116692adc0320Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 116702adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 116717a0395d0Smrgfi 116727a0395d0Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 116732adc0320Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 116742adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 116757a0395d0Smrgfi 116767a0395d0Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 116772adc0320Smrg as_fn_error $? "conditional \"LINT\" was never defined. 116782adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 116797a0395d0Smrgfi 116807a0395d0Smrg 116812adc0320Smrg: "${CONFIG_STATUS=./config.status}" 116827366012aSmrgac_write_fail=0 116837a0395d0Smrgac_clean_files_save=$ac_clean_files 116847a0395d0Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 116852adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 116867366012aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 116872adc0320Smrgas_write_fail=0 116882adc0320Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 116897a0395d0Smrg#! $SHELL 116907a0395d0Smrg# Generated by $as_me. 116917a0395d0Smrg# Run this file to recreate the current configuration. 116927a0395d0Smrg# Compiler output produced by configure, useful for debugging 116937a0395d0Smrg# configure, is in config.log if it exists. 116947a0395d0Smrg 116957a0395d0Smrgdebug=false 116967a0395d0Smrgac_cs_recheck=false 116977a0395d0Smrgac_cs_silent=false 116987a0395d0Smrg 116992adc0320SmrgSHELL=\${CONFIG_SHELL-$SHELL} 117002adc0320Smrgexport SHELL 117012adc0320Smrg_ASEOF 117022adc0320Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 117032adc0320Smrg## -------------------- ## 117042adc0320Smrg## M4sh Initialization. ## 117052adc0320Smrg## -------------------- ## 117067a0395d0Smrg 117077a0395d0Smrg# Be more Bourne compatible 117087a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh 117092adc0320Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 117107a0395d0Smrg emulate sh 117117a0395d0Smrg NULLCMD=: 117127366012aSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 117137a0395d0Smrg # is contrary to our usage. Disable this feature. 117147a0395d0Smrg alias -g '${1+"$@"}'='"$@"' 117157a0395d0Smrg setopt NO_GLOB_SUBST 117167a0395d0Smrgelse 117172adc0320Smrg case `(set -o) 2>/dev/null` in #( 117182adc0320Smrg *posix*) : 117192adc0320Smrg set -o posix ;; #( 117202adc0320Smrg *) : 117212adc0320Smrg ;; 117227a0395d0Smrgesac 117237a0395d0Smrgfi 117247a0395d0Smrg 117257a0395d0Smrg 117267366012aSmrgas_nl=' 117277366012aSmrg' 117287366012aSmrgexport as_nl 117297366012aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 117307366012aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 117317366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 117327366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 117332adc0320Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 117342adc0320Smrg# but without wasting forks for bash or zsh. 117352adc0320Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 117362adc0320Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 117372adc0320Smrg as_echo='print -r --' 117382adc0320Smrg as_echo_n='print -rn --' 117392adc0320Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 117407366012aSmrg as_echo='printf %s\n' 117417366012aSmrg as_echo_n='printf %s' 117427366012aSmrgelse 117437366012aSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 117447366012aSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 117457366012aSmrg as_echo_n='/usr/ucb/echo -n' 117467a0395d0Smrg else 117477366012aSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 117487366012aSmrg as_echo_n_body='eval 117497366012aSmrg arg=$1; 117502adc0320Smrg case $arg in #( 117517366012aSmrg *"$as_nl"*) 117527366012aSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 117537366012aSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 117547366012aSmrg esac; 117557366012aSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 117567366012aSmrg ' 117577366012aSmrg export as_echo_n_body 117587366012aSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 117597a0395d0Smrg fi 117607366012aSmrg export as_echo_body 117617366012aSmrg as_echo='sh -c $as_echo_body as_echo' 117627366012aSmrgfi 117637366012aSmrg 117647366012aSmrg# The user is always right. 117657366012aSmrgif test "${PATH_SEPARATOR+set}" != set; then 117667366012aSmrg PATH_SEPARATOR=: 117677366012aSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 117687366012aSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 117697366012aSmrg PATH_SEPARATOR=';' 117707366012aSmrg } 117717a0395d0Smrgfi 117727a0395d0Smrg 117737a0395d0Smrg 117747a0395d0Smrg# IFS 117757a0395d0Smrg# We need space, tab and new line, in precisely that order. Quoting is 117767a0395d0Smrg# there to prevent editors from complaining about space-tab. 117777a0395d0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 117787a0395d0Smrg# splitting by setting IFS to empty value.) 117797a0395d0SmrgIFS=" "" $as_nl" 117807a0395d0Smrg 117817a0395d0Smrg# Find who we are. Look in the path if we contain no directory separator. 117822adc0320Smrgas_myself= 117832adc0320Smrgcase $0 in #(( 117847a0395d0Smrg *[\\/]* ) as_myself=$0 ;; 117857a0395d0Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 117867a0395d0Smrgfor as_dir in $PATH 117877a0395d0Smrgdo 117887a0395d0Smrg IFS=$as_save_IFS 117897a0395d0Smrg test -z "$as_dir" && as_dir=. 117902adc0320Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117912adc0320Smrg done 117927a0395d0SmrgIFS=$as_save_IFS 117937a0395d0Smrg 117947a0395d0Smrg ;; 117957a0395d0Smrgesac 117967a0395d0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 117977a0395d0Smrg# in which case we are not to be found in the path. 117987a0395d0Smrgif test "x$as_myself" = x; then 117997a0395d0Smrg as_myself=$0 118007a0395d0Smrgfi 118017a0395d0Smrgif test ! -f "$as_myself"; then 118027366012aSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 118032adc0320Smrg exit 1 118047a0395d0Smrgfi 118057a0395d0Smrg 118062adc0320Smrg# Unset variables that we do not need and which cause bugs (e.g. in 118072adc0320Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118082adc0320Smrg# suppresses any "Segmentation fault" message there. '((' could 118092adc0320Smrg# trigger a bug in pdksh 5.2.14. 118102adc0320Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 118112adc0320Smrgdo eval test x\${$as_var+set} = xset \ 118122adc0320Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 118137a0395d0Smrgdone 118147a0395d0SmrgPS1='$ ' 118157a0395d0SmrgPS2='> ' 118167a0395d0SmrgPS4='+ ' 118177a0395d0Smrg 118187a0395d0Smrg# NLS nuisances. 118197366012aSmrgLC_ALL=C 118207366012aSmrgexport LC_ALL 118217366012aSmrgLANGUAGE=C 118227366012aSmrgexport LANGUAGE 118237a0395d0Smrg 118242adc0320Smrg# CDPATH. 118252adc0320Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 118262adc0320Smrg 118272adc0320Smrg 118282adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 118292adc0320Smrg# ---------------------------------------- 118302adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 118312adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 118322adc0320Smrg# script with STATUS, using 1 if that was 0. 118332adc0320Smrgas_fn_error () 118342adc0320Smrg{ 118352adc0320Smrg as_status=$1; test $as_status -eq 0 && as_status=1 118362adc0320Smrg if test "$4"; then 118372adc0320Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 118382adc0320Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 118392adc0320Smrg fi 118402adc0320Smrg $as_echo "$as_me: error: $2" >&2 118412adc0320Smrg as_fn_exit $as_status 118422adc0320Smrg} # as_fn_error 118432adc0320Smrg 118442adc0320Smrg 118452adc0320Smrg# as_fn_set_status STATUS 118462adc0320Smrg# ----------------------- 118472adc0320Smrg# Set $? to STATUS, without forking. 118482adc0320Smrgas_fn_set_status () 118492adc0320Smrg{ 118502adc0320Smrg return $1 118512adc0320Smrg} # as_fn_set_status 118522adc0320Smrg 118532adc0320Smrg# as_fn_exit STATUS 118542adc0320Smrg# ----------------- 118552adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 118562adc0320Smrgas_fn_exit () 118572adc0320Smrg{ 118582adc0320Smrg set +e 118592adc0320Smrg as_fn_set_status $1 118602adc0320Smrg exit $1 118612adc0320Smrg} # as_fn_exit 118622adc0320Smrg 118632adc0320Smrg# as_fn_unset VAR 118642adc0320Smrg# --------------- 118652adc0320Smrg# Portably unset VAR. 118662adc0320Smrgas_fn_unset () 118672adc0320Smrg{ 118682adc0320Smrg { eval $1=; unset $1;} 118692adc0320Smrg} 118702adc0320Smrgas_unset=as_fn_unset 118712adc0320Smrg# as_fn_append VAR VALUE 118722adc0320Smrg# ---------------------- 118732adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 118742adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over 118752adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive 118762adc0320Smrg# implementations. 118772adc0320Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 118782adc0320Smrg eval 'as_fn_append () 118792adc0320Smrg { 118802adc0320Smrg eval $1+=\$2 118812adc0320Smrg }' 118822adc0320Smrgelse 118832adc0320Smrg as_fn_append () 118842adc0320Smrg { 118852adc0320Smrg eval $1=\$$1\$2 118862adc0320Smrg } 118872adc0320Smrgfi # as_fn_append 118882adc0320Smrg 118892adc0320Smrg# as_fn_arith ARG... 118902adc0320Smrg# ------------------ 118912adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 118922adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 118932adc0320Smrg# must be portable across $(()) and expr. 118942adc0320Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 118952adc0320Smrg eval 'as_fn_arith () 118962adc0320Smrg { 118972adc0320Smrg as_val=$(( $* )) 118982adc0320Smrg }' 118992adc0320Smrgelse 119002adc0320Smrg as_fn_arith () 119012adc0320Smrg { 119022adc0320Smrg as_val=`expr "$@" || test $? -eq 1` 119032adc0320Smrg } 119042adc0320Smrgfi # as_fn_arith 119052adc0320Smrg 119062adc0320Smrg 119077a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 119087a0395d0Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 119097a0395d0Smrg as_expr=expr 119107a0395d0Smrgelse 119117a0395d0Smrg as_expr=false 119127a0395d0Smrgfi 119137a0395d0Smrg 119147a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 119157a0395d0Smrg as_basename=basename 119167a0395d0Smrgelse 119177a0395d0Smrg as_basename=false 119187a0395d0Smrgfi 119197a0395d0Smrg 119202adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 119212adc0320Smrg as_dirname=dirname 119222adc0320Smrgelse 119232adc0320Smrg as_dirname=false 119242adc0320Smrgfi 119257a0395d0Smrg 119267a0395d0Smrgas_me=`$as_basename -- "$0" || 119277a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 119287a0395d0Smrg X"$0" : 'X\(//\)$' \| \ 119297a0395d0Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 119307366012aSmrg$as_echo X/"$0" | 119317a0395d0Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 119327a0395d0Smrg s//\1/ 119337a0395d0Smrg q 119347a0395d0Smrg } 119357a0395d0Smrg /^X\/\(\/\/\)$/{ 119367a0395d0Smrg s//\1/ 119377a0395d0Smrg q 119387a0395d0Smrg } 119397a0395d0Smrg /^X\/\(\/\).*/{ 119407a0395d0Smrg s//\1/ 119417a0395d0Smrg q 119427a0395d0Smrg } 119437a0395d0Smrg s/.*/./; q'` 119447a0395d0Smrg 119452adc0320Smrg# Avoid depending upon Character Ranges. 119462adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 119472adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 119482adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 119492adc0320Smrgas_cr_digits='0123456789' 119502adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 119517a0395d0Smrg 119527a0395d0SmrgECHO_C= ECHO_N= ECHO_T= 119532adc0320Smrgcase `echo -n x` in #((((( 119547a0395d0Smrg-n*) 119552adc0320Smrg case `echo 'xy\c'` in 119567a0395d0Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 119572adc0320Smrg xy) ECHO_C='\c';; 119582adc0320Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 119592adc0320Smrg ECHO_T=' ';; 119607a0395d0Smrg esac;; 119617a0395d0Smrg*) 119627a0395d0Smrg ECHO_N='-n';; 119637a0395d0Smrgesac 119647a0395d0Smrg 119657a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.file 119667a0395d0Smrgif test -d conf$$.dir; then 119677a0395d0Smrg rm -f conf$$.dir/conf$$.file 119687a0395d0Smrgelse 119697a0395d0Smrg rm -f conf$$.dir 119707366012aSmrg mkdir conf$$.dir 2>/dev/null 119717366012aSmrgfi 119727366012aSmrgif (echo >conf$$.file) 2>/dev/null; then 119737366012aSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 119747366012aSmrg as_ln_s='ln -s' 119757366012aSmrg # ... but there are two gotchas: 119767366012aSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 119777366012aSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 119788abc0ccfSmrg # In both cases, we have to default to `cp -pR'. 119797366012aSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 119808abc0ccfSmrg as_ln_s='cp -pR' 119817366012aSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 119827366012aSmrg as_ln_s=ln 119837366012aSmrg else 119848abc0ccfSmrg as_ln_s='cp -pR' 119857366012aSmrg fi 119867a0395d0Smrgelse 119878abc0ccfSmrg as_ln_s='cp -pR' 119887a0395d0Smrgfi 119897a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 119907a0395d0Smrgrmdir conf$$.dir 2>/dev/null 119917a0395d0Smrg 119922adc0320Smrg 119932adc0320Smrg# as_fn_mkdir_p 119942adc0320Smrg# ------------- 119952adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary. 119962adc0320Smrgas_fn_mkdir_p () 119972adc0320Smrg{ 119982adc0320Smrg 119992adc0320Smrg case $as_dir in #( 120002adc0320Smrg -*) as_dir=./$as_dir;; 120012adc0320Smrg esac 120022adc0320Smrg test -d "$as_dir" || eval $as_mkdir_p || { 120032adc0320Smrg as_dirs= 120042adc0320Smrg while :; do 120052adc0320Smrg case $as_dir in #( 120062adc0320Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 120072adc0320Smrg *) as_qdir=$as_dir;; 120082adc0320Smrg esac 120092adc0320Smrg as_dirs="'$as_qdir' $as_dirs" 120102adc0320Smrg as_dir=`$as_dirname -- "$as_dir" || 120112adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 120122adc0320Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 120132adc0320Smrg X"$as_dir" : 'X\(//\)$' \| \ 120142adc0320Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 120152adc0320Smrg$as_echo X"$as_dir" | 120162adc0320Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 120172adc0320Smrg s//\1/ 120182adc0320Smrg q 120192adc0320Smrg } 120202adc0320Smrg /^X\(\/\/\)[^/].*/{ 120212adc0320Smrg s//\1/ 120222adc0320Smrg q 120232adc0320Smrg } 120242adc0320Smrg /^X\(\/\/\)$/{ 120252adc0320Smrg s//\1/ 120262adc0320Smrg q 120272adc0320Smrg } 120282adc0320Smrg /^X\(\/\).*/{ 120292adc0320Smrg s//\1/ 120302adc0320Smrg q 120312adc0320Smrg } 120322adc0320Smrg s/.*/./; q'` 120332adc0320Smrg test -d "$as_dir" && break 120342adc0320Smrg done 120352adc0320Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 120362adc0320Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 120372adc0320Smrg 120382adc0320Smrg 120392adc0320Smrg} # as_fn_mkdir_p 120407a0395d0Smrgif mkdir -p . 2>/dev/null; then 120412adc0320Smrg as_mkdir_p='mkdir -p "$as_dir"' 120427a0395d0Smrgelse 120437a0395d0Smrg test -d ./-p && rmdir ./-p 120447a0395d0Smrg as_mkdir_p=false 120457a0395d0Smrgfi 120467a0395d0Smrg 120478abc0ccfSmrg 120488abc0ccfSmrg# as_fn_executable_p FILE 120498abc0ccfSmrg# ----------------------- 120508abc0ccfSmrg# Test if FILE is an executable regular file. 120518abc0ccfSmrgas_fn_executable_p () 120528abc0ccfSmrg{ 120538abc0ccfSmrg test -f "$1" && test -x "$1" 120548abc0ccfSmrg} # as_fn_executable_p 120558abc0ccfSmrgas_test_x='test -x' 120568abc0ccfSmrgas_executable_p=as_fn_executable_p 120577a0395d0Smrg 120587a0395d0Smrg# Sed expression to map a string onto a valid CPP name. 120597a0395d0Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 120607a0395d0Smrg 120617a0395d0Smrg# Sed expression to map a string onto a valid variable name. 120627a0395d0Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 120637a0395d0Smrg 120647a0395d0Smrg 120657a0395d0Smrgexec 6>&1 120662adc0320Smrg## ----------------------------------- ## 120672adc0320Smrg## Main body of $CONFIG_STATUS script. ## 120682adc0320Smrg## ----------------------------------- ## 120692adc0320Smrg_ASEOF 120702adc0320Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 120717a0395d0Smrg 120722adc0320Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 120732adc0320Smrg# Save the log message, to keep $0 and so on meaningful, and to 120747a0395d0Smrg# report actual input values of CONFIG_FILES etc. instead of their 120757a0395d0Smrg# values after options handling. 120767a0395d0Smrgac_log=" 120770d22642bSmrgThis file was extended by xauth $as_me 1.1.1, which was 120788abc0ccfSmrggenerated by GNU Autoconf 2.69. Invocation command line was 120797a0395d0Smrg 120807a0395d0Smrg CONFIG_FILES = $CONFIG_FILES 120817a0395d0Smrg CONFIG_HEADERS = $CONFIG_HEADERS 120827a0395d0Smrg CONFIG_LINKS = $CONFIG_LINKS 120837a0395d0Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 120847a0395d0Smrg $ $0 $@ 120857a0395d0Smrg 120867a0395d0Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 120877a0395d0Smrg" 120887a0395d0Smrg 120897a0395d0Smrg_ACEOF 120907a0395d0Smrg 120917366012aSmrgcase $ac_config_files in *" 120927366012aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 120937366012aSmrgesac 120947366012aSmrg 120957366012aSmrgcase $ac_config_headers in *" 120967366012aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 120977366012aSmrgesac 120987366012aSmrg 120997366012aSmrg 121007366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 121017a0395d0Smrg# Files that config.status was made for. 121027a0395d0Smrgconfig_files="$ac_config_files" 121037a0395d0Smrgconfig_headers="$ac_config_headers" 121047a0395d0Smrgconfig_commands="$ac_config_commands" 121057a0395d0Smrg 121067a0395d0Smrg_ACEOF 121077a0395d0Smrg 121087366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 121097a0395d0Smrgac_cs_usage="\ 121102adc0320Smrg\`$as_me' instantiates files and other configuration actions 121112adc0320Smrgfrom templates according to the current configuration. Unless the files 121122adc0320Smrgand actions are specified as TAGs, all are instantiated by default. 121137a0395d0Smrg 121142adc0320SmrgUsage: $0 [OPTION]... [TAG]... 121157a0395d0Smrg 121167a0395d0Smrg -h, --help print this help, then exit 121177a0395d0Smrg -V, --version print version number and configuration settings, then exit 121182adc0320Smrg --config print configuration, then exit 121197366012aSmrg -q, --quiet, --silent 121207366012aSmrg do not print progress messages 121217a0395d0Smrg -d, --debug don't remove temporary files 121227a0395d0Smrg --recheck update $as_me by reconfiguring in the same conditions 121237366012aSmrg --file=FILE[:TEMPLATE] 121247366012aSmrg instantiate the configuration file FILE 121257366012aSmrg --header=FILE[:TEMPLATE] 121267366012aSmrg instantiate the configuration header FILE 121277a0395d0Smrg 121287a0395d0SmrgConfiguration files: 121297a0395d0Smrg$config_files 121307a0395d0Smrg 121317a0395d0SmrgConfiguration headers: 121327a0395d0Smrg$config_headers 121337a0395d0Smrg 121347a0395d0SmrgConfiguration commands: 121357a0395d0Smrg$config_commands 121367a0395d0Smrg 121376c3c2bceSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/issues>." 121387a0395d0Smrg 121397a0395d0Smrg_ACEOF 121407366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 121412adc0320Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 121427a0395d0Smrgac_cs_version="\\ 121430d22642bSmrgxauth config.status 1.1.1 121448abc0ccfSmrgconfigured by $0, generated by GNU Autoconf 2.69, 121452adc0320Smrg with options \\"\$ac_cs_config\\" 121467a0395d0Smrg 121478abc0ccfSmrgCopyright (C) 2012 Free Software Foundation, Inc. 121487a0395d0SmrgThis config.status script is free software; the Free Software Foundation 121497a0395d0Smrggives unlimited permission to copy, distribute and modify it." 121507a0395d0Smrg 121517a0395d0Smrgac_pwd='$ac_pwd' 121527a0395d0Smrgsrcdir='$srcdir' 121537a0395d0SmrgINSTALL='$INSTALL' 121547a0395d0SmrgMKDIR_P='$MKDIR_P' 121557366012aSmrgAWK='$AWK' 121567366012aSmrgtest -n "\$AWK" || AWK=awk 121577a0395d0Smrg_ACEOF 121587a0395d0Smrg 121597366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 121607366012aSmrg# The default lists apply if the user does not specify any file. 121617a0395d0Smrgac_need_defaults=: 121627a0395d0Smrgwhile test $# != 0 121637a0395d0Smrgdo 121647a0395d0Smrg case $1 in 121652adc0320Smrg --*=?*) 121667a0395d0Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 121677a0395d0Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 121687a0395d0Smrg ac_shift=: 121697a0395d0Smrg ;; 121702adc0320Smrg --*=) 121712adc0320Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 121722adc0320Smrg ac_optarg= 121732adc0320Smrg ac_shift=: 121742adc0320Smrg ;; 121757a0395d0Smrg *) 121767a0395d0Smrg ac_option=$1 121777a0395d0Smrg ac_optarg=$2 121787a0395d0Smrg ac_shift=shift 121797a0395d0Smrg ;; 121807a0395d0Smrg esac 121817a0395d0Smrg 121827a0395d0Smrg case $ac_option in 121837a0395d0Smrg # Handling of the options. 121847a0395d0Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 121857a0395d0Smrg ac_cs_recheck=: ;; 121867a0395d0Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 121877366012aSmrg $as_echo "$ac_cs_version"; exit ;; 121882adc0320Smrg --config | --confi | --conf | --con | --co | --c ) 121892adc0320Smrg $as_echo "$ac_cs_config"; exit ;; 121907a0395d0Smrg --debug | --debu | --deb | --de | --d | -d ) 121917a0395d0Smrg debug=: ;; 121927a0395d0Smrg --file | --fil | --fi | --f ) 121937a0395d0Smrg $ac_shift 121947366012aSmrg case $ac_optarg in 121957366012aSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 121962adc0320Smrg '') as_fn_error $? "missing file argument" ;; 121977366012aSmrg esac 121982adc0320Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 121997a0395d0Smrg ac_need_defaults=false;; 122007a0395d0Smrg --header | --heade | --head | --hea ) 122017a0395d0Smrg $ac_shift 122027366012aSmrg case $ac_optarg in 122037366012aSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 122047366012aSmrg esac 122052adc0320Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 122067a0395d0Smrg ac_need_defaults=false;; 122077a0395d0Smrg --he | --h) 122087a0395d0Smrg # Conflict between --help and --header 122092adc0320Smrg as_fn_error $? "ambiguous option: \`$1' 122102adc0320SmrgTry \`$0 --help' for more information.";; 122117a0395d0Smrg --help | --hel | -h ) 122127366012aSmrg $as_echo "$ac_cs_usage"; exit ;; 122137a0395d0Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 122147a0395d0Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 122157a0395d0Smrg ac_cs_silent=: ;; 122167a0395d0Smrg 122177a0395d0Smrg # This is an error. 122182adc0320Smrg -*) as_fn_error $? "unrecognized option: \`$1' 122192adc0320SmrgTry \`$0 --help' for more information." ;; 122207a0395d0Smrg 122212adc0320Smrg *) as_fn_append ac_config_targets " $1" 122227a0395d0Smrg ac_need_defaults=false ;; 122237a0395d0Smrg 122247a0395d0Smrg esac 122257a0395d0Smrg shift 122267a0395d0Smrgdone 122277a0395d0Smrg 122287a0395d0Smrgac_configure_extra_args= 122297a0395d0Smrg 122307a0395d0Smrgif $ac_cs_silent; then 122317a0395d0Smrg exec 6>/dev/null 122327a0395d0Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 122337a0395d0Smrgfi 122347a0395d0Smrg 122357a0395d0Smrg_ACEOF 122367366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 122377a0395d0Smrgif \$ac_cs_recheck; then 122388abc0ccfSmrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 122397366012aSmrg shift 122407366012aSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 122417366012aSmrg CONFIG_SHELL='$SHELL' 122427a0395d0Smrg export CONFIG_SHELL 122437366012aSmrg exec "\$@" 122447a0395d0Smrgfi 122457a0395d0Smrg 122467a0395d0Smrg_ACEOF 122477366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 122487a0395d0Smrgexec 5>>config.log 122497a0395d0Smrg{ 122507a0395d0Smrg echo 122517a0395d0Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 122527a0395d0Smrg## Running $as_me. ## 122537a0395d0Smrg_ASBOX 122547366012aSmrg $as_echo "$ac_log" 122557a0395d0Smrg} >&5 122567a0395d0Smrg 122577a0395d0Smrg_ACEOF 122587366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 122597a0395d0Smrg# 122607a0395d0Smrg# INIT-COMMANDS 122617a0395d0Smrg# 122626c3c2bceSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 122637a0395d0Smrg 122647a0395d0Smrg_ACEOF 122657a0395d0Smrg 122667366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 122677a0395d0Smrg 122687a0395d0Smrg# Handling of arguments. 122697a0395d0Smrgfor ac_config_target in $ac_config_targets 122707a0395d0Smrgdo 122717a0395d0Smrg case $ac_config_target in 122727a0395d0Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 122737a0395d0Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 122747a0395d0Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 122758abc0ccfSmrg "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 122762852888eSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 122777a0395d0Smrg 122782adc0320Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 122797a0395d0Smrg esac 122807a0395d0Smrgdone 122817a0395d0Smrg 122827a0395d0Smrg 122837a0395d0Smrg# If the user did not use the arguments to specify the items to instantiate, 122847a0395d0Smrg# then the envvar interface is used. Set only those that are not. 122857a0395d0Smrg# We use the long form for the default assignment because of an extremely 122867a0395d0Smrg# bizarre bug on SunOS 4.1.3. 122877a0395d0Smrgif $ac_need_defaults; then 122887a0395d0Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 122897a0395d0Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 122907a0395d0Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 122917a0395d0Smrgfi 122927a0395d0Smrg 122937a0395d0Smrg# Have a temporary directory for convenience. Make it in the build tree 122947a0395d0Smrg# simply because there is no reason against having it here, and in addition, 122957a0395d0Smrg# creating and moving files from /tmp can sometimes cause problems. 122967a0395d0Smrg# Hook for its removal unless debugging. 122977a0395d0Smrg# Note that there is a small window in which the directory will not be cleaned: 122987a0395d0Smrg# after its creation but before its name has been assigned to `$tmp'. 122997a0395d0Smrg$debug || 123007a0395d0Smrg{ 123012adc0320Smrg tmp= ac_tmp= 123027a0395d0Smrg trap 'exit_status=$? 123032adc0320Smrg : "${ac_tmp:=$tmp}" 123042adc0320Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 123057a0395d0Smrg' 0 123062adc0320Smrg trap 'as_fn_exit 1' 1 2 13 15 123077a0395d0Smrg} 123087a0395d0Smrg# Create a (secure) tmp directory for tmp files. 123097a0395d0Smrg 123107a0395d0Smrg{ 123117a0395d0Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 123122adc0320Smrg test -d "$tmp" 123137a0395d0Smrg} || 123147a0395d0Smrg{ 123157a0395d0Smrg tmp=./conf$$-$RANDOM 123167a0395d0Smrg (umask 077 && mkdir "$tmp") 123172adc0320Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 123182adc0320Smrgac_tmp=$tmp 123197a0395d0Smrg 123207366012aSmrg# Set up the scripts for CONFIG_FILES section. 123217366012aSmrg# No need to generate them if there are no CONFIG_FILES. 123227366012aSmrg# This happens for instance with `./config.status config.h'. 123237a0395d0Smrgif test -n "$CONFIG_FILES"; then 123247a0395d0Smrg 123257a0395d0Smrg 123262adc0320Smrgac_cr=`echo X | tr X '\015'` 123272adc0320Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 123282adc0320Smrg# But we know of no other shell where ac_cr would be empty at this 123292adc0320Smrg# point, so we can use a bashism as a fallback. 123302adc0320Smrgif test "x$ac_cr" = x; then 123312adc0320Smrg eval ac_cr=\$\'\\r\' 123322adc0320Smrgfi 123337366012aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 123347366012aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 123357366012aSmrg ac_cs_awk_cr='\\r' 123367366012aSmrgelse 123377366012aSmrg ac_cs_awk_cr=$ac_cr 123387a0395d0Smrgfi 123397a0395d0Smrg 123402adc0320Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 123417a0395d0Smrg_ACEOF 123427a0395d0Smrg 123437a0395d0Smrg 123447366012aSmrg{ 123457366012aSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 123467366012aSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 123477366012aSmrg echo "_ACEOF" 123487366012aSmrg} >conf$$subs.sh || 123492adc0320Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 123502adc0320Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 123517a0395d0Smrgac_delim='%!_!# ' 123527a0395d0Smrgfor ac_last_try in false false false false false :; do 123537366012aSmrg . ./conf$$subs.sh || 123542adc0320Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 123557a0395d0Smrg 123567366012aSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 123577366012aSmrg if test $ac_delim_n = $ac_delim_num; then 123587a0395d0Smrg break 123597a0395d0Smrg elif $ac_last_try; then 123602adc0320Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 123617a0395d0Smrg else 123627a0395d0Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 123637a0395d0Smrg fi 123647a0395d0Smrgdone 123657366012aSmrgrm -f conf$$subs.sh 123667a0395d0Smrg 123677366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 123682adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 123697366012aSmrg_ACEOF 123707366012aSmrgsed -n ' 123717366012aSmrgh 123727366012aSmrgs/^/S["/; s/!.*/"]=/ 123737366012aSmrgp 123747366012aSmrgg 123757366012aSmrgs/^[^!]*!// 123767366012aSmrg:repl 123777366012aSmrgt repl 123787366012aSmrgs/'"$ac_delim"'$// 123797366012aSmrgt delim 123807366012aSmrg:nl 123817366012aSmrgh 123822adc0320Smrgs/\(.\{148\}\)..*/\1/ 123837366012aSmrgt more1 123847366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 123857366012aSmrgp 123867366012aSmrgn 123877366012aSmrgb repl 123887366012aSmrg:more1 123897366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 123907366012aSmrgp 123917366012aSmrgg 123927366012aSmrgs/.\{148\}// 123937366012aSmrgt nl 123947366012aSmrg:delim 123957366012aSmrgh 123962adc0320Smrgs/\(.\{148\}\)..*/\1/ 123977366012aSmrgt more2 123987366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 123997366012aSmrgp 124007366012aSmrgb 124017366012aSmrg:more2 124027366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 124037366012aSmrgp 124047366012aSmrgg 124057366012aSmrgs/.\{148\}// 124067366012aSmrgt delim 124077366012aSmrg' <conf$$subs.awk | sed ' 124087366012aSmrg/^[^""]/{ 124097366012aSmrg N 124107366012aSmrg s/\n// 124117366012aSmrg} 124127366012aSmrg' >>$CONFIG_STATUS || ac_write_fail=1 124137366012aSmrgrm -f conf$$subs.awk 124147366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 124157366012aSmrg_ACAWK 124162adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 124177366012aSmrg for (key in S) S_is_set[key] = 1 124187366012aSmrg FS = "" 124197366012aSmrg 124207366012aSmrg} 124217366012aSmrg{ 124227366012aSmrg line = $ 0 124237366012aSmrg nfields = split(line, field, "@") 124247366012aSmrg substed = 0 124257366012aSmrg len = length(field[1]) 124267366012aSmrg for (i = 2; i < nfields; i++) { 124277366012aSmrg key = field[i] 124287366012aSmrg keylen = length(key) 124297366012aSmrg if (S_is_set[key]) { 124307366012aSmrg value = S[key] 124317366012aSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 124327366012aSmrg len += length(value) + length(field[++i]) 124337366012aSmrg substed = 1 124347366012aSmrg } else 124357366012aSmrg len += 1 + keylen 124367366012aSmrg } 124377366012aSmrg 124387366012aSmrg print line 124397366012aSmrg} 124407a0395d0Smrg 124417366012aSmrg_ACAWK 124427a0395d0Smrg_ACEOF 124437366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 124447366012aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 124457366012aSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 124467366012aSmrgelse 124477366012aSmrg cat 124482adc0320Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 124492adc0320Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 124507a0395d0Smrg_ACEOF 124517a0395d0Smrg 124522adc0320Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 124532adc0320Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 124547a0395d0Smrg# trailing colons and then remove the whole line if VPATH becomes empty 124557a0395d0Smrg# (actually we leave an empty line to preserve line numbers). 124567a0395d0Smrgif test "x$srcdir" = x.; then 124572adc0320Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 124582adc0320Smrgh 124592adc0320Smrgs/// 124602adc0320Smrgs/^/:/ 124612adc0320Smrgs/[ ]*$/:/ 124622adc0320Smrgs/:\$(srcdir):/:/g 124632adc0320Smrgs/:\${srcdir}:/:/g 124642adc0320Smrgs/:@srcdir@:/:/g 124652adc0320Smrgs/^:*// 124667a0395d0Smrgs/:*$// 124672adc0320Smrgx 124682adc0320Smrgs/\(=[ ]*\).*/\1/ 124692adc0320SmrgG 124702adc0320Smrgs/\n// 124717a0395d0Smrgs/^[^=]*=[ ]*$// 124727a0395d0Smrg}' 124737a0395d0Smrgfi 124747a0395d0Smrg 124757366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 124767a0395d0Smrgfi # test -n "$CONFIG_FILES" 124777a0395d0Smrg 124787366012aSmrg# Set up the scripts for CONFIG_HEADERS section. 124797366012aSmrg# No need to generate them if there are no CONFIG_HEADERS. 124807366012aSmrg# This happens for instance with `./config.status Makefile'. 124817366012aSmrgif test -n "$CONFIG_HEADERS"; then 124822adc0320Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 124837366012aSmrgBEGIN { 124847366012aSmrg_ACEOF 124857366012aSmrg 124867366012aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 124877366012aSmrg# here-document in config.status, that substitutes the proper values into 124887366012aSmrg# config.h.in to produce config.h. 124897366012aSmrg 124907366012aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 124917366012aSmrg# handling of long lines. 124927366012aSmrgac_delim='%!_!# ' 124937366012aSmrgfor ac_last_try in false false :; do 124942adc0320Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 124952adc0320Smrg if test -z "$ac_tt"; then 124967366012aSmrg break 124977366012aSmrg elif $ac_last_try; then 124982adc0320Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 124997366012aSmrg else 125007366012aSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 125017366012aSmrg fi 125027366012aSmrgdone 125037366012aSmrg 125047366012aSmrg# For the awk script, D is an array of macro values keyed by name, 125057366012aSmrg# likewise P contains macro parameters if any. Preserve backslash 125067366012aSmrg# newline sequences. 125077366012aSmrg 125087366012aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 125097366012aSmrgsed -n ' 125107366012aSmrgs/.\{148\}/&'"$ac_delim"'/g 125117366012aSmrgt rset 125127366012aSmrg:rset 125137366012aSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 125147366012aSmrgt def 125157366012aSmrgd 125167366012aSmrg:def 125177366012aSmrgs/\\$// 125187366012aSmrgt bsnl 125197366012aSmrgs/["\\]/\\&/g 125207366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 125217366012aSmrgD["\1"]=" \3"/p 125227366012aSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 125237366012aSmrgd 125247366012aSmrg:bsnl 125257366012aSmrgs/["\\]/\\&/g 125267366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 125277366012aSmrgD["\1"]=" \3\\\\\\n"\\/p 125287366012aSmrgt cont 125297366012aSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 125307366012aSmrgt cont 125317366012aSmrgd 125327366012aSmrg:cont 125337366012aSmrgn 125347366012aSmrgs/.\{148\}/&'"$ac_delim"'/g 125357366012aSmrgt clear 125367366012aSmrg:clear 125377366012aSmrgs/\\$// 125387366012aSmrgt bsnlc 125397366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 125407366012aSmrgd 125417366012aSmrg:bsnlc 125427366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 125437366012aSmrgb cont 125447366012aSmrg' <confdefs.h | sed ' 125457366012aSmrgs/'"$ac_delim"'/"\\\ 125467366012aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 125477366012aSmrg 125487366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 125497366012aSmrg for (key in D) D_is_set[key] = 1 125507366012aSmrg FS = "" 125517366012aSmrg} 125527366012aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 125537366012aSmrg line = \$ 0 125547366012aSmrg split(line, arg, " ") 125557366012aSmrg if (arg[1] == "#") { 125567366012aSmrg defundef = arg[2] 125577366012aSmrg mac1 = arg[3] 125587366012aSmrg } else { 125597366012aSmrg defundef = substr(arg[1], 2) 125607366012aSmrg mac1 = arg[2] 125617366012aSmrg } 125627366012aSmrg split(mac1, mac2, "(") #) 125637366012aSmrg macro = mac2[1] 125647366012aSmrg prefix = substr(line, 1, index(line, defundef) - 1) 125657366012aSmrg if (D_is_set[macro]) { 125667366012aSmrg # Preserve the white space surrounding the "#". 125677366012aSmrg print prefix "define", macro P[macro] D[macro] 125687366012aSmrg next 125697366012aSmrg } else { 125707366012aSmrg # Replace #undef with comments. This is necessary, for example, 125717366012aSmrg # in the case of _POSIX_SOURCE, which is predefined and required 125727366012aSmrg # on some systems where configure will not decide to define it. 125737366012aSmrg if (defundef == "undef") { 125747366012aSmrg print "/*", prefix defundef, macro, "*/" 125757366012aSmrg next 125767366012aSmrg } 125777366012aSmrg } 125787366012aSmrg} 125797366012aSmrg{ print } 125807366012aSmrg_ACAWK 125817366012aSmrg_ACEOF 125827366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 125832adc0320Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 125847366012aSmrgfi # test -n "$CONFIG_HEADERS" 125857366012aSmrg 125867a0395d0Smrg 125877366012aSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 125887366012aSmrgshift 125897366012aSmrgfor ac_tag 125907a0395d0Smrgdo 125917a0395d0Smrg case $ac_tag in 125927a0395d0Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 125937a0395d0Smrg esac 125947a0395d0Smrg case $ac_mode$ac_tag in 125957a0395d0Smrg :[FHL]*:*);; 125962adc0320Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 125977a0395d0Smrg :[FH]-) ac_tag=-:-;; 125987a0395d0Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 125997a0395d0Smrg esac 126007a0395d0Smrg ac_save_IFS=$IFS 126017a0395d0Smrg IFS=: 126027a0395d0Smrg set x $ac_tag 126037a0395d0Smrg IFS=$ac_save_IFS 126047a0395d0Smrg shift 126057a0395d0Smrg ac_file=$1 126067a0395d0Smrg shift 126077a0395d0Smrg 126087a0395d0Smrg case $ac_mode in 126097a0395d0Smrg :L) ac_source=$1;; 126107a0395d0Smrg :[FH]) 126117a0395d0Smrg ac_file_inputs= 126127a0395d0Smrg for ac_f 126137a0395d0Smrg do 126147a0395d0Smrg case $ac_f in 126152adc0320Smrg -) ac_f="$ac_tmp/stdin";; 126167a0395d0Smrg *) # Look for the file first in the build tree, then in the source tree 126177a0395d0Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 126187a0395d0Smrg # because $ac_f cannot contain `:'. 126197a0395d0Smrg test -f "$ac_f" || 126207a0395d0Smrg case $ac_f in 126217a0395d0Smrg [\\/$]*) false;; 126227a0395d0Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 126237a0395d0Smrg esac || 126242adc0320Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 126257a0395d0Smrg esac 126267366012aSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 126272adc0320Smrg as_fn_append ac_file_inputs " '$ac_f'" 126287a0395d0Smrg done 126297a0395d0Smrg 126307a0395d0Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 126317a0395d0Smrg # use $as_me), people would be surprised to read: 126327a0395d0Smrg # /* config.h. Generated by config.status. */ 126337366012aSmrg configure_input='Generated from '` 126347366012aSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 126357366012aSmrg `' by configure.' 126367a0395d0Smrg if test x"$ac_file" != x-; then 126377a0395d0Smrg configure_input="$ac_file. $configure_input" 126382adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 126397366012aSmrg$as_echo "$as_me: creating $ac_file" >&6;} 126407a0395d0Smrg fi 126417366012aSmrg # Neutralize special characters interpreted by sed in replacement strings. 126427366012aSmrg case $configure_input in #( 126437366012aSmrg *\&* | *\|* | *\\* ) 126447366012aSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 126457366012aSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 126467366012aSmrg *) ac_sed_conf_input=$configure_input;; 126477366012aSmrg esac 126487a0395d0Smrg 126497a0395d0Smrg case $ac_tag in 126502adc0320Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 126512adc0320Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 126527a0395d0Smrg esac 126537a0395d0Smrg ;; 126547a0395d0Smrg esac 126557a0395d0Smrg 126567a0395d0Smrg ac_dir=`$as_dirname -- "$ac_file" || 126577a0395d0Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 126587a0395d0Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 126597a0395d0Smrg X"$ac_file" : 'X\(//\)$' \| \ 126607a0395d0Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 126617366012aSmrg$as_echo X"$ac_file" | 126627a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 126637a0395d0Smrg s//\1/ 126647a0395d0Smrg q 126657a0395d0Smrg } 126667a0395d0Smrg /^X\(\/\/\)[^/].*/{ 126677a0395d0Smrg s//\1/ 126687a0395d0Smrg q 126697a0395d0Smrg } 126707a0395d0Smrg /^X\(\/\/\)$/{ 126717a0395d0Smrg s//\1/ 126727a0395d0Smrg q 126737a0395d0Smrg } 126747a0395d0Smrg /^X\(\/\).*/{ 126757a0395d0Smrg s//\1/ 126767a0395d0Smrg q 126777a0395d0Smrg } 126787a0395d0Smrg s/.*/./; q'` 126792adc0320Smrg as_dir="$ac_dir"; as_fn_mkdir_p 126807a0395d0Smrg ac_builddir=. 126817a0395d0Smrg 126827a0395d0Smrgcase "$ac_dir" in 126837a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 126847a0395d0Smrg*) 126857366012aSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 126867a0395d0Smrg # A ".." for each directory in $ac_dir_suffix. 126877366012aSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 126887a0395d0Smrg case $ac_top_builddir_sub in 126897a0395d0Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 126907a0395d0Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 126917a0395d0Smrg esac ;; 126927a0395d0Smrgesac 126937a0395d0Smrgac_abs_top_builddir=$ac_pwd 126947a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 126957a0395d0Smrg# for backward compatibility: 126967a0395d0Smrgac_top_builddir=$ac_top_build_prefix 126977a0395d0Smrg 126987a0395d0Smrgcase $srcdir in 126997a0395d0Smrg .) # We are building in place. 127007a0395d0Smrg ac_srcdir=. 127017a0395d0Smrg ac_top_srcdir=$ac_top_builddir_sub 127027a0395d0Smrg ac_abs_top_srcdir=$ac_pwd ;; 127037a0395d0Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 127047a0395d0Smrg ac_srcdir=$srcdir$ac_dir_suffix; 127057a0395d0Smrg ac_top_srcdir=$srcdir 127067a0395d0Smrg ac_abs_top_srcdir=$srcdir ;; 127077a0395d0Smrg *) # Relative name. 127087a0395d0Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 127097a0395d0Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 127107a0395d0Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 127117a0395d0Smrgesac 127127a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 127137a0395d0Smrg 127147a0395d0Smrg 127157a0395d0Smrg case $ac_mode in 127167a0395d0Smrg :F) 127177a0395d0Smrg # 127187a0395d0Smrg # CONFIG_FILE 127197a0395d0Smrg # 127207a0395d0Smrg 127217a0395d0Smrg case $INSTALL in 127227a0395d0Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 127237a0395d0Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 127247a0395d0Smrg esac 127257a0395d0Smrg ac_MKDIR_P=$MKDIR_P 127267a0395d0Smrg case $MKDIR_P in 127277a0395d0Smrg [\\/$]* | ?:[\\/]* ) ;; 127287a0395d0Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 127297a0395d0Smrg esac 127307a0395d0Smrg_ACEOF 127317a0395d0Smrg 127327366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 127337a0395d0Smrg# If the template does not know about datarootdir, expand it. 127347a0395d0Smrg# FIXME: This hack should be removed a few years after 2.60. 127357a0395d0Smrgac_datarootdir_hack=; ac_datarootdir_seen= 127367366012aSmrgac_sed_dataroot=' 127377366012aSmrg/datarootdir/ { 127387a0395d0Smrg p 127397a0395d0Smrg q 127407a0395d0Smrg} 127417a0395d0Smrg/@datadir@/p 127427a0395d0Smrg/@docdir@/p 127437a0395d0Smrg/@infodir@/p 127447a0395d0Smrg/@localedir@/p 127452adc0320Smrg/@mandir@/p' 127467366012aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 127477a0395d0Smrg*datarootdir*) ac_datarootdir_seen=yes;; 127487a0395d0Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 127492adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 127507366012aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 127517a0395d0Smrg_ACEOF 127527366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 127537a0395d0Smrg ac_datarootdir_hack=' 127547a0395d0Smrg s&@datadir@&$datadir&g 127557a0395d0Smrg s&@docdir@&$docdir&g 127567a0395d0Smrg s&@infodir@&$infodir&g 127577a0395d0Smrg s&@localedir@&$localedir&g 127587a0395d0Smrg s&@mandir@&$mandir&g 127592adc0320Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 127607a0395d0Smrgesac 127617a0395d0Smrg_ACEOF 127627a0395d0Smrg 127637a0395d0Smrg# Neutralize VPATH when `$srcdir' = `.'. 127647a0395d0Smrg# Shell code in configure.ac might set extrasub. 127657a0395d0Smrg# FIXME: do we really want to maintain this feature? 127667366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 127677366012aSmrgac_sed_extra="$ac_vpsub 127687a0395d0Smrg$extrasub 127697a0395d0Smrg_ACEOF 127707366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 127717a0395d0Smrg:t 127727a0395d0Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 127737366012aSmrgs|@configure_input@|$ac_sed_conf_input|;t t 127747a0395d0Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 127757366012aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 127767a0395d0Smrgs&@srcdir@&$ac_srcdir&;t t 127777a0395d0Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 127787a0395d0Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 127797a0395d0Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 127807a0395d0Smrgs&@builddir@&$ac_builddir&;t t 127817a0395d0Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 127827a0395d0Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 127837a0395d0Smrgs&@INSTALL@&$ac_INSTALL&;t t 127847a0395d0Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 127857a0395d0Smrg$ac_datarootdir_hack 127867366012aSmrg" 127872adc0320Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 127882adc0320Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 127897a0395d0Smrg 127907a0395d0Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 127912adc0320Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 127922adc0320Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 127932adc0320Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 127942adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 127952adc0320Smrgwhich seems to be undefined. Please make sure it is defined" >&5 127967366012aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 127972adc0320Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 127987a0395d0Smrg 127992adc0320Smrg rm -f "$ac_tmp/stdin" 128007a0395d0Smrg case $ac_file in 128012adc0320Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 128022adc0320Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 128037366012aSmrg esac \ 128042adc0320Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 128057a0395d0Smrg ;; 128067a0395d0Smrg :H) 128077a0395d0Smrg # 128087a0395d0Smrg # CONFIG_HEADER 128097a0395d0Smrg # 128107a0395d0Smrg if test x"$ac_file" != x-; then 128117366012aSmrg { 128127366012aSmrg $as_echo "/* $configure_input */" \ 128132adc0320Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 128142adc0320Smrg } >"$ac_tmp/config.h" \ 128152adc0320Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 128162adc0320Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 128172adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 128187366012aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 128197a0395d0Smrg else 128207366012aSmrg rm -f "$ac_file" 128212adc0320Smrg mv "$ac_tmp/config.h" "$ac_file" \ 128222adc0320Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 128237a0395d0Smrg fi 128247a0395d0Smrg else 128257366012aSmrg $as_echo "/* $configure_input */" \ 128262adc0320Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 128272adc0320Smrg || as_fn_error $? "could not create -" "$LINENO" 5 128287a0395d0Smrg fi 128297366012aSmrg# Compute "$ac_file"'s index in $config_headers. 128307366012aSmrg_am_arg="$ac_file" 128317a0395d0Smrg_am_stamp_count=1 128327a0395d0Smrgfor _am_header in $config_headers :; do 128337a0395d0Smrg case $_am_header in 128347a0395d0Smrg $_am_arg | $_am_arg:* ) 128357a0395d0Smrg break ;; 128367a0395d0Smrg * ) 128377a0395d0Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 128387a0395d0Smrg esac 128397a0395d0Smrgdone 128407a0395d0Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 128417a0395d0Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 128427a0395d0Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 128437a0395d0Smrg X"$_am_arg" : 'X\(//\)$' \| \ 128447a0395d0Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 128457366012aSmrg$as_echo X"$_am_arg" | 128467a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 128477a0395d0Smrg s//\1/ 128487a0395d0Smrg q 128497a0395d0Smrg } 128507a0395d0Smrg /^X\(\/\/\)[^/].*/{ 128517a0395d0Smrg s//\1/ 128527a0395d0Smrg q 128537a0395d0Smrg } 128547a0395d0Smrg /^X\(\/\/\)$/{ 128557a0395d0Smrg s//\1/ 128567a0395d0Smrg q 128577a0395d0Smrg } 128587a0395d0Smrg /^X\(\/\).*/{ 128597a0395d0Smrg s//\1/ 128607a0395d0Smrg q 128617a0395d0Smrg } 128627a0395d0Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 128637a0395d0Smrg ;; 128647a0395d0Smrg 128652adc0320Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 128667366012aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 128677a0395d0Smrg ;; 128687a0395d0Smrg esac 128697a0395d0Smrg 128707a0395d0Smrg 128717a0395d0Smrg case $ac_file$ac_mode in 128727366012aSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 128739a011757Smrg # Older Autoconf quotes --file arguments for eval, but not when files 128747366012aSmrg # are listed without --file. Let's play safe and only enable the eval 128757366012aSmrg # if we detect the quoting. 128766c3c2bceSmrg # TODO: see whether this extra hack can be removed once we start 128776c3c2bceSmrg # requiring Autoconf 2.70 or later. 128786c3c2bceSmrg case $CONFIG_FILES in #( 128796c3c2bceSmrg *\'*) : 128806c3c2bceSmrg eval set x "$CONFIG_FILES" ;; #( 128816c3c2bceSmrg *) : 128826c3c2bceSmrg set x $CONFIG_FILES ;; #( 128836c3c2bceSmrg *) : 128846c3c2bceSmrg ;; 128856c3c2bceSmrgesac 128867366012aSmrg shift 128876c3c2bceSmrg # Used to flag and report bootstrapping failures. 128886c3c2bceSmrg am_rc=0 128896c3c2bceSmrg for am_mf 128907366012aSmrg do 128917366012aSmrg # Strip MF so we end up with the name of the file. 128926c3c2bceSmrg am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 128936c3c2bceSmrg # Check whether this is an Automake generated Makefile which includes 128946c3c2bceSmrg # dependency-tracking related rules and includes. 128956c3c2bceSmrg # Grep'ing the whole file directly is not great: AIX grep has a line 128967366012aSmrg # limit of 2048, but all sed's we know have understand at least 4000. 128976c3c2bceSmrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 128986c3c2bceSmrg || continue 128996c3c2bceSmrg am_dirpart=`$as_dirname -- "$am_mf" || 129006c3c2bceSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 129016c3c2bceSmrg X"$am_mf" : 'X\(//\)[^/]' \| \ 129026c3c2bceSmrg X"$am_mf" : 'X\(//\)$' \| \ 129036c3c2bceSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 129046c3c2bceSmrg$as_echo X"$am_mf" | 129057a0395d0Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 129067a0395d0Smrg s//\1/ 129077a0395d0Smrg q 129087a0395d0Smrg } 129097a0395d0Smrg /^X\(\/\/\)[^/].*/{ 129107a0395d0Smrg s//\1/ 129117a0395d0Smrg q 129127a0395d0Smrg } 129137a0395d0Smrg /^X\(\/\/\)$/{ 129147a0395d0Smrg s//\1/ 129157a0395d0Smrg q 129167a0395d0Smrg } 129177a0395d0Smrg /^X\(\/\).*/{ 129187a0395d0Smrg s//\1/ 129197a0395d0Smrg q 129207a0395d0Smrg } 129217a0395d0Smrg s/.*/./; q'` 129226c3c2bceSmrg am_filepart=`$as_basename -- "$am_mf" || 129236c3c2bceSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 129246c3c2bceSmrg X"$am_mf" : 'X\(//\)$' \| \ 129256c3c2bceSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 129266c3c2bceSmrg$as_echo X/"$am_mf" | 129276c3c2bceSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 129287a0395d0Smrg s//\1/ 129297a0395d0Smrg q 129307a0395d0Smrg } 129316c3c2bceSmrg /^X\/\(\/\/\)$/{ 129327a0395d0Smrg s//\1/ 129337a0395d0Smrg q 129347a0395d0Smrg } 129356c3c2bceSmrg /^X\/\(\/\).*/{ 129367a0395d0Smrg s//\1/ 129377a0395d0Smrg q 129387a0395d0Smrg } 129397a0395d0Smrg s/.*/./; q'` 129406c3c2bceSmrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 129416c3c2bceSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 129426c3c2bceSmrg | $MAKE -f - am--depfiles" >&5 129436c3c2bceSmrg (cd "$am_dirpart" \ 129446c3c2bceSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 129456c3c2bceSmrg | $MAKE -f - am--depfiles) >&5 2>&5 129466c3c2bceSmrg ac_status=$? 129476c3c2bceSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 129486c3c2bceSmrg (exit $ac_status); } || am_rc=$? 129497a0395d0Smrg done 129506c3c2bceSmrg if test $am_rc -ne 0; then 129516c3c2bceSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 129526c3c2bceSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 129536c3c2bceSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 129540d22642bSmrg for automatic dependency tracking. If GNU make was not used, consider 129550d22642bSmrg re-running the configure script with MAKE=\"gmake\" (or whatever is 129560d22642bSmrg necessary). You can also try re-running configure with the 129576c3c2bceSmrg '--disable-dependency-tracking' option to at least be able to build 129586c3c2bceSmrg the package (albeit without support for automatic dependency tracking). 129596c3c2bceSmrgSee \`config.log' for more details" "$LINENO" 5; } 129606c3c2bceSmrg fi 129616c3c2bceSmrg { am_dirpart=; unset am_dirpart;} 129626c3c2bceSmrg { am_filepart=; unset am_filepart;} 129636c3c2bceSmrg { am_mf=; unset am_mf;} 129646c3c2bceSmrg { am_rc=; unset am_rc;} 129656c3c2bceSmrg rm -f conftest-deps.mk 129667366012aSmrg} 129677a0395d0Smrg ;; 129687a0395d0Smrg 129697a0395d0Smrg esac 129707a0395d0Smrgdone # for ac_tag 129717a0395d0Smrg 129727a0395d0Smrg 129732adc0320Smrgas_fn_exit 0 129747a0395d0Smrg_ACEOF 129757a0395d0Smrgac_clean_files=$ac_clean_files_save 129767a0395d0Smrg 129777366012aSmrgtest $ac_write_fail = 0 || 129782adc0320Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 129797366012aSmrg 129807a0395d0Smrg 129817a0395d0Smrg# configure is writing to config.log, and then calls config.status. 129827a0395d0Smrg# config.status does its own redirection, appending to config.log. 129837a0395d0Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 129847a0395d0Smrg# by configure, so config.status won't be able to write to it; its 129857a0395d0Smrg# output is simply discarded. So we exec the FD to /dev/null, 129867a0395d0Smrg# effectively closing config.log, so it can be properly (re)opened and 129877a0395d0Smrg# appended to by config.status. When coming back to configure, we 129887a0395d0Smrg# need to make the FD available again. 129897a0395d0Smrgif test "$no_create" != yes; then 129907a0395d0Smrg ac_cs_success=: 129917a0395d0Smrg ac_config_status_args= 129927a0395d0Smrg test "$silent" = yes && 129937a0395d0Smrg ac_config_status_args="$ac_config_status_args --quiet" 129947a0395d0Smrg exec 5>/dev/null 129957a0395d0Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 129967a0395d0Smrg exec 5>>config.log 129977a0395d0Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 129987a0395d0Smrg # would make configure fail if this is the last instruction. 129992adc0320Smrg $ac_cs_success || as_fn_exit 1 130007a0395d0Smrgfi 130017366012aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 130022adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 130037366012aSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 130047366012aSmrgfi 130057a0395d0Smrg 13006