172b4363aSmrg#! /bin/sh 272b4363aSmrg# Guess values for system-dependent variables and create Makefiles. 37ed541caSmrg# Generated by GNU Autoconf 2.71 for xgamma 1.0.7. 472b4363aSmrg# 57ed541caSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues>. 672b4363aSmrg# 708e312fdSmrg# 87ed541caSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 97ed541caSmrg# Inc. 1008e312fdSmrg# 1108e312fdSmrg# 1272b4363aSmrg# This configure script is free software; the Free Software Foundation 1372b4363aSmrg# gives unlimited permission to copy, distribute and modify it. 1408e312fdSmrg## -------------------- ## 1508e312fdSmrg## M4sh Initialization. ## 1608e312fdSmrg## -------------------- ## 1772b4363aSmrg 1872b4363aSmrg# Be more Bourne compatible 1972b4363aSmrgDUALCASE=1; export DUALCASE # for MKS sh 207ed541caSmrgas_nop=: 217ed541caSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 227ed541caSmrgthen : 2372b4363aSmrg emulate sh 2472b4363aSmrg NULLCMD=: 25dd77ae96Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2672b4363aSmrg # is contrary to our usage. Disable this feature. 2772b4363aSmrg alias -g '${1+"$@"}'='"$@"' 2872b4363aSmrg setopt NO_GLOB_SUBST 297ed541caSmrgelse $as_nop 3008e312fdSmrg case `(set -o) 2>/dev/null` in #( 3108e312fdSmrg *posix*) : 3208e312fdSmrg set -o posix ;; #( 3308e312fdSmrg *) : 3408e312fdSmrg ;; 3572b4363aSmrgesac 3672b4363aSmrgfi 3772b4363aSmrg 3872b4363aSmrg 397ed541caSmrg 407ed541caSmrg# Reset variables that may have inherited troublesome values from 417ed541caSmrg# the environment. 427ed541caSmrg 437ed541caSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 447ed541caSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 457ed541caSmrg# side effect of setting IFS to empty, thus disabling word splitting.) 467ed541caSmrg# Quoting is to prevent editors from complaining about space-tab. 47dd77ae96Smrgas_nl=' 48dd77ae96Smrg' 49dd77ae96Smrgexport as_nl 507ed541caSmrgIFS=" "" $as_nl" 517ed541caSmrg 527ed541caSmrgPS1='$ ' 537ed541caSmrgPS2='> ' 547ed541caSmrgPS4='+ ' 557ed541caSmrg 567ed541caSmrg# Ensure predictable behavior from utilities with locale-dependent output. 577ed541caSmrgLC_ALL=C 587ed541caSmrgexport LC_ALL 597ed541caSmrgLANGUAGE=C 607ed541caSmrgexport LANGUAGE 617ed541caSmrg 627ed541caSmrg# We cannot yet rely on "unset" to work, but we need these variables 637ed541caSmrg# to be unset--not just set to an empty or harmless value--now, to 647ed541caSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 657ed541caSmrg# also avoids known problems related to "unset" and subshell syntax 667ed541caSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 677ed541caSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 687ed541caSmrgdo eval test \${$as_var+y} \ 697ed541caSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 707ed541caSmrgdone 717ed541caSmrg 727ed541caSmrg# Ensure that fds 0, 1, and 2 are open. 737ed541caSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 747ed541caSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 757ed541caSmrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76dd77ae96Smrg 77dd77ae96Smrg# The user is always right. 787ed541caSmrgif ${PATH_SEPARATOR+false} :; then 79dd77ae96Smrg PATH_SEPARATOR=: 80dd77ae96Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81dd77ae96Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82dd77ae96Smrg PATH_SEPARATOR=';' 83dd77ae96Smrg } 8472b4363aSmrgfi 8572b4363aSmrg 8672b4363aSmrg 8772b4363aSmrg# Find who we are. Look in the path if we contain no directory separator. 8808e312fdSmrgas_myself= 8908e312fdSmrgcase $0 in #(( 9072b4363aSmrg *[\\/]* ) as_myself=$0 ;; 9172b4363aSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9272b4363aSmrgfor as_dir in $PATH 9372b4363aSmrgdo 9472b4363aSmrg IFS=$as_save_IFS 957ed541caSmrg case $as_dir in #((( 967ed541caSmrg '') as_dir=./ ;; 977ed541caSmrg */) ;; 987ed541caSmrg *) as_dir=$as_dir/ ;; 997ed541caSmrg esac 1007ed541caSmrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 10108e312fdSmrg done 10272b4363aSmrgIFS=$as_save_IFS 10372b4363aSmrg 10472b4363aSmrg ;; 10572b4363aSmrgesac 10672b4363aSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 10772b4363aSmrg# in which case we are not to be found in the path. 10872b4363aSmrgif test "x$as_myself" = x; then 10972b4363aSmrg as_myself=$0 11072b4363aSmrgfi 11172b4363aSmrgif test ! -f "$as_myself"; then 1127ed541caSmrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11308e312fdSmrg exit 1 11472b4363aSmrgfi 11572b4363aSmrg 11608e312fdSmrg 11733dddc75Smrg# Use a proper internal environment variable to ensure we don't fall 11833dddc75Smrg # into an infinite loop, continuously re-executing ourselves. 11933dddc75Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 12033dddc75Smrg _as_can_reexec=no; export _as_can_reexec; 12133dddc75Smrg # We cannot yet assume a decent shell, so we have to provide a 12233dddc75Smrg# neutralization value for shells without unset; and this also 12333dddc75Smrg# works around shells that cannot unset nonexistent variables. 12433dddc75Smrg# Preserve -v and -x to the replacement shell. 12533dddc75SmrgBASH_ENV=/dev/null 12633dddc75SmrgENV=/dev/null 12733dddc75Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 12833dddc75Smrgcase $- in # (((( 12933dddc75Smrg *v*x* | *x*v* ) as_opts=-vx ;; 13033dddc75Smrg *v* ) as_opts=-v ;; 13133dddc75Smrg *x* ) as_opts=-x ;; 13233dddc75Smrg * ) as_opts= ;; 13333dddc75Smrgesac 13433dddc75Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 13533dddc75Smrg# Admittedly, this is quite paranoid, since all the known shells bail 13633dddc75Smrg# out after a failed `exec'. 1377ed541caSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 1387ed541caSmrgexit 255 13933dddc75Smrg fi 14033dddc75Smrg # We don't want this to propagate to other subprocesses. 14133dddc75Smrg { _as_can_reexec=; unset _as_can_reexec;} 14208e312fdSmrgif test "x$CONFIG_SHELL" = x; then 1437ed541caSmrg as_bourne_compatible="as_nop=: 1447ed541caSmrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 1457ed541caSmrgthen : 14608e312fdSmrg emulate sh 14708e312fdSmrg NULLCMD=: 14808e312fdSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 14908e312fdSmrg # is contrary to our usage. Disable this feature. 15008e312fdSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 15108e312fdSmrg setopt NO_GLOB_SUBST 1527ed541caSmrgelse \$as_nop 15308e312fdSmrg case \`(set -o) 2>/dev/null\` in #( 15408e312fdSmrg *posix*) : 15508e312fdSmrg set -o posix ;; #( 15608e312fdSmrg *) : 15708e312fdSmrg ;; 15808e312fdSmrgesac 15908e312fdSmrgfi 16008e312fdSmrg" 16108e312fdSmrg as_required="as_fn_return () { (exit \$1); } 16208e312fdSmrgas_fn_success () { as_fn_return 0; } 16308e312fdSmrgas_fn_failure () { as_fn_return 1; } 16408e312fdSmrgas_fn_ret_success () { return 0; } 16508e312fdSmrgas_fn_ret_failure () { return 1; } 16608e312fdSmrg 16708e312fdSmrgexitcode=0 16808e312fdSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 16908e312fdSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 17008e312fdSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 17108e312fdSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1727ed541caSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ) 1737ed541caSmrgthen : 17408e312fdSmrg 1757ed541caSmrgelse \$as_nop 17608e312fdSmrg exitcode=1; echo positional parameters were not saved. 17708e312fdSmrgfi 17833dddc75Smrgtest x\$exitcode = x0 || exit 1 1797ed541caSmrgblah=\$(echo \$(echo blah)) 1807ed541caSmrgtest x\"\$blah\" = xblah || exit 1 18133dddc75Smrgtest -x / || exit 1" 18208e312fdSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 18308e312fdSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 18408e312fdSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 18508e312fdSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 18608e312fdSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 1877ed541caSmrg if (eval "$as_required") 2>/dev/null 1887ed541caSmrgthen : 18908e312fdSmrg as_have_required=yes 1907ed541caSmrgelse $as_nop 19108e312fdSmrg as_have_required=no 19208e312fdSmrgfi 1937ed541caSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 1947ed541caSmrgthen : 19508e312fdSmrg 1967ed541caSmrgelse $as_nop 19708e312fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19808e312fdSmrgas_found=false 19908e312fdSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20008e312fdSmrgdo 20108e312fdSmrg IFS=$as_save_IFS 2027ed541caSmrg case $as_dir in #((( 2037ed541caSmrg '') as_dir=./ ;; 2047ed541caSmrg */) ;; 2057ed541caSmrg *) as_dir=$as_dir/ ;; 2067ed541caSmrg esac 20708e312fdSmrg as_found=: 20808e312fdSmrg case $as_dir in #( 20908e312fdSmrg /*) 21008e312fdSmrg for as_base in sh bash ksh sh5; do 21108e312fdSmrg # Try only shells that exist, to save several forks. 2127ed541caSmrg as_shell=$as_dir$as_base 21308e312fdSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2147ed541caSmrg as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2157ed541caSmrgthen : 21608e312fdSmrg CONFIG_SHELL=$as_shell as_have_required=yes 2177ed541caSmrg if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 2187ed541caSmrgthen : 21908e312fdSmrg break 2 22008e312fdSmrgfi 22108e312fdSmrgfi 22208e312fdSmrg done;; 22308e312fdSmrg esac 22408e312fdSmrg as_found=false 22508e312fdSmrgdone 22608e312fdSmrgIFS=$as_save_IFS 2277ed541caSmrgif $as_found 2287ed541caSmrgthen : 2297ed541caSmrg 2307ed541caSmrgelse $as_nop 2317ed541caSmrg if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2327ed541caSmrg as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 2337ed541caSmrgthen : 2347ed541caSmrg CONFIG_SHELL=$SHELL as_have_required=yes 2357ed541caSmrgfi 2367ed541caSmrgfi 23708e312fdSmrg 23808e312fdSmrg 2397ed541caSmrg if test "x$CONFIG_SHELL" != x 2407ed541caSmrgthen : 24133dddc75Smrg export CONFIG_SHELL 24233dddc75Smrg # We cannot yet assume a decent shell, so we have to provide a 24333dddc75Smrg# neutralization value for shells without unset; and this also 24433dddc75Smrg# works around shells that cannot unset nonexistent variables. 24533dddc75Smrg# Preserve -v and -x to the replacement shell. 24633dddc75SmrgBASH_ENV=/dev/null 24733dddc75SmrgENV=/dev/null 24833dddc75Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 24933dddc75Smrgcase $- in # (((( 25033dddc75Smrg *v*x* | *x*v* ) as_opts=-vx ;; 25133dddc75Smrg *v* ) as_opts=-v ;; 25233dddc75Smrg *x* ) as_opts=-x ;; 25333dddc75Smrg * ) as_opts= ;; 25433dddc75Smrgesac 25533dddc75Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 25633dddc75Smrg# Admittedly, this is quite paranoid, since all the known shells bail 25733dddc75Smrg# out after a failed `exec'. 2587ed541caSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 25933dddc75Smrgexit 255 26008e312fdSmrgfi 26108e312fdSmrg 2627ed541caSmrg if test x$as_have_required = xno 2637ed541caSmrgthen : 2647ed541caSmrg printf "%s\n" "$0: This script requires a shell more modern than all" 2657ed541caSmrg printf "%s\n" "$0: the shells that I found on your system." 2667ed541caSmrg if test ${ZSH_VERSION+y} ; then 2677ed541caSmrg printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2687ed541caSmrg printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 26908e312fdSmrg else 2707ed541caSmrg printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 2717ed541caSmrg$0: https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues 27208e312fdSmrg$0: about your system, including any error possibly output 27308e312fdSmrg$0: before this message. Then install a modern shell, or 27408e312fdSmrg$0: manually run the script under such a shell if you do 27508e312fdSmrg$0: have one." 27608e312fdSmrg fi 27708e312fdSmrg exit 1 27808e312fdSmrgfi 27908e312fdSmrgfi 28008e312fdSmrgfi 28108e312fdSmrgSHELL=${CONFIG_SHELL-/bin/sh} 28208e312fdSmrgexport SHELL 28308e312fdSmrg# Unset more variables known to interfere with behavior of common tools. 28408e312fdSmrgCLICOLOR_FORCE= GREP_OPTIONS= 28508e312fdSmrgunset CLICOLOR_FORCE GREP_OPTIONS 28608e312fdSmrg 28708e312fdSmrg## --------------------- ## 28808e312fdSmrg## M4sh Shell Functions. ## 28908e312fdSmrg## --------------------- ## 29008e312fdSmrg# as_fn_unset VAR 29108e312fdSmrg# --------------- 29208e312fdSmrg# Portably unset VAR. 29308e312fdSmrgas_fn_unset () 29408e312fdSmrg{ 29508e312fdSmrg { eval $1=; unset $1;} 29608e312fdSmrg} 29708e312fdSmrgas_unset=as_fn_unset 29808e312fdSmrg 2997ed541caSmrg 30008e312fdSmrg# as_fn_set_status STATUS 30108e312fdSmrg# ----------------------- 30208e312fdSmrg# Set $? to STATUS, without forking. 30308e312fdSmrgas_fn_set_status () 30408e312fdSmrg{ 30508e312fdSmrg return $1 30608e312fdSmrg} # as_fn_set_status 30708e312fdSmrg 30808e312fdSmrg# as_fn_exit STATUS 30908e312fdSmrg# ----------------- 31008e312fdSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 31108e312fdSmrgas_fn_exit () 31208e312fdSmrg{ 31308e312fdSmrg set +e 31408e312fdSmrg as_fn_set_status $1 31508e312fdSmrg exit $1 31608e312fdSmrg} # as_fn_exit 3177ed541caSmrg# as_fn_nop 3187ed541caSmrg# --------- 3197ed541caSmrg# Do nothing but, unlike ":", preserve the value of $?. 3207ed541caSmrgas_fn_nop () 3217ed541caSmrg{ 3227ed541caSmrg return $? 3237ed541caSmrg} 3247ed541caSmrgas_nop=as_fn_nop 32508e312fdSmrg 32608e312fdSmrg# as_fn_mkdir_p 32708e312fdSmrg# ------------- 32808e312fdSmrg# Create "$as_dir" as a directory, including parents if necessary. 32908e312fdSmrgas_fn_mkdir_p () 33008e312fdSmrg{ 33108e312fdSmrg 33208e312fdSmrg case $as_dir in #( 33308e312fdSmrg -*) as_dir=./$as_dir;; 33408e312fdSmrg esac 33508e312fdSmrg test -d "$as_dir" || eval $as_mkdir_p || { 33608e312fdSmrg as_dirs= 33708e312fdSmrg while :; do 33808e312fdSmrg case $as_dir in #( 3397ed541caSmrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 34008e312fdSmrg *) as_qdir=$as_dir;; 34108e312fdSmrg esac 34208e312fdSmrg as_dirs="'$as_qdir' $as_dirs" 34308e312fdSmrg as_dir=`$as_dirname -- "$as_dir" || 34408e312fdSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34508e312fdSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 34608e312fdSmrg X"$as_dir" : 'X\(//\)$' \| \ 34708e312fdSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3487ed541caSmrgprintf "%s\n" X"$as_dir" | 34908e312fdSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35008e312fdSmrg s//\1/ 35108e312fdSmrg q 35208e312fdSmrg } 35308e312fdSmrg /^X\(\/\/\)[^/].*/{ 35408e312fdSmrg s//\1/ 35508e312fdSmrg q 35608e312fdSmrg } 35708e312fdSmrg /^X\(\/\/\)$/{ 35808e312fdSmrg s//\1/ 35908e312fdSmrg q 36008e312fdSmrg } 36108e312fdSmrg /^X\(\/\).*/{ 36208e312fdSmrg s//\1/ 36308e312fdSmrg q 36408e312fdSmrg } 36508e312fdSmrg s/.*/./; q'` 36608e312fdSmrg test -d "$as_dir" && break 36708e312fdSmrg done 36808e312fdSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 36908e312fdSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 37008e312fdSmrg 37108e312fdSmrg 37208e312fdSmrg} # as_fn_mkdir_p 37333dddc75Smrg 37433dddc75Smrg# as_fn_executable_p FILE 37533dddc75Smrg# ----------------------- 37633dddc75Smrg# Test if FILE is an executable regular file. 37733dddc75Smrgas_fn_executable_p () 37833dddc75Smrg{ 37933dddc75Smrg test -f "$1" && test -x "$1" 38033dddc75Smrg} # as_fn_executable_p 38108e312fdSmrg# as_fn_append VAR VALUE 38208e312fdSmrg# ---------------------- 38308e312fdSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 38408e312fdSmrg# advantage of any shell optimizations that allow amortized linear growth over 38508e312fdSmrg# repeated appends, instead of the typical quadratic growth present in naive 38608e312fdSmrg# implementations. 3877ed541caSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 3887ed541caSmrgthen : 38908e312fdSmrg eval 'as_fn_append () 39008e312fdSmrg { 39108e312fdSmrg eval $1+=\$2 39208e312fdSmrg }' 3937ed541caSmrgelse $as_nop 39408e312fdSmrg as_fn_append () 39508e312fdSmrg { 39608e312fdSmrg eval $1=\$$1\$2 39708e312fdSmrg } 39808e312fdSmrgfi # as_fn_append 39908e312fdSmrg 40008e312fdSmrg# as_fn_arith ARG... 40108e312fdSmrg# ------------------ 40208e312fdSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 40308e312fdSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 40408e312fdSmrg# must be portable across $(()) and expr. 4057ed541caSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 4067ed541caSmrgthen : 40708e312fdSmrg eval 'as_fn_arith () 40808e312fdSmrg { 40908e312fdSmrg as_val=$(( $* )) 41008e312fdSmrg }' 4117ed541caSmrgelse $as_nop 41208e312fdSmrg as_fn_arith () 41308e312fdSmrg { 41408e312fdSmrg as_val=`expr "$@" || test $? -eq 1` 41508e312fdSmrg } 41608e312fdSmrgfi # as_fn_arith 41708e312fdSmrg 4187ed541caSmrg# as_fn_nop 4197ed541caSmrg# --------- 4207ed541caSmrg# Do nothing but, unlike ":", preserve the value of $?. 4217ed541caSmrgas_fn_nop () 4227ed541caSmrg{ 4237ed541caSmrg return $? 4247ed541caSmrg} 4257ed541caSmrgas_nop=as_fn_nop 42608e312fdSmrg 42708e312fdSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 42808e312fdSmrg# ---------------------------------------- 42908e312fdSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 43008e312fdSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 43108e312fdSmrg# script with STATUS, using 1 if that was 0. 43208e312fdSmrgas_fn_error () 43308e312fdSmrg{ 43408e312fdSmrg as_status=$1; test $as_status -eq 0 && as_status=1 43508e312fdSmrg if test "$4"; then 43608e312fdSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4377ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 43808e312fdSmrg fi 4397ed541caSmrg printf "%s\n" "$as_me: error: $2" >&2 44008e312fdSmrg as_fn_exit $as_status 44108e312fdSmrg} # as_fn_error 44208e312fdSmrg 44372b4363aSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 44472b4363aSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 44572b4363aSmrg as_expr=expr 44672b4363aSmrgelse 44772b4363aSmrg as_expr=false 44872b4363aSmrgfi 44972b4363aSmrg 45072b4363aSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 45172b4363aSmrg as_basename=basename 45272b4363aSmrgelse 45372b4363aSmrg as_basename=false 45472b4363aSmrgfi 45572b4363aSmrg 45608e312fdSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 45708e312fdSmrg as_dirname=dirname 45808e312fdSmrgelse 45908e312fdSmrg as_dirname=false 46008e312fdSmrgfi 46172b4363aSmrg 46272b4363aSmrgas_me=`$as_basename -- "$0" || 46372b4363aSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 46472b4363aSmrg X"$0" : 'X\(//\)$' \| \ 46572b4363aSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4667ed541caSmrgprintf "%s\n" X/"$0" | 46772b4363aSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 46872b4363aSmrg s//\1/ 46972b4363aSmrg q 47072b4363aSmrg } 47172b4363aSmrg /^X\/\(\/\/\)$/{ 47272b4363aSmrg s//\1/ 47372b4363aSmrg q 47472b4363aSmrg } 47572b4363aSmrg /^X\/\(\/\).*/{ 47672b4363aSmrg s//\1/ 47772b4363aSmrg q 47872b4363aSmrg } 47972b4363aSmrg s/.*/./; q'` 48072b4363aSmrg 48108e312fdSmrg# Avoid depending upon Character Ranges. 48208e312fdSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 48308e312fdSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 48408e312fdSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 48508e312fdSmrgas_cr_digits='0123456789' 48608e312fdSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 48772b4363aSmrg 48872b4363aSmrg 48908e312fdSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 49008e312fdSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 49108e312fdSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 49208e312fdSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 49308e312fdSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 49408e312fdSmrg sed -n ' 49508e312fdSmrg p 49608e312fdSmrg /[$]LINENO/= 49708e312fdSmrg ' <$as_myself | 49808e312fdSmrg sed ' 49908e312fdSmrg s/[$]LINENO.*/&-/ 50008e312fdSmrg t lineno 50108e312fdSmrg b 50208e312fdSmrg :lineno 50308e312fdSmrg N 50408e312fdSmrg :loop 50508e312fdSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 50608e312fdSmrg t loop 50708e312fdSmrg s/-\n.*// 50808e312fdSmrg ' >$as_me.lineno && 50908e312fdSmrg chmod +x "$as_me.lineno" || 5107ed541caSmrg { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 51172b4363aSmrg 51233dddc75Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 51333dddc75Smrg # already done that, so ensure we don't try to do so again and fall 51433dddc75Smrg # in an infinite loop. This has already happened in practice. 51533dddc75Smrg _as_can_reexec=no; export _as_can_reexec 51608e312fdSmrg # Don't try to exec as it changes $[0], causing all sort of problems 51708e312fdSmrg # (the dirname of $[0] is not the place where we might find the 51808e312fdSmrg # original and so on. Autoconf is especially sensitive to this). 51908e312fdSmrg . "./$as_me.lineno" 52008e312fdSmrg # Exit status is that of the last command. 52108e312fdSmrg exit 52272b4363aSmrg} 52372b4363aSmrg 5247ed541caSmrg 5257ed541caSmrg# Determine whether it's possible to make 'echo' print without a newline. 5267ed541caSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 5277ed541caSmrg# for compatibility with existing Makefiles. 52808e312fdSmrgECHO_C= ECHO_N= ECHO_T= 52908e312fdSmrgcase `echo -n x` in #((((( 53008e312fdSmrg-n*) 53108e312fdSmrg case `echo 'xy\c'` in 53208e312fdSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 53308e312fdSmrg xy) ECHO_C='\c';; 53408e312fdSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 53508e312fdSmrg ECHO_T=' ';; 53608e312fdSmrg esac;; 53708e312fdSmrg*) 53808e312fdSmrg ECHO_N='-n';; 53908e312fdSmrgesac 54072b4363aSmrg 5417ed541caSmrg# For backward compatibility with old third-party macros, we provide 5427ed541caSmrg# the shell variables $as_echo and $as_echo_n. New code should use 5437ed541caSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 5447ed541caSmrgas_echo='printf %s\n' 5457ed541caSmrgas_echo_n='printf %s' 5467ed541caSmrg 5477ed541caSmrg 54808e312fdSmrgrm -f conf$$ conf$$.exe conf$$.file 54908e312fdSmrgif test -d conf$$.dir; then 55008e312fdSmrg rm -f conf$$.dir/conf$$.file 55108e312fdSmrgelse 55208e312fdSmrg rm -f conf$$.dir 55308e312fdSmrg mkdir conf$$.dir 2>/dev/null 55472b4363aSmrgfi 55508e312fdSmrgif (echo >conf$$.file) 2>/dev/null; then 55608e312fdSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 55708e312fdSmrg as_ln_s='ln -s' 55808e312fdSmrg # ... but there are two gotchas: 55908e312fdSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 56008e312fdSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 56133dddc75Smrg # In both cases, we have to default to `cp -pR'. 56208e312fdSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 56333dddc75Smrg as_ln_s='cp -pR' 56408e312fdSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 56508e312fdSmrg as_ln_s=ln 56608e312fdSmrg else 56733dddc75Smrg as_ln_s='cp -pR' 56808e312fdSmrg fi 56972b4363aSmrgelse 57033dddc75Smrg as_ln_s='cp -pR' 57172b4363aSmrgfi 57208e312fdSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 57308e312fdSmrgrmdir conf$$.dir 2>/dev/null 57472b4363aSmrg 57508e312fdSmrgif mkdir -p . 2>/dev/null; then 57608e312fdSmrg as_mkdir_p='mkdir -p "$as_dir"' 57708e312fdSmrgelse 57808e312fdSmrg test -d ./-p && rmdir ./-p 57908e312fdSmrg as_mkdir_p=false 58072b4363aSmrgfi 58172b4363aSmrg 58233dddc75Smrgas_test_x='test -x' 58333dddc75Smrgas_executable_p=as_fn_executable_p 58472b4363aSmrg 58508e312fdSmrg# Sed expression to map a string onto a valid CPP name. 58608e312fdSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 58772b4363aSmrg 58808e312fdSmrg# Sed expression to map a string onto a valid variable name. 58908e312fdSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 59072b4363aSmrg 59172b4363aSmrg 59208e312fdSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 59308e312fdSmrgexec 6>&1 59472b4363aSmrg 59572b4363aSmrg# Name of the host. 59608e312fdSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 59772b4363aSmrg# so uname gets run too. 59872b4363aSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 59972b4363aSmrg 60072b4363aSmrg# 60172b4363aSmrg# Initializations. 60272b4363aSmrg# 60372b4363aSmrgac_default_prefix=/usr/local 60472b4363aSmrgac_clean_files= 60572b4363aSmrgac_config_libobj_dir=. 60672b4363aSmrgLIBOBJS= 60772b4363aSmrgcross_compiling=no 60872b4363aSmrgsubdirs= 60972b4363aSmrgMFLAGS= 61072b4363aSmrgMAKEFLAGS= 61172b4363aSmrg 61272b4363aSmrg# Identity of this package. 61372b4363aSmrgPACKAGE_NAME='xgamma' 61472b4363aSmrgPACKAGE_TARNAME='xgamma' 6157ed541caSmrgPACKAGE_VERSION='1.0.7' 6167ed541caSmrgPACKAGE_STRING='xgamma 1.0.7' 6177ed541caSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues' 61808e312fdSmrgPACKAGE_URL='' 61972b4363aSmrg 62008e312fdSmrgac_unique_file="Makefile.am" 621dd77ae96Smrg# Factoring default headers for most tests. 622dd77ae96Smrgac_includes_default="\ 6237ed541caSmrg#include <stddef.h> 6247ed541caSmrg#ifdef HAVE_STDIO_H 6257ed541caSmrg# include <stdio.h> 626dd77ae96Smrg#endif 6277ed541caSmrg#ifdef HAVE_STDLIB_H 628dd77ae96Smrg# include <stdlib.h> 629dd77ae96Smrg#endif 630dd77ae96Smrg#ifdef HAVE_STRING_H 631dd77ae96Smrg# include <string.h> 632dd77ae96Smrg#endif 633dd77ae96Smrg#ifdef HAVE_INTTYPES_H 634dd77ae96Smrg# include <inttypes.h> 635dd77ae96Smrg#endif 636dd77ae96Smrg#ifdef HAVE_STDINT_H 637dd77ae96Smrg# include <stdint.h> 638dd77ae96Smrg#endif 6397ed541caSmrg#ifdef HAVE_STRINGS_H 6407ed541caSmrg# include <strings.h> 6417ed541caSmrg#endif 6427ed541caSmrg#ifdef HAVE_SYS_TYPES_H 6437ed541caSmrg# include <sys/types.h> 6447ed541caSmrg#endif 6457ed541caSmrg#ifdef HAVE_SYS_STAT_H 6467ed541caSmrg# include <sys/stat.h> 6477ed541caSmrg#endif 648dd77ae96Smrg#ifdef HAVE_UNISTD_H 649dd77ae96Smrg# include <unistd.h> 650dd77ae96Smrg#endif" 651dd77ae96Smrg 6527ed541caSmrgac_header_c_list= 653dd77ae96Smrgac_subst_vars='am__EXEEXT_FALSE 654dd77ae96Smrgam__EXEEXT_TRUE 655dd77ae96SmrgLTLIBOBJS 656dd77ae96SmrgLIBOBJS 65772b4363aSmrgXGAMMA_LIBS 658dd77ae96SmrgXGAMMA_CFLAGS 65908e312fdSmrgMAN_SUBSTS 66008e312fdSmrgXORG_MAN_PAGE 66172b4363aSmrgADMIN_MAN_DIR 662dd77ae96SmrgDRIVER_MAN_DIR 663dd77ae96SmrgMISC_MAN_DIR 664dd77ae96SmrgFILE_MAN_DIR 665dd77ae96SmrgLIB_MAN_DIR 666dd77ae96SmrgAPP_MAN_DIR 667dd77ae96SmrgADMIN_MAN_SUFFIX 668dd77ae96SmrgDRIVER_MAN_SUFFIX 669dd77ae96SmrgMISC_MAN_SUFFIX 670dd77ae96SmrgFILE_MAN_SUFFIX 671dd77ae96SmrgLIB_MAN_SUFFIX 672dd77ae96SmrgAPP_MAN_SUFFIX 67308e312fdSmrgSED 674dd77ae96Smrghost_os 675dd77ae96Smrghost_vendor 676dd77ae96Smrghost_cpu 677dd77ae96Smrghost 678dd77ae96Smrgbuild_os 679dd77ae96Smrgbuild_vendor 680dd77ae96Smrgbuild_cpu 681dd77ae96Smrgbuild 68208e312fdSmrgINSTALL_CMD 6837ed541caSmrgPKG_CONFIG_LIBDIR 6847ed541caSmrgPKG_CONFIG_PATH 68508e312fdSmrgPKG_CONFIG 686dd77ae96SmrgCHANGELOG_CMD 687eea2e341SmrgSTRICT_CFLAGS 688dd77ae96SmrgCWARNFLAGS 689eea2e341SmrgBASE_CFLAGS 690dd77ae96Smrgam__fastdepCC_FALSE 691dd77ae96Smrgam__fastdepCC_TRUE 692dd77ae96SmrgCCDEPMODE 69333dddc75Smrgam__nodep 694dd77ae96SmrgAMDEPBACKSLASH 695dd77ae96SmrgAMDEP_FALSE 696dd77ae96SmrgAMDEP_TRUE 697dd77ae96Smrgam__include 698dd77ae96SmrgDEPDIR 699dd77ae96SmrgOBJEXT 700dd77ae96SmrgEXEEXT 701dd77ae96Smrgac_ct_CC 702dd77ae96SmrgCPPFLAGS 703dd77ae96SmrgLDFLAGS 704dd77ae96SmrgCFLAGS 705dd77ae96SmrgCC 70633dddc75SmrgAM_BACKSLASH 70733dddc75SmrgAM_DEFAULT_VERBOSITY 70833dddc75SmrgAM_DEFAULT_V 70933dddc75SmrgAM_V 7107ed541caSmrgCSCOPE 7117ed541caSmrgETAGS 7127ed541caSmrgCTAGS 713dd77ae96Smrgam__untar 714dd77ae96Smrgam__tar 715dd77ae96SmrgAMTAR 716dd77ae96Smrgam__leading_dot 717dd77ae96SmrgSET_MAKE 718dd77ae96SmrgAWK 719dd77ae96Smrgmkdir_p 720dd77ae96SmrgMKDIR_P 721dd77ae96SmrgINSTALL_STRIP_PROGRAM 722dd77ae96SmrgSTRIP 723dd77ae96Smrginstall_sh 724dd77ae96SmrgMAKEINFO 725dd77ae96SmrgAUTOHEADER 726dd77ae96SmrgAUTOMAKE 727dd77ae96SmrgAUTOCONF 728dd77ae96SmrgACLOCAL 729dd77ae96SmrgVERSION 730dd77ae96SmrgPACKAGE 731dd77ae96SmrgCYGPATH_W 732dd77ae96Smrgam__isrc 733dd77ae96SmrgINSTALL_DATA 734dd77ae96SmrgINSTALL_SCRIPT 735dd77ae96SmrgINSTALL_PROGRAM 736dd77ae96Smrgtarget_alias 737dd77ae96Smrghost_alias 738dd77ae96Smrgbuild_alias 739dd77ae96SmrgLIBS 740dd77ae96SmrgECHO_T 741dd77ae96SmrgECHO_N 742dd77ae96SmrgECHO_C 743dd77ae96SmrgDEFS 744dd77ae96Smrgmandir 745dd77ae96Smrglocaledir 746dd77ae96Smrglibdir 747dd77ae96Smrgpsdir 748dd77ae96Smrgpdfdir 749dd77ae96Smrgdvidir 750dd77ae96Smrghtmldir 751dd77ae96Smrginfodir 752dd77ae96Smrgdocdir 753dd77ae96Smrgoldincludedir 754dd77ae96Smrgincludedir 7557ed541caSmrgrunstatedir 756dd77ae96Smrglocalstatedir 757dd77ae96Smrgsharedstatedir 758dd77ae96Smrgsysconfdir 759dd77ae96Smrgdatadir 760dd77ae96Smrgdatarootdir 761dd77ae96Smrglibexecdir 762dd77ae96Smrgsbindir 763dd77ae96Smrgbindir 764dd77ae96Smrgprogram_transform_name 765dd77ae96Smrgprefix 766dd77ae96Smrgexec_prefix 76708e312fdSmrgPACKAGE_URL 768dd77ae96SmrgPACKAGE_BUGREPORT 769dd77ae96SmrgPACKAGE_STRING 770dd77ae96SmrgPACKAGE_VERSION 771dd77ae96SmrgPACKAGE_TARNAME 772dd77ae96SmrgPACKAGE_NAME 773dd77ae96SmrgPATH_SEPARATOR 7747ed541caSmrgSHELL 7757ed541caSmrgam__quote' 77672b4363aSmrgac_subst_files='' 777dd77ae96Smrgac_user_opts=' 778dd77ae96Smrgenable_option_checking 77933dddc75Smrgenable_silent_rules 780dd77ae96Smrgenable_dependency_tracking 781eea2e341Smrgenable_selective_werror 782dd77ae96Smrgenable_strict_compilation 783dd77ae96Smrg' 78472b4363aSmrg ac_precious_vars='build_alias 78572b4363aSmrghost_alias 78672b4363aSmrgtarget_alias 78772b4363aSmrgCC 78872b4363aSmrgCFLAGS 78972b4363aSmrgLDFLAGS 79072b4363aSmrgLIBS 79172b4363aSmrgCPPFLAGS 79272b4363aSmrgPKG_CONFIG 7937ed541caSmrgPKG_CONFIG_PATH 7947ed541caSmrgPKG_CONFIG_LIBDIR 79572b4363aSmrgXGAMMA_CFLAGS 79672b4363aSmrgXGAMMA_LIBS' 79772b4363aSmrg 79872b4363aSmrg 79972b4363aSmrg# Initialize some variables set by options. 80072b4363aSmrgac_init_help= 80172b4363aSmrgac_init_version=false 802dd77ae96Smrgac_unrecognized_opts= 803dd77ae96Smrgac_unrecognized_sep= 80472b4363aSmrg# The variables have the same names as the options, with 80572b4363aSmrg# dashes changed to underlines. 80672b4363aSmrgcache_file=/dev/null 80772b4363aSmrgexec_prefix=NONE 80872b4363aSmrgno_create= 80972b4363aSmrgno_recursion= 81072b4363aSmrgprefix=NONE 81172b4363aSmrgprogram_prefix=NONE 81272b4363aSmrgprogram_suffix=NONE 81372b4363aSmrgprogram_transform_name=s,x,x, 81472b4363aSmrgsilent= 81572b4363aSmrgsite= 81672b4363aSmrgsrcdir= 81772b4363aSmrgverbose= 81872b4363aSmrgx_includes=NONE 81972b4363aSmrgx_libraries=NONE 82072b4363aSmrg 82172b4363aSmrg# Installation directory options. 82272b4363aSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 82372b4363aSmrg# and all the variables that are supposed to be based on exec_prefix 82472b4363aSmrg# by default will actually change. 82572b4363aSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 82672b4363aSmrg# (The list follows the same order as the GNU Coding Standards.) 82772b4363aSmrgbindir='${exec_prefix}/bin' 82872b4363aSmrgsbindir='${exec_prefix}/sbin' 82972b4363aSmrglibexecdir='${exec_prefix}/libexec' 83072b4363aSmrgdatarootdir='${prefix}/share' 83172b4363aSmrgdatadir='${datarootdir}' 83272b4363aSmrgsysconfdir='${prefix}/etc' 83372b4363aSmrgsharedstatedir='${prefix}/com' 83472b4363aSmrglocalstatedir='${prefix}/var' 8357ed541caSmrgrunstatedir='${localstatedir}/run' 83672b4363aSmrgincludedir='${prefix}/include' 83772b4363aSmrgoldincludedir='/usr/include' 83872b4363aSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 83972b4363aSmrginfodir='${datarootdir}/info' 84072b4363aSmrghtmldir='${docdir}' 84172b4363aSmrgdvidir='${docdir}' 84272b4363aSmrgpdfdir='${docdir}' 84372b4363aSmrgpsdir='${docdir}' 84472b4363aSmrglibdir='${exec_prefix}/lib' 84572b4363aSmrglocaledir='${datarootdir}/locale' 84672b4363aSmrgmandir='${datarootdir}/man' 84772b4363aSmrg 84872b4363aSmrgac_prev= 84972b4363aSmrgac_dashdash= 85072b4363aSmrgfor ac_option 85172b4363aSmrgdo 85272b4363aSmrg # If the previous option needs an argument, assign it. 85372b4363aSmrg if test -n "$ac_prev"; then 85472b4363aSmrg eval $ac_prev=\$ac_option 85572b4363aSmrg ac_prev= 85672b4363aSmrg continue 85772b4363aSmrg fi 85872b4363aSmrg 85972b4363aSmrg case $ac_option in 86008e312fdSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 86108e312fdSmrg *=) ac_optarg= ;; 86208e312fdSmrg *) ac_optarg=yes ;; 86372b4363aSmrg esac 86472b4363aSmrg 86572b4363aSmrg case $ac_dashdash$ac_option in 86672b4363aSmrg --) 86772b4363aSmrg ac_dashdash=yes ;; 86872b4363aSmrg 86972b4363aSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 87072b4363aSmrg ac_prev=bindir ;; 87172b4363aSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 87272b4363aSmrg bindir=$ac_optarg ;; 87372b4363aSmrg 87472b4363aSmrg -build | --build | --buil | --bui | --bu) 87572b4363aSmrg ac_prev=build_alias ;; 87672b4363aSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 87772b4363aSmrg build_alias=$ac_optarg ;; 87872b4363aSmrg 87972b4363aSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 88072b4363aSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 88172b4363aSmrg ac_prev=cache_file ;; 88272b4363aSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 88372b4363aSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 88472b4363aSmrg cache_file=$ac_optarg ;; 88572b4363aSmrg 88672b4363aSmrg --config-cache | -C) 88772b4363aSmrg cache_file=config.cache ;; 88872b4363aSmrg 88972b4363aSmrg -datadir | --datadir | --datadi | --datad) 89072b4363aSmrg ac_prev=datadir ;; 89172b4363aSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 89272b4363aSmrg datadir=$ac_optarg ;; 89372b4363aSmrg 89472b4363aSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 89572b4363aSmrg | --dataroo | --dataro | --datar) 89672b4363aSmrg ac_prev=datarootdir ;; 89772b4363aSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 89872b4363aSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 89972b4363aSmrg datarootdir=$ac_optarg ;; 90072b4363aSmrg 90172b4363aSmrg -disable-* | --disable-*) 902dd77ae96Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 90372b4363aSmrg # Reject names that are not valid shell variable names. 904dd77ae96Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9057ed541caSmrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 906dd77ae96Smrg ac_useropt_orig=$ac_useropt 9077ed541caSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 908dd77ae96Smrg case $ac_user_opts in 909dd77ae96Smrg *" 910dd77ae96Smrg"enable_$ac_useropt" 911dd77ae96Smrg"*) ;; 912dd77ae96Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 913dd77ae96Smrg ac_unrecognized_sep=', ';; 914dd77ae96Smrg esac 915dd77ae96Smrg eval enable_$ac_useropt=no ;; 91672b4363aSmrg 91772b4363aSmrg -docdir | --docdir | --docdi | --doc | --do) 91872b4363aSmrg ac_prev=docdir ;; 91972b4363aSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 92072b4363aSmrg docdir=$ac_optarg ;; 92172b4363aSmrg 92272b4363aSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 92372b4363aSmrg ac_prev=dvidir ;; 92472b4363aSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 92572b4363aSmrg dvidir=$ac_optarg ;; 92672b4363aSmrg 92772b4363aSmrg -enable-* | --enable-*) 928dd77ae96Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 92972b4363aSmrg # Reject names that are not valid shell variable names. 930dd77ae96Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9317ed541caSmrg as_fn_error $? "invalid feature name: \`$ac_useropt'" 932dd77ae96Smrg ac_useropt_orig=$ac_useropt 9337ed541caSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 934dd77ae96Smrg case $ac_user_opts in 935dd77ae96Smrg *" 936dd77ae96Smrg"enable_$ac_useropt" 937dd77ae96Smrg"*) ;; 938dd77ae96Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 939dd77ae96Smrg ac_unrecognized_sep=', ';; 940dd77ae96Smrg esac 941dd77ae96Smrg eval enable_$ac_useropt=\$ac_optarg ;; 94272b4363aSmrg 94372b4363aSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 94472b4363aSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 94572b4363aSmrg | --exec | --exe | --ex) 94672b4363aSmrg ac_prev=exec_prefix ;; 94772b4363aSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 94872b4363aSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 94972b4363aSmrg | --exec=* | --exe=* | --ex=*) 95072b4363aSmrg exec_prefix=$ac_optarg ;; 95172b4363aSmrg 95272b4363aSmrg -gas | --gas | --ga | --g) 95372b4363aSmrg # Obsolete; use --with-gas. 95472b4363aSmrg with_gas=yes ;; 95572b4363aSmrg 95672b4363aSmrg -help | --help | --hel | --he | -h) 95772b4363aSmrg ac_init_help=long ;; 95872b4363aSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 95972b4363aSmrg ac_init_help=recursive ;; 96072b4363aSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 96172b4363aSmrg ac_init_help=short ;; 96272b4363aSmrg 96372b4363aSmrg -host | --host | --hos | --ho) 96472b4363aSmrg ac_prev=host_alias ;; 96572b4363aSmrg -host=* | --host=* | --hos=* | --ho=*) 96672b4363aSmrg host_alias=$ac_optarg ;; 96772b4363aSmrg 96872b4363aSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 96972b4363aSmrg ac_prev=htmldir ;; 97072b4363aSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 97172b4363aSmrg | --ht=*) 97272b4363aSmrg htmldir=$ac_optarg ;; 97372b4363aSmrg 97472b4363aSmrg -includedir | --includedir | --includedi | --included | --include \ 97572b4363aSmrg | --includ | --inclu | --incl | --inc) 97672b4363aSmrg ac_prev=includedir ;; 97772b4363aSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 97872b4363aSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 97972b4363aSmrg includedir=$ac_optarg ;; 98072b4363aSmrg 98172b4363aSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 98272b4363aSmrg ac_prev=infodir ;; 98372b4363aSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 98472b4363aSmrg infodir=$ac_optarg ;; 98572b4363aSmrg 98672b4363aSmrg -libdir | --libdir | --libdi | --libd) 98772b4363aSmrg ac_prev=libdir ;; 98872b4363aSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 98972b4363aSmrg libdir=$ac_optarg ;; 99072b4363aSmrg 99172b4363aSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 99272b4363aSmrg | --libexe | --libex | --libe) 99372b4363aSmrg ac_prev=libexecdir ;; 99472b4363aSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 99572b4363aSmrg | --libexe=* | --libex=* | --libe=*) 99672b4363aSmrg libexecdir=$ac_optarg ;; 99772b4363aSmrg 99872b4363aSmrg -localedir | --localedir | --localedi | --localed | --locale) 99972b4363aSmrg ac_prev=localedir ;; 100072b4363aSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 100172b4363aSmrg localedir=$ac_optarg ;; 100272b4363aSmrg 100372b4363aSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 100472b4363aSmrg | --localstate | --localstat | --localsta | --localst | --locals) 100572b4363aSmrg ac_prev=localstatedir ;; 100672b4363aSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 100772b4363aSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 100872b4363aSmrg localstatedir=$ac_optarg ;; 100972b4363aSmrg 101072b4363aSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 101172b4363aSmrg ac_prev=mandir ;; 101272b4363aSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 101372b4363aSmrg mandir=$ac_optarg ;; 101472b4363aSmrg 101572b4363aSmrg -nfp | --nfp | --nf) 101672b4363aSmrg # Obsolete; use --without-fp. 101772b4363aSmrg with_fp=no ;; 101872b4363aSmrg 101972b4363aSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 102072b4363aSmrg | --no-cr | --no-c | -n) 102172b4363aSmrg no_create=yes ;; 102272b4363aSmrg 102372b4363aSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 102472b4363aSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 102572b4363aSmrg no_recursion=yes ;; 102672b4363aSmrg 102772b4363aSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 102872b4363aSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 102972b4363aSmrg | --oldin | --oldi | --old | --ol | --o) 103072b4363aSmrg ac_prev=oldincludedir ;; 103172b4363aSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 103272b4363aSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 103372b4363aSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 103472b4363aSmrg oldincludedir=$ac_optarg ;; 103572b4363aSmrg 103672b4363aSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 103772b4363aSmrg ac_prev=prefix ;; 103872b4363aSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 103972b4363aSmrg prefix=$ac_optarg ;; 104072b4363aSmrg 104172b4363aSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 104272b4363aSmrg | --program-pre | --program-pr | --program-p) 104372b4363aSmrg ac_prev=program_prefix ;; 104472b4363aSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 104572b4363aSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 104672b4363aSmrg program_prefix=$ac_optarg ;; 104772b4363aSmrg 104872b4363aSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 104972b4363aSmrg | --program-suf | --program-su | --program-s) 105072b4363aSmrg ac_prev=program_suffix ;; 105172b4363aSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 105272b4363aSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 105372b4363aSmrg program_suffix=$ac_optarg ;; 105472b4363aSmrg 105572b4363aSmrg -program-transform-name | --program-transform-name \ 105672b4363aSmrg | --program-transform-nam | --program-transform-na \ 105772b4363aSmrg | --program-transform-n | --program-transform- \ 105872b4363aSmrg | --program-transform | --program-transfor \ 105972b4363aSmrg | --program-transfo | --program-transf \ 106072b4363aSmrg | --program-trans | --program-tran \ 106172b4363aSmrg | --progr-tra | --program-tr | --program-t) 106272b4363aSmrg ac_prev=program_transform_name ;; 106372b4363aSmrg -program-transform-name=* | --program-transform-name=* \ 106472b4363aSmrg | --program-transform-nam=* | --program-transform-na=* \ 106572b4363aSmrg | --program-transform-n=* | --program-transform-=* \ 106672b4363aSmrg | --program-transform=* | --program-transfor=* \ 106772b4363aSmrg | --program-transfo=* | --program-transf=* \ 106872b4363aSmrg | --program-trans=* | --program-tran=* \ 106972b4363aSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 107072b4363aSmrg program_transform_name=$ac_optarg ;; 107172b4363aSmrg 107272b4363aSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 107372b4363aSmrg ac_prev=pdfdir ;; 107472b4363aSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 107572b4363aSmrg pdfdir=$ac_optarg ;; 107672b4363aSmrg 107772b4363aSmrg -psdir | --psdir | --psdi | --psd | --ps) 107872b4363aSmrg ac_prev=psdir ;; 107972b4363aSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 108072b4363aSmrg psdir=$ac_optarg ;; 108172b4363aSmrg 108272b4363aSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 108372b4363aSmrg | -silent | --silent | --silen | --sile | --sil) 108472b4363aSmrg silent=yes ;; 108572b4363aSmrg 10867ed541caSmrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 10877ed541caSmrg | --runstate | --runstat | --runsta | --runst | --runs \ 10887ed541caSmrg | --run | --ru | --r) 10897ed541caSmrg ac_prev=runstatedir ;; 10907ed541caSmrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 10917ed541caSmrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 10927ed541caSmrg | --run=* | --ru=* | --r=*) 10937ed541caSmrg runstatedir=$ac_optarg ;; 10947ed541caSmrg 109572b4363aSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 109672b4363aSmrg ac_prev=sbindir ;; 109772b4363aSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 109872b4363aSmrg | --sbi=* | --sb=*) 109972b4363aSmrg sbindir=$ac_optarg ;; 110072b4363aSmrg 110172b4363aSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 110272b4363aSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 110372b4363aSmrg | --sharedst | --shareds | --shared | --share | --shar \ 110472b4363aSmrg | --sha | --sh) 110572b4363aSmrg ac_prev=sharedstatedir ;; 110672b4363aSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 110772b4363aSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 110872b4363aSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 110972b4363aSmrg | --sha=* | --sh=*) 111072b4363aSmrg sharedstatedir=$ac_optarg ;; 111172b4363aSmrg 111272b4363aSmrg -site | --site | --sit) 111372b4363aSmrg ac_prev=site ;; 111472b4363aSmrg -site=* | --site=* | --sit=*) 111572b4363aSmrg site=$ac_optarg ;; 111672b4363aSmrg 111772b4363aSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 111872b4363aSmrg ac_prev=srcdir ;; 111972b4363aSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 112072b4363aSmrg srcdir=$ac_optarg ;; 112172b4363aSmrg 112272b4363aSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 112372b4363aSmrg | --syscon | --sysco | --sysc | --sys | --sy) 112472b4363aSmrg ac_prev=sysconfdir ;; 112572b4363aSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 112672b4363aSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 112772b4363aSmrg sysconfdir=$ac_optarg ;; 112872b4363aSmrg 112972b4363aSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 113072b4363aSmrg ac_prev=target_alias ;; 113172b4363aSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 113272b4363aSmrg target_alias=$ac_optarg ;; 113372b4363aSmrg 113472b4363aSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 113572b4363aSmrg verbose=yes ;; 113672b4363aSmrg 113772b4363aSmrg -version | --version | --versio | --versi | --vers | -V) 113872b4363aSmrg ac_init_version=: ;; 113972b4363aSmrg 114072b4363aSmrg -with-* | --with-*) 1141dd77ae96Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 114272b4363aSmrg # Reject names that are not valid shell variable names. 1143dd77ae96Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11447ed541caSmrg as_fn_error $? "invalid package name: \`$ac_useropt'" 1145dd77ae96Smrg ac_useropt_orig=$ac_useropt 11467ed541caSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1147dd77ae96Smrg case $ac_user_opts in 1148dd77ae96Smrg *" 1149dd77ae96Smrg"with_$ac_useropt" 1150dd77ae96Smrg"*) ;; 1151dd77ae96Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1152dd77ae96Smrg ac_unrecognized_sep=', ';; 1153dd77ae96Smrg esac 1154dd77ae96Smrg eval with_$ac_useropt=\$ac_optarg ;; 115572b4363aSmrg 115672b4363aSmrg -without-* | --without-*) 1157dd77ae96Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 115872b4363aSmrg # Reject names that are not valid shell variable names. 1159dd77ae96Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11607ed541caSmrg as_fn_error $? "invalid package name: \`$ac_useropt'" 1161dd77ae96Smrg ac_useropt_orig=$ac_useropt 11627ed541caSmrg ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1163dd77ae96Smrg case $ac_user_opts in 1164dd77ae96Smrg *" 1165dd77ae96Smrg"with_$ac_useropt" 1166dd77ae96Smrg"*) ;; 1167dd77ae96Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1168dd77ae96Smrg ac_unrecognized_sep=', ';; 1169dd77ae96Smrg esac 1170dd77ae96Smrg eval with_$ac_useropt=no ;; 117172b4363aSmrg 117272b4363aSmrg --x) 117372b4363aSmrg # Obsolete; use --with-x. 117472b4363aSmrg with_x=yes ;; 117572b4363aSmrg 117672b4363aSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 117772b4363aSmrg | --x-incl | --x-inc | --x-in | --x-i) 117872b4363aSmrg ac_prev=x_includes ;; 117972b4363aSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 118072b4363aSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 118172b4363aSmrg x_includes=$ac_optarg ;; 118272b4363aSmrg 118372b4363aSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 118472b4363aSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 118572b4363aSmrg ac_prev=x_libraries ;; 118672b4363aSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 118772b4363aSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 118872b4363aSmrg x_libraries=$ac_optarg ;; 118972b4363aSmrg 119008e312fdSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 119108e312fdSmrgTry \`$0 --help' for more information" 119272b4363aSmrg ;; 119372b4363aSmrg 119472b4363aSmrg *=*) 119572b4363aSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 119672b4363aSmrg # Reject names that are not valid shell variable names. 119708e312fdSmrg case $ac_envvar in #( 119808e312fdSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 119908e312fdSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 120008e312fdSmrg esac 120172b4363aSmrg eval $ac_envvar=\$ac_optarg 120272b4363aSmrg export $ac_envvar ;; 120372b4363aSmrg 120472b4363aSmrg *) 120572b4363aSmrg # FIXME: should be removed in autoconf 3.0. 12067ed541caSmrg printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 120772b4363aSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 12087ed541caSmrg printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 120908e312fdSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 121072b4363aSmrg ;; 121172b4363aSmrg 121272b4363aSmrg esac 121372b4363aSmrgdone 121472b4363aSmrg 121572b4363aSmrgif test -n "$ac_prev"; then 121672b4363aSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 121708e312fdSmrg as_fn_error $? "missing argument to $ac_option" 121872b4363aSmrgfi 121972b4363aSmrg 1220dd77ae96Smrgif test -n "$ac_unrecognized_opts"; then 1221dd77ae96Smrg case $enable_option_checking in 1222dd77ae96Smrg no) ;; 122308e312fdSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 12247ed541caSmrg *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1225dd77ae96Smrg esac 1226dd77ae96Smrgfi 1227dd77ae96Smrg 1228dd77ae96Smrg# Check all directory arguments for consistency. 122972b4363aSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 123072b4363aSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 123172b4363aSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 12327ed541caSmrg libdir localedir mandir runstatedir 123372b4363aSmrgdo 123472b4363aSmrg eval ac_val=\$$ac_var 1235dd77ae96Smrg # Remove trailing slashes. 1236dd77ae96Smrg case $ac_val in 1237dd77ae96Smrg */ ) 1238dd77ae96Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1239dd77ae96Smrg eval $ac_var=\$ac_val;; 1240dd77ae96Smrg esac 1241dd77ae96Smrg # Be sure to have absolute directory names. 124272b4363aSmrg case $ac_val in 124372b4363aSmrg [\\/$]* | ?:[\\/]* ) continue;; 124472b4363aSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 124572b4363aSmrg esac 124608e312fdSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 124772b4363aSmrgdone 124872b4363aSmrg 124972b4363aSmrg# There might be people who depend on the old broken behavior: `$host' 125072b4363aSmrg# used to hold the argument of --host etc. 125172b4363aSmrg# FIXME: To remove some day. 125272b4363aSmrgbuild=$build_alias 125372b4363aSmrghost=$host_alias 125472b4363aSmrgtarget=$target_alias 125572b4363aSmrg 125672b4363aSmrg# FIXME: To remove some day. 125772b4363aSmrgif test "x$host_alias" != x; then 125872b4363aSmrg if test "x$build_alias" = x; then 125972b4363aSmrg cross_compiling=maybe 126072b4363aSmrg elif test "x$build_alias" != "x$host_alias"; then 126172b4363aSmrg cross_compiling=yes 126272b4363aSmrg fi 126372b4363aSmrgfi 126472b4363aSmrg 126572b4363aSmrgac_tool_prefix= 126672b4363aSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 126772b4363aSmrg 126872b4363aSmrgtest "$silent" = yes && exec 6>/dev/null 126972b4363aSmrg 127072b4363aSmrg 127172b4363aSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 127272b4363aSmrgac_ls_di=`ls -di .` && 127372b4363aSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 127408e312fdSmrg as_fn_error $? "working directory cannot be determined" 127572b4363aSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 127608e312fdSmrg as_fn_error $? "pwd does not report name of working directory" 127772b4363aSmrg 127872b4363aSmrg 127972b4363aSmrg# Find the source files, if location was not specified. 128072b4363aSmrgif test -z "$srcdir"; then 128172b4363aSmrg ac_srcdir_defaulted=yes 128272b4363aSmrg # Try the directory containing this script, then the parent directory. 1283dd77ae96Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1284dd77ae96Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1285dd77ae96Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1286dd77ae96Smrg X"$as_myself" : 'X\(//\)$' \| \ 1287dd77ae96Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12887ed541caSmrgprintf "%s\n" X"$as_myself" | 128972b4363aSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 129072b4363aSmrg s//\1/ 129172b4363aSmrg q 129272b4363aSmrg } 129372b4363aSmrg /^X\(\/\/\)[^/].*/{ 129472b4363aSmrg s//\1/ 129572b4363aSmrg q 129672b4363aSmrg } 129772b4363aSmrg /^X\(\/\/\)$/{ 129872b4363aSmrg s//\1/ 129972b4363aSmrg q 130072b4363aSmrg } 130172b4363aSmrg /^X\(\/\).*/{ 130272b4363aSmrg s//\1/ 130372b4363aSmrg q 130472b4363aSmrg } 130572b4363aSmrg s/.*/./; q'` 130672b4363aSmrg srcdir=$ac_confdir 130772b4363aSmrg if test ! -r "$srcdir/$ac_unique_file"; then 130872b4363aSmrg srcdir=.. 130972b4363aSmrg fi 131072b4363aSmrgelse 131172b4363aSmrg ac_srcdir_defaulted=no 131272b4363aSmrgfi 131372b4363aSmrgif test ! -r "$srcdir/$ac_unique_file"; then 131472b4363aSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 131508e312fdSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 131672b4363aSmrgfi 131772b4363aSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 131872b4363aSmrgac_abs_confdir=`( 131908e312fdSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 132072b4363aSmrg pwd)` 132172b4363aSmrg# When building in place, set srcdir=. 132272b4363aSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 132372b4363aSmrg srcdir=. 132472b4363aSmrgfi 132572b4363aSmrg# Remove unnecessary trailing slashes from srcdir. 132672b4363aSmrg# Double slashes in file names in object file debugging info 132772b4363aSmrg# mess up M-x gdb in Emacs. 132872b4363aSmrgcase $srcdir in 132972b4363aSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 133072b4363aSmrgesac 133172b4363aSmrgfor ac_var in $ac_precious_vars; do 133272b4363aSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 133372b4363aSmrg eval ac_env_${ac_var}_value=\$${ac_var} 133472b4363aSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 133572b4363aSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 133672b4363aSmrgdone 133772b4363aSmrg 133872b4363aSmrg# 133972b4363aSmrg# Report the --help message. 134072b4363aSmrg# 134172b4363aSmrgif test "$ac_init_help" = "long"; then 134272b4363aSmrg # Omit some internal or obsolete options to make the list less imposing. 134372b4363aSmrg # This message is too long to be a string in the A/UX 3.1 sh. 134472b4363aSmrg cat <<_ACEOF 13457ed541caSmrg\`configure' configures xgamma 1.0.7 to adapt to many kinds of systems. 134672b4363aSmrg 134772b4363aSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 134872b4363aSmrg 134972b4363aSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 135072b4363aSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 135172b4363aSmrg 135272b4363aSmrgDefaults for the options are specified in brackets. 135372b4363aSmrg 135472b4363aSmrgConfiguration: 135572b4363aSmrg -h, --help display this help and exit 135672b4363aSmrg --help=short display options specific to this package 135772b4363aSmrg --help=recursive display the short help of all the included packages 135872b4363aSmrg -V, --version display version information and exit 135908e312fdSmrg -q, --quiet, --silent do not print \`checking ...' messages 136072b4363aSmrg --cache-file=FILE cache test results in FILE [disabled] 136172b4363aSmrg -C, --config-cache alias for \`--cache-file=config.cache' 136272b4363aSmrg -n, --no-create do not create output files 136372b4363aSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 136472b4363aSmrg 136572b4363aSmrgInstallation directories: 136672b4363aSmrg --prefix=PREFIX install architecture-independent files in PREFIX 1367dd77ae96Smrg [$ac_default_prefix] 136872b4363aSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1369dd77ae96Smrg [PREFIX] 137072b4363aSmrg 137172b4363aSmrgBy default, \`make install' will install all the files in 137272b4363aSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 137372b4363aSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 137472b4363aSmrgfor instance \`--prefix=\$HOME'. 137572b4363aSmrg 137672b4363aSmrgFor better control, use the options below. 137772b4363aSmrg 137872b4363aSmrgFine tuning of the installation directories: 1379dd77ae96Smrg --bindir=DIR user executables [EPREFIX/bin] 1380dd77ae96Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1381dd77ae96Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1382dd77ae96Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1383dd77ae96Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1384dd77ae96Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13857ed541caSmrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1386dd77ae96Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1387dd77ae96Smrg --includedir=DIR C header files [PREFIX/include] 1388dd77ae96Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389dd77ae96Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390dd77ae96Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391dd77ae96Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1392dd77ae96Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393dd77ae96Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1394dd77ae96Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xgamma] 1395dd77ae96Smrg --htmldir=DIR html documentation [DOCDIR] 1396dd77ae96Smrg --dvidir=DIR dvi documentation [DOCDIR] 1397dd77ae96Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1398dd77ae96Smrg --psdir=DIR ps documentation [DOCDIR] 139972b4363aSmrg_ACEOF 140072b4363aSmrg 140172b4363aSmrg cat <<\_ACEOF 140272b4363aSmrg 140372b4363aSmrgProgram names: 140472b4363aSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 140572b4363aSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 140672b4363aSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 140772b4363aSmrg 140872b4363aSmrgSystem types: 140972b4363aSmrg --build=BUILD configure for building on BUILD [guessed] 141072b4363aSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 141172b4363aSmrg_ACEOF 141272b4363aSmrgfi 141372b4363aSmrg 141472b4363aSmrgif test -n "$ac_init_help"; then 141572b4363aSmrg case $ac_init_help in 14167ed541caSmrg short | recursive ) echo "Configuration of xgamma 1.0.7:";; 141772b4363aSmrg esac 141872b4363aSmrg cat <<\_ACEOF 141972b4363aSmrg 142072b4363aSmrgOptional Features: 1421dd77ae96Smrg --disable-option-checking ignore unrecognized --enable/--with options 142272b4363aSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 142372b4363aSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 142433dddc75Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 142533dddc75Smrg --disable-silent-rules verbose build output (undo: "make V=0") 142633dddc75Smrg --enable-dependency-tracking 142733dddc75Smrg do not reject slow dependency extractors 142833dddc75Smrg --disable-dependency-tracking 142933dddc75Smrg speeds up one-time build 1430eea2e341Smrg --disable-selective-werror 1431eea2e341Smrg Turn off selective compiler errors. (default: 1432eea2e341Smrg enabled) 1433dd77ae96Smrg --enable-strict-compilation 1434dd77ae96Smrg Enable all warnings from compiler and make them 1435dd77ae96Smrg errors (default: disabled) 143672b4363aSmrg 143772b4363aSmrgSome influential environment variables: 143872b4363aSmrg CC C compiler command 143972b4363aSmrg CFLAGS C compiler flags 144072b4363aSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 144172b4363aSmrg nonstandard directory <lib dir> 144272b4363aSmrg LIBS libraries to pass to the linker, e.g. -l<library> 144308e312fdSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 144472b4363aSmrg you have headers in a nonstandard directory <include dir> 144572b4363aSmrg PKG_CONFIG path to pkg-config utility 14467ed541caSmrg PKG_CONFIG_PATH 14477ed541caSmrg directories to add to pkg-config's search path 14487ed541caSmrg PKG_CONFIG_LIBDIR 14497ed541caSmrg path overriding pkg-config's built-in search path 145072b4363aSmrg XGAMMA_CFLAGS 145172b4363aSmrg C compiler flags for XGAMMA, overriding pkg-config 145272b4363aSmrg XGAMMA_LIBS linker flags for XGAMMA, overriding pkg-config 145372b4363aSmrg 145472b4363aSmrgUse these variables to override the choices made by `configure' or to help 145572b4363aSmrgit to find libraries and programs with nonstandard names/locations. 145672b4363aSmrg 14577ed541caSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues>. 145872b4363aSmrg_ACEOF 145972b4363aSmrgac_status=$? 146072b4363aSmrgfi 146172b4363aSmrg 146272b4363aSmrgif test "$ac_init_help" = "recursive"; then 146372b4363aSmrg # If there are subdirs, report their specific --help. 146472b4363aSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1465dd77ae96Smrg test -d "$ac_dir" || 1466dd77ae96Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1467dd77ae96Smrg continue 146872b4363aSmrg ac_builddir=. 146972b4363aSmrg 147072b4363aSmrgcase "$ac_dir" in 147172b4363aSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 147272b4363aSmrg*) 14737ed541caSmrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 147472b4363aSmrg # A ".." for each directory in $ac_dir_suffix. 14757ed541caSmrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 147672b4363aSmrg case $ac_top_builddir_sub in 147772b4363aSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 147872b4363aSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 147972b4363aSmrg esac ;; 148072b4363aSmrgesac 148172b4363aSmrgac_abs_top_builddir=$ac_pwd 148272b4363aSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 148372b4363aSmrg# for backward compatibility: 148472b4363aSmrgac_top_builddir=$ac_top_build_prefix 148572b4363aSmrg 148672b4363aSmrgcase $srcdir in 148772b4363aSmrg .) # We are building in place. 148872b4363aSmrg ac_srcdir=. 148972b4363aSmrg ac_top_srcdir=$ac_top_builddir_sub 149072b4363aSmrg ac_abs_top_srcdir=$ac_pwd ;; 149172b4363aSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 149272b4363aSmrg ac_srcdir=$srcdir$ac_dir_suffix; 149372b4363aSmrg ac_top_srcdir=$srcdir 149472b4363aSmrg ac_abs_top_srcdir=$srcdir ;; 149572b4363aSmrg *) # Relative name. 149672b4363aSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 149772b4363aSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 149872b4363aSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 149972b4363aSmrgesac 150072b4363aSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 150172b4363aSmrg 150272b4363aSmrg cd "$ac_dir" || { ac_status=$?; continue; } 15037ed541caSmrg # Check for configure.gnu first; this name is used for a wrapper for 15047ed541caSmrg # Metaconfig's "Configure" on case-insensitive file systems. 150572b4363aSmrg if test -f "$ac_srcdir/configure.gnu"; then 150672b4363aSmrg echo && 150772b4363aSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 150872b4363aSmrg elif test -f "$ac_srcdir/configure"; then 150972b4363aSmrg echo && 151072b4363aSmrg $SHELL "$ac_srcdir/configure" --help=recursive 151172b4363aSmrg else 15127ed541caSmrg printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 151372b4363aSmrg fi || ac_status=$? 151472b4363aSmrg cd "$ac_pwd" || { ac_status=$?; break; } 151572b4363aSmrg done 151672b4363aSmrgfi 151772b4363aSmrg 151872b4363aSmrgtest -n "$ac_init_help" && exit $ac_status 151972b4363aSmrgif $ac_init_version; then 152072b4363aSmrg cat <<\_ACEOF 15217ed541caSmrgxgamma configure 1.0.7 15227ed541caSmrggenerated by GNU Autoconf 2.71 152372b4363aSmrg 15247ed541caSmrgCopyright (C) 2021 Free Software Foundation, Inc. 152572b4363aSmrgThis configure script is free software; the Free Software Foundation 152672b4363aSmrggives unlimited permission to copy, distribute and modify it. 152772b4363aSmrg_ACEOF 152872b4363aSmrg exit 152972b4363aSmrgfi 153072b4363aSmrg 153108e312fdSmrg## ------------------------ ## 153208e312fdSmrg## Autoconf initialization. ## 153308e312fdSmrg## ------------------------ ## 153472b4363aSmrg 153508e312fdSmrg# ac_fn_c_try_compile LINENO 153608e312fdSmrg# -------------------------- 153708e312fdSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 153808e312fdSmrgac_fn_c_try_compile () 153972b4363aSmrg{ 154008e312fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15417ed541caSmrg rm -f conftest.$ac_objext conftest.beam 154208e312fdSmrg if { { ac_try="$ac_compile" 154308e312fdSmrgcase "(($ac_try" in 154408e312fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 154508e312fdSmrg *) ac_try_echo=$ac_try;; 154608e312fdSmrgesac 154708e312fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15487ed541caSmrgprintf "%s\n" "$ac_try_echo"; } >&5 154908e312fdSmrg (eval "$ac_compile") 2>conftest.err 155008e312fdSmrg ac_status=$? 155108e312fdSmrg if test -s conftest.err; then 155208e312fdSmrg grep -v '^ *+' conftest.err >conftest.er1 155308e312fdSmrg cat conftest.er1 >&5 155408e312fdSmrg mv -f conftest.er1 conftest.err 155508e312fdSmrg fi 15567ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 155708e312fdSmrg test $ac_status = 0; } && { 155808e312fdSmrg test -z "$ac_c_werror_flag" || 155908e312fdSmrg test ! -s conftest.err 15607ed541caSmrg } && test -s conftest.$ac_objext 15617ed541caSmrgthen : 156208e312fdSmrg ac_retval=0 15637ed541caSmrgelse $as_nop 15647ed541caSmrg printf "%s\n" "$as_me: failed program was:" >&5 156508e312fdSmrgsed 's/^/| /' conftest.$ac_ext >&5 156672b4363aSmrg 156708e312fdSmrg ac_retval=1 156808e312fdSmrgfi 156908e312fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 157008e312fdSmrg as_fn_set_status $ac_retval 157172b4363aSmrg 157208e312fdSmrg} # ac_fn_c_try_compile 157372b4363aSmrg 15747ed541caSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 15757ed541caSmrg# ------------------------------------------------------------------ 157608e312fdSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 15777ed541caSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 15787ed541caSmrgac_fn_check_decl () 157908e312fdSmrg{ 158008e312fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 158108e312fdSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 15827ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 15837ed541caSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; } 15847ed541caSmrgif eval test \${$3+y} 15857ed541caSmrgthen : 15867ed541caSmrg printf %s "(cached) " >&6 15877ed541caSmrgelse $as_nop 158808e312fdSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 15897ed541caSmrg eval ac_save_FLAGS=\$$6 15907ed541caSmrg as_fn_append $6 " $5" 159108e312fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 159208e312fdSmrg/* end confdefs.h. */ 159308e312fdSmrg$4 159408e312fdSmrgint 15957ed541caSmrgmain (void) 159608e312fdSmrg{ 159708e312fdSmrg#ifndef $as_decl_name 159808e312fdSmrg#ifdef __cplusplus 159908e312fdSmrg (void) $as_decl_use; 160008e312fdSmrg#else 160108e312fdSmrg (void) $as_decl_name; 160208e312fdSmrg#endif 160308e312fdSmrg#endif 160408e312fdSmrg 160508e312fdSmrg ; 160608e312fdSmrg return 0; 160708e312fdSmrg} 160808e312fdSmrg_ACEOF 16097ed541caSmrgif ac_fn_c_try_compile "$LINENO" 16107ed541caSmrgthen : 161108e312fdSmrg eval "$3=yes" 16127ed541caSmrgelse $as_nop 161308e312fdSmrg eval "$3=no" 161408e312fdSmrgfi 16157ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16167ed541caSmrg eval $6=\$ac_save_FLAGS 161708e312fdSmrg 161808e312fdSmrgfi 16197ed541caSmrgeval ac_res=\$$3 16207ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16217ed541caSmrgprintf "%s\n" "$ac_res" >&6; } 162208e312fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 162308e312fdSmrg 16247ed541caSmrg} # ac_fn_check_decl 162508e312fdSmrg 162608e312fdSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 162708e312fdSmrg# ------------------------------------------------------- 162808e312fdSmrg# Tests whether HEADER exists and can be compiled using the include files in 162908e312fdSmrg# INCLUDES, setting the cache variable VAR accordingly. 163008e312fdSmrgac_fn_c_check_header_compile () 163108e312fdSmrg{ 163208e312fdSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16337ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16347ed541caSmrgprintf %s "checking for $2... " >&6; } 16357ed541caSmrgif eval test \${$3+y} 16367ed541caSmrgthen : 16377ed541caSmrg printf %s "(cached) " >&6 16387ed541caSmrgelse $as_nop 163908e312fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 164008e312fdSmrg/* end confdefs.h. */ 164108e312fdSmrg$4 164208e312fdSmrg#include <$2> 164308e312fdSmrg_ACEOF 16447ed541caSmrgif ac_fn_c_try_compile "$LINENO" 16457ed541caSmrgthen : 164608e312fdSmrg eval "$3=yes" 16477ed541caSmrgelse $as_nop 164808e312fdSmrg eval "$3=no" 164908e312fdSmrgfi 16507ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 165108e312fdSmrgfi 165208e312fdSmrgeval ac_res=\$$3 16537ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16547ed541caSmrgprintf "%s\n" "$ac_res" >&6; } 165508e312fdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 165608e312fdSmrg 165708e312fdSmrg} # ac_fn_c_check_header_compile 1658eea2e341Smrg 1659eea2e341Smrg# ac_fn_c_try_link LINENO 1660eea2e341Smrg# ----------------------- 1661eea2e341Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1662eea2e341Smrgac_fn_c_try_link () 1663eea2e341Smrg{ 1664eea2e341Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16657ed541caSmrg rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1666eea2e341Smrg if { { ac_try="$ac_link" 1667eea2e341Smrgcase "(($ac_try" in 1668eea2e341Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669eea2e341Smrg *) ac_try_echo=$ac_try;; 1670eea2e341Smrgesac 1671eea2e341Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16727ed541caSmrgprintf "%s\n" "$ac_try_echo"; } >&5 1673eea2e341Smrg (eval "$ac_link") 2>conftest.err 1674eea2e341Smrg ac_status=$? 1675eea2e341Smrg if test -s conftest.err; then 1676eea2e341Smrg grep -v '^ *+' conftest.err >conftest.er1 1677eea2e341Smrg cat conftest.er1 >&5 1678eea2e341Smrg mv -f conftest.er1 conftest.err 1679eea2e341Smrg fi 16807ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681eea2e341Smrg test $ac_status = 0; } && { 1682eea2e341Smrg test -z "$ac_c_werror_flag" || 1683eea2e341Smrg test ! -s conftest.err 1684eea2e341Smrg } && test -s conftest$ac_exeext && { 1685eea2e341Smrg test "$cross_compiling" = yes || 168633dddc75Smrg test -x conftest$ac_exeext 16877ed541caSmrg } 16887ed541caSmrgthen : 1689eea2e341Smrg ac_retval=0 16907ed541caSmrgelse $as_nop 16917ed541caSmrg printf "%s\n" "$as_me: failed program was:" >&5 1692eea2e341Smrgsed 's/^/| /' conftest.$ac_ext >&5 1693eea2e341Smrg 1694eea2e341Smrg ac_retval=1 1695eea2e341Smrgfi 1696eea2e341Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1697eea2e341Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1698eea2e341Smrg # interfere with the next link command; also delete a directory that is 1699eea2e341Smrg # left behind by Apple's compiler. We do this before executing the actions. 1700eea2e341Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1701eea2e341Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1702eea2e341Smrg as_fn_set_status $ac_retval 1703eea2e341Smrg 1704eea2e341Smrg} # ac_fn_c_try_link 17057ed541caSmrg 17067ed541caSmrg# ac_fn_c_check_func LINENO FUNC VAR 17077ed541caSmrg# ---------------------------------- 17087ed541caSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 17097ed541caSmrgac_fn_c_check_func () 17107ed541caSmrg{ 17117ed541caSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17127ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17137ed541caSmrgprintf %s "checking for $2... " >&6; } 17147ed541caSmrgif eval test \${$3+y} 17157ed541caSmrgthen : 17167ed541caSmrg printf %s "(cached) " >&6 17177ed541caSmrgelse $as_nop 17187ed541caSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17197ed541caSmrg/* end confdefs.h. */ 17207ed541caSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 17217ed541caSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17227ed541caSmrg#define $2 innocuous_$2 17237ed541caSmrg 17247ed541caSmrg/* System header to define __stub macros and hopefully few prototypes, 17257ed541caSmrg which can conflict with char $2 (); below. */ 17267ed541caSmrg 17277ed541caSmrg#include <limits.h> 17287ed541caSmrg#undef $2 17297ed541caSmrg 17307ed541caSmrg/* Override any GCC internal prototype to avoid an error. 17317ed541caSmrg Use char because int might match the return type of a GCC 17327ed541caSmrg builtin and then its argument prototype would still apply. */ 17337ed541caSmrg#ifdef __cplusplus 17347ed541caSmrgextern "C" 17357ed541caSmrg#endif 17367ed541caSmrgchar $2 (); 17377ed541caSmrg/* The GNU C library defines this for functions which it implements 17387ed541caSmrg to always fail with ENOSYS. Some functions are actually named 17397ed541caSmrg something starting with __ and the normal name is an alias. */ 17407ed541caSmrg#if defined __stub_$2 || defined __stub___$2 17417ed541caSmrgchoke me 17427ed541caSmrg#endif 17437ed541caSmrg 17447ed541caSmrgint 17457ed541caSmrgmain (void) 17467ed541caSmrg{ 17477ed541caSmrgreturn $2 (); 17487ed541caSmrg ; 17497ed541caSmrg return 0; 17507ed541caSmrg} 17517ed541caSmrg_ACEOF 17527ed541caSmrgif ac_fn_c_try_link "$LINENO" 17537ed541caSmrgthen : 17547ed541caSmrg eval "$3=yes" 17557ed541caSmrgelse $as_nop 17567ed541caSmrg eval "$3=no" 17577ed541caSmrgfi 17587ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 17597ed541caSmrg conftest$ac_exeext conftest.$ac_ext 17607ed541caSmrgfi 17617ed541caSmrgeval ac_res=\$$3 17627ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17637ed541caSmrgprintf "%s\n" "$ac_res" >&6; } 17647ed541caSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17657ed541caSmrg 17667ed541caSmrg} # ac_fn_c_check_func 17677ed541caSmrgac_configure_args_raw= 17687ed541caSmrgfor ac_arg 17697ed541caSmrgdo 17707ed541caSmrg case $ac_arg in 17717ed541caSmrg *\'*) 17727ed541caSmrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17737ed541caSmrg esac 17747ed541caSmrg as_fn_append ac_configure_args_raw " '$ac_arg'" 17757ed541caSmrgdone 17767ed541caSmrg 17777ed541caSmrgcase $ac_configure_args_raw in 17787ed541caSmrg *$as_nl*) 17797ed541caSmrg ac_safe_unquote= ;; 17807ed541caSmrg *) 17817ed541caSmrg ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 17827ed541caSmrg ac_unsafe_a="$ac_unsafe_z#~" 17837ed541caSmrg ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 17847ed541caSmrg ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 17857ed541caSmrgesac 17867ed541caSmrg 178708e312fdSmrgcat >config.log <<_ACEOF 178808e312fdSmrgThis file contains any messages produced by compilers while 178908e312fdSmrgrunning configure, to aid debugging if configure makes a mistake. 179008e312fdSmrg 17917ed541caSmrgIt was created by xgamma $as_me 1.0.7, which was 17927ed541caSmrggenerated by GNU Autoconf 2.71. Invocation command line was 179308e312fdSmrg 17947ed541caSmrg $ $0$ac_configure_args_raw 179508e312fdSmrg 179608e312fdSmrg_ACEOF 179708e312fdSmrgexec 5>>config.log 179808e312fdSmrg{ 179908e312fdSmrgcat <<_ASUNAME 180008e312fdSmrg## --------- ## 180108e312fdSmrg## Platform. ## 180208e312fdSmrg## --------- ## 180308e312fdSmrg 180408e312fdSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 180508e312fdSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 180608e312fdSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 180708e312fdSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 180808e312fdSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 180908e312fdSmrg 181008e312fdSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 181108e312fdSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 181208e312fdSmrg 181308e312fdSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 181408e312fdSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 181508e312fdSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 181608e312fdSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 181708e312fdSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 181808e312fdSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 181908e312fdSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 182008e312fdSmrg 182108e312fdSmrg_ASUNAME 182208e312fdSmrg 182308e312fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 182472b4363aSmrgfor as_dir in $PATH 182572b4363aSmrgdo 182672b4363aSmrg IFS=$as_save_IFS 18277ed541caSmrg case $as_dir in #((( 18287ed541caSmrg '') as_dir=./ ;; 18297ed541caSmrg */) ;; 18307ed541caSmrg *) as_dir=$as_dir/ ;; 18317ed541caSmrg esac 18327ed541caSmrg printf "%s\n" "PATH: $as_dir" 183308e312fdSmrg done 183472b4363aSmrgIFS=$as_save_IFS 183572b4363aSmrg 183672b4363aSmrg} >&5 183772b4363aSmrg 183872b4363aSmrgcat >&5 <<_ACEOF 183972b4363aSmrg 184072b4363aSmrg 184172b4363aSmrg## ----------- ## 184272b4363aSmrg## Core tests. ## 184372b4363aSmrg## ----------- ## 184472b4363aSmrg 184572b4363aSmrg_ACEOF 184672b4363aSmrg 184772b4363aSmrg 184872b4363aSmrg# Keep a trace of the command line. 184972b4363aSmrg# Strip out --no-create and --no-recursion so they do not pile up. 185072b4363aSmrg# Strip out --silent because we don't want to record it for future runs. 185172b4363aSmrg# Also quote any args containing shell meta-characters. 185272b4363aSmrg# Make two passes to allow for proper duplicate-argument suppression. 185372b4363aSmrgac_configure_args= 185472b4363aSmrgac_configure_args0= 185572b4363aSmrgac_configure_args1= 185672b4363aSmrgac_must_keep_next=false 185772b4363aSmrgfor ac_pass in 1 2 185872b4363aSmrgdo 185972b4363aSmrg for ac_arg 186072b4363aSmrg do 186172b4363aSmrg case $ac_arg in 186272b4363aSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 186372b4363aSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 186472b4363aSmrg | -silent | --silent | --silen | --sile | --sil) 186572b4363aSmrg continue ;; 186672b4363aSmrg *\'*) 18677ed541caSmrg ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 186872b4363aSmrg esac 186972b4363aSmrg case $ac_pass in 187008e312fdSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 187172b4363aSmrg 2) 187208e312fdSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 187372b4363aSmrg if test $ac_must_keep_next = true; then 187472b4363aSmrg ac_must_keep_next=false # Got value, back to normal. 187572b4363aSmrg else 187672b4363aSmrg case $ac_arg in 187772b4363aSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 187872b4363aSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 187972b4363aSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 188072b4363aSmrg | -with-* | --with-* | -without-* | --without-* | --x) 188172b4363aSmrg case "$ac_configure_args0 " in 188272b4363aSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 188372b4363aSmrg esac 188472b4363aSmrg ;; 188572b4363aSmrg -* ) ac_must_keep_next=true ;; 188672b4363aSmrg esac 188772b4363aSmrg fi 188808e312fdSmrg as_fn_append ac_configure_args " '$ac_arg'" 188972b4363aSmrg ;; 189072b4363aSmrg esac 189172b4363aSmrg done 189272b4363aSmrgdone 189308e312fdSmrg{ ac_configure_args0=; unset ac_configure_args0;} 189408e312fdSmrg{ ac_configure_args1=; unset ac_configure_args1;} 189572b4363aSmrg 189672b4363aSmrg# When interrupted or exit'd, cleanup temporary files, and complete 189772b4363aSmrg# config.log. We remove comments because anyway the quotes in there 189872b4363aSmrg# would cause problems or look ugly. 189972b4363aSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 190072b4363aSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 190172b4363aSmrgtrap 'exit_status=$? 19027ed541caSmrg # Sanitize IFS. 19037ed541caSmrg IFS=" "" $as_nl" 190472b4363aSmrg # Save into config.log some information that might help in debugging. 190572b4363aSmrg { 190672b4363aSmrg echo 190772b4363aSmrg 19087ed541caSmrg printf "%s\n" "## ---------------- ## 190972b4363aSmrg## Cache variables. ## 191008e312fdSmrg## ---------------- ##" 191172b4363aSmrg echo 191272b4363aSmrg # The following way of writing the cache mishandles newlines in values, 191372b4363aSmrg( 191472b4363aSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 191572b4363aSmrg eval ac_val=\$$ac_var 191672b4363aSmrg case $ac_val in #( 191772b4363aSmrg *${as_nl}*) 191872b4363aSmrg case $ac_var in #( 19197ed541caSmrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19207ed541caSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 192172b4363aSmrg esac 192272b4363aSmrg case $ac_var in #( 192372b4363aSmrg _ | IFS | as_nl) ;; #( 1924dd77ae96Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 192508e312fdSmrg *) { eval $ac_var=; unset $ac_var;} ;; 192672b4363aSmrg esac ;; 192772b4363aSmrg esac 192872b4363aSmrg done 192972b4363aSmrg (set) 2>&1 | 193072b4363aSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 193172b4363aSmrg *${as_nl}ac_space=\ *) 193272b4363aSmrg sed -n \ 193372b4363aSmrg "s/'\''/'\''\\\\'\'''\''/g; 193472b4363aSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 193572b4363aSmrg ;; #( 193672b4363aSmrg *) 193772b4363aSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 193872b4363aSmrg ;; 193972b4363aSmrg esac | 194072b4363aSmrg sort 194172b4363aSmrg) 194272b4363aSmrg echo 194372b4363aSmrg 19447ed541caSmrg printf "%s\n" "## ----------------- ## 194572b4363aSmrg## Output variables. ## 194608e312fdSmrg## ----------------- ##" 194772b4363aSmrg echo 194872b4363aSmrg for ac_var in $ac_subst_vars 194972b4363aSmrg do 195072b4363aSmrg eval ac_val=\$$ac_var 195172b4363aSmrg case $ac_val in 19527ed541caSmrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 195372b4363aSmrg esac 19547ed541caSmrg printf "%s\n" "$ac_var='\''$ac_val'\''" 195572b4363aSmrg done | sort 195672b4363aSmrg echo 195772b4363aSmrg 195872b4363aSmrg if test -n "$ac_subst_files"; then 19597ed541caSmrg printf "%s\n" "## ------------------- ## 196072b4363aSmrg## File substitutions. ## 196108e312fdSmrg## ------------------- ##" 196272b4363aSmrg echo 196372b4363aSmrg for ac_var in $ac_subst_files 196472b4363aSmrg do 196572b4363aSmrg eval ac_val=\$$ac_var 196672b4363aSmrg case $ac_val in 19677ed541caSmrg *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 196872b4363aSmrg esac 19697ed541caSmrg printf "%s\n" "$ac_var='\''$ac_val'\''" 197072b4363aSmrg done | sort 197172b4363aSmrg echo 197272b4363aSmrg fi 197372b4363aSmrg 197472b4363aSmrg if test -s confdefs.h; then 19757ed541caSmrg printf "%s\n" "## ----------- ## 197672b4363aSmrg## confdefs.h. ## 197708e312fdSmrg## ----------- ##" 197872b4363aSmrg echo 197972b4363aSmrg cat confdefs.h 198072b4363aSmrg echo 198172b4363aSmrg fi 198272b4363aSmrg test "$ac_signal" != 0 && 19837ed541caSmrg printf "%s\n" "$as_me: caught signal $ac_signal" 19847ed541caSmrg printf "%s\n" "$as_me: exit $exit_status" 198572b4363aSmrg } >&5 198672b4363aSmrg rm -f core *.core core.conftest.* && 198772b4363aSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 198872b4363aSmrg exit $exit_status 198972b4363aSmrg' 0 199072b4363aSmrgfor ac_signal in 1 2 13 15; do 199108e312fdSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 199272b4363aSmrgdone 199372b4363aSmrgac_signal=0 199472b4363aSmrg 199572b4363aSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 199672b4363aSmrgrm -f -r conftest* confdefs.h 199772b4363aSmrg 19987ed541caSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h 199908e312fdSmrg 200072b4363aSmrg# Predefined preprocessor variables. 200172b4363aSmrg 20027ed541caSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 200372b4363aSmrg 20047ed541caSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 200572b4363aSmrg 20067ed541caSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 200772b4363aSmrg 20087ed541caSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 200972b4363aSmrg 20107ed541caSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 201172b4363aSmrg 20127ed541caSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 201308e312fdSmrg 201472b4363aSmrg 201572b4363aSmrg# Let the site file select an alternate cache file if it wants to. 2016dd77ae96Smrg# Prefer an explicitly selected file to automatically selected ones. 201772b4363aSmrgif test -n "$CONFIG_SITE"; then 20187ed541caSmrg ac_site_files="$CONFIG_SITE" 201972b4363aSmrgelif test "x$prefix" != xNONE; then 20207ed541caSmrg ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 202172b4363aSmrgelse 20227ed541caSmrg ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 202372b4363aSmrgfi 20247ed541caSmrg 20257ed541caSmrgfor ac_site_file in $ac_site_files 202672b4363aSmrgdo 20277ed541caSmrg case $ac_site_file in #( 20287ed541caSmrg */*) : 20297ed541caSmrg ;; #( 20307ed541caSmrg *) : 20317ed541caSmrg ac_site_file=./$ac_site_file ;; 20327ed541caSmrgesac 20337ed541caSmrg if test -f "$ac_site_file" && test -r "$ac_site_file"; then 20347ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 20357ed541caSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 203672b4363aSmrg sed 's/^/| /' "$ac_site_file" >&5 203708e312fdSmrg . "$ac_site_file" \ 20387ed541caSmrg || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20397ed541caSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 204008e312fdSmrgas_fn_error $? "failed to load site script $ac_site_file 204108e312fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 204272b4363aSmrg fi 204372b4363aSmrgdone 204472b4363aSmrg 204572b4363aSmrgif test -r "$cache_file"; then 204608e312fdSmrg # Some versions of bash will fail to source /dev/null (special files 204708e312fdSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 204808e312fdSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 20497ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 20507ed541caSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;} 205172b4363aSmrg case $cache_file in 205272b4363aSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 205372b4363aSmrg *) . "./$cache_file";; 205472b4363aSmrg esac 205572b4363aSmrg fi 205672b4363aSmrgelse 20577ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 20587ed541caSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;} 205972b4363aSmrg >$cache_file 206072b4363aSmrgfi 206172b4363aSmrg 20627ed541caSmrg# Test code for whether the C compiler supports C89 (global declarations) 20637ed541caSmrgac_c_conftest_c89_globals=' 20647ed541caSmrg/* Does the compiler advertise C89 conformance? 20657ed541caSmrg Do not test the value of __STDC__, because some compilers set it to 0 20667ed541caSmrg while being otherwise adequately conformant. */ 20677ed541caSmrg#if !defined __STDC__ 20687ed541caSmrg# error "Compiler does not advertise C89 conformance" 20697ed541caSmrg#endif 207072b4363aSmrg 20717ed541caSmrg#include <stddef.h> 20727ed541caSmrg#include <stdarg.h> 20737ed541caSmrgstruct stat; 20747ed541caSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 20757ed541caSmrgstruct buf { int x; }; 20767ed541caSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int); 20777ed541caSmrgstatic char *e (p, i) 20787ed541caSmrg char **p; 20797ed541caSmrg int i; 20807ed541caSmrg{ 20817ed541caSmrg return p[i]; 20827ed541caSmrg} 20837ed541caSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 20847ed541caSmrg{ 20857ed541caSmrg char *s; 20867ed541caSmrg va_list v; 20877ed541caSmrg va_start (v,p); 20887ed541caSmrg s = g (p, va_arg (v,int)); 20897ed541caSmrg va_end (v); 20907ed541caSmrg return s; 20917ed541caSmrg} 209272b4363aSmrg 20937ed541caSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20947ed541caSmrg function prototypes and stuff, but not \xHH hex character constants. 20957ed541caSmrg These do not provoke an error unfortunately, instead are silently treated 20967ed541caSmrg as an "x". The following induces an error, until -std is added to get 20977ed541caSmrg proper ANSI mode. Curiously \x00 != x always comes out true, for an 20987ed541caSmrg array size at least. It is necessary to write \x00 == 0 to get something 20997ed541caSmrg that is true only with -std. */ 21007ed541caSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 210172b4363aSmrg 21027ed541caSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 21037ed541caSmrg inside strings and character constants. */ 21047ed541caSmrg#define FOO(x) '\''x'\'' 21057ed541caSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 210608e312fdSmrg 21077ed541caSmrgint test (int i, double x); 21087ed541caSmrgstruct s1 {int (*f) (int a);}; 21097ed541caSmrgstruct s2 {int (*f) (double a);}; 21107ed541caSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 21117ed541caSmrg int, int);' 211208e312fdSmrg 21137ed541caSmrg# Test code for whether the C compiler supports C89 (body of main). 21147ed541caSmrgac_c_conftest_c89_main=' 21157ed541caSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 21167ed541caSmrg' 211708e312fdSmrg 21187ed541caSmrg# Test code for whether the C compiler supports C99 (global declarations) 21197ed541caSmrgac_c_conftest_c99_globals=' 21207ed541caSmrg// Does the compiler advertise C99 conformance? 21217ed541caSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 21227ed541caSmrg# error "Compiler does not advertise C99 conformance" 21237ed541caSmrg#endif 212472b4363aSmrg 21257ed541caSmrg#include <stdbool.h> 21267ed541caSmrgextern int puts (const char *); 21277ed541caSmrgextern int printf (const char *, ...); 21287ed541caSmrgextern int dprintf (int, const char *, ...); 21297ed541caSmrgextern void *malloc (size_t); 21307ed541caSmrg 21317ed541caSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 21327ed541caSmrg// dprintf is used instead of fprintf to avoid needing to declare 21337ed541caSmrg// FILE and stderr. 21347ed541caSmrg#define debug(...) dprintf (2, __VA_ARGS__) 21357ed541caSmrg#define showlist(...) puts (#__VA_ARGS__) 21367ed541caSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 21377ed541caSmrgstatic void 21387ed541caSmrgtest_varargs_macros (void) 21397ed541caSmrg{ 21407ed541caSmrg int x = 1234; 21417ed541caSmrg int y = 5678; 21427ed541caSmrg debug ("Flag"); 21437ed541caSmrg debug ("X = %d\n", x); 21447ed541caSmrg showlist (The first, second, and third items.); 21457ed541caSmrg report (x>y, "x is %d but y is %d", x, y); 21467ed541caSmrg} 21477ed541caSmrg 21487ed541caSmrg// Check long long types. 21497ed541caSmrg#define BIG64 18446744073709551615ull 21507ed541caSmrg#define BIG32 4294967295ul 21517ed541caSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 21527ed541caSmrg#if !BIG_OK 21537ed541caSmrg #error "your preprocessor is broken" 21547ed541caSmrg#endif 21557ed541caSmrg#if BIG_OK 21567ed541caSmrg#else 21577ed541caSmrg #error "your preprocessor is broken" 21587ed541caSmrg#endif 21597ed541caSmrgstatic long long int bignum = -9223372036854775807LL; 21607ed541caSmrgstatic unsigned long long int ubignum = BIG64; 21617ed541caSmrg 21627ed541caSmrgstruct incomplete_array 21637ed541caSmrg{ 21647ed541caSmrg int datasize; 21657ed541caSmrg double data[]; 21667ed541caSmrg}; 21677ed541caSmrg 21687ed541caSmrgstruct named_init { 21697ed541caSmrg int number; 21707ed541caSmrg const wchar_t *name; 21717ed541caSmrg double average; 21727ed541caSmrg}; 21737ed541caSmrg 21747ed541caSmrgtypedef const char *ccp; 21757ed541caSmrg 21767ed541caSmrgstatic inline int 21777ed541caSmrgtest_restrict (ccp restrict text) 21787ed541caSmrg{ 21797ed541caSmrg // See if C++-style comments work. 21807ed541caSmrg // Iterate through items via the restricted pointer. 21817ed541caSmrg // Also check for declarations in for loops. 21827ed541caSmrg for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 21837ed541caSmrg continue; 21847ed541caSmrg return 0; 21857ed541caSmrg} 21867ed541caSmrg 21877ed541caSmrg// Check varargs and va_copy. 21887ed541caSmrgstatic bool 21897ed541caSmrgtest_varargs (const char *format, ...) 21907ed541caSmrg{ 21917ed541caSmrg va_list args; 21927ed541caSmrg va_start (args, format); 21937ed541caSmrg va_list args_copy; 21947ed541caSmrg va_copy (args_copy, args); 21957ed541caSmrg 21967ed541caSmrg const char *str = ""; 21977ed541caSmrg int number = 0; 21987ed541caSmrg float fnumber = 0; 21997ed541caSmrg 22007ed541caSmrg while (*format) 22017ed541caSmrg { 22027ed541caSmrg switch (*format++) 22037ed541caSmrg { 22047ed541caSmrg case '\''s'\'': // string 22057ed541caSmrg str = va_arg (args_copy, const char *); 22067ed541caSmrg break; 22077ed541caSmrg case '\''d'\'': // int 22087ed541caSmrg number = va_arg (args_copy, int); 22097ed541caSmrg break; 22107ed541caSmrg case '\''f'\'': // float 22117ed541caSmrg fnumber = va_arg (args_copy, double); 22127ed541caSmrg break; 22137ed541caSmrg default: 22147ed541caSmrg break; 22157ed541caSmrg } 22167ed541caSmrg } 22177ed541caSmrg va_end (args_copy); 22187ed541caSmrg va_end (args); 22197ed541caSmrg 22207ed541caSmrg return *str && number && fnumber; 22217ed541caSmrg} 22227ed541caSmrg' 22237ed541caSmrg 22247ed541caSmrg# Test code for whether the C compiler supports C99 (body of main). 22257ed541caSmrgac_c_conftest_c99_main=' 22267ed541caSmrg // Check bool. 22277ed541caSmrg _Bool success = false; 22287ed541caSmrg success |= (argc != 0); 22297ed541caSmrg 22307ed541caSmrg // Check restrict. 22317ed541caSmrg if (test_restrict ("String literal") == 0) 22327ed541caSmrg success = true; 22337ed541caSmrg char *restrict newvar = "Another string"; 22347ed541caSmrg 22357ed541caSmrg // Check varargs. 22367ed541caSmrg success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 22377ed541caSmrg test_varargs_macros (); 22387ed541caSmrg 22397ed541caSmrg // Check flexible array members. 22407ed541caSmrg struct incomplete_array *ia = 22417ed541caSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 22427ed541caSmrg ia->datasize = 10; 22437ed541caSmrg for (int i = 0; i < ia->datasize; ++i) 22447ed541caSmrg ia->data[i] = i * 1.234; 22457ed541caSmrg 22467ed541caSmrg // Check named initializers. 22477ed541caSmrg struct named_init ni = { 22487ed541caSmrg .number = 34, 22497ed541caSmrg .name = L"Test wide string", 22507ed541caSmrg .average = 543.34343, 22517ed541caSmrg }; 22527ed541caSmrg 22537ed541caSmrg ni.number = 58; 22547ed541caSmrg 22557ed541caSmrg int dynamic_array[ni.number]; 22567ed541caSmrg dynamic_array[0] = argv[0][0]; 22577ed541caSmrg dynamic_array[ni.number - 1] = 543; 22587ed541caSmrg 22597ed541caSmrg // work around unused variable warnings 22607ed541caSmrg ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 22617ed541caSmrg || dynamic_array[ni.number - 1] != 543); 22627ed541caSmrg' 22637ed541caSmrg 22647ed541caSmrg# Test code for whether the C compiler supports C11 (global declarations) 22657ed541caSmrgac_c_conftest_c11_globals=' 22667ed541caSmrg// Does the compiler advertise C11 conformance? 22677ed541caSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 22687ed541caSmrg# error "Compiler does not advertise C11 conformance" 22697ed541caSmrg#endif 22707ed541caSmrg 22717ed541caSmrg// Check _Alignas. 22727ed541caSmrgchar _Alignas (double) aligned_as_double; 22737ed541caSmrgchar _Alignas (0) no_special_alignment; 22747ed541caSmrgextern char aligned_as_int; 22757ed541caSmrgchar _Alignas (0) _Alignas (int) aligned_as_int; 22767ed541caSmrg 22777ed541caSmrg// Check _Alignof. 22787ed541caSmrgenum 22797ed541caSmrg{ 22807ed541caSmrg int_alignment = _Alignof (int), 22817ed541caSmrg int_array_alignment = _Alignof (int[100]), 22827ed541caSmrg char_alignment = _Alignof (char) 22837ed541caSmrg}; 22847ed541caSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 22857ed541caSmrg 22867ed541caSmrg// Check _Noreturn. 22877ed541caSmrgint _Noreturn does_not_return (void) { for (;;) continue; } 22887ed541caSmrg 22897ed541caSmrg// Check _Static_assert. 22907ed541caSmrgstruct test_static_assert 22917ed541caSmrg{ 22927ed541caSmrg int x; 22937ed541caSmrg _Static_assert (sizeof (int) <= sizeof (long int), 22947ed541caSmrg "_Static_assert does not work in struct"); 22957ed541caSmrg long int y; 22967ed541caSmrg}; 22977ed541caSmrg 22987ed541caSmrg// Check UTF-8 literals. 22997ed541caSmrg#define u8 syntax error! 23007ed541caSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string"; 23017ed541caSmrg 23027ed541caSmrg// Check duplicate typedefs. 23037ed541caSmrgtypedef long *long_ptr; 23047ed541caSmrgtypedef long int *long_ptr; 23057ed541caSmrgtypedef long_ptr long_ptr; 23067ed541caSmrg 23077ed541caSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 23087ed541caSmrgstruct anonymous 23097ed541caSmrg{ 23107ed541caSmrg union { 23117ed541caSmrg struct { int i; int j; }; 23127ed541caSmrg struct { int k; long int l; } w; 23137ed541caSmrg }; 23147ed541caSmrg int m; 23157ed541caSmrg} v1; 23167ed541caSmrg' 23177ed541caSmrg 23187ed541caSmrg# Test code for whether the C compiler supports C11 (body of main). 23197ed541caSmrgac_c_conftest_c11_main=' 23207ed541caSmrg _Static_assert ((offsetof (struct anonymous, i) 23217ed541caSmrg == offsetof (struct anonymous, w.k)), 23227ed541caSmrg "Anonymous union alignment botch"); 23237ed541caSmrg v1.i = 2; 23247ed541caSmrg v1.w.k = 5; 23257ed541caSmrg ok |= v1.i != 5; 23267ed541caSmrg' 23277ed541caSmrg 23287ed541caSmrg# Test code for whether the C compiler supports C11 (complete). 23297ed541caSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 23307ed541caSmrg${ac_c_conftest_c99_globals} 23317ed541caSmrg${ac_c_conftest_c11_globals} 23327ed541caSmrg 23337ed541caSmrgint 23347ed541caSmrgmain (int argc, char **argv) 23357ed541caSmrg{ 23367ed541caSmrg int ok = 0; 23377ed541caSmrg ${ac_c_conftest_c89_main} 23387ed541caSmrg ${ac_c_conftest_c99_main} 23397ed541caSmrg ${ac_c_conftest_c11_main} 23407ed541caSmrg return ok; 23417ed541caSmrg} 23427ed541caSmrg" 23437ed541caSmrg 23447ed541caSmrg# Test code for whether the C compiler supports C99 (complete). 23457ed541caSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 23467ed541caSmrg${ac_c_conftest_c99_globals} 23477ed541caSmrg 23487ed541caSmrgint 23497ed541caSmrgmain (int argc, char **argv) 23507ed541caSmrg{ 23517ed541caSmrg int ok = 0; 23527ed541caSmrg ${ac_c_conftest_c89_main} 23537ed541caSmrg ${ac_c_conftest_c99_main} 23547ed541caSmrg return ok; 23557ed541caSmrg} 23567ed541caSmrg" 23577ed541caSmrg 23587ed541caSmrg# Test code for whether the C compiler supports C89 (complete). 23597ed541caSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 23607ed541caSmrg 23617ed541caSmrgint 23627ed541caSmrgmain (int argc, char **argv) 23637ed541caSmrg{ 23647ed541caSmrg int ok = 0; 23657ed541caSmrg ${ac_c_conftest_c89_main} 23667ed541caSmrg return ok; 23677ed541caSmrg} 23687ed541caSmrg" 23697ed541caSmrg 23707ed541caSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 23717ed541caSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 23727ed541caSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 23737ed541caSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 23747ed541caSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 23757ed541caSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 23767ed541caSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 23777ed541caSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 23787ed541caSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 23797ed541caSmrg 23807ed541caSmrg# Auxiliary files required by this configure script. 23817ed541caSmrgac_aux_files="config.guess config.sub compile missing install-sh" 23827ed541caSmrg 23837ed541caSmrg# Locations in which to look for auxiliary files. 23847ed541caSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 23857ed541caSmrg 23867ed541caSmrg# Search for a directory containing all of the required auxiliary files, 23877ed541caSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 23887ed541caSmrg# If we don't find one directory that contains all the files we need, 23897ed541caSmrg# we report the set of missing files from the *first* directory in 23907ed541caSmrg# $ac_aux_dir_candidates and give up. 23917ed541caSmrgac_missing_aux_files="" 23927ed541caSmrgac_first_candidate=: 23937ed541caSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 23947ed541caSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23957ed541caSmrgas_found=false 23967ed541caSmrgfor as_dir in $ac_aux_dir_candidates 23977ed541caSmrgdo 23987ed541caSmrg IFS=$as_save_IFS 23997ed541caSmrg case $as_dir in #((( 24007ed541caSmrg '') as_dir=./ ;; 24017ed541caSmrg */) ;; 24027ed541caSmrg *) as_dir=$as_dir/ ;; 24037ed541caSmrg esac 24047ed541caSmrg as_found=: 24057ed541caSmrg 24067ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 24077ed541caSmrg ac_aux_dir_found=yes 24087ed541caSmrg ac_install_sh= 24097ed541caSmrg for ac_aux in $ac_aux_files 24107ed541caSmrg do 24117ed541caSmrg # As a special case, if "install-sh" is required, that requirement 24127ed541caSmrg # can be satisfied by any of "install-sh", "install.sh", or "shtool", 24137ed541caSmrg # and $ac_install_sh is set appropriately for whichever one is found. 24147ed541caSmrg if test x"$ac_aux" = x"install-sh" 24157ed541caSmrg then 24167ed541caSmrg if test -f "${as_dir}install-sh"; then 24177ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 24187ed541caSmrg ac_install_sh="${as_dir}install-sh -c" 24197ed541caSmrg elif test -f "${as_dir}install.sh"; then 24207ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 24217ed541caSmrg ac_install_sh="${as_dir}install.sh -c" 24227ed541caSmrg elif test -f "${as_dir}shtool"; then 24237ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 24247ed541caSmrg ac_install_sh="${as_dir}shtool install -c" 24257ed541caSmrg else 24267ed541caSmrg ac_aux_dir_found=no 24277ed541caSmrg if $ac_first_candidate; then 24287ed541caSmrg ac_missing_aux_files="${ac_missing_aux_files} install-sh" 24297ed541caSmrg else 24307ed541caSmrg break 24317ed541caSmrg fi 24327ed541caSmrg fi 24337ed541caSmrg else 24347ed541caSmrg if test -f "${as_dir}${ac_aux}"; then 24357ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 24367ed541caSmrg else 24377ed541caSmrg ac_aux_dir_found=no 24387ed541caSmrg if $ac_first_candidate; then 24397ed541caSmrg ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 24407ed541caSmrg else 24417ed541caSmrg break 24427ed541caSmrg fi 24437ed541caSmrg fi 24447ed541caSmrg fi 24457ed541caSmrg done 24467ed541caSmrg if test "$ac_aux_dir_found" = yes; then 24477ed541caSmrg ac_aux_dir="$as_dir" 244872b4363aSmrg break 244972b4363aSmrg fi 24507ed541caSmrg ac_first_candidate=false 24517ed541caSmrg 24527ed541caSmrg as_found=false 245372b4363aSmrgdone 24547ed541caSmrgIFS=$as_save_IFS 24557ed541caSmrgif $as_found 24567ed541caSmrgthen : 24577ed541caSmrg 24587ed541caSmrgelse $as_nop 24597ed541caSmrg as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 246072b4363aSmrgfi 246172b4363aSmrg 24627ed541caSmrg 246372b4363aSmrg# These three variables are undocumented and unsupported, 246472b4363aSmrg# and are intended to be withdrawn in a future Autoconf release. 246572b4363aSmrg# They can cause serious problems if a builder's source tree is in a directory 246672b4363aSmrg# whose full name contains unusual characters. 24677ed541caSmrgif test -f "${ac_aux_dir}config.guess"; then 24687ed541caSmrg ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 24697ed541caSmrgfi 24707ed541caSmrgif test -f "${ac_aux_dir}config.sub"; then 24717ed541caSmrg ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 24727ed541caSmrgfi 24737ed541caSmrgif test -f "$ac_aux_dir/configure"; then 24747ed541caSmrg ac_configure="$SHELL ${ac_aux_dir}configure" 24757ed541caSmrgfi 24767ed541caSmrg 24777ed541caSmrg# Check that the precious variables saved in the cache have kept the same 24787ed541caSmrg# value. 24797ed541caSmrgac_cache_corrupted=false 24807ed541caSmrgfor ac_var in $ac_precious_vars; do 24817ed541caSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 24827ed541caSmrg eval ac_new_set=\$ac_env_${ac_var}_set 24837ed541caSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 24847ed541caSmrg eval ac_new_val=\$ac_env_${ac_var}_value 24857ed541caSmrg case $ac_old_set,$ac_new_set in 24867ed541caSmrg set,) 24877ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 24887ed541caSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 24897ed541caSmrg ac_cache_corrupted=: ;; 24907ed541caSmrg ,set) 24917ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 24927ed541caSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 24937ed541caSmrg ac_cache_corrupted=: ;; 24947ed541caSmrg ,);; 24957ed541caSmrg *) 24967ed541caSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 24977ed541caSmrg # differences in whitespace do not lead to failure. 24987ed541caSmrg ac_old_val_w=`echo x $ac_old_val` 24997ed541caSmrg ac_new_val_w=`echo x $ac_new_val` 25007ed541caSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 25017ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 25027ed541caSmrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 25037ed541caSmrg ac_cache_corrupted=: 25047ed541caSmrg else 25057ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 25067ed541caSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 25077ed541caSmrg eval $ac_var=\$ac_old_val 25087ed541caSmrg fi 25097ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 25107ed541caSmrgprintf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 25117ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 25127ed541caSmrgprintf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 25137ed541caSmrg fi;; 25147ed541caSmrg esac 25157ed541caSmrg # Pass precious variables to config.status. 25167ed541caSmrg if test "$ac_new_set" = set; then 25177ed541caSmrg case $ac_new_val in 25187ed541caSmrg *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 25197ed541caSmrg *) ac_arg=$ac_var=$ac_new_val ;; 25207ed541caSmrg esac 25217ed541caSmrg case " $ac_configure_args " in 25227ed541caSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 25237ed541caSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 25247ed541caSmrg esac 25257ed541caSmrg fi 25267ed541caSmrgdone 25277ed541caSmrgif $ac_cache_corrupted; then 25287ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25297ed541caSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 25307ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 25317ed541caSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 25327ed541caSmrg as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 25337ed541caSmrg and start over" "$LINENO" 5 25347ed541caSmrgfi 25357ed541caSmrg## -------------------- ## 25367ed541caSmrg## Main body of script. ## 25377ed541caSmrg## -------------------- ## 25387ed541caSmrg 25397ed541caSmrgac_ext=c 25407ed541caSmrgac_cpp='$CPP $CPPFLAGS' 25417ed541caSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25427ed541caSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25437ed541caSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 25447ed541caSmrg 25457ed541caSmrg 25467ed541caSmrg 25477ed541caSmrgac_config_headers="$ac_config_headers config.h" 25487ed541caSmrg 25497ed541caSmrg 25507ed541caSmrg# Initialize Automake 25517ed541caSmrgam__api_version='1.16' 255272b4363aSmrg 255372b4363aSmrg 25547ed541caSmrg 25557ed541caSmrg # Find a good install program. We prefer a C program (faster), 255672b4363aSmrg# so one script is as good as another. But avoid the broken or 255772b4363aSmrg# incompatible versions: 255872b4363aSmrg# SysV /etc/install, /usr/sbin/install 255972b4363aSmrg# SunOS /usr/etc/install 256072b4363aSmrg# IRIX /sbin/install 256172b4363aSmrg# AIX /bin/install 256272b4363aSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 256372b4363aSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 256472b4363aSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 256572b4363aSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 256672b4363aSmrg# OS/2's system install, which has a completely different semantic 256772b4363aSmrg# ./install, which can be erroneously created by make from ./install.sh. 2568dd77ae96Smrg# Reject install programs that cannot install multiple files. 25697ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 25707ed541caSmrgprintf %s "checking for a BSD-compatible install... " >&6; } 257172b4363aSmrgif test -z "$INSTALL"; then 25727ed541caSmrgif test ${ac_cv_path_install+y} 25737ed541caSmrgthen : 25747ed541caSmrg printf %s "(cached) " >&6 25757ed541caSmrgelse $as_nop 257672b4363aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 257772b4363aSmrgfor as_dir in $PATH 257872b4363aSmrgdo 257972b4363aSmrg IFS=$as_save_IFS 25807ed541caSmrg case $as_dir in #((( 25817ed541caSmrg '') as_dir=./ ;; 25827ed541caSmrg */) ;; 25837ed541caSmrg *) as_dir=$as_dir/ ;; 25847ed541caSmrg esac 25857ed541caSmrg # Account for fact that we put trailing slashes in our PATH walk. 25867ed541caSmrgcase $as_dir in #(( 25877ed541caSmrg ./ | /[cC]/* | \ 258872b4363aSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 258908e312fdSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 259072b4363aSmrg /usr/ucb/* ) ;; 259172b4363aSmrg *) 259272b4363aSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 259372b4363aSmrg # Don't use installbsd from OSF since it installs stuff as root 259472b4363aSmrg # by default. 259572b4363aSmrg for ac_prog in ginstall scoinst install; do 259672b4363aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 25977ed541caSmrg if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 259872b4363aSmrg if test $ac_prog = install && 25997ed541caSmrg grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 260072b4363aSmrg # AIX install. It has an incompatible calling convention. 260172b4363aSmrg : 260272b4363aSmrg elif test $ac_prog = install && 26037ed541caSmrg grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 260472b4363aSmrg # program-specific install script used by HP pwplus--don't use. 260572b4363aSmrg : 260672b4363aSmrg else 2607dd77ae96Smrg rm -rf conftest.one conftest.two conftest.dir 2608dd77ae96Smrg echo one > conftest.one 2609dd77ae96Smrg echo two > conftest.two 2610dd77ae96Smrg mkdir conftest.dir 26117ed541caSmrg if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2612dd77ae96Smrg test -s conftest.one && test -s conftest.two && 2613dd77ae96Smrg test -s conftest.dir/conftest.one && 2614dd77ae96Smrg test -s conftest.dir/conftest.two 2615dd77ae96Smrg then 26167ed541caSmrg ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2617dd77ae96Smrg break 3 2618dd77ae96Smrg fi 261972b4363aSmrg fi 262072b4363aSmrg fi 262172b4363aSmrg done 262272b4363aSmrg done 262372b4363aSmrg ;; 262472b4363aSmrgesac 2625dd77ae96Smrg 262608e312fdSmrg done 262772b4363aSmrgIFS=$as_save_IFS 262872b4363aSmrg 2629dd77ae96Smrgrm -rf conftest.one conftest.two conftest.dir 263072b4363aSmrg 263172b4363aSmrgfi 26327ed541caSmrg if test ${ac_cv_path_install+y}; then 263372b4363aSmrg INSTALL=$ac_cv_path_install 263472b4363aSmrg else 263572b4363aSmrg # As a last resort, use the slow shell script. Don't cache a 263672b4363aSmrg # value for INSTALL within a source directory, because that will 263772b4363aSmrg # break other packages using the cache if that directory is 263872b4363aSmrg # removed, or if the value is a relative name. 263972b4363aSmrg INSTALL=$ac_install_sh 264072b4363aSmrg fi 264172b4363aSmrgfi 26427ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 26437ed541caSmrgprintf "%s\n" "$INSTALL" >&6; } 264472b4363aSmrg 264572b4363aSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 264672b4363aSmrg# It thinks the first close brace ends the variable substitution. 264772b4363aSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 264872b4363aSmrg 264972b4363aSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 265072b4363aSmrg 265172b4363aSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 265272b4363aSmrg 26537ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 26547ed541caSmrgprintf %s "checking whether build environment is sane... " >&6; } 2655dd77ae96Smrg# Reject unsafe characters in $srcdir or the absolute working directory 2656dd77ae96Smrg# name. Accept space and tab only in the latter. 2657dd77ae96Smrgam_lf=' 2658dd77ae96Smrg' 2659dd77ae96Smrgcase `pwd` in 2660dd77ae96Smrg *[\\\"\#\$\&\'\`$am_lf]*) 266108e312fdSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2662dd77ae96Smrgesac 2663dd77ae96Smrgcase $srcdir in 2664dd77ae96Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 266533dddc75Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2666dd77ae96Smrgesac 2667dd77ae96Smrg 266833dddc75Smrg# Do 'set' in a subshell so we don't clobber the current shell's 266972b4363aSmrg# arguments. Must try -L first in case configure is actually a 267072b4363aSmrg# symlink; some systems play weird games with the mod time of symlinks 267172b4363aSmrg# (eg FreeBSD returns the mod time of the symlink's containing 267272b4363aSmrg# directory). 267372b4363aSmrgif ( 267433dddc75Smrg am_has_slept=no 267533dddc75Smrg for am_try in 1 2; do 267633dddc75Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 267733dddc75Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 267833dddc75Smrg if test "$*" = "X"; then 267933dddc75Smrg # -L didn't work. 268033dddc75Smrg set X `ls -t "$srcdir/configure" conftest.file` 268133dddc75Smrg fi 268233dddc75Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 268333dddc75Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 268433dddc75Smrg 268533dddc75Smrg # If neither matched, then we have a broken ls. This can happen 268633dddc75Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 268733dddc75Smrg # broken ls alias from the environment. This has actually 268833dddc75Smrg # happened. Such a system could not be considered "sane". 268933dddc75Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 269033dddc75Smrg alias in your environment" "$LINENO" 5 269133dddc75Smrg fi 269233dddc75Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 269333dddc75Smrg break 269433dddc75Smrg fi 269533dddc75Smrg # Just in case. 269633dddc75Smrg sleep 1 269733dddc75Smrg am_has_slept=yes 269833dddc75Smrg done 269972b4363aSmrg test "$2" = conftest.file 270072b4363aSmrg ) 270172b4363aSmrgthen 270272b4363aSmrg # Ok. 270372b4363aSmrg : 270472b4363aSmrgelse 270508e312fdSmrg as_fn_error $? "newly created file is older than distributed files! 270608e312fdSmrgCheck your system clock" "$LINENO" 5 270772b4363aSmrgfi 27087ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27097ed541caSmrgprintf "%s\n" "yes" >&6; } 271033dddc75Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 271133dddc75Smrg# generated files are strictly newer. 271233dddc75Smrgam_sleep_pid= 271333dddc75Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 271433dddc75Smrg ( sleep 1 ) & 271533dddc75Smrg am_sleep_pid=$! 271633dddc75Smrgfi 271733dddc75Smrg 271833dddc75Smrgrm -f conftest.file 271933dddc75Smrg 272072b4363aSmrgtest "$program_prefix" != NONE && 272172b4363aSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 272272b4363aSmrg# Use a double $ so make ignores it. 272372b4363aSmrgtest "$program_suffix" != NONE && 272472b4363aSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2725dd77ae96Smrg# Double any \ or $. 272672b4363aSmrg# By default was `s,x,x', remove it if useless. 2727dd77ae96Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 27287ed541caSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 27297ed541caSmrg 273072b4363aSmrg 273133dddc75Smrg# Expand $ac_aux_dir to an absolute path. 273233dddc75Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 273372b4363aSmrg 27347ed541caSmrg 27357ed541caSmrg if test x"${MISSING+set}" != xset; then 27367ed541caSmrg MISSING="\${SHELL} '$am_aux_dir/missing'" 2737dd77ae96Smrgfi 273872b4363aSmrg# Use eval to expand $SHELL 273933dddc75Smrgif eval "$MISSING --is-lightweight"; then 274033dddc75Smrg am_missing_run="$MISSING " 274172b4363aSmrgelse 274272b4363aSmrg am_missing_run= 27437ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 27447ed541caSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 274572b4363aSmrgfi 274672b4363aSmrg 274733dddc75Smrgif test x"${install_sh+set}" != xset; then 2748dd77ae96Smrg case $am_aux_dir in 2749dd77ae96Smrg *\ * | *\ *) 2750dd77ae96Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2751dd77ae96Smrg *) 2752dd77ae96Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2753dd77ae96Smrg esac 2754dd77ae96Smrgfi 2755dd77ae96Smrg 275633dddc75Smrg# Installed binaries are usually stripped using 'strip' when the user 275733dddc75Smrg# run "make install-strip". However 'strip' might not be the right 2758dd77ae96Smrg# tool to use in cross-compilation environments, therefore Automake 275933dddc75Smrg# will honor the 'STRIP' environment variable to overrule this program. 2760dd77ae96Smrgif test "$cross_compiling" != no; then 2761dd77ae96Smrg if test -n "$ac_tool_prefix"; then 2762dd77ae96Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2763dd77ae96Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 27647ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27657ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 27667ed541caSmrgif test ${ac_cv_prog_STRIP+y} 27677ed541caSmrgthen : 27687ed541caSmrg printf %s "(cached) " >&6 27697ed541caSmrgelse $as_nop 2770dd77ae96Smrg if test -n "$STRIP"; then 2771dd77ae96Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2772dd77ae96Smrgelse 2773dd77ae96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2774dd77ae96Smrgfor as_dir in $PATH 2775dd77ae96Smrgdo 2776dd77ae96Smrg IFS=$as_save_IFS 27777ed541caSmrg case $as_dir in #((( 27787ed541caSmrg '') as_dir=./ ;; 27797ed541caSmrg */) ;; 27807ed541caSmrg *) as_dir=$as_dir/ ;; 27817ed541caSmrg esac 278208e312fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 27837ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2784dd77ae96Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 27857ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2786dd77ae96Smrg break 2 2787dd77ae96Smrg fi 2788dd77ae96Smrgdone 278908e312fdSmrg done 2790dd77ae96SmrgIFS=$as_save_IFS 2791dd77ae96Smrg 2792dd77ae96Smrgfi 2793dd77ae96Smrgfi 2794dd77ae96SmrgSTRIP=$ac_cv_prog_STRIP 2795dd77ae96Smrgif test -n "$STRIP"; then 27967ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 27977ed541caSmrgprintf "%s\n" "$STRIP" >&6; } 2798dd77ae96Smrgelse 27997ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28007ed541caSmrgprintf "%s\n" "no" >&6; } 2801dd77ae96Smrgfi 2802dd77ae96Smrg 2803dd77ae96Smrg 2804dd77ae96Smrgfi 2805dd77ae96Smrgif test -z "$ac_cv_prog_STRIP"; then 2806dd77ae96Smrg ac_ct_STRIP=$STRIP 2807dd77ae96Smrg # Extract the first word of "strip", so it can be a program name with args. 2808dd77ae96Smrgset dummy strip; ac_word=$2 28097ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28107ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 28117ed541caSmrgif test ${ac_cv_prog_ac_ct_STRIP+y} 28127ed541caSmrgthen : 28137ed541caSmrg printf %s "(cached) " >&6 28147ed541caSmrgelse $as_nop 2815dd77ae96Smrg if test -n "$ac_ct_STRIP"; then 2816dd77ae96Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2817dd77ae96Smrgelse 2818dd77ae96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819dd77ae96Smrgfor as_dir in $PATH 2820dd77ae96Smrgdo 2821dd77ae96Smrg IFS=$as_save_IFS 28227ed541caSmrg case $as_dir in #((( 28237ed541caSmrg '') as_dir=./ ;; 28247ed541caSmrg */) ;; 28257ed541caSmrg *) as_dir=$as_dir/ ;; 28267ed541caSmrg esac 282708e312fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 28287ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2829dd77ae96Smrg ac_cv_prog_ac_ct_STRIP="strip" 28307ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2831dd77ae96Smrg break 2 2832dd77ae96Smrg fi 2833dd77ae96Smrgdone 283408e312fdSmrg done 2835dd77ae96SmrgIFS=$as_save_IFS 2836dd77ae96Smrg 2837dd77ae96Smrgfi 2838dd77ae96Smrgfi 2839dd77ae96Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2840dd77ae96Smrgif test -n "$ac_ct_STRIP"; then 28417ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 28427ed541caSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; } 2843dd77ae96Smrgelse 28447ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28457ed541caSmrgprintf "%s\n" "no" >&6; } 2846dd77ae96Smrgfi 2847dd77ae96Smrg 2848dd77ae96Smrg if test "x$ac_ct_STRIP" = x; then 2849dd77ae96Smrg STRIP=":" 2850dd77ae96Smrg else 2851dd77ae96Smrg case $cross_compiling:$ac_tool_warned in 2852dd77ae96Smrgyes:) 28537ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28547ed541caSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2855dd77ae96Smrgac_tool_warned=yes ;; 2856dd77ae96Smrgesac 2857dd77ae96Smrg STRIP=$ac_ct_STRIP 2858dd77ae96Smrg fi 2859dd77ae96Smrgelse 2860dd77ae96Smrg STRIP="$ac_cv_prog_STRIP" 2861dd77ae96Smrgfi 2862dd77ae96Smrg 2863dd77ae96Smrgfi 2864dd77ae96SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2865dd77ae96Smrg 28667ed541caSmrg 28677ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 28687ed541caSmrgprintf %s "checking for a race-free mkdir -p... " >&6; } 2869dd77ae96Smrgif test -z "$MKDIR_P"; then 28707ed541caSmrg if test ${ac_cv_path_mkdir+y} 28717ed541caSmrgthen : 28727ed541caSmrg printf %s "(cached) " >&6 28737ed541caSmrgelse $as_nop 287472b4363aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 287572b4363aSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 287672b4363aSmrgdo 287772b4363aSmrg IFS=$as_save_IFS 28787ed541caSmrg case $as_dir in #((( 28797ed541caSmrg '') as_dir=./ ;; 28807ed541caSmrg */) ;; 28817ed541caSmrg *) as_dir=$as_dir/ ;; 28827ed541caSmrg esac 288308e312fdSmrg for ac_prog in mkdir gmkdir; do 288472b4363aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 28857ed541caSmrg as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 28867ed541caSmrg case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 28877ed541caSmrg 'mkdir ('*'coreutils) '* | \ 28887ed541caSmrg 'BusyBox '* | \ 288972b4363aSmrg 'mkdir (fileutils) '4.1*) 28907ed541caSmrg ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 289172b4363aSmrg break 3;; 289272b4363aSmrg esac 289372b4363aSmrg done 289472b4363aSmrg done 289508e312fdSmrg done 289672b4363aSmrgIFS=$as_save_IFS 289772b4363aSmrg 289872b4363aSmrgfi 289972b4363aSmrg 290008e312fdSmrg test -d ./--version && rmdir ./--version 29017ed541caSmrg if test ${ac_cv_path_mkdir+y}; then 290272b4363aSmrg MKDIR_P="$ac_cv_path_mkdir -p" 290372b4363aSmrg else 290472b4363aSmrg # As a last resort, use the slow shell script. Don't cache a 290572b4363aSmrg # value for MKDIR_P within a source directory, because that will 290672b4363aSmrg # break other packages using the cache if that directory is 290772b4363aSmrg # removed, or if the value is a relative name. 290872b4363aSmrg MKDIR_P="$ac_install_sh -d" 290972b4363aSmrg fi 291072b4363aSmrgfi 29117ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 29127ed541caSmrgprintf "%s\n" "$MKDIR_P" >&6; } 291372b4363aSmrg 291472b4363aSmrgfor ac_prog in gawk mawk nawk awk 291572b4363aSmrgdo 291672b4363aSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 291772b4363aSmrgset dummy $ac_prog; ac_word=$2 29187ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29197ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 29207ed541caSmrgif test ${ac_cv_prog_AWK+y} 29217ed541caSmrgthen : 29227ed541caSmrg printf %s "(cached) " >&6 29237ed541caSmrgelse $as_nop 292472b4363aSmrg if test -n "$AWK"; then 292572b4363aSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 292672b4363aSmrgelse 292772b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 292872b4363aSmrgfor as_dir in $PATH 292972b4363aSmrgdo 293072b4363aSmrg IFS=$as_save_IFS 29317ed541caSmrg case $as_dir in #((( 29327ed541caSmrg '') as_dir=./ ;; 29337ed541caSmrg */) ;; 29347ed541caSmrg *) as_dir=$as_dir/ ;; 29357ed541caSmrg esac 293608e312fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29377ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 293872b4363aSmrg ac_cv_prog_AWK="$ac_prog" 29397ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 294072b4363aSmrg break 2 294172b4363aSmrg fi 294272b4363aSmrgdone 294308e312fdSmrg done 294472b4363aSmrgIFS=$as_save_IFS 294572b4363aSmrg 294672b4363aSmrgfi 294772b4363aSmrgfi 294872b4363aSmrgAWK=$ac_cv_prog_AWK 294972b4363aSmrgif test -n "$AWK"; then 29507ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 29517ed541caSmrgprintf "%s\n" "$AWK" >&6; } 295272b4363aSmrgelse 29537ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29547ed541caSmrgprintf "%s\n" "no" >&6; } 295572b4363aSmrgfi 295672b4363aSmrg 295772b4363aSmrg 295872b4363aSmrg test -n "$AWK" && break 295972b4363aSmrgdone 296072b4363aSmrg 29617ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 29627ed541caSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2963dd77ae96Smrgset x ${MAKE-make} 29647ed541caSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 29657ed541caSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y} 29667ed541caSmrgthen : 29677ed541caSmrg printf %s "(cached) " >&6 29687ed541caSmrgelse $as_nop 296972b4363aSmrg cat >conftest.make <<\_ACEOF 297072b4363aSmrgSHELL = /bin/sh 297172b4363aSmrgall: 297272b4363aSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 297372b4363aSmrg_ACEOF 297408e312fdSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 297572b4363aSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 297672b4363aSmrg *@@@%%%=?*=@@@%%%*) 297772b4363aSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 297872b4363aSmrg *) 297972b4363aSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 298072b4363aSmrgesac 298172b4363aSmrgrm -f conftest.make 298272b4363aSmrgfi 298372b4363aSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 29847ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29857ed541caSmrgprintf "%s\n" "yes" >&6; } 298672b4363aSmrg SET_MAKE= 298772b4363aSmrgelse 29887ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29897ed541caSmrgprintf "%s\n" "no" >&6; } 299072b4363aSmrg SET_MAKE="MAKE=${MAKE-make}" 299172b4363aSmrgfi 299272b4363aSmrg 299372b4363aSmrgrm -rf .tst 2>/dev/null 299472b4363aSmrgmkdir .tst 2>/dev/null 299572b4363aSmrgif test -d .tst; then 299672b4363aSmrg am__leading_dot=. 299772b4363aSmrgelse 299872b4363aSmrg am__leading_dot=_ 299972b4363aSmrgfi 300072b4363aSmrgrmdir .tst 2>/dev/null 300172b4363aSmrg 300233dddc75Smrg# Check whether --enable-silent-rules was given. 30037ed541caSmrgif test ${enable_silent_rules+y} 30047ed541caSmrgthen : 300533dddc75Smrg enableval=$enable_silent_rules; 300633dddc75Smrgfi 300733dddc75Smrg 300833dddc75Smrgcase $enable_silent_rules in # ((( 300933dddc75Smrg yes) AM_DEFAULT_VERBOSITY=0;; 301033dddc75Smrg no) AM_DEFAULT_VERBOSITY=1;; 301133dddc75Smrg *) AM_DEFAULT_VERBOSITY=1;; 301233dddc75Smrgesac 301333dddc75Smrgam_make=${MAKE-make} 30147ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 30157ed541caSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 30167ed541caSmrgif test ${am_cv_make_support_nested_variables+y} 30177ed541caSmrgthen : 30187ed541caSmrg printf %s "(cached) " >&6 30197ed541caSmrgelse $as_nop 30207ed541caSmrg if printf "%s\n" 'TRUE=$(BAR$(V)) 302133dddc75SmrgBAR0=false 302233dddc75SmrgBAR1=true 302333dddc75SmrgV=1 302433dddc75Smrgam__doit: 302533dddc75Smrg @$(TRUE) 302633dddc75Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 302733dddc75Smrg am_cv_make_support_nested_variables=yes 302833dddc75Smrgelse 302933dddc75Smrg am_cv_make_support_nested_variables=no 303033dddc75Smrgfi 303133dddc75Smrgfi 30327ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 30337ed541caSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 303433dddc75Smrgif test $am_cv_make_support_nested_variables = yes; then 303533dddc75Smrg AM_V='$(V)' 303633dddc75Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 303733dddc75Smrgelse 303833dddc75Smrg AM_V=$AM_DEFAULT_VERBOSITY 303933dddc75Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 304033dddc75Smrgfi 304133dddc75SmrgAM_BACKSLASH='\' 304233dddc75Smrg 304372b4363aSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 304472b4363aSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 304572b4363aSmrg # is not polluted with repeated "-I." 304672b4363aSmrg am__isrc=' -I$(srcdir)' 304772b4363aSmrg # test to see if srcdir already configured 304872b4363aSmrg if test -f $srcdir/config.status; then 304908e312fdSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 305072b4363aSmrg fi 305172b4363aSmrgfi 305272b4363aSmrg 305372b4363aSmrg# test whether we have cygpath 305472b4363aSmrgif test -z "$CYGPATH_W"; then 305572b4363aSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 305672b4363aSmrg CYGPATH_W='cygpath -w' 305772b4363aSmrg else 305872b4363aSmrg CYGPATH_W=echo 305972b4363aSmrg fi 306072b4363aSmrgfi 306172b4363aSmrg 306272b4363aSmrg 306372b4363aSmrg# Define the identity of the package. 306472b4363aSmrg PACKAGE='xgamma' 30657ed541caSmrg VERSION='1.0.7' 306672b4363aSmrg 306772b4363aSmrg 30687ed541caSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 306972b4363aSmrg 307072b4363aSmrg 30717ed541caSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 307272b4363aSmrg 307372b4363aSmrg# Some tools Automake needs. 307472b4363aSmrg 307572b4363aSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 307672b4363aSmrg 307772b4363aSmrg 307872b4363aSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 307972b4363aSmrg 308072b4363aSmrg 308172b4363aSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 308272b4363aSmrg 308372b4363aSmrg 308472b4363aSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 308572b4363aSmrg 308672b4363aSmrg 308772b4363aSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 308872b4363aSmrg 308933dddc75Smrg# For better backward compatibility. To be removed once Automake 1.9.x 309033dddc75Smrg# dies out for good. For more background, see: 30917ed541caSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 30927ed541caSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 309333dddc75Smrgmkdir_p='$(MKDIR_P)' 309472b4363aSmrg 309533dddc75Smrg# We need awk for the "check" target (and possibly the TAP driver). The 309633dddc75Smrg# system "awk" is bad on some platforms. 309733dddc75Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 309833dddc75Smrg# in the wild :-( We should find a proper way to deprecate it ... 309933dddc75SmrgAMTAR='$${TAR-tar}' 310072b4363aSmrg 310172b4363aSmrg 310233dddc75Smrg# We'll loop over all known methods to create a tar archive until one works. 310333dddc75Smrg_am_tools='gnutar pax cpio none' 310472b4363aSmrg 310533dddc75Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 310672b4363aSmrg 310772b4363aSmrg 310872b4363aSmrg 3109dd77ae96Smrg 311072b4363aSmrg 31117ed541caSmrg# Variables for tags utilities; see am/tags.am 31127ed541caSmrgif test -z "$CTAGS"; then 31137ed541caSmrg CTAGS=ctags 31147ed541caSmrgfi 31157ed541caSmrg 31167ed541caSmrgif test -z "$ETAGS"; then 31177ed541caSmrg ETAGS=etags 31187ed541caSmrgfi 31197ed541caSmrg 31207ed541caSmrgif test -z "$CSCOPE"; then 31217ed541caSmrg CSCOPE=cscope 31227ed541caSmrgfi 31237ed541caSmrg 31247ed541caSmrg 312572b4363aSmrg 312633dddc75Smrg# POSIX will say in a future version that running "rm -f" with no argument 312733dddc75Smrg# is OK; and we want to be able to make that assumption in our Makefile 312833dddc75Smrg# recipes. So use an aggressive probe to check that the usage we want is 312933dddc75Smrg# actually supported "in the wild" to an acceptable degree. 313033dddc75Smrg# See automake bug#10828. 313133dddc75Smrg# To make any issue more visible, cause the running configure to be aborted 313233dddc75Smrg# by default if the 'rm' program in use doesn't match our expectations; the 313333dddc75Smrg# user can still override this though. 313433dddc75Smrgif rm -f && rm -fr && rm -rf; then : OK; else 313533dddc75Smrg cat >&2 <<'END' 313633dddc75SmrgOops! 313733dddc75Smrg 313833dddc75SmrgYour 'rm' program seems unable to run without file operands specified 313933dddc75Smrgon the command line, even when the '-f' option is present. This is contrary 314033dddc75Smrgto the behaviour of most rm programs out there, and not conforming with 314133dddc75Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 314233dddc75Smrg 314333dddc75SmrgPlease tell bug-automake@gnu.org about your system, including the value 314433dddc75Smrgof your $PATH and any error possibly output before this message. This 314533dddc75Smrgcan help us improve future automake versions. 314633dddc75Smrg 314733dddc75SmrgEND 314833dddc75Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 314933dddc75Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 315033dddc75Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 315133dddc75Smrg echo >&2 315233dddc75Smrg else 315333dddc75Smrg cat >&2 <<'END' 315433dddc75SmrgAborting the configuration process, to ensure you take notice of the issue. 315533dddc75Smrg 315633dddc75SmrgYou can download and install GNU coreutils to get an 'rm' implementation 31577ed541caSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 315872b4363aSmrg 315933dddc75SmrgIf you want to complete the configuration process using your problematic 316033dddc75Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 316133dddc75Smrgto "yes", and re-run configure. 316233dddc75Smrg 316333dddc75SmrgEND 316433dddc75Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 316533dddc75Smrg fi 316633dddc75Smrgfi 316772b4363aSmrg 316872b4363aSmrg 316908e312fdSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 317008e312fdSmrg 3171dd77ae96Smrg 3172dd77ae96Smrg 3173dd77ae96Smrg 3174dd77ae96Smrg 3175dd77ae96Smrg 3176dd77ae96Smrg 3177dd77ae96Smrg 3178dd77ae96Smrg 3179dd77ae96Smrg 3180dd77ae96Smrg 31817ed541caSmrg 31827ed541caSmrg 31837ed541caSmrg 31847ed541caSmrg 31857ed541caSmrg 31867ed541caSmrg 31877ed541caSmrg 31887ed541caSmrg 31897ed541caSmrg 319008e312fdSmrgDEPDIR="${am__leading_dot}deps" 319108e312fdSmrg 319208e312fdSmrgac_config_commands="$ac_config_commands depfiles" 3193dd77ae96Smrg 31947ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 31957ed541caSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 31967ed541caSmrgcat > confinc.mk << 'END' 319708e312fdSmrgam__doit: 31987ed541caSmrg @echo this is the am__doit target >confinc.out 319908e312fdSmrg.PHONY: am__doit 320008e312fdSmrgEND 320108e312fdSmrgam__include="#" 320208e312fdSmrgam__quote= 32037ed541caSmrg# BSD make does it like this. 32047ed541caSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD 32057ed541caSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this. 32067ed541caSmrgecho 'include confinc.mk # ignored' > confmf.GNU 32077ed541caSmrg_am_result=no 32087ed541caSmrgfor s in GNU BSD; do 32097ed541caSmrg { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 32107ed541caSmrg (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 32117ed541caSmrg ac_status=$? 32127ed541caSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 32137ed541caSmrg (exit $ac_status); } 32147ed541caSmrg case $?:`cat confinc.out 2>/dev/null` in #( 32157ed541caSmrg '0:this is the am__doit target') : 32167ed541caSmrg case $s in #( 32177ed541caSmrg BSD) : 32187ed541caSmrg am__include='.include' am__quote='"' ;; #( 32197ed541caSmrg *) : 32207ed541caSmrg am__include='include' am__quote='' ;; 32217ed541caSmrgesac ;; #( 32227ed541caSmrg *) : 322308e312fdSmrg ;; 32247ed541caSmrgesac 32257ed541caSmrg if test "$am__include" != "#"; then 32267ed541caSmrg _am_result="yes ($s style)" 32277ed541caSmrg break 32287ed541caSmrg fi 32297ed541caSmrgdone 32307ed541caSmrgrm -f confinc.* confmf.* 32317ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 32327ed541caSmrgprintf "%s\n" "${_am_result}" >&6; } 323308e312fdSmrg 323408e312fdSmrg# Check whether --enable-dependency-tracking was given. 32357ed541caSmrgif test ${enable_dependency_tracking+y} 32367ed541caSmrgthen : 323708e312fdSmrg enableval=$enable_dependency_tracking; 323808e312fdSmrgfi 323908e312fdSmrg 324008e312fdSmrgif test "x$enable_dependency_tracking" != xno; then 324108e312fdSmrg am_depcomp="$ac_aux_dir/depcomp" 324208e312fdSmrg AMDEPBACKSLASH='\' 324333dddc75Smrg am__nodep='_no' 324408e312fdSmrgfi 324508e312fdSmrg if test "x$enable_dependency_tracking" != xno; then 324608e312fdSmrg AMDEP_TRUE= 324708e312fdSmrg AMDEP_FALSE='#' 324808e312fdSmrgelse 324908e312fdSmrg AMDEP_TRUE='#' 325008e312fdSmrg AMDEP_FALSE= 325108e312fdSmrgfi 325272b4363aSmrg 325372b4363aSmrg 325472b4363aSmrgac_ext=c 325572b4363aSmrgac_cpp='$CPP $CPPFLAGS' 325672b4363aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 325772b4363aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 325872b4363aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 325972b4363aSmrgif test -n "$ac_tool_prefix"; then 326072b4363aSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 326172b4363aSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 32627ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32637ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 32647ed541caSmrgif test ${ac_cv_prog_CC+y} 32657ed541caSmrgthen : 32667ed541caSmrg printf %s "(cached) " >&6 32677ed541caSmrgelse $as_nop 326872b4363aSmrg if test -n "$CC"; then 326972b4363aSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 327072b4363aSmrgelse 327172b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 327272b4363aSmrgfor as_dir in $PATH 327372b4363aSmrgdo 327472b4363aSmrg IFS=$as_save_IFS 32757ed541caSmrg case $as_dir in #((( 32767ed541caSmrg '') as_dir=./ ;; 32777ed541caSmrg */) ;; 32787ed541caSmrg *) as_dir=$as_dir/ ;; 32797ed541caSmrg esac 328008e312fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 32817ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 328272b4363aSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 32837ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 328472b4363aSmrg break 2 328572b4363aSmrg fi 328672b4363aSmrgdone 328708e312fdSmrg done 328872b4363aSmrgIFS=$as_save_IFS 328972b4363aSmrg 329072b4363aSmrgfi 329172b4363aSmrgfi 329272b4363aSmrgCC=$ac_cv_prog_CC 329372b4363aSmrgif test -n "$CC"; then 32947ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 32957ed541caSmrgprintf "%s\n" "$CC" >&6; } 329672b4363aSmrgelse 32977ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32987ed541caSmrgprintf "%s\n" "no" >&6; } 329972b4363aSmrgfi 330072b4363aSmrg 330172b4363aSmrg 330272b4363aSmrgfi 330372b4363aSmrgif test -z "$ac_cv_prog_CC"; then 330472b4363aSmrg ac_ct_CC=$CC 330572b4363aSmrg # Extract the first word of "gcc", so it can be a program name with args. 330672b4363aSmrgset dummy gcc; ac_word=$2 33077ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33087ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 33097ed541caSmrgif test ${ac_cv_prog_ac_ct_CC+y} 33107ed541caSmrgthen : 33117ed541caSmrg printf %s "(cached) " >&6 33127ed541caSmrgelse $as_nop 331372b4363aSmrg if test -n "$ac_ct_CC"; then 331472b4363aSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 331572b4363aSmrgelse 331672b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 331772b4363aSmrgfor as_dir in $PATH 331872b4363aSmrgdo 331972b4363aSmrg IFS=$as_save_IFS 33207ed541caSmrg case $as_dir in #((( 33217ed541caSmrg '') as_dir=./ ;; 33227ed541caSmrg */) ;; 33237ed541caSmrg *) as_dir=$as_dir/ ;; 33247ed541caSmrg esac 332508e312fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 33267ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 332772b4363aSmrg ac_cv_prog_ac_ct_CC="gcc" 33287ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 332972b4363aSmrg break 2 333072b4363aSmrg fi 333172b4363aSmrgdone 333208e312fdSmrg done 333372b4363aSmrgIFS=$as_save_IFS 333472b4363aSmrg 333572b4363aSmrgfi 333672b4363aSmrgfi 333772b4363aSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 333872b4363aSmrgif test -n "$ac_ct_CC"; then 33397ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 33407ed541caSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 334172b4363aSmrgelse 33427ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33437ed541caSmrgprintf "%s\n" "no" >&6; } 334472b4363aSmrgfi 334572b4363aSmrg 334672b4363aSmrg if test "x$ac_ct_CC" = x; then 334772b4363aSmrg CC="" 334872b4363aSmrg else 334972b4363aSmrg case $cross_compiling:$ac_tool_warned in 335072b4363aSmrgyes:) 33517ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33527ed541caSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 335372b4363aSmrgac_tool_warned=yes ;; 335472b4363aSmrgesac 335572b4363aSmrg CC=$ac_ct_CC 335672b4363aSmrg fi 335772b4363aSmrgelse 335872b4363aSmrg CC="$ac_cv_prog_CC" 335972b4363aSmrgfi 336072b4363aSmrg 336172b4363aSmrgif test -z "$CC"; then 336272b4363aSmrg if test -n "$ac_tool_prefix"; then 336372b4363aSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 336472b4363aSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 33657ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33667ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 33677ed541caSmrgif test ${ac_cv_prog_CC+y} 33687ed541caSmrgthen : 33697ed541caSmrg printf %s "(cached) " >&6 33707ed541caSmrgelse $as_nop 337172b4363aSmrg if test -n "$CC"; then 337272b4363aSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 337372b4363aSmrgelse 337472b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 337572b4363aSmrgfor as_dir in $PATH 337672b4363aSmrgdo 337772b4363aSmrg IFS=$as_save_IFS 33787ed541caSmrg case $as_dir in #((( 33797ed541caSmrg '') as_dir=./ ;; 33807ed541caSmrg */) ;; 33817ed541caSmrg *) as_dir=$as_dir/ ;; 33827ed541caSmrg esac 338308e312fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 33847ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 338572b4363aSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 33867ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 338772b4363aSmrg break 2 338872b4363aSmrg fi 338972b4363aSmrgdone 339008e312fdSmrg done 339172b4363aSmrgIFS=$as_save_IFS 339272b4363aSmrg 339372b4363aSmrgfi 339472b4363aSmrgfi 339572b4363aSmrgCC=$ac_cv_prog_CC 339672b4363aSmrgif test -n "$CC"; then 33977ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 33987ed541caSmrgprintf "%s\n" "$CC" >&6; } 339972b4363aSmrgelse 34007ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34017ed541caSmrgprintf "%s\n" "no" >&6; } 340272b4363aSmrgfi 340372b4363aSmrg 340472b4363aSmrg 340572b4363aSmrg fi 340672b4363aSmrgfi 340772b4363aSmrgif test -z "$CC"; then 340872b4363aSmrg # Extract the first word of "cc", so it can be a program name with args. 340972b4363aSmrgset dummy cc; ac_word=$2 34107ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34117ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 34127ed541caSmrgif test ${ac_cv_prog_CC+y} 34137ed541caSmrgthen : 34147ed541caSmrg printf %s "(cached) " >&6 34157ed541caSmrgelse $as_nop 341672b4363aSmrg if test -n "$CC"; then 341772b4363aSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 341872b4363aSmrgelse 341972b4363aSmrg ac_prog_rejected=no 342072b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 342172b4363aSmrgfor as_dir in $PATH 342272b4363aSmrgdo 342372b4363aSmrg IFS=$as_save_IFS 34247ed541caSmrg case $as_dir in #((( 34257ed541caSmrg '') as_dir=./ ;; 34267ed541caSmrg */) ;; 34277ed541caSmrg *) as_dir=$as_dir/ ;; 34287ed541caSmrg esac 342908e312fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 34307ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 34317ed541caSmrg if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 343272b4363aSmrg ac_prog_rejected=yes 343372b4363aSmrg continue 343472b4363aSmrg fi 343572b4363aSmrg ac_cv_prog_CC="cc" 34367ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 343772b4363aSmrg break 2 343872b4363aSmrg fi 343972b4363aSmrgdone 344008e312fdSmrg done 344172b4363aSmrgIFS=$as_save_IFS 344272b4363aSmrg 344372b4363aSmrgif test $ac_prog_rejected = yes; then 344472b4363aSmrg # We found a bogon in the path, so make sure we never use it. 344572b4363aSmrg set dummy $ac_cv_prog_CC 344672b4363aSmrg shift 344772b4363aSmrg if test $# != 0; then 344872b4363aSmrg # We chose a different compiler from the bogus one. 344972b4363aSmrg # However, it has the same basename, so the bogon will be chosen 345072b4363aSmrg # first if we set CC to just the basename; use the full file name. 345172b4363aSmrg shift 34527ed541caSmrg ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 345372b4363aSmrg fi 345472b4363aSmrgfi 345572b4363aSmrgfi 345672b4363aSmrgfi 345772b4363aSmrgCC=$ac_cv_prog_CC 345872b4363aSmrgif test -n "$CC"; then 34597ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 34607ed541caSmrgprintf "%s\n" "$CC" >&6; } 346172b4363aSmrgelse 34627ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34637ed541caSmrgprintf "%s\n" "no" >&6; } 346472b4363aSmrgfi 346572b4363aSmrg 346672b4363aSmrg 346772b4363aSmrgfi 346872b4363aSmrgif test -z "$CC"; then 346972b4363aSmrg if test -n "$ac_tool_prefix"; then 347072b4363aSmrg for ac_prog in cl.exe 347172b4363aSmrg do 347272b4363aSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 347372b4363aSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 34747ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34757ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 34767ed541caSmrgif test ${ac_cv_prog_CC+y} 34777ed541caSmrgthen : 34787ed541caSmrg printf %s "(cached) " >&6 34797ed541caSmrgelse $as_nop 348072b4363aSmrg if test -n "$CC"; then 348172b4363aSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 348272b4363aSmrgelse 348372b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 348472b4363aSmrgfor as_dir in $PATH 348572b4363aSmrgdo 348672b4363aSmrg IFS=$as_save_IFS 34877ed541caSmrg case $as_dir in #((( 34887ed541caSmrg '') as_dir=./ ;; 34897ed541caSmrg */) ;; 34907ed541caSmrg *) as_dir=$as_dir/ ;; 34917ed541caSmrg esac 349208e312fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 34937ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 349472b4363aSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 34957ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 349672b4363aSmrg break 2 349772b4363aSmrg fi 349872b4363aSmrgdone 349908e312fdSmrg done 350072b4363aSmrgIFS=$as_save_IFS 350172b4363aSmrg 350272b4363aSmrgfi 350372b4363aSmrgfi 350472b4363aSmrgCC=$ac_cv_prog_CC 350572b4363aSmrgif test -n "$CC"; then 35067ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 35077ed541caSmrgprintf "%s\n" "$CC" >&6; } 350872b4363aSmrgelse 35097ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35107ed541caSmrgprintf "%s\n" "no" >&6; } 351172b4363aSmrgfi 351272b4363aSmrg 351372b4363aSmrg 351472b4363aSmrg test -n "$CC" && break 351572b4363aSmrg done 351672b4363aSmrgfi 351772b4363aSmrgif test -z "$CC"; then 351872b4363aSmrg ac_ct_CC=$CC 351972b4363aSmrg for ac_prog in cl.exe 352072b4363aSmrgdo 352172b4363aSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 352272b4363aSmrgset dummy $ac_prog; ac_word=$2 35237ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35247ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 35257ed541caSmrgif test ${ac_cv_prog_ac_ct_CC+y} 35267ed541caSmrgthen : 35277ed541caSmrg printf %s "(cached) " >&6 35287ed541caSmrgelse $as_nop 352972b4363aSmrg if test -n "$ac_ct_CC"; then 353072b4363aSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 353172b4363aSmrgelse 353272b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 353372b4363aSmrgfor as_dir in $PATH 353472b4363aSmrgdo 353572b4363aSmrg IFS=$as_save_IFS 35367ed541caSmrg case $as_dir in #((( 35377ed541caSmrg '') as_dir=./ ;; 35387ed541caSmrg */) ;; 35397ed541caSmrg *) as_dir=$as_dir/ ;; 35407ed541caSmrg esac 354108e312fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 35427ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 354372b4363aSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 35447ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 354572b4363aSmrg break 2 354672b4363aSmrg fi 354772b4363aSmrgdone 354808e312fdSmrg done 354972b4363aSmrgIFS=$as_save_IFS 355072b4363aSmrg 355172b4363aSmrgfi 355272b4363aSmrgfi 355372b4363aSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 355472b4363aSmrgif test -n "$ac_ct_CC"; then 35557ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 35567ed541caSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 355772b4363aSmrgelse 35587ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35597ed541caSmrgprintf "%s\n" "no" >&6; } 356072b4363aSmrgfi 356172b4363aSmrg 356272b4363aSmrg 356372b4363aSmrg test -n "$ac_ct_CC" && break 356472b4363aSmrgdone 356572b4363aSmrg 356672b4363aSmrg if test "x$ac_ct_CC" = x; then 356772b4363aSmrg CC="" 356872b4363aSmrg else 356972b4363aSmrg case $cross_compiling:$ac_tool_warned in 357072b4363aSmrgyes:) 35717ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35727ed541caSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35737ed541caSmrgac_tool_warned=yes ;; 35747ed541caSmrgesac 35757ed541caSmrg CC=$ac_ct_CC 35767ed541caSmrg fi 35777ed541caSmrgfi 35787ed541caSmrg 35797ed541caSmrgfi 35807ed541caSmrgif test -z "$CC"; then 35817ed541caSmrg if test -n "$ac_tool_prefix"; then 35827ed541caSmrg # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 35837ed541caSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2 35847ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35857ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 35867ed541caSmrgif test ${ac_cv_prog_CC+y} 35877ed541caSmrgthen : 35887ed541caSmrg printf %s "(cached) " >&6 35897ed541caSmrgelse $as_nop 35907ed541caSmrg if test -n "$CC"; then 35917ed541caSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 35927ed541caSmrgelse 35937ed541caSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35947ed541caSmrgfor as_dir in $PATH 35957ed541caSmrgdo 35967ed541caSmrg IFS=$as_save_IFS 35977ed541caSmrg case $as_dir in #((( 35987ed541caSmrg '') as_dir=./ ;; 35997ed541caSmrg */) ;; 36007ed541caSmrg *) as_dir=$as_dir/ ;; 36017ed541caSmrg esac 36027ed541caSmrg for ac_exec_ext in '' $ac_executable_extensions; do 36037ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 36047ed541caSmrg ac_cv_prog_CC="${ac_tool_prefix}clang" 36057ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 36067ed541caSmrg break 2 36077ed541caSmrg fi 36087ed541caSmrgdone 36097ed541caSmrg done 36107ed541caSmrgIFS=$as_save_IFS 36117ed541caSmrg 36127ed541caSmrgfi 36137ed541caSmrgfi 36147ed541caSmrgCC=$ac_cv_prog_CC 36157ed541caSmrgif test -n "$CC"; then 36167ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 36177ed541caSmrgprintf "%s\n" "$CC" >&6; } 36187ed541caSmrgelse 36197ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36207ed541caSmrgprintf "%s\n" "no" >&6; } 36217ed541caSmrgfi 36227ed541caSmrg 36237ed541caSmrg 36247ed541caSmrgfi 36257ed541caSmrgif test -z "$ac_cv_prog_CC"; then 36267ed541caSmrg ac_ct_CC=$CC 36277ed541caSmrg # Extract the first word of "clang", so it can be a program name with args. 36287ed541caSmrgset dummy clang; ac_word=$2 36297ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36307ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 36317ed541caSmrgif test ${ac_cv_prog_ac_ct_CC+y} 36327ed541caSmrgthen : 36337ed541caSmrg printf %s "(cached) " >&6 36347ed541caSmrgelse $as_nop 36357ed541caSmrg if test -n "$ac_ct_CC"; then 36367ed541caSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 36377ed541caSmrgelse 36387ed541caSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36397ed541caSmrgfor as_dir in $PATH 36407ed541caSmrgdo 36417ed541caSmrg IFS=$as_save_IFS 36427ed541caSmrg case $as_dir in #((( 36437ed541caSmrg '') as_dir=./ ;; 36447ed541caSmrg */) ;; 36457ed541caSmrg *) as_dir=$as_dir/ ;; 36467ed541caSmrg esac 36477ed541caSmrg for ac_exec_ext in '' $ac_executable_extensions; do 36487ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 36497ed541caSmrg ac_cv_prog_ac_ct_CC="clang" 36507ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 36517ed541caSmrg break 2 36527ed541caSmrg fi 36537ed541caSmrgdone 36547ed541caSmrg done 36557ed541caSmrgIFS=$as_save_IFS 36567ed541caSmrg 36577ed541caSmrgfi 36587ed541caSmrgfi 36597ed541caSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 36607ed541caSmrgif test -n "$ac_ct_CC"; then 36617ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 36627ed541caSmrgprintf "%s\n" "$ac_ct_CC" >&6; } 36637ed541caSmrgelse 36647ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36657ed541caSmrgprintf "%s\n" "no" >&6; } 36667ed541caSmrgfi 36677ed541caSmrg 36687ed541caSmrg if test "x$ac_ct_CC" = x; then 36697ed541caSmrg CC="" 36707ed541caSmrg else 36717ed541caSmrg case $cross_compiling:$ac_tool_warned in 36727ed541caSmrgyes:) 36737ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36747ed541caSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 367572b4363aSmrgac_tool_warned=yes ;; 367672b4363aSmrgesac 367772b4363aSmrg CC=$ac_ct_CC 367872b4363aSmrg fi 36797ed541caSmrgelse 36807ed541caSmrg CC="$ac_cv_prog_CC" 368172b4363aSmrgfi 368272b4363aSmrg 368372b4363aSmrgfi 368472b4363aSmrg 368572b4363aSmrg 36867ed541caSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36877ed541caSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 368808e312fdSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 368908e312fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 369072b4363aSmrg 369172b4363aSmrg# Provide some information about the compiler. 36927ed541caSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3693dd77ae96Smrgset X $ac_compile 3694dd77ae96Smrgac_compiler=$2 36957ed541caSmrgfor ac_option in --version -v -V -qversion -version; do 369608e312fdSmrg { { ac_try="$ac_compiler $ac_option >&5" 369772b4363aSmrgcase "(($ac_try" in 369872b4363aSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 369972b4363aSmrg *) ac_try_echo=$ac_try;; 370072b4363aSmrgesac 370108e312fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 37027ed541caSmrgprintf "%s\n" "$ac_try_echo"; } >&5 370308e312fdSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 370472b4363aSmrg ac_status=$? 370508e312fdSmrg if test -s conftest.err; then 370608e312fdSmrg sed '10a\ 370708e312fdSmrg... rest of stderr output deleted ... 370808e312fdSmrg 10q' conftest.err >conftest.er1 370908e312fdSmrg cat conftest.er1 >&5 371008e312fdSmrg fi 371108e312fdSmrg rm -f conftest.er1 conftest.err 37127ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 371308e312fdSmrg test $ac_status = 0; } 371408e312fdSmrgdone 371572b4363aSmrg 371608e312fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 371772b4363aSmrg/* end confdefs.h. */ 371872b4363aSmrg 371972b4363aSmrgint 37207ed541caSmrgmain (void) 372172b4363aSmrg{ 372272b4363aSmrg 372372b4363aSmrg ; 372472b4363aSmrg return 0; 372572b4363aSmrg} 372672b4363aSmrg_ACEOF 372772b4363aSmrgac_clean_files_save=$ac_clean_files 3728dd77ae96Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 372972b4363aSmrg# Try to create an executable without -o first, disregard a.out. 373072b4363aSmrg# It will help us diagnose broken compilers, and finding out an intuition 373172b4363aSmrg# of exeext. 37327ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 37337ed541caSmrgprintf %s "checking whether the C compiler works... " >&6; } 37347ed541caSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3735dd77ae96Smrg 3736dd77ae96Smrg# The possible output files: 3737dd77ae96Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3738dd77ae96Smrg 373972b4363aSmrgac_rmfiles= 374072b4363aSmrgfor ac_file in $ac_files 374172b4363aSmrgdo 374272b4363aSmrg case $ac_file in 3743dd77ae96Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 374472b4363aSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 374572b4363aSmrg esac 374672b4363aSmrgdone 374772b4363aSmrgrm -f $ac_rmfiles 374872b4363aSmrg 374908e312fdSmrgif { { ac_try="$ac_link_default" 375072b4363aSmrgcase "(($ac_try" in 375172b4363aSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 375272b4363aSmrg *) ac_try_echo=$ac_try;; 375372b4363aSmrgesac 375408e312fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 37557ed541caSmrgprintf "%s\n" "$ac_try_echo"; } >&5 375672b4363aSmrg (eval "$ac_link_default") 2>&5 375772b4363aSmrg ac_status=$? 37587ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37597ed541caSmrg test $ac_status = 0; } 37607ed541caSmrgthen : 376172b4363aSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 376272b4363aSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 376372b4363aSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 376472b4363aSmrg# so that the user can short-circuit this test for compilers unknown to 376572b4363aSmrg# Autoconf. 376672b4363aSmrgfor ac_file in $ac_files '' 376772b4363aSmrgdo 376872b4363aSmrg test -f "$ac_file" || continue 376972b4363aSmrg case $ac_file in 3770dd77ae96Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 377172b4363aSmrg ;; 377272b4363aSmrg [ab].out ) 377372b4363aSmrg # We found the default executable, but exeext='' is most 377472b4363aSmrg # certainly right. 377572b4363aSmrg break;; 377672b4363aSmrg *.* ) 37777ed541caSmrg if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 377872b4363aSmrg then :; else 377972b4363aSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 378072b4363aSmrg fi 378172b4363aSmrg # We set ac_cv_exeext here because the later test for it is not 378272b4363aSmrg # safe: cross compilers may not add the suffix if given an `-o' 378372b4363aSmrg # argument, so we may need to know it at that point already. 378472b4363aSmrg # Even if this section looks crufty: it has the advantage of 378572b4363aSmrg # actually working. 378672b4363aSmrg break;; 378772b4363aSmrg * ) 378872b4363aSmrg break;; 378972b4363aSmrg esac 379072b4363aSmrgdone 379172b4363aSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 379272b4363aSmrg 37937ed541caSmrgelse $as_nop 379472b4363aSmrg ac_file='' 379572b4363aSmrgfi 37967ed541caSmrgif test -z "$ac_file" 37977ed541caSmrgthen : 37987ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37997ed541caSmrgprintf "%s\n" "no" >&6; } 38007ed541caSmrgprintf "%s\n" "$as_me: failed program was:" >&5 380108e312fdSmrgsed 's/^/| /' conftest.$ac_ext >&5 380272b4363aSmrg 38037ed541caSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 38047ed541caSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 380508e312fdSmrgas_fn_error 77 "C compiler cannot create executables 380608e312fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 38077ed541caSmrgelse $as_nop 38087ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38097ed541caSmrgprintf "%s\n" "yes" >&6; } 38107ed541caSmrgfi 38117ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 38127ed541caSmrgprintf %s "checking for C compiler default output file name... " >&6; } 38137ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 38147ed541caSmrgprintf "%s\n" "$ac_file" >&6; } 381572b4363aSmrgac_exeext=$ac_cv_exeext 381672b4363aSmrg 3817dd77ae96Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 381872b4363aSmrgac_clean_files=$ac_clean_files_save 38197ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 38207ed541caSmrgprintf %s "checking for suffix of executables... " >&6; } 382108e312fdSmrgif { { ac_try="$ac_link" 382272b4363aSmrgcase "(($ac_try" in 382372b4363aSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 382472b4363aSmrg *) ac_try_echo=$ac_try;; 382572b4363aSmrgesac 382608e312fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 38277ed541caSmrgprintf "%s\n" "$ac_try_echo"; } >&5 382872b4363aSmrg (eval "$ac_link") 2>&5 382972b4363aSmrg ac_status=$? 38307ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38317ed541caSmrg test $ac_status = 0; } 38327ed541caSmrgthen : 383372b4363aSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 383472b4363aSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 383572b4363aSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 383672b4363aSmrg# `rm'. 383772b4363aSmrgfor ac_file in conftest.exe conftest conftest.*; do 383872b4363aSmrg test -f "$ac_file" || continue 383972b4363aSmrg case $ac_file in 3840dd77ae96Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 384172b4363aSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 384272b4363aSmrg break;; 384372b4363aSmrg * ) break;; 384472b4363aSmrg esac 384572b4363aSmrgdone 38467ed541caSmrgelse $as_nop 38477ed541caSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 38487ed541caSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 384908e312fdSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 385008e312fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 385172b4363aSmrgfi 385208e312fdSmrgrm -f conftest conftest$ac_cv_exeext 38537ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 38547ed541caSmrgprintf "%s\n" "$ac_cv_exeext" >&6; } 385572b4363aSmrg 385672b4363aSmrgrm -f conftest.$ac_ext 385772b4363aSmrgEXEEXT=$ac_cv_exeext 385872b4363aSmrgac_exeext=$EXEEXT 385908e312fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 386008e312fdSmrg/* end confdefs.h. */ 386108e312fdSmrg#include <stdio.h> 386208e312fdSmrgint 38637ed541caSmrgmain (void) 386408e312fdSmrg{ 386508e312fdSmrgFILE *f = fopen ("conftest.out", "w"); 386608e312fdSmrg return ferror (f) || fclose (f) != 0; 386708e312fdSmrg 386808e312fdSmrg ; 386908e312fdSmrg return 0; 387008e312fdSmrg} 387108e312fdSmrg_ACEOF 387208e312fdSmrgac_clean_files="$ac_clean_files conftest.out" 387308e312fdSmrg# Check that the compiler produces executables we can run. If not, either 387408e312fdSmrg# the compiler is broken, or we cross compile. 38757ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 38767ed541caSmrgprintf %s "checking whether we are cross compiling... " >&6; } 387708e312fdSmrgif test "$cross_compiling" != yes; then 387808e312fdSmrg { { ac_try="$ac_link" 387908e312fdSmrgcase "(($ac_try" in 388008e312fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 388108e312fdSmrg *) ac_try_echo=$ac_try;; 388208e312fdSmrgesac 388308e312fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 38847ed541caSmrgprintf "%s\n" "$ac_try_echo"; } >&5 388508e312fdSmrg (eval "$ac_link") 2>&5 388608e312fdSmrg ac_status=$? 38877ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 388808e312fdSmrg test $ac_status = 0; } 388908e312fdSmrg if { ac_try='./conftest$ac_cv_exeext' 389008e312fdSmrg { { case "(($ac_try" in 389108e312fdSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 389208e312fdSmrg *) ac_try_echo=$ac_try;; 389308e312fdSmrgesac 389408e312fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 38957ed541caSmrgprintf "%s\n" "$ac_try_echo"; } >&5 389608e312fdSmrg (eval "$ac_try") 2>&5 389708e312fdSmrg ac_status=$? 38987ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 389908e312fdSmrg test $ac_status = 0; }; }; then 390008e312fdSmrg cross_compiling=no 390108e312fdSmrg else 390208e312fdSmrg if test "$cross_compiling" = maybe; then 390308e312fdSmrg cross_compiling=yes 390408e312fdSmrg else 39057ed541caSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39067ed541caSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 39077ed541caSmrgas_fn_error 77 "cannot run C compiled programs. 390808e312fdSmrgIf you meant to cross compile, use \`--host'. 390908e312fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 391008e312fdSmrg fi 391108e312fdSmrg fi 391208e312fdSmrgfi 39137ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 39147ed541caSmrgprintf "%s\n" "$cross_compiling" >&6; } 391508e312fdSmrg 391608e312fdSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 391708e312fdSmrgac_clean_files=$ac_clean_files_save 39187ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 39197ed541caSmrgprintf %s "checking for suffix of object files... " >&6; } 39207ed541caSmrgif test ${ac_cv_objext+y} 39217ed541caSmrgthen : 39227ed541caSmrg printf %s "(cached) " >&6 39237ed541caSmrgelse $as_nop 392408e312fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 392572b4363aSmrg/* end confdefs.h. */ 392672b4363aSmrg 392772b4363aSmrgint 39287ed541caSmrgmain (void) 392972b4363aSmrg{ 393072b4363aSmrg 393172b4363aSmrg ; 393272b4363aSmrg return 0; 393372b4363aSmrg} 393472b4363aSmrg_ACEOF 393572b4363aSmrgrm -f conftest.o conftest.obj 393608e312fdSmrgif { { ac_try="$ac_compile" 393772b4363aSmrgcase "(($ac_try" in 393872b4363aSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 393972b4363aSmrg *) ac_try_echo=$ac_try;; 394072b4363aSmrgesac 394108e312fdSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 39427ed541caSmrgprintf "%s\n" "$ac_try_echo"; } >&5 394372b4363aSmrg (eval "$ac_compile") 2>&5 394472b4363aSmrg ac_status=$? 39457ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 39467ed541caSmrg test $ac_status = 0; } 39477ed541caSmrgthen : 394872b4363aSmrg for ac_file in conftest.o conftest.obj conftest.*; do 394972b4363aSmrg test -f "$ac_file" || continue; 395072b4363aSmrg case $ac_file in 3951dd77ae96Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 395272b4363aSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 395372b4363aSmrg break;; 395472b4363aSmrg esac 395572b4363aSmrgdone 39567ed541caSmrgelse $as_nop 39577ed541caSmrg printf "%s\n" "$as_me: failed program was:" >&5 395872b4363aSmrgsed 's/^/| /' conftest.$ac_ext >&5 395972b4363aSmrg 39607ed541caSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39617ed541caSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 396208e312fdSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 396308e312fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 396472b4363aSmrgfi 396572b4363aSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 396672b4363aSmrgfi 39677ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 39687ed541caSmrgprintf "%s\n" "$ac_cv_objext" >&6; } 396972b4363aSmrgOBJEXT=$ac_cv_objext 397072b4363aSmrgac_objext=$OBJEXT 39717ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 39727ed541caSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; } 39737ed541caSmrgif test ${ac_cv_c_compiler_gnu+y} 39747ed541caSmrgthen : 39757ed541caSmrg printf %s "(cached) " >&6 39767ed541caSmrgelse $as_nop 397708e312fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 397872b4363aSmrg/* end confdefs.h. */ 397972b4363aSmrg 398072b4363aSmrgint 39817ed541caSmrgmain (void) 398272b4363aSmrg{ 398372b4363aSmrg#ifndef __GNUC__ 398472b4363aSmrg choke me 398572b4363aSmrg#endif 398672b4363aSmrg 398772b4363aSmrg ; 398872b4363aSmrg return 0; 398972b4363aSmrg} 399072b4363aSmrg_ACEOF 39917ed541caSmrgif ac_fn_c_try_compile "$LINENO" 39927ed541caSmrgthen : 399372b4363aSmrg ac_compiler_gnu=yes 39947ed541caSmrgelse $as_nop 399508e312fdSmrg ac_compiler_gnu=no 399672b4363aSmrgfi 39977ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 399872b4363aSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 399972b4363aSmrg 400072b4363aSmrgfi 40017ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 40027ed541caSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 40037ed541caSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 40047ed541caSmrg 4005dd77ae96Smrgif test $ac_compiler_gnu = yes; then 4006dd77ae96Smrg GCC=yes 4007dd77ae96Smrgelse 4008dd77ae96Smrg GCC= 4009dd77ae96Smrgfi 40107ed541caSmrgac_test_CFLAGS=${CFLAGS+y} 401172b4363aSmrgac_save_CFLAGS=$CFLAGS 40127ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 40137ed541caSmrgprintf %s "checking whether $CC accepts -g... " >&6; } 40147ed541caSmrgif test ${ac_cv_prog_cc_g+y} 40157ed541caSmrgthen : 40167ed541caSmrg printf %s "(cached) " >&6 40177ed541caSmrgelse $as_nop 401872b4363aSmrg ac_save_c_werror_flag=$ac_c_werror_flag 401972b4363aSmrg ac_c_werror_flag=yes 402072b4363aSmrg ac_cv_prog_cc_g=no 402172b4363aSmrg CFLAGS="-g" 402208e312fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 402372b4363aSmrg/* end confdefs.h. */ 402472b4363aSmrg 402572b4363aSmrgint 40267ed541caSmrgmain (void) 402772b4363aSmrg{ 402872b4363aSmrg 402972b4363aSmrg ; 403072b4363aSmrg return 0; 403172b4363aSmrg} 403272b4363aSmrg_ACEOF 40337ed541caSmrgif ac_fn_c_try_compile "$LINENO" 40347ed541caSmrgthen : 403572b4363aSmrg ac_cv_prog_cc_g=yes 40367ed541caSmrgelse $as_nop 403708e312fdSmrg CFLAGS="" 403808e312fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 403972b4363aSmrg/* end confdefs.h. */ 404072b4363aSmrg 404172b4363aSmrgint 40427ed541caSmrgmain (void) 404372b4363aSmrg{ 404472b4363aSmrg 404572b4363aSmrg ; 404672b4363aSmrg return 0; 404772b4363aSmrg} 404872b4363aSmrg_ACEOF 40497ed541caSmrgif ac_fn_c_try_compile "$LINENO" 40507ed541caSmrgthen : 405172b4363aSmrg 40527ed541caSmrgelse $as_nop 405308e312fdSmrg ac_c_werror_flag=$ac_save_c_werror_flag 405472b4363aSmrg CFLAGS="-g" 405508e312fdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 405672b4363aSmrg/* end confdefs.h. */ 405772b4363aSmrg 405872b4363aSmrgint 40597ed541caSmrgmain (void) 406072b4363aSmrg{ 406172b4363aSmrg 406272b4363aSmrg ; 406372b4363aSmrg return 0; 406472b4363aSmrg} 406572b4363aSmrg_ACEOF 40667ed541caSmrgif ac_fn_c_try_compile "$LINENO" 40677ed541caSmrgthen : 406872b4363aSmrg ac_cv_prog_cc_g=yes 406972b4363aSmrgfi 40707ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 407172b4363aSmrgfi 40727ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 407372b4363aSmrgfi 40747ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 407572b4363aSmrg ac_c_werror_flag=$ac_save_c_werror_flag 407672b4363aSmrgfi 40777ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 40787ed541caSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; } 40797ed541caSmrgif test $ac_test_CFLAGS; then 408072b4363aSmrg CFLAGS=$ac_save_CFLAGS 408172b4363aSmrgelif test $ac_cv_prog_cc_g = yes; then 408272b4363aSmrg if test "$GCC" = yes; then 408372b4363aSmrg CFLAGS="-g -O2" 408472b4363aSmrg else 408572b4363aSmrg CFLAGS="-g" 408672b4363aSmrg fi 408772b4363aSmrgelse 408872b4363aSmrg if test "$GCC" = yes; then 408972b4363aSmrg CFLAGS="-O2" 409072b4363aSmrg else 409172b4363aSmrg CFLAGS= 409272b4363aSmrg fi 409372b4363aSmrgfi 40947ed541caSmrgac_prog_cc_stdc=no 40957ed541caSmrgif test x$ac_prog_cc_stdc = xno 40967ed541caSmrgthen : 40977ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 40987ed541caSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; } 40997ed541caSmrgif test ${ac_cv_prog_cc_c11+y} 41007ed541caSmrgthen : 41017ed541caSmrg printf %s "(cached) " >&6 41027ed541caSmrgelse $as_nop 41037ed541caSmrg ac_cv_prog_cc_c11=no 410472b4363aSmrgac_save_CC=$CC 410508e312fdSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 410672b4363aSmrg/* end confdefs.h. */ 41077ed541caSmrg$ac_c_conftest_c11_program 41087ed541caSmrg_ACEOF 41097ed541caSmrgfor ac_arg in '' -std=gnu11 41107ed541caSmrgdo 41117ed541caSmrg CC="$ac_save_CC $ac_arg" 41127ed541caSmrg if ac_fn_c_try_compile "$LINENO" 41137ed541caSmrgthen : 41147ed541caSmrg ac_cv_prog_cc_c11=$ac_arg 41157ed541caSmrgfi 41167ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 41177ed541caSmrg test "x$ac_cv_prog_cc_c11" != "xno" && break 41187ed541caSmrgdone 41197ed541caSmrgrm -f conftest.$ac_ext 41207ed541caSmrgCC=$ac_save_CC 41217ed541caSmrgfi 412272b4363aSmrg 41237ed541caSmrgif test "x$ac_cv_prog_cc_c11" = xno 41247ed541caSmrgthen : 41257ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 41267ed541caSmrgprintf "%s\n" "unsupported" >&6; } 41277ed541caSmrgelse $as_nop 41287ed541caSmrg if test "x$ac_cv_prog_cc_c11" = x 41297ed541caSmrgthen : 41307ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 41317ed541caSmrgprintf "%s\n" "none needed" >&6; } 41327ed541caSmrgelse $as_nop 41337ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 41347ed541caSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 41357ed541caSmrg CC="$CC $ac_cv_prog_cc_c11" 41367ed541caSmrgfi 41377ed541caSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 41387ed541caSmrg ac_prog_cc_stdc=c11 41397ed541caSmrgfi 41407ed541caSmrgfi 41417ed541caSmrgif test x$ac_prog_cc_stdc = xno 41427ed541caSmrgthen : 41437ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 41447ed541caSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; } 41457ed541caSmrgif test ${ac_cv_prog_cc_c99+y} 41467ed541caSmrgthen : 41477ed541caSmrg printf %s "(cached) " >&6 41487ed541caSmrgelse $as_nop 41497ed541caSmrg ac_cv_prog_cc_c99=no 41507ed541caSmrgac_save_CC=$CC 41517ed541caSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 41527ed541caSmrg/* end confdefs.h. */ 41537ed541caSmrg$ac_c_conftest_c99_program 41547ed541caSmrg_ACEOF 41557ed541caSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 41567ed541caSmrgdo 41577ed541caSmrg CC="$ac_save_CC $ac_arg" 41587ed541caSmrg if ac_fn_c_try_compile "$LINENO" 41597ed541caSmrgthen : 41607ed541caSmrg ac_cv_prog_cc_c99=$ac_arg 41617ed541caSmrgfi 41627ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 41637ed541caSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 41647ed541caSmrgdone 41657ed541caSmrgrm -f conftest.$ac_ext 41667ed541caSmrgCC=$ac_save_CC 41677ed541caSmrgfi 416872b4363aSmrg 41697ed541caSmrgif test "x$ac_cv_prog_cc_c99" = xno 41707ed541caSmrgthen : 41717ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 41727ed541caSmrgprintf "%s\n" "unsupported" >&6; } 41737ed541caSmrgelse $as_nop 41747ed541caSmrg if test "x$ac_cv_prog_cc_c99" = x 41757ed541caSmrgthen : 41767ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 41777ed541caSmrgprintf "%s\n" "none needed" >&6; } 41787ed541caSmrgelse $as_nop 41797ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 41807ed541caSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 41817ed541caSmrg CC="$CC $ac_cv_prog_cc_c99" 41827ed541caSmrgfi 41837ed541caSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 41847ed541caSmrg ac_prog_cc_stdc=c99 41857ed541caSmrgfi 41867ed541caSmrgfi 41877ed541caSmrgif test x$ac_prog_cc_stdc = xno 41887ed541caSmrgthen : 41897ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 41907ed541caSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; } 41917ed541caSmrgif test ${ac_cv_prog_cc_c89+y} 41927ed541caSmrgthen : 41937ed541caSmrg printf %s "(cached) " >&6 41947ed541caSmrgelse $as_nop 41957ed541caSmrg ac_cv_prog_cc_c89=no 41967ed541caSmrgac_save_CC=$CC 41977ed541caSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 41987ed541caSmrg/* end confdefs.h. */ 41997ed541caSmrg$ac_c_conftest_c89_program 420072b4363aSmrg_ACEOF 42017ed541caSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 420272b4363aSmrgdo 420372b4363aSmrg CC="$ac_save_CC $ac_arg" 42047ed541caSmrg if ac_fn_c_try_compile "$LINENO" 42057ed541caSmrgthen : 420672b4363aSmrg ac_cv_prog_cc_c89=$ac_arg 420772b4363aSmrgfi 42087ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam 420972b4363aSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 421072b4363aSmrgdone 421172b4363aSmrgrm -f conftest.$ac_ext 421272b4363aSmrgCC=$ac_save_CC 421372b4363aSmrgfi 421472b4363aSmrg 42157ed541caSmrgif test "x$ac_cv_prog_cc_c89" = xno 42167ed541caSmrgthen : 42177ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 42187ed541caSmrgprintf "%s\n" "unsupported" >&6; } 42197ed541caSmrgelse $as_nop 42207ed541caSmrg if test "x$ac_cv_prog_cc_c89" = x 42217ed541caSmrgthen : 42227ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 42237ed541caSmrgprintf "%s\n" "none needed" >&6; } 42247ed541caSmrgelse $as_nop 42257ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 42267ed541caSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 42277ed541caSmrg CC="$CC $ac_cv_prog_cc_c89" 42287ed541caSmrgfi 42297ed541caSmrg ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 42307ed541caSmrg ac_prog_cc_stdc=c89 42317ed541caSmrgfi 423208e312fdSmrgfi 423372b4363aSmrg 423472b4363aSmrgac_ext=c 423572b4363aSmrgac_cpp='$CPP $CPPFLAGS' 423672b4363aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 423772b4363aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 423872b4363aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 423972b4363aSmrg 42407ed541caSmrg 42417ed541caSmrg ac_ext=c 424233dddc75Smrgac_cpp='$CPP $CPPFLAGS' 424333dddc75Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 424433dddc75Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 424533dddc75Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 42467ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 42477ed541caSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; } 42487ed541caSmrgif test ${am_cv_prog_cc_c_o+y} 42497ed541caSmrgthen : 42507ed541caSmrg printf %s "(cached) " >&6 42517ed541caSmrgelse $as_nop 425233dddc75Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 425333dddc75Smrg/* end confdefs.h. */ 425433dddc75Smrg 425533dddc75Smrgint 42567ed541caSmrgmain (void) 425733dddc75Smrg{ 425833dddc75Smrg 425933dddc75Smrg ; 426033dddc75Smrg return 0; 426133dddc75Smrg} 426233dddc75Smrg_ACEOF 426333dddc75Smrg # Make sure it works both with $CC and with simple cc. 426433dddc75Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 426533dddc75Smrg # compilers refuse to overwrite an existing .o file with -o, 426633dddc75Smrg # though they will create one. 426733dddc75Smrg am_cv_prog_cc_c_o=yes 426833dddc75Smrg for am_i in 1 2; do 426933dddc75Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 427033dddc75Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 427133dddc75Smrg ac_status=$? 427233dddc75Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 427333dddc75Smrg (exit $ac_status); } \ 427433dddc75Smrg && test -f conftest2.$ac_objext; then 427533dddc75Smrg : OK 427633dddc75Smrg else 427733dddc75Smrg am_cv_prog_cc_c_o=no 427833dddc75Smrg break 427933dddc75Smrg fi 428033dddc75Smrg done 428133dddc75Smrg rm -f core conftest* 428233dddc75Smrg unset am_i 428333dddc75Smrgfi 42847ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 42857ed541caSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 428633dddc75Smrgif test "$am_cv_prog_cc_c_o" != yes; then 428733dddc75Smrg # Losing compiler, so override with the script. 428833dddc75Smrg # FIXME: It is wrong to rewrite CC. 428933dddc75Smrg # But if we don't then we get into trouble of one sort or another. 429033dddc75Smrg # A longer-term fix would be to have automake use am__CC in this case, 429133dddc75Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 429233dddc75Smrg CC="$am_aux_dir/compile $CC" 429333dddc75Smrgfi 429433dddc75Smrgac_ext=c 429533dddc75Smrgac_cpp='$CPP $CPPFLAGS' 429633dddc75Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 429733dddc75Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 429833dddc75Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 429933dddc75Smrg 430033dddc75Smrg 430172b4363aSmrgdepcc="$CC" am_compiler_list= 430272b4363aSmrg 43037ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 43047ed541caSmrgprintf %s "checking dependency style of $depcc... " >&6; } 43057ed541caSmrgif test ${am_cv_CC_dependencies_compiler_type+y} 43067ed541caSmrgthen : 43077ed541caSmrg printf %s "(cached) " >&6 43087ed541caSmrgelse $as_nop 430972b4363aSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 431072b4363aSmrg # We make a subdir and do the tests there. Otherwise we can end up 431172b4363aSmrg # making bogus files that we don't know about and never remove. For 431272b4363aSmrg # instance it was reported that on HP-UX the gcc test will end up 431333dddc75Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 431433dddc75Smrg # in D". 431533dddc75Smrg rm -rf conftest.dir 431672b4363aSmrg mkdir conftest.dir 431772b4363aSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 431872b4363aSmrg # using a relative directory. 431972b4363aSmrg cp "$am_depcomp" conftest.dir 432072b4363aSmrg cd conftest.dir 432172b4363aSmrg # We will build objects and dependencies in a subdirectory because 432272b4363aSmrg # it helps to detect inapplicable dependency modes. For instance 432372b4363aSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 432472b4363aSmrg # side effect of compilation, but ICC will put the dependencies in 432572b4363aSmrg # the current directory while Tru64 will put them in the object 432672b4363aSmrg # directory. 432772b4363aSmrg mkdir sub 432872b4363aSmrg 432972b4363aSmrg am_cv_CC_dependencies_compiler_type=none 433072b4363aSmrg if test "$am_compiler_list" = ""; then 433172b4363aSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 433272b4363aSmrg fi 4333dd77ae96Smrg am__universal=false 4334dd77ae96Smrg case " $depcc " in #( 4335dd77ae96Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 4336dd77ae96Smrg esac 4337dd77ae96Smrg 433872b4363aSmrg for depmode in $am_compiler_list; do 433972b4363aSmrg # Setup a source with many dependencies, because some compilers 434072b4363aSmrg # like to wrap large dependency lists on column 80 (with \), and 434172b4363aSmrg # we should not choose a depcomp mode which is confused by this. 434272b4363aSmrg # 434372b4363aSmrg # We need to recreate these files for each test, as the compiler may 434472b4363aSmrg # overwrite some of them when testing with obscure command lines. 434572b4363aSmrg # This happens at least with the AIX C compiler. 434672b4363aSmrg : > sub/conftest.c 434772b4363aSmrg for i in 1 2 3 4 5 6; do 434872b4363aSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 434933dddc75Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 435033dddc75Smrg # Solaris 10 /bin/sh. 435133dddc75Smrg echo '/* dummy */' > sub/conftst$i.h 435272b4363aSmrg done 435372b4363aSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 435472b4363aSmrg 435533dddc75Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 4356dd77ae96Smrg # mode. It turns out that the SunPro C++ compiler does not properly 435733dddc75Smrg # handle '-M -o', and we need to detect this. Also, some Intel 435833dddc75Smrg # versions had trouble with output in subdirs. 4359dd77ae96Smrg am__obj=sub/conftest.${OBJEXT-o} 4360dd77ae96Smrg am__minus_obj="-o $am__obj" 436172b4363aSmrg case $depmode in 4362dd77ae96Smrg gcc) 4363dd77ae96Smrg # This depmode causes a compiler race in universal mode. 4364dd77ae96Smrg test "$am__universal" = false || continue 4365dd77ae96Smrg ;; 436672b4363aSmrg nosideeffect) 436733dddc75Smrg # After this tag, mechanisms are not by side-effect, so they'll 436833dddc75Smrg # only be used when explicitly requested. 436972b4363aSmrg if test "x$enable_dependency_tracking" = xyes; then 437072b4363aSmrg continue 437172b4363aSmrg else 437272b4363aSmrg break 437372b4363aSmrg fi 437472b4363aSmrg ;; 437533dddc75Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 437633dddc75Smrg # This compiler won't grok '-c -o', but also, the minuso test has 4377dd77ae96Smrg # not run yet. These depmodes are late enough in the game, and 4378dd77ae96Smrg # so weak that their functioning should not be impacted. 4379dd77ae96Smrg am__obj=conftest.${OBJEXT-o} 4380dd77ae96Smrg am__minus_obj= 4381dd77ae96Smrg ;; 438272b4363aSmrg none) break ;; 438372b4363aSmrg esac 438472b4363aSmrg if depmode=$depmode \ 4385dd77ae96Smrg source=sub/conftest.c object=$am__obj \ 438672b4363aSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4387dd77ae96Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 438872b4363aSmrg >/dev/null 2>conftest.err && 438972b4363aSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 439072b4363aSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4391dd77ae96Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 439272b4363aSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 439372b4363aSmrg # icc doesn't choke on unknown options, it will just issue warnings 439472b4363aSmrg # or remarks (even with -Werror). So we grep stderr for any message 439572b4363aSmrg # that says an option was ignored or not supported. 43967ed541caSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 43977ed541caSmrg # icc: Command line warning: ignoring option '-M'; no argument required 43987ed541caSmrg # The diagnosis changed in icc 8.0: 43997ed541caSmrg # icc: Command line remark: option '-MP' not supported 44007ed541caSmrg if (grep 'ignoring option' conftest.err || 44017ed541caSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 44027ed541caSmrg am_cv_CC_dependencies_compiler_type=$depmode 44037ed541caSmrg break 44047ed541caSmrg fi 4405dd77ae96Smrg fi 4406dd77ae96Smrg done 4407dd77ae96Smrg 44087ed541caSmrg cd .. 44097ed541caSmrg rm -rf conftest.dir 4410dd77ae96Smrgelse 44117ed541caSmrg am_cv_CC_dependencies_compiler_type=none 4412dd77ae96Smrgfi 441372b4363aSmrg 441472b4363aSmrgfi 44157ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 44167ed541caSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 44177ed541caSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4418dd77ae96Smrg 44197ed541caSmrg if 44207ed541caSmrg test "x$enable_dependency_tracking" != xno \ 44217ed541caSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 44227ed541caSmrg am__fastdepCC_TRUE= 44237ed541caSmrg am__fastdepCC_FALSE='#' 4424dd77ae96Smrgelse 44257ed541caSmrg am__fastdepCC_TRUE='#' 44267ed541caSmrg am__fastdepCC_FALSE= 442772b4363aSmrgfi 442872b4363aSmrg 442972b4363aSmrg 443072b4363aSmrg 44317ed541caSmrg 44327ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 44337ed541caSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 44347ed541caSmrgif test ${ac_cv_c_undeclared_builtin_options+y} 44357ed541caSmrgthen : 44367ed541caSmrg printf %s "(cached) " >&6 44377ed541caSmrgelse $as_nop 44387ed541caSmrg ac_save_CFLAGS=$CFLAGS 44397ed541caSmrg ac_cv_c_undeclared_builtin_options='cannot detect' 44407ed541caSmrg for ac_arg in '' -fno-builtin; do 44417ed541caSmrg CFLAGS="$ac_save_CFLAGS $ac_arg" 44427ed541caSmrg # This test program should *not* compile successfully. 44437ed541caSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4444dd77ae96Smrg/* end confdefs.h. */ 444572b4363aSmrg 4446dd77ae96Smrgint 44477ed541caSmrgmain (void) 4448dd77ae96Smrg{ 44497ed541caSmrg(void) strchr; 4450dd77ae96Smrg ; 4451dd77ae96Smrg return 0; 4452dd77ae96Smrg} 4453dd77ae96Smrg_ACEOF 44547ed541caSmrgif ac_fn_c_try_compile "$LINENO" 44557ed541caSmrgthen : 4456dd77ae96Smrg 44577ed541caSmrgelse $as_nop 44587ed541caSmrg # This test program should compile successfully. 44597ed541caSmrg # No library function is consistently available on 44607ed541caSmrg # freestanding implementations, so test against a dummy 44617ed541caSmrg # declaration. Include always-available headers on the 44627ed541caSmrg # off chance that they somehow elicit warnings. 44637ed541caSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4464dd77ae96Smrg/* end confdefs.h. */ 44657ed541caSmrg#include <float.h> 44667ed541caSmrg#include <limits.h> 44677ed541caSmrg#include <stdarg.h> 44687ed541caSmrg#include <stddef.h> 44697ed541caSmrgextern void ac_decl (int, char *); 4470dd77ae96Smrg 4471dd77ae96Smrgint 44727ed541caSmrgmain (void) 4473dd77ae96Smrg{ 44747ed541caSmrg(void) ac_decl (0, (char *) 0); 44757ed541caSmrg (void) ac_decl; 44767ed541caSmrg 44777ed541caSmrg ; 4478dd77ae96Smrg return 0; 4479dd77ae96Smrg} 4480dd77ae96Smrg_ACEOF 44817ed541caSmrgif ac_fn_c_try_compile "$LINENO" 44827ed541caSmrgthen : 44837ed541caSmrg if test x"$ac_arg" = x 44847ed541caSmrgthen : 44857ed541caSmrg ac_cv_c_undeclared_builtin_options='none needed' 44867ed541caSmrgelse $as_nop 44877ed541caSmrg ac_cv_c_undeclared_builtin_options=$ac_arg 4488dd77ae96Smrgfi 44897ed541caSmrg break 4490dd77ae96Smrgfi 44917ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4492dd77ae96Smrgfi 44937ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44947ed541caSmrg done 44957ed541caSmrg CFLAGS=$ac_save_CFLAGS 44967ed541caSmrg 44977ed541caSmrgfi 44987ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 44997ed541caSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 45007ed541caSmrg case $ac_cv_c_undeclared_builtin_options in #( 45017ed541caSmrg 'cannot detect') : 45027ed541caSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 45037ed541caSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 45047ed541caSmrgas_fn_error $? "cannot make $CC report undeclared builtins 45057ed541caSmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #( 45067ed541caSmrg 'none needed') : 45077ed541caSmrg ac_c_undeclared_builtin_options='' ;; #( 45087ed541caSmrg *) : 45097ed541caSmrg ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 45107ed541caSmrgesac 45117ed541caSmrg 45127ed541caSmrgac_header= ac_cache= 45137ed541caSmrgfor ac_item in $ac_header_c_list 45147ed541caSmrgdo 45157ed541caSmrg if test $ac_cache; then 45167ed541caSmrg ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 45177ed541caSmrg if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 45187ed541caSmrg printf "%s\n" "#define $ac_item 1" >> confdefs.h 45197ed541caSmrg fi 45207ed541caSmrg ac_header= ac_cache= 45217ed541caSmrg elif test $ac_header; then 45227ed541caSmrg ac_cache=$ac_item 45237ed541caSmrg else 45247ed541caSmrg ac_header=$ac_item 45257ed541caSmrg fi 45267ed541caSmrgdone 45277ed541caSmrg 4528dd77ae96Smrg 4529dd77ae96Smrg 4530dd77ae96Smrg 4531dd77ae96Smrg 4532dd77ae96Smrg 4533dd77ae96Smrg 4534dd77ae96Smrg 45357ed541caSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 45367ed541caSmrgthen : 4537dd77ae96Smrg 45387ed541caSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 45397ed541caSmrg 45407ed541caSmrgfi 4541dd77ae96Smrg 4542eea2e341Smrg 4543eea2e341Smrg 45447ed541caSmrg 45457ed541caSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 45467ed541caSmrgif test "x$ac_cv_have_decl___clang__" = xyes 45477ed541caSmrgthen : 4548eea2e341Smrg CLANGCC="yes" 45497ed541caSmrgelse $as_nop 4550eea2e341Smrg CLANGCC="no" 4551eea2e341Smrgfi 45527ed541caSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 45537ed541caSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 45547ed541caSmrgthen : 4555eea2e341Smrg INTELCC="yes" 45567ed541caSmrgelse $as_nop 4557eea2e341Smrg INTELCC="no" 4558eea2e341Smrgfi 45597ed541caSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 45607ed541caSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes 45617ed541caSmrgthen : 4562eea2e341Smrg SUNCC="yes" 45637ed541caSmrgelse $as_nop 4564eea2e341Smrg SUNCC="no" 4565eea2e341Smrgfi 4566eea2e341Smrg 4567eea2e341Smrg 4568eea2e341Smrg 4569eea2e341Smrg 45707ed541caSmrg 45717ed541caSmrg 45727ed541caSmrg 45737ed541caSmrg 457408e312fdSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 457508e312fdSmrg if test -n "$ac_tool_prefix"; then 457608e312fdSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 457708e312fdSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 45787ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45797ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 45807ed541caSmrgif test ${ac_cv_path_PKG_CONFIG+y} 45817ed541caSmrgthen : 45827ed541caSmrg printf %s "(cached) " >&6 45837ed541caSmrgelse $as_nop 458408e312fdSmrg case $PKG_CONFIG in 458508e312fdSmrg [\\/]* | ?:[\\/]*) 458608e312fdSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 458708e312fdSmrg ;; 458808e312fdSmrg *) 458908e312fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 459008e312fdSmrgfor as_dir in $PATH 4591dd77ae96Smrgdo 459208e312fdSmrg IFS=$as_save_IFS 45937ed541caSmrg case $as_dir in #((( 45947ed541caSmrg '') as_dir=./ ;; 45957ed541caSmrg */) ;; 45967ed541caSmrg *) as_dir=$as_dir/ ;; 45977ed541caSmrg esac 459808e312fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 45997ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 46007ed541caSmrg ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 46017ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 460208e312fdSmrg break 2 460308e312fdSmrg fi 460408e312fdSmrgdone 460508e312fdSmrg done 460608e312fdSmrgIFS=$as_save_IFS 460708e312fdSmrg 460808e312fdSmrg ;; 4609dd77ae96Smrgesac 461008e312fdSmrgfi 461108e312fdSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 461208e312fdSmrgif test -n "$PKG_CONFIG"; then 46137ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 46147ed541caSmrgprintf "%s\n" "$PKG_CONFIG" >&6; } 4615dd77ae96Smrgelse 46167ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 46177ed541caSmrgprintf "%s\n" "no" >&6; } 4618dd77ae96Smrgfi 4619dd77ae96Smrg 4620dd77ae96Smrg 4621dd77ae96Smrgfi 462208e312fdSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 462308e312fdSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 462408e312fdSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 462508e312fdSmrgset dummy pkg-config; ac_word=$2 46267ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46277ed541caSmrgprintf %s "checking for $ac_word... " >&6; } 46287ed541caSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 46297ed541caSmrgthen : 46307ed541caSmrg printf %s "(cached) " >&6 46317ed541caSmrgelse $as_nop 463208e312fdSmrg case $ac_pt_PKG_CONFIG in 463308e312fdSmrg [\\/]* | ?:[\\/]*) 463408e312fdSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 463508e312fdSmrg ;; 4636dd77ae96Smrg *) 463708e312fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 463808e312fdSmrgfor as_dir in $PATH 463908e312fdSmrgdo 464008e312fdSmrg IFS=$as_save_IFS 46417ed541caSmrg case $as_dir in #((( 46427ed541caSmrg '') as_dir=./ ;; 46437ed541caSmrg */) ;; 46447ed541caSmrg *) as_dir=$as_dir/ ;; 46457ed541caSmrg esac 464608e312fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 46477ed541caSmrg if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 46487ed541caSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 46497ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 465008e312fdSmrg break 2 465108e312fdSmrg fi 465208e312fdSmrgdone 465308e312fdSmrg done 465408e312fdSmrgIFS=$as_save_IFS 465508e312fdSmrg 465608e312fdSmrg ;; 4657dd77ae96Smrgesac 465808e312fdSmrgfi 465908e312fdSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 466008e312fdSmrgif test -n "$ac_pt_PKG_CONFIG"; then 46617ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 46627ed541caSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 466308e312fdSmrgelse 46647ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 46657ed541caSmrgprintf "%s\n" "no" >&6; } 466608e312fdSmrgfi 4667dd77ae96Smrg 466808e312fdSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 466908e312fdSmrg PKG_CONFIG="" 467008e312fdSmrg else 467108e312fdSmrg case $cross_compiling:$ac_tool_warned in 467208e312fdSmrgyes:) 46737ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 46747ed541caSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 467508e312fdSmrgac_tool_warned=yes ;; 467608e312fdSmrgesac 467708e312fdSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 467808e312fdSmrg fi 467908e312fdSmrgelse 468008e312fdSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 468108e312fdSmrgfi 4682dd77ae96Smrg 468308e312fdSmrgfi 468408e312fdSmrgif test -n "$PKG_CONFIG"; then 468508e312fdSmrg _pkg_min_version=0.9.0 46867ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 46877ed541caSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 468808e312fdSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 46897ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46907ed541caSmrgprintf "%s\n" "yes" >&6; } 469108e312fdSmrg else 46927ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 46937ed541caSmrgprintf "%s\n" "no" >&6; } 469408e312fdSmrg PKG_CONFIG="" 469508e312fdSmrg fi 469608e312fdSmrgfi 4697dd77ae96Smrg 46987ed541caSmrg 46997ed541caSmrg # Make sure we can run config.sub. 47007ed541caSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 47017ed541caSmrg as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 47027ed541caSmrg 47037ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 47047ed541caSmrgprintf %s "checking build system type... " >&6; } 47057ed541caSmrgif test ${ac_cv_build+y} 47067ed541caSmrgthen : 47077ed541caSmrg printf %s "(cached) " >&6 47087ed541caSmrgelse $as_nop 4709dd77ae96Smrg ac_build_alias=$build_alias 4710dd77ae96Smrgtest "x$ac_build_alias" = x && 47117ed541caSmrg ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4712dd77ae96Smrgtest "x$ac_build_alias" = x && 471308e312fdSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 47147ed541caSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 47157ed541caSmrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4716dd77ae96Smrg 4717dd77ae96Smrgfi 47187ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 47197ed541caSmrgprintf "%s\n" "$ac_cv_build" >&6; } 4720dd77ae96Smrgcase $ac_cv_build in 4721dd77ae96Smrg*-*-*) ;; 472208e312fdSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4723dd77ae96Smrgesac 4724dd77ae96Smrgbuild=$ac_cv_build 4725dd77ae96Smrgac_save_IFS=$IFS; IFS='-' 4726dd77ae96Smrgset x $ac_cv_build 4727dd77ae96Smrgshift 4728dd77ae96Smrgbuild_cpu=$1 4729dd77ae96Smrgbuild_vendor=$2 4730dd77ae96Smrgshift; shift 4731dd77ae96Smrg# Remember, the first character of IFS is used to create $*, 4732dd77ae96Smrg# except with old shells: 4733dd77ae96Smrgbuild_os=$* 4734dd77ae96SmrgIFS=$ac_save_IFS 4735dd77ae96Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4736dd77ae96Smrg 4737dd77ae96Smrg 47387ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 47397ed541caSmrgprintf %s "checking host system type... " >&6; } 47407ed541caSmrgif test ${ac_cv_host+y} 47417ed541caSmrgthen : 47427ed541caSmrg printf %s "(cached) " >&6 47437ed541caSmrgelse $as_nop 4744dd77ae96Smrg if test "x$host_alias" = x; then 4745dd77ae96Smrg ac_cv_host=$ac_cv_build 4746dd77ae96Smrgelse 47477ed541caSmrg ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 47487ed541caSmrg as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4749dd77ae96Smrgfi 4750dd77ae96Smrg 4751dd77ae96Smrgfi 47527ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 47537ed541caSmrgprintf "%s\n" "$ac_cv_host" >&6; } 4754dd77ae96Smrgcase $ac_cv_host in 4755dd77ae96Smrg*-*-*) ;; 475608e312fdSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4757dd77ae96Smrgesac 4758dd77ae96Smrghost=$ac_cv_host 4759dd77ae96Smrgac_save_IFS=$IFS; IFS='-' 4760dd77ae96Smrgset x $ac_cv_host 4761dd77ae96Smrgshift 4762dd77ae96Smrghost_cpu=$1 4763dd77ae96Smrghost_vendor=$2 4764dd77ae96Smrgshift; shift 4765dd77ae96Smrg# Remember, the first character of IFS is used to create $*, 4766dd77ae96Smrg# except with old shells: 4767dd77ae96Smrghost_os=$* 4768dd77ae96SmrgIFS=$ac_save_IFS 4769dd77ae96Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4770dd77ae96Smrg 4771dd77ae96Smrg 47727ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 47737ed541caSmrgprintf %s "checking for a sed that does not truncate output... " >&6; } 47747ed541caSmrgif test ${ac_cv_path_SED+y} 47757ed541caSmrgthen : 47767ed541caSmrg printf %s "(cached) " >&6 47777ed541caSmrgelse $as_nop 477808e312fdSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 477908e312fdSmrg for ac_i in 1 2 3 4 5 6 7; do 478008e312fdSmrg ac_script="$ac_script$as_nl$ac_script" 478108e312fdSmrg done 478208e312fdSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 478308e312fdSmrg { ac_script=; unset ac_script;} 478408e312fdSmrg if test -z "$SED"; then 478508e312fdSmrg ac_path_SED_found=false 478608e312fdSmrg # Loop through the user's path and test for each of PROGNAME-LIST 478708e312fdSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 478808e312fdSmrgfor as_dir in $PATH 478908e312fdSmrgdo 479008e312fdSmrg IFS=$as_save_IFS 47917ed541caSmrg case $as_dir in #((( 47927ed541caSmrg '') as_dir=./ ;; 47937ed541caSmrg */) ;; 47947ed541caSmrg *) as_dir=$as_dir/ ;; 47957ed541caSmrg esac 47967ed541caSmrg for ac_prog in sed gsed 47977ed541caSmrg do 479808e312fdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 47997ed541caSmrg ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 480033dddc75Smrg as_fn_executable_p "$ac_path_SED" || continue 480108e312fdSmrg# Check for GNU ac_path_SED and select it if it is found. 480208e312fdSmrg # Check for GNU $ac_path_SED 480308e312fdSmrgcase `"$ac_path_SED" --version 2>&1` in 480408e312fdSmrg*GNU*) 480508e312fdSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 480608e312fdSmrg*) 480708e312fdSmrg ac_count=0 48087ed541caSmrg printf %s 0123456789 >"conftest.in" 480908e312fdSmrg while : 481008e312fdSmrg do 481108e312fdSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 481208e312fdSmrg mv "conftest.tmp" "conftest.in" 481308e312fdSmrg cp "conftest.in" "conftest.nl" 48147ed541caSmrg printf "%s\n" '' >> "conftest.nl" 481508e312fdSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 481608e312fdSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 481708e312fdSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 481808e312fdSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 481908e312fdSmrg # Best one so far, save it but keep looking for a better one 482008e312fdSmrg ac_cv_path_SED="$ac_path_SED" 482108e312fdSmrg ac_path_SED_max=$ac_count 482208e312fdSmrg fi 482308e312fdSmrg # 10*(2^10) chars as input seems more than enough 482408e312fdSmrg test $ac_count -gt 10 && break 482508e312fdSmrg done 482608e312fdSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 482708e312fdSmrgesac 482808e312fdSmrg 482908e312fdSmrg $ac_path_SED_found && break 3 483008e312fdSmrg done 483108e312fdSmrg done 483208e312fdSmrg done 483308e312fdSmrgIFS=$as_save_IFS 483408e312fdSmrg if test -z "$ac_cv_path_SED"; then 483508e312fdSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 483608e312fdSmrg fi 483708e312fdSmrgelse 483808e312fdSmrg ac_cv_path_SED=$SED 483908e312fdSmrgfi 484008e312fdSmrg 484108e312fdSmrgfi 48427ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 48437ed541caSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; } 484408e312fdSmrg SED="$ac_cv_path_SED" 484508e312fdSmrg rm -f conftest.sed 484608e312fdSmrg 484708e312fdSmrg 4848dd77ae96Smrg 4849dd77ae96Smrg 4850dd77ae96Smrg 4851eea2e341Smrg 4852eea2e341Smrg# Check whether --enable-selective-werror was given. 48537ed541caSmrgif test ${enable_selective_werror+y} 48547ed541caSmrgthen : 4855eea2e341Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 48567ed541caSmrgelse $as_nop 4857eea2e341Smrg SELECTIVE_WERROR=yes 4858eea2e341Smrgfi 4859eea2e341Smrg 4860eea2e341Smrg 4861eea2e341Smrg 4862eea2e341Smrg 4863eea2e341Smrg 4864eea2e341Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 4865eea2e341Smrgif test "x$SUNCC" = "xyes"; then 4866eea2e341Smrg BASE_CFLAGS="-v" 4867dd77ae96Smrgelse 4868eea2e341Smrg BASE_CFLAGS="" 4869dd77ae96Smrgfi 4870dd77ae96Smrg 4871eea2e341Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4872eea2e341Smrg 4873eea2e341Smrg 4874eea2e341Smrg 4875eea2e341Smrg 4876eea2e341Smrg 4877eea2e341Smrg 4878eea2e341Smrg 4879eea2e341Smrg 4880eea2e341Smrg 4881eea2e341Smrg 4882eea2e341Smrg 4883eea2e341Smrg 4884eea2e341Smrg 4885eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 4886eea2e341Smrg 4887eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4888eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48897ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 48907ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 48917ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 48927ed541caSmrgthen : 48937ed541caSmrg printf %s "(cached) " >&6 48947ed541caSmrgelse $as_nop 4895eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4896eea2e341Smrg/* end confdefs.h. */ 4897eea2e341Smrgint i; 4898eea2e341Smrg_ACEOF 48997ed541caSmrgif ac_fn_c_try_compile "$LINENO" 49007ed541caSmrgthen : 4901eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 49027ed541caSmrgelse $as_nop 4903eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 4904eea2e341Smrgfi 49057ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4906eea2e341Smrgfi 49077ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 49087ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4909eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4910eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4911eea2e341Smrgfi 4912eea2e341Smrg 4913eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4914eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4915eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4916eea2e341Smrg fi 4917eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49187ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 49197ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 49207ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 49217ed541caSmrgthen : 49227ed541caSmrg printf %s "(cached) " >&6 49237ed541caSmrgelse $as_nop 4924eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4925eea2e341Smrg/* end confdefs.h. */ 4926eea2e341Smrgint i; 4927eea2e341Smrg_ACEOF 49287ed541caSmrgif ac_fn_c_try_compile "$LINENO" 49297ed541caSmrgthen : 4930eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 49317ed541caSmrgelse $as_nop 4932eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 4933eea2e341Smrgfi 49347ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4935eea2e341Smrgfi 49367ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 49377ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4938eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4939eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4940dd77ae96Smrgfi 4941dd77ae96Smrg 4942eea2e341Smrgfound="no" 4943dd77ae96Smrg 4944eea2e341Smrg if test $found = "no" ; then 494533dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4946eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4947eea2e341Smrg fi 4948dd77ae96Smrg 494933dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4950eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4951eea2e341Smrg fi 4952dd77ae96Smrg 4953eea2e341Smrg CFLAGS="$CFLAGS -Wall" 4954dd77ae96Smrg 49557ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 49567ed541caSmrgprintf %s "checking if $CC supports -Wall... " >&6; } 4957eea2e341Smrg cacheid=xorg_cv_cc_flag__Wall 49587ed541caSmrg if eval test \${$cacheid+y} 49597ed541caSmrgthen : 49607ed541caSmrg printf %s "(cached) " >&6 49617ed541caSmrgelse $as_nop 4962eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4963eea2e341Smrg/* end confdefs.h. */ 4964eea2e341Smrgint i; 4965eea2e341Smrgint 49667ed541caSmrgmain (void) 4967eea2e341Smrg{ 4968dd77ae96Smrg 4969eea2e341Smrg ; 4970eea2e341Smrg return 0; 4971eea2e341Smrg} 4972eea2e341Smrg_ACEOF 49737ed541caSmrgif ac_fn_c_try_link "$LINENO" 49747ed541caSmrgthen : 4975eea2e341Smrg eval $cacheid=yes 49767ed541caSmrgelse $as_nop 4977eea2e341Smrg eval $cacheid=no 4978eea2e341Smrgfi 49797ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 4980eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 4981dd77ae96Smrgfi 4982dd77ae96Smrg 4983eea2e341Smrg 4984eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4985eea2e341Smrg 4986eea2e341Smrg eval supported=\$$cacheid 49877ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 49887ed541caSmrgprintf "%s\n" "$supported" >&6; } 4989eea2e341Smrg if test "$supported" = "yes" ; then 4990eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 4991eea2e341Smrg found="yes" 4992eea2e341Smrg fi 4993eea2e341Smrg fi 4994eea2e341Smrg 4995eea2e341Smrg 4996eea2e341Smrg 4997eea2e341Smrg 4998eea2e341Smrg 4999eea2e341Smrg 5000eea2e341Smrg 5001eea2e341Smrg 5002eea2e341Smrg 5003eea2e341Smrg 5004eea2e341Smrg 5005eea2e341Smrg 5006eea2e341Smrg 5007eea2e341Smrg 5008eea2e341Smrg 5009eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5010eea2e341Smrg 5011eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5012eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50137ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 50147ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 50157ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 50167ed541caSmrgthen : 50177ed541caSmrg printf %s "(cached) " >&6 50187ed541caSmrgelse $as_nop 5019eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5020eea2e341Smrg/* end confdefs.h. */ 5021eea2e341Smrgint i; 5022eea2e341Smrg_ACEOF 50237ed541caSmrgif ac_fn_c_try_compile "$LINENO" 50247ed541caSmrgthen : 5025eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 50267ed541caSmrgelse $as_nop 5027eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 5028eea2e341Smrgfi 50297ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5030eea2e341Smrgfi 50317ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 50327ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5033eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5034eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5035dd77ae96Smrgfi 5036dd77ae96Smrg 5037eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5038eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5039eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5040eea2e341Smrg fi 5041eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50427ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 50437ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 50447ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 50457ed541caSmrgthen : 50467ed541caSmrg printf %s "(cached) " >&6 50477ed541caSmrgelse $as_nop 5048eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5049eea2e341Smrg/* end confdefs.h. */ 5050eea2e341Smrgint i; 5051eea2e341Smrg_ACEOF 50527ed541caSmrgif ac_fn_c_try_compile "$LINENO" 50537ed541caSmrgthen : 5054eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 50557ed541caSmrgelse $as_nop 5056eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5057eea2e341Smrgfi 50587ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5059eea2e341Smrgfi 50607ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 50617ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5062eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5063eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5064eea2e341Smrgfi 5065eea2e341Smrg 5066eea2e341Smrgfound="no" 5067eea2e341Smrg 5068eea2e341Smrg if test $found = "no" ; then 506933dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5070eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5071eea2e341Smrg fi 5072eea2e341Smrg 507333dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5074eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5075eea2e341Smrg fi 5076eea2e341Smrg 5077eea2e341Smrg CFLAGS="$CFLAGS -Wpointer-arith" 5078eea2e341Smrg 50797ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 50807ed541caSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5081eea2e341Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 50827ed541caSmrg if eval test \${$cacheid+y} 50837ed541caSmrgthen : 50847ed541caSmrg printf %s "(cached) " >&6 50857ed541caSmrgelse $as_nop 5086eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087eea2e341Smrg/* end confdefs.h. */ 5088eea2e341Smrgint i; 5089eea2e341Smrgint 50907ed541caSmrgmain (void) 5091eea2e341Smrg{ 5092eea2e341Smrg 5093eea2e341Smrg ; 5094eea2e341Smrg return 0; 5095eea2e341Smrg} 5096eea2e341Smrg_ACEOF 50977ed541caSmrgif ac_fn_c_try_link "$LINENO" 50987ed541caSmrgthen : 5099eea2e341Smrg eval $cacheid=yes 51007ed541caSmrgelse $as_nop 5101eea2e341Smrg eval $cacheid=no 5102eea2e341Smrgfi 51037ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5104eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 5105eea2e341Smrgfi 5106eea2e341Smrg 5107eea2e341Smrg 5108eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5109eea2e341Smrg 5110eea2e341Smrg eval supported=\$$cacheid 51117ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51127ed541caSmrgprintf "%s\n" "$supported" >&6; } 5113eea2e341Smrg if test "$supported" = "yes" ; then 5114eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5115eea2e341Smrg found="yes" 5116eea2e341Smrg fi 5117eea2e341Smrg fi 5118eea2e341Smrg 5119eea2e341Smrg 5120eea2e341Smrg 5121eea2e341Smrg 5122eea2e341Smrg 5123eea2e341Smrg 5124eea2e341Smrg 5125eea2e341Smrg 5126eea2e341Smrg 5127eea2e341Smrg 5128eea2e341Smrg 5129eea2e341Smrg 5130eea2e341Smrg 5131eea2e341Smrg 5132eea2e341Smrg 5133eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5134eea2e341Smrg 5135eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5136eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51377ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 51387ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 51397ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 51407ed541caSmrgthen : 51417ed541caSmrg printf %s "(cached) " >&6 51427ed541caSmrgelse $as_nop 5143eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5144eea2e341Smrg/* end confdefs.h. */ 5145eea2e341Smrgint i; 5146eea2e341Smrg_ACEOF 51477ed541caSmrgif ac_fn_c_try_compile "$LINENO" 51487ed541caSmrgthen : 5149eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 51507ed541caSmrgelse $as_nop 5151eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 5152eea2e341Smrgfi 51537ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5154eea2e341Smrgfi 51557ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 51567ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5157eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5158eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5159dd77ae96Smrgfi 5160dd77ae96Smrg 5161eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5162eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5163eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5164dd77ae96Smrg fi 5165eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 51667ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 51677ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 51687ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 51697ed541caSmrgthen : 51707ed541caSmrg printf %s "(cached) " >&6 51717ed541caSmrgelse $as_nop 5172eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5173eea2e341Smrg/* end confdefs.h. */ 5174eea2e341Smrgint i; 5175eea2e341Smrg_ACEOF 51767ed541caSmrgif ac_fn_c_try_compile "$LINENO" 51777ed541caSmrgthen : 5178eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 51797ed541caSmrgelse $as_nop 5180eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5181eea2e341Smrgfi 51827ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5183dd77ae96Smrgfi 51847ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 51857ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5186eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5187eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5188eea2e341Smrgfi 5189eea2e341Smrg 5190eea2e341Smrgfound="no" 5191eea2e341Smrg 5192eea2e341Smrg if test $found = "no" ; then 519333dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5194eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5195eea2e341Smrg fi 5196eea2e341Smrg 519733dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5198eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5199eea2e341Smrg fi 5200eea2e341Smrg 5201eea2e341Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 5202eea2e341Smrg 52037ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 52047ed541caSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5205eea2e341Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 52067ed541caSmrg if eval test \${$cacheid+y} 52077ed541caSmrgthen : 52087ed541caSmrg printf %s "(cached) " >&6 52097ed541caSmrgelse $as_nop 5210eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5211eea2e341Smrg/* end confdefs.h. */ 5212eea2e341Smrgint i; 5213eea2e341Smrgint 52147ed541caSmrgmain (void) 5215eea2e341Smrg{ 5216eea2e341Smrg 5217eea2e341Smrg ; 5218eea2e341Smrg return 0; 5219eea2e341Smrg} 5220eea2e341Smrg_ACEOF 52217ed541caSmrgif ac_fn_c_try_link "$LINENO" 52227ed541caSmrgthen : 5223eea2e341Smrg eval $cacheid=yes 52247ed541caSmrgelse $as_nop 5225eea2e341Smrg eval $cacheid=no 5226eea2e341Smrgfi 52277ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5228eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 5229eea2e341Smrgfi 5230eea2e341Smrg 5231eea2e341Smrg 5232eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5233eea2e341Smrg 5234eea2e341Smrg eval supported=\$$cacheid 52357ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52367ed541caSmrgprintf "%s\n" "$supported" >&6; } 5237eea2e341Smrg if test "$supported" = "yes" ; then 5238eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5239eea2e341Smrg found="yes" 5240eea2e341Smrg fi 5241eea2e341Smrg fi 5242eea2e341Smrg 5243eea2e341Smrg 5244eea2e341Smrg 5245eea2e341Smrg 5246eea2e341Smrg 5247eea2e341Smrg 5248eea2e341Smrg 5249eea2e341Smrg 5250eea2e341Smrg 5251eea2e341Smrg 5252eea2e341Smrg 5253eea2e341Smrg 5254eea2e341Smrg 5255eea2e341Smrg 5256eea2e341Smrg 5257eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5258eea2e341Smrg 5259eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5260eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52617ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 52627ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 52637ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 52647ed541caSmrgthen : 52657ed541caSmrg printf %s "(cached) " >&6 52667ed541caSmrgelse $as_nop 5267eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5268eea2e341Smrg/* end confdefs.h. */ 5269eea2e341Smrgint i; 5270eea2e341Smrg_ACEOF 52717ed541caSmrgif ac_fn_c_try_compile "$LINENO" 52727ed541caSmrgthen : 5273eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 52747ed541caSmrgelse $as_nop 5275eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 5276eea2e341Smrgfi 52777ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5278eea2e341Smrgfi 52797ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 52807ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5281eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5282eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5283eea2e341Smrgfi 5284eea2e341Smrg 5285eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5286eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5287eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5288eea2e341Smrg fi 5289eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52907ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 52917ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 52927ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 52937ed541caSmrgthen : 52947ed541caSmrg printf %s "(cached) " >&6 52957ed541caSmrgelse $as_nop 5296eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5297eea2e341Smrg/* end confdefs.h. */ 5298eea2e341Smrgint i; 5299eea2e341Smrg_ACEOF 53007ed541caSmrgif ac_fn_c_try_compile "$LINENO" 53017ed541caSmrgthen : 5302eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 53037ed541caSmrgelse $as_nop 5304eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5305eea2e341Smrgfi 53067ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5307eea2e341Smrgfi 53087ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 53097ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5310eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5311eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5312eea2e341Smrgfi 5313eea2e341Smrg 5314eea2e341Smrgfound="no" 5315eea2e341Smrg 5316eea2e341Smrg if test $found = "no" ; then 531733dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5318eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5319eea2e341Smrg fi 5320eea2e341Smrg 532133dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5322eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5323eea2e341Smrg fi 5324eea2e341Smrg 5325eea2e341Smrg CFLAGS="$CFLAGS -Wformat=2" 5326eea2e341Smrg 53277ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 53287ed541caSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; } 532933dddc75Smrg cacheid=xorg_cv_cc_flag__Wformat_2 53307ed541caSmrg if eval test \${$cacheid+y} 53317ed541caSmrgthen : 53327ed541caSmrg printf %s "(cached) " >&6 53337ed541caSmrgelse $as_nop 5334eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5335eea2e341Smrg/* end confdefs.h. */ 5336eea2e341Smrgint i; 5337eea2e341Smrgint 53387ed541caSmrgmain (void) 5339eea2e341Smrg{ 5340eea2e341Smrg 5341eea2e341Smrg ; 5342eea2e341Smrg return 0; 5343eea2e341Smrg} 5344eea2e341Smrg_ACEOF 53457ed541caSmrgif ac_fn_c_try_link "$LINENO" 53467ed541caSmrgthen : 5347eea2e341Smrg eval $cacheid=yes 53487ed541caSmrgelse $as_nop 5349eea2e341Smrg eval $cacheid=no 5350eea2e341Smrgfi 53517ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5352eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 5353eea2e341Smrgfi 5354eea2e341Smrg 5355eea2e341Smrg 5356eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5357eea2e341Smrg 5358eea2e341Smrg eval supported=\$$cacheid 53597ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 53607ed541caSmrgprintf "%s\n" "$supported" >&6; } 5361eea2e341Smrg if test "$supported" = "yes" ; then 5362eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5363eea2e341Smrg found="yes" 5364eea2e341Smrg fi 5365eea2e341Smrg fi 5366eea2e341Smrg 5367eea2e341Smrg if test $found = "no" ; then 536833dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5369eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5370eea2e341Smrg fi 5371eea2e341Smrg 537233dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5373eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5374eea2e341Smrg fi 5375eea2e341Smrg 5376eea2e341Smrg CFLAGS="$CFLAGS -Wformat" 5377eea2e341Smrg 53787ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 53797ed541caSmrgprintf %s "checking if $CC supports -Wformat... " >&6; } 5380eea2e341Smrg cacheid=xorg_cv_cc_flag__Wformat 53817ed541caSmrg if eval test \${$cacheid+y} 53827ed541caSmrgthen : 53837ed541caSmrg printf %s "(cached) " >&6 53847ed541caSmrgelse $as_nop 5385eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5386eea2e341Smrg/* end confdefs.h. */ 5387eea2e341Smrgint i; 5388eea2e341Smrgint 53897ed541caSmrgmain (void) 5390eea2e341Smrg{ 5391eea2e341Smrg 5392eea2e341Smrg ; 5393eea2e341Smrg return 0; 5394eea2e341Smrg} 5395eea2e341Smrg_ACEOF 53967ed541caSmrgif ac_fn_c_try_link "$LINENO" 53977ed541caSmrgthen : 5398eea2e341Smrg eval $cacheid=yes 53997ed541caSmrgelse $as_nop 5400eea2e341Smrg eval $cacheid=no 5401eea2e341Smrgfi 54027ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5403eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 5404eea2e341Smrgfi 5405eea2e341Smrg 5406eea2e341Smrg 5407eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5408eea2e341Smrg 5409eea2e341Smrg eval supported=\$$cacheid 54107ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 54117ed541caSmrgprintf "%s\n" "$supported" >&6; } 5412eea2e341Smrg if test "$supported" = "yes" ; then 5413eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5414eea2e341Smrg found="yes" 5415eea2e341Smrg fi 5416eea2e341Smrg fi 5417eea2e341Smrg 5418eea2e341Smrg 5419eea2e341Smrg 5420eea2e341Smrg 5421eea2e341Smrg 5422eea2e341Smrg 5423eea2e341Smrg 5424eea2e341Smrg 5425eea2e341Smrg 5426eea2e341Smrg 5427eea2e341Smrg 5428eea2e341Smrg 5429eea2e341Smrg 5430eea2e341Smrg 5431eea2e341Smrg 5432eea2e341Smrg 5433eea2e341Smrg 5434eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5435eea2e341Smrg 5436eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5437eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54387ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 54397ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 54407ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 54417ed541caSmrgthen : 54427ed541caSmrg printf %s "(cached) " >&6 54437ed541caSmrgelse $as_nop 5444eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5445eea2e341Smrg/* end confdefs.h. */ 5446eea2e341Smrgint i; 5447eea2e341Smrg_ACEOF 54487ed541caSmrgif ac_fn_c_try_compile "$LINENO" 54497ed541caSmrgthen : 5450eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 54517ed541caSmrgelse $as_nop 5452eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 5453eea2e341Smrgfi 54547ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5455eea2e341Smrgfi 54567ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 54577ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5458eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5459eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5460eea2e341Smrgfi 5461eea2e341Smrg 5462eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5463eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5464eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5465eea2e341Smrg fi 5466eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54677ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 54687ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 54697ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 54707ed541caSmrgthen : 54717ed541caSmrg printf %s "(cached) " >&6 54727ed541caSmrgelse $as_nop 5473eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5474eea2e341Smrg/* end confdefs.h. */ 5475eea2e341Smrgint i; 5476eea2e341Smrg_ACEOF 54777ed541caSmrgif ac_fn_c_try_compile "$LINENO" 54787ed541caSmrgthen : 5479eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 54807ed541caSmrgelse $as_nop 5481eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5482eea2e341Smrgfi 54837ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5484eea2e341Smrgfi 54857ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 54867ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5487eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5488eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5489eea2e341Smrgfi 5490eea2e341Smrg 5491eea2e341Smrgfound="no" 5492eea2e341Smrg 5493eea2e341Smrg if test $found = "no" ; then 549433dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5495eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5496eea2e341Smrg fi 5497eea2e341Smrg 549833dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5499eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5500eea2e341Smrg fi 5501eea2e341Smrg 5502eea2e341Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 5503eea2e341Smrg 55047ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 55057ed541caSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5506eea2e341Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 55077ed541caSmrg if eval test \${$cacheid+y} 55087ed541caSmrgthen : 55097ed541caSmrg printf %s "(cached) " >&6 55107ed541caSmrgelse $as_nop 5511eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5512eea2e341Smrg/* end confdefs.h. */ 5513eea2e341Smrgint i; 5514eea2e341Smrgint 55157ed541caSmrgmain (void) 5516eea2e341Smrg{ 5517eea2e341Smrg 5518eea2e341Smrg ; 5519eea2e341Smrg return 0; 5520eea2e341Smrg} 5521eea2e341Smrg_ACEOF 55227ed541caSmrgif ac_fn_c_try_link "$LINENO" 55237ed541caSmrgthen : 5524eea2e341Smrg eval $cacheid=yes 55257ed541caSmrgelse $as_nop 5526eea2e341Smrg eval $cacheid=no 5527eea2e341Smrgfi 55287ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5529eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 5530eea2e341Smrgfi 5531eea2e341Smrg 5532eea2e341Smrg 5533eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5534eea2e341Smrg 5535eea2e341Smrg eval supported=\$$cacheid 55367ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55377ed541caSmrgprintf "%s\n" "$supported" >&6; } 5538eea2e341Smrg if test "$supported" = "yes" ; then 5539eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5540eea2e341Smrg found="yes" 5541eea2e341Smrg fi 5542eea2e341Smrg fi 5543eea2e341Smrg 5544eea2e341Smrg 5545eea2e341Smrg 5546eea2e341Smrg 5547eea2e341Smrg 5548eea2e341Smrg 5549eea2e341Smrg 5550eea2e341Smrg 5551eea2e341Smrg 5552eea2e341Smrg 5553eea2e341Smrg 5554eea2e341Smrg 5555eea2e341Smrg 5556eea2e341Smrg 5557eea2e341Smrg 5558eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5559eea2e341Smrg 5560eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5561eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55627ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 55637ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 55647ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 55657ed541caSmrgthen : 55667ed541caSmrg printf %s "(cached) " >&6 55677ed541caSmrgelse $as_nop 5568eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5569eea2e341Smrg/* end confdefs.h. */ 5570eea2e341Smrgint i; 5571eea2e341Smrg_ACEOF 55727ed541caSmrgif ac_fn_c_try_compile "$LINENO" 55737ed541caSmrgthen : 5574eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 55757ed541caSmrgelse $as_nop 5576eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 5577eea2e341Smrgfi 55787ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5579eea2e341Smrgfi 55807ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 55817ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5582eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5583eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5584eea2e341Smrgfi 5585eea2e341Smrg 5586eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5587eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5588eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5589eea2e341Smrg fi 5590eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55917ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 55927ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 55937ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 55947ed541caSmrgthen : 55957ed541caSmrg printf %s "(cached) " >&6 55967ed541caSmrgelse $as_nop 5597eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5598eea2e341Smrg/* end confdefs.h. */ 5599eea2e341Smrgint i; 5600eea2e341Smrg_ACEOF 56017ed541caSmrgif ac_fn_c_try_compile "$LINENO" 56027ed541caSmrgthen : 5603eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 56047ed541caSmrgelse $as_nop 5605eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5606eea2e341Smrgfi 56077ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5608eea2e341Smrgfi 56097ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 56107ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5611eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5612eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5613eea2e341Smrgfi 5614eea2e341Smrg 5615eea2e341Smrgfound="no" 5616eea2e341Smrg 5617eea2e341Smrg if test $found = "no" ; then 561833dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5619eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5620eea2e341Smrg fi 5621eea2e341Smrg 562233dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5623eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5624eea2e341Smrg fi 5625eea2e341Smrg 5626eea2e341Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 5627eea2e341Smrg 56287ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 56297ed541caSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5630eea2e341Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 56317ed541caSmrg if eval test \${$cacheid+y} 56327ed541caSmrgthen : 56337ed541caSmrg printf %s "(cached) " >&6 56347ed541caSmrgelse $as_nop 5635eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636eea2e341Smrg/* end confdefs.h. */ 5637eea2e341Smrgint i; 5638eea2e341Smrgint 56397ed541caSmrgmain (void) 5640eea2e341Smrg{ 5641eea2e341Smrg 5642eea2e341Smrg ; 5643eea2e341Smrg return 0; 5644eea2e341Smrg} 5645eea2e341Smrg_ACEOF 56467ed541caSmrgif ac_fn_c_try_link "$LINENO" 56477ed541caSmrgthen : 5648eea2e341Smrg eval $cacheid=yes 56497ed541caSmrgelse $as_nop 5650eea2e341Smrg eval $cacheid=no 5651eea2e341Smrgfi 56527ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5653eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 5654eea2e341Smrgfi 5655eea2e341Smrg 5656eea2e341Smrg 5657eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5658eea2e341Smrg 5659eea2e341Smrg eval supported=\$$cacheid 56607ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 56617ed541caSmrgprintf "%s\n" "$supported" >&6; } 5662eea2e341Smrg if test "$supported" = "yes" ; then 5663eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5664eea2e341Smrg found="yes" 5665eea2e341Smrg fi 5666eea2e341Smrg fi 5667eea2e341Smrg 5668eea2e341Smrg 5669eea2e341Smrg 5670eea2e341Smrg 5671eea2e341Smrg 5672eea2e341Smrg 5673eea2e341Smrg 5674eea2e341Smrg 5675eea2e341Smrg 5676eea2e341Smrg 5677eea2e341Smrg 5678eea2e341Smrg 5679eea2e341Smrg 5680eea2e341Smrg 5681eea2e341Smrg 5682eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5683eea2e341Smrg 5684eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5685eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56867ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 56877ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 56887ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 56897ed541caSmrgthen : 56907ed541caSmrg printf %s "(cached) " >&6 56917ed541caSmrgelse $as_nop 5692eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5693eea2e341Smrg/* end confdefs.h. */ 5694eea2e341Smrgint i; 5695eea2e341Smrg_ACEOF 56967ed541caSmrgif ac_fn_c_try_compile "$LINENO" 56977ed541caSmrgthen : 5698eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 56997ed541caSmrgelse $as_nop 5700eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 5701eea2e341Smrgfi 57027ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5703eea2e341Smrgfi 57047ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 57057ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5706eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5707eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5708eea2e341Smrgfi 5709eea2e341Smrg 5710eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5711eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5712eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5713eea2e341Smrg fi 5714eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57157ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 57167ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 57177ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 57187ed541caSmrgthen : 57197ed541caSmrg printf %s "(cached) " >&6 57207ed541caSmrgelse $as_nop 5721eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5722eea2e341Smrg/* end confdefs.h. */ 5723eea2e341Smrgint i; 5724eea2e341Smrg_ACEOF 57257ed541caSmrgif ac_fn_c_try_compile "$LINENO" 57267ed541caSmrgthen : 5727eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 57287ed541caSmrgelse $as_nop 5729eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5730eea2e341Smrgfi 57317ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5732eea2e341Smrgfi 57337ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 57347ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5735eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5736eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5737eea2e341Smrgfi 5738eea2e341Smrg 5739eea2e341Smrgfound="no" 5740eea2e341Smrg 5741eea2e341Smrg if test $found = "no" ; then 574233dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5743eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5744eea2e341Smrg fi 5745eea2e341Smrg 574633dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5747eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5748eea2e341Smrg fi 5749eea2e341Smrg 5750eea2e341Smrg CFLAGS="$CFLAGS -Wnested-externs" 5751eea2e341Smrg 57527ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 57537ed541caSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; } 5754eea2e341Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 57557ed541caSmrg if eval test \${$cacheid+y} 57567ed541caSmrgthen : 57577ed541caSmrg printf %s "(cached) " >&6 57587ed541caSmrgelse $as_nop 5759eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5760eea2e341Smrg/* end confdefs.h. */ 5761eea2e341Smrgint i; 5762eea2e341Smrgint 57637ed541caSmrgmain (void) 5764eea2e341Smrg{ 5765eea2e341Smrg 5766eea2e341Smrg ; 5767eea2e341Smrg return 0; 5768eea2e341Smrg} 5769eea2e341Smrg_ACEOF 57707ed541caSmrgif ac_fn_c_try_link "$LINENO" 57717ed541caSmrgthen : 5772eea2e341Smrg eval $cacheid=yes 57737ed541caSmrgelse $as_nop 5774eea2e341Smrg eval $cacheid=no 5775eea2e341Smrgfi 57767ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5777eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 5778eea2e341Smrgfi 5779eea2e341Smrg 5780eea2e341Smrg 5781eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5782eea2e341Smrg 5783eea2e341Smrg eval supported=\$$cacheid 57847ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 57857ed541caSmrgprintf "%s\n" "$supported" >&6; } 5786eea2e341Smrg if test "$supported" = "yes" ; then 5787eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5788eea2e341Smrg found="yes" 5789eea2e341Smrg fi 5790eea2e341Smrg fi 5791eea2e341Smrg 5792eea2e341Smrg 5793eea2e341Smrg 5794eea2e341Smrg 5795eea2e341Smrg 5796eea2e341Smrg 5797eea2e341Smrg 5798eea2e341Smrg 5799eea2e341Smrg 5800eea2e341Smrg 5801eea2e341Smrg 5802eea2e341Smrg 5803eea2e341Smrg 5804eea2e341Smrg 5805eea2e341Smrg 5806eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5807eea2e341Smrg 5808eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5809eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58107ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 58117ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 58127ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 58137ed541caSmrgthen : 58147ed541caSmrg printf %s "(cached) " >&6 58157ed541caSmrgelse $as_nop 5816eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5817eea2e341Smrg/* end confdefs.h. */ 5818eea2e341Smrgint i; 5819eea2e341Smrg_ACEOF 58207ed541caSmrgif ac_fn_c_try_compile "$LINENO" 58217ed541caSmrgthen : 5822eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 58237ed541caSmrgelse $as_nop 5824eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 5825eea2e341Smrgfi 58267ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5827eea2e341Smrgfi 58287ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 58297ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5830eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5831eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5832eea2e341Smrgfi 5833eea2e341Smrg 5834eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5835eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5836eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5837eea2e341Smrg fi 5838eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58397ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 58407ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 58417ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 58427ed541caSmrgthen : 58437ed541caSmrg printf %s "(cached) " >&6 58447ed541caSmrgelse $as_nop 5845eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5846eea2e341Smrg/* end confdefs.h. */ 5847eea2e341Smrgint i; 5848eea2e341Smrg_ACEOF 58497ed541caSmrgif ac_fn_c_try_compile "$LINENO" 58507ed541caSmrgthen : 5851eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 58527ed541caSmrgelse $as_nop 5853eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5854eea2e341Smrgfi 58557ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5856eea2e341Smrgfi 58577ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 58587ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5859eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5860eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5861eea2e341Smrgfi 5862eea2e341Smrg 5863eea2e341Smrgfound="no" 5864eea2e341Smrg 5865eea2e341Smrg if test $found = "no" ; then 586633dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5867eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5868eea2e341Smrg fi 5869eea2e341Smrg 587033dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5871eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5872eea2e341Smrg fi 5873eea2e341Smrg 5874eea2e341Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 5875eea2e341Smrg 58767ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 58777ed541caSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5878eea2e341Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 58797ed541caSmrg if eval test \${$cacheid+y} 58807ed541caSmrgthen : 58817ed541caSmrg printf %s "(cached) " >&6 58827ed541caSmrgelse $as_nop 5883eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5884eea2e341Smrg/* end confdefs.h. */ 5885eea2e341Smrgint i; 5886eea2e341Smrgint 58877ed541caSmrgmain (void) 5888eea2e341Smrg{ 5889eea2e341Smrg 5890eea2e341Smrg ; 5891eea2e341Smrg return 0; 5892eea2e341Smrg} 5893eea2e341Smrg_ACEOF 58947ed541caSmrgif ac_fn_c_try_link "$LINENO" 58957ed541caSmrgthen : 5896eea2e341Smrg eval $cacheid=yes 58977ed541caSmrgelse $as_nop 5898eea2e341Smrg eval $cacheid=no 5899eea2e341Smrgfi 59007ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 5901eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 5902eea2e341Smrgfi 5903eea2e341Smrg 5904eea2e341Smrg 5905eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5906eea2e341Smrg 5907eea2e341Smrg eval supported=\$$cacheid 59087ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 59097ed541caSmrgprintf "%s\n" "$supported" >&6; } 5910eea2e341Smrg if test "$supported" = "yes" ; then 5911eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5912eea2e341Smrg found="yes" 5913eea2e341Smrg fi 5914eea2e341Smrg fi 5915eea2e341Smrg 5916eea2e341Smrg 5917eea2e341Smrg 5918eea2e341Smrg 5919eea2e341Smrg 5920eea2e341Smrg 5921eea2e341Smrg 5922eea2e341Smrg 5923eea2e341Smrg 5924eea2e341Smrg 5925eea2e341Smrg 5926eea2e341Smrg 5927eea2e341Smrg 5928eea2e341Smrg 5929eea2e341Smrg 5930eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5931eea2e341Smrg 5932eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5933eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59347ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 59357ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 59367ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 59377ed541caSmrgthen : 59387ed541caSmrg printf %s "(cached) " >&6 59397ed541caSmrgelse $as_nop 5940eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5941eea2e341Smrg/* end confdefs.h. */ 5942eea2e341Smrgint i; 5943eea2e341Smrg_ACEOF 59447ed541caSmrgif ac_fn_c_try_compile "$LINENO" 59457ed541caSmrgthen : 5946eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 59477ed541caSmrgelse $as_nop 5948eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 5949eea2e341Smrgfi 59507ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5951eea2e341Smrgfi 59527ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 59537ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5954eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5955eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5956eea2e341Smrgfi 5957eea2e341Smrg 5958eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5959eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5960eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5961eea2e341Smrg fi 5962eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59637ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 59647ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 59657ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 59667ed541caSmrgthen : 59677ed541caSmrg printf %s "(cached) " >&6 59687ed541caSmrgelse $as_nop 5969eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970eea2e341Smrg/* end confdefs.h. */ 5971eea2e341Smrgint i; 5972eea2e341Smrg_ACEOF 59737ed541caSmrgif ac_fn_c_try_compile "$LINENO" 59747ed541caSmrgthen : 5975eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 59767ed541caSmrgelse $as_nop 5977eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5978eea2e341Smrgfi 59797ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5980eea2e341Smrgfi 59817ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 59827ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5983eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5984eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5985eea2e341Smrgfi 5986eea2e341Smrg 5987eea2e341Smrgfound="no" 5988eea2e341Smrg 5989eea2e341Smrg if test $found = "no" ; then 599033dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5991eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5992eea2e341Smrg fi 5993eea2e341Smrg 599433dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5995eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5996eea2e341Smrg fi 5997eea2e341Smrg 5998eea2e341Smrg CFLAGS="$CFLAGS -Wold-style-definition" 5999eea2e341Smrg 60007ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 60017ed541caSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6002eea2e341Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 60037ed541caSmrg if eval test \${$cacheid+y} 60047ed541caSmrgthen : 60057ed541caSmrg printf %s "(cached) " >&6 60067ed541caSmrgelse $as_nop 6007eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6008eea2e341Smrg/* end confdefs.h. */ 6009eea2e341Smrgint i; 6010eea2e341Smrgint 60117ed541caSmrgmain (void) 6012eea2e341Smrg{ 6013eea2e341Smrg 6014eea2e341Smrg ; 6015eea2e341Smrg return 0; 6016eea2e341Smrg} 6017eea2e341Smrg_ACEOF 60187ed541caSmrgif ac_fn_c_try_link "$LINENO" 60197ed541caSmrgthen : 6020eea2e341Smrg eval $cacheid=yes 60217ed541caSmrgelse $as_nop 6022eea2e341Smrg eval $cacheid=no 6023eea2e341Smrgfi 60247ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6025eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 6026eea2e341Smrgfi 6027eea2e341Smrg 6028eea2e341Smrg 6029eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6030eea2e341Smrg 6031eea2e341Smrg eval supported=\$$cacheid 60327ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 60337ed541caSmrgprintf "%s\n" "$supported" >&6; } 6034eea2e341Smrg if test "$supported" = "yes" ; then 6035eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6036eea2e341Smrg found="yes" 6037eea2e341Smrg fi 6038eea2e341Smrg fi 6039eea2e341Smrg 604033dddc75Smrg if test $found = "no" ; then 604133dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 604233dddc75Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 604333dddc75Smrg fi 604433dddc75Smrg 604533dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 604633dddc75Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 604733dddc75Smrg fi 604833dddc75Smrg 604933dddc75Smrg CFLAGS="$CFLAGS -fd" 605033dddc75Smrg 60517ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 60527ed541caSmrgprintf %s "checking if $CC supports -fd... " >&6; } 605333dddc75Smrg cacheid=xorg_cv_cc_flag__fd 60547ed541caSmrg if eval test \${$cacheid+y} 60557ed541caSmrgthen : 60567ed541caSmrg printf %s "(cached) " >&6 60577ed541caSmrgelse $as_nop 605833dddc75Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 605933dddc75Smrg/* end confdefs.h. */ 606033dddc75Smrgint i; 606133dddc75Smrgint 60627ed541caSmrgmain (void) 606333dddc75Smrg{ 606433dddc75Smrg 606533dddc75Smrg ; 606633dddc75Smrg return 0; 606733dddc75Smrg} 606833dddc75Smrg_ACEOF 60697ed541caSmrgif ac_fn_c_try_link "$LINENO" 60707ed541caSmrgthen : 607133dddc75Smrg eval $cacheid=yes 60727ed541caSmrgelse $as_nop 607333dddc75Smrg eval $cacheid=no 607433dddc75Smrgfi 60757ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 607633dddc75Smrg conftest$ac_exeext conftest.$ac_ext 607733dddc75Smrgfi 607833dddc75Smrg 607933dddc75Smrg 608033dddc75Smrg CFLAGS="$xorg_testset_save_CFLAGS" 608133dddc75Smrg 608233dddc75Smrg eval supported=\$$cacheid 60837ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 60847ed541caSmrgprintf "%s\n" "$supported" >&6; } 608533dddc75Smrg if test "$supported" = "yes" ; then 608633dddc75Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 608733dddc75Smrg found="yes" 608833dddc75Smrg fi 608933dddc75Smrg fi 609033dddc75Smrg 6091eea2e341Smrg 6092eea2e341Smrg 6093eea2e341Smrg 6094eea2e341Smrg 6095eea2e341Smrg 6096eea2e341Smrg 6097eea2e341Smrg 6098eea2e341Smrg 6099eea2e341Smrg 6100eea2e341Smrg 6101eea2e341Smrg 6102eea2e341Smrg 6103eea2e341Smrg 6104eea2e341Smrg 6105eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6106eea2e341Smrg 6107eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6108eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61097ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 61107ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 61117ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 61127ed541caSmrgthen : 61137ed541caSmrg printf %s "(cached) " >&6 61147ed541caSmrgelse $as_nop 6115eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6116eea2e341Smrg/* end confdefs.h. */ 6117eea2e341Smrgint i; 6118eea2e341Smrg_ACEOF 61197ed541caSmrgif ac_fn_c_try_compile "$LINENO" 61207ed541caSmrgthen : 6121eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 61227ed541caSmrgelse $as_nop 6123eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 6124eea2e341Smrgfi 61257ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6126eea2e341Smrgfi 61277ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 61287ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6129eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6130eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6131eea2e341Smrgfi 6132eea2e341Smrg 6133eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6134eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6135eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6136eea2e341Smrg fi 6137eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61387ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 61397ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 61407ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 61417ed541caSmrgthen : 61427ed541caSmrg printf %s "(cached) " >&6 61437ed541caSmrgelse $as_nop 6144eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6145eea2e341Smrg/* end confdefs.h. */ 6146eea2e341Smrgint i; 6147eea2e341Smrg_ACEOF 61487ed541caSmrgif ac_fn_c_try_compile "$LINENO" 61497ed541caSmrgthen : 6150eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 61517ed541caSmrgelse $as_nop 6152eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6153eea2e341Smrgfi 61547ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6155eea2e341Smrgfi 61567ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 61577ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6158eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6159eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6160eea2e341Smrgfi 6161eea2e341Smrg 6162eea2e341Smrgfound="no" 6163eea2e341Smrg 6164eea2e341Smrg if test $found = "no" ; then 616533dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6166eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6167eea2e341Smrg fi 6168eea2e341Smrg 616933dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6170eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6171eea2e341Smrg fi 6172eea2e341Smrg 6173eea2e341Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6174eea2e341Smrg 61757ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 61767ed541caSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6177eea2e341Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 61787ed541caSmrg if eval test \${$cacheid+y} 61797ed541caSmrgthen : 61807ed541caSmrg printf %s "(cached) " >&6 61817ed541caSmrgelse $as_nop 6182eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183eea2e341Smrg/* end confdefs.h. */ 6184eea2e341Smrgint i; 6185eea2e341Smrgint 61867ed541caSmrgmain (void) 6187eea2e341Smrg{ 6188eea2e341Smrg 6189eea2e341Smrg ; 6190eea2e341Smrg return 0; 6191eea2e341Smrg} 6192eea2e341Smrg_ACEOF 61937ed541caSmrgif ac_fn_c_try_link "$LINENO" 61947ed541caSmrgthen : 6195eea2e341Smrg eval $cacheid=yes 61967ed541caSmrgelse $as_nop 6197eea2e341Smrg eval $cacheid=no 6198eea2e341Smrgfi 61997ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6200eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 6201eea2e341Smrgfi 6202eea2e341Smrg 6203eea2e341Smrg 6204eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6205eea2e341Smrg 6206eea2e341Smrg eval supported=\$$cacheid 62077ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62087ed541caSmrgprintf "%s\n" "$supported" >&6; } 6209eea2e341Smrg if test "$supported" = "yes" ; then 6210eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6211eea2e341Smrg found="yes" 6212eea2e341Smrg fi 6213eea2e341Smrg fi 6214eea2e341Smrg 6215eea2e341Smrg 6216eea2e341Smrg 6217eea2e341Smrg 6218eea2e341Smrg 6219eea2e341Smrg# This chunk adds additional warnings that could catch undesired effects. 6220eea2e341Smrg 6221eea2e341Smrg 6222eea2e341Smrg 6223eea2e341Smrg 6224eea2e341Smrg 6225eea2e341Smrg 6226eea2e341Smrg 6227eea2e341Smrg 6228eea2e341Smrg 6229eea2e341Smrg 6230eea2e341Smrg 6231eea2e341Smrg 6232eea2e341Smrg 6233eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6234eea2e341Smrg 6235eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6236eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62377ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 62387ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 62397ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 62407ed541caSmrgthen : 62417ed541caSmrg printf %s "(cached) " >&6 62427ed541caSmrgelse $as_nop 6243eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6244eea2e341Smrg/* end confdefs.h. */ 6245eea2e341Smrgint i; 6246eea2e341Smrg_ACEOF 62477ed541caSmrgif ac_fn_c_try_compile "$LINENO" 62487ed541caSmrgthen : 6249eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 62507ed541caSmrgelse $as_nop 6251eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 6252eea2e341Smrgfi 62537ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6254eea2e341Smrgfi 62557ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 62567ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6257eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6258eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6259eea2e341Smrgfi 6260eea2e341Smrg 6261eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6262eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6263eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6264eea2e341Smrg fi 6265eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62667ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 62677ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 62687ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 62697ed541caSmrgthen : 62707ed541caSmrg printf %s "(cached) " >&6 62717ed541caSmrgelse $as_nop 6272eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6273eea2e341Smrg/* end confdefs.h. */ 6274eea2e341Smrgint i; 6275eea2e341Smrg_ACEOF 62767ed541caSmrgif ac_fn_c_try_compile "$LINENO" 62777ed541caSmrgthen : 6278eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 62797ed541caSmrgelse $as_nop 6280eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6281eea2e341Smrgfi 62827ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6283eea2e341Smrgfi 62847ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 62857ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6286eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6287eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6288eea2e341Smrgfi 6289eea2e341Smrg 6290eea2e341Smrgfound="no" 6291eea2e341Smrg 6292eea2e341Smrg if test $found = "no" ; then 629333dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6294eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6295eea2e341Smrg fi 6296eea2e341Smrg 629733dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6298eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6299eea2e341Smrg fi 6300eea2e341Smrg 6301eea2e341Smrg CFLAGS="$CFLAGS -Wunused" 6302eea2e341Smrg 63037ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 63047ed541caSmrgprintf %s "checking if $CC supports -Wunused... " >&6; } 6305eea2e341Smrg cacheid=xorg_cv_cc_flag__Wunused 63067ed541caSmrg if eval test \${$cacheid+y} 63077ed541caSmrgthen : 63087ed541caSmrg printf %s "(cached) " >&6 63097ed541caSmrgelse $as_nop 6310eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6311eea2e341Smrg/* end confdefs.h. */ 6312eea2e341Smrgint i; 6313eea2e341Smrgint 63147ed541caSmrgmain (void) 6315eea2e341Smrg{ 6316eea2e341Smrg 6317eea2e341Smrg ; 6318eea2e341Smrg return 0; 6319eea2e341Smrg} 6320eea2e341Smrg_ACEOF 63217ed541caSmrgif ac_fn_c_try_link "$LINENO" 63227ed541caSmrgthen : 6323eea2e341Smrg eval $cacheid=yes 63247ed541caSmrgelse $as_nop 6325eea2e341Smrg eval $cacheid=no 6326eea2e341Smrgfi 63277ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6328eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 6329eea2e341Smrgfi 6330eea2e341Smrg 6331eea2e341Smrg 6332eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6333eea2e341Smrg 6334eea2e341Smrg eval supported=\$$cacheid 63357ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 63367ed541caSmrgprintf "%s\n" "$supported" >&6; } 6337eea2e341Smrg if test "$supported" = "yes" ; then 6338eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6339eea2e341Smrg found="yes" 6340eea2e341Smrg fi 6341eea2e341Smrg fi 6342eea2e341Smrg 6343eea2e341Smrg 6344eea2e341Smrg 6345eea2e341Smrg 6346eea2e341Smrg 6347eea2e341Smrg 6348eea2e341Smrg 6349eea2e341Smrg 6350eea2e341Smrg 6351eea2e341Smrg 6352eea2e341Smrg 6353eea2e341Smrg 6354eea2e341Smrg 6355eea2e341Smrg 6356eea2e341Smrg 6357eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6358eea2e341Smrg 6359eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6360eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63617ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 63627ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 63637ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 63647ed541caSmrgthen : 63657ed541caSmrg printf %s "(cached) " >&6 63667ed541caSmrgelse $as_nop 6367eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6368eea2e341Smrg/* end confdefs.h. */ 6369eea2e341Smrgint i; 6370eea2e341Smrg_ACEOF 63717ed541caSmrgif ac_fn_c_try_compile "$LINENO" 63727ed541caSmrgthen : 6373eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 63747ed541caSmrgelse $as_nop 6375eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 6376eea2e341Smrgfi 63777ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6378eea2e341Smrgfi 63797ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 63807ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6381eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6382eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6383eea2e341Smrgfi 6384eea2e341Smrg 6385eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6386eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6387eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6388eea2e341Smrg fi 6389eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63907ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 63917ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 63927ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 63937ed541caSmrgthen : 63947ed541caSmrg printf %s "(cached) " >&6 63957ed541caSmrgelse $as_nop 6396eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6397eea2e341Smrg/* end confdefs.h. */ 6398eea2e341Smrgint i; 6399eea2e341Smrg_ACEOF 64007ed541caSmrgif ac_fn_c_try_compile "$LINENO" 64017ed541caSmrgthen : 6402eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 64037ed541caSmrgelse $as_nop 6404eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6405eea2e341Smrgfi 64067ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6407eea2e341Smrgfi 64087ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 64097ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6410eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6411eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6412eea2e341Smrgfi 6413eea2e341Smrg 6414eea2e341Smrgfound="no" 6415eea2e341Smrg 6416eea2e341Smrg if test $found = "no" ; then 641733dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6418eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6419eea2e341Smrg fi 6420eea2e341Smrg 642133dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6422eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6423eea2e341Smrg fi 6424eea2e341Smrg 6425eea2e341Smrg CFLAGS="$CFLAGS -Wuninitialized" 6426eea2e341Smrg 64277ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 64287ed541caSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; } 6429eea2e341Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 64307ed541caSmrg if eval test \${$cacheid+y} 64317ed541caSmrgthen : 64327ed541caSmrg printf %s "(cached) " >&6 64337ed541caSmrgelse $as_nop 6434eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6435eea2e341Smrg/* end confdefs.h. */ 6436eea2e341Smrgint i; 6437eea2e341Smrgint 64387ed541caSmrgmain (void) 6439eea2e341Smrg{ 6440eea2e341Smrg 6441eea2e341Smrg ; 6442eea2e341Smrg return 0; 6443eea2e341Smrg} 6444eea2e341Smrg_ACEOF 64457ed541caSmrgif ac_fn_c_try_link "$LINENO" 64467ed541caSmrgthen : 6447eea2e341Smrg eval $cacheid=yes 64487ed541caSmrgelse $as_nop 6449eea2e341Smrg eval $cacheid=no 6450eea2e341Smrgfi 64517ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6452eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 6453eea2e341Smrgfi 6454eea2e341Smrg 6455eea2e341Smrg 6456eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6457eea2e341Smrg 6458eea2e341Smrg eval supported=\$$cacheid 64597ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 64607ed541caSmrgprintf "%s\n" "$supported" >&6; } 6461eea2e341Smrg if test "$supported" = "yes" ; then 6462eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6463eea2e341Smrg found="yes" 6464eea2e341Smrg fi 6465eea2e341Smrg fi 6466eea2e341Smrg 6467eea2e341Smrg 6468eea2e341Smrg 6469eea2e341Smrg 6470eea2e341Smrg 6471eea2e341Smrg 6472eea2e341Smrg 6473eea2e341Smrg 6474eea2e341Smrg 6475eea2e341Smrg 6476eea2e341Smrg 6477eea2e341Smrg 6478eea2e341Smrg 6479eea2e341Smrg 6480eea2e341Smrg 6481eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6482eea2e341Smrg 6483eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6484eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64857ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 64867ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 64877ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 64887ed541caSmrgthen : 64897ed541caSmrg printf %s "(cached) " >&6 64907ed541caSmrgelse $as_nop 6491eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6492eea2e341Smrg/* end confdefs.h. */ 6493eea2e341Smrgint i; 6494eea2e341Smrg_ACEOF 64957ed541caSmrgif ac_fn_c_try_compile "$LINENO" 64967ed541caSmrgthen : 6497eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 64987ed541caSmrgelse $as_nop 6499eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 6500eea2e341Smrgfi 65017ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6502eea2e341Smrgfi 65037ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 65047ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6505eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6506eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6507eea2e341Smrgfi 6508eea2e341Smrg 6509eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6510eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6511eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6512eea2e341Smrg fi 6513eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65147ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 65157ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 65167ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 65177ed541caSmrgthen : 65187ed541caSmrg printf %s "(cached) " >&6 65197ed541caSmrgelse $as_nop 6520eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6521eea2e341Smrg/* end confdefs.h. */ 6522eea2e341Smrgint i; 6523eea2e341Smrg_ACEOF 65247ed541caSmrgif ac_fn_c_try_compile "$LINENO" 65257ed541caSmrgthen : 6526eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 65277ed541caSmrgelse $as_nop 6528eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6529eea2e341Smrgfi 65307ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6531eea2e341Smrgfi 65327ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 65337ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6534eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6535eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6536eea2e341Smrgfi 6537eea2e341Smrg 6538eea2e341Smrgfound="no" 6539eea2e341Smrg 6540eea2e341Smrg if test $found = "no" ; then 654133dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6542eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6543eea2e341Smrg fi 6544eea2e341Smrg 654533dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6546eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6547eea2e341Smrg fi 6548eea2e341Smrg 6549eea2e341Smrg CFLAGS="$CFLAGS -Wshadow" 6550eea2e341Smrg 65517ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 65527ed541caSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; } 6553eea2e341Smrg cacheid=xorg_cv_cc_flag__Wshadow 65547ed541caSmrg if eval test \${$cacheid+y} 65557ed541caSmrgthen : 65567ed541caSmrg printf %s "(cached) " >&6 65577ed541caSmrgelse $as_nop 6558eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559eea2e341Smrg/* end confdefs.h. */ 6560eea2e341Smrgint i; 6561eea2e341Smrgint 65627ed541caSmrgmain (void) 6563eea2e341Smrg{ 6564eea2e341Smrg 6565eea2e341Smrg ; 6566eea2e341Smrg return 0; 6567eea2e341Smrg} 6568eea2e341Smrg_ACEOF 65697ed541caSmrgif ac_fn_c_try_link "$LINENO" 65707ed541caSmrgthen : 6571eea2e341Smrg eval $cacheid=yes 65727ed541caSmrgelse $as_nop 6573eea2e341Smrg eval $cacheid=no 6574eea2e341Smrgfi 65757ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6576eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 6577eea2e341Smrgfi 6578eea2e341Smrg 6579eea2e341Smrg 6580eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6581eea2e341Smrg 6582eea2e341Smrg eval supported=\$$cacheid 65837ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 65847ed541caSmrgprintf "%s\n" "$supported" >&6; } 6585eea2e341Smrg if test "$supported" = "yes" ; then 6586eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6587eea2e341Smrg found="yes" 6588eea2e341Smrg fi 6589eea2e341Smrg fi 6590eea2e341Smrg 6591eea2e341Smrg 6592eea2e341Smrg 6593eea2e341Smrg 6594eea2e341Smrg 6595eea2e341Smrg 6596eea2e341Smrg 6597eea2e341Smrg 6598eea2e341Smrg 6599eea2e341Smrg 6600eea2e341Smrg 6601eea2e341Smrg 6602eea2e341Smrg 6603eea2e341Smrg 6604eea2e341Smrg 6605eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6606eea2e341Smrg 6607eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6608eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66097ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 66107ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 66117ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 66127ed541caSmrgthen : 66137ed541caSmrg printf %s "(cached) " >&6 66147ed541caSmrgelse $as_nop 6615eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6616eea2e341Smrg/* end confdefs.h. */ 6617eea2e341Smrgint i; 6618eea2e341Smrg_ACEOF 66197ed541caSmrgif ac_fn_c_try_compile "$LINENO" 66207ed541caSmrgthen : 6621eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 66227ed541caSmrgelse $as_nop 6623eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 6624eea2e341Smrgfi 66257ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6626eea2e341Smrgfi 66277ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 66287ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6629eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6630eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6631eea2e341Smrgfi 6632eea2e341Smrg 6633eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6634eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6635eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6636eea2e341Smrg fi 6637eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66387ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 66397ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 66407ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 66417ed541caSmrgthen : 66427ed541caSmrg printf %s "(cached) " >&6 66437ed541caSmrgelse $as_nop 6644eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6645eea2e341Smrg/* end confdefs.h. */ 6646eea2e341Smrgint i; 6647eea2e341Smrg_ACEOF 66487ed541caSmrgif ac_fn_c_try_compile "$LINENO" 66497ed541caSmrgthen : 6650eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 66517ed541caSmrgelse $as_nop 6652eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6653eea2e341Smrgfi 66547ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6655eea2e341Smrgfi 66567ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 66577ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6658eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6659eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6660eea2e341Smrgfi 6661eea2e341Smrg 6662eea2e341Smrgfound="no" 6663eea2e341Smrg 6664eea2e341Smrg if test $found = "no" ; then 666533dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6666eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6667eea2e341Smrg fi 6668eea2e341Smrg 666933dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6670eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6671eea2e341Smrg fi 6672eea2e341Smrg 667333dddc75Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 6674eea2e341Smrg 66757ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 66767ed541caSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 667733dddc75Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 66787ed541caSmrg if eval test \${$cacheid+y} 66797ed541caSmrgthen : 66807ed541caSmrg printf %s "(cached) " >&6 66817ed541caSmrgelse $as_nop 6682eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683eea2e341Smrg/* end confdefs.h. */ 6684eea2e341Smrgint i; 6685eea2e341Smrgint 66867ed541caSmrgmain (void) 6687eea2e341Smrg{ 6688eea2e341Smrg 6689eea2e341Smrg ; 6690eea2e341Smrg return 0; 6691eea2e341Smrg} 6692eea2e341Smrg_ACEOF 66937ed541caSmrgif ac_fn_c_try_link "$LINENO" 66947ed541caSmrgthen : 6695eea2e341Smrg eval $cacheid=yes 66967ed541caSmrgelse $as_nop 6697eea2e341Smrg eval $cacheid=no 6698eea2e341Smrgfi 66997ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6700eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 6701eea2e341Smrgfi 6702eea2e341Smrg 6703eea2e341Smrg 6704eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6705eea2e341Smrg 6706eea2e341Smrg eval supported=\$$cacheid 67077ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 67087ed541caSmrgprintf "%s\n" "$supported" >&6; } 6709eea2e341Smrg if test "$supported" = "yes" ; then 671033dddc75Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6711eea2e341Smrg found="yes" 6712eea2e341Smrg fi 6713eea2e341Smrg fi 6714eea2e341Smrg 6715eea2e341Smrg 6716eea2e341Smrg 6717eea2e341Smrg 6718eea2e341Smrg 6719eea2e341Smrg 6720eea2e341Smrg 6721eea2e341Smrg 6722eea2e341Smrg 6723eea2e341Smrg 6724eea2e341Smrg 6725eea2e341Smrg 6726eea2e341Smrg 6727eea2e341Smrg 6728eea2e341Smrg 6729eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6730eea2e341Smrg 6731eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6732eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67337ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 67347ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 67357ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 67367ed541caSmrgthen : 67377ed541caSmrg printf %s "(cached) " >&6 67387ed541caSmrgelse $as_nop 6739eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6740eea2e341Smrg/* end confdefs.h. */ 6741eea2e341Smrgint i; 6742eea2e341Smrg_ACEOF 67437ed541caSmrgif ac_fn_c_try_compile "$LINENO" 67447ed541caSmrgthen : 6745eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 67467ed541caSmrgelse $as_nop 6747eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 6748eea2e341Smrgfi 67497ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6750eea2e341Smrgfi 67517ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 67527ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6753eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6754eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6755eea2e341Smrgfi 6756eea2e341Smrg 6757eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6758eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6759eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6760eea2e341Smrg fi 6761eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67627ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 67637ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 67647ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 67657ed541caSmrgthen : 67667ed541caSmrg printf %s "(cached) " >&6 67677ed541caSmrgelse $as_nop 6768eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6769eea2e341Smrg/* end confdefs.h. */ 6770eea2e341Smrgint i; 6771eea2e341Smrg_ACEOF 67727ed541caSmrgif ac_fn_c_try_compile "$LINENO" 67737ed541caSmrgthen : 6774eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 67757ed541caSmrgelse $as_nop 6776eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6777eea2e341Smrgfi 67787ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6779eea2e341Smrgfi 67807ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 67817ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6782eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6783eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6784eea2e341Smrgfi 6785eea2e341Smrg 6786eea2e341Smrgfound="no" 6787eea2e341Smrg 6788eea2e341Smrg if test $found = "no" ; then 678933dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6790eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6791eea2e341Smrg fi 6792eea2e341Smrg 679333dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6794eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6795eea2e341Smrg fi 6796eea2e341Smrg 679733dddc75Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 6798eea2e341Smrg 67997ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 68007ed541caSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 680133dddc75Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 68027ed541caSmrg if eval test \${$cacheid+y} 68037ed541caSmrgthen : 68047ed541caSmrg printf %s "(cached) " >&6 68057ed541caSmrgelse $as_nop 6806eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6807eea2e341Smrg/* end confdefs.h. */ 6808eea2e341Smrgint i; 6809eea2e341Smrgint 68107ed541caSmrgmain (void) 6811eea2e341Smrg{ 6812eea2e341Smrg 6813eea2e341Smrg ; 6814eea2e341Smrg return 0; 6815eea2e341Smrg} 6816eea2e341Smrg_ACEOF 68177ed541caSmrgif ac_fn_c_try_link "$LINENO" 68187ed541caSmrgthen : 6819eea2e341Smrg eval $cacheid=yes 68207ed541caSmrgelse $as_nop 6821eea2e341Smrg eval $cacheid=no 6822eea2e341Smrgfi 68237ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6824eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 6825eea2e341Smrgfi 6826eea2e341Smrg 6827eea2e341Smrg 6828eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6829eea2e341Smrg 6830eea2e341Smrg eval supported=\$$cacheid 68317ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68327ed541caSmrgprintf "%s\n" "$supported" >&6; } 6833eea2e341Smrg if test "$supported" = "yes" ; then 683433dddc75Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6835eea2e341Smrg found="yes" 6836eea2e341Smrg fi 6837eea2e341Smrg fi 6838eea2e341Smrg 6839eea2e341Smrg 6840eea2e341Smrg 6841eea2e341Smrg 6842eea2e341Smrg 6843eea2e341Smrg 6844eea2e341Smrg 6845eea2e341Smrg 6846eea2e341Smrg 6847eea2e341Smrg 6848eea2e341Smrg 6849eea2e341Smrg 6850eea2e341Smrg 6851eea2e341Smrg 6852eea2e341Smrg 6853eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6854eea2e341Smrg 6855eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6856eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68577ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 68587ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 68597ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 68607ed541caSmrgthen : 68617ed541caSmrg printf %s "(cached) " >&6 68627ed541caSmrgelse $as_nop 6863eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6864eea2e341Smrg/* end confdefs.h. */ 6865eea2e341Smrgint i; 6866eea2e341Smrg_ACEOF 68677ed541caSmrgif ac_fn_c_try_compile "$LINENO" 68687ed541caSmrgthen : 6869eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 68707ed541caSmrgelse $as_nop 6871eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 6872eea2e341Smrgfi 68737ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6874eea2e341Smrgfi 68757ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 68767ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6877eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6878eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6879eea2e341Smrgfi 6880eea2e341Smrg 6881eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6882eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6883eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6884eea2e341Smrg fi 6885eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68867ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 68877ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 68887ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 68897ed541caSmrgthen : 68907ed541caSmrg printf %s "(cached) " >&6 68917ed541caSmrgelse $as_nop 6892eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6893eea2e341Smrg/* end confdefs.h. */ 6894eea2e341Smrgint i; 6895eea2e341Smrg_ACEOF 68967ed541caSmrgif ac_fn_c_try_compile "$LINENO" 68977ed541caSmrgthen : 6898eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 68997ed541caSmrgelse $as_nop 6900eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6901eea2e341Smrgfi 69027ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6903eea2e341Smrgfi 69047ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 69057ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6906eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6907eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6908eea2e341Smrgfi 6909eea2e341Smrg 6910eea2e341Smrgfound="no" 6911eea2e341Smrg 6912eea2e341Smrg if test $found = "no" ; then 691333dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6914eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6915eea2e341Smrg fi 6916eea2e341Smrg 691733dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6918eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6919eea2e341Smrg fi 6920eea2e341Smrg 692133dddc75Smrg CFLAGS="$CFLAGS -Wredundant-decls" 6922eea2e341Smrg 69237ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 69247ed541caSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; } 692533dddc75Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 69267ed541caSmrg if eval test \${$cacheid+y} 69277ed541caSmrgthen : 69287ed541caSmrg printf %s "(cached) " >&6 69297ed541caSmrgelse $as_nop 6930eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6931eea2e341Smrg/* end confdefs.h. */ 6932eea2e341Smrgint i; 6933eea2e341Smrgint 69347ed541caSmrgmain (void) 6935eea2e341Smrg{ 6936eea2e341Smrg 6937eea2e341Smrg ; 6938eea2e341Smrg return 0; 6939eea2e341Smrg} 6940eea2e341Smrg_ACEOF 69417ed541caSmrgif ac_fn_c_try_link "$LINENO" 69427ed541caSmrgthen : 6943eea2e341Smrg eval $cacheid=yes 69447ed541caSmrgelse $as_nop 6945eea2e341Smrg eval $cacheid=no 6946eea2e341Smrgfi 69477ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 6948eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 6949eea2e341Smrgfi 6950eea2e341Smrg 6951eea2e341Smrg 6952eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6953eea2e341Smrg 6954eea2e341Smrg eval supported=\$$cacheid 69557ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 69567ed541caSmrgprintf "%s\n" "$supported" >&6; } 6957eea2e341Smrg if test "$supported" = "yes" ; then 695833dddc75Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6959eea2e341Smrg found="yes" 6960eea2e341Smrg fi 6961eea2e341Smrg fi 6962eea2e341Smrg 6963eea2e341Smrg 6964eea2e341Smrg 6965eea2e341Smrg 6966eea2e341Smrg 6967eea2e341Smrg 6968eea2e341Smrg 6969eea2e341Smrg 6970eea2e341Smrg 6971eea2e341Smrg 6972eea2e341Smrg 6973eea2e341Smrg 6974eea2e341Smrg 6975eea2e341Smrg 6976eea2e341Smrg 6977eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6978eea2e341Smrg 6979eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6980eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69817ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 69827ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 69837ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 69847ed541caSmrgthen : 69857ed541caSmrg printf %s "(cached) " >&6 69867ed541caSmrgelse $as_nop 6987eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6988eea2e341Smrg/* end confdefs.h. */ 6989eea2e341Smrgint i; 6990eea2e341Smrg_ACEOF 69917ed541caSmrgif ac_fn_c_try_compile "$LINENO" 69927ed541caSmrgthen : 6993eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 69947ed541caSmrgelse $as_nop 6995eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 6996eea2e341Smrgfi 69977ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6998eea2e341Smrgfi 69997ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 70007ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7001eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7002eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7003eea2e341Smrgfi 7004eea2e341Smrg 7005eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7006eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7007eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7008eea2e341Smrg fi 7009eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70107ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 70117ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 70127ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 70137ed541caSmrgthen : 70147ed541caSmrg printf %s "(cached) " >&6 70157ed541caSmrgelse $as_nop 7016eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7017eea2e341Smrg/* end confdefs.h. */ 7018eea2e341Smrgint i; 7019eea2e341Smrg_ACEOF 70207ed541caSmrgif ac_fn_c_try_compile "$LINENO" 70217ed541caSmrgthen : 7022eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 70237ed541caSmrgelse $as_nop 7024eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7025eea2e341Smrgfi 70267ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7027eea2e341Smrgfi 70287ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 70297ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7030eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7031eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7032eea2e341Smrgfi 7033eea2e341Smrg 7034eea2e341Smrgfound="no" 7035eea2e341Smrg 7036eea2e341Smrg if test $found = "no" ; then 703733dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7038eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7039eea2e341Smrg fi 7040eea2e341Smrg 704133dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7042eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7043eea2e341Smrg fi 7044eea2e341Smrg 704533dddc75Smrg CFLAGS="$CFLAGS -Wlogical-op" 7046eea2e341Smrg 70477ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 70487ed541caSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; } 704933dddc75Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 70507ed541caSmrg if eval test \${$cacheid+y} 70517ed541caSmrgthen : 70527ed541caSmrg printf %s "(cached) " >&6 70537ed541caSmrgelse $as_nop 7054eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7055eea2e341Smrg/* end confdefs.h. */ 7056eea2e341Smrgint i; 7057eea2e341Smrgint 70587ed541caSmrgmain (void) 7059eea2e341Smrg{ 7060eea2e341Smrg 7061eea2e341Smrg ; 7062eea2e341Smrg return 0; 7063eea2e341Smrg} 7064eea2e341Smrg_ACEOF 70657ed541caSmrgif ac_fn_c_try_link "$LINENO" 70667ed541caSmrgthen : 7067eea2e341Smrg eval $cacheid=yes 70687ed541caSmrgelse $as_nop 7069eea2e341Smrg eval $cacheid=no 7070eea2e341Smrgfi 70717ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7072eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 7073eea2e341Smrgfi 7074eea2e341Smrg 7075eea2e341Smrg 7076eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7077eea2e341Smrg 7078eea2e341Smrg eval supported=\$$cacheid 70797ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 70807ed541caSmrgprintf "%s\n" "$supported" >&6; } 7081eea2e341Smrg if test "$supported" = "yes" ; then 708233dddc75Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7083eea2e341Smrg found="yes" 7084eea2e341Smrg fi 7085eea2e341Smrg fi 7086eea2e341Smrg 7087eea2e341Smrg 7088eea2e341Smrg 7089eea2e341Smrg# These are currently disabled because they are noisy. They will be enabled 7090eea2e341Smrg# in the future once the codebase is sufficiently modernized to silence 7091eea2e341Smrg# them. For now, I don't want them to drown out the other warnings. 7092eea2e341Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7093eea2e341Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 709433dddc75Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7095eea2e341Smrg 7096eea2e341Smrg# Turn some warnings into errors, so we don't accidently get successful builds 7097eea2e341Smrg# when there are problems that should be fixed. 7098eea2e341Smrg 7099eea2e341Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 7100eea2e341Smrg 7101eea2e341Smrg 7102eea2e341Smrg 7103eea2e341Smrg 7104eea2e341Smrg 7105eea2e341Smrg 7106eea2e341Smrg 7107eea2e341Smrg 7108eea2e341Smrg 7109eea2e341Smrg 7110eea2e341Smrg 7111eea2e341Smrg 7112eea2e341Smrg 7113eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7114eea2e341Smrg 7115eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7116eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71177ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 71187ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 71197ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 71207ed541caSmrgthen : 71217ed541caSmrg printf %s "(cached) " >&6 71227ed541caSmrgelse $as_nop 7123eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7124eea2e341Smrg/* end confdefs.h. */ 7125eea2e341Smrgint i; 7126eea2e341Smrg_ACEOF 71277ed541caSmrgif ac_fn_c_try_compile "$LINENO" 71287ed541caSmrgthen : 7129eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 71307ed541caSmrgelse $as_nop 7131eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 7132eea2e341Smrgfi 71337ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7134eea2e341Smrgfi 71357ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 71367ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7137eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7138eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7139eea2e341Smrgfi 7140eea2e341Smrg 7141eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7142eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7143eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7144eea2e341Smrg fi 7145eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71467ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 71477ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 71487ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 71497ed541caSmrgthen : 71507ed541caSmrg printf %s "(cached) " >&6 71517ed541caSmrgelse $as_nop 7152eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7153eea2e341Smrg/* end confdefs.h. */ 7154eea2e341Smrgint i; 7155eea2e341Smrg_ACEOF 71567ed541caSmrgif ac_fn_c_try_compile "$LINENO" 71577ed541caSmrgthen : 7158eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 71597ed541caSmrgelse $as_nop 7160eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7161eea2e341Smrgfi 71627ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7163eea2e341Smrgfi 71647ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 71657ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7166eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7167eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7168eea2e341Smrgfi 7169eea2e341Smrg 7170eea2e341Smrgfound="no" 7171eea2e341Smrg 7172eea2e341Smrg if test $found = "no" ; then 717333dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7174eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7175eea2e341Smrg fi 7176eea2e341Smrg 717733dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7178eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7179eea2e341Smrg fi 7180eea2e341Smrg 7181eea2e341Smrg CFLAGS="$CFLAGS -Werror=implicit" 7182eea2e341Smrg 71837ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 71847ed541caSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; } 718533dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 71867ed541caSmrg if eval test \${$cacheid+y} 71877ed541caSmrgthen : 71887ed541caSmrg printf %s "(cached) " >&6 71897ed541caSmrgelse $as_nop 7190eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7191eea2e341Smrg/* end confdefs.h. */ 7192eea2e341Smrgint i; 7193eea2e341Smrgint 71947ed541caSmrgmain (void) 7195eea2e341Smrg{ 7196eea2e341Smrg 7197eea2e341Smrg ; 7198eea2e341Smrg return 0; 7199eea2e341Smrg} 7200eea2e341Smrg_ACEOF 72017ed541caSmrgif ac_fn_c_try_link "$LINENO" 72027ed541caSmrgthen : 7203eea2e341Smrg eval $cacheid=yes 72047ed541caSmrgelse $as_nop 7205eea2e341Smrg eval $cacheid=no 7206eea2e341Smrgfi 72077ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7208eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 7209eea2e341Smrgfi 7210eea2e341Smrg 7211eea2e341Smrg 7212eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7213eea2e341Smrg 7214eea2e341Smrg eval supported=\$$cacheid 72157ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 72167ed541caSmrgprintf "%s\n" "$supported" >&6; } 7217eea2e341Smrg if test "$supported" = "yes" ; then 7218eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7219eea2e341Smrg found="yes" 7220eea2e341Smrg fi 7221eea2e341Smrg fi 7222eea2e341Smrg 7223eea2e341Smrg if test $found = "no" ; then 722433dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7225eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7226eea2e341Smrg fi 7227eea2e341Smrg 722833dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7229eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7230eea2e341Smrg fi 7231eea2e341Smrg 7232eea2e341Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7233eea2e341Smrg 72347ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 72357ed541caSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 723633dddc75Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 72377ed541caSmrg if eval test \${$cacheid+y} 72387ed541caSmrgthen : 72397ed541caSmrg printf %s "(cached) " >&6 72407ed541caSmrgelse $as_nop 7241eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7242eea2e341Smrg/* end confdefs.h. */ 7243eea2e341Smrgint i; 7244eea2e341Smrgint 72457ed541caSmrgmain (void) 7246eea2e341Smrg{ 7247eea2e341Smrg 7248eea2e341Smrg ; 7249eea2e341Smrg return 0; 7250eea2e341Smrg} 7251eea2e341Smrg_ACEOF 72527ed541caSmrgif ac_fn_c_try_link "$LINENO" 72537ed541caSmrgthen : 7254eea2e341Smrg eval $cacheid=yes 72557ed541caSmrgelse $as_nop 7256eea2e341Smrg eval $cacheid=no 7257eea2e341Smrgfi 72587ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7259eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 7260eea2e341Smrgfi 7261eea2e341Smrg 7262eea2e341Smrg 7263eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7264eea2e341Smrg 7265eea2e341Smrg eval supported=\$$cacheid 72667ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 72677ed541caSmrgprintf "%s\n" "$supported" >&6; } 7268eea2e341Smrg if test "$supported" = "yes" ; then 7269eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7270eea2e341Smrg found="yes" 7271eea2e341Smrg fi 7272eea2e341Smrg fi 7273eea2e341Smrg 7274eea2e341Smrg 7275eea2e341Smrg 7276eea2e341Smrg 7277eea2e341Smrg 7278eea2e341Smrg 7279eea2e341Smrg 7280eea2e341Smrg 7281eea2e341Smrg 7282eea2e341Smrg 7283eea2e341Smrg 7284eea2e341Smrg 7285eea2e341Smrg 7286eea2e341Smrg 7287eea2e341Smrg 7288eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7289eea2e341Smrg 7290eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7291eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72927ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 72937ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 72947ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 72957ed541caSmrgthen : 72967ed541caSmrg printf %s "(cached) " >&6 72977ed541caSmrgelse $as_nop 7298eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7299eea2e341Smrg/* end confdefs.h. */ 7300eea2e341Smrgint i; 7301eea2e341Smrg_ACEOF 73027ed541caSmrgif ac_fn_c_try_compile "$LINENO" 73037ed541caSmrgthen : 7304eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 73057ed541caSmrgelse $as_nop 7306eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 7307eea2e341Smrgfi 73087ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7309eea2e341Smrgfi 73107ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 73117ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7312eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7313eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7314eea2e341Smrgfi 7315eea2e341Smrg 7316eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7317eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7318eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7319eea2e341Smrg fi 7320eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73217ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 73227ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 73237ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 73247ed541caSmrgthen : 73257ed541caSmrg printf %s "(cached) " >&6 73267ed541caSmrgelse $as_nop 7327eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7328eea2e341Smrg/* end confdefs.h. */ 7329eea2e341Smrgint i; 7330eea2e341Smrg_ACEOF 73317ed541caSmrgif ac_fn_c_try_compile "$LINENO" 73327ed541caSmrgthen : 7333eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 73347ed541caSmrgelse $as_nop 7335eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7336eea2e341Smrgfi 73377ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7338eea2e341Smrgfi 73397ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 73407ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7341eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7342eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7343eea2e341Smrgfi 7344eea2e341Smrg 7345eea2e341Smrgfound="no" 7346eea2e341Smrg 7347eea2e341Smrg if test $found = "no" ; then 734833dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7349eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7350eea2e341Smrg fi 7351eea2e341Smrg 735233dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7353eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7354eea2e341Smrg fi 7355eea2e341Smrg 7356eea2e341Smrg CFLAGS="$CFLAGS -Werror=nonnull" 7357eea2e341Smrg 73587ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 73597ed541caSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; } 736033dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 73617ed541caSmrg if eval test \${$cacheid+y} 73627ed541caSmrgthen : 73637ed541caSmrg printf %s "(cached) " >&6 73647ed541caSmrgelse $as_nop 7365eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366eea2e341Smrg/* end confdefs.h. */ 7367eea2e341Smrgint i; 7368eea2e341Smrgint 73697ed541caSmrgmain (void) 7370eea2e341Smrg{ 7371eea2e341Smrg 7372eea2e341Smrg ; 7373eea2e341Smrg return 0; 7374eea2e341Smrg} 7375eea2e341Smrg_ACEOF 73767ed541caSmrgif ac_fn_c_try_link "$LINENO" 73777ed541caSmrgthen : 7378eea2e341Smrg eval $cacheid=yes 73797ed541caSmrgelse $as_nop 7380eea2e341Smrg eval $cacheid=no 7381eea2e341Smrgfi 73827ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7383eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 7384eea2e341Smrgfi 7385eea2e341Smrg 7386eea2e341Smrg 7387eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7388eea2e341Smrg 7389eea2e341Smrg eval supported=\$$cacheid 73907ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 73917ed541caSmrgprintf "%s\n" "$supported" >&6; } 7392eea2e341Smrg if test "$supported" = "yes" ; then 7393eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7394eea2e341Smrg found="yes" 7395eea2e341Smrg fi 7396eea2e341Smrg fi 7397eea2e341Smrg 7398eea2e341Smrg 7399eea2e341Smrg 7400eea2e341Smrg 7401eea2e341Smrg 7402eea2e341Smrg 7403eea2e341Smrg 7404eea2e341Smrg 7405eea2e341Smrg 7406eea2e341Smrg 7407eea2e341Smrg 7408eea2e341Smrg 7409eea2e341Smrg 7410eea2e341Smrg 7411eea2e341Smrg 7412eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7413eea2e341Smrg 7414eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7415eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74167ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 74177ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 74187ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 74197ed541caSmrgthen : 74207ed541caSmrg printf %s "(cached) " >&6 74217ed541caSmrgelse $as_nop 7422eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423eea2e341Smrg/* end confdefs.h. */ 7424eea2e341Smrgint i; 7425eea2e341Smrg_ACEOF 74267ed541caSmrgif ac_fn_c_try_compile "$LINENO" 74277ed541caSmrgthen : 7428eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 74297ed541caSmrgelse $as_nop 7430eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 7431eea2e341Smrgfi 74327ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7433eea2e341Smrgfi 74347ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 74357ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7436eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7437eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7438eea2e341Smrgfi 7439eea2e341Smrg 7440eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7441eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7442eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7443eea2e341Smrg fi 7444eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74457ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 74467ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 74477ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 74487ed541caSmrgthen : 74497ed541caSmrg printf %s "(cached) " >&6 74507ed541caSmrgelse $as_nop 7451eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7452eea2e341Smrg/* end confdefs.h. */ 7453eea2e341Smrgint i; 7454eea2e341Smrg_ACEOF 74557ed541caSmrgif ac_fn_c_try_compile "$LINENO" 74567ed541caSmrgthen : 7457eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 74587ed541caSmrgelse $as_nop 7459eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7460eea2e341Smrgfi 74617ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7462eea2e341Smrgfi 74637ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 74647ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7465eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7466eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7467eea2e341Smrgfi 7468eea2e341Smrg 7469eea2e341Smrgfound="no" 7470eea2e341Smrg 7471eea2e341Smrg if test $found = "no" ; then 747233dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7473eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7474eea2e341Smrg fi 7475eea2e341Smrg 747633dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7477eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7478eea2e341Smrg fi 7479eea2e341Smrg 7480eea2e341Smrg CFLAGS="$CFLAGS -Werror=init-self" 7481eea2e341Smrg 74827ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 74837ed541caSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; } 748433dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 74857ed541caSmrg if eval test \${$cacheid+y} 74867ed541caSmrgthen : 74877ed541caSmrg printf %s "(cached) " >&6 74887ed541caSmrgelse $as_nop 7489eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7490eea2e341Smrg/* end confdefs.h. */ 7491eea2e341Smrgint i; 7492eea2e341Smrgint 74937ed541caSmrgmain (void) 7494eea2e341Smrg{ 7495eea2e341Smrg 7496eea2e341Smrg ; 7497eea2e341Smrg return 0; 7498eea2e341Smrg} 7499eea2e341Smrg_ACEOF 75007ed541caSmrgif ac_fn_c_try_link "$LINENO" 75017ed541caSmrgthen : 7502eea2e341Smrg eval $cacheid=yes 75037ed541caSmrgelse $as_nop 7504eea2e341Smrg eval $cacheid=no 7505eea2e341Smrgfi 75067ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7507eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 7508eea2e341Smrgfi 7509eea2e341Smrg 7510eea2e341Smrg 7511eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7512eea2e341Smrg 7513eea2e341Smrg eval supported=\$$cacheid 75147ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 75157ed541caSmrgprintf "%s\n" "$supported" >&6; } 7516eea2e341Smrg if test "$supported" = "yes" ; then 7517eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7518eea2e341Smrg found="yes" 7519eea2e341Smrg fi 7520eea2e341Smrg fi 7521eea2e341Smrg 7522eea2e341Smrg 7523eea2e341Smrg 7524eea2e341Smrg 7525eea2e341Smrg 7526eea2e341Smrg 7527eea2e341Smrg 7528eea2e341Smrg 7529eea2e341Smrg 7530eea2e341Smrg 7531eea2e341Smrg 7532eea2e341Smrg 7533eea2e341Smrg 7534eea2e341Smrg 7535eea2e341Smrg 7536eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7537eea2e341Smrg 7538eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7539eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75407ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 75417ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 75427ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 75437ed541caSmrgthen : 75447ed541caSmrg printf %s "(cached) " >&6 75457ed541caSmrgelse $as_nop 7546eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7547eea2e341Smrg/* end confdefs.h. */ 7548eea2e341Smrgint i; 7549eea2e341Smrg_ACEOF 75507ed541caSmrgif ac_fn_c_try_compile "$LINENO" 75517ed541caSmrgthen : 7552eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 75537ed541caSmrgelse $as_nop 7554eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 7555eea2e341Smrgfi 75567ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7557eea2e341Smrgfi 75587ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 75597ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7560eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7561eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7562eea2e341Smrgfi 7563eea2e341Smrg 7564eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7565eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7566eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7567eea2e341Smrg fi 7568eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75697ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 75707ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 75717ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 75727ed541caSmrgthen : 75737ed541caSmrg printf %s "(cached) " >&6 75747ed541caSmrgelse $as_nop 7575eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7576eea2e341Smrg/* end confdefs.h. */ 7577eea2e341Smrgint i; 7578eea2e341Smrg_ACEOF 75797ed541caSmrgif ac_fn_c_try_compile "$LINENO" 75807ed541caSmrgthen : 7581eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 75827ed541caSmrgelse $as_nop 7583eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7584eea2e341Smrgfi 75857ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7586eea2e341Smrgfi 75877ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 75887ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7589eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7590eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7591eea2e341Smrgfi 7592eea2e341Smrg 7593eea2e341Smrgfound="no" 7594eea2e341Smrg 7595eea2e341Smrg if test $found = "no" ; then 759633dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7597eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7598eea2e341Smrg fi 7599eea2e341Smrg 760033dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7601eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7602eea2e341Smrg fi 7603eea2e341Smrg 7604eea2e341Smrg CFLAGS="$CFLAGS -Werror=main" 7605eea2e341Smrg 76067ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 76077ed541caSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; } 760833dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_main 76097ed541caSmrg if eval test \${$cacheid+y} 76107ed541caSmrgthen : 76117ed541caSmrg printf %s "(cached) " >&6 76127ed541caSmrgelse $as_nop 7613eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7614eea2e341Smrg/* end confdefs.h. */ 7615eea2e341Smrgint i; 7616eea2e341Smrgint 76177ed541caSmrgmain (void) 7618eea2e341Smrg{ 7619eea2e341Smrg 7620eea2e341Smrg ; 7621eea2e341Smrg return 0; 7622eea2e341Smrg} 7623eea2e341Smrg_ACEOF 76247ed541caSmrgif ac_fn_c_try_link "$LINENO" 76257ed541caSmrgthen : 7626eea2e341Smrg eval $cacheid=yes 76277ed541caSmrgelse $as_nop 7628eea2e341Smrg eval $cacheid=no 7629eea2e341Smrgfi 76307ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7631eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 7632eea2e341Smrgfi 7633eea2e341Smrg 7634eea2e341Smrg 7635eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7636eea2e341Smrg 7637eea2e341Smrg eval supported=\$$cacheid 76387ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 76397ed541caSmrgprintf "%s\n" "$supported" >&6; } 7640eea2e341Smrg if test "$supported" = "yes" ; then 7641eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7642eea2e341Smrg found="yes" 7643eea2e341Smrg fi 7644eea2e341Smrg fi 7645eea2e341Smrg 7646eea2e341Smrg 7647eea2e341Smrg 7648eea2e341Smrg 7649eea2e341Smrg 7650eea2e341Smrg 7651eea2e341Smrg 7652eea2e341Smrg 7653eea2e341Smrg 7654eea2e341Smrg 7655eea2e341Smrg 7656eea2e341Smrg 7657eea2e341Smrg 7658eea2e341Smrg 7659eea2e341Smrg 7660eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7661eea2e341Smrg 7662eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7663eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76647ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 76657ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 76667ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 76677ed541caSmrgthen : 76687ed541caSmrg printf %s "(cached) " >&6 76697ed541caSmrgelse $as_nop 7670eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7671eea2e341Smrg/* end confdefs.h. */ 7672eea2e341Smrgint i; 7673eea2e341Smrg_ACEOF 76747ed541caSmrgif ac_fn_c_try_compile "$LINENO" 76757ed541caSmrgthen : 7676eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 76777ed541caSmrgelse $as_nop 7678eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 7679eea2e341Smrgfi 76807ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7681eea2e341Smrgfi 76827ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 76837ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7684eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7685eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7686eea2e341Smrgfi 7687eea2e341Smrg 7688eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7689eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7690eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7691eea2e341Smrg fi 7692eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76937ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 76947ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 76957ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 76967ed541caSmrgthen : 76977ed541caSmrg printf %s "(cached) " >&6 76987ed541caSmrgelse $as_nop 7699eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700eea2e341Smrg/* end confdefs.h. */ 7701eea2e341Smrgint i; 7702eea2e341Smrg_ACEOF 77037ed541caSmrgif ac_fn_c_try_compile "$LINENO" 77047ed541caSmrgthen : 7705eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 77067ed541caSmrgelse $as_nop 7707eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7708eea2e341Smrgfi 77097ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7710eea2e341Smrgfi 77117ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 77127ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7713eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7714eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7715eea2e341Smrgfi 7716eea2e341Smrg 7717eea2e341Smrgfound="no" 7718eea2e341Smrg 7719eea2e341Smrg if test $found = "no" ; then 772033dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7721eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7722eea2e341Smrg fi 7723eea2e341Smrg 772433dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7725eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7726eea2e341Smrg fi 7727eea2e341Smrg 7728eea2e341Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 7729eea2e341Smrg 77307ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 77317ed541caSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 773233dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 77337ed541caSmrg if eval test \${$cacheid+y} 77347ed541caSmrgthen : 77357ed541caSmrg printf %s "(cached) " >&6 77367ed541caSmrgelse $as_nop 7737eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7738eea2e341Smrg/* end confdefs.h. */ 7739eea2e341Smrgint i; 7740eea2e341Smrgint 77417ed541caSmrgmain (void) 7742eea2e341Smrg{ 7743eea2e341Smrg 7744eea2e341Smrg ; 7745eea2e341Smrg return 0; 7746eea2e341Smrg} 7747eea2e341Smrg_ACEOF 77487ed541caSmrgif ac_fn_c_try_link "$LINENO" 77497ed541caSmrgthen : 7750eea2e341Smrg eval $cacheid=yes 77517ed541caSmrgelse $as_nop 7752eea2e341Smrg eval $cacheid=no 7753eea2e341Smrgfi 77547ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7755eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 7756eea2e341Smrgfi 7757eea2e341Smrg 7758eea2e341Smrg 7759eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7760eea2e341Smrg 7761eea2e341Smrg eval supported=\$$cacheid 77627ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 77637ed541caSmrgprintf "%s\n" "$supported" >&6; } 7764eea2e341Smrg if test "$supported" = "yes" ; then 7765eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7766eea2e341Smrg found="yes" 7767eea2e341Smrg fi 7768eea2e341Smrg fi 7769eea2e341Smrg 7770eea2e341Smrg 7771eea2e341Smrg 7772eea2e341Smrg 7773eea2e341Smrg 7774eea2e341Smrg 7775eea2e341Smrg 7776eea2e341Smrg 7777eea2e341Smrg 7778eea2e341Smrg 7779eea2e341Smrg 7780eea2e341Smrg 7781eea2e341Smrg 7782eea2e341Smrg 7783eea2e341Smrg 7784eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7785eea2e341Smrg 7786eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7787eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77887ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 77897ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 77907ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 77917ed541caSmrgthen : 77927ed541caSmrg printf %s "(cached) " >&6 77937ed541caSmrgelse $as_nop 7794eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7795eea2e341Smrg/* end confdefs.h. */ 7796eea2e341Smrgint i; 7797eea2e341Smrg_ACEOF 77987ed541caSmrgif ac_fn_c_try_compile "$LINENO" 77997ed541caSmrgthen : 7800eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 78017ed541caSmrgelse $as_nop 7802eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 7803eea2e341Smrgfi 78047ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7805eea2e341Smrgfi 78067ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 78077ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7808eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7809eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7810eea2e341Smrgfi 7811eea2e341Smrg 7812eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7813eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7814eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7815eea2e341Smrg fi 7816eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78177ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 78187ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 78197ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 78207ed541caSmrgthen : 78217ed541caSmrg printf %s "(cached) " >&6 78227ed541caSmrgelse $as_nop 7823eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7824eea2e341Smrg/* end confdefs.h. */ 7825eea2e341Smrgint i; 7826eea2e341Smrg_ACEOF 78277ed541caSmrgif ac_fn_c_try_compile "$LINENO" 78287ed541caSmrgthen : 7829eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 78307ed541caSmrgelse $as_nop 7831eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7832eea2e341Smrgfi 78337ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7834eea2e341Smrgfi 78357ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 78367ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7837eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7838eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7839eea2e341Smrgfi 7840eea2e341Smrg 7841eea2e341Smrgfound="no" 7842eea2e341Smrg 7843eea2e341Smrg if test $found = "no" ; then 784433dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7845eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7846eea2e341Smrg fi 7847eea2e341Smrg 784833dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7849eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7850eea2e341Smrg fi 7851eea2e341Smrg 7852eea2e341Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 7853eea2e341Smrg 78547ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 78557ed541caSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 785633dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 78577ed541caSmrg if eval test \${$cacheid+y} 78587ed541caSmrgthen : 78597ed541caSmrg printf %s "(cached) " >&6 78607ed541caSmrgelse $as_nop 7861eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7862eea2e341Smrg/* end confdefs.h. */ 7863eea2e341Smrgint i; 7864eea2e341Smrgint 78657ed541caSmrgmain (void) 7866eea2e341Smrg{ 7867eea2e341Smrg 7868eea2e341Smrg ; 7869eea2e341Smrg return 0; 7870eea2e341Smrg} 7871eea2e341Smrg_ACEOF 78727ed541caSmrgif ac_fn_c_try_link "$LINENO" 78737ed541caSmrgthen : 7874eea2e341Smrg eval $cacheid=yes 78757ed541caSmrgelse $as_nop 7876eea2e341Smrg eval $cacheid=no 7877eea2e341Smrgfi 78787ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 7879eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 7880eea2e341Smrgfi 7881eea2e341Smrg 7882eea2e341Smrg 7883eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7884eea2e341Smrg 7885eea2e341Smrg eval supported=\$$cacheid 78867ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 78877ed541caSmrgprintf "%s\n" "$supported" >&6; } 7888eea2e341Smrg if test "$supported" = "yes" ; then 7889eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7890eea2e341Smrg found="yes" 7891eea2e341Smrg fi 7892eea2e341Smrg fi 7893eea2e341Smrg 7894eea2e341Smrg 7895eea2e341Smrg 7896eea2e341Smrg 7897eea2e341Smrg 7898eea2e341Smrg 7899eea2e341Smrg 7900eea2e341Smrg 7901eea2e341Smrg 7902eea2e341Smrg 7903eea2e341Smrg 7904eea2e341Smrg 7905eea2e341Smrg 7906eea2e341Smrg 7907eea2e341Smrg 7908eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7909eea2e341Smrg 7910eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7911eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79127ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 79137ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 79147ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 79157ed541caSmrgthen : 79167ed541caSmrg printf %s "(cached) " >&6 79177ed541caSmrgelse $as_nop 7918eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7919eea2e341Smrg/* end confdefs.h. */ 7920eea2e341Smrgint i; 7921eea2e341Smrg_ACEOF 79227ed541caSmrgif ac_fn_c_try_compile "$LINENO" 79237ed541caSmrgthen : 7924eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 79257ed541caSmrgelse $as_nop 7926eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 7927eea2e341Smrgfi 79287ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7929eea2e341Smrgfi 79307ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 79317ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7932eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7933eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7934eea2e341Smrgfi 7935eea2e341Smrg 7936eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7937eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7938eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7939eea2e341Smrg fi 7940eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79417ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 79427ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 79437ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 79447ed541caSmrgthen : 79457ed541caSmrg printf %s "(cached) " >&6 79467ed541caSmrgelse $as_nop 7947eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7948eea2e341Smrg/* end confdefs.h. */ 7949eea2e341Smrgint i; 7950eea2e341Smrg_ACEOF 79517ed541caSmrgif ac_fn_c_try_compile "$LINENO" 79527ed541caSmrgthen : 7953eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 79547ed541caSmrgelse $as_nop 7955eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7956eea2e341Smrgfi 79577ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7958eea2e341Smrgfi 79597ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 79607ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7961eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7962eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7963eea2e341Smrgfi 7964eea2e341Smrg 7965eea2e341Smrgfound="no" 7966eea2e341Smrg 7967eea2e341Smrg if test $found = "no" ; then 796833dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7969eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7970eea2e341Smrg fi 7971eea2e341Smrg 797233dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7973eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7974eea2e341Smrg fi 7975eea2e341Smrg 7976eea2e341Smrg CFLAGS="$CFLAGS -Werror=return-type" 7977eea2e341Smrg 79787ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 79797ed541caSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; } 798033dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 79817ed541caSmrg if eval test \${$cacheid+y} 79827ed541caSmrgthen : 79837ed541caSmrg printf %s "(cached) " >&6 79847ed541caSmrgelse $as_nop 7985eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7986eea2e341Smrg/* end confdefs.h. */ 7987eea2e341Smrgint i; 7988eea2e341Smrgint 79897ed541caSmrgmain (void) 7990eea2e341Smrg{ 7991eea2e341Smrg 7992eea2e341Smrg ; 7993eea2e341Smrg return 0; 7994eea2e341Smrg} 7995eea2e341Smrg_ACEOF 79967ed541caSmrgif ac_fn_c_try_link "$LINENO" 79977ed541caSmrgthen : 7998eea2e341Smrg eval $cacheid=yes 79997ed541caSmrgelse $as_nop 8000eea2e341Smrg eval $cacheid=no 8001eea2e341Smrgfi 80027ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8003eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 8004eea2e341Smrgfi 8005eea2e341Smrg 8006eea2e341Smrg 8007eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8008eea2e341Smrg 8009eea2e341Smrg eval supported=\$$cacheid 80107ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 80117ed541caSmrgprintf "%s\n" "$supported" >&6; } 8012eea2e341Smrg if test "$supported" = "yes" ; then 8013eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8014eea2e341Smrg found="yes" 8015eea2e341Smrg fi 8016eea2e341Smrg fi 8017eea2e341Smrg 8018eea2e341Smrg if test $found = "no" ; then 801933dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8020eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8021eea2e341Smrg fi 8022eea2e341Smrg 802333dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8024eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8025eea2e341Smrg fi 8026eea2e341Smrg 8027eea2e341Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8028eea2e341Smrg 80297ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 80307ed541caSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 803133dddc75Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 80327ed541caSmrg if eval test \${$cacheid+y} 80337ed541caSmrgthen : 80347ed541caSmrg printf %s "(cached) " >&6 80357ed541caSmrgelse $as_nop 8036eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037eea2e341Smrg/* end confdefs.h. */ 8038eea2e341Smrgint i; 8039eea2e341Smrgint 80407ed541caSmrgmain (void) 8041eea2e341Smrg{ 8042eea2e341Smrg 8043eea2e341Smrg ; 8044eea2e341Smrg return 0; 8045eea2e341Smrg} 8046eea2e341Smrg_ACEOF 80477ed541caSmrgif ac_fn_c_try_link "$LINENO" 80487ed541caSmrgthen : 8049eea2e341Smrg eval $cacheid=yes 80507ed541caSmrgelse $as_nop 8051eea2e341Smrg eval $cacheid=no 8052eea2e341Smrgfi 80537ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8054eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 8055eea2e341Smrgfi 8056eea2e341Smrg 8057eea2e341Smrg 8058eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8059eea2e341Smrg 8060eea2e341Smrg eval supported=\$$cacheid 80617ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 80627ed541caSmrgprintf "%s\n" "$supported" >&6; } 8063eea2e341Smrg if test "$supported" = "yes" ; then 8064eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8065eea2e341Smrg found="yes" 8066eea2e341Smrg fi 8067eea2e341Smrg fi 8068eea2e341Smrg 8069eea2e341Smrg 8070eea2e341Smrg 8071eea2e341Smrg 8072eea2e341Smrg 8073eea2e341Smrg 8074eea2e341Smrg 8075eea2e341Smrg 8076eea2e341Smrg 8077eea2e341Smrg 8078eea2e341Smrg 8079eea2e341Smrg 8080eea2e341Smrg 8081eea2e341Smrg 8082eea2e341Smrg 8083eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8084eea2e341Smrg 8085eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8086eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80877ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 80887ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 80897ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 80907ed541caSmrgthen : 80917ed541caSmrg printf %s "(cached) " >&6 80927ed541caSmrgelse $as_nop 8093eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8094eea2e341Smrg/* end confdefs.h. */ 8095eea2e341Smrgint i; 8096eea2e341Smrg_ACEOF 80977ed541caSmrgif ac_fn_c_try_compile "$LINENO" 80987ed541caSmrgthen : 8099eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 81007ed541caSmrgelse $as_nop 8101eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 8102eea2e341Smrgfi 81037ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8104eea2e341Smrgfi 81057ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 81067ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8107eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8108eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8109eea2e341Smrgfi 8110eea2e341Smrg 8111eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8112eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8113eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8114eea2e341Smrg fi 8115eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81167ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 81177ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 81187ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 81197ed541caSmrgthen : 81207ed541caSmrg printf %s "(cached) " >&6 81217ed541caSmrgelse $as_nop 8122eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8123eea2e341Smrg/* end confdefs.h. */ 8124eea2e341Smrgint i; 8125eea2e341Smrg_ACEOF 81267ed541caSmrgif ac_fn_c_try_compile "$LINENO" 81277ed541caSmrgthen : 8128eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 81297ed541caSmrgelse $as_nop 8130eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8131eea2e341Smrgfi 81327ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8133eea2e341Smrgfi 81347ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 81357ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8136eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8137eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8138eea2e341Smrgfi 8139eea2e341Smrg 8140eea2e341Smrgfound="no" 8141eea2e341Smrg 8142eea2e341Smrg if test $found = "no" ; then 814333dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8144eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8145eea2e341Smrg fi 8146eea2e341Smrg 814733dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8148eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8149eea2e341Smrg fi 8150eea2e341Smrg 8151eea2e341Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 8152eea2e341Smrg 81537ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 81547ed541caSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 815533dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 81567ed541caSmrg if eval test \${$cacheid+y} 81577ed541caSmrgthen : 81587ed541caSmrg printf %s "(cached) " >&6 81597ed541caSmrgelse $as_nop 8160eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161eea2e341Smrg/* end confdefs.h. */ 8162eea2e341Smrgint i; 8163eea2e341Smrgint 81647ed541caSmrgmain (void) 8165eea2e341Smrg{ 8166eea2e341Smrg 8167eea2e341Smrg ; 8168eea2e341Smrg return 0; 8169eea2e341Smrg} 8170eea2e341Smrg_ACEOF 81717ed541caSmrgif ac_fn_c_try_link "$LINENO" 81727ed541caSmrgthen : 8173eea2e341Smrg eval $cacheid=yes 81747ed541caSmrgelse $as_nop 8175eea2e341Smrg eval $cacheid=no 8176eea2e341Smrgfi 81777ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8178eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 8179eea2e341Smrgfi 8180eea2e341Smrg 8181eea2e341Smrg 8182eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8183eea2e341Smrg 8184eea2e341Smrg eval supported=\$$cacheid 81857ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 81867ed541caSmrgprintf "%s\n" "$supported" >&6; } 8187eea2e341Smrg if test "$supported" = "yes" ; then 8188eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8189eea2e341Smrg found="yes" 8190eea2e341Smrg fi 8191eea2e341Smrg fi 8192eea2e341Smrg 8193eea2e341Smrg 8194eea2e341Smrg 8195eea2e341Smrg 8196eea2e341Smrg 8197eea2e341Smrg 8198eea2e341Smrg 8199eea2e341Smrg 8200eea2e341Smrg 8201eea2e341Smrg 8202eea2e341Smrg 8203eea2e341Smrg 8204eea2e341Smrg 8205eea2e341Smrg 8206eea2e341Smrg 8207eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8208eea2e341Smrg 8209eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8210eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82117ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 82127ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 82137ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 82147ed541caSmrgthen : 82157ed541caSmrg printf %s "(cached) " >&6 82167ed541caSmrgelse $as_nop 8217eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8218eea2e341Smrg/* end confdefs.h. */ 8219eea2e341Smrgint i; 8220eea2e341Smrg_ACEOF 82217ed541caSmrgif ac_fn_c_try_compile "$LINENO" 82227ed541caSmrgthen : 8223eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 82247ed541caSmrgelse $as_nop 8225eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 8226eea2e341Smrgfi 82277ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8228eea2e341Smrgfi 82297ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 82307ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8231eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8232eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8233eea2e341Smrgfi 8234eea2e341Smrg 8235eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8236eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8237eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8238eea2e341Smrg fi 8239eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82407ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 82417ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 82427ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 82437ed541caSmrgthen : 82447ed541caSmrg printf %s "(cached) " >&6 82457ed541caSmrgelse $as_nop 8246eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8247eea2e341Smrg/* end confdefs.h. */ 8248eea2e341Smrgint i; 8249eea2e341Smrg_ACEOF 82507ed541caSmrgif ac_fn_c_try_compile "$LINENO" 82517ed541caSmrgthen : 8252eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 82537ed541caSmrgelse $as_nop 8254eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8255eea2e341Smrgfi 82567ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8257eea2e341Smrgfi 82587ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 82597ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8260eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8261eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8262eea2e341Smrgfi 8263eea2e341Smrg 8264eea2e341Smrgfound="no" 8265eea2e341Smrg 8266eea2e341Smrg if test $found = "no" ; then 826733dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8268eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8269eea2e341Smrg fi 8270eea2e341Smrg 827133dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8272eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8273eea2e341Smrg fi 8274eea2e341Smrg 8275eea2e341Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 8276eea2e341Smrg 82777ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 82787ed541caSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 827933dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 82807ed541caSmrg if eval test \${$cacheid+y} 82817ed541caSmrgthen : 82827ed541caSmrg printf %s "(cached) " >&6 82837ed541caSmrgelse $as_nop 8284eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285eea2e341Smrg/* end confdefs.h. */ 8286eea2e341Smrgint i; 8287eea2e341Smrgint 82887ed541caSmrgmain (void) 8289eea2e341Smrg{ 8290eea2e341Smrg 8291eea2e341Smrg ; 8292eea2e341Smrg return 0; 8293eea2e341Smrg} 8294eea2e341Smrg_ACEOF 82957ed541caSmrgif ac_fn_c_try_link "$LINENO" 82967ed541caSmrgthen : 8297eea2e341Smrg eval $cacheid=yes 82987ed541caSmrgelse $as_nop 8299eea2e341Smrg eval $cacheid=no 8300eea2e341Smrgfi 83017ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8302eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 8303eea2e341Smrgfi 8304eea2e341Smrg 8305eea2e341Smrg 8306eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8307eea2e341Smrg 8308eea2e341Smrg eval supported=\$$cacheid 83097ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 83107ed541caSmrgprintf "%s\n" "$supported" >&6; } 8311eea2e341Smrg if test "$supported" = "yes" ; then 8312eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8313eea2e341Smrg found="yes" 8314eea2e341Smrg fi 8315eea2e341Smrg fi 8316eea2e341Smrg 8317eea2e341Smrg 8318eea2e341Smrg 8319eea2e341Smrg 8320eea2e341Smrg 8321eea2e341Smrg 8322eea2e341Smrg 8323eea2e341Smrg 8324eea2e341Smrg 8325eea2e341Smrg 8326eea2e341Smrg 8327eea2e341Smrg 8328eea2e341Smrg 8329eea2e341Smrg 8330eea2e341Smrg 8331eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8332eea2e341Smrg 8333eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8334eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83357ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 83367ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 83377ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 83387ed541caSmrgthen : 83397ed541caSmrg printf %s "(cached) " >&6 83407ed541caSmrgelse $as_nop 8341eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8342eea2e341Smrg/* end confdefs.h. */ 8343eea2e341Smrgint i; 8344eea2e341Smrg_ACEOF 83457ed541caSmrgif ac_fn_c_try_compile "$LINENO" 83467ed541caSmrgthen : 8347eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 83487ed541caSmrgelse $as_nop 8349eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 8350eea2e341Smrgfi 83517ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8352eea2e341Smrgfi 83537ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 83547ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8355eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8356eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8357eea2e341Smrgfi 8358eea2e341Smrg 8359eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8360eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8361eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8362eea2e341Smrg fi 8363eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83647ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 83657ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 83667ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 83677ed541caSmrgthen : 83687ed541caSmrg printf %s "(cached) " >&6 83697ed541caSmrgelse $as_nop 8370eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371eea2e341Smrg/* end confdefs.h. */ 8372eea2e341Smrgint i; 8373eea2e341Smrg_ACEOF 83747ed541caSmrgif ac_fn_c_try_compile "$LINENO" 83757ed541caSmrgthen : 8376eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 83777ed541caSmrgelse $as_nop 8378eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8379eea2e341Smrgfi 83807ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8381eea2e341Smrgfi 83827ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 83837ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8384eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8385eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8386eea2e341Smrgfi 8387eea2e341Smrg 8388eea2e341Smrgfound="no" 8389eea2e341Smrg 8390eea2e341Smrg if test $found = "no" ; then 839133dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8392eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8393eea2e341Smrg fi 8394eea2e341Smrg 839533dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8396eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8397eea2e341Smrg fi 8398eea2e341Smrg 8399eea2e341Smrg CFLAGS="$CFLAGS -Werror=write-strings" 8400eea2e341Smrg 84017ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 84027ed541caSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; } 840333dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 84047ed541caSmrg if eval test \${$cacheid+y} 84057ed541caSmrgthen : 84067ed541caSmrg printf %s "(cached) " >&6 84077ed541caSmrgelse $as_nop 8408eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8409eea2e341Smrg/* end confdefs.h. */ 8410eea2e341Smrgint i; 8411eea2e341Smrgint 84127ed541caSmrgmain (void) 8413eea2e341Smrg{ 8414eea2e341Smrg 8415eea2e341Smrg ; 8416eea2e341Smrg return 0; 8417eea2e341Smrg} 8418eea2e341Smrg_ACEOF 84197ed541caSmrgif ac_fn_c_try_link "$LINENO" 84207ed541caSmrgthen : 8421eea2e341Smrg eval $cacheid=yes 84227ed541caSmrgelse $as_nop 8423eea2e341Smrg eval $cacheid=no 8424eea2e341Smrgfi 84257ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8426eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 8427eea2e341Smrgfi 8428eea2e341Smrg 8429eea2e341Smrg 8430eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8431eea2e341Smrg 8432eea2e341Smrg eval supported=\$$cacheid 84337ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 84347ed541caSmrgprintf "%s\n" "$supported" >&6; } 8435eea2e341Smrg if test "$supported" = "yes" ; then 8436eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8437eea2e341Smrg found="yes" 8438eea2e341Smrg fi 8439eea2e341Smrg fi 8440eea2e341Smrg 8441eea2e341Smrg 8442eea2e341Smrg 8443eea2e341Smrg 8444eea2e341Smrg 8445eea2e341Smrg 8446eea2e341Smrg 8447eea2e341Smrg 8448eea2e341Smrg 8449eea2e341Smrg 8450eea2e341Smrg 8451eea2e341Smrg 8452eea2e341Smrg 8453eea2e341Smrg 8454eea2e341Smrg 8455eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8456eea2e341Smrg 8457eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8458eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84597ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 84607ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 84617ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 84627ed541caSmrgthen : 84637ed541caSmrg printf %s "(cached) " >&6 84647ed541caSmrgelse $as_nop 8465eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8466eea2e341Smrg/* end confdefs.h. */ 8467eea2e341Smrgint i; 8468eea2e341Smrg_ACEOF 84697ed541caSmrgif ac_fn_c_try_compile "$LINENO" 84707ed541caSmrgthen : 8471eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 84727ed541caSmrgelse $as_nop 8473eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 8474eea2e341Smrgfi 84757ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8476eea2e341Smrgfi 84777ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 84787ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8479eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8480eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8481eea2e341Smrgfi 8482eea2e341Smrg 8483eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8484eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8485eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8486eea2e341Smrg fi 8487eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84887ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 84897ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 84907ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 84917ed541caSmrgthen : 84927ed541caSmrg printf %s "(cached) " >&6 84937ed541caSmrgelse $as_nop 8494eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8495eea2e341Smrg/* end confdefs.h. */ 8496eea2e341Smrgint i; 8497eea2e341Smrg_ACEOF 84987ed541caSmrgif ac_fn_c_try_compile "$LINENO" 84997ed541caSmrgthen : 8500eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 85017ed541caSmrgelse $as_nop 8502eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8503eea2e341Smrgfi 85047ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8505eea2e341Smrgfi 85067ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 85077ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8508eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8509eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8510eea2e341Smrgfi 8511eea2e341Smrg 8512eea2e341Smrgfound="no" 8513eea2e341Smrg 8514eea2e341Smrg if test $found = "no" ; then 851533dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8516eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8517eea2e341Smrg fi 8518eea2e341Smrg 851933dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8520eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8521eea2e341Smrg fi 8522eea2e341Smrg 8523eea2e341Smrg CFLAGS="$CFLAGS -Werror=address" 8524eea2e341Smrg 85257ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 85267ed541caSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; } 852733dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_address 85287ed541caSmrg if eval test \${$cacheid+y} 85297ed541caSmrgthen : 85307ed541caSmrg printf %s "(cached) " >&6 85317ed541caSmrgelse $as_nop 8532eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8533eea2e341Smrg/* end confdefs.h. */ 8534eea2e341Smrgint i; 8535eea2e341Smrgint 85367ed541caSmrgmain (void) 8537eea2e341Smrg{ 8538eea2e341Smrg 8539eea2e341Smrg ; 8540eea2e341Smrg return 0; 8541eea2e341Smrg} 8542eea2e341Smrg_ACEOF 85437ed541caSmrgif ac_fn_c_try_link "$LINENO" 85447ed541caSmrgthen : 8545eea2e341Smrg eval $cacheid=yes 85467ed541caSmrgelse $as_nop 8547eea2e341Smrg eval $cacheid=no 8548eea2e341Smrgfi 85497ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8550eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 8551eea2e341Smrgfi 8552eea2e341Smrg 8553eea2e341Smrg 8554eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8555eea2e341Smrg 8556eea2e341Smrg eval supported=\$$cacheid 85577ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 85587ed541caSmrgprintf "%s\n" "$supported" >&6; } 8559eea2e341Smrg if test "$supported" = "yes" ; then 8560eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8561eea2e341Smrg found="yes" 8562eea2e341Smrg fi 8563eea2e341Smrg fi 8564eea2e341Smrg 8565eea2e341Smrg 8566eea2e341Smrg 8567eea2e341Smrg 8568eea2e341Smrg 8569eea2e341Smrg 8570eea2e341Smrg 8571eea2e341Smrg 8572eea2e341Smrg 8573eea2e341Smrg 8574eea2e341Smrg 8575eea2e341Smrg 8576eea2e341Smrg 8577eea2e341Smrg 8578eea2e341Smrg 8579eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8580eea2e341Smrg 8581eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8582eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85837ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 85847ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 85857ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 85867ed541caSmrgthen : 85877ed541caSmrg printf %s "(cached) " >&6 85887ed541caSmrgelse $as_nop 8589eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8590eea2e341Smrg/* end confdefs.h. */ 8591eea2e341Smrgint i; 8592eea2e341Smrg_ACEOF 85937ed541caSmrgif ac_fn_c_try_compile "$LINENO" 85947ed541caSmrgthen : 8595eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 85967ed541caSmrgelse $as_nop 8597eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 8598eea2e341Smrgfi 85997ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8600eea2e341Smrgfi 86017ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 86027ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8603eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8604eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8605eea2e341Smrgfi 8606eea2e341Smrg 8607eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8608eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8609eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8610eea2e341Smrg fi 8611eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86127ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 86137ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 86147ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 86157ed541caSmrgthen : 86167ed541caSmrg printf %s "(cached) " >&6 86177ed541caSmrgelse $as_nop 8618eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8619eea2e341Smrg/* end confdefs.h. */ 8620eea2e341Smrgint i; 8621eea2e341Smrg_ACEOF 86227ed541caSmrgif ac_fn_c_try_compile "$LINENO" 86237ed541caSmrgthen : 8624eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 86257ed541caSmrgelse $as_nop 8626eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8627eea2e341Smrgfi 86287ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8629eea2e341Smrgfi 86307ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 86317ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8632eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8633eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8634eea2e341Smrgfi 8635eea2e341Smrg 8636eea2e341Smrgfound="no" 8637eea2e341Smrg 8638eea2e341Smrg if test $found = "no" ; then 863933dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8640eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8641eea2e341Smrg fi 8642eea2e341Smrg 864333dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8644eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8645eea2e341Smrg fi 8646eea2e341Smrg 8647eea2e341Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8648eea2e341Smrg 86497ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 86507ed541caSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 865133dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 86527ed541caSmrg if eval test \${$cacheid+y} 86537ed541caSmrgthen : 86547ed541caSmrg printf %s "(cached) " >&6 86557ed541caSmrgelse $as_nop 8656eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8657eea2e341Smrg/* end confdefs.h. */ 8658eea2e341Smrgint i; 8659eea2e341Smrgint 86607ed541caSmrgmain (void) 8661eea2e341Smrg{ 8662eea2e341Smrg 8663eea2e341Smrg ; 8664eea2e341Smrg return 0; 8665eea2e341Smrg} 8666eea2e341Smrg_ACEOF 86677ed541caSmrgif ac_fn_c_try_link "$LINENO" 86687ed541caSmrgthen : 8669eea2e341Smrg eval $cacheid=yes 86707ed541caSmrgelse $as_nop 8671eea2e341Smrg eval $cacheid=no 8672eea2e341Smrgfi 86737ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8674eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 8675eea2e341Smrgfi 8676eea2e341Smrg 8677eea2e341Smrg 8678eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8679eea2e341Smrg 8680eea2e341Smrg eval supported=\$$cacheid 86817ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 86827ed541caSmrgprintf "%s\n" "$supported" >&6; } 8683eea2e341Smrg if test "$supported" = "yes" ; then 8684eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8685eea2e341Smrg found="yes" 8686eea2e341Smrg fi 8687eea2e341Smrg fi 8688eea2e341Smrg 8689eea2e341Smrg if test $found = "no" ; then 869033dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8691eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8692eea2e341Smrg fi 8693eea2e341Smrg 869433dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8695eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8696eea2e341Smrg fi 8697eea2e341Smrg 8698eea2e341Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8699eea2e341Smrg 87007ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 87017ed541caSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 870233dddc75Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 87037ed541caSmrg if eval test \${$cacheid+y} 87047ed541caSmrgthen : 87057ed541caSmrg printf %s "(cached) " >&6 87067ed541caSmrgelse $as_nop 8707eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708eea2e341Smrg/* end confdefs.h. */ 8709eea2e341Smrgint i; 8710eea2e341Smrgint 87117ed541caSmrgmain (void) 8712eea2e341Smrg{ 8713eea2e341Smrg 8714eea2e341Smrg ; 8715eea2e341Smrg return 0; 8716eea2e341Smrg} 8717eea2e341Smrg_ACEOF 87187ed541caSmrgif ac_fn_c_try_link "$LINENO" 87197ed541caSmrgthen : 8720eea2e341Smrg eval $cacheid=yes 87217ed541caSmrgelse $as_nop 8722eea2e341Smrg eval $cacheid=no 8723eea2e341Smrgfi 87247ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8725eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 8726eea2e341Smrgfi 8727eea2e341Smrg 8728eea2e341Smrg 8729eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8730eea2e341Smrg 8731eea2e341Smrg eval supported=\$$cacheid 87327ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 87337ed541caSmrgprintf "%s\n" "$supported" >&6; } 8734eea2e341Smrg if test "$supported" = "yes" ; then 8735eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8736eea2e341Smrg found="yes" 8737eea2e341Smrg fi 8738eea2e341Smrg fi 8739eea2e341Smrg 8740eea2e341Smrg 8741eea2e341Smrg 8742eea2e341Smrg 8743eea2e341Smrg 8744eea2e341Smrg 8745eea2e341Smrg 8746eea2e341Smrg 8747eea2e341Smrg 8748eea2e341Smrg 8749eea2e341Smrg 8750eea2e341Smrg 8751eea2e341Smrg 8752eea2e341Smrg 8753eea2e341Smrg 8754eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8755eea2e341Smrg 8756eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8757eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87587ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 87597ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 87607ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 87617ed541caSmrgthen : 87627ed541caSmrg printf %s "(cached) " >&6 87637ed541caSmrgelse $as_nop 8764eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8765eea2e341Smrg/* end confdefs.h. */ 8766eea2e341Smrgint i; 8767eea2e341Smrg_ACEOF 87687ed541caSmrgif ac_fn_c_try_compile "$LINENO" 87697ed541caSmrgthen : 8770eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 87717ed541caSmrgelse $as_nop 8772eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 8773eea2e341Smrgfi 87747ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8775eea2e341Smrgfi 87767ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 87777ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8778eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8779eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8780eea2e341Smrgfi 8781eea2e341Smrg 8782eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8783eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8784eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8785eea2e341Smrg fi 8786eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87877ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 87887ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 87897ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 87907ed541caSmrgthen : 87917ed541caSmrg printf %s "(cached) " >&6 87927ed541caSmrgelse $as_nop 8793eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8794eea2e341Smrg/* end confdefs.h. */ 8795eea2e341Smrgint i; 8796eea2e341Smrg_ACEOF 87977ed541caSmrgif ac_fn_c_try_compile "$LINENO" 87987ed541caSmrgthen : 8799eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 88007ed541caSmrgelse $as_nop 8801eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8802eea2e341Smrgfi 88037ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8804eea2e341Smrgfi 88057ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 88067ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8807eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8808eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8809eea2e341Smrgfi 8810eea2e341Smrg 8811eea2e341Smrgfound="no" 8812eea2e341Smrg 8813eea2e341Smrg if test $found = "no" ; then 881433dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8815eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8816eea2e341Smrg fi 8817eea2e341Smrg 881833dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8819eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8820eea2e341Smrg fi 8821eea2e341Smrg 8822eea2e341Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8823eea2e341Smrg 88247ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 88257ed541caSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 882633dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 88277ed541caSmrg if eval test \${$cacheid+y} 88287ed541caSmrgthen : 88297ed541caSmrg printf %s "(cached) " >&6 88307ed541caSmrgelse $as_nop 8831eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8832eea2e341Smrg/* end confdefs.h. */ 8833eea2e341Smrgint i; 8834eea2e341Smrgint 88357ed541caSmrgmain (void) 8836eea2e341Smrg{ 8837eea2e341Smrg 8838eea2e341Smrg ; 8839eea2e341Smrg return 0; 8840eea2e341Smrg} 8841eea2e341Smrg_ACEOF 88427ed541caSmrgif ac_fn_c_try_link "$LINENO" 88437ed541caSmrgthen : 8844eea2e341Smrg eval $cacheid=yes 88457ed541caSmrgelse $as_nop 8846eea2e341Smrg eval $cacheid=no 8847eea2e341Smrgfi 88487ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8849eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 8850eea2e341Smrgfi 8851eea2e341Smrg 8852eea2e341Smrg 8853eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8854eea2e341Smrg 8855eea2e341Smrg eval supported=\$$cacheid 88567ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88577ed541caSmrgprintf "%s\n" "$supported" >&6; } 8858eea2e341Smrg if test "$supported" = "yes" ; then 8859eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8860eea2e341Smrg found="yes" 8861eea2e341Smrg fi 8862eea2e341Smrg fi 8863eea2e341Smrg 8864eea2e341Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8865eea2e341Smrgelse 88667ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 88677ed541caSmrgprintf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 8868eea2e341Smrg 8869eea2e341Smrg 8870eea2e341Smrg 8871eea2e341Smrg 8872eea2e341Smrg 8873eea2e341Smrg 8874eea2e341Smrg 8875eea2e341Smrg 8876eea2e341Smrg 8877eea2e341Smrg 8878eea2e341Smrg 8879eea2e341Smrg 8880eea2e341Smrg 8881eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8882eea2e341Smrg 8883eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8884eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88857ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 88867ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 88877ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 88887ed541caSmrgthen : 88897ed541caSmrg printf %s "(cached) " >&6 88907ed541caSmrgelse $as_nop 8891eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8892eea2e341Smrg/* end confdefs.h. */ 8893eea2e341Smrgint i; 8894eea2e341Smrg_ACEOF 88957ed541caSmrgif ac_fn_c_try_compile "$LINENO" 88967ed541caSmrgthen : 8897eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 88987ed541caSmrgelse $as_nop 8899eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 8900eea2e341Smrgfi 89017ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8902eea2e341Smrgfi 89037ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 89047ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8905eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8906eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8907eea2e341Smrgfi 8908eea2e341Smrg 8909eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8910eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8911eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8912eea2e341Smrg fi 8913eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89147ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 89157ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 89167ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 89177ed541caSmrgthen : 89187ed541caSmrg printf %s "(cached) " >&6 89197ed541caSmrgelse $as_nop 8920eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8921eea2e341Smrg/* end confdefs.h. */ 8922eea2e341Smrgint i; 8923eea2e341Smrg_ACEOF 89247ed541caSmrgif ac_fn_c_try_compile "$LINENO" 89257ed541caSmrgthen : 8926eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 89277ed541caSmrgelse $as_nop 8928eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8929eea2e341Smrgfi 89307ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8931eea2e341Smrgfi 89327ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 89337ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8934eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8935eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8936eea2e341Smrgfi 8937eea2e341Smrg 8938eea2e341Smrgfound="no" 8939eea2e341Smrg 8940eea2e341Smrg if test $found = "no" ; then 894133dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8942eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8943eea2e341Smrg fi 8944eea2e341Smrg 894533dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8946eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8947eea2e341Smrg fi 8948eea2e341Smrg 8949eea2e341Smrg CFLAGS="$CFLAGS -Wimplicit" 8950eea2e341Smrg 89517ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 89527ed541caSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; } 8953eea2e341Smrg cacheid=xorg_cv_cc_flag__Wimplicit 89547ed541caSmrg if eval test \${$cacheid+y} 89557ed541caSmrgthen : 89567ed541caSmrg printf %s "(cached) " >&6 89577ed541caSmrgelse $as_nop 8958eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8959eea2e341Smrg/* end confdefs.h. */ 8960eea2e341Smrgint i; 8961eea2e341Smrgint 89627ed541caSmrgmain (void) 8963eea2e341Smrg{ 8964eea2e341Smrg 8965eea2e341Smrg ; 8966eea2e341Smrg return 0; 8967eea2e341Smrg} 8968eea2e341Smrg_ACEOF 89697ed541caSmrgif ac_fn_c_try_link "$LINENO" 89707ed541caSmrgthen : 8971eea2e341Smrg eval $cacheid=yes 89727ed541caSmrgelse $as_nop 8973eea2e341Smrg eval $cacheid=no 8974eea2e341Smrgfi 89757ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 8976eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 8977eea2e341Smrgfi 8978eea2e341Smrg 8979eea2e341Smrg 8980eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8981eea2e341Smrg 8982eea2e341Smrg eval supported=\$$cacheid 89837ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 89847ed541caSmrgprintf "%s\n" "$supported" >&6; } 8985eea2e341Smrg if test "$supported" = "yes" ; then 8986eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8987eea2e341Smrg found="yes" 8988eea2e341Smrg fi 8989eea2e341Smrg fi 8990eea2e341Smrg 8991eea2e341Smrg 8992eea2e341Smrg 8993eea2e341Smrg 8994eea2e341Smrg 8995eea2e341Smrg 8996eea2e341Smrg 8997eea2e341Smrg 8998eea2e341Smrg 8999eea2e341Smrg 9000eea2e341Smrg 9001eea2e341Smrg 9002eea2e341Smrg 9003eea2e341Smrg 9004eea2e341Smrg 9005eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9006eea2e341Smrg 9007eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9008eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90097ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 90107ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 90117ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 90127ed541caSmrgthen : 90137ed541caSmrg printf %s "(cached) " >&6 90147ed541caSmrgelse $as_nop 9015eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9016eea2e341Smrg/* end confdefs.h. */ 9017eea2e341Smrgint i; 9018eea2e341Smrg_ACEOF 90197ed541caSmrgif ac_fn_c_try_compile "$LINENO" 90207ed541caSmrgthen : 9021eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 90227ed541caSmrgelse $as_nop 9023eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 9024eea2e341Smrgfi 90257ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9026eea2e341Smrgfi 90277ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 90287ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9029eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9030eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9031eea2e341Smrgfi 9032eea2e341Smrg 9033eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9034eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9035eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9036eea2e341Smrg fi 9037eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90387ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 90397ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 90407ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 90417ed541caSmrgthen : 90427ed541caSmrg printf %s "(cached) " >&6 90437ed541caSmrgelse $as_nop 9044eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9045eea2e341Smrg/* end confdefs.h. */ 9046eea2e341Smrgint i; 9047eea2e341Smrg_ACEOF 90487ed541caSmrgif ac_fn_c_try_compile "$LINENO" 90497ed541caSmrgthen : 9050eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 90517ed541caSmrgelse $as_nop 9052eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9053eea2e341Smrgfi 90547ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9055eea2e341Smrgfi 90567ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 90577ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9058eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9059eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9060eea2e341Smrgfi 9061eea2e341Smrg 9062eea2e341Smrgfound="no" 9063eea2e341Smrg 9064eea2e341Smrg if test $found = "no" ; then 906533dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9066eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9067eea2e341Smrg fi 9068eea2e341Smrg 906933dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9070eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9071eea2e341Smrg fi 9072eea2e341Smrg 9073eea2e341Smrg CFLAGS="$CFLAGS -Wnonnull" 9074eea2e341Smrg 90757ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 90767ed541caSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; } 9077eea2e341Smrg cacheid=xorg_cv_cc_flag__Wnonnull 90787ed541caSmrg if eval test \${$cacheid+y} 90797ed541caSmrgthen : 90807ed541caSmrg printf %s "(cached) " >&6 90817ed541caSmrgelse $as_nop 9082eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9083eea2e341Smrg/* end confdefs.h. */ 9084eea2e341Smrgint i; 9085eea2e341Smrgint 90867ed541caSmrgmain (void) 9087eea2e341Smrg{ 9088eea2e341Smrg 9089eea2e341Smrg ; 9090eea2e341Smrg return 0; 9091eea2e341Smrg} 9092eea2e341Smrg_ACEOF 90937ed541caSmrgif ac_fn_c_try_link "$LINENO" 90947ed541caSmrgthen : 9095eea2e341Smrg eval $cacheid=yes 90967ed541caSmrgelse $as_nop 9097eea2e341Smrg eval $cacheid=no 9098eea2e341Smrgfi 90997ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9100eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 9101eea2e341Smrgfi 9102eea2e341Smrg 9103eea2e341Smrg 9104eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9105eea2e341Smrg 9106eea2e341Smrg eval supported=\$$cacheid 91077ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 91087ed541caSmrgprintf "%s\n" "$supported" >&6; } 9109eea2e341Smrg if test "$supported" = "yes" ; then 9110eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9111eea2e341Smrg found="yes" 9112eea2e341Smrg fi 9113eea2e341Smrg fi 9114eea2e341Smrg 9115eea2e341Smrg 9116eea2e341Smrg 9117eea2e341Smrg 9118eea2e341Smrg 9119eea2e341Smrg 9120eea2e341Smrg 9121eea2e341Smrg 9122eea2e341Smrg 9123eea2e341Smrg 9124eea2e341Smrg 9125eea2e341Smrg 9126eea2e341Smrg 9127eea2e341Smrg 9128eea2e341Smrg 9129eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9130eea2e341Smrg 9131eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9132eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91337ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 91347ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 91357ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 91367ed541caSmrgthen : 91377ed541caSmrg printf %s "(cached) " >&6 91387ed541caSmrgelse $as_nop 9139eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9140eea2e341Smrg/* end confdefs.h. */ 9141eea2e341Smrgint i; 9142eea2e341Smrg_ACEOF 91437ed541caSmrgif ac_fn_c_try_compile "$LINENO" 91447ed541caSmrgthen : 9145eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 91467ed541caSmrgelse $as_nop 9147eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 9148eea2e341Smrgfi 91497ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9150eea2e341Smrgfi 91517ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 91527ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9153eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9154eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9155eea2e341Smrgfi 9156eea2e341Smrg 9157eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9158eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9159eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9160eea2e341Smrg fi 9161eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91627ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 91637ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 91647ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 91657ed541caSmrgthen : 91667ed541caSmrg printf %s "(cached) " >&6 91677ed541caSmrgelse $as_nop 9168eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9169eea2e341Smrg/* end confdefs.h. */ 9170eea2e341Smrgint i; 9171eea2e341Smrg_ACEOF 91727ed541caSmrgif ac_fn_c_try_compile "$LINENO" 91737ed541caSmrgthen : 9174eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 91757ed541caSmrgelse $as_nop 9176eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9177eea2e341Smrgfi 91787ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9179eea2e341Smrgfi 91807ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 91817ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9182eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9183eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9184eea2e341Smrgfi 9185eea2e341Smrg 9186eea2e341Smrgfound="no" 9187eea2e341Smrg 9188eea2e341Smrg if test $found = "no" ; then 918933dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9190eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9191eea2e341Smrg fi 9192eea2e341Smrg 919333dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9194eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9195eea2e341Smrg fi 9196eea2e341Smrg 9197eea2e341Smrg CFLAGS="$CFLAGS -Winit-self" 9198eea2e341Smrg 91997ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 92007ed541caSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; } 9201eea2e341Smrg cacheid=xorg_cv_cc_flag__Winit_self 92027ed541caSmrg if eval test \${$cacheid+y} 92037ed541caSmrgthen : 92047ed541caSmrg printf %s "(cached) " >&6 92057ed541caSmrgelse $as_nop 9206eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9207eea2e341Smrg/* end confdefs.h. */ 9208eea2e341Smrgint i; 9209eea2e341Smrgint 92107ed541caSmrgmain (void) 9211eea2e341Smrg{ 9212eea2e341Smrg 9213eea2e341Smrg ; 9214eea2e341Smrg return 0; 9215eea2e341Smrg} 9216eea2e341Smrg_ACEOF 92177ed541caSmrgif ac_fn_c_try_link "$LINENO" 92187ed541caSmrgthen : 9219eea2e341Smrg eval $cacheid=yes 92207ed541caSmrgelse $as_nop 9221eea2e341Smrg eval $cacheid=no 9222eea2e341Smrgfi 92237ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9224eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 9225eea2e341Smrgfi 9226eea2e341Smrg 9227eea2e341Smrg 9228eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9229eea2e341Smrg 9230eea2e341Smrg eval supported=\$$cacheid 92317ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 92327ed541caSmrgprintf "%s\n" "$supported" >&6; } 9233eea2e341Smrg if test "$supported" = "yes" ; then 9234eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9235eea2e341Smrg found="yes" 9236eea2e341Smrg fi 9237eea2e341Smrg fi 9238eea2e341Smrg 9239eea2e341Smrg 9240eea2e341Smrg 9241eea2e341Smrg 9242eea2e341Smrg 9243eea2e341Smrg 9244eea2e341Smrg 9245eea2e341Smrg 9246eea2e341Smrg 9247eea2e341Smrg 9248eea2e341Smrg 9249eea2e341Smrg 9250eea2e341Smrg 9251eea2e341Smrg 9252eea2e341Smrg 9253eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9254eea2e341Smrg 9255eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9256eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92577ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 92587ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 92597ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 92607ed541caSmrgthen : 92617ed541caSmrg printf %s "(cached) " >&6 92627ed541caSmrgelse $as_nop 9263eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9264eea2e341Smrg/* end confdefs.h. */ 9265eea2e341Smrgint i; 9266eea2e341Smrg_ACEOF 92677ed541caSmrgif ac_fn_c_try_compile "$LINENO" 92687ed541caSmrgthen : 9269eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 92707ed541caSmrgelse $as_nop 9271eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 9272eea2e341Smrgfi 92737ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9274eea2e341Smrgfi 92757ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 92767ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9277eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9278eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9279eea2e341Smrgfi 9280eea2e341Smrg 9281eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9282eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9283eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9284eea2e341Smrg fi 9285eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92867ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 92877ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 92887ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 92897ed541caSmrgthen : 92907ed541caSmrg printf %s "(cached) " >&6 92917ed541caSmrgelse $as_nop 9292eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9293eea2e341Smrg/* end confdefs.h. */ 9294eea2e341Smrgint i; 9295eea2e341Smrg_ACEOF 92967ed541caSmrgif ac_fn_c_try_compile "$LINENO" 92977ed541caSmrgthen : 9298eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 92997ed541caSmrgelse $as_nop 9300eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9301eea2e341Smrgfi 93027ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9303eea2e341Smrgfi 93047ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 93057ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9306eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9307eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9308eea2e341Smrgfi 9309eea2e341Smrg 9310eea2e341Smrgfound="no" 9311eea2e341Smrg 9312eea2e341Smrg if test $found = "no" ; then 931333dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9314eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9315eea2e341Smrg fi 9316eea2e341Smrg 931733dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9318eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9319eea2e341Smrg fi 9320eea2e341Smrg 9321eea2e341Smrg CFLAGS="$CFLAGS -Wmain" 9322eea2e341Smrg 93237ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 93247ed541caSmrgprintf %s "checking if $CC supports -Wmain... " >&6; } 9325eea2e341Smrg cacheid=xorg_cv_cc_flag__Wmain 93267ed541caSmrg if eval test \${$cacheid+y} 93277ed541caSmrgthen : 93287ed541caSmrg printf %s "(cached) " >&6 93297ed541caSmrgelse $as_nop 9330eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9331eea2e341Smrg/* end confdefs.h. */ 9332eea2e341Smrgint i; 9333eea2e341Smrgint 93347ed541caSmrgmain (void) 9335eea2e341Smrg{ 9336eea2e341Smrg 9337eea2e341Smrg ; 9338eea2e341Smrg return 0; 9339eea2e341Smrg} 9340eea2e341Smrg_ACEOF 93417ed541caSmrgif ac_fn_c_try_link "$LINENO" 93427ed541caSmrgthen : 9343eea2e341Smrg eval $cacheid=yes 93447ed541caSmrgelse $as_nop 9345eea2e341Smrg eval $cacheid=no 9346eea2e341Smrgfi 93477ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9348eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 9349eea2e341Smrgfi 9350eea2e341Smrg 9351eea2e341Smrg 9352eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9353eea2e341Smrg 9354eea2e341Smrg eval supported=\$$cacheid 93557ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 93567ed541caSmrgprintf "%s\n" "$supported" >&6; } 9357eea2e341Smrg if test "$supported" = "yes" ; then 9358eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9359eea2e341Smrg found="yes" 9360eea2e341Smrg fi 9361eea2e341Smrg fi 9362eea2e341Smrg 9363eea2e341Smrg 9364eea2e341Smrg 9365eea2e341Smrg 9366eea2e341Smrg 9367eea2e341Smrg 9368eea2e341Smrg 9369eea2e341Smrg 9370eea2e341Smrg 9371eea2e341Smrg 9372eea2e341Smrg 9373eea2e341Smrg 9374eea2e341Smrg 9375eea2e341Smrg 9376eea2e341Smrg 9377eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9378eea2e341Smrg 9379eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9380eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93817ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 93827ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 93837ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 93847ed541caSmrgthen : 93857ed541caSmrg printf %s "(cached) " >&6 93867ed541caSmrgelse $as_nop 9387eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9388eea2e341Smrg/* end confdefs.h. */ 9389eea2e341Smrgint i; 9390eea2e341Smrg_ACEOF 93917ed541caSmrgif ac_fn_c_try_compile "$LINENO" 93927ed541caSmrgthen : 9393eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 93947ed541caSmrgelse $as_nop 9395eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 9396eea2e341Smrgfi 93977ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9398eea2e341Smrgfi 93997ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 94007ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9401eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9402eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9403eea2e341Smrgfi 9404eea2e341Smrg 9405eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9406eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9407eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9408eea2e341Smrg fi 9409eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94107ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 94117ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 94127ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 94137ed541caSmrgthen : 94147ed541caSmrg printf %s "(cached) " >&6 94157ed541caSmrgelse $as_nop 9416eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9417eea2e341Smrg/* end confdefs.h. */ 9418eea2e341Smrgint i; 9419eea2e341Smrg_ACEOF 94207ed541caSmrgif ac_fn_c_try_compile "$LINENO" 94217ed541caSmrgthen : 9422eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 94237ed541caSmrgelse $as_nop 9424eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9425eea2e341Smrgfi 94267ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9427eea2e341Smrgfi 94287ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 94297ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9430eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9431eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9432eea2e341Smrgfi 9433eea2e341Smrg 9434eea2e341Smrgfound="no" 9435eea2e341Smrg 9436eea2e341Smrg if test $found = "no" ; then 943733dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9438eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9439eea2e341Smrg fi 9440eea2e341Smrg 944133dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9442eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9443eea2e341Smrg fi 9444eea2e341Smrg 9445eea2e341Smrg CFLAGS="$CFLAGS -Wmissing-braces" 9446eea2e341Smrg 94477ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 94487ed541caSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9449eea2e341Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 94507ed541caSmrg if eval test \${$cacheid+y} 94517ed541caSmrgthen : 94527ed541caSmrg printf %s "(cached) " >&6 94537ed541caSmrgelse $as_nop 9454eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9455eea2e341Smrg/* end confdefs.h. */ 9456eea2e341Smrgint i; 9457eea2e341Smrgint 94587ed541caSmrgmain (void) 9459eea2e341Smrg{ 9460eea2e341Smrg 9461eea2e341Smrg ; 9462eea2e341Smrg return 0; 9463eea2e341Smrg} 9464eea2e341Smrg_ACEOF 94657ed541caSmrgif ac_fn_c_try_link "$LINENO" 94667ed541caSmrgthen : 9467eea2e341Smrg eval $cacheid=yes 94687ed541caSmrgelse $as_nop 9469eea2e341Smrg eval $cacheid=no 9470eea2e341Smrgfi 94717ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9472eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 9473eea2e341Smrgfi 9474eea2e341Smrg 9475eea2e341Smrg 9476eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9477eea2e341Smrg 9478eea2e341Smrg eval supported=\$$cacheid 94797ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 94807ed541caSmrgprintf "%s\n" "$supported" >&6; } 9481eea2e341Smrg if test "$supported" = "yes" ; then 9482eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9483eea2e341Smrg found="yes" 9484eea2e341Smrg fi 9485eea2e341Smrg fi 9486eea2e341Smrg 9487eea2e341Smrg 9488eea2e341Smrg 9489eea2e341Smrg 9490eea2e341Smrg 9491eea2e341Smrg 9492eea2e341Smrg 9493eea2e341Smrg 9494eea2e341Smrg 9495eea2e341Smrg 9496eea2e341Smrg 9497eea2e341Smrg 9498eea2e341Smrg 9499eea2e341Smrg 9500eea2e341Smrg 9501eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9502eea2e341Smrg 9503eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9504eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95057ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 95067ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 95077ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 95087ed541caSmrgthen : 95097ed541caSmrg printf %s "(cached) " >&6 95107ed541caSmrgelse $as_nop 9511eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9512eea2e341Smrg/* end confdefs.h. */ 9513eea2e341Smrgint i; 9514eea2e341Smrg_ACEOF 95157ed541caSmrgif ac_fn_c_try_compile "$LINENO" 95167ed541caSmrgthen : 9517eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 95187ed541caSmrgelse $as_nop 9519eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 9520eea2e341Smrgfi 95217ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9522eea2e341Smrgfi 95237ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 95247ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9525eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9526eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9527eea2e341Smrgfi 9528eea2e341Smrg 9529eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9530eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9531eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9532eea2e341Smrg fi 9533eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95347ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 95357ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 95367ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 95377ed541caSmrgthen : 95387ed541caSmrg printf %s "(cached) " >&6 95397ed541caSmrgelse $as_nop 9540eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9541eea2e341Smrg/* end confdefs.h. */ 9542eea2e341Smrgint i; 9543eea2e341Smrg_ACEOF 95447ed541caSmrgif ac_fn_c_try_compile "$LINENO" 95457ed541caSmrgthen : 9546eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 95477ed541caSmrgelse $as_nop 9548eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9549eea2e341Smrgfi 95507ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9551eea2e341Smrgfi 95527ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 95537ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9554eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9555eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9556eea2e341Smrgfi 9557eea2e341Smrg 9558eea2e341Smrgfound="no" 9559eea2e341Smrg 9560eea2e341Smrg if test $found = "no" ; then 956133dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9562eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9563eea2e341Smrg fi 9564eea2e341Smrg 956533dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9566eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9567eea2e341Smrg fi 9568eea2e341Smrg 9569eea2e341Smrg CFLAGS="$CFLAGS -Wsequence-point" 9570eea2e341Smrg 95717ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 95727ed541caSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; } 9573eea2e341Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 95747ed541caSmrg if eval test \${$cacheid+y} 95757ed541caSmrgthen : 95767ed541caSmrg printf %s "(cached) " >&6 95777ed541caSmrgelse $as_nop 9578eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9579eea2e341Smrg/* end confdefs.h. */ 9580eea2e341Smrgint i; 9581eea2e341Smrgint 95827ed541caSmrgmain (void) 9583eea2e341Smrg{ 9584eea2e341Smrg 9585eea2e341Smrg ; 9586eea2e341Smrg return 0; 9587eea2e341Smrg} 9588eea2e341Smrg_ACEOF 95897ed541caSmrgif ac_fn_c_try_link "$LINENO" 95907ed541caSmrgthen : 9591eea2e341Smrg eval $cacheid=yes 95927ed541caSmrgelse $as_nop 9593eea2e341Smrg eval $cacheid=no 9594eea2e341Smrgfi 95957ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9596eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 9597eea2e341Smrgfi 9598eea2e341Smrg 9599eea2e341Smrg 9600eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9601eea2e341Smrg 9602eea2e341Smrg eval supported=\$$cacheid 96037ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 96047ed541caSmrgprintf "%s\n" "$supported" >&6; } 9605eea2e341Smrg if test "$supported" = "yes" ; then 9606eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9607eea2e341Smrg found="yes" 9608eea2e341Smrg fi 9609eea2e341Smrg fi 9610eea2e341Smrg 9611eea2e341Smrg 9612eea2e341Smrg 9613eea2e341Smrg 9614eea2e341Smrg 9615eea2e341Smrg 9616eea2e341Smrg 9617eea2e341Smrg 9618eea2e341Smrg 9619eea2e341Smrg 9620eea2e341Smrg 9621eea2e341Smrg 9622eea2e341Smrg 9623eea2e341Smrg 9624eea2e341Smrg 9625eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9626eea2e341Smrg 9627eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9628eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96297ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 96307ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 96317ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 96327ed541caSmrgthen : 96337ed541caSmrg printf %s "(cached) " >&6 96347ed541caSmrgelse $as_nop 9635eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9636eea2e341Smrg/* end confdefs.h. */ 9637eea2e341Smrgint i; 9638eea2e341Smrg_ACEOF 96397ed541caSmrgif ac_fn_c_try_compile "$LINENO" 96407ed541caSmrgthen : 9641eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 96427ed541caSmrgelse $as_nop 9643eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 9644eea2e341Smrgfi 96457ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9646eea2e341Smrgfi 96477ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 96487ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9649eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9650eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9651eea2e341Smrgfi 9652eea2e341Smrg 9653eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9654eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9655eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9656eea2e341Smrg fi 9657eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96587ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 96597ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 96607ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 96617ed541caSmrgthen : 96627ed541caSmrg printf %s "(cached) " >&6 96637ed541caSmrgelse $as_nop 9664eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9665eea2e341Smrg/* end confdefs.h. */ 9666eea2e341Smrgint i; 9667eea2e341Smrg_ACEOF 96687ed541caSmrgif ac_fn_c_try_compile "$LINENO" 96697ed541caSmrgthen : 9670eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 96717ed541caSmrgelse $as_nop 9672eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9673eea2e341Smrgfi 96747ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9675eea2e341Smrgfi 96767ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 96777ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9678eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9679eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9680eea2e341Smrgfi 9681eea2e341Smrg 9682eea2e341Smrgfound="no" 9683eea2e341Smrg 9684eea2e341Smrg if test $found = "no" ; then 968533dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9686eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9687eea2e341Smrg fi 9688eea2e341Smrg 968933dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9690eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9691eea2e341Smrg fi 9692eea2e341Smrg 9693eea2e341Smrg CFLAGS="$CFLAGS -Wreturn-type" 9694eea2e341Smrg 96957ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 96967ed541caSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; } 9697eea2e341Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 96987ed541caSmrg if eval test \${$cacheid+y} 96997ed541caSmrgthen : 97007ed541caSmrg printf %s "(cached) " >&6 97017ed541caSmrgelse $as_nop 9702eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703eea2e341Smrg/* end confdefs.h. */ 9704eea2e341Smrgint i; 9705eea2e341Smrgint 97067ed541caSmrgmain (void) 9707eea2e341Smrg{ 9708eea2e341Smrg 9709eea2e341Smrg ; 9710eea2e341Smrg return 0; 9711eea2e341Smrg} 9712eea2e341Smrg_ACEOF 97137ed541caSmrgif ac_fn_c_try_link "$LINENO" 97147ed541caSmrgthen : 9715eea2e341Smrg eval $cacheid=yes 97167ed541caSmrgelse $as_nop 9717eea2e341Smrg eval $cacheid=no 9718eea2e341Smrgfi 97197ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9720eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 9721eea2e341Smrgfi 9722eea2e341Smrg 9723eea2e341Smrg 9724eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9725eea2e341Smrg 9726eea2e341Smrg eval supported=\$$cacheid 97277ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 97287ed541caSmrgprintf "%s\n" "$supported" >&6; } 9729eea2e341Smrg if test "$supported" = "yes" ; then 9730eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9731eea2e341Smrg found="yes" 9732eea2e341Smrg fi 9733eea2e341Smrg fi 9734eea2e341Smrg 9735eea2e341Smrg 9736eea2e341Smrg 9737eea2e341Smrg 9738eea2e341Smrg 9739eea2e341Smrg 9740eea2e341Smrg 9741eea2e341Smrg 9742eea2e341Smrg 9743eea2e341Smrg 9744eea2e341Smrg 9745eea2e341Smrg 9746eea2e341Smrg 9747eea2e341Smrg 9748eea2e341Smrg 9749eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9750eea2e341Smrg 9751eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9752eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97537ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 97547ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 97557ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 97567ed541caSmrgthen : 97577ed541caSmrg printf %s "(cached) " >&6 97587ed541caSmrgelse $as_nop 9759eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9760eea2e341Smrg/* end confdefs.h. */ 9761eea2e341Smrgint i; 9762eea2e341Smrg_ACEOF 97637ed541caSmrgif ac_fn_c_try_compile "$LINENO" 97647ed541caSmrgthen : 9765eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 97667ed541caSmrgelse $as_nop 9767eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 9768eea2e341Smrgfi 97697ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9770eea2e341Smrgfi 97717ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 97727ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9773eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9774eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9775eea2e341Smrgfi 9776eea2e341Smrg 9777eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9778eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9779eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9780eea2e341Smrg fi 9781eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97827ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 97837ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 97847ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 97857ed541caSmrgthen : 97867ed541caSmrg printf %s "(cached) " >&6 97877ed541caSmrgelse $as_nop 9788eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9789eea2e341Smrg/* end confdefs.h. */ 9790eea2e341Smrgint i; 9791eea2e341Smrg_ACEOF 97927ed541caSmrgif ac_fn_c_try_compile "$LINENO" 97937ed541caSmrgthen : 9794eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 97957ed541caSmrgelse $as_nop 9796eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9797eea2e341Smrgfi 97987ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9799eea2e341Smrgfi 98007ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 98017ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9802eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9803eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9804eea2e341Smrgfi 9805eea2e341Smrg 9806eea2e341Smrgfound="no" 9807eea2e341Smrg 9808eea2e341Smrg if test $found = "no" ; then 980933dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9810eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9811eea2e341Smrg fi 9812eea2e341Smrg 981333dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9814eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9815eea2e341Smrg fi 9816eea2e341Smrg 9817eea2e341Smrg CFLAGS="$CFLAGS -Wtrigraphs" 9818eea2e341Smrg 98197ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 98207ed541caSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9821eea2e341Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 98227ed541caSmrg if eval test \${$cacheid+y} 98237ed541caSmrgthen : 98247ed541caSmrg printf %s "(cached) " >&6 98257ed541caSmrgelse $as_nop 9826eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9827eea2e341Smrg/* end confdefs.h. */ 9828eea2e341Smrgint i; 9829eea2e341Smrgint 98307ed541caSmrgmain (void) 9831eea2e341Smrg{ 9832eea2e341Smrg 9833eea2e341Smrg ; 9834eea2e341Smrg return 0; 9835eea2e341Smrg} 9836eea2e341Smrg_ACEOF 98377ed541caSmrgif ac_fn_c_try_link "$LINENO" 98387ed541caSmrgthen : 9839eea2e341Smrg eval $cacheid=yes 98407ed541caSmrgelse $as_nop 9841eea2e341Smrg eval $cacheid=no 9842eea2e341Smrgfi 98437ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9844eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 9845eea2e341Smrgfi 9846eea2e341Smrg 9847eea2e341Smrg 9848eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9849eea2e341Smrg 9850eea2e341Smrg eval supported=\$$cacheid 98517ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 98527ed541caSmrgprintf "%s\n" "$supported" >&6; } 9853eea2e341Smrg if test "$supported" = "yes" ; then 9854eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9855eea2e341Smrg found="yes" 9856eea2e341Smrg fi 9857eea2e341Smrg fi 9858eea2e341Smrg 9859eea2e341Smrg 9860eea2e341Smrg 9861eea2e341Smrg 9862eea2e341Smrg 9863eea2e341Smrg 9864eea2e341Smrg 9865eea2e341Smrg 9866eea2e341Smrg 9867eea2e341Smrg 9868eea2e341Smrg 9869eea2e341Smrg 9870eea2e341Smrg 9871eea2e341Smrg 9872eea2e341Smrg 9873eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9874eea2e341Smrg 9875eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9876eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98777ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 98787ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 98797ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 98807ed541caSmrgthen : 98817ed541caSmrg printf %s "(cached) " >&6 98827ed541caSmrgelse $as_nop 9883eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9884eea2e341Smrg/* end confdefs.h. */ 9885eea2e341Smrgint i; 9886eea2e341Smrg_ACEOF 98877ed541caSmrgif ac_fn_c_try_compile "$LINENO" 98887ed541caSmrgthen : 9889eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 98907ed541caSmrgelse $as_nop 9891eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 9892eea2e341Smrgfi 98937ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9894eea2e341Smrgfi 98957ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 98967ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9897eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9898eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9899eea2e341Smrgfi 9900eea2e341Smrg 9901eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9902eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9903eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9904eea2e341Smrg fi 9905eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99067ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 99077ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 99087ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 99097ed541caSmrgthen : 99107ed541caSmrg printf %s "(cached) " >&6 99117ed541caSmrgelse $as_nop 9912eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9913eea2e341Smrg/* end confdefs.h. */ 9914eea2e341Smrgint i; 9915eea2e341Smrg_ACEOF 99167ed541caSmrgif ac_fn_c_try_compile "$LINENO" 99177ed541caSmrgthen : 9918eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 99197ed541caSmrgelse $as_nop 9920eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9921eea2e341Smrgfi 99227ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9923eea2e341Smrgfi 99247ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 99257ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9926eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9927eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9928eea2e341Smrgfi 9929eea2e341Smrg 9930eea2e341Smrgfound="no" 9931eea2e341Smrg 9932eea2e341Smrg if test $found = "no" ; then 993333dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9934eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9935eea2e341Smrg fi 9936eea2e341Smrg 993733dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9938eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9939eea2e341Smrg fi 9940eea2e341Smrg 9941eea2e341Smrg CFLAGS="$CFLAGS -Warray-bounds" 9942eea2e341Smrg 99437ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 99447ed541caSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; } 9945eea2e341Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 99467ed541caSmrg if eval test \${$cacheid+y} 99477ed541caSmrgthen : 99487ed541caSmrg printf %s "(cached) " >&6 99497ed541caSmrgelse $as_nop 9950eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9951eea2e341Smrg/* end confdefs.h. */ 9952eea2e341Smrgint i; 9953eea2e341Smrgint 99547ed541caSmrgmain (void) 9955eea2e341Smrg{ 9956eea2e341Smrg 9957eea2e341Smrg ; 9958eea2e341Smrg return 0; 9959eea2e341Smrg} 9960eea2e341Smrg_ACEOF 99617ed541caSmrgif ac_fn_c_try_link "$LINENO" 99627ed541caSmrgthen : 9963eea2e341Smrg eval $cacheid=yes 99647ed541caSmrgelse $as_nop 9965eea2e341Smrg eval $cacheid=no 9966eea2e341Smrgfi 99677ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 9968eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 9969eea2e341Smrgfi 9970eea2e341Smrg 9971eea2e341Smrg 9972eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9973eea2e341Smrg 9974eea2e341Smrg eval supported=\$$cacheid 99757ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 99767ed541caSmrgprintf "%s\n" "$supported" >&6; } 9977eea2e341Smrg if test "$supported" = "yes" ; then 9978eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9979eea2e341Smrg found="yes" 9980eea2e341Smrg fi 9981eea2e341Smrg fi 9982eea2e341Smrg 9983eea2e341Smrg 9984eea2e341Smrg 9985eea2e341Smrg 9986eea2e341Smrg 9987eea2e341Smrg 9988eea2e341Smrg 9989eea2e341Smrg 9990eea2e341Smrg 9991eea2e341Smrg 9992eea2e341Smrg 9993eea2e341Smrg 9994eea2e341Smrg 9995eea2e341Smrg 9996eea2e341Smrg 9997eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9998eea2e341Smrg 9999eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10000eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100017ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 100027ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 100037ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 100047ed541caSmrgthen : 100057ed541caSmrg printf %s "(cached) " >&6 100067ed541caSmrgelse $as_nop 10007eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10008eea2e341Smrg/* end confdefs.h. */ 10009eea2e341Smrgint i; 10010eea2e341Smrg_ACEOF 100117ed541caSmrgif ac_fn_c_try_compile "$LINENO" 100127ed541caSmrgthen : 10013eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 100147ed541caSmrgelse $as_nop 10015eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 10016eea2e341Smrgfi 100177ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10018eea2e341Smrgfi 100197ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 100207ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10021eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10022eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10023eea2e341Smrgfi 10024eea2e341Smrg 10025eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10026eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10027eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10028eea2e341Smrg fi 10029eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100307ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 100317ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 100327ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 100337ed541caSmrgthen : 100347ed541caSmrg printf %s "(cached) " >&6 100357ed541caSmrgelse $as_nop 10036eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10037eea2e341Smrg/* end confdefs.h. */ 10038eea2e341Smrgint i; 10039eea2e341Smrg_ACEOF 100407ed541caSmrgif ac_fn_c_try_compile "$LINENO" 100417ed541caSmrgthen : 10042eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 100437ed541caSmrgelse $as_nop 10044eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10045eea2e341Smrgfi 100467ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10047eea2e341Smrgfi 100487ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 100497ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10050eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10051eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10052eea2e341Smrgfi 10053eea2e341Smrg 10054eea2e341Smrgfound="no" 10055eea2e341Smrg 10056eea2e341Smrg if test $found = "no" ; then 1005733dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10058eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10059eea2e341Smrg fi 10060eea2e341Smrg 1006133dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10062eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10063eea2e341Smrg fi 10064eea2e341Smrg 10065eea2e341Smrg CFLAGS="$CFLAGS -Wwrite-strings" 10066eea2e341Smrg 100677ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 100687ed541caSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10069eea2e341Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 100707ed541caSmrg if eval test \${$cacheid+y} 100717ed541caSmrgthen : 100727ed541caSmrg printf %s "(cached) " >&6 100737ed541caSmrgelse $as_nop 10074eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10075eea2e341Smrg/* end confdefs.h. */ 10076eea2e341Smrgint i; 10077eea2e341Smrgint 100787ed541caSmrgmain (void) 10079eea2e341Smrg{ 10080eea2e341Smrg 10081eea2e341Smrg ; 10082eea2e341Smrg return 0; 10083eea2e341Smrg} 10084eea2e341Smrg_ACEOF 100857ed541caSmrgif ac_fn_c_try_link "$LINENO" 100867ed541caSmrgthen : 10087eea2e341Smrg eval $cacheid=yes 100887ed541caSmrgelse $as_nop 10089eea2e341Smrg eval $cacheid=no 10090eea2e341Smrgfi 100917ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10092eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 10093eea2e341Smrgfi 10094eea2e341Smrg 10095eea2e341Smrg 10096eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10097eea2e341Smrg 10098eea2e341Smrg eval supported=\$$cacheid 100997ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 101007ed541caSmrgprintf "%s\n" "$supported" >&6; } 10101eea2e341Smrg if test "$supported" = "yes" ; then 10102eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10103eea2e341Smrg found="yes" 10104eea2e341Smrg fi 10105eea2e341Smrg fi 10106eea2e341Smrg 10107eea2e341Smrg 10108eea2e341Smrg 10109eea2e341Smrg 10110eea2e341Smrg 10111eea2e341Smrg 10112eea2e341Smrg 10113eea2e341Smrg 10114eea2e341Smrg 10115eea2e341Smrg 10116eea2e341Smrg 10117eea2e341Smrg 10118eea2e341Smrg 10119eea2e341Smrg 10120eea2e341Smrg 10121eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10122eea2e341Smrg 10123eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10124eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101257ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 101267ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 101277ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 101287ed541caSmrgthen : 101297ed541caSmrg printf %s "(cached) " >&6 101307ed541caSmrgelse $as_nop 10131eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10132eea2e341Smrg/* end confdefs.h. */ 10133eea2e341Smrgint i; 10134eea2e341Smrg_ACEOF 101357ed541caSmrgif ac_fn_c_try_compile "$LINENO" 101367ed541caSmrgthen : 10137eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 101387ed541caSmrgelse $as_nop 10139eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 10140eea2e341Smrgfi 101417ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10142eea2e341Smrgfi 101437ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 101447ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10145eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10146eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10147eea2e341Smrgfi 10148eea2e341Smrg 10149eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10150eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10151eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10152eea2e341Smrg fi 10153eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101547ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 101557ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 101567ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 101577ed541caSmrgthen : 101587ed541caSmrg printf %s "(cached) " >&6 101597ed541caSmrgelse $as_nop 10160eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10161eea2e341Smrg/* end confdefs.h. */ 10162eea2e341Smrgint i; 10163eea2e341Smrg_ACEOF 101647ed541caSmrgif ac_fn_c_try_compile "$LINENO" 101657ed541caSmrgthen : 10166eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 101677ed541caSmrgelse $as_nop 10168eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10169eea2e341Smrgfi 101707ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10171eea2e341Smrgfi 101727ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 101737ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10174eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10175eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10176eea2e341Smrgfi 10177eea2e341Smrg 10178eea2e341Smrgfound="no" 10179eea2e341Smrg 10180eea2e341Smrg if test $found = "no" ; then 1018133dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10182eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10183eea2e341Smrg fi 10184eea2e341Smrg 1018533dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10186eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10187eea2e341Smrg fi 10188eea2e341Smrg 10189eea2e341Smrg CFLAGS="$CFLAGS -Waddress" 10190eea2e341Smrg 101917ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 101927ed541caSmrgprintf %s "checking if $CC supports -Waddress... " >&6; } 10193eea2e341Smrg cacheid=xorg_cv_cc_flag__Waddress 101947ed541caSmrg if eval test \${$cacheid+y} 101957ed541caSmrgthen : 101967ed541caSmrg printf %s "(cached) " >&6 101977ed541caSmrgelse $as_nop 10198eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10199eea2e341Smrg/* end confdefs.h. */ 10200eea2e341Smrgint i; 10201eea2e341Smrgint 102027ed541caSmrgmain (void) 10203eea2e341Smrg{ 10204eea2e341Smrg 10205eea2e341Smrg ; 10206eea2e341Smrg return 0; 10207eea2e341Smrg} 10208eea2e341Smrg_ACEOF 102097ed541caSmrgif ac_fn_c_try_link "$LINENO" 102107ed541caSmrgthen : 10211eea2e341Smrg eval $cacheid=yes 102127ed541caSmrgelse $as_nop 10213eea2e341Smrg eval $cacheid=no 10214eea2e341Smrgfi 102157ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10216eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 10217eea2e341Smrgfi 10218eea2e341Smrg 10219eea2e341Smrg 10220eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10221eea2e341Smrg 10222eea2e341Smrg eval supported=\$$cacheid 102237ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102247ed541caSmrgprintf "%s\n" "$supported" >&6; } 10225eea2e341Smrg if test "$supported" = "yes" ; then 10226eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10227eea2e341Smrg found="yes" 10228eea2e341Smrg fi 10229eea2e341Smrg fi 10230eea2e341Smrg 10231eea2e341Smrg 10232eea2e341Smrg 10233eea2e341Smrg 10234eea2e341Smrg 10235eea2e341Smrg 10236eea2e341Smrg 10237eea2e341Smrg 10238eea2e341Smrg 10239eea2e341Smrg 10240eea2e341Smrg 10241eea2e341Smrg 10242eea2e341Smrg 10243eea2e341Smrg 10244eea2e341Smrg 10245eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10246eea2e341Smrg 10247eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10248eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102497ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 102507ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 102517ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 102527ed541caSmrgthen : 102537ed541caSmrg printf %s "(cached) " >&6 102547ed541caSmrgelse $as_nop 10255eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10256eea2e341Smrg/* end confdefs.h. */ 10257eea2e341Smrgint i; 10258eea2e341Smrg_ACEOF 102597ed541caSmrgif ac_fn_c_try_compile "$LINENO" 102607ed541caSmrgthen : 10261eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 102627ed541caSmrgelse $as_nop 10263eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 10264eea2e341Smrgfi 102657ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10266eea2e341Smrgfi 102677ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 102687ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10269eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10270eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10271eea2e341Smrgfi 10272eea2e341Smrg 10273eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10274eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10275eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10276eea2e341Smrg fi 10277eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 102787ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 102797ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 102807ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 102817ed541caSmrgthen : 102827ed541caSmrg printf %s "(cached) " >&6 102837ed541caSmrgelse $as_nop 10284eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10285eea2e341Smrg/* end confdefs.h. */ 10286eea2e341Smrgint i; 10287eea2e341Smrg_ACEOF 102887ed541caSmrgif ac_fn_c_try_compile "$LINENO" 102897ed541caSmrgthen : 10290eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 102917ed541caSmrgelse $as_nop 10292eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10293eea2e341Smrgfi 102947ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10295eea2e341Smrgfi 102967ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 102977ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10298eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10299eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10300eea2e341Smrgfi 10301eea2e341Smrg 10302eea2e341Smrgfound="no" 10303eea2e341Smrg 10304eea2e341Smrg if test $found = "no" ; then 1030533dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10306eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10307eea2e341Smrg fi 10308eea2e341Smrg 1030933dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10310eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10311eea2e341Smrg fi 10312eea2e341Smrg 10313eea2e341Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10314eea2e341Smrg 103157ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 103167ed541caSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10317eea2e341Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 103187ed541caSmrg if eval test \${$cacheid+y} 103197ed541caSmrgthen : 103207ed541caSmrg printf %s "(cached) " >&6 103217ed541caSmrgelse $as_nop 10322eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10323eea2e341Smrg/* end confdefs.h. */ 10324eea2e341Smrgint i; 10325eea2e341Smrgint 103267ed541caSmrgmain (void) 10327eea2e341Smrg{ 10328eea2e341Smrg 10329eea2e341Smrg ; 10330eea2e341Smrg return 0; 10331eea2e341Smrg} 10332eea2e341Smrg_ACEOF 103337ed541caSmrgif ac_fn_c_try_link "$LINENO" 103347ed541caSmrgthen : 10335eea2e341Smrg eval $cacheid=yes 103367ed541caSmrgelse $as_nop 10337eea2e341Smrg eval $cacheid=no 10338eea2e341Smrgfi 103397ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10340eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 10341eea2e341Smrgfi 10342eea2e341Smrg 10343eea2e341Smrg 10344eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10345eea2e341Smrg 10346eea2e341Smrg eval supported=\$$cacheid 103477ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 103487ed541caSmrgprintf "%s\n" "$supported" >&6; } 10349eea2e341Smrg if test "$supported" = "yes" ; then 10350eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10351eea2e341Smrg found="yes" 10352eea2e341Smrg fi 10353eea2e341Smrg fi 10354eea2e341Smrg 10355eea2e341Smrg 10356eea2e341Smrg 10357eea2e341Smrg 10358eea2e341Smrg 10359eea2e341Smrg 10360eea2e341Smrg 10361eea2e341Smrg 10362eea2e341Smrg 10363eea2e341Smrg 10364eea2e341Smrg 10365eea2e341Smrg 10366eea2e341Smrg 10367eea2e341Smrg 10368eea2e341Smrg 10369eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10370eea2e341Smrg 10371eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10372eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103737ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 103747ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 103757ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 103767ed541caSmrgthen : 103777ed541caSmrg printf %s "(cached) " >&6 103787ed541caSmrgelse $as_nop 10379eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10380eea2e341Smrg/* end confdefs.h. */ 10381eea2e341Smrgint i; 10382eea2e341Smrg_ACEOF 103837ed541caSmrgif ac_fn_c_try_compile "$LINENO" 103847ed541caSmrgthen : 10385eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 103867ed541caSmrgelse $as_nop 10387eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 10388eea2e341Smrgfi 103897ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10390eea2e341Smrgfi 103917ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 103927ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10393eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10394eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10395eea2e341Smrgfi 10396eea2e341Smrg 10397eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10398eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10399eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10400eea2e341Smrg fi 10401eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 104027ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 104037ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 104047ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 104057ed541caSmrgthen : 104067ed541caSmrg printf %s "(cached) " >&6 104077ed541caSmrgelse $as_nop 10408eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10409eea2e341Smrg/* end confdefs.h. */ 10410eea2e341Smrgint i; 10411eea2e341Smrg_ACEOF 104127ed541caSmrgif ac_fn_c_try_compile "$LINENO" 104137ed541caSmrgthen : 10414eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 104157ed541caSmrgelse $as_nop 10416eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10417eea2e341Smrgfi 104187ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10419eea2e341Smrgfi 104207ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 104217ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10422eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10423eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10424eea2e341Smrgfi 10425eea2e341Smrg 10426eea2e341Smrgfound="no" 10427eea2e341Smrg 10428eea2e341Smrg if test $found = "no" ; then 1042933dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10430eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10431eea2e341Smrg fi 10432eea2e341Smrg 1043333dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10434eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10435eea2e341Smrg fi 10436eea2e341Smrg 10437eea2e341Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10438eea2e341Smrg 104397ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 104407ed541caSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10441eea2e341Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 104427ed541caSmrg if eval test \${$cacheid+y} 104437ed541caSmrgthen : 104447ed541caSmrg printf %s "(cached) " >&6 104457ed541caSmrgelse $as_nop 10446eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10447eea2e341Smrg/* end confdefs.h. */ 10448eea2e341Smrgint i; 10449eea2e341Smrgint 104507ed541caSmrgmain (void) 10451eea2e341Smrg{ 10452eea2e341Smrg 10453eea2e341Smrg ; 10454eea2e341Smrg return 0; 10455eea2e341Smrg} 10456eea2e341Smrg_ACEOF 104577ed541caSmrgif ac_fn_c_try_link "$LINENO" 104587ed541caSmrgthen : 10459eea2e341Smrg eval $cacheid=yes 104607ed541caSmrgelse $as_nop 10461eea2e341Smrg eval $cacheid=no 10462eea2e341Smrgfi 104637ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10464eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 10465eea2e341Smrgfi 10466eea2e341Smrg 10467eea2e341Smrg 10468eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10469eea2e341Smrg 10470eea2e341Smrg eval supported=\$$cacheid 104717ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 104727ed541caSmrgprintf "%s\n" "$supported" >&6; } 10473eea2e341Smrg if test "$supported" = "yes" ; then 10474eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10475eea2e341Smrg found="yes" 10476eea2e341Smrg fi 10477eea2e341Smrg fi 10478eea2e341Smrg 10479eea2e341Smrg 10480eea2e341Smrgfi 10481eea2e341Smrg 10482eea2e341Smrg 10483eea2e341Smrg 10484eea2e341Smrg 10485eea2e341Smrg 10486eea2e341Smrg 10487eea2e341Smrg 10488eea2e341Smrg CWARNFLAGS="$BASE_CFLAGS" 10489eea2e341Smrg if test "x$GCC" = xyes ; then 10490eea2e341Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10491eea2e341Smrg fi 10492eea2e341Smrg 10493eea2e341Smrg 10494eea2e341Smrg 10495eea2e341Smrg 10496eea2e341Smrg 10497eea2e341Smrg 10498eea2e341Smrg 10499eea2e341Smrg 10500eea2e341Smrg# Check whether --enable-strict-compilation was given. 105017ed541caSmrgif test ${enable_strict_compilation+y} 105027ed541caSmrgthen : 10503eea2e341Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 105047ed541caSmrgelse $as_nop 10505eea2e341Smrg STRICT_COMPILE=no 10506eea2e341Smrgfi 10507eea2e341Smrg 10508eea2e341Smrg 10509eea2e341Smrg 10510eea2e341Smrg 10511eea2e341Smrg 10512eea2e341Smrg 10513eea2e341SmrgSTRICT_CFLAGS="" 10514eea2e341Smrg 10515eea2e341Smrg 10516eea2e341Smrg 10517eea2e341Smrg 10518eea2e341Smrg 10519eea2e341Smrg 10520eea2e341Smrg 10521eea2e341Smrg 10522eea2e341Smrg 10523eea2e341Smrg 10524eea2e341Smrg 10525eea2e341Smrg 10526eea2e341Smrg 10527eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10528eea2e341Smrg 10529eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10530eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 105317ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 105327ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 105337ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 105347ed541caSmrgthen : 105357ed541caSmrg printf %s "(cached) " >&6 105367ed541caSmrgelse $as_nop 10537eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10538eea2e341Smrg/* end confdefs.h. */ 10539eea2e341Smrgint i; 10540eea2e341Smrg_ACEOF 105417ed541caSmrgif ac_fn_c_try_compile "$LINENO" 105427ed541caSmrgthen : 10543eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 105447ed541caSmrgelse $as_nop 10545eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 10546eea2e341Smrgfi 105477ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10548eea2e341Smrgfi 105497ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 105507ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10551eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10552eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10553eea2e341Smrgfi 10554eea2e341Smrg 10555eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10556eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10557eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10558eea2e341Smrg fi 10559eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 105607ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 105617ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 105627ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 105637ed541caSmrgthen : 105647ed541caSmrg printf %s "(cached) " >&6 105657ed541caSmrgelse $as_nop 10566eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10567eea2e341Smrg/* end confdefs.h. */ 10568eea2e341Smrgint i; 10569eea2e341Smrg_ACEOF 105707ed541caSmrgif ac_fn_c_try_compile "$LINENO" 105717ed541caSmrgthen : 10572eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 105737ed541caSmrgelse $as_nop 10574eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10575eea2e341Smrgfi 105767ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10577eea2e341Smrgfi 105787ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 105797ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10580eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10581eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10582eea2e341Smrgfi 10583eea2e341Smrg 10584eea2e341Smrgfound="no" 10585eea2e341Smrg 10586eea2e341Smrg if test $found = "no" ; then 1058733dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10588eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10589eea2e341Smrg fi 10590eea2e341Smrg 1059133dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10592eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10593eea2e341Smrg fi 10594eea2e341Smrg 10595eea2e341Smrg CFLAGS="$CFLAGS -pedantic" 10596eea2e341Smrg 105977ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 105987ed541caSmrgprintf %s "checking if $CC supports -pedantic... " >&6; } 10599eea2e341Smrg cacheid=xorg_cv_cc_flag__pedantic 106007ed541caSmrg if eval test \${$cacheid+y} 106017ed541caSmrgthen : 106027ed541caSmrg printf %s "(cached) " >&6 106037ed541caSmrgelse $as_nop 10604eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10605eea2e341Smrg/* end confdefs.h. */ 10606eea2e341Smrgint i; 10607eea2e341Smrgint 106087ed541caSmrgmain (void) 10609eea2e341Smrg{ 10610eea2e341Smrg 10611eea2e341Smrg ; 10612eea2e341Smrg return 0; 10613eea2e341Smrg} 10614eea2e341Smrg_ACEOF 106157ed541caSmrgif ac_fn_c_try_link "$LINENO" 106167ed541caSmrgthen : 10617eea2e341Smrg eval $cacheid=yes 106187ed541caSmrgelse $as_nop 10619eea2e341Smrg eval $cacheid=no 10620eea2e341Smrgfi 106217ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10622eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 10623eea2e341Smrgfi 10624eea2e341Smrg 10625eea2e341Smrg 10626eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10627eea2e341Smrg 10628eea2e341Smrg eval supported=\$$cacheid 106297ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 106307ed541caSmrgprintf "%s\n" "$supported" >&6; } 10631eea2e341Smrg if test "$supported" = "yes" ; then 10632eea2e341Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10633eea2e341Smrg found="yes" 10634eea2e341Smrg fi 10635eea2e341Smrg fi 10636eea2e341Smrg 10637eea2e341Smrg 10638eea2e341Smrg 10639eea2e341Smrg 10640eea2e341Smrg 10641eea2e341Smrg 10642eea2e341Smrg 10643eea2e341Smrg 10644eea2e341Smrg 10645eea2e341Smrg 10646eea2e341Smrg 10647eea2e341Smrg 10648eea2e341Smrg 10649eea2e341Smrg 10650eea2e341Smrg 10651eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10652eea2e341Smrg 10653eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10654eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 106557ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 106567ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 106577ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 106587ed541caSmrgthen : 106597ed541caSmrg printf %s "(cached) " >&6 106607ed541caSmrgelse $as_nop 10661eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10662eea2e341Smrg/* end confdefs.h. */ 10663eea2e341Smrgint i; 10664eea2e341Smrg_ACEOF 106657ed541caSmrgif ac_fn_c_try_compile "$LINENO" 106667ed541caSmrgthen : 10667eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 106687ed541caSmrgelse $as_nop 10669eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 10670eea2e341Smrgfi 106717ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10672eea2e341Smrgfi 106737ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 106747ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10675eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10676eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10677eea2e341Smrgfi 10678eea2e341Smrg 10679eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10680eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10681eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10682eea2e341Smrg fi 10683eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 106847ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 106857ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 106867ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 106877ed541caSmrgthen : 106887ed541caSmrg printf %s "(cached) " >&6 106897ed541caSmrgelse $as_nop 10690eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10691eea2e341Smrg/* end confdefs.h. */ 10692eea2e341Smrgint i; 10693eea2e341Smrg_ACEOF 106947ed541caSmrgif ac_fn_c_try_compile "$LINENO" 106957ed541caSmrgthen : 10696eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 106977ed541caSmrgelse $as_nop 10698eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10699eea2e341Smrgfi 107007ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10701eea2e341Smrgfi 107027ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 107037ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10704eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10705eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10706eea2e341Smrgfi 10707eea2e341Smrg 10708eea2e341Smrgfound="no" 10709eea2e341Smrg 10710eea2e341Smrg if test $found = "no" ; then 1071133dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10712eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10713eea2e341Smrg fi 10714eea2e341Smrg 1071533dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10716eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10717eea2e341Smrg fi 10718eea2e341Smrg 10719eea2e341Smrg CFLAGS="$CFLAGS -Werror" 10720eea2e341Smrg 107217ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 107227ed541caSmrgprintf %s "checking if $CC supports -Werror... " >&6; } 10723eea2e341Smrg cacheid=xorg_cv_cc_flag__Werror 107247ed541caSmrg if eval test \${$cacheid+y} 107257ed541caSmrgthen : 107267ed541caSmrg printf %s "(cached) " >&6 107277ed541caSmrgelse $as_nop 10728eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10729eea2e341Smrg/* end confdefs.h. */ 10730eea2e341Smrgint i; 10731eea2e341Smrgint 107327ed541caSmrgmain (void) 10733eea2e341Smrg{ 10734eea2e341Smrg 10735eea2e341Smrg ; 10736eea2e341Smrg return 0; 10737eea2e341Smrg} 10738eea2e341Smrg_ACEOF 107397ed541caSmrgif ac_fn_c_try_link "$LINENO" 107407ed541caSmrgthen : 10741eea2e341Smrg eval $cacheid=yes 107427ed541caSmrgelse $as_nop 10743eea2e341Smrg eval $cacheid=no 10744eea2e341Smrgfi 107457ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10746eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 10747eea2e341Smrgfi 10748eea2e341Smrg 10749eea2e341Smrg 10750eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10751eea2e341Smrg 10752eea2e341Smrg eval supported=\$$cacheid 107537ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 107547ed541caSmrgprintf "%s\n" "$supported" >&6; } 10755eea2e341Smrg if test "$supported" = "yes" ; then 10756eea2e341Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10757eea2e341Smrg found="yes" 10758eea2e341Smrg fi 10759eea2e341Smrg fi 10760eea2e341Smrg 10761eea2e341Smrg if test $found = "no" ; then 1076233dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10763eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10764eea2e341Smrg fi 10765eea2e341Smrg 1076633dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10767eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10768eea2e341Smrg fi 10769eea2e341Smrg 10770eea2e341Smrg CFLAGS="$CFLAGS -errwarn" 10771eea2e341Smrg 107727ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 107737ed541caSmrgprintf %s "checking if $CC supports -errwarn... " >&6; } 10774eea2e341Smrg cacheid=xorg_cv_cc_flag__errwarn 107757ed541caSmrg if eval test \${$cacheid+y} 107767ed541caSmrgthen : 107777ed541caSmrg printf %s "(cached) " >&6 107787ed541caSmrgelse $as_nop 10779eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10780eea2e341Smrg/* end confdefs.h. */ 10781eea2e341Smrgint i; 10782eea2e341Smrgint 107837ed541caSmrgmain (void) 10784eea2e341Smrg{ 10785eea2e341Smrg 10786eea2e341Smrg ; 10787eea2e341Smrg return 0; 10788eea2e341Smrg} 10789eea2e341Smrg_ACEOF 107907ed541caSmrgif ac_fn_c_try_link "$LINENO" 107917ed541caSmrgthen : 10792eea2e341Smrg eval $cacheid=yes 107937ed541caSmrgelse $as_nop 10794eea2e341Smrg eval $cacheid=no 10795eea2e341Smrgfi 107967ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10797eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 10798eea2e341Smrgfi 10799eea2e341Smrg 10800eea2e341Smrg 10801eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10802eea2e341Smrg 10803eea2e341Smrg eval supported=\$$cacheid 108047ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 108057ed541caSmrgprintf "%s\n" "$supported" >&6; } 10806eea2e341Smrg if test "$supported" = "yes" ; then 10807eea2e341Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10808eea2e341Smrg found="yes" 10809eea2e341Smrg fi 10810eea2e341Smrg fi 10811eea2e341Smrg 10812eea2e341Smrg 10813eea2e341Smrg 10814eea2e341Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10815eea2e341Smrg# activate it with -Werror, so we add it here explicitly. 10816eea2e341Smrg 10817eea2e341Smrg 10818eea2e341Smrg 10819eea2e341Smrg 10820eea2e341Smrg 10821eea2e341Smrg 10822eea2e341Smrg 10823eea2e341Smrg 10824eea2e341Smrg 10825eea2e341Smrg 10826eea2e341Smrg 10827eea2e341Smrg 10828eea2e341Smrg 10829eea2e341Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10830eea2e341Smrg 10831eea2e341Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10832eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 108337ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 108347ed541caSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 108357ed541caSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y} 108367ed541caSmrgthen : 108377ed541caSmrg printf %s "(cached) " >&6 108387ed541caSmrgelse $as_nop 10839eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10840eea2e341Smrg/* end confdefs.h. */ 10841eea2e341Smrgint i; 10842eea2e341Smrg_ACEOF 108437ed541caSmrgif ac_fn_c_try_compile "$LINENO" 108447ed541caSmrgthen : 10845eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=yes 108467ed541caSmrgelse $as_nop 10847eea2e341Smrg xorg_cv_cc_flag_unknown_warning_option=no 10848eea2e341Smrgfi 108497ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10850eea2e341Smrgfi 108517ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 108527ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10853eea2e341Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10854eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10855eea2e341Smrgfi 10856eea2e341Smrg 10857eea2e341Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10858eea2e341Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10859eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10860eea2e341Smrg fi 10861eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 108627ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 108637ed541caSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 108647ed541caSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y} 108657ed541caSmrgthen : 108667ed541caSmrg printf %s "(cached) " >&6 108677ed541caSmrgelse $as_nop 10868eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10869eea2e341Smrg/* end confdefs.h. */ 10870eea2e341Smrgint i; 10871eea2e341Smrg_ACEOF 108727ed541caSmrgif ac_fn_c_try_compile "$LINENO" 108737ed541caSmrgthen : 10874eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 108757ed541caSmrgelse $as_nop 10876eea2e341Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10877eea2e341Smrgfi 108787ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10879eea2e341Smrgfi 108807ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 108817ed541caSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10882eea2e341Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10883eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10884eea2e341Smrgfi 10885eea2e341Smrg 10886eea2e341Smrgfound="no" 10887eea2e341Smrg 10888eea2e341Smrg if test $found = "no" ; then 1088933dddc75Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10890eea2e341Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10891eea2e341Smrg fi 10892eea2e341Smrg 1089333dddc75Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10894eea2e341Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10895eea2e341Smrg fi 10896eea2e341Smrg 10897eea2e341Smrg CFLAGS="$CFLAGS -Werror=attributes" 10898eea2e341Smrg 108997ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 109007ed541caSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; } 1090133dddc75Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 109027ed541caSmrg if eval test \${$cacheid+y} 109037ed541caSmrgthen : 109047ed541caSmrg printf %s "(cached) " >&6 109057ed541caSmrgelse $as_nop 10906eea2e341Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10907eea2e341Smrg/* end confdefs.h. */ 10908eea2e341Smrgint i; 10909eea2e341Smrgint 109107ed541caSmrgmain (void) 10911eea2e341Smrg{ 10912eea2e341Smrg 10913eea2e341Smrg ; 10914eea2e341Smrg return 0; 10915eea2e341Smrg} 10916eea2e341Smrg_ACEOF 109177ed541caSmrgif ac_fn_c_try_link "$LINENO" 109187ed541caSmrgthen : 10919eea2e341Smrg eval $cacheid=yes 109207ed541caSmrgelse $as_nop 10921eea2e341Smrg eval $cacheid=no 10922eea2e341Smrgfi 109237ed541caSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \ 10924eea2e341Smrg conftest$ac_exeext conftest.$ac_ext 10925eea2e341Smrgfi 10926eea2e341Smrg 10927eea2e341Smrg 10928eea2e341Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10929eea2e341Smrg 10930eea2e341Smrg eval supported=\$$cacheid 109317ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 109327ed541caSmrgprintf "%s\n" "$supported" >&6; } 10933eea2e341Smrg if test "$supported" = "yes" ; then 10934eea2e341Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10935eea2e341Smrg found="yes" 10936eea2e341Smrg fi 10937eea2e341Smrg fi 10938eea2e341Smrg 10939eea2e341Smrg 10940eea2e341Smrg 10941eea2e341Smrgif test "x$STRICT_COMPILE" = "xyes"; then 10942eea2e341Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10943eea2e341Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10944eea2e341Smrgfi 10945eea2e341Smrg 10946eea2e341Smrg 10947dd77ae96Smrg 10948dd77ae96Smrg 10949dd77ae96Smrg 10950dd77ae96Smrg 10951dd77ae96Smrgcat >>confdefs.h <<_ACEOF 10952dd77ae96Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10953dd77ae96Smrg_ACEOF 10954dd77ae96Smrg 10955dd77ae96Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10956dd77ae96Smrg if test "x$PVM" = "x"; then 10957dd77ae96Smrg PVM="0" 10958dd77ae96Smrg fi 10959dd77ae96Smrg 109607ed541caSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10961dd77ae96Smrg 10962dd77ae96Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10963dd77ae96Smrg if test "x$PVP" = "x"; then 10964dd77ae96Smrg PVP="0" 10965dd77ae96Smrg fi 10966dd77ae96Smrg 109677ed541caSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10968dd77ae96Smrg 10969dd77ae96Smrg 10970dd77ae96Smrg 109717ed541caSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 1097208e312fdSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 109737ed541caSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 109747ed541caSmrgtouch \$(top_srcdir)/ChangeLog; \ 109757ed541caSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10976dd77ae96Smrg 1097708e312fdSmrg 1097808e312fdSmrg 1097908e312fdSmrg 1098008e312fdSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 1098108e312fdSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 1098208e312fdSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 109837ed541caSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 109847ed541caSmrgtouch \$(top_srcdir)/INSTALL; \ 109857ed541caSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 109867ed541caSmrg 1098708e312fdSmrg 10988dd77ae96Smrg 10989dd77ae96Smrg 10990dd77ae96Smrg 10991dd77ae96Smrg 109927ed541caSmrgcase $host_os in 109937ed541caSmrg solaris*) 109947ed541caSmrg # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 109957ed541caSmrg # check for a man page file found in later versions that use 109967ed541caSmrg # traditional section numbers instead 109977ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 109987ed541caSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 109997ed541caSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 110007ed541caSmrgthen : 110017ed541caSmrg printf %s "(cached) " >&6 110027ed541caSmrgelse $as_nop 110037ed541caSmrg test "$cross_compiling" = yes && 110047ed541caSmrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 110057ed541caSmrgif test -r "/usr/share/man/man7/attributes.7"; then 110067ed541caSmrg ac_cv_file__usr_share_man_man7_attributes_7=yes 110077ed541caSmrgelse 110087ed541caSmrg ac_cv_file__usr_share_man_man7_attributes_7=no 110097ed541caSmrgfi 110107ed541caSmrgfi 110117ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 110127ed541caSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 110137ed541caSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 110147ed541caSmrgthen : 110157ed541caSmrg SYSV_MAN_SECTIONS=false 110167ed541caSmrgelse $as_nop 110177ed541caSmrg SYSV_MAN_SECTIONS=true 110187ed541caSmrgfi 110197ed541caSmrg 110207ed541caSmrg ;; 110217ed541caSmrg *) SYSV_MAN_SECTIONS=false ;; 110227ed541caSmrgesac 11023dd77ae96Smrg 11024dd77ae96Smrgif test x$APP_MAN_SUFFIX = x ; then 11025dd77ae96Smrg APP_MAN_SUFFIX=1 11026dd77ae96Smrgfi 11027dd77ae96Smrgif test x$APP_MAN_DIR = x ; then 11028dd77ae96Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11029dd77ae96Smrgfi 11030dd77ae96Smrg 11031dd77ae96Smrgif test x$LIB_MAN_SUFFIX = x ; then 11032dd77ae96Smrg LIB_MAN_SUFFIX=3 11033dd77ae96Smrgfi 11034dd77ae96Smrgif test x$LIB_MAN_DIR = x ; then 11035dd77ae96Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11036dd77ae96Smrgfi 11037dd77ae96Smrg 11038dd77ae96Smrgif test x$FILE_MAN_SUFFIX = x ; then 110397ed541caSmrg case $SYSV_MAN_SECTIONS in 110407ed541caSmrg true) FILE_MAN_SUFFIX=4 ;; 110417ed541caSmrg *) FILE_MAN_SUFFIX=5 ;; 11042dd77ae96Smrg esac 11043dd77ae96Smrgfi 11044dd77ae96Smrgif test x$FILE_MAN_DIR = x ; then 11045dd77ae96Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11046dd77ae96Smrgfi 11047dd77ae96Smrg 11048dd77ae96Smrgif test x$MISC_MAN_SUFFIX = x ; then 110497ed541caSmrg case $SYSV_MAN_SECTIONS in 110507ed541caSmrg true) MISC_MAN_SUFFIX=5 ;; 110517ed541caSmrg *) MISC_MAN_SUFFIX=7 ;; 11052dd77ae96Smrg esac 11053dd77ae96Smrgfi 11054dd77ae96Smrgif test x$MISC_MAN_DIR = x ; then 11055dd77ae96Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11056dd77ae96Smrgfi 11057dd77ae96Smrg 11058dd77ae96Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 110597ed541caSmrg case $SYSV_MAN_SECTIONS in 110607ed541caSmrg true) DRIVER_MAN_SUFFIX=7 ;; 110617ed541caSmrg *) DRIVER_MAN_SUFFIX=4 ;; 11062dd77ae96Smrg esac 11063dd77ae96Smrgfi 11064dd77ae96Smrgif test x$DRIVER_MAN_DIR = x ; then 11065dd77ae96Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11066dd77ae96Smrgfi 11067dd77ae96Smrg 11068dd77ae96Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 110697ed541caSmrg case $SYSV_MAN_SECTIONS in 110707ed541caSmrg true) ADMIN_MAN_SUFFIX=1m ;; 110717ed541caSmrg *) ADMIN_MAN_SUFFIX=8 ;; 11072dd77ae96Smrg esac 11073dd77ae96Smrgfi 11074dd77ae96Smrgif test x$ADMIN_MAN_DIR = x ; then 11075dd77ae96Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11076dd77ae96Smrgfi 11077dd77ae96Smrg 11078dd77ae96Smrg 11079dd77ae96Smrg 11080dd77ae96Smrg 11081dd77ae96Smrg 11082dd77ae96Smrg 11083dd77ae96Smrg 11084dd77ae96Smrg 11085dd77ae96Smrg 11086dd77ae96Smrg 11087dd77ae96Smrg 11088dd77ae96Smrg 11089dd77ae96Smrg 11090dd77ae96Smrg 11091dd77ae96Smrg 1109208e312fdSmrgXORG_MAN_PAGE="X Version 11" 11093dd77ae96Smrg 1109408e312fdSmrgMAN_SUBSTS="\ 1109508e312fdSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1109608e312fdSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1109708e312fdSmrg -e 's|__xservername__|Xorg|g' \ 1109808e312fdSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 1109908e312fdSmrg -e 's|__projectroot__|\$(prefix)|g' \ 1110008e312fdSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1110108e312fdSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1110208e312fdSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1110308e312fdSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1110408e312fdSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1110508e312fdSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1110608e312fdSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11107dd77ae96Smrg 1110872b4363aSmrg 1110972b4363aSmrg 1111008e312fdSmrg# Check whether --enable-silent-rules was given. 111117ed541caSmrgif test ${enable_silent_rules+y} 111127ed541caSmrgthen : 1111308e312fdSmrg enableval=$enable_silent_rules; 1111472b4363aSmrgfi 1111572b4363aSmrg 1111633dddc75Smrgcase $enable_silent_rules in # ((( 1111733dddc75Smrg yes) AM_DEFAULT_VERBOSITY=0;; 1111833dddc75Smrg no) AM_DEFAULT_VERBOSITY=1;; 1111933dddc75Smrg *) AM_DEFAULT_VERBOSITY=0;; 1112008e312fdSmrgesac 1112133dddc75Smrgam_make=${MAKE-make} 111227ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 111237ed541caSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; } 111247ed541caSmrgif test ${am_cv_make_support_nested_variables+y} 111257ed541caSmrgthen : 111267ed541caSmrg printf %s "(cached) " >&6 111277ed541caSmrgelse $as_nop 111287ed541caSmrg if printf "%s\n" 'TRUE=$(BAR$(V)) 1112933dddc75SmrgBAR0=false 1113033dddc75SmrgBAR1=true 1113133dddc75SmrgV=1 1113233dddc75Smrgam__doit: 1113333dddc75Smrg @$(TRUE) 1113433dddc75Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 1113533dddc75Smrg am_cv_make_support_nested_variables=yes 1113633dddc75Smrgelse 1113733dddc75Smrg am_cv_make_support_nested_variables=no 1113833dddc75Smrgfi 1113933dddc75Smrgfi 111407ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 111417ed541caSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 1114233dddc75Smrgif test $am_cv_make_support_nested_variables = yes; then 1114333dddc75Smrg AM_V='$(V)' 1114433dddc75Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1114533dddc75Smrgelse 1114633dddc75Smrg AM_V=$AM_DEFAULT_VERBOSITY 1114733dddc75Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1114833dddc75Smrgfi 1114908e312fdSmrgAM_BACKSLASH='\' 1115008e312fdSmrg 1115108e312fdSmrg 1115208e312fdSmrg 111537ed541caSmrgac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof" 111547ed541caSmrgif test "x$ac_cv_func_strtof" = xyes 111557ed541caSmrgthen : 111567ed541caSmrg printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h 111577ed541caSmrg 111587ed541caSmrgfi 111597ed541caSmrg 111607ed541caSmrg 1116108e312fdSmrg# Checks for pkg-config packages 1116208e312fdSmrg 11163dd77ae96Smrgpkg_failed=no 111647ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGAMMA" >&5 111657ed541caSmrgprintf %s "checking for XGAMMA... " >&6; } 11166dd77ae96Smrg 11167dd77ae96Smrgif test -n "$XGAMMA_CFLAGS"; then 11168dd77ae96Smrg pkg_cv_XGAMMA_CFLAGS="$XGAMMA_CFLAGS" 11169dd77ae96Smrg elif test -n "$PKG_CONFIG"; then 11170dd77ae96Smrg if test -n "$PKG_CONFIG" && \ 111717ed541caSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xxf86vm xproto >= 7.0.17\""; } >&5 1117233dddc75Smrg ($PKG_CONFIG --exists --print-errors "x11 xxf86vm xproto >= 7.0.17") 2>&5 11173dd77ae96Smrg ac_status=$? 111747ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1117508e312fdSmrg test $ac_status = 0; }; then 1117633dddc75Smrg pkg_cv_XGAMMA_CFLAGS=`$PKG_CONFIG --cflags "x11 xxf86vm xproto >= 7.0.17" 2>/dev/null` 111777ed541caSmrg test "x$?" != "x0" && pkg_failed=yes 11178dd77ae96Smrgelse 11179dd77ae96Smrg pkg_failed=yes 1118072b4363aSmrgfi 11181dd77ae96Smrg else 11182dd77ae96Smrg pkg_failed=untried 1118372b4363aSmrgfi 11184dd77ae96Smrgif test -n "$XGAMMA_LIBS"; then 11185dd77ae96Smrg pkg_cv_XGAMMA_LIBS="$XGAMMA_LIBS" 11186dd77ae96Smrg elif test -n "$PKG_CONFIG"; then 11187dd77ae96Smrg if test -n "$PKG_CONFIG" && \ 111887ed541caSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xxf86vm xproto >= 7.0.17\""; } >&5 1118933dddc75Smrg ($PKG_CONFIG --exists --print-errors "x11 xxf86vm xproto >= 7.0.17") 2>&5 11190dd77ae96Smrg ac_status=$? 111917ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1119208e312fdSmrg test $ac_status = 0; }; then 1119333dddc75Smrg pkg_cv_XGAMMA_LIBS=`$PKG_CONFIG --libs "x11 xxf86vm xproto >= 7.0.17" 2>/dev/null` 111947ed541caSmrg test "x$?" != "x0" && pkg_failed=yes 11195dd77ae96Smrgelse 11196dd77ae96Smrg pkg_failed=yes 1119772b4363aSmrgfi 11198dd77ae96Smrg else 11199dd77ae96Smrg pkg_failed=untried 1120072b4363aSmrgfi 1120172b4363aSmrg 1120272b4363aSmrg 1120372b4363aSmrg 11204dd77ae96Smrgif test $pkg_failed = yes; then 112057ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 112067ed541caSmrgprintf "%s\n" "no" >&6; } 1120772b4363aSmrg 11208dd77ae96Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11209dd77ae96Smrg _pkg_short_errors_supported=yes 11210dd77ae96Smrgelse 11211dd77ae96Smrg _pkg_short_errors_supported=no 11212dd77ae96Smrgfi 11213dd77ae96Smrg if test $_pkg_short_errors_supported = yes; then 112147ed541caSmrg XGAMMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xxf86vm xproto >= 7.0.17" 2>&1` 11215dd77ae96Smrg else 112167ed541caSmrg XGAMMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xxf86vm xproto >= 7.0.17" 2>&1` 11217dd77ae96Smrg fi 11218dd77ae96Smrg # Put the nasty error message in config.log where it belongs 11219dd77ae96Smrg echo "$XGAMMA_PKG_ERRORS" >&5 1122072b4363aSmrg 1122133dddc75Smrg as_fn_error $? "Package requirements (x11 xxf86vm xproto >= 7.0.17) were not met: 1122272b4363aSmrg 11223dd77ae96Smrg$XGAMMA_PKG_ERRORS 1122472b4363aSmrg 11225dd77ae96SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 11226dd77ae96Smrginstalled software in a non-standard prefix. 1122772b4363aSmrg 11228dd77ae96SmrgAlternatively, you may set the environment variables XGAMMA_CFLAGS 11229dd77ae96Smrgand XGAMMA_LIBS to avoid the need to call pkg-config. 112307ed541caSmrgSee the pkg-config man page for more details." "$LINENO" 5 11231dd77ae96Smrgelif test $pkg_failed = untried; then 112327ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 112337ed541caSmrgprintf "%s\n" "no" >&6; } 112347ed541caSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 112357ed541caSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1123608e312fdSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11237dd77ae96Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 11238dd77ae96Smrgpath to pkg-config. 1123972b4363aSmrg 11240dd77ae96SmrgAlternatively, you may set the environment variables XGAMMA_CFLAGS 11241dd77ae96Smrgand XGAMMA_LIBS to avoid the need to call pkg-config. 11242dd77ae96SmrgSee the pkg-config man page for more details. 1124372b4363aSmrg 11244dd77ae96SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 1124508e312fdSmrgSee \`config.log' for more details" "$LINENO" 5; } 1124672b4363aSmrgelse 11247dd77ae96Smrg XGAMMA_CFLAGS=$pkg_cv_XGAMMA_CFLAGS 11248dd77ae96Smrg XGAMMA_LIBS=$pkg_cv_XGAMMA_LIBS 112497ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 112507ed541caSmrgprintf "%s\n" "yes" >&6; } 112517ed541caSmrg 1125272b4363aSmrgfi 1125372b4363aSmrg 11254eea2e341Smrgac_config_files="$ac_config_files Makefile man/Makefile" 1125572b4363aSmrg 1125672b4363aSmrgcat >confcache <<\_ACEOF 1125772b4363aSmrg# This file is a shell script that caches the results of configure 1125872b4363aSmrg# tests run on this system so they can be shared between configure 1125972b4363aSmrg# scripts and configure runs, see configure's option --config-cache. 1126072b4363aSmrg# It is not useful on other systems. If it contains results you don't 1126172b4363aSmrg# want to keep, you may remove or edit it. 1126272b4363aSmrg# 1126372b4363aSmrg# config.status only pays attention to the cache file if you give it 1126472b4363aSmrg# the --recheck option to rerun configure. 1126572b4363aSmrg# 1126672b4363aSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 1126772b4363aSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 1126872b4363aSmrg# following values. 1126972b4363aSmrg 1127072b4363aSmrg_ACEOF 1127172b4363aSmrg 1127272b4363aSmrg# The following way of writing the cache mishandles newlines in values, 1127372b4363aSmrg# but we know of no workaround that is simple, portable, and efficient. 1127472b4363aSmrg# So, we kill variables containing newlines. 1127572b4363aSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 1127672b4363aSmrg# and sets the high bit in the cache file unless we assign to the vars. 1127772b4363aSmrg( 1127872b4363aSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 1127972b4363aSmrg eval ac_val=\$$ac_var 1128072b4363aSmrg case $ac_val in #( 1128172b4363aSmrg *${as_nl}*) 1128272b4363aSmrg case $ac_var in #( 112837ed541caSmrg *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 112847ed541caSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1128572b4363aSmrg esac 1128672b4363aSmrg case $ac_var in #( 1128772b4363aSmrg _ | IFS | as_nl) ;; #( 11288dd77ae96Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1128908e312fdSmrg *) { eval $ac_var=; unset $ac_var;} ;; 1129072b4363aSmrg esac ;; 1129172b4363aSmrg esac 1129272b4363aSmrg done 1129372b4363aSmrg 1129472b4363aSmrg (set) 2>&1 | 1129572b4363aSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 1129672b4363aSmrg *${as_nl}ac_space=\ *) 1129708e312fdSmrg # `set' does not quote correctly, so add quotes: double-quote 1129808e312fdSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 1129972b4363aSmrg sed -n \ 1130072b4363aSmrg "s/'/'\\\\''/g; 1130172b4363aSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 1130272b4363aSmrg ;; #( 1130372b4363aSmrg *) 1130472b4363aSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 1130572b4363aSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1130672b4363aSmrg ;; 1130772b4363aSmrg esac | 1130872b4363aSmrg sort 1130972b4363aSmrg) | 1131072b4363aSmrg sed ' 1131172b4363aSmrg /^ac_cv_env_/b end 1131272b4363aSmrg t clear 1131372b4363aSmrg :clear 113147ed541caSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 1131572b4363aSmrg t end 1131672b4363aSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 1131772b4363aSmrg :end' >>confcache 1131872b4363aSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 1131972b4363aSmrg if test -w "$cache_file"; then 1132008e312fdSmrg if test "x$cache_file" != "x/dev/null"; then 113217ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 113227ed541caSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;} 1132308e312fdSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 1132408e312fdSmrg cat confcache >"$cache_file" 1132508e312fdSmrg else 1132608e312fdSmrg case $cache_file in #( 1132708e312fdSmrg */* | ?:*) 1132808e312fdSmrg mv -f confcache "$cache_file"$$ && 1132908e312fdSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 1133008e312fdSmrg *) 1133108e312fdSmrg mv -f confcache "$cache_file" ;; 1133208e312fdSmrg esac 1133308e312fdSmrg fi 1133408e312fdSmrg fi 1133572b4363aSmrg else 113367ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 113377ed541caSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 1133872b4363aSmrg fi 1133972b4363aSmrgfi 1134072b4363aSmrgrm -f confcache 1134172b4363aSmrg 1134272b4363aSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 1134372b4363aSmrg# Let make expand exec_prefix. 1134472b4363aSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1134572b4363aSmrg 1134672b4363aSmrgDEFS=-DHAVE_CONFIG_H 1134772b4363aSmrg 1134872b4363aSmrgac_libobjs= 1134972b4363aSmrgac_ltlibobjs= 1135008e312fdSmrgU= 1135172b4363aSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 1135272b4363aSmrg # 1. Remove the extension, and $U if already installed. 1135372b4363aSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 113547ed541caSmrg ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 1135572b4363aSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 1135672b4363aSmrg # will be set to the directory where LIBOBJS objects are built. 1135708e312fdSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 1135808e312fdSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 1135972b4363aSmrgdone 1136072b4363aSmrgLIBOBJS=$ac_libobjs 1136172b4363aSmrg 1136272b4363aSmrgLTLIBOBJS=$ac_ltlibobjs 1136372b4363aSmrg 1136472b4363aSmrg 113657ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 113667ed541caSmrgprintf %s "checking that generated files are newer than configure... " >&6; } 1136733dddc75Smrg if test -n "$am_sleep_pid"; then 1136833dddc75Smrg # Hide warnings about reused PIDs. 1136933dddc75Smrg wait $am_sleep_pid 2>/dev/null 1137033dddc75Smrg fi 113717ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 113727ed541caSmrgprintf "%s\n" "done" >&6; } 11373dd77ae96Smrg if test -n "$EXEEXT"; then 11374dd77ae96Smrg am__EXEEXT_TRUE= 11375dd77ae96Smrg am__EXEEXT_FALSE='#' 11376dd77ae96Smrgelse 11377dd77ae96Smrg am__EXEEXT_TRUE='#' 11378dd77ae96Smrg am__EXEEXT_FALSE= 11379dd77ae96Smrgfi 11380dd77ae96Smrg 1138172b4363aSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 1138208e312fdSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 1138308e312fdSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1138472b4363aSmrgfi 1138572b4363aSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1138608e312fdSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 1138708e312fdSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1138872b4363aSmrgfi 1138972b4363aSmrg 1139008e312fdSmrg: "${CONFIG_STATUS=./config.status}" 11391dd77ae96Smrgac_write_fail=0 1139272b4363aSmrgac_clean_files_save=$ac_clean_files 1139372b4363aSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 113947ed541caSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 113957ed541caSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 1139608e312fdSmrgas_write_fail=0 1139708e312fdSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 1139872b4363aSmrg#! $SHELL 1139972b4363aSmrg# Generated by $as_me. 1140072b4363aSmrg# Run this file to recreate the current configuration. 1140172b4363aSmrg# Compiler output produced by configure, useful for debugging 1140272b4363aSmrg# configure, is in config.log if it exists. 1140372b4363aSmrg 1140472b4363aSmrgdebug=false 1140572b4363aSmrgac_cs_recheck=false 1140672b4363aSmrgac_cs_silent=false 1140772b4363aSmrg 1140808e312fdSmrgSHELL=\${CONFIG_SHELL-$SHELL} 1140908e312fdSmrgexport SHELL 1141008e312fdSmrg_ASEOF 1141108e312fdSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 1141208e312fdSmrg## -------------------- ## 1141308e312fdSmrg## M4sh Initialization. ## 1141408e312fdSmrg## -------------------- ## 1141572b4363aSmrg 1141672b4363aSmrg# Be more Bourne compatible 1141772b4363aSmrgDUALCASE=1; export DUALCASE # for MKS sh 114187ed541caSmrgas_nop=: 114197ed541caSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 114207ed541caSmrgthen : 1142172b4363aSmrg emulate sh 1142272b4363aSmrg NULLCMD=: 11423dd77ae96Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 1142472b4363aSmrg # is contrary to our usage. Disable this feature. 1142572b4363aSmrg alias -g '${1+"$@"}'='"$@"' 1142672b4363aSmrg setopt NO_GLOB_SUBST 114277ed541caSmrgelse $as_nop 1142808e312fdSmrg case `(set -o) 2>/dev/null` in #( 1142908e312fdSmrg *posix*) : 1143008e312fdSmrg set -o posix ;; #( 1143108e312fdSmrg *) : 1143208e312fdSmrg ;; 1143372b4363aSmrgesac 1143472b4363aSmrgfi 1143572b4363aSmrg 1143672b4363aSmrg 114377ed541caSmrg 114387ed541caSmrg# Reset variables that may have inherited troublesome values from 114397ed541caSmrg# the environment. 114407ed541caSmrg 114417ed541caSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order. 114427ed541caSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the 114437ed541caSmrg# side effect of setting IFS to empty, thus disabling word splitting.) 114447ed541caSmrg# Quoting is to prevent editors from complaining about space-tab. 11445dd77ae96Smrgas_nl=' 11446dd77ae96Smrg' 11447dd77ae96Smrgexport as_nl 114487ed541caSmrgIFS=" "" $as_nl" 114497ed541caSmrg 114507ed541caSmrgPS1='$ ' 114517ed541caSmrgPS2='> ' 114527ed541caSmrgPS4='+ ' 114537ed541caSmrg 114547ed541caSmrg# Ensure predictable behavior from utilities with locale-dependent output. 114557ed541caSmrgLC_ALL=C 114567ed541caSmrgexport LC_ALL 114577ed541caSmrgLANGUAGE=C 114587ed541caSmrgexport LANGUAGE 114597ed541caSmrg 114607ed541caSmrg# We cannot yet rely on "unset" to work, but we need these variables 114617ed541caSmrg# to be unset--not just set to an empty or harmless value--now, to 114627ed541caSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 114637ed541caSmrg# also avoids known problems related to "unset" and subshell syntax 114647ed541caSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 114657ed541caSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 114667ed541caSmrgdo eval test \${$as_var+y} \ 114677ed541caSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 114687ed541caSmrgdone 114697ed541caSmrg 114707ed541caSmrg# Ensure that fds 0, 1, and 2 are open. 114717ed541caSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 114727ed541caSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 114737ed541caSmrgif (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11474dd77ae96Smrg 11475dd77ae96Smrg# The user is always right. 114767ed541caSmrgif ${PATH_SEPARATOR+false} :; then 11477dd77ae96Smrg PATH_SEPARATOR=: 11478dd77ae96Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11479dd77ae96Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11480dd77ae96Smrg PATH_SEPARATOR=';' 11481dd77ae96Smrg } 1148272b4363aSmrgfi 1148372b4363aSmrg 1148472b4363aSmrg 1148572b4363aSmrg# Find who we are. Look in the path if we contain no directory separator. 1148608e312fdSmrgas_myself= 1148708e312fdSmrgcase $0 in #(( 1148872b4363aSmrg *[\\/]* ) as_myself=$0 ;; 1148972b4363aSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1149072b4363aSmrgfor as_dir in $PATH 1149172b4363aSmrgdo 1149272b4363aSmrg IFS=$as_save_IFS 114937ed541caSmrg case $as_dir in #((( 114947ed541caSmrg '') as_dir=./ ;; 114957ed541caSmrg */) ;; 114967ed541caSmrg *) as_dir=$as_dir/ ;; 114977ed541caSmrg esac 114987ed541caSmrg test -r "$as_dir$0" && as_myself=$as_dir$0 && break 1149908e312fdSmrg done 1150072b4363aSmrgIFS=$as_save_IFS 1150172b4363aSmrg 1150272b4363aSmrg ;; 1150372b4363aSmrgesac 1150472b4363aSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1150572b4363aSmrg# in which case we are not to be found in the path. 1150672b4363aSmrgif test "x$as_myself" = x; then 1150772b4363aSmrg as_myself=$0 1150872b4363aSmrgfi 1150972b4363aSmrgif test ! -f "$as_myself"; then 115107ed541caSmrg printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1151108e312fdSmrg exit 1 1151272b4363aSmrgfi 1151372b4363aSmrg 1151408e312fdSmrg 1151508e312fdSmrg 1151608e312fdSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 1151708e312fdSmrg# ---------------------------------------- 1151808e312fdSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 1151908e312fdSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 1152008e312fdSmrg# script with STATUS, using 1 if that was 0. 1152108e312fdSmrgas_fn_error () 1152208e312fdSmrg{ 1152308e312fdSmrg as_status=$1; test $as_status -eq 0 && as_status=1 1152408e312fdSmrg if test "$4"; then 1152508e312fdSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 115267ed541caSmrg printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 1152708e312fdSmrg fi 115287ed541caSmrg printf "%s\n" "$as_me: error: $2" >&2 1152908e312fdSmrg as_fn_exit $as_status 1153008e312fdSmrg} # as_fn_error 1153108e312fdSmrg 1153208e312fdSmrg 115337ed541caSmrg 1153408e312fdSmrg# as_fn_set_status STATUS 1153508e312fdSmrg# ----------------------- 1153608e312fdSmrg# Set $? to STATUS, without forking. 1153708e312fdSmrgas_fn_set_status () 1153808e312fdSmrg{ 1153908e312fdSmrg return $1 1154008e312fdSmrg} # as_fn_set_status 1154108e312fdSmrg 1154208e312fdSmrg# as_fn_exit STATUS 1154308e312fdSmrg# ----------------- 1154408e312fdSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 1154508e312fdSmrgas_fn_exit () 1154608e312fdSmrg{ 1154708e312fdSmrg set +e 1154808e312fdSmrg as_fn_set_status $1 1154908e312fdSmrg exit $1 1155008e312fdSmrg} # as_fn_exit 1155108e312fdSmrg 1155208e312fdSmrg# as_fn_unset VAR 1155308e312fdSmrg# --------------- 1155408e312fdSmrg# Portably unset VAR. 1155508e312fdSmrgas_fn_unset () 1155608e312fdSmrg{ 1155708e312fdSmrg { eval $1=; unset $1;} 1155808e312fdSmrg} 1155908e312fdSmrgas_unset=as_fn_unset 115607ed541caSmrg 1156108e312fdSmrg# as_fn_append VAR VALUE 1156208e312fdSmrg# ---------------------- 1156308e312fdSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 1156408e312fdSmrg# advantage of any shell optimizations that allow amortized linear growth over 1156508e312fdSmrg# repeated appends, instead of the typical quadratic growth present in naive 1156608e312fdSmrg# implementations. 115677ed541caSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 115687ed541caSmrgthen : 1156908e312fdSmrg eval 'as_fn_append () 1157008e312fdSmrg { 1157108e312fdSmrg eval $1+=\$2 1157208e312fdSmrg }' 115737ed541caSmrgelse $as_nop 1157408e312fdSmrg as_fn_append () 1157508e312fdSmrg { 1157608e312fdSmrg eval $1=\$$1\$2 1157708e312fdSmrg } 1157808e312fdSmrgfi # as_fn_append 1157908e312fdSmrg 1158008e312fdSmrg# as_fn_arith ARG... 1158108e312fdSmrg# ------------------ 1158208e312fdSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 1158308e312fdSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 1158408e312fdSmrg# must be portable across $(()) and expr. 115857ed541caSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 115867ed541caSmrgthen : 1158708e312fdSmrg eval 'as_fn_arith () 1158808e312fdSmrg { 1158908e312fdSmrg as_val=$(( $* )) 1159008e312fdSmrg }' 115917ed541caSmrgelse $as_nop 1159208e312fdSmrg as_fn_arith () 1159308e312fdSmrg { 1159408e312fdSmrg as_val=`expr "$@" || test $? -eq 1` 1159508e312fdSmrg } 1159608e312fdSmrgfi # as_fn_arith 1159708e312fdSmrg 1159808e312fdSmrg 1159972b4363aSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 1160072b4363aSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 1160172b4363aSmrg as_expr=expr 1160272b4363aSmrgelse 1160372b4363aSmrg as_expr=false 1160472b4363aSmrgfi 1160572b4363aSmrg 1160672b4363aSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 1160772b4363aSmrg as_basename=basename 1160872b4363aSmrgelse 1160972b4363aSmrg as_basename=false 1161072b4363aSmrgfi 1161172b4363aSmrg 1161208e312fdSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 1161308e312fdSmrg as_dirname=dirname 1161408e312fdSmrgelse 1161508e312fdSmrg as_dirname=false 1161608e312fdSmrgfi 1161772b4363aSmrg 1161872b4363aSmrgas_me=`$as_basename -- "$0" || 1161972b4363aSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 1162072b4363aSmrg X"$0" : 'X\(//\)$' \| \ 1162172b4363aSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 116227ed541caSmrgprintf "%s\n" X/"$0" | 1162372b4363aSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 1162472b4363aSmrg s//\1/ 1162572b4363aSmrg q 1162672b4363aSmrg } 1162772b4363aSmrg /^X\/\(\/\/\)$/{ 1162872b4363aSmrg s//\1/ 1162972b4363aSmrg q 1163072b4363aSmrg } 1163172b4363aSmrg /^X\/\(\/\).*/{ 1163272b4363aSmrg s//\1/ 1163372b4363aSmrg q 1163472b4363aSmrg } 1163572b4363aSmrg s/.*/./; q'` 1163672b4363aSmrg 1163708e312fdSmrg# Avoid depending upon Character Ranges. 1163808e312fdSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 1163908e312fdSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 1164008e312fdSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 1164108e312fdSmrgas_cr_digits='0123456789' 1164208e312fdSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 1164372b4363aSmrg 116447ed541caSmrg 116457ed541caSmrg# Determine whether it's possible to make 'echo' print without a newline. 116467ed541caSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 116477ed541caSmrg# for compatibility with existing Makefiles. 1164872b4363aSmrgECHO_C= ECHO_N= ECHO_T= 1164908e312fdSmrgcase `echo -n x` in #((((( 1165072b4363aSmrg-n*) 1165108e312fdSmrg case `echo 'xy\c'` in 1165272b4363aSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 1165308e312fdSmrg xy) ECHO_C='\c';; 1165408e312fdSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 1165508e312fdSmrg ECHO_T=' ';; 1165672b4363aSmrg esac;; 1165772b4363aSmrg*) 1165872b4363aSmrg ECHO_N='-n';; 1165972b4363aSmrgesac 1166072b4363aSmrg 116617ed541caSmrg# For backward compatibility with old third-party macros, we provide 116627ed541caSmrg# the shell variables $as_echo and $as_echo_n. New code should use 116637ed541caSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 116647ed541caSmrgas_echo='printf %s\n' 116657ed541caSmrgas_echo_n='printf %s' 116667ed541caSmrg 1166772b4363aSmrgrm -f conf$$ conf$$.exe conf$$.file 1166872b4363aSmrgif test -d conf$$.dir; then 1166972b4363aSmrg rm -f conf$$.dir/conf$$.file 1167072b4363aSmrgelse 1167172b4363aSmrg rm -f conf$$.dir 11672dd77ae96Smrg mkdir conf$$.dir 2>/dev/null 11673dd77ae96Smrgfi 11674dd77ae96Smrgif (echo >conf$$.file) 2>/dev/null; then 11675dd77ae96Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 11676dd77ae96Smrg as_ln_s='ln -s' 11677dd77ae96Smrg # ... but there are two gotchas: 11678dd77ae96Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11679dd77ae96Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 1168033dddc75Smrg # In both cases, we have to default to `cp -pR'. 11681dd77ae96Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 1168233dddc75Smrg as_ln_s='cp -pR' 11683dd77ae96Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 11684dd77ae96Smrg as_ln_s=ln 11685dd77ae96Smrg else 1168633dddc75Smrg as_ln_s='cp -pR' 11687dd77ae96Smrg fi 1168872b4363aSmrgelse 1168933dddc75Smrg as_ln_s='cp -pR' 1169072b4363aSmrgfi 1169172b4363aSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 1169272b4363aSmrgrmdir conf$$.dir 2>/dev/null 1169372b4363aSmrg 1169408e312fdSmrg 1169508e312fdSmrg# as_fn_mkdir_p 1169608e312fdSmrg# ------------- 1169708e312fdSmrg# Create "$as_dir" as a directory, including parents if necessary. 1169808e312fdSmrgas_fn_mkdir_p () 1169908e312fdSmrg{ 1170008e312fdSmrg 1170108e312fdSmrg case $as_dir in #( 1170208e312fdSmrg -*) as_dir=./$as_dir;; 1170308e312fdSmrg esac 1170408e312fdSmrg test -d "$as_dir" || eval $as_mkdir_p || { 1170508e312fdSmrg as_dirs= 1170608e312fdSmrg while :; do 1170708e312fdSmrg case $as_dir in #( 117087ed541caSmrg *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 1170908e312fdSmrg *) as_qdir=$as_dir;; 1171008e312fdSmrg esac 1171108e312fdSmrg as_dirs="'$as_qdir' $as_dirs" 1171208e312fdSmrg as_dir=`$as_dirname -- "$as_dir" || 1171308e312fdSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1171408e312fdSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 1171508e312fdSmrg X"$as_dir" : 'X\(//\)$' \| \ 1171608e312fdSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 117177ed541caSmrgprintf "%s\n" X"$as_dir" | 1171808e312fdSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1171908e312fdSmrg s//\1/ 1172008e312fdSmrg q 1172108e312fdSmrg } 1172208e312fdSmrg /^X\(\/\/\)[^/].*/{ 1172308e312fdSmrg s//\1/ 1172408e312fdSmrg q 1172508e312fdSmrg } 1172608e312fdSmrg /^X\(\/\/\)$/{ 1172708e312fdSmrg s//\1/ 1172808e312fdSmrg q 1172908e312fdSmrg } 1173008e312fdSmrg /^X\(\/\).*/{ 1173108e312fdSmrg s//\1/ 1173208e312fdSmrg q 1173308e312fdSmrg } 1173408e312fdSmrg s/.*/./; q'` 1173508e312fdSmrg test -d "$as_dir" && break 1173608e312fdSmrg done 1173708e312fdSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 1173808e312fdSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 1173908e312fdSmrg 1174008e312fdSmrg 1174108e312fdSmrg} # as_fn_mkdir_p 1174272b4363aSmrgif mkdir -p . 2>/dev/null; then 1174308e312fdSmrg as_mkdir_p='mkdir -p "$as_dir"' 1174472b4363aSmrgelse 1174572b4363aSmrg test -d ./-p && rmdir ./-p 1174672b4363aSmrg as_mkdir_p=false 1174772b4363aSmrgfi 1174872b4363aSmrg 1174933dddc75Smrg 1175033dddc75Smrg# as_fn_executable_p FILE 1175133dddc75Smrg# ----------------------- 1175233dddc75Smrg# Test if FILE is an executable regular file. 1175333dddc75Smrgas_fn_executable_p () 1175433dddc75Smrg{ 1175533dddc75Smrg test -f "$1" && test -x "$1" 1175633dddc75Smrg} # as_fn_executable_p 1175733dddc75Smrgas_test_x='test -x' 1175833dddc75Smrgas_executable_p=as_fn_executable_p 1175972b4363aSmrg 1176072b4363aSmrg# Sed expression to map a string onto a valid CPP name. 1176172b4363aSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 1176272b4363aSmrg 1176372b4363aSmrg# Sed expression to map a string onto a valid variable name. 1176472b4363aSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 1176572b4363aSmrg 1176672b4363aSmrg 1176772b4363aSmrgexec 6>&1 1176808e312fdSmrg## ----------------------------------- ## 1176908e312fdSmrg## Main body of $CONFIG_STATUS script. ## 1177008e312fdSmrg## ----------------------------------- ## 1177108e312fdSmrg_ASEOF 1177208e312fdSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 1177372b4363aSmrg 1177408e312fdSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1177508e312fdSmrg# Save the log message, to keep $0 and so on meaningful, and to 1177672b4363aSmrg# report actual input values of CONFIG_FILES etc. instead of their 1177772b4363aSmrg# values after options handling. 1177872b4363aSmrgac_log=" 117797ed541caSmrgThis file was extended by xgamma $as_me 1.0.7, which was 117807ed541caSmrggenerated by GNU Autoconf 2.71. Invocation command line was 1178172b4363aSmrg 1178272b4363aSmrg CONFIG_FILES = $CONFIG_FILES 1178372b4363aSmrg CONFIG_HEADERS = $CONFIG_HEADERS 1178472b4363aSmrg CONFIG_LINKS = $CONFIG_LINKS 1178572b4363aSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 1178672b4363aSmrg $ $0 $@ 1178772b4363aSmrg 1178872b4363aSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 1178972b4363aSmrg" 1179072b4363aSmrg 1179172b4363aSmrg_ACEOF 1179272b4363aSmrg 11793dd77ae96Smrgcase $ac_config_files in *" 11794dd77ae96Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 11795dd77ae96Smrgesac 11796dd77ae96Smrg 11797dd77ae96Smrgcase $ac_config_headers in *" 11798dd77ae96Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11799dd77ae96Smrgesac 11800dd77ae96Smrg 11801dd77ae96Smrg 11802dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1180372b4363aSmrg# Files that config.status was made for. 1180472b4363aSmrgconfig_files="$ac_config_files" 1180572b4363aSmrgconfig_headers="$ac_config_headers" 1180672b4363aSmrgconfig_commands="$ac_config_commands" 1180772b4363aSmrg 1180872b4363aSmrg_ACEOF 1180972b4363aSmrg 11810dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1181172b4363aSmrgac_cs_usage="\ 1181208e312fdSmrg\`$as_me' instantiates files and other configuration actions 1181308e312fdSmrgfrom templates according to the current configuration. Unless the files 1181408e312fdSmrgand actions are specified as TAGs, all are instantiated by default. 1181572b4363aSmrg 1181608e312fdSmrgUsage: $0 [OPTION]... [TAG]... 1181772b4363aSmrg 1181872b4363aSmrg -h, --help print this help, then exit 1181972b4363aSmrg -V, --version print version number and configuration settings, then exit 1182008e312fdSmrg --config print configuration, then exit 11821dd77ae96Smrg -q, --quiet, --silent 11822dd77ae96Smrg do not print progress messages 1182372b4363aSmrg -d, --debug don't remove temporary files 1182472b4363aSmrg --recheck update $as_me by reconfiguring in the same conditions 11825dd77ae96Smrg --file=FILE[:TEMPLATE] 11826dd77ae96Smrg instantiate the configuration file FILE 11827dd77ae96Smrg --header=FILE[:TEMPLATE] 11828dd77ae96Smrg instantiate the configuration header FILE 1182972b4363aSmrg 1183072b4363aSmrgConfiguration files: 1183172b4363aSmrg$config_files 1183272b4363aSmrg 1183372b4363aSmrgConfiguration headers: 1183472b4363aSmrg$config_headers 1183572b4363aSmrg 1183672b4363aSmrgConfiguration commands: 1183772b4363aSmrg$config_commands 1183872b4363aSmrg 118397ed541caSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xgamma/-/issues>." 1184072b4363aSmrg 1184172b4363aSmrg_ACEOF 118427ed541caSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 118437ed541caSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11844dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 118457ed541caSmrgac_cs_config='$ac_cs_config_escaped' 1184672b4363aSmrgac_cs_version="\\ 118477ed541caSmrgxgamma config.status 1.0.7 118487ed541caSmrgconfigured by $0, generated by GNU Autoconf 2.71, 1184908e312fdSmrg with options \\"\$ac_cs_config\\" 1185072b4363aSmrg 118517ed541caSmrgCopyright (C) 2021 Free Software Foundation, Inc. 1185272b4363aSmrgThis config.status script is free software; the Free Software Foundation 1185372b4363aSmrggives unlimited permission to copy, distribute and modify it." 1185472b4363aSmrg 1185572b4363aSmrgac_pwd='$ac_pwd' 1185672b4363aSmrgsrcdir='$srcdir' 1185772b4363aSmrgINSTALL='$INSTALL' 1185872b4363aSmrgMKDIR_P='$MKDIR_P' 11859dd77ae96SmrgAWK='$AWK' 11860dd77ae96Smrgtest -n "\$AWK" || AWK=awk 1186172b4363aSmrg_ACEOF 1186272b4363aSmrg 11863dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11864dd77ae96Smrg# The default lists apply if the user does not specify any file. 1186572b4363aSmrgac_need_defaults=: 1186672b4363aSmrgwhile test $# != 0 1186772b4363aSmrgdo 1186872b4363aSmrg case $1 in 1186908e312fdSmrg --*=?*) 1187072b4363aSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1187172b4363aSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 1187272b4363aSmrg ac_shift=: 1187372b4363aSmrg ;; 1187408e312fdSmrg --*=) 1187508e312fdSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1187608e312fdSmrg ac_optarg= 1187708e312fdSmrg ac_shift=: 1187808e312fdSmrg ;; 1187972b4363aSmrg *) 1188072b4363aSmrg ac_option=$1 1188172b4363aSmrg ac_optarg=$2 1188272b4363aSmrg ac_shift=shift 1188372b4363aSmrg ;; 1188472b4363aSmrg esac 1188572b4363aSmrg 1188672b4363aSmrg case $ac_option in 1188772b4363aSmrg # Handling of the options. 1188872b4363aSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1188972b4363aSmrg ac_cs_recheck=: ;; 1189072b4363aSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 118917ed541caSmrg printf "%s\n" "$ac_cs_version"; exit ;; 1189208e312fdSmrg --config | --confi | --conf | --con | --co | --c ) 118937ed541caSmrg printf "%s\n" "$ac_cs_config"; exit ;; 1189472b4363aSmrg --debug | --debu | --deb | --de | --d | -d ) 1189572b4363aSmrg debug=: ;; 1189672b4363aSmrg --file | --fil | --fi | --f ) 1189772b4363aSmrg $ac_shift 11898dd77ae96Smrg case $ac_optarg in 118997ed541caSmrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1190008e312fdSmrg '') as_fn_error $? "missing file argument" ;; 11901dd77ae96Smrg esac 1190208e312fdSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 1190372b4363aSmrg ac_need_defaults=false;; 1190472b4363aSmrg --header | --heade | --head | --hea ) 1190572b4363aSmrg $ac_shift 11906dd77ae96Smrg case $ac_optarg in 119077ed541caSmrg *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11908dd77ae96Smrg esac 1190908e312fdSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 1191072b4363aSmrg ac_need_defaults=false;; 1191172b4363aSmrg --he | --h) 1191272b4363aSmrg # Conflict between --help and --header 1191308e312fdSmrg as_fn_error $? "ambiguous option: \`$1' 1191408e312fdSmrgTry \`$0 --help' for more information.";; 1191572b4363aSmrg --help | --hel | -h ) 119167ed541caSmrg printf "%s\n" "$ac_cs_usage"; exit ;; 1191772b4363aSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1191872b4363aSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 1191972b4363aSmrg ac_cs_silent=: ;; 1192072b4363aSmrg 1192172b4363aSmrg # This is an error. 1192208e312fdSmrg -*) as_fn_error $? "unrecognized option: \`$1' 1192308e312fdSmrgTry \`$0 --help' for more information." ;; 1192472b4363aSmrg 1192508e312fdSmrg *) as_fn_append ac_config_targets " $1" 1192672b4363aSmrg ac_need_defaults=false ;; 1192772b4363aSmrg 1192872b4363aSmrg esac 1192972b4363aSmrg shift 1193072b4363aSmrgdone 1193172b4363aSmrg 1193272b4363aSmrgac_configure_extra_args= 1193372b4363aSmrg 1193472b4363aSmrgif $ac_cs_silent; then 1193572b4363aSmrg exec 6>/dev/null 1193672b4363aSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 1193772b4363aSmrgfi 1193872b4363aSmrg 1193972b4363aSmrg_ACEOF 11940dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1194172b4363aSmrgif \$ac_cs_recheck; then 1194233dddc75Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11943dd77ae96Smrg shift 119447ed541caSmrg \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11945dd77ae96Smrg CONFIG_SHELL='$SHELL' 1194672b4363aSmrg export CONFIG_SHELL 11947dd77ae96Smrg exec "\$@" 1194872b4363aSmrgfi 1194972b4363aSmrg 1195072b4363aSmrg_ACEOF 11951dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1195272b4363aSmrgexec 5>>config.log 1195372b4363aSmrg{ 1195472b4363aSmrg echo 1195572b4363aSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 1195672b4363aSmrg## Running $as_me. ## 1195772b4363aSmrg_ASBOX 119587ed541caSmrg printf "%s\n" "$ac_log" 1195972b4363aSmrg} >&5 1196072b4363aSmrg 1196172b4363aSmrg_ACEOF 11962dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1196372b4363aSmrg# 1196472b4363aSmrg# INIT-COMMANDS 1196572b4363aSmrg# 119667ed541caSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 1196772b4363aSmrg 1196872b4363aSmrg_ACEOF 1196972b4363aSmrg 11970dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1197172b4363aSmrg 1197272b4363aSmrg# Handling of arguments. 1197372b4363aSmrgfor ac_config_target in $ac_config_targets 1197472b4363aSmrgdo 1197572b4363aSmrg case $ac_config_target in 1197672b4363aSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 1197772b4363aSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 1197872b4363aSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11979eea2e341Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 1198072b4363aSmrg 1198108e312fdSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 1198272b4363aSmrg esac 1198372b4363aSmrgdone 1198472b4363aSmrg 1198572b4363aSmrg 1198672b4363aSmrg# If the user did not use the arguments to specify the items to instantiate, 1198772b4363aSmrg# then the envvar interface is used. Set only those that are not. 1198872b4363aSmrg# We use the long form for the default assignment because of an extremely 1198972b4363aSmrg# bizarre bug on SunOS 4.1.3. 1199072b4363aSmrgif $ac_need_defaults; then 119917ed541caSmrg test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 119927ed541caSmrg test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 119937ed541caSmrg test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 1199472b4363aSmrgfi 1199572b4363aSmrg 1199672b4363aSmrg# Have a temporary directory for convenience. Make it in the build tree 1199772b4363aSmrg# simply because there is no reason against having it here, and in addition, 1199872b4363aSmrg# creating and moving files from /tmp can sometimes cause problems. 1199972b4363aSmrg# Hook for its removal unless debugging. 1200072b4363aSmrg# Note that there is a small window in which the directory will not be cleaned: 1200172b4363aSmrg# after its creation but before its name has been assigned to `$tmp'. 1200272b4363aSmrg$debug || 1200372b4363aSmrg{ 1200408e312fdSmrg tmp= ac_tmp= 1200572b4363aSmrg trap 'exit_status=$? 1200608e312fdSmrg : "${ac_tmp:=$tmp}" 1200708e312fdSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 1200872b4363aSmrg' 0 1200908e312fdSmrg trap 'as_fn_exit 1' 1 2 13 15 1201072b4363aSmrg} 1201172b4363aSmrg# Create a (secure) tmp directory for tmp files. 1201272b4363aSmrg 1201372b4363aSmrg{ 1201472b4363aSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 1201508e312fdSmrg test -d "$tmp" 1201672b4363aSmrg} || 1201772b4363aSmrg{ 1201872b4363aSmrg tmp=./conf$$-$RANDOM 1201972b4363aSmrg (umask 077 && mkdir "$tmp") 1202008e312fdSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 1202108e312fdSmrgac_tmp=$tmp 1202272b4363aSmrg 12023dd77ae96Smrg# Set up the scripts for CONFIG_FILES section. 12024dd77ae96Smrg# No need to generate them if there are no CONFIG_FILES. 12025dd77ae96Smrg# This happens for instance with `./config.status config.h'. 1202672b4363aSmrgif test -n "$CONFIG_FILES"; then 1202772b4363aSmrg 1202872b4363aSmrg 1202908e312fdSmrgac_cr=`echo X | tr X '\015'` 1203008e312fdSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 1203108e312fdSmrg# But we know of no other shell where ac_cr would be empty at this 1203208e312fdSmrg# point, so we can use a bashism as a fallback. 1203308e312fdSmrgif test "x$ac_cr" = x; then 1203408e312fdSmrg eval ac_cr=\$\'\\r\' 1203508e312fdSmrgfi 12036dd77ae96Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12037dd77ae96Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12038dd77ae96Smrg ac_cs_awk_cr='\\r' 12039dd77ae96Smrgelse 12040dd77ae96Smrg ac_cs_awk_cr=$ac_cr 1204172b4363aSmrgfi 1204272b4363aSmrg 1204308e312fdSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 1204472b4363aSmrg_ACEOF 1204572b4363aSmrg 1204672b4363aSmrg 12047dd77ae96Smrg{ 12048dd77ae96Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 12049dd77ae96Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12050dd77ae96Smrg echo "_ACEOF" 12051dd77ae96Smrg} >conf$$subs.sh || 1205208e312fdSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1205308e312fdSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 1205472b4363aSmrgac_delim='%!_!# ' 1205572b4363aSmrgfor ac_last_try in false false false false false :; do 12056dd77ae96Smrg . ./conf$$subs.sh || 1205708e312fdSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1205872b4363aSmrg 12059dd77ae96Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12060dd77ae96Smrg if test $ac_delim_n = $ac_delim_num; then 1206172b4363aSmrg break 1206272b4363aSmrg elif $ac_last_try; then 1206308e312fdSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1206472b4363aSmrg else 1206572b4363aSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 1206672b4363aSmrg fi 1206772b4363aSmrgdone 12068dd77ae96Smrgrm -f conf$$subs.sh 1206972b4363aSmrg 12070dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1207108e312fdSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12072dd77ae96Smrg_ACEOF 12073dd77ae96Smrgsed -n ' 12074dd77ae96Smrgh 12075dd77ae96Smrgs/^/S["/; s/!.*/"]=/ 12076dd77ae96Smrgp 12077dd77ae96Smrgg 12078dd77ae96Smrgs/^[^!]*!// 12079dd77ae96Smrg:repl 12080dd77ae96Smrgt repl 12081dd77ae96Smrgs/'"$ac_delim"'$// 12082dd77ae96Smrgt delim 12083dd77ae96Smrg:nl 12084dd77ae96Smrgh 1208508e312fdSmrgs/\(.\{148\}\)..*/\1/ 12086dd77ae96Smrgt more1 12087dd77ae96Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12088dd77ae96Smrgp 12089dd77ae96Smrgn 12090dd77ae96Smrgb repl 12091dd77ae96Smrg:more1 12092dd77ae96Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12093dd77ae96Smrgp 12094dd77ae96Smrgg 12095dd77ae96Smrgs/.\{148\}// 12096dd77ae96Smrgt nl 12097dd77ae96Smrg:delim 12098dd77ae96Smrgh 1209908e312fdSmrgs/\(.\{148\}\)..*/\1/ 12100dd77ae96Smrgt more2 12101dd77ae96Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 12102dd77ae96Smrgp 12103dd77ae96Smrgb 12104dd77ae96Smrg:more2 12105dd77ae96Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12106dd77ae96Smrgp 12107dd77ae96Smrgg 12108dd77ae96Smrgs/.\{148\}// 12109dd77ae96Smrgt delim 12110dd77ae96Smrg' <conf$$subs.awk | sed ' 12111dd77ae96Smrg/^[^""]/{ 12112dd77ae96Smrg N 12113dd77ae96Smrg s/\n// 12114dd77ae96Smrg} 12115dd77ae96Smrg' >>$CONFIG_STATUS || ac_write_fail=1 12116dd77ae96Smrgrm -f conf$$subs.awk 12117dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12118dd77ae96Smrg_ACAWK 1211908e312fdSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12120dd77ae96Smrg for (key in S) S_is_set[key] = 1 12121dd77ae96Smrg FS = "" 12122dd77ae96Smrg 12123dd77ae96Smrg} 12124dd77ae96Smrg{ 12125dd77ae96Smrg line = $ 0 12126dd77ae96Smrg nfields = split(line, field, "@") 12127dd77ae96Smrg substed = 0 12128dd77ae96Smrg len = length(field[1]) 12129dd77ae96Smrg for (i = 2; i < nfields; i++) { 12130dd77ae96Smrg key = field[i] 12131dd77ae96Smrg keylen = length(key) 12132dd77ae96Smrg if (S_is_set[key]) { 12133dd77ae96Smrg value = S[key] 12134dd77ae96Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12135dd77ae96Smrg len += length(value) + length(field[++i]) 12136dd77ae96Smrg substed = 1 12137dd77ae96Smrg } else 12138dd77ae96Smrg len += 1 + keylen 12139dd77ae96Smrg } 12140dd77ae96Smrg 12141dd77ae96Smrg print line 12142dd77ae96Smrg} 1214372b4363aSmrg 12144dd77ae96Smrg_ACAWK 1214572b4363aSmrg_ACEOF 12146dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12147dd77ae96Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12148dd77ae96Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12149dd77ae96Smrgelse 12150dd77ae96Smrg cat 1215108e312fdSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 1215208e312fdSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 1215372b4363aSmrg_ACEOF 1215472b4363aSmrg 1215508e312fdSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 1215608e312fdSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 1215772b4363aSmrg# trailing colons and then remove the whole line if VPATH becomes empty 1215872b4363aSmrg# (actually we leave an empty line to preserve line numbers). 1215972b4363aSmrgif test "x$srcdir" = x.; then 1216008e312fdSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 1216108e312fdSmrgh 1216208e312fdSmrgs/// 1216308e312fdSmrgs/^/:/ 1216408e312fdSmrgs/[ ]*$/:/ 1216508e312fdSmrgs/:\$(srcdir):/:/g 1216608e312fdSmrgs/:\${srcdir}:/:/g 1216708e312fdSmrgs/:@srcdir@:/:/g 1216808e312fdSmrgs/^:*// 1216972b4363aSmrgs/:*$// 1217008e312fdSmrgx 1217108e312fdSmrgs/\(=[ ]*\).*/\1/ 1217208e312fdSmrgG 1217308e312fdSmrgs/\n// 1217472b4363aSmrgs/^[^=]*=[ ]*$// 1217572b4363aSmrg}' 1217672b4363aSmrgfi 1217772b4363aSmrg 12178dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1217972b4363aSmrgfi # test -n "$CONFIG_FILES" 1218072b4363aSmrg 12181dd77ae96Smrg# Set up the scripts for CONFIG_HEADERS section. 12182dd77ae96Smrg# No need to generate them if there are no CONFIG_HEADERS. 12183dd77ae96Smrg# This happens for instance with `./config.status Makefile'. 12184dd77ae96Smrgif test -n "$CONFIG_HEADERS"; then 1218508e312fdSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 12186dd77ae96SmrgBEGIN { 12187dd77ae96Smrg_ACEOF 12188dd77ae96Smrg 12189dd77ae96Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 12190dd77ae96Smrg# here-document in config.status, that substitutes the proper values into 12191dd77ae96Smrg# config.h.in to produce config.h. 12192dd77ae96Smrg 12193dd77ae96Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 12194dd77ae96Smrg# handling of long lines. 12195dd77ae96Smrgac_delim='%!_!# ' 12196dd77ae96Smrgfor ac_last_try in false false :; do 1219708e312fdSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 1219808e312fdSmrg if test -z "$ac_tt"; then 12199dd77ae96Smrg break 12200dd77ae96Smrg elif $ac_last_try; then 1220108e312fdSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12202dd77ae96Smrg else 12203dd77ae96Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12204dd77ae96Smrg fi 12205dd77ae96Smrgdone 12206dd77ae96Smrg 12207dd77ae96Smrg# For the awk script, D is an array of macro values keyed by name, 12208dd77ae96Smrg# likewise P contains macro parameters if any. Preserve backslash 12209dd77ae96Smrg# newline sequences. 12210dd77ae96Smrg 12211dd77ae96Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12212dd77ae96Smrgsed -n ' 12213dd77ae96Smrgs/.\{148\}/&'"$ac_delim"'/g 12214dd77ae96Smrgt rset 12215dd77ae96Smrg:rset 12216dd77ae96Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 12217dd77ae96Smrgt def 12218dd77ae96Smrgd 12219dd77ae96Smrg:def 12220dd77ae96Smrgs/\\$// 12221dd77ae96Smrgt bsnl 12222dd77ae96Smrgs/["\\]/\\&/g 12223dd77ae96Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12224dd77ae96SmrgD["\1"]=" \3"/p 12225dd77ae96Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12226dd77ae96Smrgd 12227dd77ae96Smrg:bsnl 12228dd77ae96Smrgs/["\\]/\\&/g 12229dd77ae96Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12230dd77ae96SmrgD["\1"]=" \3\\\\\\n"\\/p 12231dd77ae96Smrgt cont 12232dd77ae96Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12233dd77ae96Smrgt cont 12234dd77ae96Smrgd 12235dd77ae96Smrg:cont 12236dd77ae96Smrgn 12237dd77ae96Smrgs/.\{148\}/&'"$ac_delim"'/g 12238dd77ae96Smrgt clear 12239dd77ae96Smrg:clear 12240dd77ae96Smrgs/\\$// 12241dd77ae96Smrgt bsnlc 12242dd77ae96Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 12243dd77ae96Smrgd 12244dd77ae96Smrg:bsnlc 12245dd77ae96Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12246dd77ae96Smrgb cont 12247dd77ae96Smrg' <confdefs.h | sed ' 12248dd77ae96Smrgs/'"$ac_delim"'/"\\\ 12249dd77ae96Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 12250dd77ae96Smrg 12251dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12252dd77ae96Smrg for (key in D) D_is_set[key] = 1 12253dd77ae96Smrg FS = "" 12254dd77ae96Smrg} 12255dd77ae96Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12256dd77ae96Smrg line = \$ 0 12257dd77ae96Smrg split(line, arg, " ") 12258dd77ae96Smrg if (arg[1] == "#") { 12259dd77ae96Smrg defundef = arg[2] 12260dd77ae96Smrg mac1 = arg[3] 12261dd77ae96Smrg } else { 12262dd77ae96Smrg defundef = substr(arg[1], 2) 12263dd77ae96Smrg mac1 = arg[2] 12264dd77ae96Smrg } 12265dd77ae96Smrg split(mac1, mac2, "(") #) 12266dd77ae96Smrg macro = mac2[1] 12267dd77ae96Smrg prefix = substr(line, 1, index(line, defundef) - 1) 12268dd77ae96Smrg if (D_is_set[macro]) { 12269dd77ae96Smrg # Preserve the white space surrounding the "#". 12270dd77ae96Smrg print prefix "define", macro P[macro] D[macro] 12271dd77ae96Smrg next 12272dd77ae96Smrg } else { 12273dd77ae96Smrg # Replace #undef with comments. This is necessary, for example, 12274dd77ae96Smrg # in the case of _POSIX_SOURCE, which is predefined and required 12275dd77ae96Smrg # on some systems where configure will not decide to define it. 12276dd77ae96Smrg if (defundef == "undef") { 12277dd77ae96Smrg print "/*", prefix defundef, macro, "*/" 12278dd77ae96Smrg next 12279dd77ae96Smrg } 12280dd77ae96Smrg } 12281dd77ae96Smrg} 12282dd77ae96Smrg{ print } 12283dd77ae96Smrg_ACAWK 12284dd77ae96Smrg_ACEOF 12285dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1228608e312fdSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12287dd77ae96Smrgfi # test -n "$CONFIG_HEADERS" 12288dd77ae96Smrg 1228972b4363aSmrg 12290dd77ae96Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12291dd77ae96Smrgshift 12292dd77ae96Smrgfor ac_tag 1229372b4363aSmrgdo 1229472b4363aSmrg case $ac_tag in 1229572b4363aSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 1229672b4363aSmrg esac 1229772b4363aSmrg case $ac_mode$ac_tag in 1229872b4363aSmrg :[FHL]*:*);; 1229908e312fdSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 1230072b4363aSmrg :[FH]-) ac_tag=-:-;; 1230172b4363aSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 1230272b4363aSmrg esac 1230372b4363aSmrg ac_save_IFS=$IFS 1230472b4363aSmrg IFS=: 1230572b4363aSmrg set x $ac_tag 1230672b4363aSmrg IFS=$ac_save_IFS 1230772b4363aSmrg shift 1230872b4363aSmrg ac_file=$1 1230972b4363aSmrg shift 1231072b4363aSmrg 1231172b4363aSmrg case $ac_mode in 1231272b4363aSmrg :L) ac_source=$1;; 1231372b4363aSmrg :[FH]) 1231472b4363aSmrg ac_file_inputs= 1231572b4363aSmrg for ac_f 1231672b4363aSmrg do 1231772b4363aSmrg case $ac_f in 1231808e312fdSmrg -) ac_f="$ac_tmp/stdin";; 1231972b4363aSmrg *) # Look for the file first in the build tree, then in the source tree 1232072b4363aSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 1232172b4363aSmrg # because $ac_f cannot contain `:'. 1232272b4363aSmrg test -f "$ac_f" || 1232372b4363aSmrg case $ac_f in 1232472b4363aSmrg [\\/$]*) false;; 1232572b4363aSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 1232672b4363aSmrg esac || 1232708e312fdSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 1232872b4363aSmrg esac 123297ed541caSmrg case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 1233008e312fdSmrg as_fn_append ac_file_inputs " '$ac_f'" 1233172b4363aSmrg done 1233272b4363aSmrg 1233372b4363aSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 1233472b4363aSmrg # use $as_me), people would be surprised to read: 1233572b4363aSmrg # /* config.h. Generated by config.status. */ 12336dd77ae96Smrg configure_input='Generated from '` 123377ed541caSmrg printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12338dd77ae96Smrg `' by configure.' 1233972b4363aSmrg if test x"$ac_file" != x-; then 1234072b4363aSmrg configure_input="$ac_file. $configure_input" 123417ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 123427ed541caSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;} 1234372b4363aSmrg fi 12344dd77ae96Smrg # Neutralize special characters interpreted by sed in replacement strings. 12345dd77ae96Smrg case $configure_input in #( 12346dd77ae96Smrg *\&* | *\|* | *\\* ) 123477ed541caSmrg ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12348dd77ae96Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 12349dd77ae96Smrg *) ac_sed_conf_input=$configure_input;; 12350dd77ae96Smrg esac 1235172b4363aSmrg 1235272b4363aSmrg case $ac_tag in 1235308e312fdSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 1235408e312fdSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 1235572b4363aSmrg esac 1235672b4363aSmrg ;; 1235772b4363aSmrg esac 1235872b4363aSmrg 1235972b4363aSmrg ac_dir=`$as_dirname -- "$ac_file" || 1236072b4363aSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1236172b4363aSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 1236272b4363aSmrg X"$ac_file" : 'X\(//\)$' \| \ 1236372b4363aSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 123647ed541caSmrgprintf "%s\n" X"$ac_file" | 1236572b4363aSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1236672b4363aSmrg s//\1/ 1236772b4363aSmrg q 1236872b4363aSmrg } 1236972b4363aSmrg /^X\(\/\/\)[^/].*/{ 1237072b4363aSmrg s//\1/ 1237172b4363aSmrg q 1237272b4363aSmrg } 1237372b4363aSmrg /^X\(\/\/\)$/{ 1237472b4363aSmrg s//\1/ 1237572b4363aSmrg q 1237672b4363aSmrg } 1237772b4363aSmrg /^X\(\/\).*/{ 1237872b4363aSmrg s//\1/ 1237972b4363aSmrg q 1238072b4363aSmrg } 1238172b4363aSmrg s/.*/./; q'` 1238208e312fdSmrg as_dir="$ac_dir"; as_fn_mkdir_p 1238372b4363aSmrg ac_builddir=. 1238472b4363aSmrg 1238572b4363aSmrgcase "$ac_dir" in 1238672b4363aSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1238772b4363aSmrg*) 123887ed541caSmrg ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1238972b4363aSmrg # A ".." for each directory in $ac_dir_suffix. 123907ed541caSmrg ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1239172b4363aSmrg case $ac_top_builddir_sub in 1239272b4363aSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1239372b4363aSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1239472b4363aSmrg esac ;; 1239572b4363aSmrgesac 1239672b4363aSmrgac_abs_top_builddir=$ac_pwd 1239772b4363aSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1239872b4363aSmrg# for backward compatibility: 1239972b4363aSmrgac_top_builddir=$ac_top_build_prefix 1240072b4363aSmrg 1240172b4363aSmrgcase $srcdir in 1240272b4363aSmrg .) # We are building in place. 1240372b4363aSmrg ac_srcdir=. 1240472b4363aSmrg ac_top_srcdir=$ac_top_builddir_sub 1240572b4363aSmrg ac_abs_top_srcdir=$ac_pwd ;; 1240672b4363aSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1240772b4363aSmrg ac_srcdir=$srcdir$ac_dir_suffix; 1240872b4363aSmrg ac_top_srcdir=$srcdir 1240972b4363aSmrg ac_abs_top_srcdir=$srcdir ;; 1241072b4363aSmrg *) # Relative name. 1241172b4363aSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1241272b4363aSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1241372b4363aSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1241472b4363aSmrgesac 1241572b4363aSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1241672b4363aSmrg 1241772b4363aSmrg 1241872b4363aSmrg case $ac_mode in 1241972b4363aSmrg :F) 1242072b4363aSmrg # 1242172b4363aSmrg # CONFIG_FILE 1242272b4363aSmrg # 1242372b4363aSmrg 1242472b4363aSmrg case $INSTALL in 1242572b4363aSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 1242672b4363aSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 1242772b4363aSmrg esac 1242872b4363aSmrg ac_MKDIR_P=$MKDIR_P 1242972b4363aSmrg case $MKDIR_P in 1243072b4363aSmrg [\\/$]* | ?:[\\/]* ) ;; 1243172b4363aSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 1243272b4363aSmrg esac 1243372b4363aSmrg_ACEOF 1243472b4363aSmrg 12435dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1243672b4363aSmrg# If the template does not know about datarootdir, expand it. 1243772b4363aSmrg# FIXME: This hack should be removed a few years after 2.60. 1243872b4363aSmrgac_datarootdir_hack=; ac_datarootdir_seen= 12439dd77ae96Smrgac_sed_dataroot=' 12440dd77ae96Smrg/datarootdir/ { 1244172b4363aSmrg p 1244272b4363aSmrg q 1244372b4363aSmrg} 1244472b4363aSmrg/@datadir@/p 1244572b4363aSmrg/@docdir@/p 1244672b4363aSmrg/@infodir@/p 1244772b4363aSmrg/@localedir@/p 1244808e312fdSmrg/@mandir@/p' 12449dd77ae96Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 1245072b4363aSmrg*datarootdir*) ac_datarootdir_seen=yes;; 1245172b4363aSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 124527ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 124537ed541caSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 1245472b4363aSmrg_ACEOF 12455dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1245672b4363aSmrg ac_datarootdir_hack=' 1245772b4363aSmrg s&@datadir@&$datadir&g 1245872b4363aSmrg s&@docdir@&$docdir&g 1245972b4363aSmrg s&@infodir@&$infodir&g 1246072b4363aSmrg s&@localedir@&$localedir&g 1246172b4363aSmrg s&@mandir@&$mandir&g 1246208e312fdSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 1246372b4363aSmrgesac 1246472b4363aSmrg_ACEOF 1246572b4363aSmrg 1246672b4363aSmrg# Neutralize VPATH when `$srcdir' = `.'. 1246772b4363aSmrg# Shell code in configure.ac might set extrasub. 1246872b4363aSmrg# FIXME: do we really want to maintain this feature? 12469dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12470dd77ae96Smrgac_sed_extra="$ac_vpsub 1247172b4363aSmrg$extrasub 1247272b4363aSmrg_ACEOF 12473dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1247472b4363aSmrg:t 1247572b4363aSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12476dd77ae96Smrgs|@configure_input@|$ac_sed_conf_input|;t t 1247772b4363aSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 12478dd77ae96Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 1247972b4363aSmrgs&@srcdir@&$ac_srcdir&;t t 1248072b4363aSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 1248172b4363aSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 1248272b4363aSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 1248372b4363aSmrgs&@builddir@&$ac_builddir&;t t 1248472b4363aSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 1248572b4363aSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 1248672b4363aSmrgs&@INSTALL@&$ac_INSTALL&;t t 1248772b4363aSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 1248872b4363aSmrg$ac_datarootdir_hack 12489dd77ae96Smrg" 1249008e312fdSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 1249108e312fdSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1249272b4363aSmrg 1249372b4363aSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 1249408e312fdSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 1249508e312fdSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 1249608e312fdSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 124977ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1249808e312fdSmrgwhich seems to be undefined. Please make sure it is defined" >&5 124997ed541caSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1250008e312fdSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 1250172b4363aSmrg 1250208e312fdSmrg rm -f "$ac_tmp/stdin" 1250372b4363aSmrg case $ac_file in 1250408e312fdSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 1250508e312fdSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12506dd77ae96Smrg esac \ 1250708e312fdSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1250872b4363aSmrg ;; 1250972b4363aSmrg :H) 1251072b4363aSmrg # 1251172b4363aSmrg # CONFIG_HEADER 1251272b4363aSmrg # 1251372b4363aSmrg if test x"$ac_file" != x-; then 12514dd77ae96Smrg { 125157ed541caSmrg printf "%s\n" "/* $configure_input */" >&1 \ 1251608e312fdSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 1251708e312fdSmrg } >"$ac_tmp/config.h" \ 1251808e312fdSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1251908e312fdSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 125207ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 125217ed541caSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 1252272b4363aSmrg else 12523dd77ae96Smrg rm -f "$ac_file" 1252408e312fdSmrg mv "$ac_tmp/config.h" "$ac_file" \ 1252508e312fdSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1252672b4363aSmrg fi 1252772b4363aSmrg else 125287ed541caSmrg printf "%s\n" "/* $configure_input */" >&1 \ 1252908e312fdSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 1253008e312fdSmrg || as_fn_error $? "could not create -" "$LINENO" 5 1253172b4363aSmrg fi 12532dd77ae96Smrg# Compute "$ac_file"'s index in $config_headers. 12533dd77ae96Smrg_am_arg="$ac_file" 1253472b4363aSmrg_am_stamp_count=1 1253572b4363aSmrgfor _am_header in $config_headers :; do 1253672b4363aSmrg case $_am_header in 12537dd77ae96Smrg $_am_arg | $_am_arg:* ) 1253872b4363aSmrg break ;; 1253972b4363aSmrg * ) 1254072b4363aSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 1254172b4363aSmrg esac 1254272b4363aSmrgdone 12543dd77ae96Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12544dd77ae96Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12545dd77ae96Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 12546dd77ae96Smrg X"$_am_arg" : 'X\(//\)$' \| \ 12547dd77ae96Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 125487ed541caSmrgprintf "%s\n" X"$_am_arg" | 1254972b4363aSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1255072b4363aSmrg s//\1/ 1255172b4363aSmrg q 1255272b4363aSmrg } 1255372b4363aSmrg /^X\(\/\/\)[^/].*/{ 1255472b4363aSmrg s//\1/ 1255572b4363aSmrg q 1255672b4363aSmrg } 1255772b4363aSmrg /^X\(\/\/\)$/{ 1255872b4363aSmrg s//\1/ 1255972b4363aSmrg q 1256072b4363aSmrg } 1256172b4363aSmrg /^X\(\/\).*/{ 1256272b4363aSmrg s//\1/ 1256372b4363aSmrg q 1256472b4363aSmrg } 1256572b4363aSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 1256672b4363aSmrg ;; 1256772b4363aSmrg 125687ed541caSmrg :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 125697ed541caSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;} 1257072b4363aSmrg ;; 1257172b4363aSmrg esac 1257272b4363aSmrg 1257372b4363aSmrg 1257472b4363aSmrg case $ac_file$ac_mode in 12575dd77ae96Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 1257633dddc75Smrg # Older Autoconf quotes --file arguments for eval, but not when files 12577dd77ae96Smrg # are listed without --file. Let's play safe and only enable the eval 12578dd77ae96Smrg # if we detect the quoting. 125797ed541caSmrg # TODO: see whether this extra hack can be removed once we start 125807ed541caSmrg # requiring Autoconf 2.70 or later. 125817ed541caSmrg case $CONFIG_FILES in #( 125827ed541caSmrg *\'*) : 125837ed541caSmrg eval set x "$CONFIG_FILES" ;; #( 125847ed541caSmrg *) : 125857ed541caSmrg set x $CONFIG_FILES ;; #( 125867ed541caSmrg *) : 125877ed541caSmrg ;; 125887ed541caSmrgesac 12589dd77ae96Smrg shift 125907ed541caSmrg # Used to flag and report bootstrapping failures. 125917ed541caSmrg am_rc=0 125927ed541caSmrg for am_mf 12593dd77ae96Smrg do 12594dd77ae96Smrg # Strip MF so we end up with the name of the file. 125957ed541caSmrg am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 125967ed541caSmrg # Check whether this is an Automake generated Makefile which includes 125977ed541caSmrg # dependency-tracking related rules and includes. 125987ed541caSmrg # Grep'ing the whole file directly is not great: AIX grep has a line 12599dd77ae96Smrg # limit of 2048, but all sed's we know have understand at least 4000. 126007ed541caSmrg sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 126017ed541caSmrg || continue 126027ed541caSmrg am_dirpart=`$as_dirname -- "$am_mf" || 126037ed541caSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 126047ed541caSmrg X"$am_mf" : 'X\(//\)[^/]' \| \ 126057ed541caSmrg X"$am_mf" : 'X\(//\)$' \| \ 126067ed541caSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 126077ed541caSmrgprintf "%s\n" X"$am_mf" | 1260872b4363aSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1260972b4363aSmrg s//\1/ 1261072b4363aSmrg q 1261172b4363aSmrg } 1261272b4363aSmrg /^X\(\/\/\)[^/].*/{ 1261372b4363aSmrg s//\1/ 1261472b4363aSmrg q 1261572b4363aSmrg } 1261672b4363aSmrg /^X\(\/\/\)$/{ 1261772b4363aSmrg s//\1/ 1261872b4363aSmrg q 1261972b4363aSmrg } 1262072b4363aSmrg /^X\(\/\).*/{ 1262172b4363aSmrg s//\1/ 1262272b4363aSmrg q 1262372b4363aSmrg } 1262472b4363aSmrg s/.*/./; q'` 126257ed541caSmrg am_filepart=`$as_basename -- "$am_mf" || 126267ed541caSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 126277ed541caSmrg X"$am_mf" : 'X\(//\)$' \| \ 126287ed541caSmrg X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 126297ed541caSmrgprintf "%s\n" X/"$am_mf" | 126307ed541caSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 1263172b4363aSmrg s//\1/ 1263272b4363aSmrg q 1263372b4363aSmrg } 126347ed541caSmrg /^X\/\(\/\/\)$/{ 1263572b4363aSmrg s//\1/ 1263672b4363aSmrg q 1263772b4363aSmrg } 126387ed541caSmrg /^X\/\(\/\).*/{ 1263972b4363aSmrg s//\1/ 1264072b4363aSmrg q 1264172b4363aSmrg } 1264272b4363aSmrg s/.*/./; q'` 126437ed541caSmrg { echo "$as_me:$LINENO: cd "$am_dirpart" \ 126447ed541caSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 126457ed541caSmrg | $MAKE -f - am--depfiles" >&5 126467ed541caSmrg (cd "$am_dirpart" \ 126477ed541caSmrg && sed -e '/# am--include-marker/d' "$am_filepart" \ 126487ed541caSmrg | $MAKE -f - am--depfiles) >&5 2>&5 126497ed541caSmrg ac_status=$? 126507ed541caSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 126517ed541caSmrg (exit $ac_status); } || am_rc=$? 1265272b4363aSmrg done 126537ed541caSmrg if test $am_rc -ne 0; then 126547ed541caSmrg { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 126557ed541caSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 126567ed541caSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments 126577ed541caSmrg for automatic dependency tracking. If GNU make was not used, consider 126587ed541caSmrg re-running the configure script with MAKE=\"gmake\" (or whatever is 126597ed541caSmrg necessary). You can also try re-running configure with the 126607ed541caSmrg '--disable-dependency-tracking' option to at least be able to build 126617ed541caSmrg the package (albeit without support for automatic dependency tracking). 126627ed541caSmrgSee \`config.log' for more details" "$LINENO" 5; } 126637ed541caSmrg fi 126647ed541caSmrg { am_dirpart=; unset am_dirpart;} 126657ed541caSmrg { am_filepart=; unset am_filepart;} 126667ed541caSmrg { am_mf=; unset am_mf;} 126677ed541caSmrg { am_rc=; unset am_rc;} 126687ed541caSmrg rm -f conftest-deps.mk 12669dd77ae96Smrg} 1267072b4363aSmrg ;; 1267172b4363aSmrg 1267272b4363aSmrg esac 1267372b4363aSmrgdone # for ac_tag 1267472b4363aSmrg 1267572b4363aSmrg 1267608e312fdSmrgas_fn_exit 0 1267772b4363aSmrg_ACEOF 1267872b4363aSmrgac_clean_files=$ac_clean_files_save 1267972b4363aSmrg 12680dd77ae96Smrgtest $ac_write_fail = 0 || 1268108e312fdSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12682dd77ae96Smrg 1268372b4363aSmrg 1268472b4363aSmrg# configure is writing to config.log, and then calls config.status. 1268572b4363aSmrg# config.status does its own redirection, appending to config.log. 1268672b4363aSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 1268772b4363aSmrg# by configure, so config.status won't be able to write to it; its 1268872b4363aSmrg# output is simply discarded. So we exec the FD to /dev/null, 1268972b4363aSmrg# effectively closing config.log, so it can be properly (re)opened and 1269072b4363aSmrg# appended to by config.status. When coming back to configure, we 1269172b4363aSmrg# need to make the FD available again. 1269272b4363aSmrgif test "$no_create" != yes; then 1269372b4363aSmrg ac_cs_success=: 1269472b4363aSmrg ac_config_status_args= 1269572b4363aSmrg test "$silent" = yes && 1269672b4363aSmrg ac_config_status_args="$ac_config_status_args --quiet" 1269772b4363aSmrg exec 5>/dev/null 1269872b4363aSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 1269972b4363aSmrg exec 5>>config.log 1270072b4363aSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 1270172b4363aSmrg # would make configure fail if this is the last instruction. 1270208e312fdSmrg $ac_cs_success || as_fn_exit 1 1270372b4363aSmrgfi 12704dd77ae96Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 127057ed541caSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 127067ed541caSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12707dd77ae96Smrgfi 1270872b4363aSmrg 127097ed541caSmrg 12710