configure revision c74b14bd
18b22bf3fSmrg#! /bin/sh 28b22bf3fSmrg# Guess values for system-dependent variables and create Makefiles. 3c74b14bdSmrg# Generated by GNU Autoconf 2.69 for xrdb 1.1.1. 48b22bf3fSmrg# 58b22bf3fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 68b22bf3fSmrg# 75bd32fd1Smrg# 8c74b14bdSmrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 95bd32fd1Smrg# 105bd32fd1Smrg# 118b22bf3fSmrg# This configure script is free software; the Free Software Foundation 128b22bf3fSmrg# gives unlimited permission to copy, distribute and modify it. 135bd32fd1Smrg## -------------------- ## 145bd32fd1Smrg## M4sh Initialization. ## 155bd32fd1Smrg## -------------------- ## 168b22bf3fSmrg 178b22bf3fSmrg# Be more Bourne compatible 188b22bf3fSmrgDUALCASE=1; export DUALCASE # for MKS sh 195bd32fd1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 208b22bf3fSmrg emulate sh 218b22bf3fSmrg NULLCMD=: 2296a81b41Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 238b22bf3fSmrg # is contrary to our usage. Disable this feature. 248b22bf3fSmrg alias -g '${1+"$@"}'='"$@"' 258b22bf3fSmrg setopt NO_GLOB_SUBST 268b22bf3fSmrgelse 275bd32fd1Smrg case `(set -o) 2>/dev/null` in #( 285bd32fd1Smrg *posix*) : 295bd32fd1Smrg set -o posix ;; #( 305bd32fd1Smrg *) : 315bd32fd1Smrg ;; 328b22bf3fSmrgesac 338b22bf3fSmrgfi 348b22bf3fSmrg 358b22bf3fSmrg 3696a81b41Smrgas_nl=' 3796a81b41Smrg' 3896a81b41Smrgexport as_nl 3996a81b41Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 4096a81b41Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4196a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4296a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 435bd32fd1Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 445bd32fd1Smrg# but without wasting forks for bash or zsh. 455bd32fd1Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 465bd32fd1Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 475bd32fd1Smrg as_echo='print -r --' 485bd32fd1Smrg as_echo_n='print -rn --' 495bd32fd1Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5096a81b41Smrg as_echo='printf %s\n' 5196a81b41Smrg as_echo_n='printf %s' 5296a81b41Smrgelse 5396a81b41Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5496a81b41Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5596a81b41Smrg as_echo_n='/usr/ucb/echo -n' 568b22bf3fSmrg else 5796a81b41Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5896a81b41Smrg as_echo_n_body='eval 5996a81b41Smrg arg=$1; 605bd32fd1Smrg case $arg in #( 6196a81b41Smrg *"$as_nl"*) 6296a81b41Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 6396a81b41Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6496a81b41Smrg esac; 6596a81b41Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6696a81b41Smrg ' 6796a81b41Smrg export as_echo_n_body 6896a81b41Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 698b22bf3fSmrg fi 7096a81b41Smrg export as_echo_body 7196a81b41Smrg as_echo='sh -c $as_echo_body as_echo' 7296a81b41Smrgfi 7396a81b41Smrg 7496a81b41Smrg# The user is always right. 7596a81b41Smrgif test "${PATH_SEPARATOR+set}" != set; then 7696a81b41Smrg PATH_SEPARATOR=: 7796a81b41Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7896a81b41Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7996a81b41Smrg PATH_SEPARATOR=';' 8096a81b41Smrg } 818b22bf3fSmrgfi 828b22bf3fSmrg 838b22bf3fSmrg 848b22bf3fSmrg# IFS 858b22bf3fSmrg# We need space, tab and new line, in precisely that order. Quoting is 868b22bf3fSmrg# there to prevent editors from complaining about space-tab. 878b22bf3fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 888b22bf3fSmrg# splitting by setting IFS to empty value.) 898b22bf3fSmrgIFS=" "" $as_nl" 908b22bf3fSmrg 918b22bf3fSmrg# Find who we are. Look in the path if we contain no directory separator. 925bd32fd1Smrgas_myself= 935bd32fd1Smrgcase $0 in #(( 948b22bf3fSmrg *[\\/]* ) as_myself=$0 ;; 958b22bf3fSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 968b22bf3fSmrgfor as_dir in $PATH 978b22bf3fSmrgdo 988b22bf3fSmrg IFS=$as_save_IFS 998b22bf3fSmrg test -z "$as_dir" && as_dir=. 1005bd32fd1Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1015bd32fd1Smrg done 1028b22bf3fSmrgIFS=$as_save_IFS 1038b22bf3fSmrg 1048b22bf3fSmrg ;; 1058b22bf3fSmrgesac 1068b22bf3fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1078b22bf3fSmrg# in which case we are not to be found in the path. 1088b22bf3fSmrgif test "x$as_myself" = x; then 1098b22bf3fSmrg as_myself=$0 1108b22bf3fSmrgfi 1118b22bf3fSmrgif test ! -f "$as_myself"; then 11296a81b41Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1135bd32fd1Smrg exit 1 1148b22bf3fSmrgfi 1158b22bf3fSmrg 1165bd32fd1Smrg# Unset variables that we do not need and which cause bugs (e.g. in 1175bd32fd1Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1185bd32fd1Smrg# suppresses any "Segmentation fault" message there. '((' could 1195bd32fd1Smrg# trigger a bug in pdksh 5.2.14. 1205bd32fd1Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1215bd32fd1Smrgdo eval test x\${$as_var+set} = xset \ 1225bd32fd1Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1238b22bf3fSmrgdone 1248b22bf3fSmrgPS1='$ ' 1258b22bf3fSmrgPS2='> ' 1268b22bf3fSmrgPS4='+ ' 1278b22bf3fSmrg 1288b22bf3fSmrg# NLS nuisances. 12996a81b41SmrgLC_ALL=C 13096a81b41Smrgexport LC_ALL 13196a81b41SmrgLANGUAGE=C 13296a81b41Smrgexport LANGUAGE 1338b22bf3fSmrg 1345bd32fd1Smrg# CDPATH. 1355bd32fd1Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1365bd32fd1Smrg 137c74b14bdSmrg# Use a proper internal environment variable to ensure we don't fall 138c74b14bdSmrg # into an infinite loop, continuously re-executing ourselves. 139c74b14bdSmrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140c74b14bdSmrg _as_can_reexec=no; export _as_can_reexec; 141c74b14bdSmrg # We cannot yet assume a decent shell, so we have to provide a 142c74b14bdSmrg# neutralization value for shells without unset; and this also 143c74b14bdSmrg# works around shells that cannot unset nonexistent variables. 144c74b14bdSmrg# Preserve -v and -x to the replacement shell. 145c74b14bdSmrgBASH_ENV=/dev/null 146c74b14bdSmrgENV=/dev/null 147c74b14bdSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148c74b14bdSmrgcase $- in # (((( 149c74b14bdSmrg *v*x* | *x*v* ) as_opts=-vx ;; 150c74b14bdSmrg *v* ) as_opts=-v ;; 151c74b14bdSmrg *x* ) as_opts=-x ;; 152c74b14bdSmrg * ) as_opts= ;; 153c74b14bdSmrgesac 154c74b14bdSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155c74b14bdSmrg# Admittedly, this is quite paranoid, since all the known shells bail 156c74b14bdSmrg# out after a failed `exec'. 157c74b14bdSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158c74b14bdSmrgas_fn_exit 255 159c74b14bdSmrg fi 160c74b14bdSmrg # We don't want this to propagate to other subprocesses. 161c74b14bdSmrg { _as_can_reexec=; unset _as_can_reexec;} 1625bd32fd1Smrgif test "x$CONFIG_SHELL" = x; then 1635bd32fd1Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 1645bd32fd1Smrg emulate sh 1655bd32fd1Smrg NULLCMD=: 1665bd32fd1Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1675bd32fd1Smrg # is contrary to our usage. Disable this feature. 1685bd32fd1Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1695bd32fd1Smrg setopt NO_GLOB_SUBST 1705bd32fd1Smrgelse 1715bd32fd1Smrg case \`(set -o) 2>/dev/null\` in #( 1725bd32fd1Smrg *posix*) : 1735bd32fd1Smrg set -o posix ;; #( 1745bd32fd1Smrg *) : 1755bd32fd1Smrg ;; 1765bd32fd1Smrgesac 1775bd32fd1Smrgfi 1785bd32fd1Smrg" 1795bd32fd1Smrg as_required="as_fn_return () { (exit \$1); } 1805bd32fd1Smrgas_fn_success () { as_fn_return 0; } 1815bd32fd1Smrgas_fn_failure () { as_fn_return 1; } 1825bd32fd1Smrgas_fn_ret_success () { return 0; } 1835bd32fd1Smrgas_fn_ret_failure () { return 1; } 1845bd32fd1Smrg 1855bd32fd1Smrgexitcode=0 1865bd32fd1Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1875bd32fd1Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1885bd32fd1Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1895bd32fd1Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1905bd32fd1Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1915bd32fd1Smrg 1925bd32fd1Smrgelse 1935bd32fd1Smrg exitcode=1; echo positional parameters were not saved. 1945bd32fd1Smrgfi 195c74b14bdSmrgtest x\$exitcode = x0 || exit 1 196c74b14bdSmrgtest -x / || exit 1" 1975bd32fd1Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1985bd32fd1Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1995bd32fd1Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 2005bd32fd1Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 2015bd32fd1Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 2025bd32fd1Smrg if (eval "$as_required") 2>/dev/null; then : 2035bd32fd1Smrg as_have_required=yes 2045bd32fd1Smrgelse 2055bd32fd1Smrg as_have_required=no 2065bd32fd1Smrgfi 2075bd32fd1Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 2085bd32fd1Smrg 2095bd32fd1Smrgelse 2105bd32fd1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2115bd32fd1Smrgas_found=false 2125bd32fd1Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2135bd32fd1Smrgdo 2145bd32fd1Smrg IFS=$as_save_IFS 2155bd32fd1Smrg test -z "$as_dir" && as_dir=. 2165bd32fd1Smrg as_found=: 2175bd32fd1Smrg case $as_dir in #( 2185bd32fd1Smrg /*) 2195bd32fd1Smrg for as_base in sh bash ksh sh5; do 2205bd32fd1Smrg # Try only shells that exist, to save several forks. 2215bd32fd1Smrg as_shell=$as_dir/$as_base 2225bd32fd1Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2235bd32fd1Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 2245bd32fd1Smrg CONFIG_SHELL=$as_shell as_have_required=yes 2255bd32fd1Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 2265bd32fd1Smrg break 2 2275bd32fd1Smrgfi 2285bd32fd1Smrgfi 2295bd32fd1Smrg done;; 2305bd32fd1Smrg esac 2315bd32fd1Smrg as_found=false 2325bd32fd1Smrgdone 2335bd32fd1Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2345bd32fd1Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 2355bd32fd1Smrg CONFIG_SHELL=$SHELL as_have_required=yes 2365bd32fd1Smrgfi; } 2375bd32fd1SmrgIFS=$as_save_IFS 2385bd32fd1Smrg 2395bd32fd1Smrg 2405bd32fd1Smrg if test "x$CONFIG_SHELL" != x; then : 241c74b14bdSmrg export CONFIG_SHELL 242c74b14bdSmrg # We cannot yet assume a decent shell, so we have to provide a 243c74b14bdSmrg# neutralization value for shells without unset; and this also 244c74b14bdSmrg# works around shells that cannot unset nonexistent variables. 245c74b14bdSmrg# Preserve -v and -x to the replacement shell. 246c74b14bdSmrgBASH_ENV=/dev/null 247c74b14bdSmrgENV=/dev/null 248c74b14bdSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249c74b14bdSmrgcase $- in # (((( 250c74b14bdSmrg *v*x* | *x*v* ) as_opts=-vx ;; 251c74b14bdSmrg *v* ) as_opts=-v ;; 252c74b14bdSmrg *x* ) as_opts=-x ;; 253c74b14bdSmrg * ) as_opts= ;; 254c74b14bdSmrgesac 255c74b14bdSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256c74b14bdSmrg# Admittedly, this is quite paranoid, since all the known shells bail 257c74b14bdSmrg# out after a failed `exec'. 258c74b14bdSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259c74b14bdSmrgexit 255 2605bd32fd1Smrgfi 2615bd32fd1Smrg 2625bd32fd1Smrg if test x$as_have_required = xno; then : 2635bd32fd1Smrg $as_echo "$0: This script requires a shell more modern than all" 2645bd32fd1Smrg $as_echo "$0: the shells that I found on your system." 2655bd32fd1Smrg if test x${ZSH_VERSION+set} = xset ; then 2665bd32fd1Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2675bd32fd1Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2685bd32fd1Smrg else 2695bd32fd1Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 2705bd32fd1Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 2715bd32fd1Smrg$0: about your system, including any error possibly output 2725bd32fd1Smrg$0: before this message. Then install a modern shell, or 2735bd32fd1Smrg$0: manually run the script under such a shell if you do 2745bd32fd1Smrg$0: have one." 2755bd32fd1Smrg fi 2765bd32fd1Smrg exit 1 2775bd32fd1Smrgfi 2785bd32fd1Smrgfi 2795bd32fd1Smrgfi 2805bd32fd1SmrgSHELL=${CONFIG_SHELL-/bin/sh} 2815bd32fd1Smrgexport SHELL 2825bd32fd1Smrg# Unset more variables known to interfere with behavior of common tools. 2835bd32fd1SmrgCLICOLOR_FORCE= GREP_OPTIONS= 2845bd32fd1Smrgunset CLICOLOR_FORCE GREP_OPTIONS 2855bd32fd1Smrg 2865bd32fd1Smrg## --------------------- ## 2875bd32fd1Smrg## M4sh Shell Functions. ## 2885bd32fd1Smrg## --------------------- ## 2895bd32fd1Smrg# as_fn_unset VAR 2905bd32fd1Smrg# --------------- 2915bd32fd1Smrg# Portably unset VAR. 2925bd32fd1Smrgas_fn_unset () 2935bd32fd1Smrg{ 2945bd32fd1Smrg { eval $1=; unset $1;} 2955bd32fd1Smrg} 2965bd32fd1Smrgas_unset=as_fn_unset 2975bd32fd1Smrg 2985bd32fd1Smrg# as_fn_set_status STATUS 2995bd32fd1Smrg# ----------------------- 3005bd32fd1Smrg# Set $? to STATUS, without forking. 3015bd32fd1Smrgas_fn_set_status () 3025bd32fd1Smrg{ 3035bd32fd1Smrg return $1 3045bd32fd1Smrg} # as_fn_set_status 3055bd32fd1Smrg 3065bd32fd1Smrg# as_fn_exit STATUS 3075bd32fd1Smrg# ----------------- 3085bd32fd1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3095bd32fd1Smrgas_fn_exit () 3105bd32fd1Smrg{ 3115bd32fd1Smrg set +e 3125bd32fd1Smrg as_fn_set_status $1 3135bd32fd1Smrg exit $1 3145bd32fd1Smrg} # as_fn_exit 3155bd32fd1Smrg 3165bd32fd1Smrg# as_fn_mkdir_p 3175bd32fd1Smrg# ------------- 3185bd32fd1Smrg# Create "$as_dir" as a directory, including parents if necessary. 3195bd32fd1Smrgas_fn_mkdir_p () 3205bd32fd1Smrg{ 3215bd32fd1Smrg 3225bd32fd1Smrg case $as_dir in #( 3235bd32fd1Smrg -*) as_dir=./$as_dir;; 3245bd32fd1Smrg esac 3255bd32fd1Smrg test -d "$as_dir" || eval $as_mkdir_p || { 3265bd32fd1Smrg as_dirs= 3275bd32fd1Smrg while :; do 3285bd32fd1Smrg case $as_dir in #( 3295bd32fd1Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3305bd32fd1Smrg *) as_qdir=$as_dir;; 3315bd32fd1Smrg esac 3325bd32fd1Smrg as_dirs="'$as_qdir' $as_dirs" 3335bd32fd1Smrg as_dir=`$as_dirname -- "$as_dir" || 3345bd32fd1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3355bd32fd1Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3365bd32fd1Smrg X"$as_dir" : 'X\(//\)$' \| \ 3375bd32fd1Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3385bd32fd1Smrg$as_echo X"$as_dir" | 3395bd32fd1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3405bd32fd1Smrg s//\1/ 3415bd32fd1Smrg q 3425bd32fd1Smrg } 3435bd32fd1Smrg /^X\(\/\/\)[^/].*/{ 3445bd32fd1Smrg s//\1/ 3455bd32fd1Smrg q 3465bd32fd1Smrg } 3475bd32fd1Smrg /^X\(\/\/\)$/{ 3485bd32fd1Smrg s//\1/ 3495bd32fd1Smrg q 3505bd32fd1Smrg } 3515bd32fd1Smrg /^X\(\/\).*/{ 3525bd32fd1Smrg s//\1/ 3535bd32fd1Smrg q 3545bd32fd1Smrg } 3555bd32fd1Smrg s/.*/./; q'` 3565bd32fd1Smrg test -d "$as_dir" && break 3575bd32fd1Smrg done 3585bd32fd1Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3595bd32fd1Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3605bd32fd1Smrg 3615bd32fd1Smrg 3625bd32fd1Smrg} # as_fn_mkdir_p 363c74b14bdSmrg 364c74b14bdSmrg# as_fn_executable_p FILE 365c74b14bdSmrg# ----------------------- 366c74b14bdSmrg# Test if FILE is an executable regular file. 367c74b14bdSmrgas_fn_executable_p () 368c74b14bdSmrg{ 369c74b14bdSmrg test -f "$1" && test -x "$1" 370c74b14bdSmrg} # as_fn_executable_p 3715bd32fd1Smrg# as_fn_append VAR VALUE 3725bd32fd1Smrg# ---------------------- 3735bd32fd1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3745bd32fd1Smrg# advantage of any shell optimizations that allow amortized linear growth over 3755bd32fd1Smrg# repeated appends, instead of the typical quadratic growth present in naive 3765bd32fd1Smrg# implementations. 3775bd32fd1Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3785bd32fd1Smrg eval 'as_fn_append () 3795bd32fd1Smrg { 3805bd32fd1Smrg eval $1+=\$2 3815bd32fd1Smrg }' 3825bd32fd1Smrgelse 3835bd32fd1Smrg as_fn_append () 3845bd32fd1Smrg { 3855bd32fd1Smrg eval $1=\$$1\$2 3865bd32fd1Smrg } 3875bd32fd1Smrgfi # as_fn_append 3885bd32fd1Smrg 3895bd32fd1Smrg# as_fn_arith ARG... 3905bd32fd1Smrg# ------------------ 3915bd32fd1Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 3925bd32fd1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 3935bd32fd1Smrg# must be portable across $(()) and expr. 3945bd32fd1Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3955bd32fd1Smrg eval 'as_fn_arith () 3965bd32fd1Smrg { 3975bd32fd1Smrg as_val=$(( $* )) 3985bd32fd1Smrg }' 3995bd32fd1Smrgelse 4005bd32fd1Smrg as_fn_arith () 4015bd32fd1Smrg { 4025bd32fd1Smrg as_val=`expr "$@" || test $? -eq 1` 4035bd32fd1Smrg } 4045bd32fd1Smrgfi # as_fn_arith 4055bd32fd1Smrg 4065bd32fd1Smrg 4075bd32fd1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 4085bd32fd1Smrg# ---------------------------------------- 4095bd32fd1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4105bd32fd1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4115bd32fd1Smrg# script with STATUS, using 1 if that was 0. 4125bd32fd1Smrgas_fn_error () 4135bd32fd1Smrg{ 4145bd32fd1Smrg as_status=$1; test $as_status -eq 0 && as_status=1 4155bd32fd1Smrg if test "$4"; then 4165bd32fd1Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4175bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4185bd32fd1Smrg fi 4195bd32fd1Smrg $as_echo "$as_me: error: $2" >&2 4205bd32fd1Smrg as_fn_exit $as_status 4215bd32fd1Smrg} # as_fn_error 4225bd32fd1Smrg 4238b22bf3fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 4248b22bf3fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 4258b22bf3fSmrg as_expr=expr 4268b22bf3fSmrgelse 4278b22bf3fSmrg as_expr=false 4288b22bf3fSmrgfi 4298b22bf3fSmrg 4308b22bf3fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4318b22bf3fSmrg as_basename=basename 4328b22bf3fSmrgelse 4338b22bf3fSmrg as_basename=false 4348b22bf3fSmrgfi 4358b22bf3fSmrg 4365bd32fd1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4375bd32fd1Smrg as_dirname=dirname 4385bd32fd1Smrgelse 4395bd32fd1Smrg as_dirname=false 4405bd32fd1Smrgfi 4418b22bf3fSmrg 4428b22bf3fSmrgas_me=`$as_basename -- "$0" || 4438b22bf3fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4448b22bf3fSmrg X"$0" : 'X\(//\)$' \| \ 4458b22bf3fSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 44696a81b41Smrg$as_echo X/"$0" | 4478b22bf3fSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4488b22bf3fSmrg s//\1/ 4498b22bf3fSmrg q 4508b22bf3fSmrg } 4518b22bf3fSmrg /^X\/\(\/\/\)$/{ 4528b22bf3fSmrg s//\1/ 4538b22bf3fSmrg q 4548b22bf3fSmrg } 4558b22bf3fSmrg /^X\/\(\/\).*/{ 4568b22bf3fSmrg s//\1/ 4578b22bf3fSmrg q 4588b22bf3fSmrg } 4598b22bf3fSmrg s/.*/./; q'` 4608b22bf3fSmrg 4615bd32fd1Smrg# Avoid depending upon Character Ranges. 4625bd32fd1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4635bd32fd1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4645bd32fd1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4655bd32fd1Smrgas_cr_digits='0123456789' 4665bd32fd1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4678b22bf3fSmrg 4688b22bf3fSmrg 4695bd32fd1Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4705bd32fd1Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4715bd32fd1Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4725bd32fd1Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4735bd32fd1Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4745bd32fd1Smrg sed -n ' 4755bd32fd1Smrg p 4765bd32fd1Smrg /[$]LINENO/= 4775bd32fd1Smrg ' <$as_myself | 4785bd32fd1Smrg sed ' 4795bd32fd1Smrg s/[$]LINENO.*/&-/ 4805bd32fd1Smrg t lineno 4815bd32fd1Smrg b 4825bd32fd1Smrg :lineno 4835bd32fd1Smrg N 4845bd32fd1Smrg :loop 4855bd32fd1Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4865bd32fd1Smrg t loop 4875bd32fd1Smrg s/-\n.*// 4885bd32fd1Smrg ' >$as_me.lineno && 4895bd32fd1Smrg chmod +x "$as_me.lineno" || 4905bd32fd1Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4918b22bf3fSmrg 492c74b14bdSmrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493c74b14bdSmrg # already done that, so ensure we don't try to do so again and fall 494c74b14bdSmrg # in an infinite loop. This has already happened in practice. 495c74b14bdSmrg _as_can_reexec=no; export _as_can_reexec 4965bd32fd1Smrg # Don't try to exec as it changes $[0], causing all sort of problems 4975bd32fd1Smrg # (the dirname of $[0] is not the place where we might find the 4985bd32fd1Smrg # original and so on. Autoconf is especially sensitive to this). 4995bd32fd1Smrg . "./$as_me.lineno" 5005bd32fd1Smrg # Exit status is that of the last command. 5015bd32fd1Smrg exit 5028b22bf3fSmrg} 5038b22bf3fSmrg 5045bd32fd1SmrgECHO_C= ECHO_N= ECHO_T= 5055bd32fd1Smrgcase `echo -n x` in #((((( 5065bd32fd1Smrg-n*) 5075bd32fd1Smrg case `echo 'xy\c'` in 5085bd32fd1Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5095bd32fd1Smrg xy) ECHO_C='\c';; 5105bd32fd1Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5115bd32fd1Smrg ECHO_T=' ';; 5125bd32fd1Smrg esac;; 5135bd32fd1Smrg*) 5145bd32fd1Smrg ECHO_N='-n';; 5155bd32fd1Smrgesac 5168b22bf3fSmrg 5175bd32fd1Smrgrm -f conf$$ conf$$.exe conf$$.file 5185bd32fd1Smrgif test -d conf$$.dir; then 5195bd32fd1Smrg rm -f conf$$.dir/conf$$.file 5205bd32fd1Smrgelse 5215bd32fd1Smrg rm -f conf$$.dir 5225bd32fd1Smrg mkdir conf$$.dir 2>/dev/null 5238b22bf3fSmrgfi 5245bd32fd1Smrgif (echo >conf$$.file) 2>/dev/null; then 5255bd32fd1Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5265bd32fd1Smrg as_ln_s='ln -s' 5275bd32fd1Smrg # ... but there are two gotchas: 5285bd32fd1Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5295bd32fd1Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530c74b14bdSmrg # In both cases, we have to default to `cp -pR'. 5315bd32fd1Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532c74b14bdSmrg as_ln_s='cp -pR' 5335bd32fd1Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5345bd32fd1Smrg as_ln_s=ln 5355bd32fd1Smrg else 536c74b14bdSmrg as_ln_s='cp -pR' 5375bd32fd1Smrg fi 5388b22bf3fSmrgelse 539c74b14bdSmrg as_ln_s='cp -pR' 5408b22bf3fSmrgfi 5415bd32fd1Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5425bd32fd1Smrgrmdir conf$$.dir 2>/dev/null 5438b22bf3fSmrg 5445bd32fd1Smrgif mkdir -p . 2>/dev/null; then 5455bd32fd1Smrg as_mkdir_p='mkdir -p "$as_dir"' 5465bd32fd1Smrgelse 5475bd32fd1Smrg test -d ./-p && rmdir ./-p 5485bd32fd1Smrg as_mkdir_p=false 5498b22bf3fSmrgfi 5508b22bf3fSmrg 551c74b14bdSmrgas_test_x='test -x' 552c74b14bdSmrgas_executable_p=as_fn_executable_p 5538b22bf3fSmrg 5545bd32fd1Smrg# Sed expression to map a string onto a valid CPP name. 5555bd32fd1Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5568b22bf3fSmrg 5575bd32fd1Smrg# Sed expression to map a string onto a valid variable name. 5585bd32fd1Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5598b22bf3fSmrg 5608b22bf3fSmrg 5615bd32fd1Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5625bd32fd1Smrgexec 6>&1 5638b22bf3fSmrg 5648b22bf3fSmrg# Name of the host. 5655bd32fd1Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5668b22bf3fSmrg# so uname gets run too. 5678b22bf3fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5688b22bf3fSmrg 5698b22bf3fSmrg# 5708b22bf3fSmrg# Initializations. 5718b22bf3fSmrg# 5728b22bf3fSmrgac_default_prefix=/usr/local 5738b22bf3fSmrgac_clean_files= 5748b22bf3fSmrgac_config_libobj_dir=. 5758b22bf3fSmrgLIBOBJS= 5768b22bf3fSmrgcross_compiling=no 5778b22bf3fSmrgsubdirs= 5788b22bf3fSmrgMFLAGS= 5798b22bf3fSmrgMAKEFLAGS= 5808b22bf3fSmrg 5818b22bf3fSmrg# Identity of this package. 5828b22bf3fSmrgPACKAGE_NAME='xrdb' 5838b22bf3fSmrgPACKAGE_TARNAME='xrdb' 584c74b14bdSmrgPACKAGE_VERSION='1.1.1' 585c74b14bdSmrgPACKAGE_STRING='xrdb 1.1.1' 5868b22bf3fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 5875bd32fd1SmrgPACKAGE_URL='' 5888b22bf3fSmrg 5895bd32fd1Smrgac_unique_file="Makefile.am" 5908b22bf3fSmrg# Factoring default headers for most tests. 5918b22bf3fSmrgac_includes_default="\ 5928b22bf3fSmrg#include <stdio.h> 5938b22bf3fSmrg#ifdef HAVE_SYS_TYPES_H 5948b22bf3fSmrg# include <sys/types.h> 5958b22bf3fSmrg#endif 5968b22bf3fSmrg#ifdef HAVE_SYS_STAT_H 5978b22bf3fSmrg# include <sys/stat.h> 5988b22bf3fSmrg#endif 5998b22bf3fSmrg#ifdef STDC_HEADERS 6008b22bf3fSmrg# include <stdlib.h> 6018b22bf3fSmrg# include <stddef.h> 6028b22bf3fSmrg#else 6038b22bf3fSmrg# ifdef HAVE_STDLIB_H 6048b22bf3fSmrg# include <stdlib.h> 6058b22bf3fSmrg# endif 6068b22bf3fSmrg#endif 6078b22bf3fSmrg#ifdef HAVE_STRING_H 6088b22bf3fSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 6098b22bf3fSmrg# include <memory.h> 6108b22bf3fSmrg# endif 6118b22bf3fSmrg# include <string.h> 6128b22bf3fSmrg#endif 6138b22bf3fSmrg#ifdef HAVE_STRINGS_H 6148b22bf3fSmrg# include <strings.h> 6158b22bf3fSmrg#endif 6168b22bf3fSmrg#ifdef HAVE_INTTYPES_H 6178b22bf3fSmrg# include <inttypes.h> 6188b22bf3fSmrg#endif 6198b22bf3fSmrg#ifdef HAVE_STDINT_H 6208b22bf3fSmrg# include <stdint.h> 6218b22bf3fSmrg#endif 6228b22bf3fSmrg#ifdef HAVE_UNISTD_H 6238b22bf3fSmrg# include <unistd.h> 6248b22bf3fSmrg#endif" 6258b22bf3fSmrg 62696a81b41Smrgac_subst_vars='am__EXEEXT_FALSE 62796a81b41Smrgam__EXEEXT_TRUE 62896a81b41SmrgLTLIBOBJS 62996a81b41SmrgLIBOBJS 6308b22bf3fSmrgXRDB_LIBS 63196a81b41SmrgXRDB_CFLAGS 63296a81b41SmrgCPP_PATH 6335bd32fd1SmrgMAN_SUBSTS 6345bd32fd1SmrgXORG_MAN_PAGE 6358b22bf3fSmrgADMIN_MAN_DIR 63696a81b41SmrgDRIVER_MAN_DIR 63796a81b41SmrgMISC_MAN_DIR 63896a81b41SmrgFILE_MAN_DIR 63996a81b41SmrgLIB_MAN_DIR 64096a81b41SmrgAPP_MAN_DIR 64196a81b41SmrgADMIN_MAN_SUFFIX 64296a81b41SmrgDRIVER_MAN_SUFFIX 64396a81b41SmrgMISC_MAN_SUFFIX 64496a81b41SmrgFILE_MAN_SUFFIX 64596a81b41SmrgLIB_MAN_SUFFIX 64696a81b41SmrgAPP_MAN_SUFFIX 6475bd32fd1SmrgSED 64896a81b41Smrghost_os 64996a81b41Smrghost_vendor 65096a81b41Smrghost_cpu 65196a81b41Smrghost 65296a81b41Smrgbuild_os 65396a81b41Smrgbuild_vendor 65496a81b41Smrgbuild_cpu 65596a81b41Smrgbuild 6565bd32fd1SmrgINSTALL_CMD 657c74b14bdSmrgPKG_CONFIG_LIBDIR 658c74b14bdSmrgPKG_CONFIG_PATH 6595bd32fd1SmrgPKG_CONFIG 66096a81b41SmrgCHANGELOG_CMD 661f126e068SmrgSTRICT_CFLAGS 66296a81b41SmrgCWARNFLAGS 663f126e068SmrgBASE_CFLAGS 664f126e068SmrgAM_BACKSLASH 665f126e068SmrgAM_DEFAULT_VERBOSITY 666f126e068SmrgAM_DEFAULT_V 667f126e068SmrgAM_V 66896a81b41Smrgam__fastdepCC_FALSE 66996a81b41Smrgam__fastdepCC_TRUE 67096a81b41SmrgCCDEPMODE 671f126e068Smrgam__nodep 67296a81b41SmrgAMDEPBACKSLASH 67396a81b41SmrgAMDEP_FALSE 67496a81b41SmrgAMDEP_TRUE 67596a81b41Smrgam__quote 67696a81b41Smrgam__include 67796a81b41SmrgDEPDIR 67896a81b41Smrgam__untar 67996a81b41Smrgam__tar 68096a81b41SmrgAMTAR 68196a81b41Smrgam__leading_dot 68296a81b41SmrgSET_MAKE 68396a81b41SmrgAWK 68496a81b41Smrgmkdir_p 68596a81b41SmrgMKDIR_P 68696a81b41SmrgINSTALL_STRIP_PROGRAM 68796a81b41SmrgSTRIP 68896a81b41Smrginstall_sh 68996a81b41SmrgMAKEINFO 69096a81b41SmrgAUTOHEADER 69196a81b41SmrgAUTOMAKE 69296a81b41SmrgAUTOCONF 69396a81b41SmrgACLOCAL 69496a81b41SmrgVERSION 69596a81b41SmrgPACKAGE 69696a81b41SmrgCYGPATH_W 69796a81b41Smrgam__isrc 69896a81b41SmrgINSTALL_DATA 69996a81b41SmrgINSTALL_SCRIPT 70096a81b41SmrgINSTALL_PROGRAM 701d13010c3SmrgEGREP 702d13010c3SmrgGREP 703d13010c3SmrgCPP 704d13010c3SmrgOBJEXT 705d13010c3SmrgEXEEXT 706d13010c3Smrgac_ct_CC 707d13010c3SmrgCPPFLAGS 708d13010c3SmrgLDFLAGS 709d13010c3SmrgCFLAGS 710d13010c3SmrgCC 71196a81b41Smrgtarget_alias 71296a81b41Smrghost_alias 71396a81b41Smrgbuild_alias 71496a81b41SmrgLIBS 71596a81b41SmrgECHO_T 71696a81b41SmrgECHO_N 71796a81b41SmrgECHO_C 71896a81b41SmrgDEFS 71996a81b41Smrgmandir 72096a81b41Smrglocaledir 72196a81b41Smrglibdir 72296a81b41Smrgpsdir 72396a81b41Smrgpdfdir 72496a81b41Smrgdvidir 72596a81b41Smrghtmldir 72696a81b41Smrginfodir 72796a81b41Smrgdocdir 72896a81b41Smrgoldincludedir 72996a81b41Smrgincludedir 73096a81b41Smrglocalstatedir 73196a81b41Smrgsharedstatedir 73296a81b41Smrgsysconfdir 73396a81b41Smrgdatadir 73496a81b41Smrgdatarootdir 73596a81b41Smrglibexecdir 73696a81b41Smrgsbindir 73796a81b41Smrgbindir 73896a81b41Smrgprogram_transform_name 73996a81b41Smrgprefix 74096a81b41Smrgexec_prefix 7415bd32fd1SmrgPACKAGE_URL 74296a81b41SmrgPACKAGE_BUGREPORT 74396a81b41SmrgPACKAGE_STRING 74496a81b41SmrgPACKAGE_VERSION 74596a81b41SmrgPACKAGE_TARNAME 74696a81b41SmrgPACKAGE_NAME 74796a81b41SmrgPATH_SEPARATOR 74896a81b41SmrgSHELL' 7498b22bf3fSmrgac_subst_files='' 75096a81b41Smrgac_user_opts=' 75196a81b41Smrgenable_option_checking 75296a81b41Smrgenable_dependency_tracking 753f126e068Smrgenable_silent_rules 754f126e068Smrgenable_selective_werror 75596a81b41Smrgenable_strict_compilation 75696a81b41Smrgwith_cpp 75796a81b41Smrg' 7588b22bf3fSmrg ac_precious_vars='build_alias 7598b22bf3fSmrghost_alias 7608b22bf3fSmrgtarget_alias 7618b22bf3fSmrgCC 7628b22bf3fSmrgCFLAGS 7638b22bf3fSmrgLDFLAGS 7648b22bf3fSmrgLIBS 7658b22bf3fSmrgCPPFLAGS 7668b22bf3fSmrgCPP 7678b22bf3fSmrgPKG_CONFIG 768c74b14bdSmrgPKG_CONFIG_PATH 769c74b14bdSmrgPKG_CONFIG_LIBDIR 7708b22bf3fSmrgXRDB_CFLAGS 7718b22bf3fSmrgXRDB_LIBS' 7728b22bf3fSmrg 7738b22bf3fSmrg 7748b22bf3fSmrg# Initialize some variables set by options. 7758b22bf3fSmrgac_init_help= 7768b22bf3fSmrgac_init_version=false 77796a81b41Smrgac_unrecognized_opts= 77896a81b41Smrgac_unrecognized_sep= 7798b22bf3fSmrg# The variables have the same names as the options, with 7808b22bf3fSmrg# dashes changed to underlines. 7818b22bf3fSmrgcache_file=/dev/null 7828b22bf3fSmrgexec_prefix=NONE 7838b22bf3fSmrgno_create= 7848b22bf3fSmrgno_recursion= 7858b22bf3fSmrgprefix=NONE 7868b22bf3fSmrgprogram_prefix=NONE 7878b22bf3fSmrgprogram_suffix=NONE 7888b22bf3fSmrgprogram_transform_name=s,x,x, 7898b22bf3fSmrgsilent= 7908b22bf3fSmrgsite= 7918b22bf3fSmrgsrcdir= 7928b22bf3fSmrgverbose= 7938b22bf3fSmrgx_includes=NONE 7948b22bf3fSmrgx_libraries=NONE 7958b22bf3fSmrg 7968b22bf3fSmrg# Installation directory options. 7978b22bf3fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 7988b22bf3fSmrg# and all the variables that are supposed to be based on exec_prefix 7998b22bf3fSmrg# by default will actually change. 8008b22bf3fSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 8018b22bf3fSmrg# (The list follows the same order as the GNU Coding Standards.) 8028b22bf3fSmrgbindir='${exec_prefix}/bin' 8038b22bf3fSmrgsbindir='${exec_prefix}/sbin' 8048b22bf3fSmrglibexecdir='${exec_prefix}/libexec' 8058b22bf3fSmrgdatarootdir='${prefix}/share' 8068b22bf3fSmrgdatadir='${datarootdir}' 8078b22bf3fSmrgsysconfdir='${prefix}/etc' 8088b22bf3fSmrgsharedstatedir='${prefix}/com' 8098b22bf3fSmrglocalstatedir='${prefix}/var' 8108b22bf3fSmrgincludedir='${prefix}/include' 8118b22bf3fSmrgoldincludedir='/usr/include' 8128b22bf3fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 8138b22bf3fSmrginfodir='${datarootdir}/info' 8148b22bf3fSmrghtmldir='${docdir}' 8158b22bf3fSmrgdvidir='${docdir}' 8168b22bf3fSmrgpdfdir='${docdir}' 8178b22bf3fSmrgpsdir='${docdir}' 8188b22bf3fSmrglibdir='${exec_prefix}/lib' 8198b22bf3fSmrglocaledir='${datarootdir}/locale' 8208b22bf3fSmrgmandir='${datarootdir}/man' 8218b22bf3fSmrg 8228b22bf3fSmrgac_prev= 8238b22bf3fSmrgac_dashdash= 8248b22bf3fSmrgfor ac_option 8258b22bf3fSmrgdo 8268b22bf3fSmrg # If the previous option needs an argument, assign it. 8278b22bf3fSmrg if test -n "$ac_prev"; then 8288b22bf3fSmrg eval $ac_prev=\$ac_option 8298b22bf3fSmrg ac_prev= 8308b22bf3fSmrg continue 8318b22bf3fSmrg fi 8328b22bf3fSmrg 8338b22bf3fSmrg case $ac_option in 8345bd32fd1Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8355bd32fd1Smrg *=) ac_optarg= ;; 8365bd32fd1Smrg *) ac_optarg=yes ;; 8378b22bf3fSmrg esac 8388b22bf3fSmrg 8398b22bf3fSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 8408b22bf3fSmrg 8418b22bf3fSmrg case $ac_dashdash$ac_option in 8428b22bf3fSmrg --) 8438b22bf3fSmrg ac_dashdash=yes ;; 8448b22bf3fSmrg 8458b22bf3fSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8468b22bf3fSmrg ac_prev=bindir ;; 8478b22bf3fSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8488b22bf3fSmrg bindir=$ac_optarg ;; 8498b22bf3fSmrg 8508b22bf3fSmrg -build | --build | --buil | --bui | --bu) 8518b22bf3fSmrg ac_prev=build_alias ;; 8528b22bf3fSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8538b22bf3fSmrg build_alias=$ac_optarg ;; 8548b22bf3fSmrg 8558b22bf3fSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8568b22bf3fSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8578b22bf3fSmrg ac_prev=cache_file ;; 8588b22bf3fSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8598b22bf3fSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8608b22bf3fSmrg cache_file=$ac_optarg ;; 8618b22bf3fSmrg 8628b22bf3fSmrg --config-cache | -C) 8638b22bf3fSmrg cache_file=config.cache ;; 8648b22bf3fSmrg 8658b22bf3fSmrg -datadir | --datadir | --datadi | --datad) 8668b22bf3fSmrg ac_prev=datadir ;; 8678b22bf3fSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8688b22bf3fSmrg datadir=$ac_optarg ;; 8698b22bf3fSmrg 8708b22bf3fSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8718b22bf3fSmrg | --dataroo | --dataro | --datar) 8728b22bf3fSmrg ac_prev=datarootdir ;; 8738b22bf3fSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8748b22bf3fSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8758b22bf3fSmrg datarootdir=$ac_optarg ;; 8768b22bf3fSmrg 8778b22bf3fSmrg -disable-* | --disable-*) 87896a81b41Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8798b22bf3fSmrg # Reject names that are not valid shell variable names. 88096a81b41Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8815bd32fd1Smrg as_fn_error $? "invalid feature name: $ac_useropt" 88296a81b41Smrg ac_useropt_orig=$ac_useropt 88396a81b41Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 88496a81b41Smrg case $ac_user_opts in 88596a81b41Smrg *" 88696a81b41Smrg"enable_$ac_useropt" 88796a81b41Smrg"*) ;; 88896a81b41Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 88996a81b41Smrg ac_unrecognized_sep=', ';; 89096a81b41Smrg esac 89196a81b41Smrg eval enable_$ac_useropt=no ;; 8928b22bf3fSmrg 8938b22bf3fSmrg -docdir | --docdir | --docdi | --doc | --do) 8948b22bf3fSmrg ac_prev=docdir ;; 8958b22bf3fSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 8968b22bf3fSmrg docdir=$ac_optarg ;; 8978b22bf3fSmrg 8988b22bf3fSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 8998b22bf3fSmrg ac_prev=dvidir ;; 9008b22bf3fSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 9018b22bf3fSmrg dvidir=$ac_optarg ;; 9028b22bf3fSmrg 9038b22bf3fSmrg -enable-* | --enable-*) 90496a81b41Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 9058b22bf3fSmrg # Reject names that are not valid shell variable names. 90696a81b41Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9075bd32fd1Smrg as_fn_error $? "invalid feature name: $ac_useropt" 90896a81b41Smrg ac_useropt_orig=$ac_useropt 90996a81b41Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 91096a81b41Smrg case $ac_user_opts in 91196a81b41Smrg *" 91296a81b41Smrg"enable_$ac_useropt" 91396a81b41Smrg"*) ;; 91496a81b41Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 91596a81b41Smrg ac_unrecognized_sep=', ';; 91696a81b41Smrg esac 91796a81b41Smrg eval enable_$ac_useropt=\$ac_optarg ;; 9188b22bf3fSmrg 9198b22bf3fSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9208b22bf3fSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9218b22bf3fSmrg | --exec | --exe | --ex) 9228b22bf3fSmrg ac_prev=exec_prefix ;; 9238b22bf3fSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9248b22bf3fSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9258b22bf3fSmrg | --exec=* | --exe=* | --ex=*) 9268b22bf3fSmrg exec_prefix=$ac_optarg ;; 9278b22bf3fSmrg 9288b22bf3fSmrg -gas | --gas | --ga | --g) 9298b22bf3fSmrg # Obsolete; use --with-gas. 9308b22bf3fSmrg with_gas=yes ;; 9318b22bf3fSmrg 9328b22bf3fSmrg -help | --help | --hel | --he | -h) 9338b22bf3fSmrg ac_init_help=long ;; 9348b22bf3fSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9358b22bf3fSmrg ac_init_help=recursive ;; 9368b22bf3fSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9378b22bf3fSmrg ac_init_help=short ;; 9388b22bf3fSmrg 9398b22bf3fSmrg -host | --host | --hos | --ho) 9408b22bf3fSmrg ac_prev=host_alias ;; 9418b22bf3fSmrg -host=* | --host=* | --hos=* | --ho=*) 9428b22bf3fSmrg host_alias=$ac_optarg ;; 9438b22bf3fSmrg 9448b22bf3fSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9458b22bf3fSmrg ac_prev=htmldir ;; 9468b22bf3fSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9478b22bf3fSmrg | --ht=*) 9488b22bf3fSmrg htmldir=$ac_optarg ;; 9498b22bf3fSmrg 9508b22bf3fSmrg -includedir | --includedir | --includedi | --included | --include \ 9518b22bf3fSmrg | --includ | --inclu | --incl | --inc) 9528b22bf3fSmrg ac_prev=includedir ;; 9538b22bf3fSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9548b22bf3fSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9558b22bf3fSmrg includedir=$ac_optarg ;; 9568b22bf3fSmrg 9578b22bf3fSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9588b22bf3fSmrg ac_prev=infodir ;; 9598b22bf3fSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9608b22bf3fSmrg infodir=$ac_optarg ;; 9618b22bf3fSmrg 9628b22bf3fSmrg -libdir | --libdir | --libdi | --libd) 9638b22bf3fSmrg ac_prev=libdir ;; 9648b22bf3fSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9658b22bf3fSmrg libdir=$ac_optarg ;; 9668b22bf3fSmrg 9678b22bf3fSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9688b22bf3fSmrg | --libexe | --libex | --libe) 9698b22bf3fSmrg ac_prev=libexecdir ;; 9708b22bf3fSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9718b22bf3fSmrg | --libexe=* | --libex=* | --libe=*) 9728b22bf3fSmrg libexecdir=$ac_optarg ;; 9738b22bf3fSmrg 9748b22bf3fSmrg -localedir | --localedir | --localedi | --localed | --locale) 9758b22bf3fSmrg ac_prev=localedir ;; 9768b22bf3fSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 9778b22bf3fSmrg localedir=$ac_optarg ;; 9788b22bf3fSmrg 9798b22bf3fSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 9808b22bf3fSmrg | --localstate | --localstat | --localsta | --localst | --locals) 9818b22bf3fSmrg ac_prev=localstatedir ;; 9828b22bf3fSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 9838b22bf3fSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9848b22bf3fSmrg localstatedir=$ac_optarg ;; 9858b22bf3fSmrg 9868b22bf3fSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9878b22bf3fSmrg ac_prev=mandir ;; 9888b22bf3fSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9898b22bf3fSmrg mandir=$ac_optarg ;; 9908b22bf3fSmrg 9918b22bf3fSmrg -nfp | --nfp | --nf) 9928b22bf3fSmrg # Obsolete; use --without-fp. 9938b22bf3fSmrg with_fp=no ;; 9948b22bf3fSmrg 9958b22bf3fSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 9968b22bf3fSmrg | --no-cr | --no-c | -n) 9978b22bf3fSmrg no_create=yes ;; 9988b22bf3fSmrg 9998b22bf3fSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 10008b22bf3fSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 10018b22bf3fSmrg no_recursion=yes ;; 10028b22bf3fSmrg 10038b22bf3fSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 10048b22bf3fSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 10058b22bf3fSmrg | --oldin | --oldi | --old | --ol | --o) 10068b22bf3fSmrg ac_prev=oldincludedir ;; 10078b22bf3fSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10088b22bf3fSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10098b22bf3fSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10108b22bf3fSmrg oldincludedir=$ac_optarg ;; 10118b22bf3fSmrg 10128b22bf3fSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10138b22bf3fSmrg ac_prev=prefix ;; 10148b22bf3fSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10158b22bf3fSmrg prefix=$ac_optarg ;; 10168b22bf3fSmrg 10178b22bf3fSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10188b22bf3fSmrg | --program-pre | --program-pr | --program-p) 10198b22bf3fSmrg ac_prev=program_prefix ;; 10208b22bf3fSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10218b22bf3fSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10228b22bf3fSmrg program_prefix=$ac_optarg ;; 10238b22bf3fSmrg 10248b22bf3fSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10258b22bf3fSmrg | --program-suf | --program-su | --program-s) 10268b22bf3fSmrg ac_prev=program_suffix ;; 10278b22bf3fSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10288b22bf3fSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10298b22bf3fSmrg program_suffix=$ac_optarg ;; 10308b22bf3fSmrg 10318b22bf3fSmrg -program-transform-name | --program-transform-name \ 10328b22bf3fSmrg | --program-transform-nam | --program-transform-na \ 10338b22bf3fSmrg | --program-transform-n | --program-transform- \ 10348b22bf3fSmrg | --program-transform | --program-transfor \ 10358b22bf3fSmrg | --program-transfo | --program-transf \ 10368b22bf3fSmrg | --program-trans | --program-tran \ 10378b22bf3fSmrg | --progr-tra | --program-tr | --program-t) 10388b22bf3fSmrg ac_prev=program_transform_name ;; 10398b22bf3fSmrg -program-transform-name=* | --program-transform-name=* \ 10408b22bf3fSmrg | --program-transform-nam=* | --program-transform-na=* \ 10418b22bf3fSmrg | --program-transform-n=* | --program-transform-=* \ 10428b22bf3fSmrg | --program-transform=* | --program-transfor=* \ 10438b22bf3fSmrg | --program-transfo=* | --program-transf=* \ 10448b22bf3fSmrg | --program-trans=* | --program-tran=* \ 10458b22bf3fSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 10468b22bf3fSmrg program_transform_name=$ac_optarg ;; 10478b22bf3fSmrg 10488b22bf3fSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10498b22bf3fSmrg ac_prev=pdfdir ;; 10508b22bf3fSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10518b22bf3fSmrg pdfdir=$ac_optarg ;; 10528b22bf3fSmrg 10538b22bf3fSmrg -psdir | --psdir | --psdi | --psd | --ps) 10548b22bf3fSmrg ac_prev=psdir ;; 10558b22bf3fSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10568b22bf3fSmrg psdir=$ac_optarg ;; 10578b22bf3fSmrg 10588b22bf3fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10598b22bf3fSmrg | -silent | --silent | --silen | --sile | --sil) 10608b22bf3fSmrg silent=yes ;; 10618b22bf3fSmrg 10628b22bf3fSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10638b22bf3fSmrg ac_prev=sbindir ;; 10648b22bf3fSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10658b22bf3fSmrg | --sbi=* | --sb=*) 10668b22bf3fSmrg sbindir=$ac_optarg ;; 10678b22bf3fSmrg 10688b22bf3fSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10698b22bf3fSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10708b22bf3fSmrg | --sharedst | --shareds | --shared | --share | --shar \ 10718b22bf3fSmrg | --sha | --sh) 10728b22bf3fSmrg ac_prev=sharedstatedir ;; 10738b22bf3fSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10748b22bf3fSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10758b22bf3fSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10768b22bf3fSmrg | --sha=* | --sh=*) 10778b22bf3fSmrg sharedstatedir=$ac_optarg ;; 10788b22bf3fSmrg 10798b22bf3fSmrg -site | --site | --sit) 10808b22bf3fSmrg ac_prev=site ;; 10818b22bf3fSmrg -site=* | --site=* | --sit=*) 10828b22bf3fSmrg site=$ac_optarg ;; 10838b22bf3fSmrg 10848b22bf3fSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10858b22bf3fSmrg ac_prev=srcdir ;; 10868b22bf3fSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10878b22bf3fSmrg srcdir=$ac_optarg ;; 10888b22bf3fSmrg 10898b22bf3fSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10908b22bf3fSmrg | --syscon | --sysco | --sysc | --sys | --sy) 10918b22bf3fSmrg ac_prev=sysconfdir ;; 10928b22bf3fSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10938b22bf3fSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10948b22bf3fSmrg sysconfdir=$ac_optarg ;; 10958b22bf3fSmrg 10968b22bf3fSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 10978b22bf3fSmrg ac_prev=target_alias ;; 10988b22bf3fSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 10998b22bf3fSmrg target_alias=$ac_optarg ;; 11008b22bf3fSmrg 11018b22bf3fSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 11028b22bf3fSmrg verbose=yes ;; 11038b22bf3fSmrg 11048b22bf3fSmrg -version | --version | --versio | --versi | --vers | -V) 11058b22bf3fSmrg ac_init_version=: ;; 11068b22bf3fSmrg 11078b22bf3fSmrg -with-* | --with-*) 110896a81b41Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11098b22bf3fSmrg # Reject names that are not valid shell variable names. 111096a81b41Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11115bd32fd1Smrg as_fn_error $? "invalid package name: $ac_useropt" 111296a81b41Smrg ac_useropt_orig=$ac_useropt 111396a81b41Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 111496a81b41Smrg case $ac_user_opts in 111596a81b41Smrg *" 111696a81b41Smrg"with_$ac_useropt" 111796a81b41Smrg"*) ;; 111896a81b41Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 111996a81b41Smrg ac_unrecognized_sep=', ';; 112096a81b41Smrg esac 112196a81b41Smrg eval with_$ac_useropt=\$ac_optarg ;; 11228b22bf3fSmrg 11238b22bf3fSmrg -without-* | --without-*) 112496a81b41Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11258b22bf3fSmrg # Reject names that are not valid shell variable names. 112696a81b41Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11275bd32fd1Smrg as_fn_error $? "invalid package name: $ac_useropt" 112896a81b41Smrg ac_useropt_orig=$ac_useropt 112996a81b41Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 113096a81b41Smrg case $ac_user_opts in 113196a81b41Smrg *" 113296a81b41Smrg"with_$ac_useropt" 113396a81b41Smrg"*) ;; 113496a81b41Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 113596a81b41Smrg ac_unrecognized_sep=', ';; 113696a81b41Smrg esac 113796a81b41Smrg eval with_$ac_useropt=no ;; 11388b22bf3fSmrg 11398b22bf3fSmrg --x) 11408b22bf3fSmrg # Obsolete; use --with-x. 11418b22bf3fSmrg with_x=yes ;; 11428b22bf3fSmrg 11438b22bf3fSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11448b22bf3fSmrg | --x-incl | --x-inc | --x-in | --x-i) 11458b22bf3fSmrg ac_prev=x_includes ;; 11468b22bf3fSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11478b22bf3fSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11488b22bf3fSmrg x_includes=$ac_optarg ;; 11498b22bf3fSmrg 11508b22bf3fSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11518b22bf3fSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11528b22bf3fSmrg ac_prev=x_libraries ;; 11538b22bf3fSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11548b22bf3fSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11558b22bf3fSmrg x_libraries=$ac_optarg ;; 11568b22bf3fSmrg 11575bd32fd1Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 11585bd32fd1SmrgTry \`$0 --help' for more information" 11598b22bf3fSmrg ;; 11608b22bf3fSmrg 11618b22bf3fSmrg *=*) 11628b22bf3fSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11638b22bf3fSmrg # Reject names that are not valid shell variable names. 11645bd32fd1Smrg case $ac_envvar in #( 11655bd32fd1Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 11665bd32fd1Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 11675bd32fd1Smrg esac 11688b22bf3fSmrg eval $ac_envvar=\$ac_optarg 11698b22bf3fSmrg export $ac_envvar ;; 11708b22bf3fSmrg 11718b22bf3fSmrg *) 11728b22bf3fSmrg # FIXME: should be removed in autoconf 3.0. 117396a81b41Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11748b22bf3fSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 117596a81b41Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 11765bd32fd1Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11778b22bf3fSmrg ;; 11788b22bf3fSmrg 11798b22bf3fSmrg esac 11808b22bf3fSmrgdone 11818b22bf3fSmrg 11828b22bf3fSmrgif test -n "$ac_prev"; then 11838b22bf3fSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 11845bd32fd1Smrg as_fn_error $? "missing argument to $ac_option" 11858b22bf3fSmrgfi 11868b22bf3fSmrg 118796a81b41Smrgif test -n "$ac_unrecognized_opts"; then 118896a81b41Smrg case $enable_option_checking in 118996a81b41Smrg no) ;; 11905bd32fd1Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 119196a81b41Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 119296a81b41Smrg esac 119396a81b41Smrgfi 119496a81b41Smrg 119596a81b41Smrg# Check all directory arguments for consistency. 11968b22bf3fSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 11978b22bf3fSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 11988b22bf3fSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 11998b22bf3fSmrg libdir localedir mandir 12008b22bf3fSmrgdo 12018b22bf3fSmrg eval ac_val=\$$ac_var 120296a81b41Smrg # Remove trailing slashes. 120396a81b41Smrg case $ac_val in 120496a81b41Smrg */ ) 120596a81b41Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 120696a81b41Smrg eval $ac_var=\$ac_val;; 120796a81b41Smrg esac 120896a81b41Smrg # Be sure to have absolute directory names. 12098b22bf3fSmrg case $ac_val in 12108b22bf3fSmrg [\\/$]* | ?:[\\/]* ) continue;; 12118b22bf3fSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 12128b22bf3fSmrg esac 12135bd32fd1Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12148b22bf3fSmrgdone 12158b22bf3fSmrg 12168b22bf3fSmrg# There might be people who depend on the old broken behavior: `$host' 12178b22bf3fSmrg# used to hold the argument of --host etc. 12188b22bf3fSmrg# FIXME: To remove some day. 12198b22bf3fSmrgbuild=$build_alias 12208b22bf3fSmrghost=$host_alias 12218b22bf3fSmrgtarget=$target_alias 12228b22bf3fSmrg 12238b22bf3fSmrg# FIXME: To remove some day. 12248b22bf3fSmrgif test "x$host_alias" != x; then 12258b22bf3fSmrg if test "x$build_alias" = x; then 12268b22bf3fSmrg cross_compiling=maybe 12278b22bf3fSmrg elif test "x$build_alias" != "x$host_alias"; then 12288b22bf3fSmrg cross_compiling=yes 12298b22bf3fSmrg fi 12308b22bf3fSmrgfi 12318b22bf3fSmrg 12328b22bf3fSmrgac_tool_prefix= 12338b22bf3fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12348b22bf3fSmrg 12358b22bf3fSmrgtest "$silent" = yes && exec 6>/dev/null 12368b22bf3fSmrg 12378b22bf3fSmrg 12388b22bf3fSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 12398b22bf3fSmrgac_ls_di=`ls -di .` && 12408b22bf3fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12415bd32fd1Smrg as_fn_error $? "working directory cannot be determined" 12428b22bf3fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12435bd32fd1Smrg as_fn_error $? "pwd does not report name of working directory" 12448b22bf3fSmrg 12458b22bf3fSmrg 12468b22bf3fSmrg# Find the source files, if location was not specified. 12478b22bf3fSmrgif test -z "$srcdir"; then 12488b22bf3fSmrg ac_srcdir_defaulted=yes 12498b22bf3fSmrg # Try the directory containing this script, then the parent directory. 125096a81b41Smrg ac_confdir=`$as_dirname -- "$as_myself" || 125196a81b41Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 125296a81b41Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 125396a81b41Smrg X"$as_myself" : 'X\(//\)$' \| \ 125496a81b41Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 125596a81b41Smrg$as_echo X"$as_myself" | 12568b22bf3fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12578b22bf3fSmrg s//\1/ 12588b22bf3fSmrg q 12598b22bf3fSmrg } 12608b22bf3fSmrg /^X\(\/\/\)[^/].*/{ 12618b22bf3fSmrg s//\1/ 12628b22bf3fSmrg q 12638b22bf3fSmrg } 12648b22bf3fSmrg /^X\(\/\/\)$/{ 12658b22bf3fSmrg s//\1/ 12668b22bf3fSmrg q 12678b22bf3fSmrg } 12688b22bf3fSmrg /^X\(\/\).*/{ 12698b22bf3fSmrg s//\1/ 12708b22bf3fSmrg q 12718b22bf3fSmrg } 12728b22bf3fSmrg s/.*/./; q'` 12738b22bf3fSmrg srcdir=$ac_confdir 12748b22bf3fSmrg if test ! -r "$srcdir/$ac_unique_file"; then 12758b22bf3fSmrg srcdir=.. 12768b22bf3fSmrg fi 12778b22bf3fSmrgelse 12788b22bf3fSmrg ac_srcdir_defaulted=no 12798b22bf3fSmrgfi 12808b22bf3fSmrgif test ! -r "$srcdir/$ac_unique_file"; then 12818b22bf3fSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 12825bd32fd1Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 12838b22bf3fSmrgfi 12848b22bf3fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 12858b22bf3fSmrgac_abs_confdir=`( 12865bd32fd1Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 12878b22bf3fSmrg pwd)` 12888b22bf3fSmrg# When building in place, set srcdir=. 12898b22bf3fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 12908b22bf3fSmrg srcdir=. 12918b22bf3fSmrgfi 12928b22bf3fSmrg# Remove unnecessary trailing slashes from srcdir. 12938b22bf3fSmrg# Double slashes in file names in object file debugging info 12948b22bf3fSmrg# mess up M-x gdb in Emacs. 12958b22bf3fSmrgcase $srcdir in 12968b22bf3fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 12978b22bf3fSmrgesac 12988b22bf3fSmrgfor ac_var in $ac_precious_vars; do 12998b22bf3fSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 13008b22bf3fSmrg eval ac_env_${ac_var}_value=\$${ac_var} 13018b22bf3fSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 13028b22bf3fSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 13038b22bf3fSmrgdone 13048b22bf3fSmrg 13058b22bf3fSmrg# 13068b22bf3fSmrg# Report the --help message. 13078b22bf3fSmrg# 13088b22bf3fSmrgif test "$ac_init_help" = "long"; then 13098b22bf3fSmrg # Omit some internal or obsolete options to make the list less imposing. 13108b22bf3fSmrg # This message is too long to be a string in the A/UX 3.1 sh. 13118b22bf3fSmrg cat <<_ACEOF 1312c74b14bdSmrg\`configure' configures xrdb 1.1.1 to adapt to many kinds of systems. 13138b22bf3fSmrg 13148b22bf3fSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13158b22bf3fSmrg 13168b22bf3fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13178b22bf3fSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13188b22bf3fSmrg 13198b22bf3fSmrgDefaults for the options are specified in brackets. 13208b22bf3fSmrg 13218b22bf3fSmrgConfiguration: 13228b22bf3fSmrg -h, --help display this help and exit 13238b22bf3fSmrg --help=short display options specific to this package 13248b22bf3fSmrg --help=recursive display the short help of all the included packages 13258b22bf3fSmrg -V, --version display version information and exit 13265bd32fd1Smrg -q, --quiet, --silent do not print \`checking ...' messages 13278b22bf3fSmrg --cache-file=FILE cache test results in FILE [disabled] 13288b22bf3fSmrg -C, --config-cache alias for \`--cache-file=config.cache' 13298b22bf3fSmrg -n, --no-create do not create output files 13308b22bf3fSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13318b22bf3fSmrg 13328b22bf3fSmrgInstallation directories: 13338b22bf3fSmrg --prefix=PREFIX install architecture-independent files in PREFIX 133496a81b41Smrg [$ac_default_prefix] 13358b22bf3fSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 133696a81b41Smrg [PREFIX] 13378b22bf3fSmrg 13388b22bf3fSmrgBy default, \`make install' will install all the files in 13398b22bf3fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13408b22bf3fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13418b22bf3fSmrgfor instance \`--prefix=\$HOME'. 13428b22bf3fSmrg 13438b22bf3fSmrgFor better control, use the options below. 13448b22bf3fSmrg 13458b22bf3fSmrgFine tuning of the installation directories: 134696a81b41Smrg --bindir=DIR user executables [EPREFIX/bin] 134796a81b41Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 134896a81b41Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 134996a81b41Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 135096a81b41Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 135196a81b41Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 135296a81b41Smrg --libdir=DIR object code libraries [EPREFIX/lib] 135396a81b41Smrg --includedir=DIR C header files [PREFIX/include] 135496a81b41Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 135596a81b41Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 135696a81b41Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 135796a81b41Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 135896a81b41Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 135996a81b41Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 136096a81b41Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xrdb] 136196a81b41Smrg --htmldir=DIR html documentation [DOCDIR] 136296a81b41Smrg --dvidir=DIR dvi documentation [DOCDIR] 136396a81b41Smrg --pdfdir=DIR pdf documentation [DOCDIR] 136496a81b41Smrg --psdir=DIR ps documentation [DOCDIR] 13658b22bf3fSmrg_ACEOF 13668b22bf3fSmrg 13678b22bf3fSmrg cat <<\_ACEOF 13688b22bf3fSmrg 13698b22bf3fSmrgProgram names: 13708b22bf3fSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 13718b22bf3fSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 13728b22bf3fSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13738b22bf3fSmrg 13748b22bf3fSmrgSystem types: 13758b22bf3fSmrg --build=BUILD configure for building on BUILD [guessed] 13768b22bf3fSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13778b22bf3fSmrg_ACEOF 13788b22bf3fSmrgfi 13798b22bf3fSmrg 13808b22bf3fSmrgif test -n "$ac_init_help"; then 13818b22bf3fSmrg case $ac_init_help in 1382c74b14bdSmrg short | recursive ) echo "Configuration of xrdb 1.1.1:";; 13838b22bf3fSmrg esac 13848b22bf3fSmrg cat <<\_ACEOF 13858b22bf3fSmrg 13868b22bf3fSmrgOptional Features: 138796a81b41Smrg --disable-option-checking ignore unrecognized --enable/--with options 13888b22bf3fSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13898b22bf3fSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1390f126e068Smrg --enable-dependency-tracking 1391f126e068Smrg do not reject slow dependency extractors 1392f126e068Smrg --disable-dependency-tracking 1393f126e068Smrg speeds up one-time build 1394f126e068Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 1395f126e068Smrg --disable-silent-rules verbose build output (undo: "make V=0") 1396f126e068Smrg --disable-selective-werror 1397f126e068Smrg Turn off selective compiler errors. (default: 1398f126e068Smrg enabled) 139996a81b41Smrg --enable-strict-compilation 140096a81b41Smrg Enable all warnings from compiler and make them 140196a81b41Smrg errors (default: disabled) 14028b22bf3fSmrg 14038b22bf3fSmrgOptional Packages: 14048b22bf3fSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 14058b22bf3fSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 140696a81b41Smrg --with-cpp=path comma-separated list of paths to cpp command for 140796a81b41Smrg xrdb to use at runtime 14088b22bf3fSmrg 14098b22bf3fSmrgSome influential environment variables: 14108b22bf3fSmrg CC C compiler command 14118b22bf3fSmrg CFLAGS C compiler flags 14128b22bf3fSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14138b22bf3fSmrg nonstandard directory <lib dir> 14148b22bf3fSmrg LIBS libraries to pass to the linker, e.g. -l<library> 14155bd32fd1Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14168b22bf3fSmrg you have headers in a nonstandard directory <include dir> 14178b22bf3fSmrg CPP C preprocessor 14188b22bf3fSmrg PKG_CONFIG path to pkg-config utility 1419c74b14bdSmrg PKG_CONFIG_PATH 1420c74b14bdSmrg directories to add to pkg-config's search path 1421c74b14bdSmrg PKG_CONFIG_LIBDIR 1422c74b14bdSmrg path overriding pkg-config's built-in search path 14238b22bf3fSmrg XRDB_CFLAGS C compiler flags for XRDB, overriding pkg-config 14248b22bf3fSmrg XRDB_LIBS linker flags for XRDB, overriding pkg-config 14258b22bf3fSmrg 14268b22bf3fSmrgUse these variables to override the choices made by `configure' or to help 14278b22bf3fSmrgit to find libraries and programs with nonstandard names/locations. 14288b22bf3fSmrg 14298b22bf3fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 14308b22bf3fSmrg_ACEOF 14318b22bf3fSmrgac_status=$? 14328b22bf3fSmrgfi 14338b22bf3fSmrg 14348b22bf3fSmrgif test "$ac_init_help" = "recursive"; then 14358b22bf3fSmrg # If there are subdirs, report their specific --help. 14368b22bf3fSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 143796a81b41Smrg test -d "$ac_dir" || 143896a81b41Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 143996a81b41Smrg continue 14408b22bf3fSmrg ac_builddir=. 14418b22bf3fSmrg 14428b22bf3fSmrgcase "$ac_dir" in 14438b22bf3fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14448b22bf3fSmrg*) 144596a81b41Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14468b22bf3fSmrg # A ".." for each directory in $ac_dir_suffix. 144796a81b41Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14488b22bf3fSmrg case $ac_top_builddir_sub in 14498b22bf3fSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14508b22bf3fSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14518b22bf3fSmrg esac ;; 14528b22bf3fSmrgesac 14538b22bf3fSmrgac_abs_top_builddir=$ac_pwd 14548b22bf3fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14558b22bf3fSmrg# for backward compatibility: 14568b22bf3fSmrgac_top_builddir=$ac_top_build_prefix 14578b22bf3fSmrg 14588b22bf3fSmrgcase $srcdir in 14598b22bf3fSmrg .) # We are building in place. 14608b22bf3fSmrg ac_srcdir=. 14618b22bf3fSmrg ac_top_srcdir=$ac_top_builddir_sub 14628b22bf3fSmrg ac_abs_top_srcdir=$ac_pwd ;; 14638b22bf3fSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 14648b22bf3fSmrg ac_srcdir=$srcdir$ac_dir_suffix; 14658b22bf3fSmrg ac_top_srcdir=$srcdir 14668b22bf3fSmrg ac_abs_top_srcdir=$srcdir ;; 14678b22bf3fSmrg *) # Relative name. 14688b22bf3fSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14698b22bf3fSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14708b22bf3fSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14718b22bf3fSmrgesac 14728b22bf3fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14738b22bf3fSmrg 14748b22bf3fSmrg cd "$ac_dir" || { ac_status=$?; continue; } 14758b22bf3fSmrg # Check for guested configure. 14768b22bf3fSmrg if test -f "$ac_srcdir/configure.gnu"; then 14778b22bf3fSmrg echo && 14788b22bf3fSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 14798b22bf3fSmrg elif test -f "$ac_srcdir/configure"; then 14808b22bf3fSmrg echo && 14818b22bf3fSmrg $SHELL "$ac_srcdir/configure" --help=recursive 14828b22bf3fSmrg else 148396a81b41Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 14848b22bf3fSmrg fi || ac_status=$? 14858b22bf3fSmrg cd "$ac_pwd" || { ac_status=$?; break; } 14868b22bf3fSmrg done 14878b22bf3fSmrgfi 14888b22bf3fSmrg 14898b22bf3fSmrgtest -n "$ac_init_help" && exit $ac_status 14908b22bf3fSmrgif $ac_init_version; then 14918b22bf3fSmrg cat <<\_ACEOF 1492c74b14bdSmrgxrdb configure 1.1.1 1493c74b14bdSmrggenerated by GNU Autoconf 2.69 14948b22bf3fSmrg 1495c74b14bdSmrgCopyright (C) 2012 Free Software Foundation, Inc. 14968b22bf3fSmrgThis configure script is free software; the Free Software Foundation 14978b22bf3fSmrggives unlimited permission to copy, distribute and modify it. 14988b22bf3fSmrg_ACEOF 14998b22bf3fSmrg exit 15008b22bf3fSmrgfi 15018b22bf3fSmrg 15025bd32fd1Smrg## ------------------------ ## 15035bd32fd1Smrg## Autoconf initialization. ## 15045bd32fd1Smrg## ------------------------ ## 15058b22bf3fSmrg 15065bd32fd1Smrg# ac_fn_c_try_compile LINENO 15075bd32fd1Smrg# -------------------------- 15085bd32fd1Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 15095bd32fd1Smrgac_fn_c_try_compile () 15108b22bf3fSmrg{ 15115bd32fd1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15125bd32fd1Smrg rm -f conftest.$ac_objext 15135bd32fd1Smrg if { { ac_try="$ac_compile" 15145bd32fd1Smrgcase "(($ac_try" in 15155bd32fd1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15165bd32fd1Smrg *) ac_try_echo=$ac_try;; 15175bd32fd1Smrgesac 15185bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15195bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5 15205bd32fd1Smrg (eval "$ac_compile") 2>conftest.err 15215bd32fd1Smrg ac_status=$? 15225bd32fd1Smrg if test -s conftest.err; then 15235bd32fd1Smrg grep -v '^ *+' conftest.err >conftest.er1 15245bd32fd1Smrg cat conftest.er1 >&5 15255bd32fd1Smrg mv -f conftest.er1 conftest.err 15265bd32fd1Smrg fi 15275bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15285bd32fd1Smrg test $ac_status = 0; } && { 15295bd32fd1Smrg test -z "$ac_c_werror_flag" || 15305bd32fd1Smrg test ! -s conftest.err 15315bd32fd1Smrg } && test -s conftest.$ac_objext; then : 15325bd32fd1Smrg ac_retval=0 15335bd32fd1Smrgelse 15345bd32fd1Smrg $as_echo "$as_me: failed program was:" >&5 15355bd32fd1Smrgsed 's/^/| /' conftest.$ac_ext >&5 15368b22bf3fSmrg 15375bd32fd1Smrg ac_retval=1 15385bd32fd1Smrgfi 15395bd32fd1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15405bd32fd1Smrg as_fn_set_status $ac_retval 15418b22bf3fSmrg 15425bd32fd1Smrg} # ac_fn_c_try_compile 15438b22bf3fSmrg 15445bd32fd1Smrg# ac_fn_c_try_cpp LINENO 15455bd32fd1Smrg# ---------------------- 15465bd32fd1Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 15475bd32fd1Smrgac_fn_c_try_cpp () 15485bd32fd1Smrg{ 15495bd32fd1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15505bd32fd1Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 15515bd32fd1Smrgcase "(($ac_try" in 15525bd32fd1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15535bd32fd1Smrg *) ac_try_echo=$ac_try;; 15545bd32fd1Smrgesac 15555bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15565bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5 15575bd32fd1Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 15585bd32fd1Smrg ac_status=$? 15595bd32fd1Smrg if test -s conftest.err; then 15605bd32fd1Smrg grep -v '^ *+' conftest.err >conftest.er1 15615bd32fd1Smrg cat conftest.er1 >&5 15625bd32fd1Smrg mv -f conftest.er1 conftest.err 15635bd32fd1Smrg fi 15645bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15655bd32fd1Smrg test $ac_status = 0; } > conftest.i && { 15665bd32fd1Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15675bd32fd1Smrg test ! -s conftest.err 15685bd32fd1Smrg }; then : 15695bd32fd1Smrg ac_retval=0 15705bd32fd1Smrgelse 15715bd32fd1Smrg $as_echo "$as_me: failed program was:" >&5 15725bd32fd1Smrgsed 's/^/| /' conftest.$ac_ext >&5 15735bd32fd1Smrg 15745bd32fd1Smrg ac_retval=1 15755bd32fd1Smrgfi 15765bd32fd1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15775bd32fd1Smrg as_fn_set_status $ac_retval 15785bd32fd1Smrg 15795bd32fd1Smrg} # ac_fn_c_try_cpp 15805bd32fd1Smrg 1581d13010c3Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1582d13010c3Smrg# ------------------------------------------------------- 1583d13010c3Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1584d13010c3Smrg# the include files in INCLUDES and setting the cache variable VAR 1585d13010c3Smrg# accordingly. 1586d13010c3Smrgac_fn_c_check_header_mongrel () 1587d13010c3Smrg{ 1588d13010c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1589d13010c3Smrg if eval \${$3+:} false; then : 1590d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1591d13010c3Smrg$as_echo_n "checking for $2... " >&6; } 1592d13010c3Smrgif eval \${$3+:} false; then : 1593d13010c3Smrg $as_echo_n "(cached) " >&6 1594d13010c3Smrgfi 1595d13010c3Smrgeval ac_res=\$$3 1596d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1597d13010c3Smrg$as_echo "$ac_res" >&6; } 1598d13010c3Smrgelse 1599d13010c3Smrg # Is the header compilable? 1600d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1601d13010c3Smrg$as_echo_n "checking $2 usability... " >&6; } 1602d13010c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1603d13010c3Smrg/* end confdefs.h. */ 1604d13010c3Smrg$4 1605d13010c3Smrg#include <$2> 1606d13010c3Smrg_ACEOF 1607d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1608d13010c3Smrg ac_header_compiler=yes 1609d13010c3Smrgelse 1610d13010c3Smrg ac_header_compiler=no 1611d13010c3Smrgfi 1612d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1613d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1614d13010c3Smrg$as_echo "$ac_header_compiler" >&6; } 1615d13010c3Smrg 1616d13010c3Smrg# Is the header present? 1617d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1618d13010c3Smrg$as_echo_n "checking $2 presence... " >&6; } 1619d13010c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1620d13010c3Smrg/* end confdefs.h. */ 1621d13010c3Smrg#include <$2> 1622d13010c3Smrg_ACEOF 1623d13010c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 1624d13010c3Smrg ac_header_preproc=yes 1625d13010c3Smrgelse 1626d13010c3Smrg ac_header_preproc=no 1627d13010c3Smrgfi 1628d13010c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 1629d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1630d13010c3Smrg$as_echo "$ac_header_preproc" >&6; } 1631d13010c3Smrg 1632d13010c3Smrg# So? What about this header? 1633d13010c3Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1634d13010c3Smrg yes:no: ) 1635d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1636d13010c3Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1637d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1638d13010c3Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1639d13010c3Smrg ;; 1640d13010c3Smrg no:yes:* ) 1641d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1642d13010c3Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1643d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1644d13010c3Smrg$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1645d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1646d13010c3Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1647d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1648d13010c3Smrg$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1649d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1650d13010c3Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1651d13010c3Smrg( $as_echo "## ---------------------------------------------------------------------- ## 1652d13010c3Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1653d13010c3Smrg## ---------------------------------------------------------------------- ##" 1654d13010c3Smrg ) | sed "s/^/$as_me: WARNING: /" >&2 1655d13010c3Smrg ;; 1656d13010c3Smrgesac 1657d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1658d13010c3Smrg$as_echo_n "checking for $2... " >&6; } 1659d13010c3Smrgif eval \${$3+:} false; then : 1660d13010c3Smrg $as_echo_n "(cached) " >&6 1661d13010c3Smrgelse 1662d13010c3Smrg eval "$3=\$ac_header_compiler" 1663d13010c3Smrgfi 1664d13010c3Smrgeval ac_res=\$$3 1665d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1666d13010c3Smrg$as_echo "$ac_res" >&6; } 1667d13010c3Smrgfi 1668d13010c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1669d13010c3Smrg 1670d13010c3Smrg} # ac_fn_c_check_header_mongrel 1671d13010c3Smrg 16725bd32fd1Smrg# ac_fn_c_try_run LINENO 16735bd32fd1Smrg# ---------------------- 16745bd32fd1Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 16755bd32fd1Smrg# that executables *can* be run. 16765bd32fd1Smrgac_fn_c_try_run () 16775bd32fd1Smrg{ 16785bd32fd1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16795bd32fd1Smrg if { { ac_try="$ac_link" 16805bd32fd1Smrgcase "(($ac_try" in 16815bd32fd1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16825bd32fd1Smrg *) ac_try_echo=$ac_try;; 16835bd32fd1Smrgesac 16845bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16855bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5 16865bd32fd1Smrg (eval "$ac_link") 2>&5 16875bd32fd1Smrg ac_status=$? 16885bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16895bd32fd1Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 16905bd32fd1Smrg { { case "(($ac_try" in 16915bd32fd1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16925bd32fd1Smrg *) ac_try_echo=$ac_try;; 16935bd32fd1Smrgesac 16945bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16955bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5 16965bd32fd1Smrg (eval "$ac_try") 2>&5 16975bd32fd1Smrg ac_status=$? 16985bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16995bd32fd1Smrg test $ac_status = 0; }; }; then : 17005bd32fd1Smrg ac_retval=0 17015bd32fd1Smrgelse 17025bd32fd1Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 17035bd32fd1Smrg $as_echo "$as_me: failed program was:" >&5 17045bd32fd1Smrgsed 's/^/| /' conftest.$ac_ext >&5 17055bd32fd1Smrg 17065bd32fd1Smrg ac_retval=$ac_status 17075bd32fd1Smrgfi 17085bd32fd1Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17095bd32fd1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17105bd32fd1Smrg as_fn_set_status $ac_retval 17115bd32fd1Smrg 17125bd32fd1Smrg} # ac_fn_c_try_run 17135bd32fd1Smrg 17145bd32fd1Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 17155bd32fd1Smrg# ------------------------------------------------------- 17165bd32fd1Smrg# Tests whether HEADER exists and can be compiled using the include files in 17175bd32fd1Smrg# INCLUDES, setting the cache variable VAR accordingly. 17185bd32fd1Smrgac_fn_c_check_header_compile () 17195bd32fd1Smrg{ 17205bd32fd1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17215bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17225bd32fd1Smrg$as_echo_n "checking for $2... " >&6; } 17235bd32fd1Smrgif eval \${$3+:} false; then : 17245bd32fd1Smrg $as_echo_n "(cached) " >&6 17255bd32fd1Smrgelse 17265bd32fd1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17275bd32fd1Smrg/* end confdefs.h. */ 17285bd32fd1Smrg$4 17295bd32fd1Smrg#include <$2> 17305bd32fd1Smrg_ACEOF 17315bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then : 17325bd32fd1Smrg eval "$3=yes" 17335bd32fd1Smrgelse 17345bd32fd1Smrg eval "$3=no" 17355bd32fd1Smrgfi 17365bd32fd1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17375bd32fd1Smrgfi 17385bd32fd1Smrgeval ac_res=\$$3 17395bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17405bd32fd1Smrg$as_echo "$ac_res" >&6; } 17415bd32fd1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17425bd32fd1Smrg 17435bd32fd1Smrg} # ac_fn_c_check_header_compile 17445bd32fd1Smrg 1745d13010c3Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1746d13010c3Smrg# --------------------------------------------- 1747d13010c3Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1748d13010c3Smrg# accordingly. 1749d13010c3Smrgac_fn_c_check_decl () 1750d13010c3Smrg{ 1751d13010c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752d13010c3Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1753d13010c3Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1754d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1755d13010c3Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1756d13010c3Smrgif eval \${$3+:} false; then : 1757d13010c3Smrg $as_echo_n "(cached) " >&6 1758d13010c3Smrgelse 1759d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1760d13010c3Smrg/* end confdefs.h. */ 1761d13010c3Smrg$4 1762d13010c3Smrgint 1763d13010c3Smrgmain () 1764d13010c3Smrg{ 1765d13010c3Smrg#ifndef $as_decl_name 1766d13010c3Smrg#ifdef __cplusplus 1767d13010c3Smrg (void) $as_decl_use; 1768d13010c3Smrg#else 1769d13010c3Smrg (void) $as_decl_name; 1770d13010c3Smrg#endif 1771d13010c3Smrg#endif 1772d13010c3Smrg 1773d13010c3Smrg ; 1774d13010c3Smrg return 0; 1775d13010c3Smrg} 1776d13010c3Smrg_ACEOF 1777d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1778d13010c3Smrg eval "$3=yes" 1779d13010c3Smrgelse 1780d13010c3Smrg eval "$3=no" 1781d13010c3Smrgfi 1782d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1783d13010c3Smrgfi 1784d13010c3Smrgeval ac_res=\$$3 1785d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1786d13010c3Smrg$as_echo "$ac_res" >&6; } 1787d13010c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788d13010c3Smrg 1789d13010c3Smrg} # ac_fn_c_check_decl 1790d13010c3Smrg 17915bd32fd1Smrg# ac_fn_c_try_link LINENO 17925bd32fd1Smrg# ----------------------- 17935bd32fd1Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 17945bd32fd1Smrgac_fn_c_try_link () 17955bd32fd1Smrg{ 17965bd32fd1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17975bd32fd1Smrg rm -f conftest.$ac_objext conftest$ac_exeext 17985bd32fd1Smrg if { { ac_try="$ac_link" 17995bd32fd1Smrgcase "(($ac_try" in 18005bd32fd1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18015bd32fd1Smrg *) ac_try_echo=$ac_try;; 18025bd32fd1Smrgesac 18035bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18045bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5 18055bd32fd1Smrg (eval "$ac_link") 2>conftest.err 18065bd32fd1Smrg ac_status=$? 18075bd32fd1Smrg if test -s conftest.err; then 18085bd32fd1Smrg grep -v '^ *+' conftest.err >conftest.er1 18095bd32fd1Smrg cat conftest.er1 >&5 18105bd32fd1Smrg mv -f conftest.er1 conftest.err 18115bd32fd1Smrg fi 18125bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18135bd32fd1Smrg test $ac_status = 0; } && { 18145bd32fd1Smrg test -z "$ac_c_werror_flag" || 18155bd32fd1Smrg test ! -s conftest.err 18165bd32fd1Smrg } && test -s conftest$ac_exeext && { 18175bd32fd1Smrg test "$cross_compiling" = yes || 1818c74b14bdSmrg test -x conftest$ac_exeext 18195bd32fd1Smrg }; then : 18205bd32fd1Smrg ac_retval=0 18215bd32fd1Smrgelse 18225bd32fd1Smrg $as_echo "$as_me: failed program was:" >&5 18235bd32fd1Smrgsed 's/^/| /' conftest.$ac_ext >&5 18245bd32fd1Smrg 18255bd32fd1Smrg ac_retval=1 18265bd32fd1Smrgfi 18275bd32fd1Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 18285bd32fd1Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 18295bd32fd1Smrg # interfere with the next link command; also delete a directory that is 18305bd32fd1Smrg # left behind by Apple's compiler. We do this before executing the actions. 18315bd32fd1Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 18325bd32fd1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18335bd32fd1Smrg as_fn_set_status $ac_retval 18345bd32fd1Smrg 18355bd32fd1Smrg} # ac_fn_c_try_link 18365bd32fd1Smrg 18375bd32fd1Smrg# ac_fn_c_check_func LINENO FUNC VAR 18385bd32fd1Smrg# ---------------------------------- 18395bd32fd1Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 18405bd32fd1Smrgac_fn_c_check_func () 18415bd32fd1Smrg{ 18425bd32fd1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18435bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 18445bd32fd1Smrg$as_echo_n "checking for $2... " >&6; } 18455bd32fd1Smrgif eval \${$3+:} false; then : 18465bd32fd1Smrg $as_echo_n "(cached) " >&6 18475bd32fd1Smrgelse 18485bd32fd1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18495bd32fd1Smrg/* end confdefs.h. */ 18505bd32fd1Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 18515bd32fd1Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18525bd32fd1Smrg#define $2 innocuous_$2 18535bd32fd1Smrg 18545bd32fd1Smrg/* System header to define __stub macros and hopefully few prototypes, 18555bd32fd1Smrg which can conflict with char $2 (); below. 18565bd32fd1Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18575bd32fd1Smrg <limits.h> exists even on freestanding compilers. */ 18585bd32fd1Smrg 18595bd32fd1Smrg#ifdef __STDC__ 18605bd32fd1Smrg# include <limits.h> 18615bd32fd1Smrg#else 18625bd32fd1Smrg# include <assert.h> 18635bd32fd1Smrg#endif 18645bd32fd1Smrg 18655bd32fd1Smrg#undef $2 18665bd32fd1Smrg 18675bd32fd1Smrg/* Override any GCC internal prototype to avoid an error. 18685bd32fd1Smrg Use char because int might match the return type of a GCC 18695bd32fd1Smrg builtin and then its argument prototype would still apply. */ 18705bd32fd1Smrg#ifdef __cplusplus 18715bd32fd1Smrgextern "C" 18725bd32fd1Smrg#endif 18735bd32fd1Smrgchar $2 (); 18745bd32fd1Smrg/* The GNU C library defines this for functions which it implements 18755bd32fd1Smrg to always fail with ENOSYS. Some functions are actually named 18765bd32fd1Smrg something starting with __ and the normal name is an alias. */ 18775bd32fd1Smrg#if defined __stub_$2 || defined __stub___$2 18785bd32fd1Smrgchoke me 18795bd32fd1Smrg#endif 18805bd32fd1Smrg 18815bd32fd1Smrgint 18825bd32fd1Smrgmain () 18835bd32fd1Smrg{ 18845bd32fd1Smrgreturn $2 (); 18855bd32fd1Smrg ; 18865bd32fd1Smrg return 0; 18875bd32fd1Smrg} 18885bd32fd1Smrg_ACEOF 18895bd32fd1Smrgif ac_fn_c_try_link "$LINENO"; then : 18905bd32fd1Smrg eval "$3=yes" 18915bd32fd1Smrgelse 18925bd32fd1Smrg eval "$3=no" 18935bd32fd1Smrgfi 18945bd32fd1Smrgrm -f core conftest.err conftest.$ac_objext \ 18955bd32fd1Smrg conftest$ac_exeext conftest.$ac_ext 18965bd32fd1Smrgfi 18975bd32fd1Smrgeval ac_res=\$$3 18985bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18995bd32fd1Smrg$as_echo "$ac_res" >&6; } 19005bd32fd1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 19015bd32fd1Smrg 19025bd32fd1Smrg} # ac_fn_c_check_func 19035bd32fd1Smrgcat >config.log <<_ACEOF 19045bd32fd1SmrgThis file contains any messages produced by compilers while 19055bd32fd1Smrgrunning configure, to aid debugging if configure makes a mistake. 19065bd32fd1Smrg 1907c74b14bdSmrgIt was created by xrdb $as_me 1.1.1, which was 1908c74b14bdSmrggenerated by GNU Autoconf 2.69. Invocation command line was 19095bd32fd1Smrg 19105bd32fd1Smrg $ $0 $@ 19115bd32fd1Smrg 19125bd32fd1Smrg_ACEOF 19135bd32fd1Smrgexec 5>>config.log 19145bd32fd1Smrg{ 19155bd32fd1Smrgcat <<_ASUNAME 19165bd32fd1Smrg## --------- ## 19175bd32fd1Smrg## Platform. ## 19185bd32fd1Smrg## --------- ## 19195bd32fd1Smrg 19205bd32fd1Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 19215bd32fd1Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 19225bd32fd1Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 19235bd32fd1Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 19245bd32fd1Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 19255bd32fd1Smrg 19265bd32fd1Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 19275bd32fd1Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 19285bd32fd1Smrg 19295bd32fd1Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 19305bd32fd1Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 19315bd32fd1Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 19325bd32fd1Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 19335bd32fd1Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 19345bd32fd1Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 19355bd32fd1Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 19365bd32fd1Smrg 19375bd32fd1Smrg_ASUNAME 19385bd32fd1Smrg 19395bd32fd1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19405bd32fd1Smrgfor as_dir in $PATH 19418b22bf3fSmrgdo 19428b22bf3fSmrg IFS=$as_save_IFS 19438b22bf3fSmrg test -z "$as_dir" && as_dir=. 19445bd32fd1Smrg $as_echo "PATH: $as_dir" 19455bd32fd1Smrg done 19468b22bf3fSmrgIFS=$as_save_IFS 19478b22bf3fSmrg 19488b22bf3fSmrg} >&5 19498b22bf3fSmrg 19508b22bf3fSmrgcat >&5 <<_ACEOF 19518b22bf3fSmrg 19528b22bf3fSmrg 19538b22bf3fSmrg## ----------- ## 19548b22bf3fSmrg## Core tests. ## 19558b22bf3fSmrg## ----------- ## 19568b22bf3fSmrg 19578b22bf3fSmrg_ACEOF 19588b22bf3fSmrg 19598b22bf3fSmrg 19608b22bf3fSmrg# Keep a trace of the command line. 19618b22bf3fSmrg# Strip out --no-create and --no-recursion so they do not pile up. 19628b22bf3fSmrg# Strip out --silent because we don't want to record it for future runs. 19638b22bf3fSmrg# Also quote any args containing shell meta-characters. 19648b22bf3fSmrg# Make two passes to allow for proper duplicate-argument suppression. 19658b22bf3fSmrgac_configure_args= 19668b22bf3fSmrgac_configure_args0= 19678b22bf3fSmrgac_configure_args1= 19688b22bf3fSmrgac_must_keep_next=false 19698b22bf3fSmrgfor ac_pass in 1 2 19708b22bf3fSmrgdo 19718b22bf3fSmrg for ac_arg 19728b22bf3fSmrg do 19738b22bf3fSmrg case $ac_arg in 19748b22bf3fSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 19758b22bf3fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19768b22bf3fSmrg | -silent | --silent | --silen | --sile | --sil) 19778b22bf3fSmrg continue ;; 19788b22bf3fSmrg *\'*) 197996a81b41Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 19808b22bf3fSmrg esac 19818b22bf3fSmrg case $ac_pass in 19825bd32fd1Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 19838b22bf3fSmrg 2) 19845bd32fd1Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 19858b22bf3fSmrg if test $ac_must_keep_next = true; then 19868b22bf3fSmrg ac_must_keep_next=false # Got value, back to normal. 19878b22bf3fSmrg else 19888b22bf3fSmrg case $ac_arg in 19898b22bf3fSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 19908b22bf3fSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 19918b22bf3fSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 19928b22bf3fSmrg | -with-* | --with-* | -without-* | --without-* | --x) 19938b22bf3fSmrg case "$ac_configure_args0 " in 19948b22bf3fSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 19958b22bf3fSmrg esac 19968b22bf3fSmrg ;; 19978b22bf3fSmrg -* ) ac_must_keep_next=true ;; 19988b22bf3fSmrg esac 19998b22bf3fSmrg fi 20005bd32fd1Smrg as_fn_append ac_configure_args " '$ac_arg'" 20018b22bf3fSmrg ;; 20028b22bf3fSmrg esac 20038b22bf3fSmrg done 20048b22bf3fSmrgdone 20055bd32fd1Smrg{ ac_configure_args0=; unset ac_configure_args0;} 20065bd32fd1Smrg{ ac_configure_args1=; unset ac_configure_args1;} 20078b22bf3fSmrg 20088b22bf3fSmrg# When interrupted or exit'd, cleanup temporary files, and complete 20098b22bf3fSmrg# config.log. We remove comments because anyway the quotes in there 20108b22bf3fSmrg# would cause problems or look ugly. 20118b22bf3fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 20128b22bf3fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 20138b22bf3fSmrgtrap 'exit_status=$? 20148b22bf3fSmrg # Save into config.log some information that might help in debugging. 20158b22bf3fSmrg { 20168b22bf3fSmrg echo 20178b22bf3fSmrg 20185bd32fd1Smrg $as_echo "## ---------------- ## 20198b22bf3fSmrg## Cache variables. ## 20205bd32fd1Smrg## ---------------- ##" 20218b22bf3fSmrg echo 20228b22bf3fSmrg # The following way of writing the cache mishandles newlines in values, 20238b22bf3fSmrg( 20248b22bf3fSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 20258b22bf3fSmrg eval ac_val=\$$ac_var 20268b22bf3fSmrg case $ac_val in #( 20278b22bf3fSmrg *${as_nl}*) 20288b22bf3fSmrg case $ac_var in #( 20295bd32fd1Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 203096a81b41Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20318b22bf3fSmrg esac 20328b22bf3fSmrg case $ac_var in #( 20338b22bf3fSmrg _ | IFS | as_nl) ;; #( 203496a81b41Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20355bd32fd1Smrg *) { eval $ac_var=; unset $ac_var;} ;; 20368b22bf3fSmrg esac ;; 20378b22bf3fSmrg esac 20388b22bf3fSmrg done 20398b22bf3fSmrg (set) 2>&1 | 20408b22bf3fSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 20418b22bf3fSmrg *${as_nl}ac_space=\ *) 20428b22bf3fSmrg sed -n \ 20438b22bf3fSmrg "s/'\''/'\''\\\\'\'''\''/g; 20448b22bf3fSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 20458b22bf3fSmrg ;; #( 20468b22bf3fSmrg *) 20478b22bf3fSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20488b22bf3fSmrg ;; 20498b22bf3fSmrg esac | 20508b22bf3fSmrg sort 20518b22bf3fSmrg) 20528b22bf3fSmrg echo 20538b22bf3fSmrg 20545bd32fd1Smrg $as_echo "## ----------------- ## 20558b22bf3fSmrg## Output variables. ## 20565bd32fd1Smrg## ----------------- ##" 20578b22bf3fSmrg echo 20588b22bf3fSmrg for ac_var in $ac_subst_vars 20598b22bf3fSmrg do 20608b22bf3fSmrg eval ac_val=\$$ac_var 20618b22bf3fSmrg case $ac_val in 206296a81b41Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 20638b22bf3fSmrg esac 206496a81b41Smrg $as_echo "$ac_var='\''$ac_val'\''" 20658b22bf3fSmrg done | sort 20668b22bf3fSmrg echo 20678b22bf3fSmrg 20688b22bf3fSmrg if test -n "$ac_subst_files"; then 20695bd32fd1Smrg $as_echo "## ------------------- ## 20708b22bf3fSmrg## File substitutions. ## 20715bd32fd1Smrg## ------------------- ##" 20728b22bf3fSmrg echo 20738b22bf3fSmrg for ac_var in $ac_subst_files 20748b22bf3fSmrg do 20758b22bf3fSmrg eval ac_val=\$$ac_var 20768b22bf3fSmrg case $ac_val in 207796a81b41Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 20788b22bf3fSmrg esac 207996a81b41Smrg $as_echo "$ac_var='\''$ac_val'\''" 20808b22bf3fSmrg done | sort 20818b22bf3fSmrg echo 20828b22bf3fSmrg fi 20838b22bf3fSmrg 20848b22bf3fSmrg if test -s confdefs.h; then 20855bd32fd1Smrg $as_echo "## ----------- ## 20868b22bf3fSmrg## confdefs.h. ## 20875bd32fd1Smrg## ----------- ##" 20888b22bf3fSmrg echo 20898b22bf3fSmrg cat confdefs.h 20908b22bf3fSmrg echo 20918b22bf3fSmrg fi 20928b22bf3fSmrg test "$ac_signal" != 0 && 209396a81b41Smrg $as_echo "$as_me: caught signal $ac_signal" 209496a81b41Smrg $as_echo "$as_me: exit $exit_status" 20958b22bf3fSmrg } >&5 20968b22bf3fSmrg rm -f core *.core core.conftest.* && 20978b22bf3fSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 20988b22bf3fSmrg exit $exit_status 20998b22bf3fSmrg' 0 21008b22bf3fSmrgfor ac_signal in 1 2 13 15; do 21015bd32fd1Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 21028b22bf3fSmrgdone 21038b22bf3fSmrgac_signal=0 21048b22bf3fSmrg 21058b22bf3fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 21068b22bf3fSmrgrm -f -r conftest* confdefs.h 21078b22bf3fSmrg 21085bd32fd1Smrg$as_echo "/* confdefs.h */" > confdefs.h 21095bd32fd1Smrg 21108b22bf3fSmrg# Predefined preprocessor variables. 21118b22bf3fSmrg 21128b22bf3fSmrgcat >>confdefs.h <<_ACEOF 21138b22bf3fSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 21148b22bf3fSmrg_ACEOF 21158b22bf3fSmrg 21168b22bf3fSmrgcat >>confdefs.h <<_ACEOF 21178b22bf3fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 21188b22bf3fSmrg_ACEOF 21198b22bf3fSmrg 21208b22bf3fSmrgcat >>confdefs.h <<_ACEOF 21218b22bf3fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 21228b22bf3fSmrg_ACEOF 21238b22bf3fSmrg 21248b22bf3fSmrgcat >>confdefs.h <<_ACEOF 21258b22bf3fSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 21268b22bf3fSmrg_ACEOF 21278b22bf3fSmrg 21288b22bf3fSmrgcat >>confdefs.h <<_ACEOF 21298b22bf3fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 21308b22bf3fSmrg_ACEOF 21318b22bf3fSmrg 21325bd32fd1Smrgcat >>confdefs.h <<_ACEOF 21335bd32fd1Smrg#define PACKAGE_URL "$PACKAGE_URL" 21345bd32fd1Smrg_ACEOF 21355bd32fd1Smrg 21368b22bf3fSmrg 21378b22bf3fSmrg# Let the site file select an alternate cache file if it wants to. 213896a81b41Smrg# Prefer an explicitly selected file to automatically selected ones. 213996a81b41Smrgac_site_file1=NONE 214096a81b41Smrgac_site_file2=NONE 21418b22bf3fSmrgif test -n "$CONFIG_SITE"; then 21425bd32fd1Smrg # We do not want a PATH search for config.site. 21435bd32fd1Smrg case $CONFIG_SITE in #(( 21445bd32fd1Smrg -*) ac_site_file1=./$CONFIG_SITE;; 21455bd32fd1Smrg */*) ac_site_file1=$CONFIG_SITE;; 21465bd32fd1Smrg *) ac_site_file1=./$CONFIG_SITE;; 21475bd32fd1Smrg esac 21488b22bf3fSmrgelif test "x$prefix" != xNONE; then 214996a81b41Smrg ac_site_file1=$prefix/share/config.site 215096a81b41Smrg ac_site_file2=$prefix/etc/config.site 21518b22bf3fSmrgelse 215296a81b41Smrg ac_site_file1=$ac_default_prefix/share/config.site 215396a81b41Smrg ac_site_file2=$ac_default_prefix/etc/config.site 21548b22bf3fSmrgfi 215596a81b41Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 21568b22bf3fSmrgdo 215796a81b41Smrg test "x$ac_site_file" = xNONE && continue 21585bd32fd1Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 21595bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 216096a81b41Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 21618b22bf3fSmrg sed 's/^/| /' "$ac_site_file" >&5 21625bd32fd1Smrg . "$ac_site_file" \ 21635bd32fd1Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21645bd32fd1Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21655bd32fd1Smrgas_fn_error $? "failed to load site script $ac_site_file 21665bd32fd1SmrgSee \`config.log' for more details" "$LINENO" 5; } 21678b22bf3fSmrg fi 21688b22bf3fSmrgdone 21698b22bf3fSmrg 21708b22bf3fSmrgif test -r "$cache_file"; then 21715bd32fd1Smrg # Some versions of bash will fail to source /dev/null (special files 21725bd32fd1Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 21735bd32fd1Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 21745bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 217596a81b41Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 21768b22bf3fSmrg case $cache_file in 21778b22bf3fSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 21788b22bf3fSmrg *) . "./$cache_file";; 21798b22bf3fSmrg esac 21808b22bf3fSmrg fi 21818b22bf3fSmrgelse 21825bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 218396a81b41Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 21848b22bf3fSmrg >$cache_file 21858b22bf3fSmrgfi 21868b22bf3fSmrg 21878b22bf3fSmrg# Check that the precious variables saved in the cache have kept the same 21888b22bf3fSmrg# value. 21898b22bf3fSmrgac_cache_corrupted=false 21908b22bf3fSmrgfor ac_var in $ac_precious_vars; do 21918b22bf3fSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 21928b22bf3fSmrg eval ac_new_set=\$ac_env_${ac_var}_set 21938b22bf3fSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 21948b22bf3fSmrg eval ac_new_val=\$ac_env_${ac_var}_value 21958b22bf3fSmrg case $ac_old_set,$ac_new_set in 21968b22bf3fSmrg set,) 21975bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 219896a81b41Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 21998b22bf3fSmrg ac_cache_corrupted=: ;; 22008b22bf3fSmrg ,set) 22015bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 220296a81b41Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 22038b22bf3fSmrg ac_cache_corrupted=: ;; 22048b22bf3fSmrg ,);; 22058b22bf3fSmrg *) 22068b22bf3fSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 220796a81b41Smrg # differences in whitespace do not lead to failure. 220896a81b41Smrg ac_old_val_w=`echo x $ac_old_val` 220996a81b41Smrg ac_new_val_w=`echo x $ac_new_val` 221096a81b41Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 22115bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 221296a81b41Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 221396a81b41Smrg ac_cache_corrupted=: 221496a81b41Smrg else 22155bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 221696a81b41Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 221796a81b41Smrg eval $ac_var=\$ac_old_val 221896a81b41Smrg fi 22195bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 222096a81b41Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 22215bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 222296a81b41Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 22238b22bf3fSmrg fi;; 22248b22bf3fSmrg esac 22258b22bf3fSmrg # Pass precious variables to config.status. 22268b22bf3fSmrg if test "$ac_new_set" = set; then 22278b22bf3fSmrg case $ac_new_val in 222896a81b41Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 22298b22bf3fSmrg *) ac_arg=$ac_var=$ac_new_val ;; 22308b22bf3fSmrg esac 22318b22bf3fSmrg case " $ac_configure_args " in 22328b22bf3fSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 22335bd32fd1Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 22348b22bf3fSmrg esac 22358b22bf3fSmrg fi 22368b22bf3fSmrgdone 22378b22bf3fSmrgif $ac_cache_corrupted; then 22385bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 223996a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22405bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 224196a81b41Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 22425bd32fd1Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 22438b22bf3fSmrgfi 22445bd32fd1Smrg## -------------------- ## 22455bd32fd1Smrg## Main body of script. ## 22465bd32fd1Smrg## -------------------- ## 22478b22bf3fSmrg 22488b22bf3fSmrgac_ext=c 22498b22bf3fSmrgac_cpp='$CPP $CPPFLAGS' 22508b22bf3fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22518b22bf3fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22528b22bf3fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 22538b22bf3fSmrg 22548b22bf3fSmrg 22555bd32fd1Smrg 22565bd32fd1Smrgac_config_headers="$ac_config_headers config.h" 22575bd32fd1Smrg 2258c74b14bdSmrgac_aux_dir= 2259c74b14bdSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2260c74b14bdSmrg if test -f "$ac_dir/install-sh"; then 2261c74b14bdSmrg ac_aux_dir=$ac_dir 2262c74b14bdSmrg ac_install_sh="$ac_aux_dir/install-sh -c" 2263c74b14bdSmrg break 2264c74b14bdSmrg elif test -f "$ac_dir/install.sh"; then 2265c74b14bdSmrg ac_aux_dir=$ac_dir 2266c74b14bdSmrg ac_install_sh="$ac_aux_dir/install.sh -c" 2267c74b14bdSmrg break 2268c74b14bdSmrg elif test -f "$ac_dir/shtool"; then 2269c74b14bdSmrg ac_aux_dir=$ac_dir 2270c74b14bdSmrg ac_install_sh="$ac_aux_dir/shtool install -c" 2271c74b14bdSmrg break 2272c74b14bdSmrg fi 2273c74b14bdSmrgdone 2274c74b14bdSmrgif test -z "$ac_aux_dir"; then 2275c74b14bdSmrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2276c74b14bdSmrgfi 2277c74b14bdSmrg 2278c74b14bdSmrg# These three variables are undocumented and unsupported, 2279c74b14bdSmrg# and are intended to be withdrawn in a future Autoconf release. 2280c74b14bdSmrg# They can cause serious problems if a builder's source tree is in a directory 2281c74b14bdSmrg# whose full name contains unusual characters. 2282c74b14bdSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2283c74b14bdSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2284c74b14bdSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2285c74b14bdSmrg 2286c74b14bdSmrg 2287c74b14bdSmrg# Expand $ac_aux_dir to an absolute path. 2288c74b14bdSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 2289f126e068Smrg 2290d13010c3Smrgac_ext=c 2291d13010c3Smrgac_cpp='$CPP $CPPFLAGS' 2292d13010c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2293d13010c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2294d13010c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2295d13010c3Smrgif test -n "$ac_tool_prefix"; then 2296d13010c3Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2297d13010c3Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2298d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2299d13010c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2300d13010c3Smrgif ${ac_cv_prog_CC+:} false; then : 230196a81b41Smrg $as_echo_n "(cached) " >&6 23028b22bf3fSmrgelse 2303d13010c3Smrg if test -n "$CC"; then 2304d13010c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2305d13010c3Smrgelse 2306d13010c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23078b22bf3fSmrgfor as_dir in $PATH 23088b22bf3fSmrgdo 23098b22bf3fSmrg IFS=$as_save_IFS 23108b22bf3fSmrg test -z "$as_dir" && as_dir=. 2311d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2312c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2313d13010c3Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2314d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2315d13010c3Smrg break 2 2316d13010c3Smrg fi 2317d13010c3Smrgdone 23185bd32fd1Smrg done 23198b22bf3fSmrgIFS=$as_save_IFS 23208b22bf3fSmrg 23218b22bf3fSmrgfi 23228b22bf3fSmrgfi 2323d13010c3SmrgCC=$ac_cv_prog_CC 2324d13010c3Smrgif test -n "$CC"; then 2325d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2326d13010c3Smrg$as_echo "$CC" >&6; } 23278b22bf3fSmrgelse 2328d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2329d13010c3Smrg$as_echo "no" >&6; } 23308b22bf3fSmrgfi 23318b22bf3fSmrg 23328b22bf3fSmrg 233396a81b41Smrgfi 2334d13010c3Smrgif test -z "$ac_cv_prog_CC"; then 2335d13010c3Smrg ac_ct_CC=$CC 2336d13010c3Smrg # Extract the first word of "gcc", so it can be a program name with args. 2337d13010c3Smrgset dummy gcc; ac_word=$2 23385bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 233996a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; } 2340d13010c3Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 234196a81b41Smrg $as_echo_n "(cached) " >&6 234296a81b41Smrgelse 2343d13010c3Smrg if test -n "$ac_ct_CC"; then 2344d13010c3Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 234596a81b41Smrgelse 234696a81b41Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 234796a81b41Smrgfor as_dir in $PATH 234896a81b41Smrgdo 234996a81b41Smrg IFS=$as_save_IFS 235096a81b41Smrg test -z "$as_dir" && as_dir=. 23515bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2352c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2353d13010c3Smrg ac_cv_prog_ac_ct_CC="gcc" 23545bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 235596a81b41Smrg break 2 235696a81b41Smrg fi 235796a81b41Smrgdone 23585bd32fd1Smrg done 235996a81b41SmrgIFS=$as_save_IFS 236096a81b41Smrg 236196a81b41Smrgfi 236296a81b41Smrgfi 2363d13010c3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2364d13010c3Smrgif test -n "$ac_ct_CC"; then 2365d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2366d13010c3Smrg$as_echo "$ac_ct_CC" >&6; } 236796a81b41Smrgelse 23685bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 236996a81b41Smrg$as_echo "no" >&6; } 237096a81b41Smrgfi 237196a81b41Smrg 2372d13010c3Smrg if test "x$ac_ct_CC" = x; then 2373d13010c3Smrg CC="" 2374d13010c3Smrg else 2375d13010c3Smrg case $cross_compiling:$ac_tool_warned in 2376d13010c3Smrgyes:) 2377d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2378d13010c3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2379d13010c3Smrgac_tool_warned=yes ;; 2380d13010c3Smrgesac 2381d13010c3Smrg CC=$ac_ct_CC 2382d13010c3Smrg fi 2383d13010c3Smrgelse 2384d13010c3Smrg CC="$ac_cv_prog_CC" 238596a81b41Smrgfi 2386d13010c3Smrg 2387d13010c3Smrgif test -z "$CC"; then 2388d13010c3Smrg if test -n "$ac_tool_prefix"; then 2389d13010c3Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2390d13010c3Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 23915bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 239296a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; } 2393d13010c3Smrgif ${ac_cv_prog_CC+:} false; then : 239496a81b41Smrg $as_echo_n "(cached) " >&6 239596a81b41Smrgelse 2396d13010c3Smrg if test -n "$CC"; then 2397d13010c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 239896a81b41Smrgelse 239996a81b41Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 240096a81b41Smrgfor as_dir in $PATH 240196a81b41Smrgdo 240296a81b41Smrg IFS=$as_save_IFS 240396a81b41Smrg test -z "$as_dir" && as_dir=. 24045bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2405c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2406d13010c3Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 24075bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 240896a81b41Smrg break 2 240996a81b41Smrg fi 241096a81b41Smrgdone 24115bd32fd1Smrg done 241296a81b41SmrgIFS=$as_save_IFS 241396a81b41Smrg 241496a81b41Smrgfi 241596a81b41Smrgfi 2416d13010c3SmrgCC=$ac_cv_prog_CC 2417d13010c3Smrgif test -n "$CC"; then 2418d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2419d13010c3Smrg$as_echo "$CC" >&6; } 242096a81b41Smrgelse 24215bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 242296a81b41Smrg$as_echo "no" >&6; } 242396a81b41Smrgfi 242496a81b41Smrg 242596a81b41Smrg 2426d13010c3Smrg fi 242796a81b41Smrgfi 2428d13010c3Smrgif test -z "$CC"; then 2429d13010c3Smrg # Extract the first word of "cc", so it can be a program name with args. 2430d13010c3Smrgset dummy cc; ac_word=$2 2431d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2432d13010c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2433d13010c3Smrgif ${ac_cv_prog_CC+:} false; then : 243496a81b41Smrg $as_echo_n "(cached) " >&6 243596a81b41Smrgelse 2436d13010c3Smrg if test -n "$CC"; then 2437d13010c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2438d13010c3Smrgelse 2439d13010c3Smrg ac_prog_rejected=no 2440d13010c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441d13010c3Smrgfor as_dir in $PATH 24428b22bf3fSmrgdo 24438b22bf3fSmrg IFS=$as_save_IFS 24448b22bf3fSmrg test -z "$as_dir" && as_dir=. 2445d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2446c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2447d13010c3Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2448d13010c3Smrg ac_prog_rejected=yes 2449d13010c3Smrg continue 2450d13010c3Smrg fi 2451d13010c3Smrg ac_cv_prog_CC="cc" 2452d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2453d13010c3Smrg break 2 2454d13010c3Smrg fi 2455d13010c3Smrgdone 24565bd32fd1Smrg done 24578b22bf3fSmrgIFS=$as_save_IFS 24588b22bf3fSmrg 2459d13010c3Smrgif test $ac_prog_rejected = yes; then 2460d13010c3Smrg # We found a bogon in the path, so make sure we never use it. 2461d13010c3Smrg set dummy $ac_cv_prog_CC 2462d13010c3Smrg shift 2463d13010c3Smrg if test $# != 0; then 2464d13010c3Smrg # We chose a different compiler from the bogus one. 2465d13010c3Smrg # However, it has the same basename, so the bogon will be chosen 2466d13010c3Smrg # first if we set CC to just the basename; use the full file name. 2467d13010c3Smrg shift 2468d13010c3Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 24698b22bf3fSmrg fi 24708b22bf3fSmrgfi 2471d13010c3Smrgfi 2472d13010c3Smrgfi 2473d13010c3SmrgCC=$ac_cv_prog_CC 2474d13010c3Smrgif test -n "$CC"; then 2475d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2476d13010c3Smrg$as_echo "$CC" >&6; } 2477d13010c3Smrgelse 2478d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2479d13010c3Smrg$as_echo "no" >&6; } 2480d13010c3Smrgfi 24818b22bf3fSmrg 24828b22bf3fSmrg 2483d13010c3Smrgfi 2484d13010c3Smrgif test -z "$CC"; then 2485d13010c3Smrg if test -n "$ac_tool_prefix"; then 2486d13010c3Smrg for ac_prog in cl.exe 2487d13010c3Smrg do 2488d13010c3Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2489d13010c3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 24905bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 249196a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; } 2492d13010c3Smrgif ${ac_cv_prog_CC+:} false; then : 249396a81b41Smrg $as_echo_n "(cached) " >&6 24948b22bf3fSmrgelse 2495d13010c3Smrg if test -n "$CC"; then 2496d13010c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 24978b22bf3fSmrgelse 24988b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24998b22bf3fSmrgfor as_dir in $PATH 25008b22bf3fSmrgdo 25018b22bf3fSmrg IFS=$as_save_IFS 25028b22bf3fSmrg test -z "$as_dir" && as_dir=. 25035bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2504c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2505d13010c3Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 25065bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25078b22bf3fSmrg break 2 25088b22bf3fSmrg fi 25098b22bf3fSmrgdone 25105bd32fd1Smrg done 25118b22bf3fSmrgIFS=$as_save_IFS 25128b22bf3fSmrg 25138b22bf3fSmrgfi 25148b22bf3fSmrgfi 2515d13010c3SmrgCC=$ac_cv_prog_CC 2516d13010c3Smrgif test -n "$CC"; then 2517d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2518d13010c3Smrg$as_echo "$CC" >&6; } 25198b22bf3fSmrgelse 25205bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 252196a81b41Smrg$as_echo "no" >&6; } 25228b22bf3fSmrgfi 25238b22bf3fSmrg 25248b22bf3fSmrg 2525d13010c3Smrg test -n "$CC" && break 2526d13010c3Smrg done 2527d13010c3Smrgfi 2528d13010c3Smrgif test -z "$CC"; then 2529d13010c3Smrg ac_ct_CC=$CC 2530d13010c3Smrg for ac_prog in cl.exe 2531d13010c3Smrgdo 2532d13010c3Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2533d13010c3Smrgset dummy $ac_prog; ac_word=$2 2534d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2535d13010c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2536d13010c3Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 253796a81b41Smrg $as_echo_n "(cached) " >&6 25388b22bf3fSmrgelse 2539d13010c3Smrg if test -n "$ac_ct_CC"; then 2540d13010c3Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2541d13010c3Smrgelse 2542d13010c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2543d13010c3Smrgfor as_dir in $PATH 2544d13010c3Smrgdo 2545d13010c3Smrg IFS=$as_save_IFS 2546d13010c3Smrg test -z "$as_dir" && as_dir=. 2547d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2548c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2549d13010c3Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 2550d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2551d13010c3Smrg break 2 2552d13010c3Smrg fi 2553d13010c3Smrgdone 2554d13010c3Smrg done 2555d13010c3SmrgIFS=$as_save_IFS 2556d13010c3Smrg 25578b22bf3fSmrgfi 2558d13010c3Smrgfi 2559d13010c3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2560d13010c3Smrgif test -n "$ac_ct_CC"; then 2561d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2562d13010c3Smrg$as_echo "$ac_ct_CC" >&6; } 25638b22bf3fSmrgelse 25645bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 256596a81b41Smrg$as_echo "no" >&6; } 25668b22bf3fSmrgfi 25678b22bf3fSmrg 25688b22bf3fSmrg 2569d13010c3Smrg test -n "$ac_ct_CC" && break 2570d13010c3Smrgdone 25718b22bf3fSmrg 2572d13010c3Smrg if test "x$ac_ct_CC" = x; then 2573d13010c3Smrg CC="" 25748b22bf3fSmrg else 2575d13010c3Smrg case $cross_compiling:$ac_tool_warned in 2576d13010c3Smrgyes:) 2577d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2578d13010c3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2579d13010c3Smrgac_tool_warned=yes ;; 2580d13010c3Smrgesac 2581d13010c3Smrg CC=$ac_ct_CC 25828b22bf3fSmrg fi 25838b22bf3fSmrgfi 25848b22bf3fSmrg 2585d13010c3Smrgfi 25868b22bf3fSmrg 25878b22bf3fSmrg 2588d13010c3Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2589d13010c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2590d13010c3Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 2591d13010c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 25928b22bf3fSmrg 2593d13010c3Smrg# Provide some information about the compiler. 2594d13010c3Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2595d13010c3Smrgset X $ac_compile 2596d13010c3Smrgac_compiler=$2 2597d13010c3Smrgfor ac_option in --version -v -V -qversion; do 2598d13010c3Smrg { { ac_try="$ac_compiler $ac_option >&5" 2599d13010c3Smrgcase "(($ac_try" in 2600d13010c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2601d13010c3Smrg *) ac_try_echo=$ac_try;; 2602d13010c3Smrgesac 2603d13010c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2604d13010c3Smrg$as_echo "$ac_try_echo"; } >&5 2605d13010c3Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2606d13010c3Smrg ac_status=$? 2607d13010c3Smrg if test -s conftest.err; then 2608d13010c3Smrg sed '10a\ 2609d13010c3Smrg... rest of stderr output deleted ... 2610d13010c3Smrg 10q' conftest.err >conftest.er1 2611d13010c3Smrg cat conftest.er1 >&5 2612d13010c3Smrg fi 2613d13010c3Smrg rm -f conftest.er1 conftest.err 2614d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2615d13010c3Smrg test $ac_status = 0; } 2616d13010c3Smrgdone 26178b22bf3fSmrg 2618d13010c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2619d13010c3Smrg/* end confdefs.h. */ 26208b22bf3fSmrg 2621d13010c3Smrgint 2622d13010c3Smrgmain () 2623d13010c3Smrg{ 26248b22bf3fSmrg 2625d13010c3Smrg ; 2626d13010c3Smrg return 0; 2627d13010c3Smrg} 2628d13010c3Smrg_ACEOF 2629d13010c3Smrgac_clean_files_save=$ac_clean_files 2630d13010c3Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2631d13010c3Smrg# Try to create an executable without -o first, disregard a.out. 2632d13010c3Smrg# It will help us diagnose broken compilers, and finding out an intuition 2633d13010c3Smrg# of exeext. 2634d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2635d13010c3Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 2636d13010c3Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 26378b22bf3fSmrg 2638d13010c3Smrg# The possible output files: 2639d13010c3Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 26408b22bf3fSmrg 2641d13010c3Smrgac_rmfiles= 2642d13010c3Smrgfor ac_file in $ac_files 2643d13010c3Smrgdo 2644d13010c3Smrg case $ac_file in 2645d13010c3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2646d13010c3Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2647d13010c3Smrg esac 2648d13010c3Smrgdone 2649d13010c3Smrgrm -f $ac_rmfiles 26508b22bf3fSmrg 2651d13010c3Smrgif { { ac_try="$ac_link_default" 2652d13010c3Smrgcase "(($ac_try" in 2653d13010c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2654d13010c3Smrg *) ac_try_echo=$ac_try;; 2655d13010c3Smrgesac 2656d13010c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2657d13010c3Smrg$as_echo "$ac_try_echo"; } >&5 2658d13010c3Smrg (eval "$ac_link_default") 2>&5 2659d13010c3Smrg ac_status=$? 2660d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2661d13010c3Smrg test $ac_status = 0; }; then : 2662d13010c3Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2663d13010c3Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2664d13010c3Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 2665d13010c3Smrg# so that the user can short-circuit this test for compilers unknown to 2666d13010c3Smrg# Autoconf. 2667d13010c3Smrgfor ac_file in $ac_files '' 2668d13010c3Smrgdo 2669d13010c3Smrg test -f "$ac_file" || continue 2670d13010c3Smrg case $ac_file in 2671d13010c3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2672d13010c3Smrg ;; 2673d13010c3Smrg [ab].out ) 2674d13010c3Smrg # We found the default executable, but exeext='' is most 2675d13010c3Smrg # certainly right. 2676d13010c3Smrg break;; 2677d13010c3Smrg *.* ) 2678d13010c3Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2679d13010c3Smrg then :; else 2680d13010c3Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2681d13010c3Smrg fi 2682d13010c3Smrg # We set ac_cv_exeext here because the later test for it is not 2683d13010c3Smrg # safe: cross compilers may not add the suffix if given an `-o' 2684d13010c3Smrg # argument, so we may need to know it at that point already. 2685d13010c3Smrg # Even if this section looks crufty: it has the advantage of 2686d13010c3Smrg # actually working. 2687d13010c3Smrg break;; 2688d13010c3Smrg * ) 2689d13010c3Smrg break;; 2690d13010c3Smrg esac 2691d13010c3Smrgdone 2692d13010c3Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 2693d13010c3Smrg 2694d13010c3Smrgelse 2695d13010c3Smrg ac_file='' 2696d13010c3Smrgfi 2697d13010c3Smrgif test -z "$ac_file"; then : 2698d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2699d13010c3Smrg$as_echo "no" >&6; } 2700d13010c3Smrg$as_echo "$as_me: failed program was:" >&5 2701d13010c3Smrgsed 's/^/| /' conftest.$ac_ext >&5 2702d13010c3Smrg 2703d13010c3Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2704d13010c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2705d13010c3Smrgas_fn_error 77 "C compiler cannot create executables 2706d13010c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 2707d13010c3Smrgelse 2708d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2709d13010c3Smrg$as_echo "yes" >&6; } 2710d13010c3Smrgfi 2711d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2712d13010c3Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 2713d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2714d13010c3Smrg$as_echo "$ac_file" >&6; } 2715d13010c3Smrgac_exeext=$ac_cv_exeext 2716d13010c3Smrg 2717d13010c3Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2718d13010c3Smrgac_clean_files=$ac_clean_files_save 2719d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2720d13010c3Smrg$as_echo_n "checking for suffix of executables... " >&6; } 2721d13010c3Smrgif { { ac_try="$ac_link" 2722d13010c3Smrgcase "(($ac_try" in 2723d13010c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2724d13010c3Smrg *) ac_try_echo=$ac_try;; 2725d13010c3Smrgesac 2726d13010c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2727d13010c3Smrg$as_echo "$ac_try_echo"; } >&5 2728d13010c3Smrg (eval "$ac_link") 2>&5 2729d13010c3Smrg ac_status=$? 2730d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2731d13010c3Smrg test $ac_status = 0; }; then : 2732d13010c3Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 2733d13010c3Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2734d13010c3Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 2735d13010c3Smrg# `rm'. 2736d13010c3Smrgfor ac_file in conftest.exe conftest conftest.*; do 2737d13010c3Smrg test -f "$ac_file" || continue 2738d13010c3Smrg case $ac_file in 2739d13010c3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2740d13010c3Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2741d13010c3Smrg break;; 2742d13010c3Smrg * ) break;; 2743d13010c3Smrg esac 2744d13010c3Smrgdone 2745d13010c3Smrgelse 2746d13010c3Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2747d13010c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2748d13010c3Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 2749d13010c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 2750d13010c3Smrgfi 2751d13010c3Smrgrm -f conftest conftest$ac_cv_exeext 2752d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2753d13010c3Smrg$as_echo "$ac_cv_exeext" >&6; } 2754d13010c3Smrg 2755d13010c3Smrgrm -f conftest.$ac_ext 2756d13010c3SmrgEXEEXT=$ac_cv_exeext 2757d13010c3Smrgac_exeext=$EXEEXT 2758d13010c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2759d13010c3Smrg/* end confdefs.h. */ 2760d13010c3Smrg#include <stdio.h> 2761d13010c3Smrgint 2762d13010c3Smrgmain () 2763d13010c3Smrg{ 2764d13010c3SmrgFILE *f = fopen ("conftest.out", "w"); 2765d13010c3Smrg return ferror (f) || fclose (f) != 0; 2766d13010c3Smrg 2767d13010c3Smrg ; 2768d13010c3Smrg return 0; 2769d13010c3Smrg} 2770d13010c3Smrg_ACEOF 2771d13010c3Smrgac_clean_files="$ac_clean_files conftest.out" 2772d13010c3Smrg# Check that the compiler produces executables we can run. If not, either 2773d13010c3Smrg# the compiler is broken, or we cross compile. 2774d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2775d13010c3Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 2776d13010c3Smrgif test "$cross_compiling" != yes; then 2777d13010c3Smrg { { ac_try="$ac_link" 2778d13010c3Smrgcase "(($ac_try" in 2779d13010c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2780d13010c3Smrg *) ac_try_echo=$ac_try;; 2781d13010c3Smrgesac 2782d13010c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2783d13010c3Smrg$as_echo "$ac_try_echo"; } >&5 2784d13010c3Smrg (eval "$ac_link") 2>&5 2785d13010c3Smrg ac_status=$? 2786d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2787d13010c3Smrg test $ac_status = 0; } 2788d13010c3Smrg if { ac_try='./conftest$ac_cv_exeext' 2789d13010c3Smrg { { case "(($ac_try" in 2790d13010c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2791d13010c3Smrg *) ac_try_echo=$ac_try;; 2792d13010c3Smrgesac 2793d13010c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2794d13010c3Smrg$as_echo "$ac_try_echo"; } >&5 2795d13010c3Smrg (eval "$ac_try") 2>&5 2796d13010c3Smrg ac_status=$? 2797d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2798d13010c3Smrg test $ac_status = 0; }; }; then 2799d13010c3Smrg cross_compiling=no 2800d13010c3Smrg else 2801d13010c3Smrg if test "$cross_compiling" = maybe; then 2802d13010c3Smrg cross_compiling=yes 2803d13010c3Smrg else 2804d13010c3Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2805d13010c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2806d13010c3Smrgas_fn_error $? "cannot run C compiled programs. 2807d13010c3SmrgIf you meant to cross compile, use \`--host'. 2808d13010c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 2809d13010c3Smrg fi 2810d13010c3Smrg fi 2811d13010c3Smrgfi 2812d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2813d13010c3Smrg$as_echo "$cross_compiling" >&6; } 2814d13010c3Smrg 2815d13010c3Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2816d13010c3Smrgac_clean_files=$ac_clean_files_save 2817d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2818d13010c3Smrg$as_echo_n "checking for suffix of object files... " >&6; } 2819d13010c3Smrgif ${ac_cv_objext+:} false; then : 2820d13010c3Smrg $as_echo_n "(cached) " >&6 2821d13010c3Smrgelse 2822d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2823d13010c3Smrg/* end confdefs.h. */ 2824d13010c3Smrg 2825d13010c3Smrgint 2826d13010c3Smrgmain () 2827d13010c3Smrg{ 2828d13010c3Smrg 2829d13010c3Smrg ; 2830d13010c3Smrg return 0; 2831d13010c3Smrg} 2832d13010c3Smrg_ACEOF 2833d13010c3Smrgrm -f conftest.o conftest.obj 2834d13010c3Smrgif { { ac_try="$ac_compile" 2835d13010c3Smrgcase "(($ac_try" in 2836d13010c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2837d13010c3Smrg *) ac_try_echo=$ac_try;; 2838d13010c3Smrgesac 2839d13010c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2840d13010c3Smrg$as_echo "$ac_try_echo"; } >&5 2841d13010c3Smrg (eval "$ac_compile") 2>&5 2842d13010c3Smrg ac_status=$? 2843d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2844d13010c3Smrg test $ac_status = 0; }; then : 2845d13010c3Smrg for ac_file in conftest.o conftest.obj conftest.*; do 2846d13010c3Smrg test -f "$ac_file" || continue; 2847d13010c3Smrg case $ac_file in 2848d13010c3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2849d13010c3Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2850d13010c3Smrg break;; 2851d13010c3Smrg esac 2852d13010c3Smrgdone 2853d13010c3Smrgelse 2854d13010c3Smrg $as_echo "$as_me: failed program was:" >&5 2855d13010c3Smrgsed 's/^/| /' conftest.$ac_ext >&5 2856d13010c3Smrg 2857d13010c3Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2858d13010c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2859d13010c3Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 2860d13010c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 2861d13010c3Smrgfi 2862d13010c3Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 2863d13010c3Smrgfi 2864d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2865d13010c3Smrg$as_echo "$ac_cv_objext" >&6; } 2866d13010c3SmrgOBJEXT=$ac_cv_objext 2867d13010c3Smrgac_objext=$OBJEXT 2868d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2869d13010c3Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2870d13010c3Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 2871d13010c3Smrg $as_echo_n "(cached) " >&6 2872d13010c3Smrgelse 2873d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2874d13010c3Smrg/* end confdefs.h. */ 2875d13010c3Smrg 2876d13010c3Smrgint 2877d13010c3Smrgmain () 2878d13010c3Smrg{ 2879d13010c3Smrg#ifndef __GNUC__ 2880d13010c3Smrg choke me 2881d13010c3Smrg#endif 2882d13010c3Smrg 2883d13010c3Smrg ; 2884d13010c3Smrg return 0; 2885d13010c3Smrg} 2886d13010c3Smrg_ACEOF 2887d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 2888d13010c3Smrg ac_compiler_gnu=yes 2889d13010c3Smrgelse 2890d13010c3Smrg ac_compiler_gnu=no 2891d13010c3Smrgfi 2892d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2893d13010c3Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 2894d13010c3Smrg 2895d13010c3Smrgfi 2896d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2897d13010c3Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2898d13010c3Smrgif test $ac_compiler_gnu = yes; then 2899d13010c3Smrg GCC=yes 2900d13010c3Smrgelse 2901d13010c3Smrg GCC= 2902d13010c3Smrgfi 2903d13010c3Smrgac_test_CFLAGS=${CFLAGS+set} 2904d13010c3Smrgac_save_CFLAGS=$CFLAGS 2905d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2906d13010c3Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 2907d13010c3Smrgif ${ac_cv_prog_cc_g+:} false; then : 2908d13010c3Smrg $as_echo_n "(cached) " >&6 2909d13010c3Smrgelse 2910d13010c3Smrg ac_save_c_werror_flag=$ac_c_werror_flag 2911d13010c3Smrg ac_c_werror_flag=yes 2912d13010c3Smrg ac_cv_prog_cc_g=no 2913d13010c3Smrg CFLAGS="-g" 2914d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2915d13010c3Smrg/* end confdefs.h. */ 2916d13010c3Smrg 2917d13010c3Smrgint 2918d13010c3Smrgmain () 2919d13010c3Smrg{ 2920d13010c3Smrg 2921d13010c3Smrg ; 2922d13010c3Smrg return 0; 2923d13010c3Smrg} 2924d13010c3Smrg_ACEOF 2925d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 2926d13010c3Smrg ac_cv_prog_cc_g=yes 2927d13010c3Smrgelse 2928d13010c3Smrg CFLAGS="" 2929d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2930d13010c3Smrg/* end confdefs.h. */ 2931d13010c3Smrg 2932d13010c3Smrgint 2933d13010c3Smrgmain () 2934d13010c3Smrg{ 2935d13010c3Smrg 2936d13010c3Smrg ; 2937d13010c3Smrg return 0; 2938d13010c3Smrg} 2939d13010c3Smrg_ACEOF 2940d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 2941d13010c3Smrg 2942d13010c3Smrgelse 2943d13010c3Smrg ac_c_werror_flag=$ac_save_c_werror_flag 2944d13010c3Smrg CFLAGS="-g" 2945d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2946d13010c3Smrg/* end confdefs.h. */ 2947d13010c3Smrg 2948d13010c3Smrgint 2949d13010c3Smrgmain () 2950d13010c3Smrg{ 2951d13010c3Smrg 2952d13010c3Smrg ; 2953d13010c3Smrg return 0; 2954d13010c3Smrg} 2955d13010c3Smrg_ACEOF 2956d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 2957d13010c3Smrg ac_cv_prog_cc_g=yes 2958d13010c3Smrgfi 2959d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2960d13010c3Smrgfi 2961d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2962d13010c3Smrgfi 2963d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2964d13010c3Smrg ac_c_werror_flag=$ac_save_c_werror_flag 2965d13010c3Smrgfi 2966d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2967d13010c3Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 2968d13010c3Smrgif test "$ac_test_CFLAGS" = set; then 2969d13010c3Smrg CFLAGS=$ac_save_CFLAGS 2970d13010c3Smrgelif test $ac_cv_prog_cc_g = yes; then 2971d13010c3Smrg if test "$GCC" = yes; then 2972d13010c3Smrg CFLAGS="-g -O2" 2973d13010c3Smrg else 2974d13010c3Smrg CFLAGS="-g" 2975d13010c3Smrg fi 2976d13010c3Smrgelse 2977d13010c3Smrg if test "$GCC" = yes; then 2978d13010c3Smrg CFLAGS="-O2" 2979d13010c3Smrg else 2980d13010c3Smrg CFLAGS= 2981d13010c3Smrg fi 2982d13010c3Smrgfi 2983d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2984d13010c3Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2985d13010c3Smrgif ${ac_cv_prog_cc_c89+:} false; then : 2986d13010c3Smrg $as_echo_n "(cached) " >&6 2987d13010c3Smrgelse 2988d13010c3Smrg ac_cv_prog_cc_c89=no 2989d13010c3Smrgac_save_CC=$CC 2990d13010c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2991d13010c3Smrg/* end confdefs.h. */ 2992d13010c3Smrg#include <stdarg.h> 2993d13010c3Smrg#include <stdio.h> 2994c74b14bdSmrgstruct stat; 2995d13010c3Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2996d13010c3Smrgstruct buf { int x; }; 2997d13010c3SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 2998d13010c3Smrgstatic char *e (p, i) 2999d13010c3Smrg char **p; 3000d13010c3Smrg int i; 3001d13010c3Smrg{ 3002d13010c3Smrg return p[i]; 3003d13010c3Smrg} 3004d13010c3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3005d13010c3Smrg{ 3006d13010c3Smrg char *s; 3007d13010c3Smrg va_list v; 3008d13010c3Smrg va_start (v,p); 3009d13010c3Smrg s = g (p, va_arg (v,int)); 3010d13010c3Smrg va_end (v); 3011d13010c3Smrg return s; 3012d13010c3Smrg} 3013d13010c3Smrg 3014d13010c3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3015d13010c3Smrg function prototypes and stuff, but not '\xHH' hex character constants. 3016d13010c3Smrg These don't provoke an error unfortunately, instead are silently treated 3017d13010c3Smrg as 'x'. The following induces an error, until -std is added to get 3018d13010c3Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3019d13010c3Smrg array size at least. It's necessary to write '\x00'==0 to get something 3020d13010c3Smrg that's true only with -std. */ 3021d13010c3Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3022d13010c3Smrg 3023d13010c3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3024d13010c3Smrg inside strings and character constants. */ 3025d13010c3Smrg#define FOO(x) 'x' 3026d13010c3Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3027d13010c3Smrg 3028d13010c3Smrgint test (int i, double x); 3029d13010c3Smrgstruct s1 {int (*f) (int a);}; 3030d13010c3Smrgstruct s2 {int (*f) (double a);}; 3031d13010c3Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3032d13010c3Smrgint argc; 3033d13010c3Smrgchar **argv; 3034d13010c3Smrgint 3035d13010c3Smrgmain () 3036d13010c3Smrg{ 3037d13010c3Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3038d13010c3Smrg ; 3039d13010c3Smrg return 0; 3040d13010c3Smrg} 3041d13010c3Smrg_ACEOF 3042d13010c3Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3043d13010c3Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3044d13010c3Smrgdo 3045d13010c3Smrg CC="$ac_save_CC $ac_arg" 3046d13010c3Smrg if ac_fn_c_try_compile "$LINENO"; then : 3047d13010c3Smrg ac_cv_prog_cc_c89=$ac_arg 3048d13010c3Smrgfi 3049d13010c3Smrgrm -f core conftest.err conftest.$ac_objext 3050d13010c3Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3051d13010c3Smrgdone 3052d13010c3Smrgrm -f conftest.$ac_ext 3053d13010c3SmrgCC=$ac_save_CC 3054d13010c3Smrg 3055d13010c3Smrgfi 3056d13010c3Smrg# AC_CACHE_VAL 3057d13010c3Smrgcase "x$ac_cv_prog_cc_c89" in 3058d13010c3Smrg x) 3059d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3060d13010c3Smrg$as_echo "none needed" >&6; } ;; 3061d13010c3Smrg xno) 3062d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3063d13010c3Smrg$as_echo "unsupported" >&6; } ;; 3064d13010c3Smrg *) 3065d13010c3Smrg CC="$CC $ac_cv_prog_cc_c89" 3066d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3067d13010c3Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3068d13010c3Smrgesac 3069d13010c3Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 30708b22bf3fSmrg 3071d13010c3Smrgfi 3072d13010c3Smrg 3073d13010c3Smrgac_ext=c 3074d13010c3Smrgac_cpp='$CPP $CPPFLAGS' 3075d13010c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3076d13010c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3077d13010c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3078d13010c3Smrg 3079f126e068Smrgac_ext=c 3080f126e068Smrgac_cpp='$CPP $CPPFLAGS' 3081f126e068Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3082f126e068Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3083f126e068Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3084f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3085f126e068Smrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3086f126e068Smrgif ${am_cv_prog_cc_c_o+:} false; then : 3087f126e068Smrg $as_echo_n "(cached) " >&6 3088f126e068Smrgelse 3089f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3090f126e068Smrg/* end confdefs.h. */ 3091f126e068Smrg 3092f126e068Smrgint 3093f126e068Smrgmain () 3094f126e068Smrg{ 3095f126e068Smrg 3096f126e068Smrg ; 3097f126e068Smrg return 0; 3098f126e068Smrg} 3099f126e068Smrg_ACEOF 3100f126e068Smrg # Make sure it works both with $CC and with simple cc. 3101f126e068Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 3102f126e068Smrg # compilers refuse to overwrite an existing .o file with -o, 3103f126e068Smrg # though they will create one. 3104f126e068Smrg am_cv_prog_cc_c_o=yes 3105f126e068Smrg for am_i in 1 2; do 3106f126e068Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3107f126e068Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3108f126e068Smrg ac_status=$? 3109f126e068Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 3110f126e068Smrg (exit $ac_status); } \ 3111f126e068Smrg && test -f conftest2.$ac_objext; then 3112f126e068Smrg : OK 3113f126e068Smrg else 3114f126e068Smrg am_cv_prog_cc_c_o=no 3115f126e068Smrg break 3116f126e068Smrg fi 3117f126e068Smrg done 3118f126e068Smrg rm -f core conftest* 3119f126e068Smrg unset am_i 3120f126e068Smrgfi 3121f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3122f126e068Smrg$as_echo "$am_cv_prog_cc_c_o" >&6; } 3123f126e068Smrgif test "$am_cv_prog_cc_c_o" != yes; then 3124f126e068Smrg # Losing compiler, so override with the script. 3125f126e068Smrg # FIXME: It is wrong to rewrite CC. 3126f126e068Smrg # But if we don't then we get into trouble of one sort or another. 3127f126e068Smrg # A longer-term fix would be to have automake use am__CC in this case, 3128f126e068Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3129f126e068Smrg CC="$am_aux_dir/compile $CC" 3130f126e068Smrgfi 3131f126e068Smrgac_ext=c 3132f126e068Smrgac_cpp='$CPP $CPPFLAGS' 3133f126e068Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3134f126e068Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3135f126e068Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3136f126e068Smrg 3137f126e068Smrg 3138d13010c3Smrg 3139d13010c3Smrgac_ext=c 3140d13010c3Smrgac_cpp='$CPP $CPPFLAGS' 3141d13010c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3142d13010c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3143d13010c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3144d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3145d13010c3Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3146d13010c3Smrg# On Suns, sometimes $CPP names a directory. 3147d13010c3Smrgif test -n "$CPP" && test -d "$CPP"; then 3148d13010c3Smrg CPP= 3149d13010c3Smrgfi 3150d13010c3Smrgif test -z "$CPP"; then 3151d13010c3Smrg if ${ac_cv_prog_CPP+:} false; then : 3152d13010c3Smrg $as_echo_n "(cached) " >&6 3153d13010c3Smrgelse 3154d13010c3Smrg # Double quotes because CPP needs to be expanded 3155d13010c3Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3156d13010c3Smrg do 3157d13010c3Smrg ac_preproc_ok=false 3158d13010c3Smrgfor ac_c_preproc_warn_flag in '' yes 3159d13010c3Smrgdo 3160d13010c3Smrg # Use a header file that comes with gcc, so configuring glibc 3161d13010c3Smrg # with a fresh cross-compiler works. 3162d13010c3Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3163d13010c3Smrg # <limits.h> exists even on freestanding compilers. 3164d13010c3Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3165d13010c3Smrg # not just through cpp. "Syntax error" is here to catch this case. 3166d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3167d13010c3Smrg/* end confdefs.h. */ 3168d13010c3Smrg#ifdef __STDC__ 3169d13010c3Smrg# include <limits.h> 3170d13010c3Smrg#else 3171d13010c3Smrg# include <assert.h> 3172d13010c3Smrg#endif 3173d13010c3Smrg Syntax error 3174d13010c3Smrg_ACEOF 3175d13010c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3176d13010c3Smrg 3177d13010c3Smrgelse 3178d13010c3Smrg # Broken: fails on valid input. 3179d13010c3Smrgcontinue 3180d13010c3Smrgfi 3181d13010c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3182d13010c3Smrg 3183d13010c3Smrg # OK, works on sane cases. Now check whether nonexistent headers 3184d13010c3Smrg # can be detected and how. 3185d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3186d13010c3Smrg/* end confdefs.h. */ 3187d13010c3Smrg#include <ac_nonexistent.h> 3188d13010c3Smrg_ACEOF 3189d13010c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3190d13010c3Smrg # Broken: success on invalid input. 3191d13010c3Smrgcontinue 3192d13010c3Smrgelse 3193d13010c3Smrg # Passes both tests. 3194d13010c3Smrgac_preproc_ok=: 3195d13010c3Smrgbreak 3196d13010c3Smrgfi 3197d13010c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3198d13010c3Smrg 3199d13010c3Smrgdone 3200d13010c3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3201d13010c3Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3202d13010c3Smrgif $ac_preproc_ok; then : 3203d13010c3Smrg break 3204d13010c3Smrgfi 3205d13010c3Smrg 3206d13010c3Smrg done 3207d13010c3Smrg ac_cv_prog_CPP=$CPP 3208d13010c3Smrg 3209d13010c3Smrgfi 3210d13010c3Smrg CPP=$ac_cv_prog_CPP 3211d13010c3Smrgelse 3212d13010c3Smrg ac_cv_prog_CPP=$CPP 3213d13010c3Smrgfi 3214d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3215d13010c3Smrg$as_echo "$CPP" >&6; } 3216d13010c3Smrgac_preproc_ok=false 3217d13010c3Smrgfor ac_c_preproc_warn_flag in '' yes 3218d13010c3Smrgdo 3219d13010c3Smrg # Use a header file that comes with gcc, so configuring glibc 3220d13010c3Smrg # with a fresh cross-compiler works. 3221d13010c3Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3222d13010c3Smrg # <limits.h> exists even on freestanding compilers. 3223d13010c3Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3224d13010c3Smrg # not just through cpp. "Syntax error" is here to catch this case. 3225d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3226d13010c3Smrg/* end confdefs.h. */ 3227d13010c3Smrg#ifdef __STDC__ 3228d13010c3Smrg# include <limits.h> 3229d13010c3Smrg#else 3230d13010c3Smrg# include <assert.h> 3231d13010c3Smrg#endif 3232d13010c3Smrg Syntax error 3233d13010c3Smrg_ACEOF 3234d13010c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3235d13010c3Smrg 3236d13010c3Smrgelse 3237d13010c3Smrg # Broken: fails on valid input. 3238d13010c3Smrgcontinue 3239d13010c3Smrgfi 3240d13010c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3241d13010c3Smrg 3242d13010c3Smrg # OK, works on sane cases. Now check whether nonexistent headers 3243d13010c3Smrg # can be detected and how. 3244d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3245d13010c3Smrg/* end confdefs.h. */ 3246d13010c3Smrg#include <ac_nonexistent.h> 3247d13010c3Smrg_ACEOF 3248d13010c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3249d13010c3Smrg # Broken: success on invalid input. 3250d13010c3Smrgcontinue 3251d13010c3Smrgelse 3252d13010c3Smrg # Passes both tests. 3253d13010c3Smrgac_preproc_ok=: 3254d13010c3Smrgbreak 3255d13010c3Smrgfi 3256d13010c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3257d13010c3Smrg 3258d13010c3Smrgdone 3259d13010c3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3260d13010c3Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3261d13010c3Smrgif $ac_preproc_ok; then : 3262d13010c3Smrg 3263d13010c3Smrgelse 3264d13010c3Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3265d13010c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3266d13010c3Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3267d13010c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 3268d13010c3Smrgfi 3269d13010c3Smrg 3270d13010c3Smrgac_ext=c 3271d13010c3Smrgac_cpp='$CPP $CPPFLAGS' 3272d13010c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3273d13010c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3274d13010c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 32758b22bf3fSmrg 32768b22bf3fSmrg 3277d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3278d13010c3Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3279d13010c3Smrgif ${ac_cv_path_GREP+:} false; then : 3280d13010c3Smrg $as_echo_n "(cached) " >&6 3281d13010c3Smrgelse 3282d13010c3Smrg if test -z "$GREP"; then 3283d13010c3Smrg ac_path_GREP_found=false 3284d13010c3Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3285d13010c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3286d13010c3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3287d13010c3Smrgdo 3288d13010c3Smrg IFS=$as_save_IFS 3289d13010c3Smrg test -z "$as_dir" && as_dir=. 3290d13010c3Smrg for ac_prog in grep ggrep; do 3291d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3292d13010c3Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3293c74b14bdSmrg as_fn_executable_p "$ac_path_GREP" || continue 3294d13010c3Smrg# Check for GNU ac_path_GREP and select it if it is found. 3295d13010c3Smrg # Check for GNU $ac_path_GREP 3296d13010c3Smrgcase `"$ac_path_GREP" --version 2>&1` in 3297d13010c3Smrg*GNU*) 3298d13010c3Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3299d13010c3Smrg*) 3300d13010c3Smrg ac_count=0 3301d13010c3Smrg $as_echo_n 0123456789 >"conftest.in" 3302d13010c3Smrg while : 3303d13010c3Smrg do 3304d13010c3Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3305d13010c3Smrg mv "conftest.tmp" "conftest.in" 3306d13010c3Smrg cp "conftest.in" "conftest.nl" 3307d13010c3Smrg $as_echo 'GREP' >> "conftest.nl" 3308d13010c3Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3309d13010c3Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3310d13010c3Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 3311d13010c3Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 3312d13010c3Smrg # Best one so far, save it but keep looking for a better one 3313d13010c3Smrg ac_cv_path_GREP="$ac_path_GREP" 3314d13010c3Smrg ac_path_GREP_max=$ac_count 3315d13010c3Smrg fi 3316d13010c3Smrg # 10*(2^10) chars as input seems more than enough 3317d13010c3Smrg test $ac_count -gt 10 && break 3318d13010c3Smrg done 3319d13010c3Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3320d13010c3Smrgesac 3321d13010c3Smrg 3322d13010c3Smrg $ac_path_GREP_found && break 3 3323d13010c3Smrg done 3324d13010c3Smrg done 3325d13010c3Smrg done 3326d13010c3SmrgIFS=$as_save_IFS 3327d13010c3Smrg if test -z "$ac_cv_path_GREP"; then 3328d13010c3Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3329d13010c3Smrg fi 3330d13010c3Smrgelse 3331d13010c3Smrg ac_cv_path_GREP=$GREP 3332d13010c3Smrgfi 33338b22bf3fSmrg 3334d13010c3Smrgfi 3335d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3336d13010c3Smrg$as_echo "$ac_cv_path_GREP" >&6; } 3337d13010c3Smrg GREP="$ac_cv_path_GREP" 33388b22bf3fSmrg 33398b22bf3fSmrg 3340d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3341d13010c3Smrg$as_echo_n "checking for egrep... " >&6; } 3342d13010c3Smrgif ${ac_cv_path_EGREP+:} false; then : 3343d13010c3Smrg $as_echo_n "(cached) " >&6 3344d13010c3Smrgelse 3345d13010c3Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3346d13010c3Smrg then ac_cv_path_EGREP="$GREP -E" 3347d13010c3Smrg else 3348d13010c3Smrg if test -z "$EGREP"; then 3349d13010c3Smrg ac_path_EGREP_found=false 3350d13010c3Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3351d13010c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3352d13010c3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3353d13010c3Smrgdo 3354d13010c3Smrg IFS=$as_save_IFS 3355d13010c3Smrg test -z "$as_dir" && as_dir=. 3356d13010c3Smrg for ac_prog in egrep; do 3357d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3358d13010c3Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3359c74b14bdSmrg as_fn_executable_p "$ac_path_EGREP" || continue 3360d13010c3Smrg# Check for GNU ac_path_EGREP and select it if it is found. 3361d13010c3Smrg # Check for GNU $ac_path_EGREP 3362d13010c3Smrgcase `"$ac_path_EGREP" --version 2>&1` in 3363d13010c3Smrg*GNU*) 3364d13010c3Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3365d13010c3Smrg*) 3366d13010c3Smrg ac_count=0 3367d13010c3Smrg $as_echo_n 0123456789 >"conftest.in" 3368d13010c3Smrg while : 3369d13010c3Smrg do 3370d13010c3Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3371d13010c3Smrg mv "conftest.tmp" "conftest.in" 3372d13010c3Smrg cp "conftest.in" "conftest.nl" 3373d13010c3Smrg $as_echo 'EGREP' >> "conftest.nl" 3374d13010c3Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3375d13010c3Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3376d13010c3Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 3377d13010c3Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3378d13010c3Smrg # Best one so far, save it but keep looking for a better one 3379d13010c3Smrg ac_cv_path_EGREP="$ac_path_EGREP" 3380d13010c3Smrg ac_path_EGREP_max=$ac_count 3381d13010c3Smrg fi 3382d13010c3Smrg # 10*(2^10) chars as input seems more than enough 3383d13010c3Smrg test $ac_count -gt 10 && break 3384d13010c3Smrg done 3385d13010c3Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3386d13010c3Smrgesac 338796a81b41Smrg 3388d13010c3Smrg $ac_path_EGREP_found && break 3 3389d13010c3Smrg done 3390d13010c3Smrg done 3391d13010c3Smrg done 3392d13010c3SmrgIFS=$as_save_IFS 3393d13010c3Smrg if test -z "$ac_cv_path_EGREP"; then 3394d13010c3Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3395d13010c3Smrg fi 33968b22bf3fSmrgelse 3397d13010c3Smrg ac_cv_path_EGREP=$EGREP 33988b22bf3fSmrgfi 33998b22bf3fSmrg 3400d13010c3Smrg fi 34018b22bf3fSmrgfi 3402d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3403d13010c3Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 3404d13010c3Smrg EGREP="$ac_cv_path_EGREP" 340596a81b41Smrg 340696a81b41Smrg 3407d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3408d13010c3Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 3409d13010c3Smrgif ${ac_cv_header_stdc+:} false; then : 3410d13010c3Smrg $as_echo_n "(cached) " >&6 3411d13010c3Smrgelse 3412d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3413d13010c3Smrg/* end confdefs.h. */ 3414d13010c3Smrg#include <stdlib.h> 3415d13010c3Smrg#include <stdarg.h> 3416d13010c3Smrg#include <string.h> 3417d13010c3Smrg#include <float.h> 341896a81b41Smrg 3419d13010c3Smrgint 3420d13010c3Smrgmain () 3421d13010c3Smrg{ 342296a81b41Smrg 3423d13010c3Smrg ; 3424d13010c3Smrg return 0; 3425d13010c3Smrg} 3426d13010c3Smrg_ACEOF 3427d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 3428d13010c3Smrg ac_cv_header_stdc=yes 3429d13010c3Smrgelse 3430d13010c3Smrg ac_cv_header_stdc=no 3431d13010c3Smrgfi 3432d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 343396a81b41Smrg 3434d13010c3Smrgif test $ac_cv_header_stdc = yes; then 3435d13010c3Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3436d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3437d13010c3Smrg/* end confdefs.h. */ 3438d13010c3Smrg#include <string.h> 343996a81b41Smrg 3440d13010c3Smrg_ACEOF 3441d13010c3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3442d13010c3Smrg $EGREP "memchr" >/dev/null 2>&1; then : 344396a81b41Smrg 3444d13010c3Smrgelse 3445d13010c3Smrg ac_cv_header_stdc=no 3446d13010c3Smrgfi 3447d13010c3Smrgrm -f conftest* 34485bd32fd1Smrg 34495bd32fd1Smrgfi 34505bd32fd1Smrg 3451d13010c3Smrgif test $ac_cv_header_stdc = yes; then 3452d13010c3Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3453d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454d13010c3Smrg/* end confdefs.h. */ 3455d13010c3Smrg#include <stdlib.h> 34565bd32fd1Smrg 3457d13010c3Smrg_ACEOF 3458d13010c3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3459d13010c3Smrg $EGREP "free" >/dev/null 2>&1; then : 34605bd32fd1Smrg 3461d13010c3Smrgelse 3462d13010c3Smrg ac_cv_header_stdc=no 34635bd32fd1Smrgfi 3464d13010c3Smrgrm -f conftest* 34655bd32fd1Smrg 34665bd32fd1Smrgfi 3467d13010c3Smrg 3468d13010c3Smrgif test $ac_cv_header_stdc = yes; then 3469d13010c3Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3470d13010c3Smrg if test "$cross_compiling" = yes; then : 3471d13010c3Smrg : 34725bd32fd1Smrgelse 3473d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3474d13010c3Smrg/* end confdefs.h. */ 3475d13010c3Smrg#include <ctype.h> 3476d13010c3Smrg#include <stdlib.h> 3477d13010c3Smrg#if ((' ' & 0x0FF) == 0x020) 3478d13010c3Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3479d13010c3Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3480d13010c3Smrg#else 3481d13010c3Smrg# define ISLOWER(c) \ 3482d13010c3Smrg (('a' <= (c) && (c) <= 'i') \ 3483d13010c3Smrg || ('j' <= (c) && (c) <= 'r') \ 3484d13010c3Smrg || ('s' <= (c) && (c) <= 'z')) 3485d13010c3Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3486d13010c3Smrg#endif 34875bd32fd1Smrg 3488d13010c3Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3489d13010c3Smrgint 3490d13010c3Smrgmain () 3491d13010c3Smrg{ 3492d13010c3Smrg int i; 3493d13010c3Smrg for (i = 0; i < 256; i++) 3494d13010c3Smrg if (XOR (islower (i), ISLOWER (i)) 3495d13010c3Smrg || toupper (i) != TOUPPER (i)) 3496d13010c3Smrg return 2; 3497d13010c3Smrg return 0; 3498d13010c3Smrg} 3499d13010c3Smrg_ACEOF 3500d13010c3Smrgif ac_fn_c_try_run "$LINENO"; then : 35015bd32fd1Smrg 35025bd32fd1Smrgelse 3503d13010c3Smrg ac_cv_header_stdc=no 3504d13010c3Smrgfi 3505d13010c3Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3506d13010c3Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 3507d13010c3Smrgfi 35088b22bf3fSmrg 35098b22bf3fSmrgfi 35105bd32fd1Smrgfi 3511d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3512d13010c3Smrg$as_echo "$ac_cv_header_stdc" >&6; } 3513d13010c3Smrgif test $ac_cv_header_stdc = yes; then 3514d13010c3Smrg 3515d13010c3Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3516d13010c3Smrg 35178b22bf3fSmrgfi 35188b22bf3fSmrg 3519d13010c3Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3520d13010c3Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3521d13010c3Smrg inttypes.h stdint.h unistd.h 3522d13010c3Smrgdo : 3523d13010c3Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3524d13010c3Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3525d13010c3Smrg" 3526d13010c3Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3527d13010c3Smrg cat >>confdefs.h <<_ACEOF 3528d13010c3Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3529d13010c3Smrg_ACEOF 35308b22bf3fSmrg 35318b22bf3fSmrgfi 3532d13010c3Smrg 35338b22bf3fSmrgdone 35348b22bf3fSmrg 3535d13010c3Smrg 3536d13010c3Smrg 3537d13010c3Smrg ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3538d13010c3Smrgif test "x$ac_cv_header_minix_config_h" = xyes; then : 3539d13010c3Smrg MINIX=yes 35408b22bf3fSmrgelse 3541d13010c3Smrg MINIX= 35428b22bf3fSmrgfi 35438b22bf3fSmrg 3544d13010c3Smrg 3545d13010c3Smrg if test "$MINIX" = yes; then 3546d13010c3Smrg 3547d13010c3Smrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3548d13010c3Smrg 3549d13010c3Smrg 3550d13010c3Smrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3551d13010c3Smrg 3552d13010c3Smrg 3553d13010c3Smrg$as_echo "#define _MINIX 1" >>confdefs.h 3554d13010c3Smrg 35558b22bf3fSmrg fi 35568b22bf3fSmrg 3557d13010c3Smrg 3558d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3559d13010c3Smrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3560d13010c3Smrgif ${ac_cv_safe_to_define___extensions__+:} false; then : 356196a81b41Smrg $as_echo_n "(cached) " >&6 35628b22bf3fSmrgelse 3563d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564d13010c3Smrg/* end confdefs.h. */ 35658b22bf3fSmrg 3566c74b14bdSmrg# define __EXTENSIONS__ 1 3567c74b14bdSmrg $ac_includes_default 3568d13010c3Smrgint 3569d13010c3Smrgmain () 3570d13010c3Smrg{ 3571d13010c3Smrg 3572d13010c3Smrg ; 3573d13010c3Smrg return 0; 3574d13010c3Smrg} 3575d13010c3Smrg_ACEOF 3576d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 3577d13010c3Smrg ac_cv_safe_to_define___extensions__=yes 35788b22bf3fSmrgelse 3579d13010c3Smrg ac_cv_safe_to_define___extensions__=no 35808b22bf3fSmrgfi 3581d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3582d13010c3Smrgfi 3583d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3584d13010c3Smrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3585d13010c3Smrg test $ac_cv_safe_to_define___extensions__ = yes && 3586d13010c3Smrg $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3587d13010c3Smrg 3588d13010c3Smrg $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3589d13010c3Smrg 3590d13010c3Smrg $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3591d13010c3Smrg 3592d13010c3Smrg $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3593d13010c3Smrg 3594d13010c3Smrg $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3595d13010c3Smrg 3596d13010c3Smrg 35978b22bf3fSmrg 3598d13010c3Smrg# Initialize Automake 3599c74b14bdSmrgam__api_version='1.15' 3600d13010c3Smrg 3601d13010c3Smrg# Find a good install program. We prefer a C program (faster), 3602d13010c3Smrg# so one script is as good as another. But avoid the broken or 3603d13010c3Smrg# incompatible versions: 3604d13010c3Smrg# SysV /etc/install, /usr/sbin/install 3605d13010c3Smrg# SunOS /usr/etc/install 3606d13010c3Smrg# IRIX /sbin/install 3607d13010c3Smrg# AIX /bin/install 3608d13010c3Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 3609d13010c3Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3610d13010c3Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3611d13010c3Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3612d13010c3Smrg# OS/2's system install, which has a completely different semantic 3613d13010c3Smrg# ./install, which can be erroneously created by make from ./install.sh. 3614d13010c3Smrg# Reject install programs that cannot install multiple files. 3615d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3616d13010c3Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 3617d13010c3Smrgif test -z "$INSTALL"; then 3618d13010c3Smrgif ${ac_cv_path_install+:} false; then : 361996a81b41Smrg $as_echo_n "(cached) " >&6 36208b22bf3fSmrgelse 3621d13010c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36228b22bf3fSmrgfor as_dir in $PATH 36238b22bf3fSmrgdo 36248b22bf3fSmrg IFS=$as_save_IFS 36258b22bf3fSmrg test -z "$as_dir" && as_dir=. 3626d13010c3Smrg # Account for people who put trailing slashes in PATH elements. 3627d13010c3Smrgcase $as_dir/ in #(( 3628d13010c3Smrg ./ | .// | /[cC]/* | \ 3629d13010c3Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3630d13010c3Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3631d13010c3Smrg /usr/ucb/* ) ;; 3632d13010c3Smrg *) 3633d13010c3Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 3634d13010c3Smrg # Don't use installbsd from OSF since it installs stuff as root 3635d13010c3Smrg # by default. 3636d13010c3Smrg for ac_prog in ginstall scoinst install; do 3637d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3638c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3639d13010c3Smrg if test $ac_prog = install && 3640d13010c3Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3641d13010c3Smrg # AIX install. It has an incompatible calling convention. 3642d13010c3Smrg : 3643d13010c3Smrg elif test $ac_prog = install && 3644d13010c3Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3645d13010c3Smrg # program-specific install script used by HP pwplus--don't use. 3646d13010c3Smrg : 3647d13010c3Smrg else 3648d13010c3Smrg rm -rf conftest.one conftest.two conftest.dir 3649d13010c3Smrg echo one > conftest.one 3650d13010c3Smrg echo two > conftest.two 3651d13010c3Smrg mkdir conftest.dir 3652d13010c3Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3653d13010c3Smrg test -s conftest.one && test -s conftest.two && 3654d13010c3Smrg test -s conftest.dir/conftest.one && 3655d13010c3Smrg test -s conftest.dir/conftest.two 3656d13010c3Smrg then 3657d13010c3Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3658d13010c3Smrg break 3 3659d13010c3Smrg fi 3660d13010c3Smrg fi 3661d13010c3Smrg fi 3662d13010c3Smrg done 3663d13010c3Smrg done 3664d13010c3Smrg ;; 3665d13010c3Smrgesac 3666d13010c3Smrg 36675bd32fd1Smrg done 36688b22bf3fSmrgIFS=$as_save_IFS 36698b22bf3fSmrg 3670d13010c3Smrgrm -rf conftest.one conftest.two conftest.dir 3671d13010c3Smrg 3672d13010c3Smrgfi 3673d13010c3Smrg if test "${ac_cv_path_install+set}" = set; then 3674d13010c3Smrg INSTALL=$ac_cv_path_install 3675d13010c3Smrg else 3676d13010c3Smrg # As a last resort, use the slow shell script. Don't cache a 3677d13010c3Smrg # value for INSTALL within a source directory, because that will 3678d13010c3Smrg # break other packages using the cache if that directory is 3679d13010c3Smrg # removed, or if the value is a relative name. 3680d13010c3Smrg INSTALL=$ac_install_sh 3681d13010c3Smrg fi 3682d13010c3Smrgfi 3683d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3684d13010c3Smrg$as_echo "$INSTALL" >&6; } 3685d13010c3Smrg 3686d13010c3Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3687d13010c3Smrg# It thinks the first close brace ends the variable substitution. 3688d13010c3Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3689d13010c3Smrg 3690d13010c3Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3691d13010c3Smrg 3692d13010c3Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3693d13010c3Smrg 3694d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3695d13010c3Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 3696d13010c3Smrg# Reject unsafe characters in $srcdir or the absolute working directory 3697d13010c3Smrg# name. Accept space and tab only in the latter. 3698d13010c3Smrgam_lf=' 3699d13010c3Smrg' 3700d13010c3Smrgcase `pwd` in 3701d13010c3Smrg *[\\\"\#\$\&\'\`$am_lf]*) 3702d13010c3Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3703d13010c3Smrgesac 3704d13010c3Smrgcase $srcdir in 3705d13010c3Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3706f126e068Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3707d13010c3Smrgesac 3708d13010c3Smrg 3709f126e068Smrg# Do 'set' in a subshell so we don't clobber the current shell's 3710d13010c3Smrg# arguments. Must try -L first in case configure is actually a 3711d13010c3Smrg# symlink; some systems play weird games with the mod time of symlinks 3712d13010c3Smrg# (eg FreeBSD returns the mod time of the symlink's containing 3713d13010c3Smrg# directory). 3714d13010c3Smrgif ( 3715f126e068Smrg am_has_slept=no 3716f126e068Smrg for am_try in 1 2; do 3717f126e068Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 3718f126e068Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3719f126e068Smrg if test "$*" = "X"; then 3720f126e068Smrg # -L didn't work. 3721f126e068Smrg set X `ls -t "$srcdir/configure" conftest.file` 3722f126e068Smrg fi 3723f126e068Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 3724f126e068Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 3725f126e068Smrg 3726f126e068Smrg # If neither matched, then we have a broken ls. This can happen 3727f126e068Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 3728f126e068Smrg # broken ls alias from the environment. This has actually 3729f126e068Smrg # happened. Such a system could not be considered "sane". 3730f126e068Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3731f126e068Smrg alias in your environment" "$LINENO" 5 3732f126e068Smrg fi 3733f126e068Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 3734f126e068Smrg break 3735f126e068Smrg fi 3736f126e068Smrg # Just in case. 3737f126e068Smrg sleep 1 3738f126e068Smrg am_has_slept=yes 3739f126e068Smrg done 3740d13010c3Smrg test "$2" = conftest.file 3741d13010c3Smrg ) 3742d13010c3Smrgthen 3743d13010c3Smrg # Ok. 3744d13010c3Smrg : 3745d13010c3Smrgelse 3746d13010c3Smrg as_fn_error $? "newly created file is older than distributed files! 3747d13010c3SmrgCheck your system clock" "$LINENO" 5 37488b22bf3fSmrgfi 3749d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3750d13010c3Smrg$as_echo "yes" >&6; } 3751f126e068Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 3752f126e068Smrg# generated files are strictly newer. 3753f126e068Smrgam_sleep_pid= 3754f126e068Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 3755f126e068Smrg ( sleep 1 ) & 3756f126e068Smrg am_sleep_pid=$! 3757f126e068Smrgfi 3758f126e068Smrg 3759f126e068Smrgrm -f conftest.file 3760f126e068Smrg 3761d13010c3Smrgtest "$program_prefix" != NONE && 3762d13010c3Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 3763d13010c3Smrg# Use a double $ so make ignores it. 3764d13010c3Smrgtest "$program_suffix" != NONE && 3765d13010c3Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3766d13010c3Smrg# Double any \ or $. 3767d13010c3Smrg# By default was `s,x,x', remove it if useless. 3768d13010c3Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3769d13010c3Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3770d13010c3Smrg 3771d13010c3Smrgif test x"${MISSING+set}" != xset; then 3772d13010c3Smrg case $am_aux_dir in 3773d13010c3Smrg *\ * | *\ *) 3774d13010c3Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3775d13010c3Smrg *) 3776d13010c3Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 3777d13010c3Smrg esac 37788b22bf3fSmrgfi 3779d13010c3Smrg# Use eval to expand $SHELL 3780f126e068Smrgif eval "$MISSING --is-lightweight"; then 3781f126e068Smrg am_missing_run="$MISSING " 37828b22bf3fSmrgelse 3783d13010c3Smrg am_missing_run= 3784f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3785f126e068Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 37868b22bf3fSmrgfi 37878b22bf3fSmrg 3788c74b14bdSmrgif test x"${install_sh+set}" != xset; then 3789d13010c3Smrg case $am_aux_dir in 3790d13010c3Smrg *\ * | *\ *) 3791d13010c3Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3792d13010c3Smrg *) 3793d13010c3Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 3794d13010c3Smrg esac 37958b22bf3fSmrgfi 3796d13010c3Smrg 3797f126e068Smrg# Installed binaries are usually stripped using 'strip' when the user 3798f126e068Smrg# run "make install-strip". However 'strip' might not be the right 3799d13010c3Smrg# tool to use in cross-compilation environments, therefore Automake 3800f126e068Smrg# will honor the 'STRIP' environment variable to overrule this program. 3801d13010c3Smrgif test "$cross_compiling" != no; then 38028b22bf3fSmrg if test -n "$ac_tool_prefix"; then 3803d13010c3Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3804d13010c3Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 38055bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 380696a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; } 3807d13010c3Smrgif ${ac_cv_prog_STRIP+:} false; then : 380896a81b41Smrg $as_echo_n "(cached) " >&6 38098b22bf3fSmrgelse 3810d13010c3Smrg if test -n "$STRIP"; then 3811d13010c3Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 38128b22bf3fSmrgelse 38138b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38148b22bf3fSmrgfor as_dir in $PATH 38158b22bf3fSmrgdo 38168b22bf3fSmrg IFS=$as_save_IFS 38178b22bf3fSmrg test -z "$as_dir" && as_dir=. 38185bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3819c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3820d13010c3Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 38215bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38228b22bf3fSmrg break 2 38238b22bf3fSmrg fi 38248b22bf3fSmrgdone 38255bd32fd1Smrg done 38268b22bf3fSmrgIFS=$as_save_IFS 38278b22bf3fSmrg 38288b22bf3fSmrgfi 38298b22bf3fSmrgfi 3830d13010c3SmrgSTRIP=$ac_cv_prog_STRIP 3831d13010c3Smrgif test -n "$STRIP"; then 3832d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3833d13010c3Smrg$as_echo "$STRIP" >&6; } 38348b22bf3fSmrgelse 38355bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 383696a81b41Smrg$as_echo "no" >&6; } 38378b22bf3fSmrgfi 38388b22bf3fSmrg 38398b22bf3fSmrg 38408b22bf3fSmrgfi 3841d13010c3Smrgif test -z "$ac_cv_prog_STRIP"; then 3842d13010c3Smrg ac_ct_STRIP=$STRIP 3843d13010c3Smrg # Extract the first word of "strip", so it can be a program name with args. 3844d13010c3Smrgset dummy strip; ac_word=$2 38455bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 384696a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; } 3847d13010c3Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 384896a81b41Smrg $as_echo_n "(cached) " >&6 38498b22bf3fSmrgelse 3850d13010c3Smrg if test -n "$ac_ct_STRIP"; then 3851d13010c3Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 38528b22bf3fSmrgelse 38538b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38548b22bf3fSmrgfor as_dir in $PATH 38558b22bf3fSmrgdo 38568b22bf3fSmrg IFS=$as_save_IFS 38578b22bf3fSmrg test -z "$as_dir" && as_dir=. 38585bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3859c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3860d13010c3Smrg ac_cv_prog_ac_ct_STRIP="strip" 38615bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38628b22bf3fSmrg break 2 38638b22bf3fSmrg fi 38648b22bf3fSmrgdone 38655bd32fd1Smrg done 38668b22bf3fSmrgIFS=$as_save_IFS 38678b22bf3fSmrg 38688b22bf3fSmrgfi 38698b22bf3fSmrgfi 3870d13010c3Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3871d13010c3Smrgif test -n "$ac_ct_STRIP"; then 3872d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3873d13010c3Smrg$as_echo "$ac_ct_STRIP" >&6; } 38748b22bf3fSmrgelse 38755bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 387696a81b41Smrg$as_echo "no" >&6; } 38778b22bf3fSmrgfi 38788b22bf3fSmrg 3879d13010c3Smrg if test "x$ac_ct_STRIP" = x; then 3880d13010c3Smrg STRIP=":" 38818b22bf3fSmrg else 38828b22bf3fSmrg case $cross_compiling:$ac_tool_warned in 38838b22bf3fSmrgyes:) 38845bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 388596a81b41Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38868b22bf3fSmrgac_tool_warned=yes ;; 38878b22bf3fSmrgesac 3888d13010c3Smrg STRIP=$ac_ct_STRIP 38898b22bf3fSmrg fi 3890d13010c3Smrgelse 3891d13010c3Smrg STRIP="$ac_cv_prog_STRIP" 38928b22bf3fSmrgfi 38938b22bf3fSmrg 38948b22bf3fSmrgfi 3895d13010c3SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 38968b22bf3fSmrg 3897d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3898d13010c3Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3899d13010c3Smrgif test -z "$MKDIR_P"; then 3900d13010c3Smrg if ${ac_cv_path_mkdir+:} false; then : 3901d13010c3Smrg $as_echo_n "(cached) " >&6 3902d13010c3Smrgelse 3903d13010c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3904d13010c3Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3905d13010c3Smrgdo 3906d13010c3Smrg IFS=$as_save_IFS 3907d13010c3Smrg test -z "$as_dir" && as_dir=. 3908d13010c3Smrg for ac_prog in mkdir gmkdir; do 3909d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3910c74b14bdSmrg as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3911d13010c3Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3912d13010c3Smrg 'mkdir (GNU coreutils) '* | \ 3913d13010c3Smrg 'mkdir (coreutils) '* | \ 3914d13010c3Smrg 'mkdir (fileutils) '4.1*) 3915d13010c3Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3916d13010c3Smrg break 3;; 3917d13010c3Smrg esac 3918d13010c3Smrg done 3919d13010c3Smrg done 3920d13010c3Smrg done 3921d13010c3SmrgIFS=$as_save_IFS 39228b22bf3fSmrg 3923d13010c3Smrgfi 39248b22bf3fSmrg 3925d13010c3Smrg test -d ./--version && rmdir ./--version 3926d13010c3Smrg if test "${ac_cv_path_mkdir+set}" = set; then 3927d13010c3Smrg MKDIR_P="$ac_cv_path_mkdir -p" 3928d13010c3Smrg else 3929d13010c3Smrg # As a last resort, use the slow shell script. Don't cache a 3930d13010c3Smrg # value for MKDIR_P within a source directory, because that will 3931d13010c3Smrg # break other packages using the cache if that directory is 3932d13010c3Smrg # removed, or if the value is a relative name. 3933d13010c3Smrg MKDIR_P="$ac_install_sh -d" 39345bd32fd1Smrg fi 3935d13010c3Smrgfi 3936d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3937d13010c3Smrg$as_echo "$MKDIR_P" >&6; } 393896a81b41Smrg 3939d13010c3Smrgfor ac_prog in gawk mawk nawk awk 39408b22bf3fSmrgdo 3941d13010c3Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3942d13010c3Smrgset dummy $ac_prog; ac_word=$2 3943d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3944d13010c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 3945d13010c3Smrgif ${ac_cv_prog_AWK+:} false; then : 3946d13010c3Smrg $as_echo_n "(cached) " >&6 3947d13010c3Smrgelse 3948d13010c3Smrg if test -n "$AWK"; then 3949d13010c3Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 3950d13010c3Smrgelse 3951d13010c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3952d13010c3Smrgfor as_dir in $PATH 39538b22bf3fSmrgdo 3954d13010c3Smrg IFS=$as_save_IFS 3955d13010c3Smrg test -z "$as_dir" && as_dir=. 3956d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3957c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3958d13010c3Smrg ac_cv_prog_AWK="$ac_prog" 3959d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3960d13010c3Smrg break 2 3961d13010c3Smrg fi 39628b22bf3fSmrgdone 3963d13010c3Smrg done 3964d13010c3SmrgIFS=$as_save_IFS 39658b22bf3fSmrg 39668b22bf3fSmrgfi 3967d13010c3Smrgfi 3968d13010c3SmrgAWK=$ac_cv_prog_AWK 3969d13010c3Smrgif test -n "$AWK"; then 3970d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3971d13010c3Smrg$as_echo "$AWK" >&6; } 3972d13010c3Smrgelse 39735bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39745bd32fd1Smrg$as_echo "no" >&6; } 3975d13010c3Smrgfi 39768b22bf3fSmrg 3977d13010c3Smrg 3978d13010c3Smrg test -n "$AWK" && break 3979d13010c3Smrgdone 3980d13010c3Smrg 3981d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3982d13010c3Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3983d13010c3Smrgset x ${MAKE-make} 3984d13010c3Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3985d13010c3Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3986d13010c3Smrg $as_echo_n "(cached) " >&6 39875bd32fd1Smrgelse 3988d13010c3Smrg cat >conftest.make <<\_ACEOF 3989d13010c3SmrgSHELL = /bin/sh 3990d13010c3Smrgall: 3991d13010c3Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 3992d13010c3Smrg_ACEOF 3993d13010c3Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3994d13010c3Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 3995d13010c3Smrg *@@@%%%=?*=@@@%%%*) 3996d13010c3Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 3997d13010c3Smrg *) 3998d13010c3Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 3999d13010c3Smrgesac 4000d13010c3Smrgrm -f conftest.make 4001d13010c3Smrgfi 4002d13010c3Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 40035bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40045bd32fd1Smrg$as_echo "yes" >&6; } 4005d13010c3Smrg SET_MAKE= 4006d13010c3Smrgelse 4007d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4008d13010c3Smrg$as_echo "no" >&6; } 4009d13010c3Smrg SET_MAKE="MAKE=${MAKE-make}" 40108b22bf3fSmrgfi 40118b22bf3fSmrg 4012d13010c3Smrgrm -rf .tst 2>/dev/null 4013d13010c3Smrgmkdir .tst 2>/dev/null 4014d13010c3Smrgif test -d .tst; then 4015d13010c3Smrg am__leading_dot=. 40168b22bf3fSmrgelse 4017d13010c3Smrg am__leading_dot=_ 40188b22bf3fSmrgfi 4019d13010c3Smrgrmdir .tst 2>/dev/null 40205bd32fd1Smrg 4021d13010c3SmrgDEPDIR="${am__leading_dot}deps" 40225bd32fd1Smrg 4023d13010c3Smrgac_config_commands="$ac_config_commands depfiles" 40248b22bf3fSmrg 40258b22bf3fSmrg 4026d13010c3Smrgam_make=${MAKE-make} 4027d13010c3Smrgcat > confinc << 'END' 4028d13010c3Smrgam__doit: 4029d13010c3Smrg @echo this is the am__doit target 4030d13010c3Smrg.PHONY: am__doit 4031d13010c3SmrgEND 4032d13010c3Smrg# If we don't find an include directive, just comment out the code. 4033d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4034d13010c3Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 4035d13010c3Smrgam__include="#" 4036d13010c3Smrgam__quote= 4037d13010c3Smrg_am_result=none 4038d13010c3Smrg# First try GNU make style include. 4039d13010c3Smrgecho "include confinc" > confmf 4040f126e068Smrg# Ignore all kinds of additional output from 'make'. 4041d13010c3Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 4042d13010c3Smrg*the\ am__doit\ target*) 4043d13010c3Smrg am__include=include 4044d13010c3Smrg am__quote= 4045d13010c3Smrg _am_result=GNU 4046d13010c3Smrg ;; 40478b22bf3fSmrgesac 4048d13010c3Smrg# Now try BSD make style include. 4049d13010c3Smrgif test "$am__include" = "#"; then 4050d13010c3Smrg echo '.include "confinc"' > confmf 4051d13010c3Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 4052d13010c3Smrg *the\ am__doit\ target*) 4053d13010c3Smrg am__include=.include 4054d13010c3Smrg am__quote="\"" 4055d13010c3Smrg _am_result=BSD 4056d13010c3Smrg ;; 4057d13010c3Smrg esac 4058d13010c3Smrgfi 40598b22bf3fSmrg 4060d13010c3Smrg 4061d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4062d13010c3Smrg$as_echo "$_am_result" >&6; } 4063d13010c3Smrgrm -f confinc confmf 4064d13010c3Smrg 4065d13010c3Smrg# Check whether --enable-dependency-tracking was given. 4066d13010c3Smrgif test "${enable_dependency_tracking+set}" = set; then : 4067d13010c3Smrg enableval=$enable_dependency_tracking; 40688b22bf3fSmrgfi 4069d13010c3Smrg 4070d13010c3Smrgif test "x$enable_dependency_tracking" != xno; then 4071d13010c3Smrg am_depcomp="$ac_aux_dir/depcomp" 4072d13010c3Smrg AMDEPBACKSLASH='\' 4073f126e068Smrg am__nodep='_no' 40748b22bf3fSmrgfi 4075d13010c3Smrg if test "x$enable_dependency_tracking" != xno; then 4076d13010c3Smrg AMDEP_TRUE= 4077d13010c3Smrg AMDEP_FALSE='#' 40788b22bf3fSmrgelse 4079d13010c3Smrg AMDEP_TRUE='#' 4080d13010c3Smrg AMDEP_FALSE= 4081d13010c3Smrgfi 40828b22bf3fSmrg 40838b22bf3fSmrg 4084f126e068Smrg# Check whether --enable-silent-rules was given. 4085f126e068Smrgif test "${enable_silent_rules+set}" = set; then : 4086f126e068Smrg enableval=$enable_silent_rules; 4087f126e068Smrgfi 4088f126e068Smrg 4089f126e068Smrgcase $enable_silent_rules in # ((( 4090f126e068Smrg yes) AM_DEFAULT_VERBOSITY=0;; 4091f126e068Smrg no) AM_DEFAULT_VERBOSITY=1;; 4092f126e068Smrg *) AM_DEFAULT_VERBOSITY=1;; 4093f126e068Smrgesac 4094f126e068Smrgam_make=${MAKE-make} 4095f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4096f126e068Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4097f126e068Smrgif ${am_cv_make_support_nested_variables+:} false; then : 4098f126e068Smrg $as_echo_n "(cached) " >&6 4099f126e068Smrgelse 4100f126e068Smrg if $as_echo 'TRUE=$(BAR$(V)) 4101f126e068SmrgBAR0=false 4102f126e068SmrgBAR1=true 4103f126e068SmrgV=1 4104f126e068Smrgam__doit: 4105f126e068Smrg @$(TRUE) 4106f126e068Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4107f126e068Smrg am_cv_make_support_nested_variables=yes 4108f126e068Smrgelse 4109f126e068Smrg am_cv_make_support_nested_variables=no 4110f126e068Smrgfi 4111f126e068Smrgfi 4112f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4113f126e068Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 4114f126e068Smrgif test $am_cv_make_support_nested_variables = yes; then 4115f126e068Smrg AM_V='$(V)' 4116f126e068Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4117f126e068Smrgelse 4118f126e068Smrg AM_V=$AM_DEFAULT_VERBOSITY 4119f126e068Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4120f126e068Smrgfi 4121f126e068SmrgAM_BACKSLASH='\' 4122f126e068Smrg 4123d13010c3Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 4124d13010c3Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4125d13010c3Smrg # is not polluted with repeated "-I." 4126d13010c3Smrg am__isrc=' -I$(srcdir)' 4127d13010c3Smrg # test to see if srcdir already configured 4128d13010c3Smrg if test -f $srcdir/config.status; then 4129d13010c3Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4130d13010c3Smrg fi 41318b22bf3fSmrgfi 41328b22bf3fSmrg 4133d13010c3Smrg# test whether we have cygpath 4134d13010c3Smrgif test -z "$CYGPATH_W"; then 4135d13010c3Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 4136d13010c3Smrg CYGPATH_W='cygpath -w' 4137d13010c3Smrg else 4138d13010c3Smrg CYGPATH_W=echo 4139d13010c3Smrg fi 41408b22bf3fSmrgfi 41418b22bf3fSmrg 41428b22bf3fSmrg 4143d13010c3Smrg# Define the identity of the package. 4144d13010c3Smrg PACKAGE='xrdb' 4145c74b14bdSmrg VERSION='1.1.1' 4146d13010c3Smrg 4147d13010c3Smrg 4148d13010c3Smrgcat >>confdefs.h <<_ACEOF 4149d13010c3Smrg#define PACKAGE "$PACKAGE" 41508b22bf3fSmrg_ACEOF 41518b22bf3fSmrg 41528b22bf3fSmrg 4153d13010c3Smrgcat >>confdefs.h <<_ACEOF 4154d13010c3Smrg#define VERSION "$VERSION" 41558b22bf3fSmrg_ACEOF 41568b22bf3fSmrg 4157d13010c3Smrg# Some tools Automake needs. 41588b22bf3fSmrg 4159d13010c3SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 41608b22bf3fSmrg 41618b22bf3fSmrg 4162d13010c3SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 41638b22bf3fSmrg 41648b22bf3fSmrg 4165d13010c3SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4166d13010c3Smrg 4167d13010c3Smrg 4168d13010c3SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4169d13010c3Smrg 4170d13010c3Smrg 4171d13010c3SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4172d13010c3Smrg 4173f126e068Smrg# For better backward compatibility. To be removed once Automake 1.9.x 4174f126e068Smrg# dies out for good. For more background, see: 4175f126e068Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4176f126e068Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4177f126e068Smrgmkdir_p='$(MKDIR_P)' 4178f126e068Smrg 4179c74b14bdSmrg# We need awk for the "check" target (and possibly the TAP driver). The 4180c74b14bdSmrg# system "awk" is bad on some platforms. 4181f126e068Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 4182f126e068Smrg# in the wild :-( We should find a proper way to deprecate it ... 4183f126e068SmrgAMTAR='$${TAR-tar}' 4184f126e068Smrg 4185f126e068Smrg 4186f126e068Smrg# We'll loop over all known methods to create a tar archive until one works. 4187f126e068Smrg_am_tools='gnutar pax cpio none' 4188d13010c3Smrg 4189f126e068Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4190d13010c3Smrg 41918b22bf3fSmrg 41928b22bf3fSmrg 41938b22bf3fSmrg 41948b22bf3fSmrg 41958b22bf3fSmrgdepcc="$CC" am_compiler_list= 41968b22bf3fSmrg 41975bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 419896a81b41Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 41995bd32fd1Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 420096a81b41Smrg $as_echo_n "(cached) " >&6 42018b22bf3fSmrgelse 42028b22bf3fSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 42038b22bf3fSmrg # We make a subdir and do the tests there. Otherwise we can end up 42048b22bf3fSmrg # making bogus files that we don't know about and never remove. For 42058b22bf3fSmrg # instance it was reported that on HP-UX the gcc test will end up 4206f126e068Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 4207f126e068Smrg # in D". 4208f126e068Smrg rm -rf conftest.dir 42098b22bf3fSmrg mkdir conftest.dir 42108b22bf3fSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 42118b22bf3fSmrg # using a relative directory. 42128b22bf3fSmrg cp "$am_depcomp" conftest.dir 42138b22bf3fSmrg cd conftest.dir 42148b22bf3fSmrg # We will build objects and dependencies in a subdirectory because 42158b22bf3fSmrg # it helps to detect inapplicable dependency modes. For instance 42168b22bf3fSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 42178b22bf3fSmrg # side effect of compilation, but ICC will put the dependencies in 42188b22bf3fSmrg # the current directory while Tru64 will put them in the object 42198b22bf3fSmrg # directory. 42208b22bf3fSmrg mkdir sub 42218b22bf3fSmrg 42228b22bf3fSmrg am_cv_CC_dependencies_compiler_type=none 42238b22bf3fSmrg if test "$am_compiler_list" = ""; then 42248b22bf3fSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 42258b22bf3fSmrg fi 422696a81b41Smrg am__universal=false 422796a81b41Smrg case " $depcc " in #( 422896a81b41Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 422996a81b41Smrg esac 423096a81b41Smrg 42318b22bf3fSmrg for depmode in $am_compiler_list; do 42328b22bf3fSmrg # Setup a source with many dependencies, because some compilers 42338b22bf3fSmrg # like to wrap large dependency lists on column 80 (with \), and 42348b22bf3fSmrg # we should not choose a depcomp mode which is confused by this. 42358b22bf3fSmrg # 42368b22bf3fSmrg # We need to recreate these files for each test, as the compiler may 42378b22bf3fSmrg # overwrite some of them when testing with obscure command lines. 42388b22bf3fSmrg # This happens at least with the AIX C compiler. 42398b22bf3fSmrg : > sub/conftest.c 42408b22bf3fSmrg for i in 1 2 3 4 5 6; do 42418b22bf3fSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 4242f126e068Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4243f126e068Smrg # Solaris 10 /bin/sh. 4244f126e068Smrg echo '/* dummy */' > sub/conftst$i.h 42458b22bf3fSmrg done 42468b22bf3fSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 42478b22bf3fSmrg 4248f126e068Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 424996a81b41Smrg # mode. It turns out that the SunPro C++ compiler does not properly 4250f126e068Smrg # handle '-M -o', and we need to detect this. Also, some Intel 4251f126e068Smrg # versions had trouble with output in subdirs. 425296a81b41Smrg am__obj=sub/conftest.${OBJEXT-o} 425396a81b41Smrg am__minus_obj="-o $am__obj" 42548b22bf3fSmrg case $depmode in 425596a81b41Smrg gcc) 425696a81b41Smrg # This depmode causes a compiler race in universal mode. 425796a81b41Smrg test "$am__universal" = false || continue 425896a81b41Smrg ;; 42598b22bf3fSmrg nosideeffect) 4260f126e068Smrg # After this tag, mechanisms are not by side-effect, so they'll 4261f126e068Smrg # only be used when explicitly requested. 42628b22bf3fSmrg if test "x$enable_dependency_tracking" = xyes; then 42638b22bf3fSmrg continue 42648b22bf3fSmrg else 42658b22bf3fSmrg break 42668b22bf3fSmrg fi 42678b22bf3fSmrg ;; 4268f126e068Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4269f126e068Smrg # This compiler won't grok '-c -o', but also, the minuso test has 427096a81b41Smrg # not run yet. These depmodes are late enough in the game, and 427196a81b41Smrg # so weak that their functioning should not be impacted. 427296a81b41Smrg am__obj=conftest.${OBJEXT-o} 427396a81b41Smrg am__minus_obj= 427496a81b41Smrg ;; 42758b22bf3fSmrg none) break ;; 42768b22bf3fSmrg esac 42778b22bf3fSmrg if depmode=$depmode \ 427896a81b41Smrg source=sub/conftest.c object=$am__obj \ 42798b22bf3fSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 428096a81b41Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 42818b22bf3fSmrg >/dev/null 2>conftest.err && 42828b22bf3fSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 42838b22bf3fSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 428496a81b41Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 42858b22bf3fSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 42868b22bf3fSmrg # icc doesn't choke on unknown options, it will just issue warnings 42878b22bf3fSmrg # or remarks (even with -Werror). So we grep stderr for any message 42888b22bf3fSmrg # that says an option was ignored or not supported. 42898b22bf3fSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 42908b22bf3fSmrg # icc: Command line warning: ignoring option '-M'; no argument required 42918b22bf3fSmrg # The diagnosis changed in icc 8.0: 42928b22bf3fSmrg # icc: Command line remark: option '-MP' not supported 42938b22bf3fSmrg if (grep 'ignoring option' conftest.err || 42948b22bf3fSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 42958b22bf3fSmrg am_cv_CC_dependencies_compiler_type=$depmode 42968b22bf3fSmrg break 4297d13010c3Smrg fi 4298d13010c3Smrg fi 4299d13010c3Smrg done 43008b22bf3fSmrg 4301d13010c3Smrg cd .. 4302d13010c3Smrg rm -rf conftest.dir 43038b22bf3fSmrgelse 4304d13010c3Smrg am_cv_CC_dependencies_compiler_type=none 43058b22bf3fSmrgfi 43068b22bf3fSmrg 43078b22bf3fSmrgfi 4308d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4309d13010c3Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4310d13010c3SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 43118b22bf3fSmrg 4312d13010c3Smrg if 4313d13010c3Smrg test "x$enable_dependency_tracking" != xno \ 4314d13010c3Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4315d13010c3Smrg am__fastdepCC_TRUE= 4316d13010c3Smrg am__fastdepCC_FALSE='#' 43178b22bf3fSmrgelse 4318d13010c3Smrg am__fastdepCC_TRUE='#' 4319d13010c3Smrg am__fastdepCC_FALSE= 43208b22bf3fSmrgfi 43218b22bf3fSmrg 4322d13010c3Smrg 4323d13010c3Smrg 4324f126e068Smrg# POSIX will say in a future version that running "rm -f" with no argument 4325f126e068Smrg# is OK; and we want to be able to make that assumption in our Makefile 4326f126e068Smrg# recipes. So use an aggressive probe to check that the usage we want is 4327f126e068Smrg# actually supported "in the wild" to an acceptable degree. 4328f126e068Smrg# See automake bug#10828. 4329f126e068Smrg# To make any issue more visible, cause the running configure to be aborted 4330f126e068Smrg# by default if the 'rm' program in use doesn't match our expectations; the 4331f126e068Smrg# user can still override this though. 4332f126e068Smrgif rm -f && rm -fr && rm -rf; then : OK; else 4333f126e068Smrg cat >&2 <<'END' 4334f126e068SmrgOops! 4335f126e068Smrg 4336f126e068SmrgYour 'rm' program seems unable to run without file operands specified 4337f126e068Smrgon the command line, even when the '-f' option is present. This is contrary 4338f126e068Smrgto the behaviour of most rm programs out there, and not conforming with 4339f126e068Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4340f126e068Smrg 4341f126e068SmrgPlease tell bug-automake@gnu.org about your system, including the value 4342f126e068Smrgof your $PATH and any error possibly output before this message. This 4343f126e068Smrgcan help us improve future automake versions. 4344f126e068Smrg 4345f126e068SmrgEND 4346f126e068Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4347f126e068Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 4348f126e068Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4349f126e068Smrg echo >&2 4350f126e068Smrg else 4351f126e068Smrg cat >&2 <<'END' 4352f126e068SmrgAborting the configuration process, to ensure you take notice of the issue. 4353f126e068Smrg 4354f126e068SmrgYou can download and install GNU coreutils to get an 'rm' implementation 4355f126e068Smrgthat behaves properly: <http://www.gnu.org/software/coreutils/>. 4356f126e068Smrg 4357f126e068SmrgIf you want to complete the configuration process using your problematic 4358f126e068Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4359f126e068Smrgto "yes", and re-run configure. 4360f126e068Smrg 4361f126e068SmrgEND 4362f126e068Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4363f126e068Smrg fi 4364f126e068Smrgfi 4365d13010c3Smrg 43668b22bf3fSmrg 4367d13010c3Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 43688b22bf3fSmrg 43698b22bf3fSmrg 43708b22bf3fSmrg 43718b22bf3fSmrg 43728b22bf3fSmrg 4373d13010c3Smrg 4374d13010c3Smrg 4375d13010c3Smrg 4376d13010c3Smrg 4377d13010c3Smrg 4378d13010c3Smrg 4379d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4380d13010c3Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4381d13010c3Smrgif ${ac_cv_prog_cc_c99+:} false; then : 438296a81b41Smrg $as_echo_n "(cached) " >&6 43838b22bf3fSmrgelse 4384d13010c3Smrg ac_cv_prog_cc_c99=no 4385d13010c3Smrgac_save_CC=$CC 4386d13010c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4387d13010c3Smrg/* end confdefs.h. */ 4388d13010c3Smrg#include <stdarg.h> 4389d13010c3Smrg#include <stdbool.h> 4390d13010c3Smrg#include <stdlib.h> 4391d13010c3Smrg#include <wchar.h> 4392d13010c3Smrg#include <stdio.h> 4393d13010c3Smrg 4394d13010c3Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 4395d13010c3Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 4396d13010c3Smrg#define showlist(...) puts (#__VA_ARGS__) 4397d13010c3Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4398d13010c3Smrgstatic void 4399d13010c3Smrgtest_varargs_macros (void) 4400d13010c3Smrg{ 4401d13010c3Smrg int x = 1234; 4402d13010c3Smrg int y = 5678; 4403d13010c3Smrg debug ("Flag"); 4404d13010c3Smrg debug ("X = %d\n", x); 4405d13010c3Smrg showlist (The first, second, and third items.); 4406d13010c3Smrg report (x>y, "x is %d but y is %d", x, y); 4407d13010c3Smrg} 4408d13010c3Smrg 4409d13010c3Smrg// Check long long types. 4410d13010c3Smrg#define BIG64 18446744073709551615ull 4411d13010c3Smrg#define BIG32 4294967295ul 4412d13010c3Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4413d13010c3Smrg#if !BIG_OK 4414d13010c3Smrg your preprocessor is broken; 4415d13010c3Smrg#endif 4416d13010c3Smrg#if BIG_OK 4417d13010c3Smrg#else 4418d13010c3Smrg your preprocessor is broken; 4419d13010c3Smrg#endif 4420d13010c3Smrgstatic long long int bignum = -9223372036854775807LL; 4421d13010c3Smrgstatic unsigned long long int ubignum = BIG64; 44228b22bf3fSmrg 4423d13010c3Smrgstruct incomplete_array 4424d13010c3Smrg{ 4425d13010c3Smrg int datasize; 4426d13010c3Smrg double data[]; 4427d13010c3Smrg}; 44288b22bf3fSmrg 4429d13010c3Smrgstruct named_init { 4430d13010c3Smrg int number; 4431d13010c3Smrg const wchar_t *name; 4432d13010c3Smrg double average; 4433d13010c3Smrg}; 44348b22bf3fSmrg 4435d13010c3Smrgtypedef const char *ccp; 44368b22bf3fSmrg 4437d13010c3Smrgstatic inline int 4438d13010c3Smrgtest_restrict (ccp restrict text) 4439d13010c3Smrg{ 4440d13010c3Smrg // See if C++-style comments work. 4441d13010c3Smrg // Iterate through items via the restricted pointer. 4442d13010c3Smrg // Also check for declarations in for loops. 4443d13010c3Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4444d13010c3Smrg continue; 4445d13010c3Smrg return 0; 4446d13010c3Smrg} 44478b22bf3fSmrg 4448d13010c3Smrg// Check varargs and va_copy. 4449d13010c3Smrgstatic void 4450d13010c3Smrgtest_varargs (const char *format, ...) 44518b22bf3fSmrg{ 4452d13010c3Smrg va_list args; 4453d13010c3Smrg va_start (args, format); 4454d13010c3Smrg va_list args_copy; 4455d13010c3Smrg va_copy (args_copy, args); 44568b22bf3fSmrg 4457d13010c3Smrg const char *str; 4458d13010c3Smrg int number; 4459d13010c3Smrg float fnumber; 4460d13010c3Smrg 4461d13010c3Smrg while (*format) 4462d13010c3Smrg { 4463d13010c3Smrg switch (*format++) 4464d13010c3Smrg { 4465d13010c3Smrg case 's': // string 4466d13010c3Smrg str = va_arg (args_copy, const char *); 4467d13010c3Smrg break; 4468d13010c3Smrg case 'd': // int 4469d13010c3Smrg number = va_arg (args_copy, int); 4470d13010c3Smrg break; 4471d13010c3Smrg case 'f': // float 4472d13010c3Smrg fnumber = va_arg (args_copy, double); 4473d13010c3Smrg break; 4474d13010c3Smrg default: 4475d13010c3Smrg break; 4476d13010c3Smrg } 4477d13010c3Smrg } 4478d13010c3Smrg va_end (args_copy); 4479d13010c3Smrg va_end (args); 44808b22bf3fSmrg} 44818b22bf3fSmrg 4482d13010c3Smrgint 4483d13010c3Smrgmain () 4484d13010c3Smrg{ 44858b22bf3fSmrg 4486d13010c3Smrg // Check bool. 4487d13010c3Smrg _Bool success = false; 44885bd32fd1Smrg 4489d13010c3Smrg // Check restrict. 4490d13010c3Smrg if (test_restrict ("String literal") == 0) 4491d13010c3Smrg success = true; 4492d13010c3Smrg char *restrict newvar = "Another string"; 44938b22bf3fSmrg 4494d13010c3Smrg // Check varargs. 4495d13010c3Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 4496d13010c3Smrg test_varargs_macros (); 44978b22bf3fSmrg 4498d13010c3Smrg // Check flexible array members. 4499d13010c3Smrg struct incomplete_array *ia = 4500d13010c3Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4501d13010c3Smrg ia->datasize = 10; 4502d13010c3Smrg for (int i = 0; i < ia->datasize; ++i) 4503d13010c3Smrg ia->data[i] = i * 1.234; 45048b22bf3fSmrg 4505d13010c3Smrg // Check named initializers. 4506d13010c3Smrg struct named_init ni = { 4507d13010c3Smrg .number = 34, 4508d13010c3Smrg .name = L"Test wide string", 4509d13010c3Smrg .average = 543.34343, 4510d13010c3Smrg }; 45115bd32fd1Smrg 4512d13010c3Smrg ni.number = 58; 45138b22bf3fSmrg 4514d13010c3Smrg int dynamic_array[ni.number]; 4515d13010c3Smrg dynamic_array[ni.number - 1] = 543; 45168b22bf3fSmrg 4517d13010c3Smrg // work around unused variable warnings 4518d13010c3Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4519d13010c3Smrg || dynamic_array[ni.number - 1] != 543); 45208b22bf3fSmrg 4521d13010c3Smrg ; 45228b22bf3fSmrg return 0; 45238b22bf3fSmrg} 45248b22bf3fSmrg_ACEOF 4525c74b14bdSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4526d13010c3Smrgdo 4527d13010c3Smrg CC="$ac_save_CC $ac_arg" 4528d13010c3Smrg if ac_fn_c_try_compile "$LINENO"; then : 4529d13010c3Smrg ac_cv_prog_cc_c99=$ac_arg 45308b22bf3fSmrgfi 4531d13010c3Smrgrm -f core conftest.err conftest.$ac_objext 4532d13010c3Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 4533d13010c3Smrgdone 4534d13010c3Smrgrm -f conftest.$ac_ext 4535d13010c3SmrgCC=$ac_save_CC 45368b22bf3fSmrg 45378b22bf3fSmrgfi 4538d13010c3Smrg# AC_CACHE_VAL 4539d13010c3Smrgcase "x$ac_cv_prog_cc_c99" in 4540d13010c3Smrg x) 4541d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4542d13010c3Smrg$as_echo "none needed" >&6; } ;; 4543d13010c3Smrg xno) 4544d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4545d13010c3Smrg$as_echo "unsupported" >&6; } ;; 4546d13010c3Smrg *) 4547d13010c3Smrg CC="$CC $ac_cv_prog_cc_c99" 4548d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4549d13010c3Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4550d13010c3Smrgesac 4551d13010c3Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 45528b22bf3fSmrg 45538b22bf3fSmrgfi 45548b22bf3fSmrg 45558b22bf3fSmrg 45568b22bf3fSmrg 4557d13010c3Smrg 45588b22bf3fSmrg 45598b22bf3fSmrg 4560f126e068Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4561f126e068Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 4562f126e068Smrg CLANGCC="yes" 4563f126e068Smrgelse 4564f126e068Smrg CLANGCC="no" 4565f126e068Smrgfi 4566f126e068Smrg 4567f126e068Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4568f126e068Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4569f126e068Smrg INTELCC="yes" 4570f126e068Smrgelse 4571f126e068Smrg INTELCC="no" 4572f126e068Smrgfi 4573f126e068Smrg 4574f126e068Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4575f126e068Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4576f126e068Smrg SUNCC="yes" 4577f126e068Smrgelse 4578f126e068Smrg SUNCC="no" 4579f126e068Smrgfi 4580f126e068Smrg 4581f126e068Smrg 45825bd32fd1Smrg 45835bd32fd1Smrg 4584c74b14bdSmrg 4585c74b14bdSmrg 4586c74b14bdSmrg 4587c74b14bdSmrg 4588c74b14bdSmrg 45895bd32fd1Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 45905bd32fd1Smrg if test -n "$ac_tool_prefix"; then 45915bd32fd1Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 45925bd32fd1Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 45935bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45945bd32fd1Smrg$as_echo_n "checking for $ac_word... " >&6; } 45955bd32fd1Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 459696a81b41Smrg $as_echo_n "(cached) " >&6 45978b22bf3fSmrgelse 45985bd32fd1Smrg case $PKG_CONFIG in 45995bd32fd1Smrg [\\/]* | ?:[\\/]*) 46005bd32fd1Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 46015bd32fd1Smrg ;; 46025bd32fd1Smrg *) 46035bd32fd1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46045bd32fd1Smrgfor as_dir in $PATH 460596a81b41Smrgdo 46065bd32fd1Smrg IFS=$as_save_IFS 46075bd32fd1Smrg test -z "$as_dir" && as_dir=. 46085bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4609c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46105bd32fd1Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 46115bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46125bd32fd1Smrg break 2 46135bd32fd1Smrg fi 46145bd32fd1Smrgdone 46155bd32fd1Smrg done 46165bd32fd1SmrgIFS=$as_save_IFS 46175bd32fd1Smrg 46185bd32fd1Smrg ;; 46198b22bf3fSmrgesac 46205bd32fd1Smrgfi 46215bd32fd1SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 46225bd32fd1Smrgif test -n "$PKG_CONFIG"; then 46235bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 46245bd32fd1Smrg$as_echo "$PKG_CONFIG" >&6; } 46258b22bf3fSmrgelse 46265bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46275bd32fd1Smrg$as_echo "no" >&6; } 46288b22bf3fSmrgfi 46298b22bf3fSmrg 46308b22bf3fSmrg 46318b22bf3fSmrgfi 46325bd32fd1Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 46335bd32fd1Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 46345bd32fd1Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 46355bd32fd1Smrgset dummy pkg-config; ac_word=$2 46365bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46375bd32fd1Smrg$as_echo_n "checking for $ac_word... " >&6; } 46385bd32fd1Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 46395bd32fd1Smrg $as_echo_n "(cached) " >&6 46405bd32fd1Smrgelse 46415bd32fd1Smrg case $ac_pt_PKG_CONFIG in 46425bd32fd1Smrg [\\/]* | ?:[\\/]*) 46435bd32fd1Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 46445bd32fd1Smrg ;; 464596a81b41Smrg *) 46465bd32fd1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46475bd32fd1Smrgfor as_dir in $PATH 46485bd32fd1Smrgdo 46495bd32fd1Smrg IFS=$as_save_IFS 46505bd32fd1Smrg test -z "$as_dir" && as_dir=. 46515bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4652c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46535bd32fd1Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 46545bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46555bd32fd1Smrg break 2 46565bd32fd1Smrg fi 46575bd32fd1Smrgdone 46585bd32fd1Smrg done 46595bd32fd1SmrgIFS=$as_save_IFS 46605bd32fd1Smrg 46615bd32fd1Smrg ;; 466296a81b41Smrgesac 46635bd32fd1Smrgfi 46645bd32fd1Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 46655bd32fd1Smrgif test -n "$ac_pt_PKG_CONFIG"; then 46665bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 46675bd32fd1Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 46685bd32fd1Smrgelse 46695bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46705bd32fd1Smrg$as_echo "no" >&6; } 46715bd32fd1Smrgfi 46728b22bf3fSmrg 46735bd32fd1Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 46745bd32fd1Smrg PKG_CONFIG="" 46755bd32fd1Smrg else 46765bd32fd1Smrg case $cross_compiling:$ac_tool_warned in 46775bd32fd1Smrgyes:) 46785bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 46795bd32fd1Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 46805bd32fd1Smrgac_tool_warned=yes ;; 46815bd32fd1Smrgesac 46825bd32fd1Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 46835bd32fd1Smrg fi 46845bd32fd1Smrgelse 46855bd32fd1Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 46865bd32fd1Smrgfi 46878b22bf3fSmrg 46885bd32fd1Smrgfi 46895bd32fd1Smrgif test -n "$PKG_CONFIG"; then 46905bd32fd1Smrg _pkg_min_version=0.9.0 46915bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 46925bd32fd1Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 46935bd32fd1Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 46945bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46955bd32fd1Smrg$as_echo "yes" >&6; } 46965bd32fd1Smrg else 46975bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46985bd32fd1Smrg$as_echo "no" >&6; } 46995bd32fd1Smrg PKG_CONFIG="" 47005bd32fd1Smrg fi 47015bd32fd1Smrgfi 470296a81b41Smrg# Make sure we can run config.sub. 470396a81b41Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 47045bd32fd1Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 470596a81b41Smrg 47065bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 470796a81b41Smrg$as_echo_n "checking build system type... " >&6; } 47085bd32fd1Smrgif ${ac_cv_build+:} false; then : 470996a81b41Smrg $as_echo_n "(cached) " >&6 471096a81b41Smrgelse 471196a81b41Smrg ac_build_alias=$build_alias 471296a81b41Smrgtest "x$ac_build_alias" = x && 471396a81b41Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 471496a81b41Smrgtest "x$ac_build_alias" = x && 47155bd32fd1Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 471696a81b41Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 47175bd32fd1Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 471896a81b41Smrg 471996a81b41Smrgfi 47205bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 472196a81b41Smrg$as_echo "$ac_cv_build" >&6; } 472296a81b41Smrgcase $ac_cv_build in 472396a81b41Smrg*-*-*) ;; 47245bd32fd1Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 472596a81b41Smrgesac 472696a81b41Smrgbuild=$ac_cv_build 472796a81b41Smrgac_save_IFS=$IFS; IFS='-' 472896a81b41Smrgset x $ac_cv_build 472996a81b41Smrgshift 473096a81b41Smrgbuild_cpu=$1 473196a81b41Smrgbuild_vendor=$2 473296a81b41Smrgshift; shift 473396a81b41Smrg# Remember, the first character of IFS is used to create $*, 473496a81b41Smrg# except with old shells: 473596a81b41Smrgbuild_os=$* 473696a81b41SmrgIFS=$ac_save_IFS 473796a81b41Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 473896a81b41Smrg 473996a81b41Smrg 47405bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 474196a81b41Smrg$as_echo_n "checking host system type... " >&6; } 47425bd32fd1Smrgif ${ac_cv_host+:} false; then : 474396a81b41Smrg $as_echo_n "(cached) " >&6 474496a81b41Smrgelse 474596a81b41Smrg if test "x$host_alias" = x; then 474696a81b41Smrg ac_cv_host=$ac_cv_build 474796a81b41Smrgelse 474896a81b41Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 47495bd32fd1Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 475096a81b41Smrgfi 475196a81b41Smrg 475296a81b41Smrgfi 47535bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 475496a81b41Smrg$as_echo "$ac_cv_host" >&6; } 475596a81b41Smrgcase $ac_cv_host in 475696a81b41Smrg*-*-*) ;; 47575bd32fd1Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 475896a81b41Smrgesac 475996a81b41Smrghost=$ac_cv_host 476096a81b41Smrgac_save_IFS=$IFS; IFS='-' 476196a81b41Smrgset x $ac_cv_host 476296a81b41Smrgshift 476396a81b41Smrghost_cpu=$1 476496a81b41Smrghost_vendor=$2 476596a81b41Smrgshift; shift 476696a81b41Smrg# Remember, the first character of IFS is used to create $*, 476796a81b41Smrg# except with old shells: 476896a81b41Smrghost_os=$* 476996a81b41SmrgIFS=$ac_save_IFS 477096a81b41Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 477196a81b41Smrg 477296a81b41Smrg 47735bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 47745bd32fd1Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 47755bd32fd1Smrgif ${ac_cv_path_SED+:} false; then : 477696a81b41Smrg $as_echo_n "(cached) " >&6 477796a81b41Smrgelse 47785bd32fd1Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 47795bd32fd1Smrg for ac_i in 1 2 3 4 5 6 7; do 47805bd32fd1Smrg ac_script="$ac_script$as_nl$ac_script" 47815bd32fd1Smrg done 47825bd32fd1Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 47835bd32fd1Smrg { ac_script=; unset ac_script;} 47845bd32fd1Smrg if test -z "$SED"; then 47855bd32fd1Smrg ac_path_SED_found=false 47865bd32fd1Smrg # Loop through the user's path and test for each of PROGNAME-LIST 47875bd32fd1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47885bd32fd1Smrgfor as_dir in $PATH 47895bd32fd1Smrgdo 47905bd32fd1Smrg IFS=$as_save_IFS 47915bd32fd1Smrg test -z "$as_dir" && as_dir=. 47925bd32fd1Smrg for ac_prog in sed gsed; do 47935bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 47945bd32fd1Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4795c74b14bdSmrg as_fn_executable_p "$ac_path_SED" || continue 47965bd32fd1Smrg# Check for GNU ac_path_SED and select it if it is found. 47975bd32fd1Smrg # Check for GNU $ac_path_SED 47985bd32fd1Smrgcase `"$ac_path_SED" --version 2>&1` in 47995bd32fd1Smrg*GNU*) 48005bd32fd1Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 48015bd32fd1Smrg*) 48025bd32fd1Smrg ac_count=0 48035bd32fd1Smrg $as_echo_n 0123456789 >"conftest.in" 48045bd32fd1Smrg while : 48055bd32fd1Smrg do 48065bd32fd1Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 48075bd32fd1Smrg mv "conftest.tmp" "conftest.in" 48085bd32fd1Smrg cp "conftest.in" "conftest.nl" 48095bd32fd1Smrg $as_echo '' >> "conftest.nl" 48105bd32fd1Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 48115bd32fd1Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 48125bd32fd1Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 48135bd32fd1Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 48145bd32fd1Smrg # Best one so far, save it but keep looking for a better one 48155bd32fd1Smrg ac_cv_path_SED="$ac_path_SED" 48165bd32fd1Smrg ac_path_SED_max=$ac_count 48175bd32fd1Smrg fi 48185bd32fd1Smrg # 10*(2^10) chars as input seems more than enough 48195bd32fd1Smrg test $ac_count -gt 10 && break 48205bd32fd1Smrg done 48215bd32fd1Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 482296a81b41Smrgesac 482396a81b41Smrg 48245bd32fd1Smrg $ac_path_SED_found && break 3 48255bd32fd1Smrg done 48265bd32fd1Smrg done 48275bd32fd1Smrg done 48285bd32fd1SmrgIFS=$as_save_IFS 48295bd32fd1Smrg if test -z "$ac_cv_path_SED"; then 48305bd32fd1Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 48315bd32fd1Smrg fi 483296a81b41Smrgelse 48335bd32fd1Smrg ac_cv_path_SED=$SED 483496a81b41Smrgfi 483596a81b41Smrg 483696a81b41Smrgfi 48375bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 48385bd32fd1Smrg$as_echo "$ac_cv_path_SED" >&6; } 48395bd32fd1Smrg SED="$ac_cv_path_SED" 48405bd32fd1Smrg rm -f conftest.sed 484196a81b41Smrg 484296a81b41Smrg 484396a81b41Smrg 484496a81b41Smrg 484596a81b41Smrg 484696a81b41Smrg 4847f126e068Smrg# Check whether --enable-selective-werror was given. 4848f126e068Smrgif test "${enable_selective_werror+set}" = set; then : 4849f126e068Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4850f126e068Smrgelse 4851f126e068Smrg SELECTIVE_WERROR=yes 48525bd32fd1Smrgfi 48535bd32fd1Smrg 48545bd32fd1Smrg 48555bd32fd1Smrg 48565bd32fd1Smrg 485796a81b41Smrg 4858f126e068Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 4859f126e068Smrgif test "x$SUNCC" = "xyes"; then 4860f126e068Smrg BASE_CFLAGS="-v" 486196a81b41Smrgelse 4862f126e068Smrg BASE_CFLAGS="" 486396a81b41Smrgfi 486496a81b41Smrg 4865f126e068Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 486696a81b41Smrg 486796a81b41Smrg 486896a81b41Smrg 486996a81b41Smrg 487096a81b41Smrg 487196a81b41Smrg 487296a81b41Smrg 487396a81b41Smrg 487496a81b41Smrg 487596a81b41Smrg 487696a81b41Smrg 48775bd32fd1Smrg 48785bd32fd1Smrg 4879f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 48805bd32fd1Smrg 4881f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4882f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4883f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4884f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4885f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4886f126e068Smrg $as_echo_n "(cached) " >&6 4887f126e068Smrgelse 4888f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4889f126e068Smrg/* end confdefs.h. */ 4890f126e068Smrgint i; 4891f126e068Smrg_ACEOF 4892f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 4893f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 4894f126e068Smrgelse 4895f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 4896f126e068Smrgfi 4897f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4898f126e068Smrgfi 4899f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4900f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4901f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4902f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4903f126e068Smrgfi 49045bd32fd1Smrg 4905f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4906f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4907f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4908f126e068Smrg fi 4909f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4910f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4911f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4912f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4913f126e068Smrg $as_echo_n "(cached) " >&6 4914f126e068Smrgelse 4915f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4916f126e068Smrg/* end confdefs.h. */ 4917f126e068Smrgint i; 4918f126e068Smrg_ACEOF 4919f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 4920f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 4921f126e068Smrgelse 4922f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 4923f126e068Smrgfi 4924f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4925f126e068Smrgfi 4926f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4927f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4928f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4929f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4930f126e068Smrgfi 493196a81b41Smrg 4932f126e068Smrgfound="no" 493396a81b41Smrg 4934f126e068Smrg if test $found = "no" ; then 4935f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4936f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4937f126e068Smrg fi 493896a81b41Smrg 4939f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4940f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4941f126e068Smrg fi 494296a81b41Smrg 4943f126e068Smrg CFLAGS="$CFLAGS -Wall" 494496a81b41Smrg 4945f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4946f126e068Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; } 4947f126e068Smrg cacheid=xorg_cv_cc_flag__Wall 4948f126e068Smrg if eval \${$cacheid+:} false; then : 4949f126e068Smrg $as_echo_n "(cached) " >&6 4950f126e068Smrgelse 4951f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4952f126e068Smrg/* end confdefs.h. */ 4953f126e068Smrgint i; 4954f126e068Smrgint 4955f126e068Smrgmain () 4956f126e068Smrg{ 495796a81b41Smrg 4958f126e068Smrg ; 4959f126e068Smrg return 0; 4960f126e068Smrg} 4961f126e068Smrg_ACEOF 4962f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 4963f126e068Smrg eval $cacheid=yes 4964f126e068Smrgelse 4965f126e068Smrg eval $cacheid=no 496696a81b41Smrgfi 4967f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 4968f126e068Smrg conftest$ac_exeext conftest.$ac_ext 496996a81b41Smrgfi 497096a81b41Smrg 497196a81b41Smrg 4972f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 497396a81b41Smrg 4974f126e068Smrg eval supported=\$$cacheid 4975f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4976f126e068Smrg$as_echo "$supported" >&6; } 4977f126e068Smrg if test "$supported" = "yes" ; then 4978f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 4979f126e068Smrg found="yes" 4980f126e068Smrg fi 4981f126e068Smrg fi 498296a81b41Smrg 498396a81b41Smrg 498496a81b41Smrg 498596a81b41Smrg 498696a81b41Smrg 498796a81b41Smrg 498896a81b41Smrg 498996a81b41Smrg 499096a81b41Smrg 499196a81b41Smrg 499296a81b41Smrg 499396a81b41Smrg 499496a81b41Smrg 499596a81b41Smrg 499696a81b41Smrg 4997f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 499896a81b41Smrg 4999f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5000f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5001f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5002f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5003f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5004f126e068Smrg $as_echo_n "(cached) " >&6 5005f126e068Smrgelse 5006f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5007f126e068Smrg/* end confdefs.h. */ 5008f126e068Smrgint i; 5009f126e068Smrg_ACEOF 5010f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5011f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5012f126e068Smrgelse 5013f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 5014f126e068Smrgfi 5015f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5016f126e068Smrgfi 5017f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5018f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5019f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5020f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5021f126e068Smrgfi 502296a81b41Smrg 5023f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5024f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5025f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5026f126e068Smrg fi 5027f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5028f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5029f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5030f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5031f126e068Smrg $as_echo_n "(cached) " >&6 5032f126e068Smrgelse 5033f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5034f126e068Smrg/* end confdefs.h. */ 5035f126e068Smrgint i; 5036f126e068Smrg_ACEOF 5037f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5038f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5039f126e068Smrgelse 5040f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5041f126e068Smrgfi 5042f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5043f126e068Smrgfi 5044f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5045f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5046f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5047f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5048f126e068Smrgfi 5049f126e068Smrg 5050f126e068Smrgfound="no" 5051f126e068Smrg 5052f126e068Smrg if test $found = "no" ; then 5053f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5054f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5055f126e068Smrg fi 5056f126e068Smrg 5057f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5058f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5059f126e068Smrg fi 5060f126e068Smrg 5061f126e068Smrg CFLAGS="$CFLAGS -Wpointer-arith" 5062f126e068Smrg 5063f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5064f126e068Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5065f126e068Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 5066f126e068Smrg if eval \${$cacheid+:} false; then : 5067f126e068Smrg $as_echo_n "(cached) " >&6 5068f126e068Smrgelse 5069f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5070f126e068Smrg/* end confdefs.h. */ 5071f126e068Smrgint i; 5072f126e068Smrgint 5073f126e068Smrgmain () 5074f126e068Smrg{ 5075f126e068Smrg 5076f126e068Smrg ; 5077f126e068Smrg return 0; 5078f126e068Smrg} 5079f126e068Smrg_ACEOF 5080f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 5081f126e068Smrg eval $cacheid=yes 5082f126e068Smrgelse 5083f126e068Smrg eval $cacheid=no 5084f126e068Smrgfi 5085f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 5086f126e068Smrg conftest$ac_exeext conftest.$ac_ext 5087f126e068Smrgfi 5088f126e068Smrg 5089f126e068Smrg 5090f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5091f126e068Smrg 5092f126e068Smrg eval supported=\$$cacheid 5093f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5094f126e068Smrg$as_echo "$supported" >&6; } 5095f126e068Smrg if test "$supported" = "yes" ; then 5096f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5097f126e068Smrg found="yes" 5098f126e068Smrg fi 5099f126e068Smrg fi 5100f126e068Smrg 5101f126e068Smrg 5102f126e068Smrg 5103f126e068Smrg 5104f126e068Smrg 5105f126e068Smrg 5106f126e068Smrg 5107f126e068Smrg 5108f126e068Smrg 5109f126e068Smrg 5110f126e068Smrg 5111f126e068Smrg 5112f126e068Smrg 5113f126e068Smrg 5114f126e068Smrg 5115f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5116f126e068Smrg 5117f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5118f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5119f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5120f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5121f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5122f126e068Smrg $as_echo_n "(cached) " >&6 5123f126e068Smrgelse 5124f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5125f126e068Smrg/* end confdefs.h. */ 5126f126e068Smrgint i; 5127f126e068Smrg_ACEOF 5128f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5129f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5130f126e068Smrgelse 5131f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 5132f126e068Smrgfi 5133f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5134f126e068Smrgfi 5135f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5136f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5137f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5138f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5139f126e068Smrgfi 5140f126e068Smrg 5141f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5142f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5143f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5144f126e068Smrg fi 5145f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5146f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5147f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5148f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5149f126e068Smrg $as_echo_n "(cached) " >&6 5150f126e068Smrgelse 5151f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5152f126e068Smrg/* end confdefs.h. */ 5153f126e068Smrgint i; 5154f126e068Smrg_ACEOF 5155f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5156f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5157f126e068Smrgelse 5158f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5159f126e068Smrgfi 5160f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5161f126e068Smrgfi 5162f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5163f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5164f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5165f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5166f126e068Smrgfi 5167f126e068Smrg 5168f126e068Smrgfound="no" 5169f126e068Smrg 5170f126e068Smrg if test $found = "no" ; then 5171f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5172f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5173f126e068Smrg fi 5174f126e068Smrg 5175f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5176f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5177f126e068Smrg fi 5178f126e068Smrg 5179f126e068Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 5180f126e068Smrg 5181f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5182f126e068Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5183f126e068Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 5184f126e068Smrg if eval \${$cacheid+:} false; then : 5185f126e068Smrg $as_echo_n "(cached) " >&6 5186f126e068Smrgelse 5187f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5188f126e068Smrg/* end confdefs.h. */ 5189f126e068Smrgint i; 5190f126e068Smrgint 5191f126e068Smrgmain () 5192f126e068Smrg{ 5193f126e068Smrg 5194f126e068Smrg ; 5195f126e068Smrg return 0; 5196f126e068Smrg} 5197f126e068Smrg_ACEOF 5198f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 5199f126e068Smrg eval $cacheid=yes 5200f126e068Smrgelse 5201f126e068Smrg eval $cacheid=no 5202f126e068Smrgfi 5203f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 5204f126e068Smrg conftest$ac_exeext conftest.$ac_ext 5205f126e068Smrgfi 5206f126e068Smrg 5207f126e068Smrg 5208f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5209f126e068Smrg 5210f126e068Smrg eval supported=\$$cacheid 5211f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5212f126e068Smrg$as_echo "$supported" >&6; } 5213f126e068Smrg if test "$supported" = "yes" ; then 5214f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5215f126e068Smrg found="yes" 5216f126e068Smrg fi 5217f126e068Smrg fi 5218f126e068Smrg 5219f126e068Smrg 5220f126e068Smrg 5221f126e068Smrg 5222f126e068Smrg 5223f126e068Smrg 5224f126e068Smrg 5225f126e068Smrg 5226f126e068Smrg 5227f126e068Smrg 5228f126e068Smrg 5229f126e068Smrg 5230f126e068Smrg 5231f126e068Smrg 5232f126e068Smrg 5233f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5234f126e068Smrg 5235f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5236f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5237f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5238f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5239f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5240f126e068Smrg $as_echo_n "(cached) " >&6 5241f126e068Smrgelse 5242f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5243f126e068Smrg/* end confdefs.h. */ 5244f126e068Smrgint i; 5245f126e068Smrg_ACEOF 5246f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5247f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5248f126e068Smrgelse 5249f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 5250f126e068Smrgfi 5251f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5252f126e068Smrgfi 5253f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5254f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5255f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5256f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5257f126e068Smrgfi 5258f126e068Smrg 5259f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5260f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5261f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5262f126e068Smrg fi 5263f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5264f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5265f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5266f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5267f126e068Smrg $as_echo_n "(cached) " >&6 5268f126e068Smrgelse 5269f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5270f126e068Smrg/* end confdefs.h. */ 5271f126e068Smrgint i; 5272f126e068Smrg_ACEOF 5273f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5274f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5275f126e068Smrgelse 5276f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5277f126e068Smrgfi 5278f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5279f126e068Smrgfi 5280f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5281f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5282f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5283f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5284f126e068Smrgfi 5285f126e068Smrg 5286f126e068Smrgfound="no" 5287f126e068Smrg 5288f126e068Smrg if test $found = "no" ; then 5289f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5290f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5291f126e068Smrg fi 5292f126e068Smrg 5293f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5294f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5295f126e068Smrg fi 5296f126e068Smrg 5297f126e068Smrg CFLAGS="$CFLAGS -Wformat=2" 5298f126e068Smrg 5299f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5300f126e068Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5301c74b14bdSmrg cacheid=xorg_cv_cc_flag__Wformat_2 5302f126e068Smrg if eval \${$cacheid+:} false; then : 5303f126e068Smrg $as_echo_n "(cached) " >&6 5304f126e068Smrgelse 5305f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5306f126e068Smrg/* end confdefs.h. */ 5307f126e068Smrgint i; 5308f126e068Smrgint 5309f126e068Smrgmain () 5310f126e068Smrg{ 5311f126e068Smrg 5312f126e068Smrg ; 5313f126e068Smrg return 0; 5314f126e068Smrg} 5315f126e068Smrg_ACEOF 5316f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 5317f126e068Smrg eval $cacheid=yes 5318f126e068Smrgelse 5319f126e068Smrg eval $cacheid=no 5320f126e068Smrgfi 5321f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 5322f126e068Smrg conftest$ac_exeext conftest.$ac_ext 5323f126e068Smrgfi 5324f126e068Smrg 5325f126e068Smrg 5326f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5327f126e068Smrg 5328f126e068Smrg eval supported=\$$cacheid 5329f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5330f126e068Smrg$as_echo "$supported" >&6; } 5331f126e068Smrg if test "$supported" = "yes" ; then 5332f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5333f126e068Smrg found="yes" 5334f126e068Smrg fi 5335f126e068Smrg fi 5336f126e068Smrg 5337f126e068Smrg if test $found = "no" ; then 5338f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5339f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5340f126e068Smrg fi 5341f126e068Smrg 5342f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5343f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5344f126e068Smrg fi 5345f126e068Smrg 5346f126e068Smrg CFLAGS="$CFLAGS -Wformat" 5347f126e068Smrg 5348f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5349f126e068Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5350f126e068Smrg cacheid=xorg_cv_cc_flag__Wformat 5351f126e068Smrg if eval \${$cacheid+:} false; then : 5352f126e068Smrg $as_echo_n "(cached) " >&6 5353f126e068Smrgelse 5354f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5355f126e068Smrg/* end confdefs.h. */ 5356f126e068Smrgint i; 5357f126e068Smrgint 5358f126e068Smrgmain () 5359f126e068Smrg{ 5360f126e068Smrg 5361f126e068Smrg ; 5362f126e068Smrg return 0; 5363f126e068Smrg} 5364f126e068Smrg_ACEOF 5365f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 5366f126e068Smrg eval $cacheid=yes 5367f126e068Smrgelse 5368f126e068Smrg eval $cacheid=no 5369f126e068Smrgfi 5370f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 5371f126e068Smrg conftest$ac_exeext conftest.$ac_ext 5372f126e068Smrgfi 5373f126e068Smrg 5374f126e068Smrg 5375f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5376f126e068Smrg 5377f126e068Smrg eval supported=\$$cacheid 5378f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5379f126e068Smrg$as_echo "$supported" >&6; } 5380f126e068Smrg if test "$supported" = "yes" ; then 5381f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5382f126e068Smrg found="yes" 5383f126e068Smrg fi 5384f126e068Smrg fi 5385f126e068Smrg 5386f126e068Smrg 5387f126e068Smrg 5388f126e068Smrg 5389f126e068Smrg 5390f126e068Smrg 5391f126e068Smrg 5392f126e068Smrg 5393f126e068Smrg 5394f126e068Smrg 5395f126e068Smrg 5396f126e068Smrg 5397f126e068Smrg 5398f126e068Smrg 5399f126e068Smrg 5400f126e068Smrg 5401f126e068Smrg 5402f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5403f126e068Smrg 5404f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5405f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5406f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5407f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5408f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5409f126e068Smrg $as_echo_n "(cached) " >&6 5410f126e068Smrgelse 5411f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5412f126e068Smrg/* end confdefs.h. */ 5413f126e068Smrgint i; 5414f126e068Smrg_ACEOF 5415f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5416f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5417f126e068Smrgelse 5418f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 5419f126e068Smrgfi 5420f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5421f126e068Smrgfi 5422f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5423f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5424f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5425f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5426f126e068Smrgfi 5427f126e068Smrg 5428f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5429f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5430f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5431f126e068Smrg fi 5432f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5433f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5434f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5435f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5436f126e068Smrg $as_echo_n "(cached) " >&6 5437f126e068Smrgelse 5438f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5439f126e068Smrg/* end confdefs.h. */ 5440f126e068Smrgint i; 5441f126e068Smrg_ACEOF 5442f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5443f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5444f126e068Smrgelse 5445f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5446f126e068Smrgfi 5447f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5448f126e068Smrgfi 5449f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5450f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5451f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5452f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5453f126e068Smrgfi 5454f126e068Smrg 5455f126e068Smrgfound="no" 5456f126e068Smrg 5457f126e068Smrg if test $found = "no" ; then 5458f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5459f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5460f126e068Smrg fi 5461f126e068Smrg 5462f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5463f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5464f126e068Smrg fi 5465f126e068Smrg 5466f126e068Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 5467f126e068Smrg 5468f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5469f126e068Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5470f126e068Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5471f126e068Smrg if eval \${$cacheid+:} false; then : 5472f126e068Smrg $as_echo_n "(cached) " >&6 5473f126e068Smrgelse 5474f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5475f126e068Smrg/* end confdefs.h. */ 5476f126e068Smrgint i; 5477f126e068Smrgint 5478f126e068Smrgmain () 5479f126e068Smrg{ 5480f126e068Smrg 5481f126e068Smrg ; 5482f126e068Smrg return 0; 5483f126e068Smrg} 5484f126e068Smrg_ACEOF 5485f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 5486f126e068Smrg eval $cacheid=yes 5487f126e068Smrgelse 5488f126e068Smrg eval $cacheid=no 5489f126e068Smrgfi 5490f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 5491f126e068Smrg conftest$ac_exeext conftest.$ac_ext 5492f126e068Smrgfi 5493f126e068Smrg 5494f126e068Smrg 5495f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5496f126e068Smrg 5497f126e068Smrg eval supported=\$$cacheid 5498f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5499f126e068Smrg$as_echo "$supported" >&6; } 5500f126e068Smrg if test "$supported" = "yes" ; then 5501f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5502f126e068Smrg found="yes" 5503f126e068Smrg fi 5504f126e068Smrg fi 5505f126e068Smrg 5506f126e068Smrg 5507f126e068Smrg 5508f126e068Smrg 5509f126e068Smrg 5510f126e068Smrg 5511f126e068Smrg 5512f126e068Smrg 5513f126e068Smrg 5514f126e068Smrg 5515f126e068Smrg 5516f126e068Smrg 5517f126e068Smrg 5518f126e068Smrg 5519f126e068Smrg 5520f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5521f126e068Smrg 5522f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5523f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5524f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5525f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5526f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5527f126e068Smrg $as_echo_n "(cached) " >&6 5528f126e068Smrgelse 5529f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5530f126e068Smrg/* end confdefs.h. */ 5531f126e068Smrgint i; 5532f126e068Smrg_ACEOF 5533f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5534f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5535f126e068Smrgelse 5536f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 5537f126e068Smrgfi 5538f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5539f126e068Smrgfi 5540f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5541f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5542f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5543f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5544f126e068Smrgfi 5545f126e068Smrg 5546f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5547f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5548f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5549f126e068Smrg fi 5550f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5551f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5552f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5553f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5554f126e068Smrg $as_echo_n "(cached) " >&6 5555f126e068Smrgelse 5556f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5557f126e068Smrg/* end confdefs.h. */ 5558f126e068Smrgint i; 5559f126e068Smrg_ACEOF 5560f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5561f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5562f126e068Smrgelse 5563f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5564f126e068Smrgfi 5565f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5566f126e068Smrgfi 5567f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5568f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5569f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5570f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5571f126e068Smrgfi 5572f126e068Smrg 5573f126e068Smrgfound="no" 5574f126e068Smrg 5575f126e068Smrg if test $found = "no" ; then 5576f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5577f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5578f126e068Smrg fi 5579f126e068Smrg 5580f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5581f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5582f126e068Smrg fi 5583f126e068Smrg 5584f126e068Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 5585f126e068Smrg 5586f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5587f126e068Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5588f126e068Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5589f126e068Smrg if eval \${$cacheid+:} false; then : 5590f126e068Smrg $as_echo_n "(cached) " >&6 5591f126e068Smrgelse 5592f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593f126e068Smrg/* end confdefs.h. */ 5594f126e068Smrgint i; 5595f126e068Smrgint 5596f126e068Smrgmain () 5597f126e068Smrg{ 5598f126e068Smrg 5599f126e068Smrg ; 5600f126e068Smrg return 0; 5601f126e068Smrg} 5602f126e068Smrg_ACEOF 5603f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 5604f126e068Smrg eval $cacheid=yes 5605f126e068Smrgelse 5606f126e068Smrg eval $cacheid=no 5607f126e068Smrgfi 5608f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 5609f126e068Smrg conftest$ac_exeext conftest.$ac_ext 5610f126e068Smrgfi 5611f126e068Smrg 5612f126e068Smrg 5613f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5614f126e068Smrg 5615f126e068Smrg eval supported=\$$cacheid 5616f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5617f126e068Smrg$as_echo "$supported" >&6; } 5618f126e068Smrg if test "$supported" = "yes" ; then 5619f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5620f126e068Smrg found="yes" 5621f126e068Smrg fi 5622f126e068Smrg fi 5623f126e068Smrg 5624f126e068Smrg 5625f126e068Smrg 5626f126e068Smrg 5627f126e068Smrg 5628f126e068Smrg 5629f126e068Smrg 5630f126e068Smrg 5631f126e068Smrg 5632f126e068Smrg 5633f126e068Smrg 5634f126e068Smrg 5635f126e068Smrg 5636f126e068Smrg 5637f126e068Smrg 5638f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5639f126e068Smrg 5640f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5641f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5642f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5643f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5644f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5645f126e068Smrg $as_echo_n "(cached) " >&6 5646f126e068Smrgelse 5647f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5648f126e068Smrg/* end confdefs.h. */ 5649f126e068Smrgint i; 5650f126e068Smrg_ACEOF 5651f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5652f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5653f126e068Smrgelse 5654f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 5655f126e068Smrgfi 5656f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5657f126e068Smrgfi 5658f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5659f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5660f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5661f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5662f126e068Smrgfi 5663f126e068Smrg 5664f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5665f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5666f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5667f126e068Smrg fi 5668f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5669f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5670f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5671f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5672f126e068Smrg $as_echo_n "(cached) " >&6 5673f126e068Smrgelse 5674f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5675f126e068Smrg/* end confdefs.h. */ 5676f126e068Smrgint i; 5677f126e068Smrg_ACEOF 5678f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5679f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5680f126e068Smrgelse 5681f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5682f126e068Smrgfi 5683f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5684f126e068Smrgfi 5685f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5686f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5687f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5688f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5689f126e068Smrgfi 5690f126e068Smrg 5691f126e068Smrgfound="no" 5692f126e068Smrg 5693f126e068Smrg if test $found = "no" ; then 5694f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5695f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5696f126e068Smrg fi 5697f126e068Smrg 5698f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5699f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5700f126e068Smrg fi 5701f126e068Smrg 5702f126e068Smrg CFLAGS="$CFLAGS -Wnested-externs" 5703f126e068Smrg 5704f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5705f126e068Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5706f126e068Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 5707f126e068Smrg if eval \${$cacheid+:} false; then : 5708f126e068Smrg $as_echo_n "(cached) " >&6 5709f126e068Smrgelse 5710f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5711f126e068Smrg/* end confdefs.h. */ 5712f126e068Smrgint i; 5713f126e068Smrgint 5714f126e068Smrgmain () 5715f126e068Smrg{ 5716f126e068Smrg 5717f126e068Smrg ; 5718f126e068Smrg return 0; 5719f126e068Smrg} 5720f126e068Smrg_ACEOF 5721f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 5722f126e068Smrg eval $cacheid=yes 5723f126e068Smrgelse 5724f126e068Smrg eval $cacheid=no 5725f126e068Smrgfi 5726f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 5727f126e068Smrg conftest$ac_exeext conftest.$ac_ext 5728f126e068Smrgfi 5729f126e068Smrg 5730f126e068Smrg 5731f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5732f126e068Smrg 5733f126e068Smrg eval supported=\$$cacheid 5734f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5735f126e068Smrg$as_echo "$supported" >&6; } 5736f126e068Smrg if test "$supported" = "yes" ; then 5737f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5738f126e068Smrg found="yes" 5739f126e068Smrg fi 5740f126e068Smrg fi 5741f126e068Smrg 5742f126e068Smrg 5743f126e068Smrg 5744f126e068Smrg 5745f126e068Smrg 5746f126e068Smrg 5747f126e068Smrg 5748f126e068Smrg 5749f126e068Smrg 5750f126e068Smrg 5751f126e068Smrg 5752f126e068Smrg 5753f126e068Smrg 5754f126e068Smrg 5755f126e068Smrg 5756f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5757f126e068Smrg 5758f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5759f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5760f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5761f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5762f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5763f126e068Smrg $as_echo_n "(cached) " >&6 5764f126e068Smrgelse 5765f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5766f126e068Smrg/* end confdefs.h. */ 5767f126e068Smrgint i; 5768f126e068Smrg_ACEOF 5769f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5770f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5771f126e068Smrgelse 5772f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 5773f126e068Smrgfi 5774f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5775f126e068Smrgfi 5776f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5777f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5778f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5779f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5780f126e068Smrgfi 5781f126e068Smrg 5782f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5783f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5784f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5785f126e068Smrg fi 5786f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5787f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5788f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5789f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5790f126e068Smrg $as_echo_n "(cached) " >&6 5791f126e068Smrgelse 5792f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5793f126e068Smrg/* end confdefs.h. */ 5794f126e068Smrgint i; 5795f126e068Smrg_ACEOF 5796f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5797f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5798f126e068Smrgelse 5799f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5800f126e068Smrgfi 5801f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5802f126e068Smrgfi 5803f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5804f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5805f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5806f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5807f126e068Smrgfi 5808f126e068Smrg 5809f126e068Smrgfound="no" 5810f126e068Smrg 5811f126e068Smrg if test $found = "no" ; then 5812f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5813f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5814f126e068Smrg fi 5815f126e068Smrg 5816f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5817f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5818f126e068Smrg fi 5819f126e068Smrg 5820f126e068Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 5821f126e068Smrg 5822f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5823f126e068Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5824f126e068Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 5825f126e068Smrg if eval \${$cacheid+:} false; then : 5826f126e068Smrg $as_echo_n "(cached) " >&6 5827f126e068Smrgelse 5828f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5829f126e068Smrg/* end confdefs.h. */ 5830f126e068Smrgint i; 5831f126e068Smrgint 5832f126e068Smrgmain () 5833f126e068Smrg{ 5834f126e068Smrg 5835f126e068Smrg ; 5836f126e068Smrg return 0; 5837f126e068Smrg} 5838f126e068Smrg_ACEOF 5839f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 5840f126e068Smrg eval $cacheid=yes 5841f126e068Smrgelse 5842f126e068Smrg eval $cacheid=no 5843f126e068Smrgfi 5844f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 5845f126e068Smrg conftest$ac_exeext conftest.$ac_ext 5846f126e068Smrgfi 5847f126e068Smrg 5848f126e068Smrg 5849f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5850f126e068Smrg 5851f126e068Smrg eval supported=\$$cacheid 5852f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5853f126e068Smrg$as_echo "$supported" >&6; } 5854f126e068Smrg if test "$supported" = "yes" ; then 5855f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5856f126e068Smrg found="yes" 5857f126e068Smrg fi 5858f126e068Smrg fi 5859f126e068Smrg 5860f126e068Smrg 5861f126e068Smrg 5862f126e068Smrg 5863f126e068Smrg 5864f126e068Smrg 5865f126e068Smrg 5866f126e068Smrg 5867f126e068Smrg 5868f126e068Smrg 5869f126e068Smrg 5870f126e068Smrg 5871f126e068Smrg 5872f126e068Smrg 5873f126e068Smrg 5874f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5875f126e068Smrg 5876f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5877f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5878f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5879f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5880f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5881f126e068Smrg $as_echo_n "(cached) " >&6 5882f126e068Smrgelse 5883f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5884f126e068Smrg/* end confdefs.h. */ 5885f126e068Smrgint i; 5886f126e068Smrg_ACEOF 5887f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5888f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5889f126e068Smrgelse 5890f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 5891f126e068Smrgfi 5892f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5893f126e068Smrgfi 5894f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5895f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5896f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5897f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5898f126e068Smrgfi 5899f126e068Smrg 5900f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5901f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5902f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5903f126e068Smrg fi 5904f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5905f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5906f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5907f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5908f126e068Smrg $as_echo_n "(cached) " >&6 5909f126e068Smrgelse 5910f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5911f126e068Smrg/* end confdefs.h. */ 5912f126e068Smrgint i; 5913f126e068Smrg_ACEOF 5914f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 5915f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5916f126e068Smrgelse 5917f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5918f126e068Smrgfi 5919f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5920f126e068Smrgfi 5921f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5922f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5923f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5924f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5925f126e068Smrgfi 5926f126e068Smrg 5927f126e068Smrgfound="no" 5928f126e068Smrg 5929f126e068Smrg if test $found = "no" ; then 5930f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5931f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5932f126e068Smrg fi 5933f126e068Smrg 5934f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5935f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5936f126e068Smrg fi 5937f126e068Smrg 5938f126e068Smrg CFLAGS="$CFLAGS -Wold-style-definition" 5939f126e068Smrg 5940f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5941f126e068Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5942f126e068Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 5943f126e068Smrg if eval \${$cacheid+:} false; then : 5944f126e068Smrg $as_echo_n "(cached) " >&6 5945f126e068Smrgelse 5946f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5947f126e068Smrg/* end confdefs.h. */ 5948f126e068Smrgint i; 5949f126e068Smrgint 5950f126e068Smrgmain () 5951f126e068Smrg{ 5952f126e068Smrg 5953f126e068Smrg ; 5954f126e068Smrg return 0; 5955f126e068Smrg} 5956f126e068Smrg_ACEOF 5957f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 5958f126e068Smrg eval $cacheid=yes 5959f126e068Smrgelse 5960f126e068Smrg eval $cacheid=no 5961f126e068Smrgfi 5962f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 5963f126e068Smrg conftest$ac_exeext conftest.$ac_ext 5964f126e068Smrgfi 5965f126e068Smrg 5966f126e068Smrg 5967f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5968f126e068Smrg 5969f126e068Smrg eval supported=\$$cacheid 5970f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5971f126e068Smrg$as_echo "$supported" >&6; } 5972f126e068Smrg if test "$supported" = "yes" ; then 5973f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5974f126e068Smrg found="yes" 5975f126e068Smrg fi 5976f126e068Smrg fi 5977f126e068Smrg 5978c74b14bdSmrg if test $found = "no" ; then 5979c74b14bdSmrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5980c74b14bdSmrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5981c74b14bdSmrg fi 5982c74b14bdSmrg 5983c74b14bdSmrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5984c74b14bdSmrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5985c74b14bdSmrg fi 5986c74b14bdSmrg 5987c74b14bdSmrg CFLAGS="$CFLAGS -fd" 5988c74b14bdSmrg 5989c74b14bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5990c74b14bdSmrg$as_echo_n "checking if $CC supports -fd... " >&6; } 5991c74b14bdSmrg cacheid=xorg_cv_cc_flag__fd 5992c74b14bdSmrg if eval \${$cacheid+:} false; then : 5993c74b14bdSmrg $as_echo_n "(cached) " >&6 5994c74b14bdSmrgelse 5995c74b14bdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5996c74b14bdSmrg/* end confdefs.h. */ 5997c74b14bdSmrgint i; 5998c74b14bdSmrgint 5999c74b14bdSmrgmain () 6000c74b14bdSmrg{ 6001c74b14bdSmrg 6002c74b14bdSmrg ; 6003c74b14bdSmrg return 0; 6004c74b14bdSmrg} 6005c74b14bdSmrg_ACEOF 6006c74b14bdSmrgif ac_fn_c_try_link "$LINENO"; then : 6007c74b14bdSmrg eval $cacheid=yes 6008c74b14bdSmrgelse 6009c74b14bdSmrg eval $cacheid=no 6010c74b14bdSmrgfi 6011c74b14bdSmrgrm -f core conftest.err conftest.$ac_objext \ 6012c74b14bdSmrg conftest$ac_exeext conftest.$ac_ext 6013c74b14bdSmrgfi 6014c74b14bdSmrg 6015c74b14bdSmrg 6016c74b14bdSmrg CFLAGS="$xorg_testset_save_CFLAGS" 6017c74b14bdSmrg 6018c74b14bdSmrg eval supported=\$$cacheid 6019c74b14bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6020c74b14bdSmrg$as_echo "$supported" >&6; } 6021c74b14bdSmrg if test "$supported" = "yes" ; then 6022c74b14bdSmrg BASE_CFLAGS="$BASE_CFLAGS -fd" 6023c74b14bdSmrg found="yes" 6024c74b14bdSmrg fi 6025c74b14bdSmrg fi 6026c74b14bdSmrg 6027f126e068Smrg 6028f126e068Smrg 6029f126e068Smrg 6030f126e068Smrg 6031f126e068Smrg 6032f126e068Smrg 6033f126e068Smrg 6034f126e068Smrg 6035f126e068Smrg 6036f126e068Smrg 6037f126e068Smrg 6038f126e068Smrg 6039f126e068Smrg 6040f126e068Smrg 6041f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6042f126e068Smrg 6043f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6044f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6045f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6046f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6047f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6048f126e068Smrg $as_echo_n "(cached) " >&6 6049f126e068Smrgelse 6050f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6051f126e068Smrg/* end confdefs.h. */ 6052f126e068Smrgint i; 6053f126e068Smrg_ACEOF 6054f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6055f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6056f126e068Smrgelse 6057f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 6058f126e068Smrgfi 6059f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6060f126e068Smrgfi 6061f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6062f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6063f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6064f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6065f126e068Smrgfi 6066f126e068Smrg 6067f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6068f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6069f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6070f126e068Smrg fi 6071f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6072f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6073f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6074f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6075f126e068Smrg $as_echo_n "(cached) " >&6 6076f126e068Smrgelse 6077f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6078f126e068Smrg/* end confdefs.h. */ 6079f126e068Smrgint i; 6080f126e068Smrg_ACEOF 6081f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6082f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6083f126e068Smrgelse 6084f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6085f126e068Smrgfi 6086f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6087f126e068Smrgfi 6088f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6089f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6090f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6091f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6092f126e068Smrgfi 6093f126e068Smrg 6094f126e068Smrgfound="no" 6095f126e068Smrg 6096f126e068Smrg if test $found = "no" ; then 6097f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6098f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6099f126e068Smrg fi 6100f126e068Smrg 6101f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6102f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6103f126e068Smrg fi 6104f126e068Smrg 6105f126e068Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6106f126e068Smrg 6107f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6108f126e068Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6109f126e068Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6110f126e068Smrg if eval \${$cacheid+:} false; then : 6111f126e068Smrg $as_echo_n "(cached) " >&6 6112f126e068Smrgelse 6113f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6114f126e068Smrg/* end confdefs.h. */ 6115f126e068Smrgint i; 6116f126e068Smrgint 6117f126e068Smrgmain () 6118f126e068Smrg{ 6119f126e068Smrg 6120f126e068Smrg ; 6121f126e068Smrg return 0; 6122f126e068Smrg} 6123f126e068Smrg_ACEOF 6124f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 6125f126e068Smrg eval $cacheid=yes 6126f126e068Smrgelse 6127f126e068Smrg eval $cacheid=no 6128f126e068Smrgfi 6129f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 6130f126e068Smrg conftest$ac_exeext conftest.$ac_ext 6131f126e068Smrgfi 6132f126e068Smrg 6133f126e068Smrg 6134f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6135f126e068Smrg 6136f126e068Smrg eval supported=\$$cacheid 6137f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6138f126e068Smrg$as_echo "$supported" >&6; } 6139f126e068Smrg if test "$supported" = "yes" ; then 6140f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6141f126e068Smrg found="yes" 6142f126e068Smrg fi 6143f126e068Smrg fi 6144f126e068Smrg 6145f126e068Smrg 6146f126e068Smrg 6147f126e068Smrg 6148f126e068Smrg 6149f126e068Smrg# This chunk adds additional warnings that could catch undesired effects. 6150f126e068Smrg 6151f126e068Smrg 6152f126e068Smrg 6153f126e068Smrg 6154f126e068Smrg 6155f126e068Smrg 6156f126e068Smrg 6157f126e068Smrg 6158f126e068Smrg 6159f126e068Smrg 6160f126e068Smrg 6161f126e068Smrg 6162f126e068Smrg 6163f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6164f126e068Smrg 6165f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6166f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6167f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6168f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6169f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6170f126e068Smrg $as_echo_n "(cached) " >&6 6171f126e068Smrgelse 6172f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6173f126e068Smrg/* end confdefs.h. */ 6174f126e068Smrgint i; 6175f126e068Smrg_ACEOF 6176f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6177f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6178f126e068Smrgelse 6179f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 6180f126e068Smrgfi 6181f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6182f126e068Smrgfi 6183f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6184f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6185f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6186f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6187f126e068Smrgfi 6188f126e068Smrg 6189f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6190f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6191f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6192f126e068Smrg fi 6193f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6194f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6195f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6196f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6197f126e068Smrg $as_echo_n "(cached) " >&6 6198f126e068Smrgelse 6199f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6200f126e068Smrg/* end confdefs.h. */ 6201f126e068Smrgint i; 6202f126e068Smrg_ACEOF 6203f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6204f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6205f126e068Smrgelse 6206f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6207f126e068Smrgfi 6208f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6209f126e068Smrgfi 6210f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6211f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6212f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6213f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6214f126e068Smrgfi 6215f126e068Smrg 6216f126e068Smrgfound="no" 6217f126e068Smrg 6218f126e068Smrg if test $found = "no" ; then 6219f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6220f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6221f126e068Smrg fi 6222f126e068Smrg 6223f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6224f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6225f126e068Smrg fi 6226f126e068Smrg 6227f126e068Smrg CFLAGS="$CFLAGS -Wunused" 6228f126e068Smrg 6229f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6230f126e068Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6231f126e068Smrg cacheid=xorg_cv_cc_flag__Wunused 6232f126e068Smrg if eval \${$cacheid+:} false; then : 6233f126e068Smrg $as_echo_n "(cached) " >&6 6234f126e068Smrgelse 6235f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6236f126e068Smrg/* end confdefs.h. */ 6237f126e068Smrgint i; 6238f126e068Smrgint 6239f126e068Smrgmain () 6240f126e068Smrg{ 6241f126e068Smrg 6242f126e068Smrg ; 6243f126e068Smrg return 0; 6244f126e068Smrg} 6245f126e068Smrg_ACEOF 6246f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 6247f126e068Smrg eval $cacheid=yes 6248f126e068Smrgelse 6249f126e068Smrg eval $cacheid=no 6250f126e068Smrgfi 6251f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 6252f126e068Smrg conftest$ac_exeext conftest.$ac_ext 6253f126e068Smrgfi 6254f126e068Smrg 6255f126e068Smrg 6256f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6257f126e068Smrg 6258f126e068Smrg eval supported=\$$cacheid 6259f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6260f126e068Smrg$as_echo "$supported" >&6; } 6261f126e068Smrg if test "$supported" = "yes" ; then 6262f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6263f126e068Smrg found="yes" 6264f126e068Smrg fi 6265f126e068Smrg fi 6266f126e068Smrg 6267f126e068Smrg 6268f126e068Smrg 6269f126e068Smrg 6270f126e068Smrg 6271f126e068Smrg 6272f126e068Smrg 6273f126e068Smrg 6274f126e068Smrg 6275f126e068Smrg 6276f126e068Smrg 6277f126e068Smrg 6278f126e068Smrg 6279f126e068Smrg 6280f126e068Smrg 6281f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6282f126e068Smrg 6283f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6284f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6285f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6286f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6287f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6288f126e068Smrg $as_echo_n "(cached) " >&6 6289f126e068Smrgelse 6290f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6291f126e068Smrg/* end confdefs.h. */ 6292f126e068Smrgint i; 6293f126e068Smrg_ACEOF 6294f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6295f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6296f126e068Smrgelse 6297f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 6298f126e068Smrgfi 6299f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6300f126e068Smrgfi 6301f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6302f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6303f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6304f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6305f126e068Smrgfi 6306f126e068Smrg 6307f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6308f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6309f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6310f126e068Smrg fi 6311f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6312f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6313f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6314f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6315f126e068Smrg $as_echo_n "(cached) " >&6 6316f126e068Smrgelse 6317f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6318f126e068Smrg/* end confdefs.h. */ 6319f126e068Smrgint i; 6320f126e068Smrg_ACEOF 6321f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6322f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6323f126e068Smrgelse 6324f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6325f126e068Smrgfi 6326f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6327f126e068Smrgfi 6328f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6329f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6330f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6331f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6332f126e068Smrgfi 6333f126e068Smrg 6334f126e068Smrgfound="no" 6335f126e068Smrg 6336f126e068Smrg if test $found = "no" ; then 6337f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6338f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6339f126e068Smrg fi 6340f126e068Smrg 6341f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6342f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6343f126e068Smrg fi 6344f126e068Smrg 6345f126e068Smrg CFLAGS="$CFLAGS -Wuninitialized" 6346f126e068Smrg 6347f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6348f126e068Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6349f126e068Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 6350f126e068Smrg if eval \${$cacheid+:} false; then : 6351f126e068Smrg $as_echo_n "(cached) " >&6 6352f126e068Smrgelse 6353f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354f126e068Smrg/* end confdefs.h. */ 6355f126e068Smrgint i; 6356f126e068Smrgint 6357f126e068Smrgmain () 6358f126e068Smrg{ 6359f126e068Smrg 6360f126e068Smrg ; 6361f126e068Smrg return 0; 6362f126e068Smrg} 6363f126e068Smrg_ACEOF 6364f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 6365f126e068Smrg eval $cacheid=yes 6366f126e068Smrgelse 6367f126e068Smrg eval $cacheid=no 6368f126e068Smrgfi 6369f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 6370f126e068Smrg conftest$ac_exeext conftest.$ac_ext 6371f126e068Smrgfi 6372f126e068Smrg 6373f126e068Smrg 6374f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6375f126e068Smrg 6376f126e068Smrg eval supported=\$$cacheid 6377f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6378f126e068Smrg$as_echo "$supported" >&6; } 6379f126e068Smrg if test "$supported" = "yes" ; then 6380f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6381f126e068Smrg found="yes" 6382f126e068Smrg fi 6383f126e068Smrg fi 6384f126e068Smrg 6385f126e068Smrg 6386f126e068Smrg 6387f126e068Smrg 6388f126e068Smrg 6389f126e068Smrg 6390f126e068Smrg 6391f126e068Smrg 6392f126e068Smrg 6393f126e068Smrg 6394f126e068Smrg 6395f126e068Smrg 6396f126e068Smrg 6397f126e068Smrg 6398f126e068Smrg 6399f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6400f126e068Smrg 6401f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6402f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6403f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6404f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6405f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6406f126e068Smrg $as_echo_n "(cached) " >&6 6407f126e068Smrgelse 6408f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6409f126e068Smrg/* end confdefs.h. */ 6410f126e068Smrgint i; 6411f126e068Smrg_ACEOF 6412f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6413f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6414f126e068Smrgelse 6415f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 6416f126e068Smrgfi 6417f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6418f126e068Smrgfi 6419f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6420f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6421f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6422f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6423f126e068Smrgfi 6424f126e068Smrg 6425f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6426f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6427f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6428f126e068Smrg fi 6429f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6430f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6431f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6432f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6433f126e068Smrg $as_echo_n "(cached) " >&6 6434f126e068Smrgelse 6435f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436f126e068Smrg/* end confdefs.h. */ 6437f126e068Smrgint i; 6438f126e068Smrg_ACEOF 6439f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6440f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6441f126e068Smrgelse 6442f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6443f126e068Smrgfi 6444f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6445f126e068Smrgfi 6446f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6447f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6448f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6449f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6450f126e068Smrgfi 6451f126e068Smrg 6452f126e068Smrgfound="no" 6453f126e068Smrg 6454f126e068Smrg if test $found = "no" ; then 6455f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6456f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6457f126e068Smrg fi 6458f126e068Smrg 6459f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6460f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6461f126e068Smrg fi 6462f126e068Smrg 6463f126e068Smrg CFLAGS="$CFLAGS -Wshadow" 6464f126e068Smrg 6465f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6466f126e068Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6467f126e068Smrg cacheid=xorg_cv_cc_flag__Wshadow 6468f126e068Smrg if eval \${$cacheid+:} false; then : 6469f126e068Smrg $as_echo_n "(cached) " >&6 6470f126e068Smrgelse 6471f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6472f126e068Smrg/* end confdefs.h. */ 6473f126e068Smrgint i; 6474f126e068Smrgint 6475f126e068Smrgmain () 6476f126e068Smrg{ 6477f126e068Smrg 6478f126e068Smrg ; 6479f126e068Smrg return 0; 6480f126e068Smrg} 6481f126e068Smrg_ACEOF 6482f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 6483f126e068Smrg eval $cacheid=yes 6484f126e068Smrgelse 6485f126e068Smrg eval $cacheid=no 6486f126e068Smrgfi 6487f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 6488f126e068Smrg conftest$ac_exeext conftest.$ac_ext 6489f126e068Smrgfi 6490f126e068Smrg 6491f126e068Smrg 6492f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6493f126e068Smrg 6494f126e068Smrg eval supported=\$$cacheid 6495f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6496f126e068Smrg$as_echo "$supported" >&6; } 6497f126e068Smrg if test "$supported" = "yes" ; then 6498f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6499f126e068Smrg found="yes" 6500f126e068Smrg fi 6501f126e068Smrg fi 6502f126e068Smrg 6503f126e068Smrg 6504f126e068Smrg 6505f126e068Smrg 6506f126e068Smrg 6507f126e068Smrg 6508f126e068Smrg 6509f126e068Smrg 6510f126e068Smrg 6511f126e068Smrg 6512f126e068Smrg 6513f126e068Smrg 6514f126e068Smrg 6515f126e068Smrg 6516f126e068Smrg 6517f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6518f126e068Smrg 6519f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6520f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6521f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6522f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6523f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6524f126e068Smrg $as_echo_n "(cached) " >&6 6525f126e068Smrgelse 6526f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6527f126e068Smrg/* end confdefs.h. */ 6528f126e068Smrgint i; 6529f126e068Smrg_ACEOF 6530f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6531f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6532f126e068Smrgelse 6533f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 6534f126e068Smrgfi 6535f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6536f126e068Smrgfi 6537f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6538f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6539f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6540f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6541f126e068Smrgfi 6542f126e068Smrg 6543f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6544f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6545f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6546f126e068Smrg fi 6547f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6548f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6549f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6550f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6551f126e068Smrg $as_echo_n "(cached) " >&6 6552f126e068Smrgelse 6553f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6554f126e068Smrg/* end confdefs.h. */ 6555f126e068Smrgint i; 6556f126e068Smrg_ACEOF 6557f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6558f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6559f126e068Smrgelse 6560f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6561f126e068Smrgfi 6562f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6563f126e068Smrgfi 6564f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6565f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6566f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6567f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6568f126e068Smrgfi 6569f126e068Smrg 6570f126e068Smrgfound="no" 6571f126e068Smrg 6572f126e068Smrg if test $found = "no" ; then 6573f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6574f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6575f126e068Smrg fi 6576f126e068Smrg 6577f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6578f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6579f126e068Smrg fi 6580f126e068Smrg 6581c74b14bdSmrg CFLAGS="$CFLAGS -Wmissing-noreturn" 6582f126e068Smrg 6583c74b14bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6584c74b14bdSmrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6585c74b14bdSmrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6586f126e068Smrg if eval \${$cacheid+:} false; then : 6587f126e068Smrg $as_echo_n "(cached) " >&6 6588f126e068Smrgelse 6589f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6590f126e068Smrg/* end confdefs.h. */ 6591f126e068Smrgint i; 6592f126e068Smrgint 6593f126e068Smrgmain () 6594f126e068Smrg{ 6595f126e068Smrg 6596f126e068Smrg ; 6597f126e068Smrg return 0; 6598f126e068Smrg} 6599f126e068Smrg_ACEOF 6600f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 6601f126e068Smrg eval $cacheid=yes 6602f126e068Smrgelse 6603f126e068Smrg eval $cacheid=no 6604f126e068Smrgfi 6605f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 6606f126e068Smrg conftest$ac_exeext conftest.$ac_ext 6607f126e068Smrgfi 6608f126e068Smrg 6609f126e068Smrg 6610f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6611f126e068Smrg 6612f126e068Smrg eval supported=\$$cacheid 6613f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6614f126e068Smrg$as_echo "$supported" >&6; } 6615f126e068Smrg if test "$supported" = "yes" ; then 6616c74b14bdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6617f126e068Smrg found="yes" 6618f126e068Smrg fi 6619f126e068Smrg fi 6620f126e068Smrg 6621f126e068Smrg 6622f126e068Smrg 6623f126e068Smrg 6624f126e068Smrg 6625f126e068Smrg 6626f126e068Smrg 6627f126e068Smrg 6628f126e068Smrg 6629f126e068Smrg 6630f126e068Smrg 6631f126e068Smrg 6632f126e068Smrg 6633f126e068Smrg 6634f126e068Smrg 6635f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6636f126e068Smrg 6637f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6638f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6639f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6640f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6641f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6642f126e068Smrg $as_echo_n "(cached) " >&6 6643f126e068Smrgelse 6644f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6645f126e068Smrg/* end confdefs.h. */ 6646f126e068Smrgint i; 6647f126e068Smrg_ACEOF 6648f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6649f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6650f126e068Smrgelse 6651f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 6652f126e068Smrgfi 6653f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6654f126e068Smrgfi 6655f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6656f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6657f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6658f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6659f126e068Smrgfi 6660f126e068Smrg 6661f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6662f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6663f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6664f126e068Smrg fi 6665f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6666f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6667f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6668f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6669f126e068Smrg $as_echo_n "(cached) " >&6 6670f126e068Smrgelse 6671f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672f126e068Smrg/* end confdefs.h. */ 6673f126e068Smrgint i; 6674f126e068Smrg_ACEOF 6675f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6676f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6677f126e068Smrgelse 6678f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6679f126e068Smrgfi 6680f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6681f126e068Smrgfi 6682f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6683f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6684f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6685f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6686f126e068Smrgfi 6687f126e068Smrg 6688f126e068Smrgfound="no" 6689f126e068Smrg 6690f126e068Smrg if test $found = "no" ; then 6691f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6692f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6693f126e068Smrg fi 6694f126e068Smrg 6695f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6696f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6697f126e068Smrg fi 6698f126e068Smrg 6699c74b14bdSmrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 6700f126e068Smrg 6701c74b14bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6702c74b14bdSmrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6703c74b14bdSmrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6704f126e068Smrg if eval \${$cacheid+:} false; then : 6705f126e068Smrg $as_echo_n "(cached) " >&6 6706f126e068Smrgelse 6707f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6708f126e068Smrg/* end confdefs.h. */ 6709f126e068Smrgint i; 6710f126e068Smrgint 6711f126e068Smrgmain () 6712f126e068Smrg{ 6713f126e068Smrg 6714f126e068Smrg ; 6715f126e068Smrg return 0; 6716f126e068Smrg} 6717f126e068Smrg_ACEOF 6718f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 6719f126e068Smrg eval $cacheid=yes 6720f126e068Smrgelse 6721f126e068Smrg eval $cacheid=no 6722f126e068Smrgfi 6723f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 6724f126e068Smrg conftest$ac_exeext conftest.$ac_ext 6725f126e068Smrgfi 6726f126e068Smrg 6727f126e068Smrg 6728f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6729f126e068Smrg 6730f126e068Smrg eval supported=\$$cacheid 6731f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6732f126e068Smrg$as_echo "$supported" >&6; } 6733f126e068Smrg if test "$supported" = "yes" ; then 6734c74b14bdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6735f126e068Smrg found="yes" 6736f126e068Smrg fi 6737f126e068Smrg fi 6738f126e068Smrg 6739f126e068Smrg 6740f126e068Smrg 6741f126e068Smrg 6742f126e068Smrg 6743f126e068Smrg 6744f126e068Smrg 6745f126e068Smrg 6746f126e068Smrg 6747f126e068Smrg 6748f126e068Smrg 6749f126e068Smrg 6750f126e068Smrg 6751f126e068Smrg 6752f126e068Smrg 6753f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6754f126e068Smrg 6755f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6756f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6757f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6758f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6759f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6760f126e068Smrg $as_echo_n "(cached) " >&6 6761f126e068Smrgelse 6762f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6763f126e068Smrg/* end confdefs.h. */ 6764f126e068Smrgint i; 6765f126e068Smrg_ACEOF 6766f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6767f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6768f126e068Smrgelse 6769f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 6770f126e068Smrgfi 6771f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6772f126e068Smrgfi 6773f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6774f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6775f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6776f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6777f126e068Smrgfi 6778f126e068Smrg 6779f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6780f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6781f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6782f126e068Smrg fi 6783f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6784f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6785f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6786f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6787f126e068Smrg $as_echo_n "(cached) " >&6 6788f126e068Smrgelse 6789f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6790f126e068Smrg/* end confdefs.h. */ 6791f126e068Smrgint i; 6792f126e068Smrg_ACEOF 6793f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6794f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6795f126e068Smrgelse 6796f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6797f126e068Smrgfi 6798f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6799f126e068Smrgfi 6800f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6801f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6802f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6803f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6804f126e068Smrgfi 6805f126e068Smrg 6806f126e068Smrgfound="no" 6807f126e068Smrg 6808f126e068Smrg if test $found = "no" ; then 6809f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6810f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6811f126e068Smrg fi 6812f126e068Smrg 6813f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6814f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6815f126e068Smrg fi 6816f126e068Smrg 6817c74b14bdSmrg CFLAGS="$CFLAGS -Wredundant-decls" 6818f126e068Smrg 6819c74b14bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6820c74b14bdSmrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6821c74b14bdSmrg cacheid=xorg_cv_cc_flag__Wredundant_decls 6822f126e068Smrg if eval \${$cacheid+:} false; then : 6823f126e068Smrg $as_echo_n "(cached) " >&6 6824f126e068Smrgelse 6825f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6826f126e068Smrg/* end confdefs.h. */ 6827f126e068Smrgint i; 6828f126e068Smrgint 6829f126e068Smrgmain () 6830f126e068Smrg{ 6831f126e068Smrg 6832f126e068Smrg ; 6833f126e068Smrg return 0; 6834f126e068Smrg} 6835f126e068Smrg_ACEOF 6836f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 6837f126e068Smrg eval $cacheid=yes 6838f126e068Smrgelse 6839f126e068Smrg eval $cacheid=no 6840f126e068Smrgfi 6841f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 6842f126e068Smrg conftest$ac_exeext conftest.$ac_ext 6843f126e068Smrgfi 6844f126e068Smrg 6845f126e068Smrg 6846f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6847f126e068Smrg 6848f126e068Smrg eval supported=\$$cacheid 6849f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6850f126e068Smrg$as_echo "$supported" >&6; } 6851f126e068Smrg if test "$supported" = "yes" ; then 6852c74b14bdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6853f126e068Smrg found="yes" 6854f126e068Smrg fi 6855f126e068Smrg fi 6856f126e068Smrg 6857f126e068Smrg 6858f126e068Smrg 6859f126e068Smrg 6860f126e068Smrg 6861f126e068Smrg 6862f126e068Smrg 6863f126e068Smrg 6864f126e068Smrg 6865f126e068Smrg 6866f126e068Smrg 6867f126e068Smrg 6868f126e068Smrg 6869f126e068Smrg 6870f126e068Smrg 6871f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6872f126e068Smrg 6873f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6874f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6875f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6876f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6877f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6878f126e068Smrg $as_echo_n "(cached) " >&6 6879f126e068Smrgelse 6880f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6881f126e068Smrg/* end confdefs.h. */ 6882f126e068Smrgint i; 6883f126e068Smrg_ACEOF 6884f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6885f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6886f126e068Smrgelse 6887f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 6888f126e068Smrgfi 6889f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6890f126e068Smrgfi 6891f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6892f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6893f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6894f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6895f126e068Smrgfi 6896f126e068Smrg 6897f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6898f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6899f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6900f126e068Smrg fi 6901f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6902f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6903f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6904f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6905f126e068Smrg $as_echo_n "(cached) " >&6 6906f126e068Smrgelse 6907f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6908f126e068Smrg/* end confdefs.h. */ 6909f126e068Smrgint i; 6910f126e068Smrg_ACEOF 6911f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 6912f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6913f126e068Smrgelse 6914f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6915f126e068Smrgfi 6916f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6917f126e068Smrgfi 6918f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6919f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6920f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6921f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6922f126e068Smrgfi 6923f126e068Smrg 6924f126e068Smrgfound="no" 6925f126e068Smrg 6926f126e068Smrg if test $found = "no" ; then 6927f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6928f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6929f126e068Smrg fi 6930f126e068Smrg 6931f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6932f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6933f126e068Smrg fi 6934f126e068Smrg 6935c74b14bdSmrg CFLAGS="$CFLAGS -Wlogical-op" 6936f126e068Smrg 6937c74b14bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6938c74b14bdSmrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6939c74b14bdSmrg cacheid=xorg_cv_cc_flag__Wlogical_op 6940f126e068Smrg if eval \${$cacheid+:} false; then : 6941f126e068Smrg $as_echo_n "(cached) " >&6 6942f126e068Smrgelse 6943f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6944f126e068Smrg/* end confdefs.h. */ 6945f126e068Smrgint i; 6946f126e068Smrgint 6947f126e068Smrgmain () 6948f126e068Smrg{ 6949f126e068Smrg 6950f126e068Smrg ; 6951f126e068Smrg return 0; 6952f126e068Smrg} 6953f126e068Smrg_ACEOF 6954f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 6955f126e068Smrg eval $cacheid=yes 6956f126e068Smrgelse 6957f126e068Smrg eval $cacheid=no 6958f126e068Smrgfi 6959f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 6960f126e068Smrg conftest$ac_exeext conftest.$ac_ext 6961f126e068Smrgfi 6962f126e068Smrg 6963f126e068Smrg 6964f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6965f126e068Smrg 6966f126e068Smrg eval supported=\$$cacheid 6967f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6968f126e068Smrg$as_echo "$supported" >&6; } 6969f126e068Smrg if test "$supported" = "yes" ; then 6970c74b14bdSmrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6971f126e068Smrg found="yes" 6972f126e068Smrg fi 6973f126e068Smrg fi 6974f126e068Smrg 6975f126e068Smrg 6976f126e068Smrg 6977f126e068Smrg# These are currently disabled because they are noisy. They will be enabled 6978f126e068Smrg# in the future once the codebase is sufficiently modernized to silence 6979f126e068Smrg# them. For now, I don't want them to drown out the other warnings. 6980f126e068Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6981f126e068Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6982c74b14bdSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6983f126e068Smrg 6984f126e068Smrg# Turn some warnings into errors, so we don't accidently get successful builds 6985f126e068Smrg# when there are problems that should be fixed. 6986f126e068Smrg 6987f126e068Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 6988f126e068Smrg 6989f126e068Smrg 6990f126e068Smrg 6991f126e068Smrg 6992f126e068Smrg 6993f126e068Smrg 6994f126e068Smrg 6995f126e068Smrg 6996f126e068Smrg 6997f126e068Smrg 6998f126e068Smrg 6999f126e068Smrg 7000f126e068Smrg 7001f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7002f126e068Smrg 7003f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7004f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7005f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7006f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7007f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7008f126e068Smrg $as_echo_n "(cached) " >&6 7009f126e068Smrgelse 7010f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7011f126e068Smrg/* end confdefs.h. */ 7012f126e068Smrgint i; 7013f126e068Smrg_ACEOF 7014f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7015f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7016f126e068Smrgelse 7017f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 7018f126e068Smrgfi 7019f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7020f126e068Smrgfi 7021f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7022f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7023f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7024f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7025f126e068Smrgfi 7026f126e068Smrg 7027f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7028f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7029f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7030f126e068Smrg fi 7031f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7032f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7033f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7034f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7035f126e068Smrg $as_echo_n "(cached) " >&6 7036f126e068Smrgelse 7037f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7038f126e068Smrg/* end confdefs.h. */ 7039f126e068Smrgint i; 7040f126e068Smrg_ACEOF 7041f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7042f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7043f126e068Smrgelse 7044f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7045f126e068Smrgfi 7046f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7047f126e068Smrgfi 7048f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7049f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7050f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7051f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7052f126e068Smrgfi 7053f126e068Smrg 7054f126e068Smrgfound="no" 7055f126e068Smrg 7056f126e068Smrg if test $found = "no" ; then 7057f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7058f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7059f126e068Smrg fi 7060f126e068Smrg 7061f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7062f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7063f126e068Smrg fi 7064f126e068Smrg 7065f126e068Smrg CFLAGS="$CFLAGS -Werror=implicit" 7066f126e068Smrg 7067f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7068f126e068Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7069c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_implicit 7070f126e068Smrg if eval \${$cacheid+:} false; then : 7071f126e068Smrg $as_echo_n "(cached) " >&6 7072f126e068Smrgelse 7073f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7074f126e068Smrg/* end confdefs.h. */ 7075f126e068Smrgint i; 7076f126e068Smrgint 7077f126e068Smrgmain () 7078f126e068Smrg{ 7079f126e068Smrg 7080f126e068Smrg ; 7081f126e068Smrg return 0; 7082f126e068Smrg} 7083f126e068Smrg_ACEOF 7084f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 7085f126e068Smrg eval $cacheid=yes 7086f126e068Smrgelse 7087f126e068Smrg eval $cacheid=no 7088f126e068Smrgfi 7089f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 7090f126e068Smrg conftest$ac_exeext conftest.$ac_ext 7091f126e068Smrgfi 7092f126e068Smrg 7093f126e068Smrg 7094f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7095f126e068Smrg 7096f126e068Smrg eval supported=\$$cacheid 7097f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7098f126e068Smrg$as_echo "$supported" >&6; } 7099f126e068Smrg if test "$supported" = "yes" ; then 7100f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7101f126e068Smrg found="yes" 7102f126e068Smrg fi 7103f126e068Smrg fi 7104f126e068Smrg 7105f126e068Smrg if test $found = "no" ; then 7106f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7107f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7108f126e068Smrg fi 7109f126e068Smrg 7110f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7111f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7112f126e068Smrg fi 7113f126e068Smrg 7114f126e068Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7115f126e068Smrg 7116f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7117f126e068Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7118c74b14bdSmrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7119f126e068Smrg if eval \${$cacheid+:} false; then : 7120f126e068Smrg $as_echo_n "(cached) " >&6 7121f126e068Smrgelse 7122f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7123f126e068Smrg/* end confdefs.h. */ 7124f126e068Smrgint i; 7125f126e068Smrgint 7126f126e068Smrgmain () 7127f126e068Smrg{ 7128f126e068Smrg 7129f126e068Smrg ; 7130f126e068Smrg return 0; 7131f126e068Smrg} 7132f126e068Smrg_ACEOF 7133f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 7134f126e068Smrg eval $cacheid=yes 7135f126e068Smrgelse 7136f126e068Smrg eval $cacheid=no 7137f126e068Smrgfi 7138f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 7139f126e068Smrg conftest$ac_exeext conftest.$ac_ext 7140f126e068Smrgfi 7141f126e068Smrg 7142f126e068Smrg 7143f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7144f126e068Smrg 7145f126e068Smrg eval supported=\$$cacheid 7146f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7147f126e068Smrg$as_echo "$supported" >&6; } 7148f126e068Smrg if test "$supported" = "yes" ; then 7149f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7150f126e068Smrg found="yes" 7151f126e068Smrg fi 7152f126e068Smrg fi 7153f126e068Smrg 7154f126e068Smrg 7155f126e068Smrg 7156f126e068Smrg 7157f126e068Smrg 7158f126e068Smrg 7159f126e068Smrg 7160f126e068Smrg 7161f126e068Smrg 7162f126e068Smrg 7163f126e068Smrg 7164f126e068Smrg 7165f126e068Smrg 7166f126e068Smrg 7167f126e068Smrg 7168f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7169f126e068Smrg 7170f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7171f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7172f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7173f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7174f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7175f126e068Smrg $as_echo_n "(cached) " >&6 7176f126e068Smrgelse 7177f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7178f126e068Smrg/* end confdefs.h. */ 7179f126e068Smrgint i; 7180f126e068Smrg_ACEOF 7181f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7182f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7183f126e068Smrgelse 7184f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 7185f126e068Smrgfi 7186f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7187f126e068Smrgfi 7188f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7189f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7190f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7191f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7192f126e068Smrgfi 7193f126e068Smrg 7194f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7195f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7196f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7197f126e068Smrg fi 7198f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7199f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7200f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7201f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7202f126e068Smrg $as_echo_n "(cached) " >&6 7203f126e068Smrgelse 7204f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205f126e068Smrg/* end confdefs.h. */ 7206f126e068Smrgint i; 7207f126e068Smrg_ACEOF 7208f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7209f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7210f126e068Smrgelse 7211f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7212f126e068Smrgfi 7213f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7214f126e068Smrgfi 7215f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7216f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7217f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7218f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7219f126e068Smrgfi 7220f126e068Smrg 7221f126e068Smrgfound="no" 7222f126e068Smrg 7223f126e068Smrg if test $found = "no" ; then 7224f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7225f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7226f126e068Smrg fi 7227f126e068Smrg 7228f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7229f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7230f126e068Smrg fi 7231f126e068Smrg 7232f126e068Smrg CFLAGS="$CFLAGS -Werror=nonnull" 7233f126e068Smrg 7234f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7235f126e068Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7236c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_nonnull 7237f126e068Smrg if eval \${$cacheid+:} false; then : 7238f126e068Smrg $as_echo_n "(cached) " >&6 7239f126e068Smrgelse 7240f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7241f126e068Smrg/* end confdefs.h. */ 7242f126e068Smrgint i; 7243f126e068Smrgint 7244f126e068Smrgmain () 7245f126e068Smrg{ 7246f126e068Smrg 7247f126e068Smrg ; 7248f126e068Smrg return 0; 7249f126e068Smrg} 7250f126e068Smrg_ACEOF 7251f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 7252f126e068Smrg eval $cacheid=yes 7253f126e068Smrgelse 7254f126e068Smrg eval $cacheid=no 7255f126e068Smrgfi 7256f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 7257f126e068Smrg conftest$ac_exeext conftest.$ac_ext 7258f126e068Smrgfi 7259f126e068Smrg 7260f126e068Smrg 7261f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7262f126e068Smrg 7263f126e068Smrg eval supported=\$$cacheid 7264f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7265f126e068Smrg$as_echo "$supported" >&6; } 7266f126e068Smrg if test "$supported" = "yes" ; then 7267f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7268f126e068Smrg found="yes" 7269f126e068Smrg fi 7270f126e068Smrg fi 7271f126e068Smrg 7272f126e068Smrg 7273f126e068Smrg 7274f126e068Smrg 7275f126e068Smrg 7276f126e068Smrg 7277f126e068Smrg 7278f126e068Smrg 7279f126e068Smrg 7280f126e068Smrg 7281f126e068Smrg 7282f126e068Smrg 7283f126e068Smrg 7284f126e068Smrg 7285f126e068Smrg 7286f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7287f126e068Smrg 7288f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7289f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7290f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7291f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7292f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7293f126e068Smrg $as_echo_n "(cached) " >&6 7294f126e068Smrgelse 7295f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7296f126e068Smrg/* end confdefs.h. */ 7297f126e068Smrgint i; 7298f126e068Smrg_ACEOF 7299f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7300f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7301f126e068Smrgelse 7302f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 7303f126e068Smrgfi 7304f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7305f126e068Smrgfi 7306f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7307f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7308f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7309f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7310f126e068Smrgfi 7311f126e068Smrg 7312f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7313f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7314f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7315f126e068Smrg fi 7316f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7317f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7318f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7319f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7320f126e068Smrg $as_echo_n "(cached) " >&6 7321f126e068Smrgelse 7322f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7323f126e068Smrg/* end confdefs.h. */ 7324f126e068Smrgint i; 7325f126e068Smrg_ACEOF 7326f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7327f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7328f126e068Smrgelse 7329f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7330f126e068Smrgfi 7331f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7332f126e068Smrgfi 7333f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7334f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7335f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7336f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7337f126e068Smrgfi 7338f126e068Smrg 7339f126e068Smrgfound="no" 7340f126e068Smrg 7341f126e068Smrg if test $found = "no" ; then 7342f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7343f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7344f126e068Smrg fi 7345f126e068Smrg 7346f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7347f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7348f126e068Smrg fi 7349f126e068Smrg 7350f126e068Smrg CFLAGS="$CFLAGS -Werror=init-self" 7351f126e068Smrg 7352f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7353f126e068Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7354c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_init_self 7355f126e068Smrg if eval \${$cacheid+:} false; then : 7356f126e068Smrg $as_echo_n "(cached) " >&6 7357f126e068Smrgelse 7358f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7359f126e068Smrg/* end confdefs.h. */ 7360f126e068Smrgint i; 7361f126e068Smrgint 7362f126e068Smrgmain () 7363f126e068Smrg{ 7364f126e068Smrg 7365f126e068Smrg ; 7366f126e068Smrg return 0; 7367f126e068Smrg} 7368f126e068Smrg_ACEOF 7369f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 7370f126e068Smrg eval $cacheid=yes 7371f126e068Smrgelse 7372f126e068Smrg eval $cacheid=no 7373f126e068Smrgfi 7374f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 7375f126e068Smrg conftest$ac_exeext conftest.$ac_ext 7376f126e068Smrgfi 7377f126e068Smrg 7378f126e068Smrg 7379f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7380f126e068Smrg 7381f126e068Smrg eval supported=\$$cacheid 7382f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7383f126e068Smrg$as_echo "$supported" >&6; } 7384f126e068Smrg if test "$supported" = "yes" ; then 7385f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7386f126e068Smrg found="yes" 7387f126e068Smrg fi 7388f126e068Smrg fi 7389f126e068Smrg 7390f126e068Smrg 7391f126e068Smrg 7392f126e068Smrg 7393f126e068Smrg 7394f126e068Smrg 7395f126e068Smrg 7396f126e068Smrg 7397f126e068Smrg 7398f126e068Smrg 7399f126e068Smrg 7400f126e068Smrg 7401f126e068Smrg 7402f126e068Smrg 7403f126e068Smrg 7404f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7405f126e068Smrg 7406f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7407f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7408f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7409f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7410f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7411f126e068Smrg $as_echo_n "(cached) " >&6 7412f126e068Smrgelse 7413f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7414f126e068Smrg/* end confdefs.h. */ 7415f126e068Smrgint i; 7416f126e068Smrg_ACEOF 7417f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7418f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7419f126e068Smrgelse 7420f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 7421f126e068Smrgfi 7422f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7423f126e068Smrgfi 7424f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7425f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7426f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7427f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7428f126e068Smrgfi 7429f126e068Smrg 7430f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7431f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7432f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7433f126e068Smrg fi 7434f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7435f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7436f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7437f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7438f126e068Smrg $as_echo_n "(cached) " >&6 7439f126e068Smrgelse 7440f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7441f126e068Smrg/* end confdefs.h. */ 7442f126e068Smrgint i; 7443f126e068Smrg_ACEOF 7444f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7445f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7446f126e068Smrgelse 7447f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7448f126e068Smrgfi 7449f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7450f126e068Smrgfi 7451f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7452f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7453f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7454f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7455f126e068Smrgfi 7456f126e068Smrg 7457f126e068Smrgfound="no" 7458f126e068Smrg 7459f126e068Smrg if test $found = "no" ; then 7460f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7461f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7462f126e068Smrg fi 7463f126e068Smrg 7464f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7465f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7466f126e068Smrg fi 7467f126e068Smrg 7468f126e068Smrg CFLAGS="$CFLAGS -Werror=main" 7469f126e068Smrg 7470f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7471f126e068Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7472c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_main 7473f126e068Smrg if eval \${$cacheid+:} false; then : 7474f126e068Smrg $as_echo_n "(cached) " >&6 7475f126e068Smrgelse 7476f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7477f126e068Smrg/* end confdefs.h. */ 7478f126e068Smrgint i; 7479f126e068Smrgint 7480f126e068Smrgmain () 7481f126e068Smrg{ 7482f126e068Smrg 7483f126e068Smrg ; 7484f126e068Smrg return 0; 7485f126e068Smrg} 7486f126e068Smrg_ACEOF 7487f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 7488f126e068Smrg eval $cacheid=yes 7489f126e068Smrgelse 7490f126e068Smrg eval $cacheid=no 7491f126e068Smrgfi 7492f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 7493f126e068Smrg conftest$ac_exeext conftest.$ac_ext 7494f126e068Smrgfi 7495f126e068Smrg 7496f126e068Smrg 7497f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7498f126e068Smrg 7499f126e068Smrg eval supported=\$$cacheid 7500f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7501f126e068Smrg$as_echo "$supported" >&6; } 7502f126e068Smrg if test "$supported" = "yes" ; then 7503f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7504f126e068Smrg found="yes" 7505f126e068Smrg fi 7506f126e068Smrg fi 7507f126e068Smrg 7508f126e068Smrg 7509f126e068Smrg 7510f126e068Smrg 7511f126e068Smrg 7512f126e068Smrg 7513f126e068Smrg 7514f126e068Smrg 7515f126e068Smrg 7516f126e068Smrg 7517f126e068Smrg 7518f126e068Smrg 7519f126e068Smrg 7520f126e068Smrg 7521f126e068Smrg 7522f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7523f126e068Smrg 7524f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7525f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7527f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7528f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7529f126e068Smrg $as_echo_n "(cached) " >&6 7530f126e068Smrgelse 7531f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7532f126e068Smrg/* end confdefs.h. */ 7533f126e068Smrgint i; 7534f126e068Smrg_ACEOF 7535f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7536f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7537f126e068Smrgelse 7538f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 7539f126e068Smrgfi 7540f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7541f126e068Smrgfi 7542f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7543f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7544f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7545f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7546f126e068Smrgfi 7547f126e068Smrg 7548f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7549f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7550f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7551f126e068Smrg fi 7552f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7553f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7554f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7555f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7556f126e068Smrg $as_echo_n "(cached) " >&6 7557f126e068Smrgelse 7558f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7559f126e068Smrg/* end confdefs.h. */ 7560f126e068Smrgint i; 7561f126e068Smrg_ACEOF 7562f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7563f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7564f126e068Smrgelse 7565f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7566f126e068Smrgfi 7567f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7568f126e068Smrgfi 7569f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7570f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7571f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7572f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7573f126e068Smrgfi 7574f126e068Smrg 7575f126e068Smrgfound="no" 7576f126e068Smrg 7577f126e068Smrg if test $found = "no" ; then 7578f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7579f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7580f126e068Smrg fi 7581f126e068Smrg 7582f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7583f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7584f126e068Smrg fi 7585f126e068Smrg 7586f126e068Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 7587f126e068Smrg 7588f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7589f126e068Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7590c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 7591f126e068Smrg if eval \${$cacheid+:} false; then : 7592f126e068Smrg $as_echo_n "(cached) " >&6 7593f126e068Smrgelse 7594f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7595f126e068Smrg/* end confdefs.h. */ 7596f126e068Smrgint i; 7597f126e068Smrgint 7598f126e068Smrgmain () 7599f126e068Smrg{ 7600f126e068Smrg 7601f126e068Smrg ; 7602f126e068Smrg return 0; 7603f126e068Smrg} 7604f126e068Smrg_ACEOF 7605f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 7606f126e068Smrg eval $cacheid=yes 7607f126e068Smrgelse 7608f126e068Smrg eval $cacheid=no 7609f126e068Smrgfi 7610f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 7611f126e068Smrg conftest$ac_exeext conftest.$ac_ext 7612f126e068Smrgfi 7613f126e068Smrg 7614f126e068Smrg 7615f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7616f126e068Smrg 7617f126e068Smrg eval supported=\$$cacheid 7618f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7619f126e068Smrg$as_echo "$supported" >&6; } 7620f126e068Smrg if test "$supported" = "yes" ; then 7621f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7622f126e068Smrg found="yes" 7623f126e068Smrg fi 7624f126e068Smrg fi 7625f126e068Smrg 7626f126e068Smrg 7627f126e068Smrg 7628f126e068Smrg 7629f126e068Smrg 7630f126e068Smrg 7631f126e068Smrg 7632f126e068Smrg 7633f126e068Smrg 7634f126e068Smrg 7635f126e068Smrg 7636f126e068Smrg 7637f126e068Smrg 7638f126e068Smrg 7639f126e068Smrg 7640f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7641f126e068Smrg 7642f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7643f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7644f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7645f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7646f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7647f126e068Smrg $as_echo_n "(cached) " >&6 7648f126e068Smrgelse 7649f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7650f126e068Smrg/* end confdefs.h. */ 7651f126e068Smrgint i; 7652f126e068Smrg_ACEOF 7653f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7654f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7655f126e068Smrgelse 7656f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 7657f126e068Smrgfi 7658f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7659f126e068Smrgfi 7660f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7661f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7662f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7663f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7664f126e068Smrgfi 7665f126e068Smrg 7666f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7667f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7668f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7669f126e068Smrg fi 7670f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7671f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7672f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7673f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7674f126e068Smrg $as_echo_n "(cached) " >&6 7675f126e068Smrgelse 7676f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7677f126e068Smrg/* end confdefs.h. */ 7678f126e068Smrgint i; 7679f126e068Smrg_ACEOF 7680f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7681f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7682f126e068Smrgelse 7683f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7684f126e068Smrgfi 7685f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7686f126e068Smrgfi 7687f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7688f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7689f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7690f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7691f126e068Smrgfi 7692f126e068Smrg 7693f126e068Smrgfound="no" 7694f126e068Smrg 7695f126e068Smrg if test $found = "no" ; then 7696f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7697f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7698f126e068Smrg fi 7699f126e068Smrg 7700f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7701f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7702f126e068Smrg fi 7703f126e068Smrg 7704f126e068Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 7705f126e068Smrg 7706f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7707f126e068Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7708c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 7709f126e068Smrg if eval \${$cacheid+:} false; then : 7710f126e068Smrg $as_echo_n "(cached) " >&6 7711f126e068Smrgelse 7712f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7713f126e068Smrg/* end confdefs.h. */ 7714f126e068Smrgint i; 7715f126e068Smrgint 7716f126e068Smrgmain () 7717f126e068Smrg{ 7718f126e068Smrg 7719f126e068Smrg ; 7720f126e068Smrg return 0; 7721f126e068Smrg} 7722f126e068Smrg_ACEOF 7723f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 7724f126e068Smrg eval $cacheid=yes 7725f126e068Smrgelse 7726f126e068Smrg eval $cacheid=no 7727f126e068Smrgfi 7728f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 7729f126e068Smrg conftest$ac_exeext conftest.$ac_ext 7730f126e068Smrgfi 7731f126e068Smrg 7732f126e068Smrg 7733f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7734f126e068Smrg 7735f126e068Smrg eval supported=\$$cacheid 7736f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7737f126e068Smrg$as_echo "$supported" >&6; } 7738f126e068Smrg if test "$supported" = "yes" ; then 7739f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7740f126e068Smrg found="yes" 7741f126e068Smrg fi 7742f126e068Smrg fi 7743f126e068Smrg 7744f126e068Smrg 7745f126e068Smrg 7746f126e068Smrg 7747f126e068Smrg 7748f126e068Smrg 7749f126e068Smrg 7750f126e068Smrg 7751f126e068Smrg 7752f126e068Smrg 7753f126e068Smrg 7754f126e068Smrg 7755f126e068Smrg 7756f126e068Smrg 7757f126e068Smrg 7758f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7759f126e068Smrg 7760f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7761f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7762f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7763f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7764f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7765f126e068Smrg $as_echo_n "(cached) " >&6 7766f126e068Smrgelse 7767f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7768f126e068Smrg/* end confdefs.h. */ 7769f126e068Smrgint i; 7770f126e068Smrg_ACEOF 7771f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7772f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7773f126e068Smrgelse 7774f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 7775f126e068Smrgfi 7776f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7777f126e068Smrgfi 7778f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7779f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7780f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7781f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7782f126e068Smrgfi 7783f126e068Smrg 7784f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7785f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7786f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7787f126e068Smrg fi 7788f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7789f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7790f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7791f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7792f126e068Smrg $as_echo_n "(cached) " >&6 7793f126e068Smrgelse 7794f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7795f126e068Smrg/* end confdefs.h. */ 7796f126e068Smrgint i; 7797f126e068Smrg_ACEOF 7798f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7799f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7800f126e068Smrgelse 7801f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7802f126e068Smrgfi 7803f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7804f126e068Smrgfi 7805f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7806f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7807f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7808f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7809f126e068Smrgfi 7810f126e068Smrg 7811f126e068Smrgfound="no" 7812f126e068Smrg 7813f126e068Smrg if test $found = "no" ; then 7814f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7815f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7816f126e068Smrg fi 7817f126e068Smrg 7818f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7819f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7820f126e068Smrg fi 7821f126e068Smrg 7822f126e068Smrg CFLAGS="$CFLAGS -Werror=return-type" 7823f126e068Smrg 7824f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7825f126e068Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7826c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_return_type 7827f126e068Smrg if eval \${$cacheid+:} false; then : 7828f126e068Smrg $as_echo_n "(cached) " >&6 7829f126e068Smrgelse 7830f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7831f126e068Smrg/* end confdefs.h. */ 7832f126e068Smrgint i; 7833f126e068Smrgint 7834f126e068Smrgmain () 7835f126e068Smrg{ 7836f126e068Smrg 7837f126e068Smrg ; 7838f126e068Smrg return 0; 7839f126e068Smrg} 7840f126e068Smrg_ACEOF 7841f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 7842f126e068Smrg eval $cacheid=yes 7843f126e068Smrgelse 7844f126e068Smrg eval $cacheid=no 7845f126e068Smrgfi 7846f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 7847f126e068Smrg conftest$ac_exeext conftest.$ac_ext 7848f126e068Smrgfi 7849f126e068Smrg 7850f126e068Smrg 7851f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7852f126e068Smrg 7853f126e068Smrg eval supported=\$$cacheid 7854f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7855f126e068Smrg$as_echo "$supported" >&6; } 7856f126e068Smrg if test "$supported" = "yes" ; then 7857f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7858f126e068Smrg found="yes" 7859f126e068Smrg fi 7860f126e068Smrg fi 7861f126e068Smrg 7862f126e068Smrg if test $found = "no" ; then 7863f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7864f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7865f126e068Smrg fi 7866f126e068Smrg 7867f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7868f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7869f126e068Smrg fi 7870f126e068Smrg 7871f126e068Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7872f126e068Smrg 7873f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7874f126e068Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7875c74b14bdSmrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7876f126e068Smrg if eval \${$cacheid+:} false; then : 7877f126e068Smrg $as_echo_n "(cached) " >&6 7878f126e068Smrgelse 7879f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7880f126e068Smrg/* end confdefs.h. */ 7881f126e068Smrgint i; 7882f126e068Smrgint 7883f126e068Smrgmain () 7884f126e068Smrg{ 7885f126e068Smrg 7886f126e068Smrg ; 7887f126e068Smrg return 0; 7888f126e068Smrg} 7889f126e068Smrg_ACEOF 7890f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 7891f126e068Smrg eval $cacheid=yes 7892f126e068Smrgelse 7893f126e068Smrg eval $cacheid=no 7894f126e068Smrgfi 7895f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 7896f126e068Smrg conftest$ac_exeext conftest.$ac_ext 7897f126e068Smrgfi 7898f126e068Smrg 7899f126e068Smrg 7900f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7901f126e068Smrg 7902f126e068Smrg eval supported=\$$cacheid 7903f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7904f126e068Smrg$as_echo "$supported" >&6; } 7905f126e068Smrg if test "$supported" = "yes" ; then 7906f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7907f126e068Smrg found="yes" 7908f126e068Smrg fi 7909f126e068Smrg fi 7910f126e068Smrg 7911f126e068Smrg 7912f126e068Smrg 7913f126e068Smrg 7914f126e068Smrg 7915f126e068Smrg 7916f126e068Smrg 7917f126e068Smrg 7918f126e068Smrg 7919f126e068Smrg 7920f126e068Smrg 7921f126e068Smrg 7922f126e068Smrg 7923f126e068Smrg 7924f126e068Smrg 7925f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7926f126e068Smrg 7927f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7928f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7929f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7930f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7931f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7932f126e068Smrg $as_echo_n "(cached) " >&6 7933f126e068Smrgelse 7934f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935f126e068Smrg/* end confdefs.h. */ 7936f126e068Smrgint i; 7937f126e068Smrg_ACEOF 7938f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7939f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7940f126e068Smrgelse 7941f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 7942f126e068Smrgfi 7943f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7944f126e068Smrgfi 7945f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7946f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7947f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7948f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7949f126e068Smrgfi 7950f126e068Smrg 7951f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7952f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7953f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7954f126e068Smrg fi 7955f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7956f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7957f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7958f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7959f126e068Smrg $as_echo_n "(cached) " >&6 7960f126e068Smrgelse 7961f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7962f126e068Smrg/* end confdefs.h. */ 7963f126e068Smrgint i; 7964f126e068Smrg_ACEOF 7965f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 7966f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7967f126e068Smrgelse 7968f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7969f126e068Smrgfi 7970f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7971f126e068Smrgfi 7972f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7973f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7974f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7975f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7976f126e068Smrgfi 7977f126e068Smrg 7978f126e068Smrgfound="no" 7979f126e068Smrg 7980f126e068Smrg if test $found = "no" ; then 7981f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7982f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7983f126e068Smrg fi 7984f126e068Smrg 7985f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7986f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7987f126e068Smrg fi 7988f126e068Smrg 7989f126e068Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 7990f126e068Smrg 7991f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7992f126e068Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7993c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 7994f126e068Smrg if eval \${$cacheid+:} false; then : 7995f126e068Smrg $as_echo_n "(cached) " >&6 7996f126e068Smrgelse 7997f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7998f126e068Smrg/* end confdefs.h. */ 7999f126e068Smrgint i; 8000f126e068Smrgint 8001f126e068Smrgmain () 8002f126e068Smrg{ 8003f126e068Smrg 8004f126e068Smrg ; 8005f126e068Smrg return 0; 8006f126e068Smrg} 8007f126e068Smrg_ACEOF 8008f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 8009f126e068Smrg eval $cacheid=yes 8010f126e068Smrgelse 8011f126e068Smrg eval $cacheid=no 8012f126e068Smrgfi 8013f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 8014f126e068Smrg conftest$ac_exeext conftest.$ac_ext 8015f126e068Smrgfi 8016f126e068Smrg 8017f126e068Smrg 8018f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8019f126e068Smrg 8020f126e068Smrg eval supported=\$$cacheid 8021f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8022f126e068Smrg$as_echo "$supported" >&6; } 8023f126e068Smrg if test "$supported" = "yes" ; then 8024f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8025f126e068Smrg found="yes" 8026f126e068Smrg fi 8027f126e068Smrg fi 8028f126e068Smrg 8029f126e068Smrg 8030f126e068Smrg 8031f126e068Smrg 8032f126e068Smrg 8033f126e068Smrg 8034f126e068Smrg 8035f126e068Smrg 8036f126e068Smrg 8037f126e068Smrg 8038f126e068Smrg 8039f126e068Smrg 8040f126e068Smrg 8041f126e068Smrg 8042f126e068Smrg 8043f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8044f126e068Smrg 8045f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8046f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8047f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8048f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8049f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8050f126e068Smrg $as_echo_n "(cached) " >&6 8051f126e068Smrgelse 8052f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8053f126e068Smrg/* end confdefs.h. */ 8054f126e068Smrgint i; 8055f126e068Smrg_ACEOF 8056f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8057f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8058f126e068Smrgelse 8059f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 8060f126e068Smrgfi 8061f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8062f126e068Smrgfi 8063f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8064f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8065f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8066f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8067f126e068Smrgfi 8068f126e068Smrg 8069f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8070f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8071f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8072f126e068Smrg fi 8073f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8074f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8075f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8076f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8077f126e068Smrg $as_echo_n "(cached) " >&6 8078f126e068Smrgelse 8079f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8080f126e068Smrg/* end confdefs.h. */ 8081f126e068Smrgint i; 8082f126e068Smrg_ACEOF 8083f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8084f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8085f126e068Smrgelse 8086f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8087f126e068Smrgfi 8088f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8089f126e068Smrgfi 8090f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8091f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8092f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8093f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8094f126e068Smrgfi 8095f126e068Smrg 8096f126e068Smrgfound="no" 8097f126e068Smrg 8098f126e068Smrg if test $found = "no" ; then 8099f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8100f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8101f126e068Smrg fi 8102f126e068Smrg 8103f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8104f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8105f126e068Smrg fi 8106f126e068Smrg 8107f126e068Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 8108f126e068Smrg 8109f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8110f126e068Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8111c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 8112f126e068Smrg if eval \${$cacheid+:} false; then : 8113f126e068Smrg $as_echo_n "(cached) " >&6 8114f126e068Smrgelse 8115f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8116f126e068Smrg/* end confdefs.h. */ 8117f126e068Smrgint i; 8118f126e068Smrgint 8119f126e068Smrgmain () 8120f126e068Smrg{ 8121f126e068Smrg 8122f126e068Smrg ; 8123f126e068Smrg return 0; 8124f126e068Smrg} 8125f126e068Smrg_ACEOF 8126f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 8127f126e068Smrg eval $cacheid=yes 8128f126e068Smrgelse 8129f126e068Smrg eval $cacheid=no 8130f126e068Smrgfi 8131f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 8132f126e068Smrg conftest$ac_exeext conftest.$ac_ext 8133f126e068Smrgfi 8134f126e068Smrg 8135f126e068Smrg 8136f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8137f126e068Smrg 8138f126e068Smrg eval supported=\$$cacheid 8139f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8140f126e068Smrg$as_echo "$supported" >&6; } 8141f126e068Smrg if test "$supported" = "yes" ; then 8142f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8143f126e068Smrg found="yes" 8144f126e068Smrg fi 8145f126e068Smrg fi 8146f126e068Smrg 8147f126e068Smrg 8148f126e068Smrg 8149f126e068Smrg 8150f126e068Smrg 8151f126e068Smrg 8152f126e068Smrg 8153f126e068Smrg 8154f126e068Smrg 8155f126e068Smrg 8156f126e068Smrg 8157f126e068Smrg 8158f126e068Smrg 8159f126e068Smrg 8160f126e068Smrg 8161f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8162f126e068Smrg 8163f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8164f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8165f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8166f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8167f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8168f126e068Smrg $as_echo_n "(cached) " >&6 8169f126e068Smrgelse 8170f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8171f126e068Smrg/* end confdefs.h. */ 8172f126e068Smrgint i; 8173f126e068Smrg_ACEOF 8174f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8175f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8176f126e068Smrgelse 8177f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 8178f126e068Smrgfi 8179f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8180f126e068Smrgfi 8181f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8182f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8183f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8184f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8185f126e068Smrgfi 8186f126e068Smrg 8187f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8188f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8189f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8190f126e068Smrg fi 8191f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8192f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8193f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8194f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8195f126e068Smrg $as_echo_n "(cached) " >&6 8196f126e068Smrgelse 8197f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198f126e068Smrg/* end confdefs.h. */ 8199f126e068Smrgint i; 8200f126e068Smrg_ACEOF 8201f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8202f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8203f126e068Smrgelse 8204f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8205f126e068Smrgfi 8206f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8207f126e068Smrgfi 8208f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8209f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8210f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8211f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8212f126e068Smrgfi 8213f126e068Smrg 8214f126e068Smrgfound="no" 8215f126e068Smrg 8216f126e068Smrg if test $found = "no" ; then 8217f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8218f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8219f126e068Smrg fi 8220f126e068Smrg 8221f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8222f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8223f126e068Smrg fi 8224f126e068Smrg 8225f126e068Smrg CFLAGS="$CFLAGS -Werror=write-strings" 8226f126e068Smrg 8227f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8228f126e068Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8229c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_write_strings 8230f126e068Smrg if eval \${$cacheid+:} false; then : 8231f126e068Smrg $as_echo_n "(cached) " >&6 8232f126e068Smrgelse 8233f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8234f126e068Smrg/* end confdefs.h. */ 8235f126e068Smrgint i; 8236f126e068Smrgint 8237f126e068Smrgmain () 8238f126e068Smrg{ 8239f126e068Smrg 8240f126e068Smrg ; 8241f126e068Smrg return 0; 8242f126e068Smrg} 8243f126e068Smrg_ACEOF 8244f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 8245f126e068Smrg eval $cacheid=yes 8246f126e068Smrgelse 8247f126e068Smrg eval $cacheid=no 8248f126e068Smrgfi 8249f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 8250f126e068Smrg conftest$ac_exeext conftest.$ac_ext 8251f126e068Smrgfi 8252f126e068Smrg 8253f126e068Smrg 8254f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8255f126e068Smrg 8256f126e068Smrg eval supported=\$$cacheid 8257f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8258f126e068Smrg$as_echo "$supported" >&6; } 8259f126e068Smrg if test "$supported" = "yes" ; then 8260f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8261f126e068Smrg found="yes" 8262f126e068Smrg fi 8263f126e068Smrg fi 8264f126e068Smrg 8265f126e068Smrg 8266f126e068Smrg 8267f126e068Smrg 8268f126e068Smrg 8269f126e068Smrg 8270f126e068Smrg 8271f126e068Smrg 8272f126e068Smrg 8273f126e068Smrg 8274f126e068Smrg 8275f126e068Smrg 8276f126e068Smrg 8277f126e068Smrg 8278f126e068Smrg 8279f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8280f126e068Smrg 8281f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8282f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8283f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8284f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8285f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8286f126e068Smrg $as_echo_n "(cached) " >&6 8287f126e068Smrgelse 8288f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8289f126e068Smrg/* end confdefs.h. */ 8290f126e068Smrgint i; 8291f126e068Smrg_ACEOF 8292f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8293f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8294f126e068Smrgelse 8295f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 8296f126e068Smrgfi 8297f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8298f126e068Smrgfi 8299f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8300f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8301f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8302f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8303f126e068Smrgfi 8304f126e068Smrg 8305f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8306f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8307f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8308f126e068Smrg fi 8309f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8310f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8311f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8312f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8313f126e068Smrg $as_echo_n "(cached) " >&6 8314f126e068Smrgelse 8315f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8316f126e068Smrg/* end confdefs.h. */ 8317f126e068Smrgint i; 8318f126e068Smrg_ACEOF 8319f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8320f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8321f126e068Smrgelse 8322f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8323f126e068Smrgfi 8324f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8325f126e068Smrgfi 8326f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8327f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8328f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8329f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8330f126e068Smrgfi 8331f126e068Smrg 8332f126e068Smrgfound="no" 8333f126e068Smrg 8334f126e068Smrg if test $found = "no" ; then 8335f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8336f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8337f126e068Smrg fi 8338f126e068Smrg 8339f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8340f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8341f126e068Smrg fi 8342f126e068Smrg 8343f126e068Smrg CFLAGS="$CFLAGS -Werror=address" 8344f126e068Smrg 8345f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8346f126e068Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8347c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_address 8348f126e068Smrg if eval \${$cacheid+:} false; then : 8349f126e068Smrg $as_echo_n "(cached) " >&6 8350f126e068Smrgelse 8351f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352f126e068Smrg/* end confdefs.h. */ 8353f126e068Smrgint i; 8354f126e068Smrgint 8355f126e068Smrgmain () 8356f126e068Smrg{ 8357f126e068Smrg 8358f126e068Smrg ; 8359f126e068Smrg return 0; 8360f126e068Smrg} 8361f126e068Smrg_ACEOF 8362f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 8363f126e068Smrg eval $cacheid=yes 8364f126e068Smrgelse 8365f126e068Smrg eval $cacheid=no 8366f126e068Smrgfi 8367f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 8368f126e068Smrg conftest$ac_exeext conftest.$ac_ext 8369f126e068Smrgfi 8370f126e068Smrg 8371f126e068Smrg 8372f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8373f126e068Smrg 8374f126e068Smrg eval supported=\$$cacheid 8375f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8376f126e068Smrg$as_echo "$supported" >&6; } 8377f126e068Smrg if test "$supported" = "yes" ; then 8378f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8379f126e068Smrg found="yes" 8380f126e068Smrg fi 8381f126e068Smrg fi 8382f126e068Smrg 8383f126e068Smrg 8384f126e068Smrg 8385f126e068Smrg 8386f126e068Smrg 8387f126e068Smrg 8388f126e068Smrg 8389f126e068Smrg 8390f126e068Smrg 8391f126e068Smrg 8392f126e068Smrg 8393f126e068Smrg 8394f126e068Smrg 8395f126e068Smrg 8396f126e068Smrg 8397f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8398f126e068Smrg 8399f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8400f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8401f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8402f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8403f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8404f126e068Smrg $as_echo_n "(cached) " >&6 8405f126e068Smrgelse 8406f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8407f126e068Smrg/* end confdefs.h. */ 8408f126e068Smrgint i; 8409f126e068Smrg_ACEOF 8410f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8411f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8412f126e068Smrgelse 8413f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 8414f126e068Smrgfi 8415f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8416f126e068Smrgfi 8417f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8418f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8419f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8420f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8421f126e068Smrgfi 8422f126e068Smrg 8423f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8424f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8425f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8426f126e068Smrg fi 8427f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8428f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8429f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8430f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8431f126e068Smrg $as_echo_n "(cached) " >&6 8432f126e068Smrgelse 8433f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8434f126e068Smrg/* end confdefs.h. */ 8435f126e068Smrgint i; 8436f126e068Smrg_ACEOF 8437f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8438f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8439f126e068Smrgelse 8440f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8441f126e068Smrgfi 8442f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8443f126e068Smrgfi 8444f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8445f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8446f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8447f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8448f126e068Smrgfi 8449f126e068Smrg 8450f126e068Smrgfound="no" 8451f126e068Smrg 8452f126e068Smrg if test $found = "no" ; then 8453f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8454f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8455f126e068Smrg fi 8456f126e068Smrg 8457f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8458f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8459f126e068Smrg fi 8460f126e068Smrg 8461f126e068Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8462f126e068Smrg 8463f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8464f126e068Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8465c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8466f126e068Smrg if eval \${$cacheid+:} false; then : 8467f126e068Smrg $as_echo_n "(cached) " >&6 8468f126e068Smrgelse 8469f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8470f126e068Smrg/* end confdefs.h. */ 8471f126e068Smrgint i; 8472f126e068Smrgint 8473f126e068Smrgmain () 8474f126e068Smrg{ 8475f126e068Smrg 8476f126e068Smrg ; 8477f126e068Smrg return 0; 8478f126e068Smrg} 8479f126e068Smrg_ACEOF 8480f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 8481f126e068Smrg eval $cacheid=yes 8482f126e068Smrgelse 8483f126e068Smrg eval $cacheid=no 8484f126e068Smrgfi 8485f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 8486f126e068Smrg conftest$ac_exeext conftest.$ac_ext 8487f126e068Smrgfi 8488f126e068Smrg 8489f126e068Smrg 8490f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8491f126e068Smrg 8492f126e068Smrg eval supported=\$$cacheid 8493f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8494f126e068Smrg$as_echo "$supported" >&6; } 8495f126e068Smrg if test "$supported" = "yes" ; then 8496f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8497f126e068Smrg found="yes" 8498f126e068Smrg fi 8499f126e068Smrg fi 8500f126e068Smrg 8501f126e068Smrg if test $found = "no" ; then 8502f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8503f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8504f126e068Smrg fi 8505f126e068Smrg 8506f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8507f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8508f126e068Smrg fi 8509f126e068Smrg 8510f126e068Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8511f126e068Smrg 8512f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8513f126e068Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8514c74b14bdSmrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8515f126e068Smrg if eval \${$cacheid+:} false; then : 8516f126e068Smrg $as_echo_n "(cached) " >&6 8517f126e068Smrgelse 8518f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8519f126e068Smrg/* end confdefs.h. */ 8520f126e068Smrgint i; 8521f126e068Smrgint 8522f126e068Smrgmain () 8523f126e068Smrg{ 8524f126e068Smrg 8525f126e068Smrg ; 8526f126e068Smrg return 0; 8527f126e068Smrg} 8528f126e068Smrg_ACEOF 8529f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 8530f126e068Smrg eval $cacheid=yes 8531f126e068Smrgelse 8532f126e068Smrg eval $cacheid=no 8533f126e068Smrgfi 8534f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 8535f126e068Smrg conftest$ac_exeext conftest.$ac_ext 8536f126e068Smrgfi 8537f126e068Smrg 8538f126e068Smrg 8539f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8540f126e068Smrg 8541f126e068Smrg eval supported=\$$cacheid 8542f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8543f126e068Smrg$as_echo "$supported" >&6; } 8544f126e068Smrg if test "$supported" = "yes" ; then 8545f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8546f126e068Smrg found="yes" 8547f126e068Smrg fi 8548f126e068Smrg fi 8549f126e068Smrg 8550f126e068Smrg 8551f126e068Smrg 8552f126e068Smrg 8553f126e068Smrg 8554f126e068Smrg 8555f126e068Smrg 8556f126e068Smrg 8557f126e068Smrg 8558f126e068Smrg 8559f126e068Smrg 8560f126e068Smrg 8561f126e068Smrg 8562f126e068Smrg 8563f126e068Smrg 8564f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8565f126e068Smrg 8566f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8567f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8568f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8569f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8570f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8571f126e068Smrg $as_echo_n "(cached) " >&6 8572f126e068Smrgelse 8573f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8574f126e068Smrg/* end confdefs.h. */ 8575f126e068Smrgint i; 8576f126e068Smrg_ACEOF 8577f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8578f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8579f126e068Smrgelse 8580f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 8581f126e068Smrgfi 8582f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8583f126e068Smrgfi 8584f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8585f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8586f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8587f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8588f126e068Smrgfi 8589f126e068Smrg 8590f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8591f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8592f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8593f126e068Smrg fi 8594f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8595f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8596f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8597f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8598f126e068Smrg $as_echo_n "(cached) " >&6 8599f126e068Smrgelse 8600f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8601f126e068Smrg/* end confdefs.h. */ 8602f126e068Smrgint i; 8603f126e068Smrg_ACEOF 8604f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8605f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8606f126e068Smrgelse 8607f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8608f126e068Smrgfi 8609f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8610f126e068Smrgfi 8611f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8612f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8613f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8614f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8615f126e068Smrgfi 8616f126e068Smrg 8617f126e068Smrgfound="no" 8618f126e068Smrg 8619f126e068Smrg if test $found = "no" ; then 8620f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8621f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8622f126e068Smrg fi 8623f126e068Smrg 8624f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8625f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8626f126e068Smrg fi 8627f126e068Smrg 8628f126e068Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8629f126e068Smrg 8630f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8631f126e068Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8632c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8633f126e068Smrg if eval \${$cacheid+:} false; then : 8634f126e068Smrg $as_echo_n "(cached) " >&6 8635f126e068Smrgelse 8636f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8637f126e068Smrg/* end confdefs.h. */ 8638f126e068Smrgint i; 8639f126e068Smrgint 8640f126e068Smrgmain () 8641f126e068Smrg{ 8642f126e068Smrg 8643f126e068Smrg ; 8644f126e068Smrg return 0; 8645f126e068Smrg} 8646f126e068Smrg_ACEOF 8647f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 8648f126e068Smrg eval $cacheid=yes 8649f126e068Smrgelse 8650f126e068Smrg eval $cacheid=no 8651f126e068Smrgfi 8652f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 8653f126e068Smrg conftest$ac_exeext conftest.$ac_ext 8654f126e068Smrgfi 8655f126e068Smrg 8656f126e068Smrg 8657f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8658f126e068Smrg 8659f126e068Smrg eval supported=\$$cacheid 8660f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8661f126e068Smrg$as_echo "$supported" >&6; } 8662f126e068Smrg if test "$supported" = "yes" ; then 8663f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8664f126e068Smrg found="yes" 8665f126e068Smrg fi 8666f126e068Smrg fi 8667f126e068Smrg 8668f126e068Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8669f126e068Smrgelse 8670f126e068Smrg{ $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 8671f126e068Smrg$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;} 8672f126e068Smrg 8673f126e068Smrg 8674f126e068Smrg 8675f126e068Smrg 8676f126e068Smrg 8677f126e068Smrg 8678f126e068Smrg 8679f126e068Smrg 8680f126e068Smrg 8681f126e068Smrg 8682f126e068Smrg 8683f126e068Smrg 8684f126e068Smrg 8685f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8686f126e068Smrg 8687f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8688f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8689f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8690f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8691f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8692f126e068Smrg $as_echo_n "(cached) " >&6 8693f126e068Smrgelse 8694f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8695f126e068Smrg/* end confdefs.h. */ 8696f126e068Smrgint i; 8697f126e068Smrg_ACEOF 8698f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8699f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8700f126e068Smrgelse 8701f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 8702f126e068Smrgfi 8703f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8704f126e068Smrgfi 8705f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8706f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8707f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8708f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8709f126e068Smrgfi 8710f126e068Smrg 8711f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8712f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8713f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8714f126e068Smrg fi 8715f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8716f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8717f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8718f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8719f126e068Smrg $as_echo_n "(cached) " >&6 8720f126e068Smrgelse 8721f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722f126e068Smrg/* end confdefs.h. */ 8723f126e068Smrgint i; 8724f126e068Smrg_ACEOF 8725f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8726f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8727f126e068Smrgelse 8728f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8729f126e068Smrgfi 8730f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8731f126e068Smrgfi 8732f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8733f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8734f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8735f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8736f126e068Smrgfi 8737f126e068Smrg 8738f126e068Smrgfound="no" 8739f126e068Smrg 8740f126e068Smrg if test $found = "no" ; then 8741f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8742f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8743f126e068Smrg fi 8744f126e068Smrg 8745f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8746f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8747f126e068Smrg fi 8748f126e068Smrg 8749f126e068Smrg CFLAGS="$CFLAGS -Wimplicit" 8750f126e068Smrg 8751f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8752f126e068Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8753f126e068Smrg cacheid=xorg_cv_cc_flag__Wimplicit 8754f126e068Smrg if eval \${$cacheid+:} false; then : 8755f126e068Smrg $as_echo_n "(cached) " >&6 8756f126e068Smrgelse 8757f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8758f126e068Smrg/* end confdefs.h. */ 8759f126e068Smrgint i; 8760f126e068Smrgint 8761f126e068Smrgmain () 8762f126e068Smrg{ 8763f126e068Smrg 8764f126e068Smrg ; 8765f126e068Smrg return 0; 8766f126e068Smrg} 8767f126e068Smrg_ACEOF 8768f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 8769f126e068Smrg eval $cacheid=yes 8770f126e068Smrgelse 8771f126e068Smrg eval $cacheid=no 8772f126e068Smrgfi 8773f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 8774f126e068Smrg conftest$ac_exeext conftest.$ac_ext 8775f126e068Smrgfi 8776f126e068Smrg 8777f126e068Smrg 8778f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8779f126e068Smrg 8780f126e068Smrg eval supported=\$$cacheid 8781f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8782f126e068Smrg$as_echo "$supported" >&6; } 8783f126e068Smrg if test "$supported" = "yes" ; then 8784f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8785f126e068Smrg found="yes" 8786f126e068Smrg fi 8787f126e068Smrg fi 8788f126e068Smrg 8789f126e068Smrg 8790f126e068Smrg 8791f126e068Smrg 8792f126e068Smrg 8793f126e068Smrg 8794f126e068Smrg 8795f126e068Smrg 8796f126e068Smrg 8797f126e068Smrg 8798f126e068Smrg 8799f126e068Smrg 8800f126e068Smrg 8801f126e068Smrg 8802f126e068Smrg 8803f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8804f126e068Smrg 8805f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8806f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8807f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8808f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8809f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8810f126e068Smrg $as_echo_n "(cached) " >&6 8811f126e068Smrgelse 8812f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8813f126e068Smrg/* end confdefs.h. */ 8814f126e068Smrgint i; 8815f126e068Smrg_ACEOF 8816f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8817f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8818f126e068Smrgelse 8819f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 8820f126e068Smrgfi 8821f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8822f126e068Smrgfi 8823f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8824f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8825f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8826f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8827f126e068Smrgfi 8828f126e068Smrg 8829f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8830f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8831f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8832f126e068Smrg fi 8833f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8834f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8835f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8836f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8837f126e068Smrg $as_echo_n "(cached) " >&6 8838f126e068Smrgelse 8839f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8840f126e068Smrg/* end confdefs.h. */ 8841f126e068Smrgint i; 8842f126e068Smrg_ACEOF 8843f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8844f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8845f126e068Smrgelse 8846f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8847f126e068Smrgfi 8848f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8849f126e068Smrgfi 8850f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8851f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8852f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8853f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8854f126e068Smrgfi 8855f126e068Smrg 8856f126e068Smrgfound="no" 8857f126e068Smrg 8858f126e068Smrg if test $found = "no" ; then 8859f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8860f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8861f126e068Smrg fi 8862f126e068Smrg 8863f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8864f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8865f126e068Smrg fi 8866f126e068Smrg 8867f126e068Smrg CFLAGS="$CFLAGS -Wnonnull" 8868f126e068Smrg 8869f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8870f126e068Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8871f126e068Smrg cacheid=xorg_cv_cc_flag__Wnonnull 8872f126e068Smrg if eval \${$cacheid+:} false; then : 8873f126e068Smrg $as_echo_n "(cached) " >&6 8874f126e068Smrgelse 8875f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8876f126e068Smrg/* end confdefs.h. */ 8877f126e068Smrgint i; 8878f126e068Smrgint 8879f126e068Smrgmain () 8880f126e068Smrg{ 8881f126e068Smrg 8882f126e068Smrg ; 8883f126e068Smrg return 0; 8884f126e068Smrg} 8885f126e068Smrg_ACEOF 8886f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 8887f126e068Smrg eval $cacheid=yes 8888f126e068Smrgelse 8889f126e068Smrg eval $cacheid=no 8890f126e068Smrgfi 8891f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 8892f126e068Smrg conftest$ac_exeext conftest.$ac_ext 8893f126e068Smrgfi 8894f126e068Smrg 8895f126e068Smrg 8896f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8897f126e068Smrg 8898f126e068Smrg eval supported=\$$cacheid 8899f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8900f126e068Smrg$as_echo "$supported" >&6; } 8901f126e068Smrg if test "$supported" = "yes" ; then 8902f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8903f126e068Smrg found="yes" 8904f126e068Smrg fi 8905f126e068Smrg fi 8906f126e068Smrg 8907f126e068Smrg 8908f126e068Smrg 8909f126e068Smrg 8910f126e068Smrg 8911f126e068Smrg 8912f126e068Smrg 8913f126e068Smrg 8914f126e068Smrg 8915f126e068Smrg 8916f126e068Smrg 8917f126e068Smrg 8918f126e068Smrg 8919f126e068Smrg 8920f126e068Smrg 8921f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8922f126e068Smrg 8923f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8924f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8925f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8926f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8927f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8928f126e068Smrg $as_echo_n "(cached) " >&6 8929f126e068Smrgelse 8930f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8931f126e068Smrg/* end confdefs.h. */ 8932f126e068Smrgint i; 8933f126e068Smrg_ACEOF 8934f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8935f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8936f126e068Smrgelse 8937f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 8938f126e068Smrgfi 8939f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8940f126e068Smrgfi 8941f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8942f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8943f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8944f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8945f126e068Smrgfi 8946f126e068Smrg 8947f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8948f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8949f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8950f126e068Smrg fi 8951f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8952f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8953f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8954f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8955f126e068Smrg $as_echo_n "(cached) " >&6 8956f126e068Smrgelse 8957f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8958f126e068Smrg/* end confdefs.h. */ 8959f126e068Smrgint i; 8960f126e068Smrg_ACEOF 8961f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 8962f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8963f126e068Smrgelse 8964f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8965f126e068Smrgfi 8966f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8967f126e068Smrgfi 8968f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8969f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8970f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8971f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8972f126e068Smrgfi 8973f126e068Smrg 8974f126e068Smrgfound="no" 8975f126e068Smrg 8976f126e068Smrg if test $found = "no" ; then 8977f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8978f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8979f126e068Smrg fi 8980f126e068Smrg 8981f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8982f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8983f126e068Smrg fi 8984f126e068Smrg 8985f126e068Smrg CFLAGS="$CFLAGS -Winit-self" 8986f126e068Smrg 8987f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8988f126e068Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8989f126e068Smrg cacheid=xorg_cv_cc_flag__Winit_self 8990f126e068Smrg if eval \${$cacheid+:} false; then : 8991f126e068Smrg $as_echo_n "(cached) " >&6 8992f126e068Smrgelse 8993f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8994f126e068Smrg/* end confdefs.h. */ 8995f126e068Smrgint i; 8996f126e068Smrgint 8997f126e068Smrgmain () 8998f126e068Smrg{ 8999f126e068Smrg 9000f126e068Smrg ; 9001f126e068Smrg return 0; 9002f126e068Smrg} 9003f126e068Smrg_ACEOF 9004f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 9005f126e068Smrg eval $cacheid=yes 9006f126e068Smrgelse 9007f126e068Smrg eval $cacheid=no 9008f126e068Smrgfi 9009f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 9010f126e068Smrg conftest$ac_exeext conftest.$ac_ext 9011f126e068Smrgfi 9012f126e068Smrg 9013f126e068Smrg 9014f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9015f126e068Smrg 9016f126e068Smrg eval supported=\$$cacheid 9017f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9018f126e068Smrg$as_echo "$supported" >&6; } 9019f126e068Smrg if test "$supported" = "yes" ; then 9020f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9021f126e068Smrg found="yes" 9022f126e068Smrg fi 9023f126e068Smrg fi 9024f126e068Smrg 9025f126e068Smrg 9026f126e068Smrg 9027f126e068Smrg 9028f126e068Smrg 9029f126e068Smrg 9030f126e068Smrg 9031f126e068Smrg 9032f126e068Smrg 9033f126e068Smrg 9034f126e068Smrg 9035f126e068Smrg 9036f126e068Smrg 9037f126e068Smrg 9038f126e068Smrg 9039f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9040f126e068Smrg 9041f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9042f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9043f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9044f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9045f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9046f126e068Smrg $as_echo_n "(cached) " >&6 9047f126e068Smrgelse 9048f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9049f126e068Smrg/* end confdefs.h. */ 9050f126e068Smrgint i; 9051f126e068Smrg_ACEOF 9052f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9053f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9054f126e068Smrgelse 9055f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 9056f126e068Smrgfi 9057f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9058f126e068Smrgfi 9059f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9060f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9061f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9062f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9063f126e068Smrgfi 9064f126e068Smrg 9065f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9066f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9067f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9068f126e068Smrg fi 9069f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9070f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9071f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9072f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9073f126e068Smrg $as_echo_n "(cached) " >&6 9074f126e068Smrgelse 9075f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9076f126e068Smrg/* end confdefs.h. */ 9077f126e068Smrgint i; 9078f126e068Smrg_ACEOF 9079f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9080f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9081f126e068Smrgelse 9082f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9083f126e068Smrgfi 9084f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9085f126e068Smrgfi 9086f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9087f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9088f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9089f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9090f126e068Smrgfi 9091f126e068Smrg 9092f126e068Smrgfound="no" 9093f126e068Smrg 9094f126e068Smrg if test $found = "no" ; then 9095f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9096f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9097f126e068Smrg fi 9098f126e068Smrg 9099f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9100f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9101f126e068Smrg fi 9102f126e068Smrg 9103f126e068Smrg CFLAGS="$CFLAGS -Wmain" 9104f126e068Smrg 9105f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9106f126e068Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9107f126e068Smrg cacheid=xorg_cv_cc_flag__Wmain 9108f126e068Smrg if eval \${$cacheid+:} false; then : 9109f126e068Smrg $as_echo_n "(cached) " >&6 9110f126e068Smrgelse 9111f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9112f126e068Smrg/* end confdefs.h. */ 9113f126e068Smrgint i; 9114f126e068Smrgint 9115f126e068Smrgmain () 9116f126e068Smrg{ 9117f126e068Smrg 9118f126e068Smrg ; 9119f126e068Smrg return 0; 9120f126e068Smrg} 9121f126e068Smrg_ACEOF 9122f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 9123f126e068Smrg eval $cacheid=yes 9124f126e068Smrgelse 9125f126e068Smrg eval $cacheid=no 9126f126e068Smrgfi 9127f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 9128f126e068Smrg conftest$ac_exeext conftest.$ac_ext 9129f126e068Smrgfi 9130f126e068Smrg 9131f126e068Smrg 9132f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9133f126e068Smrg 9134f126e068Smrg eval supported=\$$cacheid 9135f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9136f126e068Smrg$as_echo "$supported" >&6; } 9137f126e068Smrg if test "$supported" = "yes" ; then 9138f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9139f126e068Smrg found="yes" 9140f126e068Smrg fi 9141f126e068Smrg fi 9142f126e068Smrg 9143f126e068Smrg 9144f126e068Smrg 9145f126e068Smrg 9146f126e068Smrg 9147f126e068Smrg 9148f126e068Smrg 9149f126e068Smrg 9150f126e068Smrg 9151f126e068Smrg 9152f126e068Smrg 9153f126e068Smrg 9154f126e068Smrg 9155f126e068Smrg 9156f126e068Smrg 9157f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9158f126e068Smrg 9159f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9160f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9161f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9162f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9163f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9164f126e068Smrg $as_echo_n "(cached) " >&6 9165f126e068Smrgelse 9166f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9167f126e068Smrg/* end confdefs.h. */ 9168f126e068Smrgint i; 9169f126e068Smrg_ACEOF 9170f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9171f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9172f126e068Smrgelse 9173f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 9174f126e068Smrgfi 9175f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9176f126e068Smrgfi 9177f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9178f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9179f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9180f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9181f126e068Smrgfi 9182f126e068Smrg 9183f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9184f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9185f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9186f126e068Smrg fi 9187f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9188f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9189f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9190f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9191f126e068Smrg $as_echo_n "(cached) " >&6 9192f126e068Smrgelse 9193f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9194f126e068Smrg/* end confdefs.h. */ 9195f126e068Smrgint i; 9196f126e068Smrg_ACEOF 9197f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9198f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9199f126e068Smrgelse 9200f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9201f126e068Smrgfi 9202f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9203f126e068Smrgfi 9204f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9205f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9206f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9207f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9208f126e068Smrgfi 9209f126e068Smrg 9210f126e068Smrgfound="no" 9211f126e068Smrg 9212f126e068Smrg if test $found = "no" ; then 9213f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9214f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9215f126e068Smrg fi 9216f126e068Smrg 9217f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9218f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9219f126e068Smrg fi 9220f126e068Smrg 9221f126e068Smrg CFLAGS="$CFLAGS -Wmissing-braces" 9222f126e068Smrg 9223f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9224f126e068Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9225f126e068Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 9226f126e068Smrg if eval \${$cacheid+:} false; then : 9227f126e068Smrg $as_echo_n "(cached) " >&6 9228f126e068Smrgelse 9229f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9230f126e068Smrg/* end confdefs.h. */ 9231f126e068Smrgint i; 9232f126e068Smrgint 9233f126e068Smrgmain () 9234f126e068Smrg{ 9235f126e068Smrg 9236f126e068Smrg ; 9237f126e068Smrg return 0; 9238f126e068Smrg} 9239f126e068Smrg_ACEOF 9240f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 9241f126e068Smrg eval $cacheid=yes 9242f126e068Smrgelse 9243f126e068Smrg eval $cacheid=no 9244f126e068Smrgfi 9245f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 9246f126e068Smrg conftest$ac_exeext conftest.$ac_ext 9247f126e068Smrgfi 9248f126e068Smrg 9249f126e068Smrg 9250f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9251f126e068Smrg 9252f126e068Smrg eval supported=\$$cacheid 9253f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9254f126e068Smrg$as_echo "$supported" >&6; } 9255f126e068Smrg if test "$supported" = "yes" ; then 9256f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9257f126e068Smrg found="yes" 9258f126e068Smrg fi 9259f126e068Smrg fi 9260f126e068Smrg 9261f126e068Smrg 9262f126e068Smrg 9263f126e068Smrg 9264f126e068Smrg 9265f126e068Smrg 9266f126e068Smrg 9267f126e068Smrg 9268f126e068Smrg 9269f126e068Smrg 9270f126e068Smrg 9271f126e068Smrg 9272f126e068Smrg 9273f126e068Smrg 9274f126e068Smrg 9275f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9276f126e068Smrg 9277f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9278f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9279f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9280f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9281f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9282f126e068Smrg $as_echo_n "(cached) " >&6 9283f126e068Smrgelse 9284f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9285f126e068Smrg/* end confdefs.h. */ 9286f126e068Smrgint i; 9287f126e068Smrg_ACEOF 9288f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9289f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9290f126e068Smrgelse 9291f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 9292f126e068Smrgfi 9293f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9294f126e068Smrgfi 9295f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9296f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9297f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9298f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9299f126e068Smrgfi 9300f126e068Smrg 9301f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9302f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9303f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9304f126e068Smrg fi 9305f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9306f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9307f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9308f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9309f126e068Smrg $as_echo_n "(cached) " >&6 9310f126e068Smrgelse 9311f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9312f126e068Smrg/* end confdefs.h. */ 9313f126e068Smrgint i; 9314f126e068Smrg_ACEOF 9315f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9316f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9317f126e068Smrgelse 9318f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9319f126e068Smrgfi 9320f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9321f126e068Smrgfi 9322f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9323f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9324f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9325f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9326f126e068Smrgfi 9327f126e068Smrg 9328f126e068Smrgfound="no" 9329f126e068Smrg 9330f126e068Smrg if test $found = "no" ; then 9331f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9332f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9333f126e068Smrg fi 9334f126e068Smrg 9335f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9336f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9337f126e068Smrg fi 9338f126e068Smrg 9339f126e068Smrg CFLAGS="$CFLAGS -Wsequence-point" 9340f126e068Smrg 9341f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9342f126e068Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9343f126e068Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 9344f126e068Smrg if eval \${$cacheid+:} false; then : 9345f126e068Smrg $as_echo_n "(cached) " >&6 9346f126e068Smrgelse 9347f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9348f126e068Smrg/* end confdefs.h. */ 9349f126e068Smrgint i; 9350f126e068Smrgint 9351f126e068Smrgmain () 9352f126e068Smrg{ 9353f126e068Smrg 9354f126e068Smrg ; 9355f126e068Smrg return 0; 9356f126e068Smrg} 9357f126e068Smrg_ACEOF 9358f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 9359f126e068Smrg eval $cacheid=yes 9360f126e068Smrgelse 9361f126e068Smrg eval $cacheid=no 9362f126e068Smrgfi 9363f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 9364f126e068Smrg conftest$ac_exeext conftest.$ac_ext 9365f126e068Smrgfi 9366f126e068Smrg 9367f126e068Smrg 9368f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9369f126e068Smrg 9370f126e068Smrg eval supported=\$$cacheid 9371f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9372f126e068Smrg$as_echo "$supported" >&6; } 9373f126e068Smrg if test "$supported" = "yes" ; then 9374f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9375f126e068Smrg found="yes" 9376f126e068Smrg fi 9377f126e068Smrg fi 9378f126e068Smrg 9379f126e068Smrg 9380f126e068Smrg 9381f126e068Smrg 9382f126e068Smrg 9383f126e068Smrg 9384f126e068Smrg 9385f126e068Smrg 9386f126e068Smrg 9387f126e068Smrg 9388f126e068Smrg 9389f126e068Smrg 9390f126e068Smrg 9391f126e068Smrg 9392f126e068Smrg 9393f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9394f126e068Smrg 9395f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9396f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9397f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9398f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9399f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9400f126e068Smrg $as_echo_n "(cached) " >&6 9401f126e068Smrgelse 9402f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9403f126e068Smrg/* end confdefs.h. */ 9404f126e068Smrgint i; 9405f126e068Smrg_ACEOF 9406f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9407f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9408f126e068Smrgelse 9409f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 9410f126e068Smrgfi 9411f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9412f126e068Smrgfi 9413f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9414f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9415f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9416f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9417f126e068Smrgfi 9418f126e068Smrg 9419f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9420f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9421f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9422f126e068Smrg fi 9423f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9424f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9425f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9426f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9427f126e068Smrg $as_echo_n "(cached) " >&6 9428f126e068Smrgelse 9429f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9430f126e068Smrg/* end confdefs.h. */ 9431f126e068Smrgint i; 9432f126e068Smrg_ACEOF 9433f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9434f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9435f126e068Smrgelse 9436f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9437f126e068Smrgfi 9438f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9439f126e068Smrgfi 9440f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9441f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9442f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9443f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9444f126e068Smrgfi 9445f126e068Smrg 9446f126e068Smrgfound="no" 9447f126e068Smrg 9448f126e068Smrg if test $found = "no" ; then 9449f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9450f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9451f126e068Smrg fi 9452f126e068Smrg 9453f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9454f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9455f126e068Smrg fi 9456f126e068Smrg 9457f126e068Smrg CFLAGS="$CFLAGS -Wreturn-type" 9458f126e068Smrg 9459f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9460f126e068Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9461f126e068Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 9462f126e068Smrg if eval \${$cacheid+:} false; then : 9463f126e068Smrg $as_echo_n "(cached) " >&6 9464f126e068Smrgelse 9465f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9466f126e068Smrg/* end confdefs.h. */ 9467f126e068Smrgint i; 9468f126e068Smrgint 9469f126e068Smrgmain () 9470f126e068Smrg{ 9471f126e068Smrg 9472f126e068Smrg ; 9473f126e068Smrg return 0; 9474f126e068Smrg} 9475f126e068Smrg_ACEOF 9476f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 9477f126e068Smrg eval $cacheid=yes 9478f126e068Smrgelse 9479f126e068Smrg eval $cacheid=no 9480f126e068Smrgfi 9481f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 9482f126e068Smrg conftest$ac_exeext conftest.$ac_ext 9483f126e068Smrgfi 9484f126e068Smrg 9485f126e068Smrg 9486f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9487f126e068Smrg 9488f126e068Smrg eval supported=\$$cacheid 9489f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9490f126e068Smrg$as_echo "$supported" >&6; } 9491f126e068Smrg if test "$supported" = "yes" ; then 9492f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9493f126e068Smrg found="yes" 9494f126e068Smrg fi 9495f126e068Smrg fi 9496f126e068Smrg 9497f126e068Smrg 9498f126e068Smrg 9499f126e068Smrg 9500f126e068Smrg 9501f126e068Smrg 9502f126e068Smrg 9503f126e068Smrg 9504f126e068Smrg 9505f126e068Smrg 9506f126e068Smrg 9507f126e068Smrg 9508f126e068Smrg 9509f126e068Smrg 9510f126e068Smrg 9511f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9512f126e068Smrg 9513f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9514f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9515f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9516f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9517f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9518f126e068Smrg $as_echo_n "(cached) " >&6 9519f126e068Smrgelse 9520f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9521f126e068Smrg/* end confdefs.h. */ 9522f126e068Smrgint i; 9523f126e068Smrg_ACEOF 9524f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9525f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9526f126e068Smrgelse 9527f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 9528f126e068Smrgfi 9529f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9530f126e068Smrgfi 9531f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9532f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9533f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9534f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9535f126e068Smrgfi 9536f126e068Smrg 9537f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9538f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9539f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9540f126e068Smrg fi 9541f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9542f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9543f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9544f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9545f126e068Smrg $as_echo_n "(cached) " >&6 9546f126e068Smrgelse 9547f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9548f126e068Smrg/* end confdefs.h. */ 9549f126e068Smrgint i; 9550f126e068Smrg_ACEOF 9551f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9552f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9553f126e068Smrgelse 9554f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9555f126e068Smrgfi 9556f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9557f126e068Smrgfi 9558f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9559f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9560f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9561f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9562f126e068Smrgfi 9563f126e068Smrg 9564f126e068Smrgfound="no" 9565f126e068Smrg 9566f126e068Smrg if test $found = "no" ; then 9567f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9568f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9569f126e068Smrg fi 9570f126e068Smrg 9571f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9572f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9573f126e068Smrg fi 9574f126e068Smrg 9575f126e068Smrg CFLAGS="$CFLAGS -Wtrigraphs" 9576f126e068Smrg 9577f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9578f126e068Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9579f126e068Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 9580f126e068Smrg if eval \${$cacheid+:} false; then : 9581f126e068Smrg $as_echo_n "(cached) " >&6 9582f126e068Smrgelse 9583f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9584f126e068Smrg/* end confdefs.h. */ 9585f126e068Smrgint i; 9586f126e068Smrgint 9587f126e068Smrgmain () 9588f126e068Smrg{ 9589f126e068Smrg 9590f126e068Smrg ; 9591f126e068Smrg return 0; 9592f126e068Smrg} 9593f126e068Smrg_ACEOF 9594f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 9595f126e068Smrg eval $cacheid=yes 9596f126e068Smrgelse 9597f126e068Smrg eval $cacheid=no 9598f126e068Smrgfi 9599f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 9600f126e068Smrg conftest$ac_exeext conftest.$ac_ext 9601f126e068Smrgfi 9602f126e068Smrg 9603f126e068Smrg 9604f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9605f126e068Smrg 9606f126e068Smrg eval supported=\$$cacheid 9607f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9608f126e068Smrg$as_echo "$supported" >&6; } 9609f126e068Smrg if test "$supported" = "yes" ; then 9610f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9611f126e068Smrg found="yes" 9612f126e068Smrg fi 9613f126e068Smrg fi 9614f126e068Smrg 9615f126e068Smrg 9616f126e068Smrg 9617f126e068Smrg 9618f126e068Smrg 9619f126e068Smrg 9620f126e068Smrg 9621f126e068Smrg 9622f126e068Smrg 9623f126e068Smrg 9624f126e068Smrg 9625f126e068Smrg 9626f126e068Smrg 9627f126e068Smrg 9628f126e068Smrg 9629f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9630f126e068Smrg 9631f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9632f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9633f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9634f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9635f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9636f126e068Smrg $as_echo_n "(cached) " >&6 9637f126e068Smrgelse 9638f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9639f126e068Smrg/* end confdefs.h. */ 9640f126e068Smrgint i; 9641f126e068Smrg_ACEOF 9642f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9643f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9644f126e068Smrgelse 9645f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 9646f126e068Smrgfi 9647f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9648f126e068Smrgfi 9649f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9650f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9651f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9652f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9653f126e068Smrgfi 9654f126e068Smrg 9655f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9656f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9657f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9658f126e068Smrg fi 9659f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9660f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9661f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9662f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9663f126e068Smrg $as_echo_n "(cached) " >&6 9664f126e068Smrgelse 9665f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9666f126e068Smrg/* end confdefs.h. */ 9667f126e068Smrgint i; 9668f126e068Smrg_ACEOF 9669f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9670f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9671f126e068Smrgelse 9672f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9673f126e068Smrgfi 9674f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9675f126e068Smrgfi 9676f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9677f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9678f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9679f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9680f126e068Smrgfi 9681f126e068Smrg 9682f126e068Smrgfound="no" 9683f126e068Smrg 9684f126e068Smrg if test $found = "no" ; then 9685f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9686f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9687f126e068Smrg fi 9688f126e068Smrg 9689f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9690f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9691f126e068Smrg fi 9692f126e068Smrg 9693f126e068Smrg CFLAGS="$CFLAGS -Warray-bounds" 9694f126e068Smrg 9695f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9696f126e068Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9697f126e068Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 9698f126e068Smrg if eval \${$cacheid+:} false; then : 9699f126e068Smrg $as_echo_n "(cached) " >&6 9700f126e068Smrgelse 9701f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9702f126e068Smrg/* end confdefs.h. */ 9703f126e068Smrgint i; 9704f126e068Smrgint 9705f126e068Smrgmain () 9706f126e068Smrg{ 9707f126e068Smrg 9708f126e068Smrg ; 9709f126e068Smrg return 0; 9710f126e068Smrg} 9711f126e068Smrg_ACEOF 9712f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 9713f126e068Smrg eval $cacheid=yes 9714f126e068Smrgelse 9715f126e068Smrg eval $cacheid=no 9716f126e068Smrgfi 9717f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 9718f126e068Smrg conftest$ac_exeext conftest.$ac_ext 9719f126e068Smrgfi 9720f126e068Smrg 9721f126e068Smrg 9722f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9723f126e068Smrg 9724f126e068Smrg eval supported=\$$cacheid 9725f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9726f126e068Smrg$as_echo "$supported" >&6; } 9727f126e068Smrg if test "$supported" = "yes" ; then 9728f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9729f126e068Smrg found="yes" 9730f126e068Smrg fi 9731f126e068Smrg fi 9732f126e068Smrg 9733f126e068Smrg 9734f126e068Smrg 9735f126e068Smrg 9736f126e068Smrg 9737f126e068Smrg 9738f126e068Smrg 9739f126e068Smrg 9740f126e068Smrg 9741f126e068Smrg 9742f126e068Smrg 9743f126e068Smrg 9744f126e068Smrg 9745f126e068Smrg 9746f126e068Smrg 9747f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9748f126e068Smrg 9749f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9750f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9751f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9752f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9753f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9754f126e068Smrg $as_echo_n "(cached) " >&6 9755f126e068Smrgelse 9756f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9757f126e068Smrg/* end confdefs.h. */ 9758f126e068Smrgint i; 9759f126e068Smrg_ACEOF 9760f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9761f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9762f126e068Smrgelse 9763f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 9764f126e068Smrgfi 9765f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9766f126e068Smrgfi 9767f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9768f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9769f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9770f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9771f126e068Smrgfi 9772f126e068Smrg 9773f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9774f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9775f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9776f126e068Smrg fi 9777f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9778f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9779f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9780f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9781f126e068Smrg $as_echo_n "(cached) " >&6 9782f126e068Smrgelse 9783f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9784f126e068Smrg/* end confdefs.h. */ 9785f126e068Smrgint i; 9786f126e068Smrg_ACEOF 9787f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9788f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9789f126e068Smrgelse 9790f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9791f126e068Smrgfi 9792f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9793f126e068Smrgfi 9794f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9795f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9796f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9797f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9798f126e068Smrgfi 9799f126e068Smrg 9800f126e068Smrgfound="no" 9801f126e068Smrg 9802f126e068Smrg if test $found = "no" ; then 9803f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9804f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9805f126e068Smrg fi 9806f126e068Smrg 9807f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9808f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9809f126e068Smrg fi 9810f126e068Smrg 9811f126e068Smrg CFLAGS="$CFLAGS -Wwrite-strings" 9812f126e068Smrg 9813f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9814f126e068Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9815f126e068Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 9816f126e068Smrg if eval \${$cacheid+:} false; then : 9817f126e068Smrg $as_echo_n "(cached) " >&6 9818f126e068Smrgelse 9819f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9820f126e068Smrg/* end confdefs.h. */ 9821f126e068Smrgint i; 9822f126e068Smrgint 9823f126e068Smrgmain () 9824f126e068Smrg{ 9825f126e068Smrg 9826f126e068Smrg ; 9827f126e068Smrg return 0; 9828f126e068Smrg} 9829f126e068Smrg_ACEOF 9830f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 9831f126e068Smrg eval $cacheid=yes 9832f126e068Smrgelse 9833f126e068Smrg eval $cacheid=no 9834f126e068Smrgfi 9835f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 9836f126e068Smrg conftest$ac_exeext conftest.$ac_ext 9837f126e068Smrgfi 9838f126e068Smrg 9839f126e068Smrg 9840f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9841f126e068Smrg 9842f126e068Smrg eval supported=\$$cacheid 9843f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9844f126e068Smrg$as_echo "$supported" >&6; } 9845f126e068Smrg if test "$supported" = "yes" ; then 9846f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9847f126e068Smrg found="yes" 9848f126e068Smrg fi 9849f126e068Smrg fi 9850f126e068Smrg 9851f126e068Smrg 9852f126e068Smrg 9853f126e068Smrg 9854f126e068Smrg 9855f126e068Smrg 9856f126e068Smrg 9857f126e068Smrg 9858f126e068Smrg 9859f126e068Smrg 9860f126e068Smrg 9861f126e068Smrg 9862f126e068Smrg 9863f126e068Smrg 9864f126e068Smrg 9865f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9866f126e068Smrg 9867f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9868f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9869f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9870f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9871f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9872f126e068Smrg $as_echo_n "(cached) " >&6 9873f126e068Smrgelse 9874f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9875f126e068Smrg/* end confdefs.h. */ 9876f126e068Smrgint i; 9877f126e068Smrg_ACEOF 9878f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9879f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9880f126e068Smrgelse 9881f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 9882f126e068Smrgfi 9883f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9884f126e068Smrgfi 9885f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9886f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9887f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9888f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9889f126e068Smrgfi 9890f126e068Smrg 9891f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9892f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9893f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9894f126e068Smrg fi 9895f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9896f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9897f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9898f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9899f126e068Smrg $as_echo_n "(cached) " >&6 9900f126e068Smrgelse 9901f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9902f126e068Smrg/* end confdefs.h. */ 9903f126e068Smrgint i; 9904f126e068Smrg_ACEOF 9905f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9906f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9907f126e068Smrgelse 9908f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9909f126e068Smrgfi 9910f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9911f126e068Smrgfi 9912f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9913f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9914f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9915f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9916f126e068Smrgfi 9917f126e068Smrg 9918f126e068Smrgfound="no" 9919f126e068Smrg 9920f126e068Smrg if test $found = "no" ; then 9921f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9922f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9923f126e068Smrg fi 9924f126e068Smrg 9925f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9926f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9927f126e068Smrg fi 9928f126e068Smrg 9929f126e068Smrg CFLAGS="$CFLAGS -Waddress" 9930f126e068Smrg 9931f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9932f126e068Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9933f126e068Smrg cacheid=xorg_cv_cc_flag__Waddress 9934f126e068Smrg if eval \${$cacheid+:} false; then : 9935f126e068Smrg $as_echo_n "(cached) " >&6 9936f126e068Smrgelse 9937f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9938f126e068Smrg/* end confdefs.h. */ 9939f126e068Smrgint i; 9940f126e068Smrgint 9941f126e068Smrgmain () 9942f126e068Smrg{ 9943f126e068Smrg 9944f126e068Smrg ; 9945f126e068Smrg return 0; 9946f126e068Smrg} 9947f126e068Smrg_ACEOF 9948f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 9949f126e068Smrg eval $cacheid=yes 9950f126e068Smrgelse 9951f126e068Smrg eval $cacheid=no 9952f126e068Smrgfi 9953f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 9954f126e068Smrg conftest$ac_exeext conftest.$ac_ext 9955f126e068Smrgfi 9956f126e068Smrg 9957f126e068Smrg 9958f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9959f126e068Smrg 9960f126e068Smrg eval supported=\$$cacheid 9961f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9962f126e068Smrg$as_echo "$supported" >&6; } 9963f126e068Smrg if test "$supported" = "yes" ; then 9964f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9965f126e068Smrg found="yes" 9966f126e068Smrg fi 9967f126e068Smrg fi 9968f126e068Smrg 9969f126e068Smrg 9970f126e068Smrg 9971f126e068Smrg 9972f126e068Smrg 9973f126e068Smrg 9974f126e068Smrg 9975f126e068Smrg 9976f126e068Smrg 9977f126e068Smrg 9978f126e068Smrg 9979f126e068Smrg 9980f126e068Smrg 9981f126e068Smrg 9982f126e068Smrg 9983f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9984f126e068Smrg 9985f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9986f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9987f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9988f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9989f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9990f126e068Smrg $as_echo_n "(cached) " >&6 9991f126e068Smrgelse 9992f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9993f126e068Smrg/* end confdefs.h. */ 9994f126e068Smrgint i; 9995f126e068Smrg_ACEOF 9996f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 9997f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9998f126e068Smrgelse 9999f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 10000f126e068Smrgfi 10001f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10002f126e068Smrgfi 10003f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10004f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10005f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10006f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10007f126e068Smrgfi 10008f126e068Smrg 10009f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10010f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10011f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10012f126e068Smrg fi 10013f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10014f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10015f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10016f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10017f126e068Smrg $as_echo_n "(cached) " >&6 10018f126e068Smrgelse 10019f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10020f126e068Smrg/* end confdefs.h. */ 10021f126e068Smrgint i; 10022f126e068Smrg_ACEOF 10023f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 10024f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10025f126e068Smrgelse 10026f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10027f126e068Smrgfi 10028f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10029f126e068Smrgfi 10030f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10031f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10032f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10033f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10034f126e068Smrgfi 10035f126e068Smrg 10036f126e068Smrgfound="no" 10037f126e068Smrg 10038f126e068Smrg if test $found = "no" ; then 10039f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10040f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10041f126e068Smrg fi 10042f126e068Smrg 10043f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10044f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10045f126e068Smrg fi 10046f126e068Smrg 10047f126e068Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10048f126e068Smrg 10049f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10050f126e068Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10051f126e068Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10052f126e068Smrg if eval \${$cacheid+:} false; then : 10053f126e068Smrg $as_echo_n "(cached) " >&6 10054f126e068Smrgelse 10055f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10056f126e068Smrg/* end confdefs.h. */ 10057f126e068Smrgint i; 10058f126e068Smrgint 10059f126e068Smrgmain () 10060f126e068Smrg{ 10061f126e068Smrg 10062f126e068Smrg ; 10063f126e068Smrg return 0; 10064f126e068Smrg} 10065f126e068Smrg_ACEOF 10066f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 10067f126e068Smrg eval $cacheid=yes 10068f126e068Smrgelse 10069f126e068Smrg eval $cacheid=no 10070f126e068Smrgfi 10071f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 10072f126e068Smrg conftest$ac_exeext conftest.$ac_ext 10073f126e068Smrgfi 10074f126e068Smrg 10075f126e068Smrg 10076f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10077f126e068Smrg 10078f126e068Smrg eval supported=\$$cacheid 10079f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10080f126e068Smrg$as_echo "$supported" >&6; } 10081f126e068Smrg if test "$supported" = "yes" ; then 10082f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10083f126e068Smrg found="yes" 10084f126e068Smrg fi 10085f126e068Smrg fi 10086f126e068Smrg 10087f126e068Smrg 10088f126e068Smrg 10089f126e068Smrg 10090f126e068Smrg 10091f126e068Smrg 10092f126e068Smrg 10093f126e068Smrg 10094f126e068Smrg 10095f126e068Smrg 10096f126e068Smrg 10097f126e068Smrg 10098f126e068Smrg 10099f126e068Smrg 10100f126e068Smrg 10101f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10102f126e068Smrg 10103f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10104f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10105f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10106f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10107f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10108f126e068Smrg $as_echo_n "(cached) " >&6 10109f126e068Smrgelse 10110f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10111f126e068Smrg/* end confdefs.h. */ 10112f126e068Smrgint i; 10113f126e068Smrg_ACEOF 10114f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 10115f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10116f126e068Smrgelse 10117f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 10118f126e068Smrgfi 10119f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10120f126e068Smrgfi 10121f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10122f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10123f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10124f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10125f126e068Smrgfi 10126f126e068Smrg 10127f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10128f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10129f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10130f126e068Smrg fi 10131f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10132f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10133f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10134f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10135f126e068Smrg $as_echo_n "(cached) " >&6 10136f126e068Smrgelse 10137f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10138f126e068Smrg/* end confdefs.h. */ 10139f126e068Smrgint i; 10140f126e068Smrg_ACEOF 10141f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 10142f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10143f126e068Smrgelse 10144f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10145f126e068Smrgfi 10146f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10147f126e068Smrgfi 10148f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10149f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10150f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10151f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10152f126e068Smrgfi 10153f126e068Smrg 10154f126e068Smrgfound="no" 10155f126e068Smrg 10156f126e068Smrg if test $found = "no" ; then 10157f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10158f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10159f126e068Smrg fi 10160f126e068Smrg 10161f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10162f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10163f126e068Smrg fi 10164f126e068Smrg 10165f126e068Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10166f126e068Smrg 10167f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10168f126e068Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10169f126e068Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10170f126e068Smrg if eval \${$cacheid+:} false; then : 10171f126e068Smrg $as_echo_n "(cached) " >&6 10172f126e068Smrgelse 10173f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10174f126e068Smrg/* end confdefs.h. */ 10175f126e068Smrgint i; 10176f126e068Smrgint 10177f126e068Smrgmain () 10178f126e068Smrg{ 10179f126e068Smrg 10180f126e068Smrg ; 10181f126e068Smrg return 0; 10182f126e068Smrg} 10183f126e068Smrg_ACEOF 10184f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 10185f126e068Smrg eval $cacheid=yes 10186f126e068Smrgelse 10187f126e068Smrg eval $cacheid=no 10188f126e068Smrgfi 10189f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 10190f126e068Smrg conftest$ac_exeext conftest.$ac_ext 10191f126e068Smrgfi 10192f126e068Smrg 10193f126e068Smrg 10194f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10195f126e068Smrg 10196f126e068Smrg eval supported=\$$cacheid 10197f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10198f126e068Smrg$as_echo "$supported" >&6; } 10199f126e068Smrg if test "$supported" = "yes" ; then 10200f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10201f126e068Smrg found="yes" 10202f126e068Smrg fi 10203f126e068Smrg fi 10204f126e068Smrg 10205f126e068Smrg 10206f126e068Smrgfi 10207f126e068Smrg 10208f126e068Smrg 10209f126e068Smrg 10210f126e068Smrg 10211f126e068Smrg 10212f126e068Smrg 10213f126e068Smrg 10214f126e068Smrg CWARNFLAGS="$BASE_CFLAGS" 10215f126e068Smrg if test "x$GCC" = xyes ; then 10216f126e068Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10217f126e068Smrg fi 10218f126e068Smrg 10219f126e068Smrg 10220f126e068Smrg 10221f126e068Smrg 10222f126e068Smrg 10223f126e068Smrg 10224f126e068Smrg 10225f126e068Smrg 10226f126e068Smrg# Check whether --enable-strict-compilation was given. 10227f126e068Smrgif test "${enable_strict_compilation+set}" = set; then : 10228f126e068Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10229f126e068Smrgelse 10230f126e068Smrg STRICT_COMPILE=no 10231f126e068Smrgfi 10232f126e068Smrg 10233f126e068Smrg 10234f126e068Smrg 10235f126e068Smrg 10236f126e068Smrg 10237f126e068Smrg 10238f126e068SmrgSTRICT_CFLAGS="" 10239f126e068Smrg 10240f126e068Smrg 10241f126e068Smrg 10242f126e068Smrg 10243f126e068Smrg 10244f126e068Smrg 10245f126e068Smrg 10246f126e068Smrg 10247f126e068Smrg 10248f126e068Smrg 10249f126e068Smrg 10250f126e068Smrg 10251f126e068Smrg 10252f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10253f126e068Smrg 10254f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10255f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10256f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10257f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10258f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10259f126e068Smrg $as_echo_n "(cached) " >&6 10260f126e068Smrgelse 10261f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10262f126e068Smrg/* end confdefs.h. */ 10263f126e068Smrgint i; 10264f126e068Smrg_ACEOF 10265f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 10266f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10267f126e068Smrgelse 10268f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 10269f126e068Smrgfi 10270f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10271f126e068Smrgfi 10272f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10273f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10274f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10275f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10276f126e068Smrgfi 10277f126e068Smrg 10278f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10279f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10280f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10281f126e068Smrg fi 10282f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10283f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10284f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10285f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10286f126e068Smrg $as_echo_n "(cached) " >&6 10287f126e068Smrgelse 10288f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10289f126e068Smrg/* end confdefs.h. */ 10290f126e068Smrgint i; 10291f126e068Smrg_ACEOF 10292f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 10293f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10294f126e068Smrgelse 10295f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10296f126e068Smrgfi 10297f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10298f126e068Smrgfi 10299f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10300f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10301f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10302f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10303f126e068Smrgfi 10304f126e068Smrg 10305f126e068Smrgfound="no" 10306f126e068Smrg 10307f126e068Smrg if test $found = "no" ; then 10308f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10309f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10310f126e068Smrg fi 10311f126e068Smrg 10312f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10313f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10314f126e068Smrg fi 10315f126e068Smrg 10316f126e068Smrg CFLAGS="$CFLAGS -pedantic" 10317f126e068Smrg 10318f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10319f126e068Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10320f126e068Smrg cacheid=xorg_cv_cc_flag__pedantic 10321f126e068Smrg if eval \${$cacheid+:} false; then : 10322f126e068Smrg $as_echo_n "(cached) " >&6 10323f126e068Smrgelse 10324f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10325f126e068Smrg/* end confdefs.h. */ 10326f126e068Smrgint i; 10327f126e068Smrgint 10328f126e068Smrgmain () 10329f126e068Smrg{ 10330f126e068Smrg 10331f126e068Smrg ; 10332f126e068Smrg return 0; 10333f126e068Smrg} 10334f126e068Smrg_ACEOF 10335f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 10336f126e068Smrg eval $cacheid=yes 10337f126e068Smrgelse 10338f126e068Smrg eval $cacheid=no 10339f126e068Smrgfi 10340f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 10341f126e068Smrg conftest$ac_exeext conftest.$ac_ext 10342f126e068Smrgfi 10343f126e068Smrg 10344f126e068Smrg 10345f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10346f126e068Smrg 10347f126e068Smrg eval supported=\$$cacheid 10348f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10349f126e068Smrg$as_echo "$supported" >&6; } 10350f126e068Smrg if test "$supported" = "yes" ; then 10351f126e068Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10352f126e068Smrg found="yes" 10353f126e068Smrg fi 10354f126e068Smrg fi 10355f126e068Smrg 10356f126e068Smrg 10357f126e068Smrg 10358f126e068Smrg 10359f126e068Smrg 10360f126e068Smrg 10361f126e068Smrg 10362f126e068Smrg 10363f126e068Smrg 10364f126e068Smrg 10365f126e068Smrg 10366f126e068Smrg 10367f126e068Smrg 10368f126e068Smrg 10369f126e068Smrg 10370f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10371f126e068Smrg 10372f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10373f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10375f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10376f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10377f126e068Smrg $as_echo_n "(cached) " >&6 10378f126e068Smrgelse 10379f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10380f126e068Smrg/* end confdefs.h. */ 10381f126e068Smrgint i; 10382f126e068Smrg_ACEOF 10383f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 10384f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10385f126e068Smrgelse 10386f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 10387f126e068Smrgfi 10388f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10389f126e068Smrgfi 10390f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10391f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10392f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10393f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10394f126e068Smrgfi 10395f126e068Smrg 10396f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10397f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10398f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10399f126e068Smrg fi 10400f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10401f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10402f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10403f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10404f126e068Smrg $as_echo_n "(cached) " >&6 10405f126e068Smrgelse 10406f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10407f126e068Smrg/* end confdefs.h. */ 10408f126e068Smrgint i; 10409f126e068Smrg_ACEOF 10410f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 10411f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10412f126e068Smrgelse 10413f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10414f126e068Smrgfi 10415f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10416f126e068Smrgfi 10417f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10418f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10419f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10420f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10421f126e068Smrgfi 10422f126e068Smrg 10423f126e068Smrgfound="no" 10424f126e068Smrg 10425f126e068Smrg if test $found = "no" ; then 10426f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10427f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10428f126e068Smrg fi 10429f126e068Smrg 10430f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10431f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10432f126e068Smrg fi 10433f126e068Smrg 10434f126e068Smrg CFLAGS="$CFLAGS -Werror" 10435f126e068Smrg 10436f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10437f126e068Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; } 10438f126e068Smrg cacheid=xorg_cv_cc_flag__Werror 10439f126e068Smrg if eval \${$cacheid+:} false; then : 10440f126e068Smrg $as_echo_n "(cached) " >&6 10441f126e068Smrgelse 10442f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10443f126e068Smrg/* end confdefs.h. */ 10444f126e068Smrgint i; 10445f126e068Smrgint 10446f126e068Smrgmain () 10447f126e068Smrg{ 10448f126e068Smrg 10449f126e068Smrg ; 10450f126e068Smrg return 0; 10451f126e068Smrg} 10452f126e068Smrg_ACEOF 10453f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 10454f126e068Smrg eval $cacheid=yes 10455f126e068Smrgelse 10456f126e068Smrg eval $cacheid=no 10457f126e068Smrgfi 10458f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 10459f126e068Smrg conftest$ac_exeext conftest.$ac_ext 10460f126e068Smrgfi 10461f126e068Smrg 10462f126e068Smrg 10463f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10464f126e068Smrg 10465f126e068Smrg eval supported=\$$cacheid 10466f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10467f126e068Smrg$as_echo "$supported" >&6; } 10468f126e068Smrg if test "$supported" = "yes" ; then 10469f126e068Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10470f126e068Smrg found="yes" 10471f126e068Smrg fi 10472f126e068Smrg fi 10473f126e068Smrg 10474f126e068Smrg if test $found = "no" ; then 10475f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10476f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10477f126e068Smrg fi 10478f126e068Smrg 10479f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10480f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10481f126e068Smrg fi 10482f126e068Smrg 10483f126e068Smrg CFLAGS="$CFLAGS -errwarn" 10484f126e068Smrg 10485f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10486f126e068Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10487f126e068Smrg cacheid=xorg_cv_cc_flag__errwarn 10488f126e068Smrg if eval \${$cacheid+:} false; then : 10489f126e068Smrg $as_echo_n "(cached) " >&6 10490f126e068Smrgelse 10491f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10492f126e068Smrg/* end confdefs.h. */ 10493f126e068Smrgint i; 10494f126e068Smrgint 10495f126e068Smrgmain () 10496f126e068Smrg{ 10497f126e068Smrg 10498f126e068Smrg ; 10499f126e068Smrg return 0; 10500f126e068Smrg} 10501f126e068Smrg_ACEOF 10502f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 10503f126e068Smrg eval $cacheid=yes 10504f126e068Smrgelse 10505f126e068Smrg eval $cacheid=no 10506f126e068Smrgfi 10507f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 10508f126e068Smrg conftest$ac_exeext conftest.$ac_ext 10509f126e068Smrgfi 10510f126e068Smrg 10511f126e068Smrg 10512f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10513f126e068Smrg 10514f126e068Smrg eval supported=\$$cacheid 10515f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10516f126e068Smrg$as_echo "$supported" >&6; } 10517f126e068Smrg if test "$supported" = "yes" ; then 10518f126e068Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10519f126e068Smrg found="yes" 10520f126e068Smrg fi 10521f126e068Smrg fi 10522f126e068Smrg 10523f126e068Smrg 10524f126e068Smrg 10525f126e068Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10526f126e068Smrg# activate it with -Werror, so we add it here explicitly. 10527f126e068Smrg 10528f126e068Smrg 10529f126e068Smrg 10530f126e068Smrg 10531f126e068Smrg 10532f126e068Smrg 10533f126e068Smrg 10534f126e068Smrg 10535f126e068Smrg 10536f126e068Smrg 10537f126e068Smrg 10538f126e068Smrg 10539f126e068Smrg 10540f126e068Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10541f126e068Smrg 10542f126e068Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10543f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10544f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10545f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10546f126e068Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10547f126e068Smrg $as_echo_n "(cached) " >&6 10548f126e068Smrgelse 10549f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10550f126e068Smrg/* end confdefs.h. */ 10551f126e068Smrgint i; 10552f126e068Smrg_ACEOF 10553f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 10554f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10555f126e068Smrgelse 10556f126e068Smrg xorg_cv_cc_flag_unknown_warning_option=no 10557f126e068Smrgfi 10558f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10559f126e068Smrgfi 10560f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10561f126e068Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10562f126e068Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10563f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10564f126e068Smrgfi 10565f126e068Smrg 10566f126e068Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10567f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10568f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10569f126e068Smrg fi 10570f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10571f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10572f126e068Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10573f126e068Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10574f126e068Smrg $as_echo_n "(cached) " >&6 10575f126e068Smrgelse 10576f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10577f126e068Smrg/* end confdefs.h. */ 10578f126e068Smrgint i; 10579f126e068Smrg_ACEOF 10580f126e068Smrgif ac_fn_c_try_compile "$LINENO"; then : 10581f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10582f126e068Smrgelse 10583f126e068Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10584f126e068Smrgfi 10585f126e068Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10586f126e068Smrgfi 10587f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10588f126e068Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10589f126e068Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10590f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10591f126e068Smrgfi 10592f126e068Smrg 10593f126e068Smrgfound="no" 10594f126e068Smrg 10595f126e068Smrg if test $found = "no" ; then 10596f126e068Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10597f126e068Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10598f126e068Smrg fi 10599f126e068Smrg 10600f126e068Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10601f126e068Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10602f126e068Smrg fi 10603f126e068Smrg 10604f126e068Smrg CFLAGS="$CFLAGS -Werror=attributes" 10605f126e068Smrg 10606f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10607f126e068Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10608c74b14bdSmrg cacheid=xorg_cv_cc_flag__Werror_attributes 10609f126e068Smrg if eval \${$cacheid+:} false; then : 10610f126e068Smrg $as_echo_n "(cached) " >&6 10611f126e068Smrgelse 10612f126e068Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10613f126e068Smrg/* end confdefs.h. */ 10614f126e068Smrgint i; 10615f126e068Smrgint 10616f126e068Smrgmain () 10617f126e068Smrg{ 10618f126e068Smrg 10619f126e068Smrg ; 10620f126e068Smrg return 0; 10621f126e068Smrg} 10622f126e068Smrg_ACEOF 10623f126e068Smrgif ac_fn_c_try_link "$LINENO"; then : 10624f126e068Smrg eval $cacheid=yes 10625f126e068Smrgelse 10626f126e068Smrg eval $cacheid=no 10627f126e068Smrgfi 10628f126e068Smrgrm -f core conftest.err conftest.$ac_objext \ 10629f126e068Smrg conftest$ac_exeext conftest.$ac_ext 10630f126e068Smrgfi 10631f126e068Smrg 10632f126e068Smrg 10633f126e068Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10634f126e068Smrg 10635f126e068Smrg eval supported=\$$cacheid 10636f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10637f126e068Smrg$as_echo "$supported" >&6; } 10638f126e068Smrg if test "$supported" = "yes" ; then 10639f126e068Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10640f126e068Smrg found="yes" 10641f126e068Smrg fi 10642f126e068Smrg fi 10643f126e068Smrg 10644f126e068Smrg 10645f126e068Smrg 10646f126e068Smrgif test "x$STRICT_COMPILE" = "xyes"; then 10647f126e068Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10648f126e068Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10649f126e068Smrgfi 10650f126e068Smrg 10651f126e068Smrg 10652f126e068Smrg 10653f126e068Smrg 10654f126e068Smrg 10655f126e068Smrg 10656f126e068Smrgcat >>confdefs.h <<_ACEOF 10657f126e068Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10658f126e068Smrg_ACEOF 10659f126e068Smrg 10660f126e068Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10661f126e068Smrg if test "x$PVM" = "x"; then 10662f126e068Smrg PVM="0" 10663f126e068Smrg fi 10664f126e068Smrg 10665f126e068Smrgcat >>confdefs.h <<_ACEOF 10666f126e068Smrg#define PACKAGE_VERSION_MINOR $PVM 10667f126e068Smrg_ACEOF 10668f126e068Smrg 10669f126e068Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10670f126e068Smrg if test "x$PVP" = "x"; then 10671f126e068Smrg PVP="0" 10672f126e068Smrg fi 10673f126e068Smrg 10674f126e068Smrgcat >>confdefs.h <<_ACEOF 10675f126e068Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 10676f126e068Smrg_ACEOF 10677f126e068Smrg 10678f126e068Smrg 10679f126e068Smrg 10680f126e068SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10681f126e068Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10682f126e068Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10683f126e068Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 10684f126e068Smrg 10685f126e068Smrg 10686f126e068Smrg 10687f126e068Smrg 10688f126e068Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10689f126e068SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10690f126e068Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10691f126e068Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10692f126e068Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10693f126e068Smrg 10694f126e068Smrg 10695f126e068Smrg 10696f126e068Smrg 10697f126e068Smrg 10698f126e068Smrg 10699f126e068Smrgif test x$APP_MAN_SUFFIX = x ; then 10700f126e068Smrg APP_MAN_SUFFIX=1 10701f126e068Smrgfi 10702f126e068Smrgif test x$APP_MAN_DIR = x ; then 10703f126e068Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10704f126e068Smrgfi 10705f126e068Smrg 10706f126e068Smrgif test x$LIB_MAN_SUFFIX = x ; then 10707f126e068Smrg LIB_MAN_SUFFIX=3 10708f126e068Smrgfi 10709f126e068Smrgif test x$LIB_MAN_DIR = x ; then 10710f126e068Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10711f126e068Smrgfi 10712f126e068Smrg 10713f126e068Smrgif test x$FILE_MAN_SUFFIX = x ; then 10714f126e068Smrg case $host_os in 10715c74b14bdSmrg # Solaris 2.0 - 11 use SysV man page sections 10716c74b14bdSmrg solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10717c74b14bdSmrg *) FILE_MAN_SUFFIX=5 ;; 10718f126e068Smrg esac 10719f126e068Smrgfi 10720f126e068Smrgif test x$FILE_MAN_DIR = x ; then 10721f126e068Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10722f126e068Smrgfi 10723f126e068Smrg 10724f126e068Smrgif test x$MISC_MAN_SUFFIX = x ; then 10725f126e068Smrg case $host_os in 10726c74b14bdSmrg # Solaris 2.0 - 11 use SysV man page sections 10727c74b14bdSmrg solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10728c74b14bdSmrg *) MISC_MAN_SUFFIX=7 ;; 10729f126e068Smrg esac 10730f126e068Smrgfi 10731f126e068Smrgif test x$MISC_MAN_DIR = x ; then 10732f126e068Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10733f126e068Smrgfi 10734f126e068Smrg 10735f126e068Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 10736f126e068Smrg case $host_os in 10737c74b14bdSmrg # Solaris 2.0 - 11 use SysV man page sections 10738c74b14bdSmrg solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10739c74b14bdSmrg *) DRIVER_MAN_SUFFIX=4 ;; 10740f126e068Smrg esac 10741f126e068Smrgfi 10742f126e068Smrgif test x$DRIVER_MAN_DIR = x ; then 10743f126e068Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10744f126e068Smrgfi 10745f126e068Smrg 10746f126e068Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 10747f126e068Smrg case $host_os in 10748c74b14bdSmrg # Solaris 2.0 - 11 use SysV man page sections 10749c74b14bdSmrg solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10750c74b14bdSmrg *) ADMIN_MAN_SUFFIX=8 ;; 10751f126e068Smrg esac 10752f126e068Smrgfi 10753f126e068Smrgif test x$ADMIN_MAN_DIR = x ; then 10754f126e068Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10755f126e068Smrgfi 10756f126e068Smrg 10757f126e068Smrg 10758f126e068Smrg 10759f126e068Smrg 10760f126e068Smrg 10761f126e068Smrg 10762f126e068Smrg 10763f126e068Smrg 10764f126e068Smrg 10765f126e068Smrg 10766f126e068Smrg 10767f126e068Smrg 10768f126e068Smrg 10769f126e068Smrg 10770f126e068Smrg 10771f126e068SmrgXORG_MAN_PAGE="X Version 11" 10772f126e068Smrg 10773f126e068SmrgMAN_SUBSTS="\ 107745bd32fd1Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 107755bd32fd1Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 107765bd32fd1Smrg -e 's|__xservername__|Xorg|g' \ 107775bd32fd1Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 107785bd32fd1Smrg -e 's|__projectroot__|\$(prefix)|g' \ 107795bd32fd1Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 107805bd32fd1Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 107815bd32fd1Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 107825bd32fd1Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 107835bd32fd1Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 107845bd32fd1Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 107855bd32fd1Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1078696a81b41Smrg 1078796a81b41Smrg 1078896a81b41Smrg 107895bd32fd1Smrg# Check whether --enable-silent-rules was given. 107905bd32fd1Smrgif test "${enable_silent_rules+set}" = set; then : 107915bd32fd1Smrg enableval=$enable_silent_rules; 107925bd32fd1Smrgfi 1079396a81b41Smrg 10794f126e068Smrgcase $enable_silent_rules in # ((( 10795f126e068Smrg yes) AM_DEFAULT_VERBOSITY=0;; 10796f126e068Smrg no) AM_DEFAULT_VERBOSITY=1;; 10797f126e068Smrg *) AM_DEFAULT_VERBOSITY=0;; 1079896a81b41Smrgesac 10799f126e068Smrgam_make=${MAKE-make} 10800f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10801f126e068Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10802f126e068Smrgif ${am_cv_make_support_nested_variables+:} false; then : 10803f126e068Smrg $as_echo_n "(cached) " >&6 10804f126e068Smrgelse 10805f126e068Smrg if $as_echo 'TRUE=$(BAR$(V)) 10806f126e068SmrgBAR0=false 10807f126e068SmrgBAR1=true 10808f126e068SmrgV=1 10809f126e068Smrgam__doit: 10810f126e068Smrg @$(TRUE) 10811f126e068Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10812f126e068Smrg am_cv_make_support_nested_variables=yes 10813f126e068Smrgelse 10814f126e068Smrg am_cv_make_support_nested_variables=no 10815f126e068Smrgfi 10816f126e068Smrgfi 10817f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10818f126e068Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 10819f126e068Smrgif test $am_cv_make_support_nested_variables = yes; then 10820f126e068Smrg AM_V='$(V)' 10821f126e068Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10822f126e068Smrgelse 10823f126e068Smrg AM_V=$AM_DEFAULT_VERBOSITY 10824f126e068Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10825f126e068Smrgfi 108265bd32fd1SmrgAM_BACKSLASH='\' 1082796a81b41Smrg 1082896a81b41Smrg 1082996a81b41Smrg 10830c74b14bdSmrgfor ac_func in mkstemp asprintf reallocarray 10831d13010c3Smrgdo : 10832d13010c3Smrg as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10833d13010c3Smrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10834d13010c3Smrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10835d13010c3Smrg cat >>confdefs.h <<_ACEOF 10836d13010c3Smrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10837d13010c3Smrg_ACEOF 1083896a81b41Smrg 1083996a81b41Smrgfi 10840d13010c3Smrgdone 1084196a81b41Smrg 1084296a81b41Smrg 1084396a81b41Smrg# Find MAXHOSTNAMELEN definition 1084496a81b41Smrg# Common hidey holes: 1084596a81b41Smrg# BSD & Linux - <sys/param.h> 1084696a81b41Smrg# Solaris - <netdb.h> 1084796a81b41Smrg 108485bd32fd1Smrgac_fn_c_check_decl "$LINENO" "MAXHOSTNAMELEN" "ac_cv_have_decl_MAXHOSTNAMELEN" "$ac_includes_default" 108495bd32fd1Smrgif test "x$ac_cv_have_decl_MAXHOSTNAMELEN" = xyes; then : 1085096a81b41Smrg FOUND_MAXHOSTNAMELEN=yes 1085196a81b41Smrgfi 1085296a81b41Smrg 1085396a81b41Smrg 1085496a81b41Smrgif test x$FOUND_MAXHOSTNAMELEN != xyes ; then 108555bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header that defines MAXHOSTNAMELEN" >&5 1085696a81b41Smrg$as_echo_n "checking for header that defines MAXHOSTNAMELEN... " >&6; } 1085796a81b41Smrg 1085896a81b41Smrg FOUND_MAXHOSTNAMELEN='not found' 1085996a81b41Smrg 108605bd32fd1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1086196a81b41Smrg/* end confdefs.h. */ 1086296a81b41Smrg#include <sys/param.h> 1086396a81b41Smrgint 1086496a81b41Smrgmain () 1086596a81b41Smrg{ 1086696a81b41Smrgint h = MAXHOSTNAMELEN; 1086796a81b41Smrg ; 1086896a81b41Smrg return 0; 1086996a81b41Smrg} 1087096a81b41Smrg_ACEOF 108715bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then : 1087296a81b41Smrg FOUND_MAXHOSTNAMELEN='sys/param.h' 1087396a81b41Smrg 108745bd32fd1Smrg$as_echo "#define NEED_SYS_PARAM_H 1" >>confdefs.h 1087596a81b41Smrg 1087696a81b41Smrgfi 1087796a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1087896a81b41Smrg 108795bd32fd1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1088096a81b41Smrg/* end confdefs.h. */ 1088196a81b41Smrg#include <netdb.h> 1088296a81b41Smrgint 1088396a81b41Smrgmain () 1088496a81b41Smrg{ 1088596a81b41Smrgint h = MAXHOSTNAMELEN; 1088696a81b41Smrg ; 1088796a81b41Smrg return 0; 1088896a81b41Smrg} 1088996a81b41Smrg_ACEOF 108905bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then : 1089196a81b41Smrg FOUND_MAXHOSTNAMELEN='netdb.h' 1089296a81b41Smrg 108935bd32fd1Smrg$as_echo "#define NEED_NETDB_H 1" >>confdefs.h 1089496a81b41Smrg 1089596a81b41Smrgfi 1089696a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1089796a81b41Smrg 108985bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_MAXHOSTNAMELEN" >&5 1089996a81b41Smrg$as_echo "$FOUND_MAXHOSTNAMELEN" >&6; } 1090096a81b41Smrgfi 1090196a81b41Smrg 1090296a81b41Smrg# xrdb needs to know where to find cpp at runtime - previously set as CppCmd 1090396a81b41Smrg# in Imake config files for each OS 1090496a81b41Smrg 1090596a81b41Smrg# Check whether --with-cpp was given. 109065bd32fd1Smrgif test "${with_cpp+set}" = set; then : 109075bd32fd1Smrg withval=$with_cpp; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpp" >&5 1090896a81b41Smrg$as_echo_n "checking for cpp... " >&6; } 1090996a81b41Smrg CPP_PATH=$withval 109105bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-cpp specified $CPP_PATH" >&5 1091196a81b41Smrg$as_echo "--with-cpp specified $CPP_PATH" >&6; } 1091296a81b41Smrgelse 1091396a81b41Smrg # Extract the first word of "cpp", so it can be a program name with args. 109148b22bf3fSmrgset dummy cpp; ac_word=$2 109155bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1091696a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; } 109175bd32fd1Smrgif ${ac_cv_path_CPP_PATH+:} false; then : 1091896a81b41Smrg $as_echo_n "(cached) " >&6 109198b22bf3fSmrgelse 109208b22bf3fSmrg case $CPP_PATH in 109218b22bf3fSmrg [\\/]* | ?:[\\/]*) 109228b22bf3fSmrg ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path. 109238b22bf3fSmrg ;; 109248b22bf3fSmrg *) 109258b22bf3fSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 109268b22bf3fSmrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 109278b22bf3fSmrgfor as_dir in $as_dummy 109288b22bf3fSmrgdo 109298b22bf3fSmrg IFS=$as_save_IFS 109308b22bf3fSmrg test -z "$as_dir" && as_dir=. 109315bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 10932c74b14bdSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 109338b22bf3fSmrg ac_cv_path_CPP_PATH="$as_dir/$ac_word$ac_exec_ext" 109345bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 109358b22bf3fSmrg break 2 109368b22bf3fSmrg fi 109378b22bf3fSmrgdone 109385bd32fd1Smrg done 109398b22bf3fSmrgIFS=$as_save_IFS 109408b22bf3fSmrg 109418b22bf3fSmrg test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="cpp" 109428b22bf3fSmrg ;; 109438b22bf3fSmrgesac 109448b22bf3fSmrgfi 109458b22bf3fSmrgCPP_PATH=$ac_cv_path_CPP_PATH 109468b22bf3fSmrgif test -n "$CPP_PATH"; then 109475bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_PATH" >&5 1094896a81b41Smrg$as_echo "$CPP_PATH" >&6; } 109498b22bf3fSmrgelse 109505bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1095196a81b41Smrg$as_echo "no" >&6; } 109525bd32fd1Smrgfi 109535bd32fd1Smrg 109548b22bf3fSmrg 109558b22bf3fSmrgfi 109568b22bf3fSmrg 109575bd32fd1SmrgCPP_PATH=`echo ${CPP_PATH} | sed 's/,/\\",\\"/g'` 109585bd32fd1Smrg 109595bd32fd1Smrgcat >>confdefs.h <<_ACEOF 109605bd32fd1Smrg#define CPP "$CPP_PATH" 109615bd32fd1Smrg_ACEOF 109625bd32fd1Smrg 109635bd32fd1Smrg 109645bd32fd1Smrg# Checks for pkg-config packages 109655bd32fd1Smrg 1096696a81b41Smrgpkg_failed=no 109675bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRDB" >&5 1096896a81b41Smrg$as_echo_n "checking for XRDB... " >&6; } 1096996a81b41Smrg 1097096a81b41Smrgif test -n "$XRDB_CFLAGS"; then 1097196a81b41Smrg pkg_cv_XRDB_CFLAGS="$XRDB_CFLAGS" 1097296a81b41Smrg elif test -n "$PKG_CONFIG"; then 1097396a81b41Smrg if test -n "$PKG_CONFIG" && \ 10974c74b14bdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xproto >= 7.0.25\""; } >&5 10975c74b14bdSmrg ($PKG_CONFIG --exists --print-errors "xmuu x11 xproto >= 7.0.25") 2>&5 1097696a81b41Smrg ac_status=$? 109775bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 109785bd32fd1Smrg test $ac_status = 0; }; then 10979c74b14bdSmrg pkg_cv_XRDB_CFLAGS=`$PKG_CONFIG --cflags "xmuu x11 xproto >= 7.0.25" 2>/dev/null` 10980c74b14bdSmrg test "x$?" != "x0" && pkg_failed=yes 1098196a81b41Smrgelse 1098296a81b41Smrg pkg_failed=yes 109838b22bf3fSmrgfi 1098496a81b41Smrg else 1098596a81b41Smrg pkg_failed=untried 109868b22bf3fSmrgfi 1098796a81b41Smrgif test -n "$XRDB_LIBS"; then 1098896a81b41Smrg pkg_cv_XRDB_LIBS="$XRDB_LIBS" 1098996a81b41Smrg elif test -n "$PKG_CONFIG"; then 1099096a81b41Smrg if test -n "$PKG_CONFIG" && \ 10991c74b14bdSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xproto >= 7.0.25\""; } >&5 10992c74b14bdSmrg ($PKG_CONFIG --exists --print-errors "xmuu x11 xproto >= 7.0.25") 2>&5 1099396a81b41Smrg ac_status=$? 109945bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 109955bd32fd1Smrg test $ac_status = 0; }; then 10996c74b14bdSmrg pkg_cv_XRDB_LIBS=`$PKG_CONFIG --libs "xmuu x11 xproto >= 7.0.25" 2>/dev/null` 10997c74b14bdSmrg test "x$?" != "x0" && pkg_failed=yes 1099896a81b41Smrgelse 1099996a81b41Smrg pkg_failed=yes 110008b22bf3fSmrgfi 1100196a81b41Smrg else 1100296a81b41Smrg pkg_failed=untried 110038b22bf3fSmrgfi 110048b22bf3fSmrg 110058b22bf3fSmrg 110068b22bf3fSmrg 1100796a81b41Smrgif test $pkg_failed = yes; then 11008c74b14bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11009c74b14bdSmrg$as_echo "no" >&6; } 110108b22bf3fSmrg 1101196a81b41Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 1101296a81b41Smrg _pkg_short_errors_supported=yes 1101396a81b41Smrgelse 1101496a81b41Smrg _pkg_short_errors_supported=no 1101596a81b41Smrgfi 1101696a81b41Smrg if test $_pkg_short_errors_supported = yes; then 11017c74b14bdSmrg XRDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmuu x11 xproto >= 7.0.25" 2>&1` 1101896a81b41Smrg else 11019c74b14bdSmrg XRDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu x11 xproto >= 7.0.25" 2>&1` 1102096a81b41Smrg fi 1102196a81b41Smrg # Put the nasty error message in config.log where it belongs 1102296a81b41Smrg echo "$XRDB_PKG_ERRORS" >&5 110238b22bf3fSmrg 11024c74b14bdSmrg as_fn_error $? "Package requirements (xmuu x11 xproto >= 7.0.25) were not met: 110258b22bf3fSmrg 1102696a81b41Smrg$XRDB_PKG_ERRORS 110278b22bf3fSmrg 1102896a81b41SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 1102996a81b41Smrginstalled software in a non-standard prefix. 110308b22bf3fSmrg 1103196a81b41SmrgAlternatively, you may set the environment variables XRDB_CFLAGS 1103296a81b41Smrgand XRDB_LIBS to avoid the need to call pkg-config. 11033c74b14bdSmrgSee the pkg-config man page for more details." "$LINENO" 5 1103496a81b41Smrgelif test $pkg_failed = untried; then 11035c74b14bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11036c74b14bdSmrg$as_echo "no" >&6; } 110375bd32fd1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1103896a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 110395bd32fd1Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 1104096a81b41Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 1104196a81b41Smrgpath to pkg-config. 110428b22bf3fSmrg 1104396a81b41SmrgAlternatively, you may set the environment variables XRDB_CFLAGS 1104496a81b41Smrgand XRDB_LIBS to avoid the need to call pkg-config. 1104596a81b41SmrgSee the pkg-config man page for more details. 110468b22bf3fSmrg 1104796a81b41SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 110485bd32fd1SmrgSee \`config.log' for more details" "$LINENO" 5; } 110498b22bf3fSmrgelse 1105096a81b41Smrg XRDB_CFLAGS=$pkg_cv_XRDB_CFLAGS 1105196a81b41Smrg XRDB_LIBS=$pkg_cv_XRDB_LIBS 110525bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 1105396a81b41Smrg$as_echo "yes" >&6; } 11054c74b14bdSmrg 110558b22bf3fSmrgfi 110568b22bf3fSmrg 11057d13010c3Smrgac_config_files="$ac_config_files Makefile man/Makefile" 110588b22bf3fSmrg 110598b22bf3fSmrgcat >confcache <<\_ACEOF 110608b22bf3fSmrg# This file is a shell script that caches the results of configure 110618b22bf3fSmrg# tests run on this system so they can be shared between configure 110628b22bf3fSmrg# scripts and configure runs, see configure's option --config-cache. 110638b22bf3fSmrg# It is not useful on other systems. If it contains results you don't 110648b22bf3fSmrg# want to keep, you may remove or edit it. 110658b22bf3fSmrg# 110668b22bf3fSmrg# config.status only pays attention to the cache file if you give it 110678b22bf3fSmrg# the --recheck option to rerun configure. 110688b22bf3fSmrg# 110698b22bf3fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 110708b22bf3fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 110718b22bf3fSmrg# following values. 110728b22bf3fSmrg 110738b22bf3fSmrg_ACEOF 110748b22bf3fSmrg 110758b22bf3fSmrg# The following way of writing the cache mishandles newlines in values, 110768b22bf3fSmrg# but we know of no workaround that is simple, portable, and efficient. 110778b22bf3fSmrg# So, we kill variables containing newlines. 110788b22bf3fSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 110798b22bf3fSmrg# and sets the high bit in the cache file unless we assign to the vars. 110808b22bf3fSmrg( 110818b22bf3fSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 110828b22bf3fSmrg eval ac_val=\$$ac_var 110838b22bf3fSmrg case $ac_val in #( 110848b22bf3fSmrg *${as_nl}*) 110858b22bf3fSmrg case $ac_var in #( 110865bd32fd1Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1108796a81b41Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 110888b22bf3fSmrg esac 110898b22bf3fSmrg case $ac_var in #( 110908b22bf3fSmrg _ | IFS | as_nl) ;; #( 1109196a81b41Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 110925bd32fd1Smrg *) { eval $ac_var=; unset $ac_var;} ;; 110938b22bf3fSmrg esac ;; 110948b22bf3fSmrg esac 110958b22bf3fSmrg done 110968b22bf3fSmrg 110978b22bf3fSmrg (set) 2>&1 | 110988b22bf3fSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 110998b22bf3fSmrg *${as_nl}ac_space=\ *) 111005bd32fd1Smrg # `set' does not quote correctly, so add quotes: double-quote 111015bd32fd1Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 111028b22bf3fSmrg sed -n \ 111038b22bf3fSmrg "s/'/'\\\\''/g; 111048b22bf3fSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 111058b22bf3fSmrg ;; #( 111068b22bf3fSmrg *) 111078b22bf3fSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 111088b22bf3fSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 111098b22bf3fSmrg ;; 111108b22bf3fSmrg esac | 111118b22bf3fSmrg sort 111128b22bf3fSmrg) | 111138b22bf3fSmrg sed ' 111148b22bf3fSmrg /^ac_cv_env_/b end 111158b22bf3fSmrg t clear 111168b22bf3fSmrg :clear 111178b22bf3fSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 111188b22bf3fSmrg t end 111198b22bf3fSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 111208b22bf3fSmrg :end' >>confcache 111218b22bf3fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 111228b22bf3fSmrg if test -w "$cache_file"; then 111235bd32fd1Smrg if test "x$cache_file" != "x/dev/null"; then 111245bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 1112596a81b41Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 111265bd32fd1Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 111275bd32fd1Smrg cat confcache >"$cache_file" 111285bd32fd1Smrg else 111295bd32fd1Smrg case $cache_file in #( 111305bd32fd1Smrg */* | ?:*) 111315bd32fd1Smrg mv -f confcache "$cache_file"$$ && 111325bd32fd1Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 111335bd32fd1Smrg *) 111345bd32fd1Smrg mv -f confcache "$cache_file" ;; 111355bd32fd1Smrg esac 111365bd32fd1Smrg fi 111375bd32fd1Smrg fi 111388b22bf3fSmrg else 111395bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 1114096a81b41Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 111418b22bf3fSmrg fi 111428b22bf3fSmrgfi 111438b22bf3fSmrgrm -f confcache 111448b22bf3fSmrg 111458b22bf3fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 111468b22bf3fSmrg# Let make expand exec_prefix. 111478b22bf3fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 111488b22bf3fSmrg 111498b22bf3fSmrgDEFS=-DHAVE_CONFIG_H 111508b22bf3fSmrg 111518b22bf3fSmrgac_libobjs= 111528b22bf3fSmrgac_ltlibobjs= 111535bd32fd1SmrgU= 111548b22bf3fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 111558b22bf3fSmrg # 1. Remove the extension, and $U if already installed. 111568b22bf3fSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 1115796a81b41Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 111588b22bf3fSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 111598b22bf3fSmrg # will be set to the directory where LIBOBJS objects are built. 111605bd32fd1Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 111615bd32fd1Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 111628b22bf3fSmrgdone 111638b22bf3fSmrgLIBOBJS=$ac_libobjs 111648b22bf3fSmrg 111658b22bf3fSmrgLTLIBOBJS=$ac_ltlibobjs 111668b22bf3fSmrg 111678b22bf3fSmrg 11168f126e068Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11169f126e068Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; } 11170f126e068Smrg if test -n "$am_sleep_pid"; then 11171f126e068Smrg # Hide warnings about reused PIDs. 11172f126e068Smrg wait $am_sleep_pid 2>/dev/null 11173f126e068Smrg fi 11174f126e068Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11175f126e068Smrg$as_echo "done" >&6; } 11176d13010c3Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11177d13010c3Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 11178d13010c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11179d13010c3Smrgfi 11180d13010c3Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11181d13010c3Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11182d13010c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11183d13010c3Smrgfi 1118496a81b41Smrg if test -n "$EXEEXT"; then 1118596a81b41Smrg am__EXEEXT_TRUE= 1118696a81b41Smrg am__EXEEXT_FALSE='#' 1118796a81b41Smrgelse 1118896a81b41Smrg am__EXEEXT_TRUE='#' 1118996a81b41Smrg am__EXEEXT_FALSE= 1119096a81b41Smrgfi 1119196a81b41Smrg 111928b22bf3fSmrg 111935bd32fd1Smrg: "${CONFIG_STATUS=./config.status}" 1119496a81b41Smrgac_write_fail=0 111958b22bf3fSmrgac_clean_files_save=$ac_clean_files 111968b22bf3fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 111975bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 1119896a81b41Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 111995bd32fd1Smrgas_write_fail=0 112005bd32fd1Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 112018b22bf3fSmrg#! $SHELL 112028b22bf3fSmrg# Generated by $as_me. 112038b22bf3fSmrg# Run this file to recreate the current configuration. 112048b22bf3fSmrg# Compiler output produced by configure, useful for debugging 112058b22bf3fSmrg# configure, is in config.log if it exists. 112068b22bf3fSmrg 112078b22bf3fSmrgdebug=false 112088b22bf3fSmrgac_cs_recheck=false 112098b22bf3fSmrgac_cs_silent=false 112108b22bf3fSmrg 112115bd32fd1SmrgSHELL=\${CONFIG_SHELL-$SHELL} 112125bd32fd1Smrgexport SHELL 112135bd32fd1Smrg_ASEOF 112145bd32fd1Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 112155bd32fd1Smrg## -------------------- ## 112165bd32fd1Smrg## M4sh Initialization. ## 112175bd32fd1Smrg## -------------------- ## 112188b22bf3fSmrg 112198b22bf3fSmrg# Be more Bourne compatible 112208b22bf3fSmrgDUALCASE=1; export DUALCASE # for MKS sh 112215bd32fd1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 112228b22bf3fSmrg emulate sh 112238b22bf3fSmrg NULLCMD=: 1122496a81b41Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 112258b22bf3fSmrg # is contrary to our usage. Disable this feature. 112268b22bf3fSmrg alias -g '${1+"$@"}'='"$@"' 112278b22bf3fSmrg setopt NO_GLOB_SUBST 112288b22bf3fSmrgelse 112295bd32fd1Smrg case `(set -o) 2>/dev/null` in #( 112305bd32fd1Smrg *posix*) : 112315bd32fd1Smrg set -o posix ;; #( 112325bd32fd1Smrg *) : 112335bd32fd1Smrg ;; 112348b22bf3fSmrgesac 112358b22bf3fSmrgfi 112368b22bf3fSmrg 112378b22bf3fSmrg 1123896a81b41Smrgas_nl=' 1123996a81b41Smrg' 1124096a81b41Smrgexport as_nl 1124196a81b41Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 1124296a81b41Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1124396a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 1124496a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 112455bd32fd1Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 112465bd32fd1Smrg# but without wasting forks for bash or zsh. 112475bd32fd1Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 112485bd32fd1Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 112495bd32fd1Smrg as_echo='print -r --' 112505bd32fd1Smrg as_echo_n='print -rn --' 112515bd32fd1Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 1125296a81b41Smrg as_echo='printf %s\n' 1125396a81b41Smrg as_echo_n='printf %s' 1125496a81b41Smrgelse 1125596a81b41Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 1125696a81b41Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 1125796a81b41Smrg as_echo_n='/usr/ucb/echo -n' 112588b22bf3fSmrg else 1125996a81b41Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 1126096a81b41Smrg as_echo_n_body='eval 1126196a81b41Smrg arg=$1; 112625bd32fd1Smrg case $arg in #( 1126396a81b41Smrg *"$as_nl"*) 1126496a81b41Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 1126596a81b41Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 1126696a81b41Smrg esac; 1126796a81b41Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 1126896a81b41Smrg ' 1126996a81b41Smrg export as_echo_n_body 1127096a81b41Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 112718b22bf3fSmrg fi 1127296a81b41Smrg export as_echo_body 1127396a81b41Smrg as_echo='sh -c $as_echo_body as_echo' 1127496a81b41Smrgfi 1127596a81b41Smrg 1127696a81b41Smrg# The user is always right. 1127796a81b41Smrgif test "${PATH_SEPARATOR+set}" != set; then 1127896a81b41Smrg PATH_SEPARATOR=: 1127996a81b41Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 1128096a81b41Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 1128196a81b41Smrg PATH_SEPARATOR=';' 1128296a81b41Smrg } 112838b22bf3fSmrgfi 112848b22bf3fSmrg 112858b22bf3fSmrg 112868b22bf3fSmrg# IFS 112878b22bf3fSmrg# We need space, tab and new line, in precisely that order. Quoting is 112888b22bf3fSmrg# there to prevent editors from complaining about space-tab. 112898b22bf3fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 112908b22bf3fSmrg# splitting by setting IFS to empty value.) 112918b22bf3fSmrgIFS=" "" $as_nl" 112928b22bf3fSmrg 112938b22bf3fSmrg# Find who we are. Look in the path if we contain no directory separator. 112945bd32fd1Smrgas_myself= 112955bd32fd1Smrgcase $0 in #(( 112968b22bf3fSmrg *[\\/]* ) as_myself=$0 ;; 112978b22bf3fSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112988b22bf3fSmrgfor as_dir in $PATH 112998b22bf3fSmrgdo 113008b22bf3fSmrg IFS=$as_save_IFS 113018b22bf3fSmrg test -z "$as_dir" && as_dir=. 113025bd32fd1Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 113035bd32fd1Smrg done 113048b22bf3fSmrgIFS=$as_save_IFS 113058b22bf3fSmrg 113068b22bf3fSmrg ;; 113078b22bf3fSmrgesac 113088b22bf3fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 113098b22bf3fSmrg# in which case we are not to be found in the path. 113108b22bf3fSmrgif test "x$as_myself" = x; then 113118b22bf3fSmrg as_myself=$0 113128b22bf3fSmrgfi 113138b22bf3fSmrgif test ! -f "$as_myself"; then 1131496a81b41Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113155bd32fd1Smrg exit 1 113168b22bf3fSmrgfi 113178b22bf3fSmrg 113185bd32fd1Smrg# Unset variables that we do not need and which cause bugs (e.g. in 113195bd32fd1Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 113205bd32fd1Smrg# suppresses any "Segmentation fault" message there. '((' could 113215bd32fd1Smrg# trigger a bug in pdksh 5.2.14. 113225bd32fd1Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 113235bd32fd1Smrgdo eval test x\${$as_var+set} = xset \ 113245bd32fd1Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 113258b22bf3fSmrgdone 113268b22bf3fSmrgPS1='$ ' 113278b22bf3fSmrgPS2='> ' 113288b22bf3fSmrgPS4='+ ' 113298b22bf3fSmrg 113308b22bf3fSmrg# NLS nuisances. 1133196a81b41SmrgLC_ALL=C 1133296a81b41Smrgexport LC_ALL 1133396a81b41SmrgLANGUAGE=C 1133496a81b41Smrgexport LANGUAGE 113358b22bf3fSmrg 113365bd32fd1Smrg# CDPATH. 113375bd32fd1Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 113385bd32fd1Smrg 113395bd32fd1Smrg 113405bd32fd1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 113415bd32fd1Smrg# ---------------------------------------- 113425bd32fd1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 113435bd32fd1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 113445bd32fd1Smrg# script with STATUS, using 1 if that was 0. 113455bd32fd1Smrgas_fn_error () 113465bd32fd1Smrg{ 113475bd32fd1Smrg as_status=$1; test $as_status -eq 0 && as_status=1 113485bd32fd1Smrg if test "$4"; then 113495bd32fd1Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 113505bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 113515bd32fd1Smrg fi 113525bd32fd1Smrg $as_echo "$as_me: error: $2" >&2 113535bd32fd1Smrg as_fn_exit $as_status 113545bd32fd1Smrg} # as_fn_error 113555bd32fd1Smrg 113565bd32fd1Smrg 113575bd32fd1Smrg# as_fn_set_status STATUS 113585bd32fd1Smrg# ----------------------- 113595bd32fd1Smrg# Set $? to STATUS, without forking. 113605bd32fd1Smrgas_fn_set_status () 113615bd32fd1Smrg{ 113625bd32fd1Smrg return $1 113635bd32fd1Smrg} # as_fn_set_status 113645bd32fd1Smrg 113655bd32fd1Smrg# as_fn_exit STATUS 113665bd32fd1Smrg# ----------------- 113675bd32fd1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 113685bd32fd1Smrgas_fn_exit () 113695bd32fd1Smrg{ 113705bd32fd1Smrg set +e 113715bd32fd1Smrg as_fn_set_status $1 113725bd32fd1Smrg exit $1 113735bd32fd1Smrg} # as_fn_exit 113745bd32fd1Smrg 113755bd32fd1Smrg# as_fn_unset VAR 113765bd32fd1Smrg# --------------- 113775bd32fd1Smrg# Portably unset VAR. 113785bd32fd1Smrgas_fn_unset () 113795bd32fd1Smrg{ 113805bd32fd1Smrg { eval $1=; unset $1;} 113815bd32fd1Smrg} 113825bd32fd1Smrgas_unset=as_fn_unset 113835bd32fd1Smrg# as_fn_append VAR VALUE 113845bd32fd1Smrg# ---------------------- 113855bd32fd1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 113865bd32fd1Smrg# advantage of any shell optimizations that allow amortized linear growth over 113875bd32fd1Smrg# repeated appends, instead of the typical quadratic growth present in naive 113885bd32fd1Smrg# implementations. 113895bd32fd1Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 113905bd32fd1Smrg eval 'as_fn_append () 113915bd32fd1Smrg { 113925bd32fd1Smrg eval $1+=\$2 113935bd32fd1Smrg }' 113945bd32fd1Smrgelse 113955bd32fd1Smrg as_fn_append () 113965bd32fd1Smrg { 113975bd32fd1Smrg eval $1=\$$1\$2 113985bd32fd1Smrg } 113995bd32fd1Smrgfi # as_fn_append 114005bd32fd1Smrg 114015bd32fd1Smrg# as_fn_arith ARG... 114025bd32fd1Smrg# ------------------ 114035bd32fd1Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 114045bd32fd1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 114055bd32fd1Smrg# must be portable across $(()) and expr. 114065bd32fd1Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 114075bd32fd1Smrg eval 'as_fn_arith () 114085bd32fd1Smrg { 114095bd32fd1Smrg as_val=$(( $* )) 114105bd32fd1Smrg }' 114115bd32fd1Smrgelse 114125bd32fd1Smrg as_fn_arith () 114135bd32fd1Smrg { 114145bd32fd1Smrg as_val=`expr "$@" || test $? -eq 1` 114155bd32fd1Smrg } 114165bd32fd1Smrgfi # as_fn_arith 114175bd32fd1Smrg 114185bd32fd1Smrg 114198b22bf3fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 114208b22bf3fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 114218b22bf3fSmrg as_expr=expr 114228b22bf3fSmrgelse 114238b22bf3fSmrg as_expr=false 114248b22bf3fSmrgfi 114258b22bf3fSmrg 114268b22bf3fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 114278b22bf3fSmrg as_basename=basename 114288b22bf3fSmrgelse 114298b22bf3fSmrg as_basename=false 114308b22bf3fSmrgfi 114318b22bf3fSmrg 114325bd32fd1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 114335bd32fd1Smrg as_dirname=dirname 114345bd32fd1Smrgelse 114355bd32fd1Smrg as_dirname=false 114365bd32fd1Smrgfi 114378b22bf3fSmrg 114388b22bf3fSmrgas_me=`$as_basename -- "$0" || 114398b22bf3fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 114408b22bf3fSmrg X"$0" : 'X\(//\)$' \| \ 114418b22bf3fSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 1144296a81b41Smrg$as_echo X/"$0" | 114438b22bf3fSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 114448b22bf3fSmrg s//\1/ 114458b22bf3fSmrg q 114468b22bf3fSmrg } 114478b22bf3fSmrg /^X\/\(\/\/\)$/{ 114488b22bf3fSmrg s//\1/ 114498b22bf3fSmrg q 114508b22bf3fSmrg } 114518b22bf3fSmrg /^X\/\(\/\).*/{ 114528b22bf3fSmrg s//\1/ 114538b22bf3fSmrg q 114548b22bf3fSmrg } 114558b22bf3fSmrg s/.*/./; q'` 114568b22bf3fSmrg 114575bd32fd1Smrg# Avoid depending upon Character Ranges. 114585bd32fd1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 114595bd32fd1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 114605bd32fd1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 114615bd32fd1Smrgas_cr_digits='0123456789' 114625bd32fd1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 114638b22bf3fSmrg 114648b22bf3fSmrgECHO_C= ECHO_N= ECHO_T= 114655bd32fd1Smrgcase `echo -n x` in #((((( 114668b22bf3fSmrg-n*) 114675bd32fd1Smrg case `echo 'xy\c'` in 114688b22bf3fSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 114695bd32fd1Smrg xy) ECHO_C='\c';; 114705bd32fd1Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 114715bd32fd1Smrg ECHO_T=' ';; 114728b22bf3fSmrg esac;; 114738b22bf3fSmrg*) 114748b22bf3fSmrg ECHO_N='-n';; 114758b22bf3fSmrgesac 114768b22bf3fSmrg 114778b22bf3fSmrgrm -f conf$$ conf$$.exe conf$$.file 114788b22bf3fSmrgif test -d conf$$.dir; then 114798b22bf3fSmrg rm -f conf$$.dir/conf$$.file 114808b22bf3fSmrgelse 114818b22bf3fSmrg rm -f conf$$.dir 1148296a81b41Smrg mkdir conf$$.dir 2>/dev/null 1148396a81b41Smrgfi 1148496a81b41Smrgif (echo >conf$$.file) 2>/dev/null; then 1148596a81b41Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 1148696a81b41Smrg as_ln_s='ln -s' 1148796a81b41Smrg # ... but there are two gotchas: 1148896a81b41Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 1148996a81b41Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11490c74b14bdSmrg # In both cases, we have to default to `cp -pR'. 1149196a81b41Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11492c74b14bdSmrg as_ln_s='cp -pR' 1149396a81b41Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 1149496a81b41Smrg as_ln_s=ln 1149596a81b41Smrg else 11496c74b14bdSmrg as_ln_s='cp -pR' 1149796a81b41Smrg fi 114988b22bf3fSmrgelse 11499c74b14bdSmrg as_ln_s='cp -pR' 115008b22bf3fSmrgfi 115018b22bf3fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 115028b22bf3fSmrgrmdir conf$$.dir 2>/dev/null 115038b22bf3fSmrg 115045bd32fd1Smrg 115055bd32fd1Smrg# as_fn_mkdir_p 115065bd32fd1Smrg# ------------- 115075bd32fd1Smrg# Create "$as_dir" as a directory, including parents if necessary. 115085bd32fd1Smrgas_fn_mkdir_p () 115095bd32fd1Smrg{ 115105bd32fd1Smrg 115115bd32fd1Smrg case $as_dir in #( 115125bd32fd1Smrg -*) as_dir=./$as_dir;; 115135bd32fd1Smrg esac 115145bd32fd1Smrg test -d "$as_dir" || eval $as_mkdir_p || { 115155bd32fd1Smrg as_dirs= 115165bd32fd1Smrg while :; do 115175bd32fd1Smrg case $as_dir in #( 115185bd32fd1Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 115195bd32fd1Smrg *) as_qdir=$as_dir;; 115205bd32fd1Smrg esac 115215bd32fd1Smrg as_dirs="'$as_qdir' $as_dirs" 115225bd32fd1Smrg as_dir=`$as_dirname -- "$as_dir" || 115235bd32fd1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 115245bd32fd1Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 115255bd32fd1Smrg X"$as_dir" : 'X\(//\)$' \| \ 115265bd32fd1Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 115275bd32fd1Smrg$as_echo X"$as_dir" | 115285bd32fd1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 115295bd32fd1Smrg s//\1/ 115305bd32fd1Smrg q 115315bd32fd1Smrg } 115325bd32fd1Smrg /^X\(\/\/\)[^/].*/{ 115335bd32fd1Smrg s//\1/ 115345bd32fd1Smrg q 115355bd32fd1Smrg } 115365bd32fd1Smrg /^X\(\/\/\)$/{ 115375bd32fd1Smrg s//\1/ 115385bd32fd1Smrg q 115395bd32fd1Smrg } 115405bd32fd1Smrg /^X\(\/\).*/{ 115415bd32fd1Smrg s//\1/ 115425bd32fd1Smrg q 115435bd32fd1Smrg } 115445bd32fd1Smrg s/.*/./; q'` 115455bd32fd1Smrg test -d "$as_dir" && break 115465bd32fd1Smrg done 115475bd32fd1Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 115485bd32fd1Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 115495bd32fd1Smrg 115505bd32fd1Smrg 115515bd32fd1Smrg} # as_fn_mkdir_p 115528b22bf3fSmrgif mkdir -p . 2>/dev/null; then 115535bd32fd1Smrg as_mkdir_p='mkdir -p "$as_dir"' 115548b22bf3fSmrgelse 115558b22bf3fSmrg test -d ./-p && rmdir ./-p 115568b22bf3fSmrg as_mkdir_p=false 115578b22bf3fSmrgfi 115588b22bf3fSmrg 11559c74b14bdSmrg 11560c74b14bdSmrg# as_fn_executable_p FILE 11561c74b14bdSmrg# ----------------------- 11562c74b14bdSmrg# Test if FILE is an executable regular file. 11563c74b14bdSmrgas_fn_executable_p () 11564c74b14bdSmrg{ 11565c74b14bdSmrg test -f "$1" && test -x "$1" 11566c74b14bdSmrg} # as_fn_executable_p 11567c74b14bdSmrgas_test_x='test -x' 11568c74b14bdSmrgas_executable_p=as_fn_executable_p 115698b22bf3fSmrg 115708b22bf3fSmrg# Sed expression to map a string onto a valid CPP name. 115718b22bf3fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 115728b22bf3fSmrg 115738b22bf3fSmrg# Sed expression to map a string onto a valid variable name. 115748b22bf3fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 115758b22bf3fSmrg 115768b22bf3fSmrg 115778b22bf3fSmrgexec 6>&1 115785bd32fd1Smrg## ----------------------------------- ## 115795bd32fd1Smrg## Main body of $CONFIG_STATUS script. ## 115805bd32fd1Smrg## ----------------------------------- ## 115815bd32fd1Smrg_ASEOF 115825bd32fd1Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 115838b22bf3fSmrg 115845bd32fd1Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 115855bd32fd1Smrg# Save the log message, to keep $0 and so on meaningful, and to 115868b22bf3fSmrg# report actual input values of CONFIG_FILES etc. instead of their 115878b22bf3fSmrg# values after options handling. 115888b22bf3fSmrgac_log=" 11589c74b14bdSmrgThis file was extended by xrdb $as_me 1.1.1, which was 11590c74b14bdSmrggenerated by GNU Autoconf 2.69. Invocation command line was 115918b22bf3fSmrg 115928b22bf3fSmrg CONFIG_FILES = $CONFIG_FILES 115938b22bf3fSmrg CONFIG_HEADERS = $CONFIG_HEADERS 115948b22bf3fSmrg CONFIG_LINKS = $CONFIG_LINKS 115958b22bf3fSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 115968b22bf3fSmrg $ $0 $@ 115978b22bf3fSmrg 115988b22bf3fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 115998b22bf3fSmrg" 116008b22bf3fSmrg 116018b22bf3fSmrg_ACEOF 116028b22bf3fSmrg 1160396a81b41Smrgcase $ac_config_files in *" 1160496a81b41Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 1160596a81b41Smrgesac 1160696a81b41Smrg 1160796a81b41Smrgcase $ac_config_headers in *" 1160896a81b41Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 1160996a81b41Smrgesac 1161096a81b41Smrg 1161196a81b41Smrg 1161296a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 116138b22bf3fSmrg# Files that config.status was made for. 116148b22bf3fSmrgconfig_files="$ac_config_files" 116158b22bf3fSmrgconfig_headers="$ac_config_headers" 116168b22bf3fSmrgconfig_commands="$ac_config_commands" 116178b22bf3fSmrg 116188b22bf3fSmrg_ACEOF 116198b22bf3fSmrg 1162096a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 116218b22bf3fSmrgac_cs_usage="\ 116225bd32fd1Smrg\`$as_me' instantiates files and other configuration actions 116235bd32fd1Smrgfrom templates according to the current configuration. Unless the files 116245bd32fd1Smrgand actions are specified as TAGs, all are instantiated by default. 116258b22bf3fSmrg 116265bd32fd1SmrgUsage: $0 [OPTION]... [TAG]... 116278b22bf3fSmrg 116288b22bf3fSmrg -h, --help print this help, then exit 116298b22bf3fSmrg -V, --version print version number and configuration settings, then exit 116305bd32fd1Smrg --config print configuration, then exit 1163196a81b41Smrg -q, --quiet, --silent 1163296a81b41Smrg do not print progress messages 116338b22bf3fSmrg -d, --debug don't remove temporary files 116348b22bf3fSmrg --recheck update $as_me by reconfiguring in the same conditions 1163596a81b41Smrg --file=FILE[:TEMPLATE] 1163696a81b41Smrg instantiate the configuration file FILE 1163796a81b41Smrg --header=FILE[:TEMPLATE] 1163896a81b41Smrg instantiate the configuration header FILE 116398b22bf3fSmrg 116408b22bf3fSmrgConfiguration files: 116418b22bf3fSmrg$config_files 116428b22bf3fSmrg 116438b22bf3fSmrgConfiguration headers: 116448b22bf3fSmrg$config_headers 116458b22bf3fSmrg 116468b22bf3fSmrgConfiguration commands: 116478b22bf3fSmrg$config_commands 116488b22bf3fSmrg 116495bd32fd1SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 116508b22bf3fSmrg 116518b22bf3fSmrg_ACEOF 1165296a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 116535bd32fd1Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 116548b22bf3fSmrgac_cs_version="\\ 11655c74b14bdSmrgxrdb config.status 1.1.1 11656c74b14bdSmrgconfigured by $0, generated by GNU Autoconf 2.69, 116575bd32fd1Smrg with options \\"\$ac_cs_config\\" 116588b22bf3fSmrg 11659c74b14bdSmrgCopyright (C) 2012 Free Software Foundation, Inc. 116608b22bf3fSmrgThis config.status script is free software; the Free Software Foundation 116618b22bf3fSmrggives unlimited permission to copy, distribute and modify it." 116628b22bf3fSmrg 116638b22bf3fSmrgac_pwd='$ac_pwd' 116648b22bf3fSmrgsrcdir='$srcdir' 116658b22bf3fSmrgINSTALL='$INSTALL' 116668b22bf3fSmrgMKDIR_P='$MKDIR_P' 1166796a81b41SmrgAWK='$AWK' 1166896a81b41Smrgtest -n "\$AWK" || AWK=awk 116698b22bf3fSmrg_ACEOF 116708b22bf3fSmrg 1167196a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1167296a81b41Smrg# The default lists apply if the user does not specify any file. 116738b22bf3fSmrgac_need_defaults=: 116748b22bf3fSmrgwhile test $# != 0 116758b22bf3fSmrgdo 116768b22bf3fSmrg case $1 in 116775bd32fd1Smrg --*=?*) 116788b22bf3fSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 116798b22bf3fSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 116808b22bf3fSmrg ac_shift=: 116818b22bf3fSmrg ;; 116825bd32fd1Smrg --*=) 116835bd32fd1Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 116845bd32fd1Smrg ac_optarg= 116855bd32fd1Smrg ac_shift=: 116865bd32fd1Smrg ;; 116878b22bf3fSmrg *) 116888b22bf3fSmrg ac_option=$1 116898b22bf3fSmrg ac_optarg=$2 116908b22bf3fSmrg ac_shift=shift 116918b22bf3fSmrg ;; 116928b22bf3fSmrg esac 116938b22bf3fSmrg 116948b22bf3fSmrg case $ac_option in 116958b22bf3fSmrg # Handling of the options. 116968b22bf3fSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 116978b22bf3fSmrg ac_cs_recheck=: ;; 116988b22bf3fSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 1169996a81b41Smrg $as_echo "$ac_cs_version"; exit ;; 117005bd32fd1Smrg --config | --confi | --conf | --con | --co | --c ) 117015bd32fd1Smrg $as_echo "$ac_cs_config"; exit ;; 117028b22bf3fSmrg --debug | --debu | --deb | --de | --d | -d ) 117038b22bf3fSmrg debug=: ;; 117048b22bf3fSmrg --file | --fil | --fi | --f ) 117058b22bf3fSmrg $ac_shift 1170696a81b41Smrg case $ac_optarg in 1170796a81b41Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 117085bd32fd1Smrg '') as_fn_error $? "missing file argument" ;; 1170996a81b41Smrg esac 117105bd32fd1Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 117118b22bf3fSmrg ac_need_defaults=false;; 117128b22bf3fSmrg --header | --heade | --head | --hea ) 117138b22bf3fSmrg $ac_shift 1171496a81b41Smrg case $ac_optarg in 1171596a81b41Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1171696a81b41Smrg esac 117175bd32fd1Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 117188b22bf3fSmrg ac_need_defaults=false;; 117198b22bf3fSmrg --he | --h) 117208b22bf3fSmrg # Conflict between --help and --header 117215bd32fd1Smrg as_fn_error $? "ambiguous option: \`$1' 117225bd32fd1SmrgTry \`$0 --help' for more information.";; 117238b22bf3fSmrg --help | --hel | -h ) 1172496a81b41Smrg $as_echo "$ac_cs_usage"; exit ;; 117258b22bf3fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 117268b22bf3fSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 117278b22bf3fSmrg ac_cs_silent=: ;; 117288b22bf3fSmrg 117298b22bf3fSmrg # This is an error. 117305bd32fd1Smrg -*) as_fn_error $? "unrecognized option: \`$1' 117315bd32fd1SmrgTry \`$0 --help' for more information." ;; 117328b22bf3fSmrg 117335bd32fd1Smrg *) as_fn_append ac_config_targets " $1" 117348b22bf3fSmrg ac_need_defaults=false ;; 117358b22bf3fSmrg 117368b22bf3fSmrg esac 117378b22bf3fSmrg shift 117388b22bf3fSmrgdone 117398b22bf3fSmrg 117408b22bf3fSmrgac_configure_extra_args= 117418b22bf3fSmrg 117428b22bf3fSmrgif $ac_cs_silent; then 117438b22bf3fSmrg exec 6>/dev/null 117448b22bf3fSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 117458b22bf3fSmrgfi 117468b22bf3fSmrg 117478b22bf3fSmrg_ACEOF 1174896a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 117498b22bf3fSmrgif \$ac_cs_recheck; then 11750c74b14bdSmrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 1175196a81b41Smrg shift 1175296a81b41Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 1175396a81b41Smrg CONFIG_SHELL='$SHELL' 117548b22bf3fSmrg export CONFIG_SHELL 1175596a81b41Smrg exec "\$@" 117568b22bf3fSmrgfi 117578b22bf3fSmrg 117588b22bf3fSmrg_ACEOF 1175996a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 117608b22bf3fSmrgexec 5>>config.log 117618b22bf3fSmrg{ 117628b22bf3fSmrg echo 117638b22bf3fSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 117648b22bf3fSmrg## Running $as_me. ## 117658b22bf3fSmrg_ASBOX 1176696a81b41Smrg $as_echo "$ac_log" 117678b22bf3fSmrg} >&5 117688b22bf3fSmrg 117698b22bf3fSmrg_ACEOF 1177096a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 117718b22bf3fSmrg# 117728b22bf3fSmrg# INIT-COMMANDS 117738b22bf3fSmrg# 117748b22bf3fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 117758b22bf3fSmrg 117768b22bf3fSmrg_ACEOF 117778b22bf3fSmrg 1177896a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 117798b22bf3fSmrg 117808b22bf3fSmrg# Handling of arguments. 117818b22bf3fSmrgfor ac_config_target in $ac_config_targets 117828b22bf3fSmrgdo 117838b22bf3fSmrg case $ac_config_target in 117848b22bf3fSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 117858b22bf3fSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 117868b22bf3fSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11787d13010c3Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 117888b22bf3fSmrg 117895bd32fd1Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 117908b22bf3fSmrg esac 117918b22bf3fSmrgdone 117928b22bf3fSmrg 117938b22bf3fSmrg 117948b22bf3fSmrg# If the user did not use the arguments to specify the items to instantiate, 117958b22bf3fSmrg# then the envvar interface is used. Set only those that are not. 117968b22bf3fSmrg# We use the long form for the default assignment because of an extremely 117978b22bf3fSmrg# bizarre bug on SunOS 4.1.3. 117988b22bf3fSmrgif $ac_need_defaults; then 117998b22bf3fSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 118008b22bf3fSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 118018b22bf3fSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 118028b22bf3fSmrgfi 118038b22bf3fSmrg 118048b22bf3fSmrg# Have a temporary directory for convenience. Make it in the build tree 118058b22bf3fSmrg# simply because there is no reason against having it here, and in addition, 118068b22bf3fSmrg# creating and moving files from /tmp can sometimes cause problems. 118078b22bf3fSmrg# Hook for its removal unless debugging. 118088b22bf3fSmrg# Note that there is a small window in which the directory will not be cleaned: 118098b22bf3fSmrg# after its creation but before its name has been assigned to `$tmp'. 118108b22bf3fSmrg$debug || 118118b22bf3fSmrg{ 118125bd32fd1Smrg tmp= ac_tmp= 118138b22bf3fSmrg trap 'exit_status=$? 118145bd32fd1Smrg : "${ac_tmp:=$tmp}" 118155bd32fd1Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 118168b22bf3fSmrg' 0 118175bd32fd1Smrg trap 'as_fn_exit 1' 1 2 13 15 118188b22bf3fSmrg} 118198b22bf3fSmrg# Create a (secure) tmp directory for tmp files. 118208b22bf3fSmrg 118218b22bf3fSmrg{ 118228b22bf3fSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 118235bd32fd1Smrg test -d "$tmp" 118248b22bf3fSmrg} || 118258b22bf3fSmrg{ 118268b22bf3fSmrg tmp=./conf$$-$RANDOM 118278b22bf3fSmrg (umask 077 && mkdir "$tmp") 118285bd32fd1Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 118295bd32fd1Smrgac_tmp=$tmp 118308b22bf3fSmrg 1183196a81b41Smrg# Set up the scripts for CONFIG_FILES section. 1183296a81b41Smrg# No need to generate them if there are no CONFIG_FILES. 1183396a81b41Smrg# This happens for instance with `./config.status config.h'. 118348b22bf3fSmrgif test -n "$CONFIG_FILES"; then 118358b22bf3fSmrg 118368b22bf3fSmrg 118375bd32fd1Smrgac_cr=`echo X | tr X '\015'` 118385bd32fd1Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 118395bd32fd1Smrg# But we know of no other shell where ac_cr would be empty at this 118405bd32fd1Smrg# point, so we can use a bashism as a fallback. 118415bd32fd1Smrgif test "x$ac_cr" = x; then 118425bd32fd1Smrg eval ac_cr=\$\'\\r\' 118435bd32fd1Smrgfi 1184496a81b41Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 1184596a81b41Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 1184696a81b41Smrg ac_cs_awk_cr='\\r' 1184796a81b41Smrgelse 1184896a81b41Smrg ac_cs_awk_cr=$ac_cr 118498b22bf3fSmrgfi 118508b22bf3fSmrg 118515bd32fd1Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 118528b22bf3fSmrg_ACEOF 118538b22bf3fSmrg 118548b22bf3fSmrg 1185596a81b41Smrg{ 1185696a81b41Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 1185796a81b41Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 1185896a81b41Smrg echo "_ACEOF" 1185996a81b41Smrg} >conf$$subs.sh || 118605bd32fd1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 118615bd32fd1Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 118628b22bf3fSmrgac_delim='%!_!# ' 118638b22bf3fSmrgfor ac_last_try in false false false false false :; do 1186496a81b41Smrg . ./conf$$subs.sh || 118655bd32fd1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 118668b22bf3fSmrg 1186796a81b41Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 1186896a81b41Smrg if test $ac_delim_n = $ac_delim_num; then 118698b22bf3fSmrg break 118708b22bf3fSmrg elif $ac_last_try; then 118715bd32fd1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 118728b22bf3fSmrg else 118738b22bf3fSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 118748b22bf3fSmrg fi 118758b22bf3fSmrgdone 1187696a81b41Smrgrm -f conf$$subs.sh 118778b22bf3fSmrg 1187896a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 118795bd32fd1Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 1188096a81b41Smrg_ACEOF 1188196a81b41Smrgsed -n ' 1188296a81b41Smrgh 1188396a81b41Smrgs/^/S["/; s/!.*/"]=/ 1188496a81b41Smrgp 1188596a81b41Smrgg 1188696a81b41Smrgs/^[^!]*!// 1188796a81b41Smrg:repl 1188896a81b41Smrgt repl 1188996a81b41Smrgs/'"$ac_delim"'$// 1189096a81b41Smrgt delim 1189196a81b41Smrg:nl 1189296a81b41Smrgh 118935bd32fd1Smrgs/\(.\{148\}\)..*/\1/ 1189496a81b41Smrgt more1 1189596a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 1189696a81b41Smrgp 1189796a81b41Smrgn 1189896a81b41Smrgb repl 1189996a81b41Smrg:more1 1190096a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 1190196a81b41Smrgp 1190296a81b41Smrgg 1190396a81b41Smrgs/.\{148\}// 1190496a81b41Smrgt nl 1190596a81b41Smrg:delim 1190696a81b41Smrgh 119075bd32fd1Smrgs/\(.\{148\}\)..*/\1/ 1190896a81b41Smrgt more2 1190996a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 1191096a81b41Smrgp 1191196a81b41Smrgb 1191296a81b41Smrg:more2 1191396a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 1191496a81b41Smrgp 1191596a81b41Smrgg 1191696a81b41Smrgs/.\{148\}// 1191796a81b41Smrgt delim 1191896a81b41Smrg' <conf$$subs.awk | sed ' 1191996a81b41Smrg/^[^""]/{ 1192096a81b41Smrg N 1192196a81b41Smrg s/\n// 1192296a81b41Smrg} 1192396a81b41Smrg' >>$CONFIG_STATUS || ac_write_fail=1 1192496a81b41Smrgrm -f conf$$subs.awk 1192596a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1192696a81b41Smrg_ACAWK 119275bd32fd1Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 1192896a81b41Smrg for (key in S) S_is_set[key] = 1 1192996a81b41Smrg FS = "" 1193096a81b41Smrg 1193196a81b41Smrg} 1193296a81b41Smrg{ 1193396a81b41Smrg line = $ 0 1193496a81b41Smrg nfields = split(line, field, "@") 1193596a81b41Smrg substed = 0 1193696a81b41Smrg len = length(field[1]) 1193796a81b41Smrg for (i = 2; i < nfields; i++) { 1193896a81b41Smrg key = field[i] 1193996a81b41Smrg keylen = length(key) 1194096a81b41Smrg if (S_is_set[key]) { 1194196a81b41Smrg value = S[key] 1194296a81b41Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 1194396a81b41Smrg len += length(value) + length(field[++i]) 1194496a81b41Smrg substed = 1 1194596a81b41Smrg } else 1194696a81b41Smrg len += 1 + keylen 1194796a81b41Smrg } 1194896a81b41Smrg 1194996a81b41Smrg print line 1195096a81b41Smrg} 119518b22bf3fSmrg 1195296a81b41Smrg_ACAWK 119538b22bf3fSmrg_ACEOF 1195496a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1195596a81b41Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 1195696a81b41Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 1195796a81b41Smrgelse 1195896a81b41Smrg cat 119595bd32fd1Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 119605bd32fd1Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 119618b22bf3fSmrg_ACEOF 119628b22bf3fSmrg 119635bd32fd1Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 119645bd32fd1Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 119658b22bf3fSmrg# trailing colons and then remove the whole line if VPATH becomes empty 119668b22bf3fSmrg# (actually we leave an empty line to preserve line numbers). 119678b22bf3fSmrgif test "x$srcdir" = x.; then 119685bd32fd1Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 119695bd32fd1Smrgh 119705bd32fd1Smrgs/// 119715bd32fd1Smrgs/^/:/ 119725bd32fd1Smrgs/[ ]*$/:/ 119735bd32fd1Smrgs/:\$(srcdir):/:/g 119745bd32fd1Smrgs/:\${srcdir}:/:/g 119755bd32fd1Smrgs/:@srcdir@:/:/g 119765bd32fd1Smrgs/^:*// 119778b22bf3fSmrgs/:*$// 119785bd32fd1Smrgx 119795bd32fd1Smrgs/\(=[ ]*\).*/\1/ 119805bd32fd1SmrgG 119815bd32fd1Smrgs/\n// 119828b22bf3fSmrgs/^[^=]*=[ ]*$// 119838b22bf3fSmrg}' 119848b22bf3fSmrgfi 119858b22bf3fSmrg 1198696a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 119878b22bf3fSmrgfi # test -n "$CONFIG_FILES" 119888b22bf3fSmrg 1198996a81b41Smrg# Set up the scripts for CONFIG_HEADERS section. 1199096a81b41Smrg# No need to generate them if there are no CONFIG_HEADERS. 1199196a81b41Smrg# This happens for instance with `./config.status Makefile'. 1199296a81b41Smrgif test -n "$CONFIG_HEADERS"; then 119935bd32fd1Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 1199496a81b41SmrgBEGIN { 1199596a81b41Smrg_ACEOF 1199696a81b41Smrg 1199796a81b41Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 1199896a81b41Smrg# here-document in config.status, that substitutes the proper values into 1199996a81b41Smrg# config.h.in to produce config.h. 1200096a81b41Smrg 1200196a81b41Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 1200296a81b41Smrg# handling of long lines. 1200396a81b41Smrgac_delim='%!_!# ' 1200496a81b41Smrgfor ac_last_try in false false :; do 120055bd32fd1Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 120065bd32fd1Smrg if test -z "$ac_tt"; then 1200796a81b41Smrg break 1200896a81b41Smrg elif $ac_last_try; then 120095bd32fd1Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 1201096a81b41Smrg else 1201196a81b41Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 1201296a81b41Smrg fi 1201396a81b41Smrgdone 1201496a81b41Smrg 1201596a81b41Smrg# For the awk script, D is an array of macro values keyed by name, 1201696a81b41Smrg# likewise P contains macro parameters if any. Preserve backslash 1201796a81b41Smrg# newline sequences. 1201896a81b41Smrg 1201996a81b41Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 1202096a81b41Smrgsed -n ' 1202196a81b41Smrgs/.\{148\}/&'"$ac_delim"'/g 1202296a81b41Smrgt rset 1202396a81b41Smrg:rset 1202496a81b41Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 1202596a81b41Smrgt def 1202696a81b41Smrgd 1202796a81b41Smrg:def 1202896a81b41Smrgs/\\$// 1202996a81b41Smrgt bsnl 1203096a81b41Smrgs/["\\]/\\&/g 1203196a81b41Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 1203296a81b41SmrgD["\1"]=" \3"/p 1203396a81b41Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 1203496a81b41Smrgd 1203596a81b41Smrg:bsnl 1203696a81b41Smrgs/["\\]/\\&/g 1203796a81b41Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 1203896a81b41SmrgD["\1"]=" \3\\\\\\n"\\/p 1203996a81b41Smrgt cont 1204096a81b41Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 1204196a81b41Smrgt cont 1204296a81b41Smrgd 1204396a81b41Smrg:cont 1204496a81b41Smrgn 1204596a81b41Smrgs/.\{148\}/&'"$ac_delim"'/g 1204696a81b41Smrgt clear 1204796a81b41Smrg:clear 1204896a81b41Smrgs/\\$// 1204996a81b41Smrgt bsnlc 1205096a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 1205196a81b41Smrgd 1205296a81b41Smrg:bsnlc 1205396a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 1205496a81b41Smrgb cont 1205596a81b41Smrg' <confdefs.h | sed ' 1205696a81b41Smrgs/'"$ac_delim"'/"\\\ 1205796a81b41Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 1205896a81b41Smrg 1205996a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1206096a81b41Smrg for (key in D) D_is_set[key] = 1 1206196a81b41Smrg FS = "" 1206296a81b41Smrg} 1206396a81b41Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 1206496a81b41Smrg line = \$ 0 1206596a81b41Smrg split(line, arg, " ") 1206696a81b41Smrg if (arg[1] == "#") { 1206796a81b41Smrg defundef = arg[2] 1206896a81b41Smrg mac1 = arg[3] 1206996a81b41Smrg } else { 1207096a81b41Smrg defundef = substr(arg[1], 2) 1207196a81b41Smrg mac1 = arg[2] 1207296a81b41Smrg } 1207396a81b41Smrg split(mac1, mac2, "(") #) 1207496a81b41Smrg macro = mac2[1] 1207596a81b41Smrg prefix = substr(line, 1, index(line, defundef) - 1) 1207696a81b41Smrg if (D_is_set[macro]) { 1207796a81b41Smrg # Preserve the white space surrounding the "#". 1207896a81b41Smrg print prefix "define", macro P[macro] D[macro] 1207996a81b41Smrg next 1208096a81b41Smrg } else { 1208196a81b41Smrg # Replace #undef with comments. This is necessary, for example, 1208296a81b41Smrg # in the case of _POSIX_SOURCE, which is predefined and required 1208396a81b41Smrg # on some systems where configure will not decide to define it. 1208496a81b41Smrg if (defundef == "undef") { 1208596a81b41Smrg print "/*", prefix defundef, macro, "*/" 1208696a81b41Smrg next 1208796a81b41Smrg } 1208896a81b41Smrg } 1208996a81b41Smrg} 1209096a81b41Smrg{ print } 1209196a81b41Smrg_ACAWK 1209296a81b41Smrg_ACEOF 1209396a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 120945bd32fd1Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 1209596a81b41Smrgfi # test -n "$CONFIG_HEADERS" 1209696a81b41Smrg 120978b22bf3fSmrg 1209896a81b41Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 1209996a81b41Smrgshift 1210096a81b41Smrgfor ac_tag 121018b22bf3fSmrgdo 121028b22bf3fSmrg case $ac_tag in 121038b22bf3fSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 121048b22bf3fSmrg esac 121058b22bf3fSmrg case $ac_mode$ac_tag in 121068b22bf3fSmrg :[FHL]*:*);; 121075bd32fd1Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 121088b22bf3fSmrg :[FH]-) ac_tag=-:-;; 121098b22bf3fSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 121108b22bf3fSmrg esac 121118b22bf3fSmrg ac_save_IFS=$IFS 121128b22bf3fSmrg IFS=: 121138b22bf3fSmrg set x $ac_tag 121148b22bf3fSmrg IFS=$ac_save_IFS 121158b22bf3fSmrg shift 121168b22bf3fSmrg ac_file=$1 121178b22bf3fSmrg shift 121188b22bf3fSmrg 121198b22bf3fSmrg case $ac_mode in 121208b22bf3fSmrg :L) ac_source=$1;; 121218b22bf3fSmrg :[FH]) 121228b22bf3fSmrg ac_file_inputs= 121238b22bf3fSmrg for ac_f 121248b22bf3fSmrg do 121258b22bf3fSmrg case $ac_f in 121265bd32fd1Smrg -) ac_f="$ac_tmp/stdin";; 121278b22bf3fSmrg *) # Look for the file first in the build tree, then in the source tree 121288b22bf3fSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 121298b22bf3fSmrg # because $ac_f cannot contain `:'. 121308b22bf3fSmrg test -f "$ac_f" || 121318b22bf3fSmrg case $ac_f in 121328b22bf3fSmrg [\\/$]*) false;; 121338b22bf3fSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 121348b22bf3fSmrg esac || 121355bd32fd1Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 121368b22bf3fSmrg esac 1213796a81b41Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 121385bd32fd1Smrg as_fn_append ac_file_inputs " '$ac_f'" 121398b22bf3fSmrg done 121408b22bf3fSmrg 121418b22bf3fSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 121428b22bf3fSmrg # use $as_me), people would be surprised to read: 121438b22bf3fSmrg # /* config.h. Generated by config.status. */ 1214496a81b41Smrg configure_input='Generated from '` 1214596a81b41Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 1214696a81b41Smrg `' by configure.' 121478b22bf3fSmrg if test x"$ac_file" != x-; then 121488b22bf3fSmrg configure_input="$ac_file. $configure_input" 121495bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 1215096a81b41Smrg$as_echo "$as_me: creating $ac_file" >&6;} 121518b22bf3fSmrg fi 1215296a81b41Smrg # Neutralize special characters interpreted by sed in replacement strings. 1215396a81b41Smrg case $configure_input in #( 1215496a81b41Smrg *\&* | *\|* | *\\* ) 1215596a81b41Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 1215696a81b41Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 1215796a81b41Smrg *) ac_sed_conf_input=$configure_input;; 1215896a81b41Smrg esac 121598b22bf3fSmrg 121608b22bf3fSmrg case $ac_tag in 121615bd32fd1Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 121625bd32fd1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 121638b22bf3fSmrg esac 121648b22bf3fSmrg ;; 121658b22bf3fSmrg esac 121668b22bf3fSmrg 121678b22bf3fSmrg ac_dir=`$as_dirname -- "$ac_file" || 121688b22bf3fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 121698b22bf3fSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 121708b22bf3fSmrg X"$ac_file" : 'X\(//\)$' \| \ 121718b22bf3fSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 1217296a81b41Smrg$as_echo X"$ac_file" | 121738b22bf3fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 121748b22bf3fSmrg s//\1/ 121758b22bf3fSmrg q 121768b22bf3fSmrg } 121778b22bf3fSmrg /^X\(\/\/\)[^/].*/{ 121788b22bf3fSmrg s//\1/ 121798b22bf3fSmrg q 121808b22bf3fSmrg } 121818b22bf3fSmrg /^X\(\/\/\)$/{ 121828b22bf3fSmrg s//\1/ 121838b22bf3fSmrg q 121848b22bf3fSmrg } 121858b22bf3fSmrg /^X\(\/\).*/{ 121868b22bf3fSmrg s//\1/ 121878b22bf3fSmrg q 121888b22bf3fSmrg } 121898b22bf3fSmrg s/.*/./; q'` 121905bd32fd1Smrg as_dir="$ac_dir"; as_fn_mkdir_p 121918b22bf3fSmrg ac_builddir=. 121928b22bf3fSmrg 121938b22bf3fSmrgcase "$ac_dir" in 121948b22bf3fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 121958b22bf3fSmrg*) 1219696a81b41Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 121978b22bf3fSmrg # A ".." for each directory in $ac_dir_suffix. 1219896a81b41Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 121998b22bf3fSmrg case $ac_top_builddir_sub in 122008b22bf3fSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 122018b22bf3fSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 122028b22bf3fSmrg esac ;; 122038b22bf3fSmrgesac 122048b22bf3fSmrgac_abs_top_builddir=$ac_pwd 122058b22bf3fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 122068b22bf3fSmrg# for backward compatibility: 122078b22bf3fSmrgac_top_builddir=$ac_top_build_prefix 122088b22bf3fSmrg 122098b22bf3fSmrgcase $srcdir in 122108b22bf3fSmrg .) # We are building in place. 122118b22bf3fSmrg ac_srcdir=. 122128b22bf3fSmrg ac_top_srcdir=$ac_top_builddir_sub 122138b22bf3fSmrg ac_abs_top_srcdir=$ac_pwd ;; 122148b22bf3fSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 122158b22bf3fSmrg ac_srcdir=$srcdir$ac_dir_suffix; 122168b22bf3fSmrg ac_top_srcdir=$srcdir 122178b22bf3fSmrg ac_abs_top_srcdir=$srcdir ;; 122188b22bf3fSmrg *) # Relative name. 122198b22bf3fSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 122208b22bf3fSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 122218b22bf3fSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 122228b22bf3fSmrgesac 122238b22bf3fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 122248b22bf3fSmrg 122258b22bf3fSmrg 122268b22bf3fSmrg case $ac_mode in 122278b22bf3fSmrg :F) 122288b22bf3fSmrg # 122298b22bf3fSmrg # CONFIG_FILE 122308b22bf3fSmrg # 122318b22bf3fSmrg 122328b22bf3fSmrg case $INSTALL in 122338b22bf3fSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 122348b22bf3fSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 122358b22bf3fSmrg esac 122368b22bf3fSmrg ac_MKDIR_P=$MKDIR_P 122378b22bf3fSmrg case $MKDIR_P in 122388b22bf3fSmrg [\\/$]* | ?:[\\/]* ) ;; 122398b22bf3fSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 122408b22bf3fSmrg esac 122418b22bf3fSmrg_ACEOF 122428b22bf3fSmrg 1224396a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 122448b22bf3fSmrg# If the template does not know about datarootdir, expand it. 122458b22bf3fSmrg# FIXME: This hack should be removed a few years after 2.60. 122468b22bf3fSmrgac_datarootdir_hack=; ac_datarootdir_seen= 1224796a81b41Smrgac_sed_dataroot=' 1224896a81b41Smrg/datarootdir/ { 122498b22bf3fSmrg p 122508b22bf3fSmrg q 122518b22bf3fSmrg} 122528b22bf3fSmrg/@datadir@/p 122538b22bf3fSmrg/@docdir@/p 122548b22bf3fSmrg/@infodir@/p 122558b22bf3fSmrg/@localedir@/p 122565bd32fd1Smrg/@mandir@/p' 1225796a81b41Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 122588b22bf3fSmrg*datarootdir*) ac_datarootdir_seen=yes;; 122598b22bf3fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 122605bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 1226196a81b41Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 122628b22bf3fSmrg_ACEOF 1226396a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 122648b22bf3fSmrg ac_datarootdir_hack=' 122658b22bf3fSmrg s&@datadir@&$datadir&g 122668b22bf3fSmrg s&@docdir@&$docdir&g 122678b22bf3fSmrg s&@infodir@&$infodir&g 122688b22bf3fSmrg s&@localedir@&$localedir&g 122698b22bf3fSmrg s&@mandir@&$mandir&g 122705bd32fd1Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 122718b22bf3fSmrgesac 122728b22bf3fSmrg_ACEOF 122738b22bf3fSmrg 122748b22bf3fSmrg# Neutralize VPATH when `$srcdir' = `.'. 122758b22bf3fSmrg# Shell code in configure.ac might set extrasub. 122768b22bf3fSmrg# FIXME: do we really want to maintain this feature? 1227796a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1227896a81b41Smrgac_sed_extra="$ac_vpsub 122798b22bf3fSmrg$extrasub 122808b22bf3fSmrg_ACEOF 1228196a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 122828b22bf3fSmrg:t 122838b22bf3fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 1228496a81b41Smrgs|@configure_input@|$ac_sed_conf_input|;t t 122858b22bf3fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 1228696a81b41Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 122878b22bf3fSmrgs&@srcdir@&$ac_srcdir&;t t 122888b22bf3fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 122898b22bf3fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 122908b22bf3fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 122918b22bf3fSmrgs&@builddir@&$ac_builddir&;t t 122928b22bf3fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 122938b22bf3fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 122948b22bf3fSmrgs&@INSTALL@&$ac_INSTALL&;t t 122958b22bf3fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 122968b22bf3fSmrg$ac_datarootdir_hack 1229796a81b41Smrg" 122985bd32fd1Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 122995bd32fd1Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 123008b22bf3fSmrg 123018b22bf3fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 123025bd32fd1Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 123035bd32fd1Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 123045bd32fd1Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 123055bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 123065bd32fd1Smrgwhich seems to be undefined. Please make sure it is defined" >&5 1230796a81b41Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 123085bd32fd1Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 123098b22bf3fSmrg 123105bd32fd1Smrg rm -f "$ac_tmp/stdin" 123118b22bf3fSmrg case $ac_file in 123125bd32fd1Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 123135bd32fd1Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 1231496a81b41Smrg esac \ 123155bd32fd1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 123168b22bf3fSmrg ;; 123178b22bf3fSmrg :H) 123188b22bf3fSmrg # 123198b22bf3fSmrg # CONFIG_HEADER 123208b22bf3fSmrg # 123218b22bf3fSmrg if test x"$ac_file" != x-; then 1232296a81b41Smrg { 1232396a81b41Smrg $as_echo "/* $configure_input */" \ 123245bd32fd1Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 123255bd32fd1Smrg } >"$ac_tmp/config.h" \ 123265bd32fd1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 123275bd32fd1Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 123285bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 1232996a81b41Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 123308b22bf3fSmrg else 1233196a81b41Smrg rm -f "$ac_file" 123325bd32fd1Smrg mv "$ac_tmp/config.h" "$ac_file" \ 123335bd32fd1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 123348b22bf3fSmrg fi 123358b22bf3fSmrg else 1233696a81b41Smrg $as_echo "/* $configure_input */" \ 123375bd32fd1Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 123385bd32fd1Smrg || as_fn_error $? "could not create -" "$LINENO" 5 123398b22bf3fSmrg fi 1234096a81b41Smrg# Compute "$ac_file"'s index in $config_headers. 1234196a81b41Smrg_am_arg="$ac_file" 123428b22bf3fSmrg_am_stamp_count=1 123438b22bf3fSmrgfor _am_header in $config_headers :; do 123448b22bf3fSmrg case $_am_header in 1234596a81b41Smrg $_am_arg | $_am_arg:* ) 123468b22bf3fSmrg break ;; 123478b22bf3fSmrg * ) 123488b22bf3fSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 123498b22bf3fSmrg esac 123508b22bf3fSmrgdone 1235196a81b41Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 1235296a81b41Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1235396a81b41Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 1235496a81b41Smrg X"$_am_arg" : 'X\(//\)$' \| \ 1235596a81b41Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 1235696a81b41Smrg$as_echo X"$_am_arg" | 123578b22bf3fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 123588b22bf3fSmrg s//\1/ 123598b22bf3fSmrg q 123608b22bf3fSmrg } 123618b22bf3fSmrg /^X\(\/\/\)[^/].*/{ 123628b22bf3fSmrg s//\1/ 123638b22bf3fSmrg q 123648b22bf3fSmrg } 123658b22bf3fSmrg /^X\(\/\/\)$/{ 123668b22bf3fSmrg s//\1/ 123678b22bf3fSmrg q 123688b22bf3fSmrg } 123698b22bf3fSmrg /^X\(\/\).*/{ 123708b22bf3fSmrg s//\1/ 123718b22bf3fSmrg q 123728b22bf3fSmrg } 123738b22bf3fSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 123748b22bf3fSmrg ;; 123758b22bf3fSmrg 123765bd32fd1Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 1237796a81b41Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 123788b22bf3fSmrg ;; 123798b22bf3fSmrg esac 123808b22bf3fSmrg 123818b22bf3fSmrg 123828b22bf3fSmrg case $ac_file$ac_mode in 1238396a81b41Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12384f126e068Smrg # Older Autoconf quotes --file arguments for eval, but not when files 1238596a81b41Smrg # are listed without --file. Let's play safe and only enable the eval 1238696a81b41Smrg # if we detect the quoting. 1238796a81b41Smrg case $CONFIG_FILES in 1238896a81b41Smrg *\'*) eval set x "$CONFIG_FILES" ;; 1238996a81b41Smrg *) set x $CONFIG_FILES ;; 1239096a81b41Smrg esac 1239196a81b41Smrg shift 1239296a81b41Smrg for mf 1239396a81b41Smrg do 1239496a81b41Smrg # Strip MF so we end up with the name of the file. 1239596a81b41Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 1239696a81b41Smrg # Check whether this is an Automake generated Makefile or not. 12397f126e068Smrg # We used to match only the files named 'Makefile.in', but 1239896a81b41Smrg # some people rename them; so instead we look at the file content. 1239996a81b41Smrg # Grep'ing the first line is not enough: some people post-process 1240096a81b41Smrg # each Makefile.in and add a new line on top of each file to say so. 1240196a81b41Smrg # Grep'ing the whole file is not good either: AIX grep has a line 1240296a81b41Smrg # limit of 2048, but all sed's we know have understand at least 4000. 1240396a81b41Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 1240496a81b41Smrg dirpart=`$as_dirname -- "$mf" || 124058b22bf3fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 124068b22bf3fSmrg X"$mf" : 'X\(//\)[^/]' \| \ 124078b22bf3fSmrg X"$mf" : 'X\(//\)$' \| \ 124088b22bf3fSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 1240996a81b41Smrg$as_echo X"$mf" | 124108b22bf3fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 124118b22bf3fSmrg s//\1/ 124128b22bf3fSmrg q 124138b22bf3fSmrg } 124148b22bf3fSmrg /^X\(\/\/\)[^/].*/{ 124158b22bf3fSmrg s//\1/ 124168b22bf3fSmrg q 124178b22bf3fSmrg } 124188b22bf3fSmrg /^X\(\/\/\)$/{ 124198b22bf3fSmrg s//\1/ 124208b22bf3fSmrg q 124218b22bf3fSmrg } 124228b22bf3fSmrg /^X\(\/\).*/{ 124238b22bf3fSmrg s//\1/ 124248b22bf3fSmrg q 124258b22bf3fSmrg } 124268b22bf3fSmrg s/.*/./; q'` 1242796a81b41Smrg else 1242896a81b41Smrg continue 1242996a81b41Smrg fi 1243096a81b41Smrg # Extract the definition of DEPDIR, am__include, and am__quote 12431f126e068Smrg # from the Makefile without running 'make'. 1243296a81b41Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 1243396a81b41Smrg test -z "$DEPDIR" && continue 1243496a81b41Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 12435f126e068Smrg test -z "$am__include" && continue 1243696a81b41Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 1243796a81b41Smrg # Find all dependency output files, they are included files with 1243896a81b41Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 1243996a81b41Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 1244096a81b41Smrg # expansion. 1244196a81b41Smrg for file in `sed -n " 1244296a81b41Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12443f126e068Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 1244496a81b41Smrg # Make sure the directory exists. 1244596a81b41Smrg test -f "$dirpart/$file" && continue 1244696a81b41Smrg fdir=`$as_dirname -- "$file" || 124478b22bf3fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 124488b22bf3fSmrg X"$file" : 'X\(//\)[^/]' \| \ 124498b22bf3fSmrg X"$file" : 'X\(//\)$' \| \ 124508b22bf3fSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 1245196a81b41Smrg$as_echo X"$file" | 124528b22bf3fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 124538b22bf3fSmrg s//\1/ 124548b22bf3fSmrg q 124558b22bf3fSmrg } 124568b22bf3fSmrg /^X\(\/\/\)[^/].*/{ 124578b22bf3fSmrg s//\1/ 124588b22bf3fSmrg q 124598b22bf3fSmrg } 124608b22bf3fSmrg /^X\(\/\/\)$/{ 124618b22bf3fSmrg s//\1/ 124628b22bf3fSmrg q 124638b22bf3fSmrg } 124648b22bf3fSmrg /^X\(\/\).*/{ 124658b22bf3fSmrg s//\1/ 124668b22bf3fSmrg q 124678b22bf3fSmrg } 124688b22bf3fSmrg s/.*/./; q'` 124695bd32fd1Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 1247096a81b41Smrg # echo "creating $dirpart/$file" 1247196a81b41Smrg echo '# dummy' > "$dirpart/$file" 1247296a81b41Smrg done 124738b22bf3fSmrg done 1247496a81b41Smrg} 124758b22bf3fSmrg ;; 124768b22bf3fSmrg 124778b22bf3fSmrg esac 124788b22bf3fSmrgdone # for ac_tag 124798b22bf3fSmrg 124808b22bf3fSmrg 124815bd32fd1Smrgas_fn_exit 0 124828b22bf3fSmrg_ACEOF 124838b22bf3fSmrgac_clean_files=$ac_clean_files_save 124848b22bf3fSmrg 1248596a81b41Smrgtest $ac_write_fail = 0 || 124865bd32fd1Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 1248796a81b41Smrg 124888b22bf3fSmrg 124898b22bf3fSmrg# configure is writing to config.log, and then calls config.status. 124908b22bf3fSmrg# config.status does its own redirection, appending to config.log. 124918b22bf3fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 124928b22bf3fSmrg# by configure, so config.status won't be able to write to it; its 124938b22bf3fSmrg# output is simply discarded. So we exec the FD to /dev/null, 124948b22bf3fSmrg# effectively closing config.log, so it can be properly (re)opened and 124958b22bf3fSmrg# appended to by config.status. When coming back to configure, we 124968b22bf3fSmrg# need to make the FD available again. 124978b22bf3fSmrgif test "$no_create" != yes; then 124988b22bf3fSmrg ac_cs_success=: 124998b22bf3fSmrg ac_config_status_args= 125008b22bf3fSmrg test "$silent" = yes && 125018b22bf3fSmrg ac_config_status_args="$ac_config_status_args --quiet" 125028b22bf3fSmrg exec 5>/dev/null 125038b22bf3fSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 125048b22bf3fSmrg exec 5>>config.log 125058b22bf3fSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 125068b22bf3fSmrg # would make configure fail if this is the last instruction. 125075bd32fd1Smrg $ac_cs_success || as_fn_exit 1 125088b22bf3fSmrgfi 1250996a81b41Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 125105bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 1251196a81b41Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 1251296a81b41Smrgfi 125138b22bf3fSmrg 12514