1cacd992dSmrg#! /bin/sh 2cacd992dSmrg# Guess values for system-dependent variables and create Makefiles. 36758a055Smrg# Generated by GNU Autoconf 2.68 for xvidtune 1.0.3. 4cacd992dSmrg# 5cacd992dSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6cacd992dSmrg# 714ddf674Smrg# 814ddf674Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 96758a055Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 106758a055Smrg# Foundation, Inc. 1114ddf674Smrg# 1214ddf674Smrg# 13cacd992dSmrg# This configure script is free software; the Free Software Foundation 14cacd992dSmrg# gives unlimited permission to copy, distribute and modify it. 1514ddf674Smrg## -------------------- ## 1614ddf674Smrg## M4sh Initialization. ## 1714ddf674Smrg## -------------------- ## 18cacd992dSmrg 1914ddf674Smrg# Be more Bourne compatible 2014ddf674SmrgDUALCASE=1; export DUALCASE # for MKS sh 2114ddf674Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22cacd992dSmrg emulate sh 23cacd992dSmrg NULLCMD=: 2414ddf674Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25cacd992dSmrg # is contrary to our usage. Disable this feature. 26cacd992dSmrg alias -g '${1+"$@"}'='"$@"' 2714ddf674Smrg setopt NO_GLOB_SUBST 2814ddf674Smrgelse 2914ddf674Smrg case `(set -o) 2>/dev/null` in #( 3014ddf674Smrg *posix*) : 3114ddf674Smrg set -o posix ;; #( 3214ddf674Smrg *) : 3314ddf674Smrg ;; 3414ddf674Smrgesac 35cacd992dSmrgfi 36cacd992dSmrg 3714ddf674Smrg 3814ddf674Smrgas_nl=' 3914ddf674Smrg' 4014ddf674Smrgexport as_nl 4114ddf674Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 4214ddf674Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4314ddf674Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4414ddf674Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4514ddf674Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 4614ddf674Smrg# but without wasting forks for bash or zsh. 4714ddf674Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 4814ddf674Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 4914ddf674Smrg as_echo='print -r --' 5014ddf674Smrg as_echo_n='print -rn --' 5114ddf674Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5214ddf674Smrg as_echo='printf %s\n' 5314ddf674Smrg as_echo_n='printf %s' 54cacd992dSmrgelse 5514ddf674Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5614ddf674Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5714ddf674Smrg as_echo_n='/usr/ucb/echo -n' 5814ddf674Smrg else 5914ddf674Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6014ddf674Smrg as_echo_n_body='eval 6114ddf674Smrg arg=$1; 6214ddf674Smrg case $arg in #( 6314ddf674Smrg *"$as_nl"*) 6414ddf674Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 6514ddf674Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6614ddf674Smrg esac; 6714ddf674Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6814ddf674Smrg ' 6914ddf674Smrg export as_echo_n_body 7014ddf674Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 7114ddf674Smrg fi 7214ddf674Smrg export as_echo_body 7314ddf674Smrg as_echo='sh -c $as_echo_body as_echo' 7414ddf674Smrgfi 7514ddf674Smrg 7614ddf674Smrg# The user is always right. 7714ddf674Smrgif test "${PATH_SEPARATOR+set}" != set; then 7814ddf674Smrg PATH_SEPARATOR=: 7914ddf674Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8014ddf674Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8114ddf674Smrg PATH_SEPARATOR=';' 8214ddf674Smrg } 83cacd992dSmrgfi 84cacd992dSmrg 85cacd992dSmrg 8614ddf674Smrg# IFS 8714ddf674Smrg# We need space, tab and new line, in precisely that order. Quoting is 8814ddf674Smrg# there to prevent editors from complaining about space-tab. 8914ddf674Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9014ddf674Smrg# splitting by setting IFS to empty value.) 9114ddf674SmrgIFS=" "" $as_nl" 9214ddf674Smrg 9314ddf674Smrg# Find who we are. Look in the path if we contain no directory separator. 946758a055Smrgas_myself= 9514ddf674Smrgcase $0 in #(( 9614ddf674Smrg *[\\/]* ) as_myself=$0 ;; 9714ddf674Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9814ddf674Smrgfor as_dir in $PATH 9914ddf674Smrgdo 10014ddf674Smrg IFS=$as_save_IFS 10114ddf674Smrg test -z "$as_dir" && as_dir=. 10214ddf674Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10314ddf674Smrg done 10414ddf674SmrgIFS=$as_save_IFS 10514ddf674Smrg 10614ddf674Smrg ;; 10714ddf674Smrgesac 10814ddf674Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 10914ddf674Smrg# in which case we are not to be found in the path. 11014ddf674Smrgif test "x$as_myself" = x; then 11114ddf674Smrg as_myself=$0 11214ddf674Smrgfi 11314ddf674Smrgif test ! -f "$as_myself"; then 11414ddf674Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11514ddf674Smrg exit 1 11614ddf674Smrgfi 11714ddf674Smrg 11814ddf674Smrg# Unset variables that we do not need and which cause bugs (e.g. in 11914ddf674Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12014ddf674Smrg# suppresses any "Segmentation fault" message there. '((' could 12114ddf674Smrg# trigger a bug in pdksh 5.2.14. 12214ddf674Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 12314ddf674Smrgdo eval test x\${$as_var+set} = xset \ 12414ddf674Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12514ddf674Smrgdone 126cacd992dSmrgPS1='$ ' 127cacd992dSmrgPS2='> ' 128cacd992dSmrgPS4='+ ' 129cacd992dSmrg 130cacd992dSmrg# NLS nuisances. 13114ddf674SmrgLC_ALL=C 13214ddf674Smrgexport LC_ALL 13314ddf674SmrgLANGUAGE=C 13414ddf674Smrgexport LANGUAGE 13514ddf674Smrg 13614ddf674Smrg# CDPATH. 13714ddf674Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13814ddf674Smrg 13914ddf674Smrgif test "x$CONFIG_SHELL" = x; then 14014ddf674Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 14114ddf674Smrg emulate sh 14214ddf674Smrg NULLCMD=: 14314ddf674Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 14414ddf674Smrg # is contrary to our usage. Disable this feature. 14514ddf674Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 14614ddf674Smrg setopt NO_GLOB_SUBST 14714ddf674Smrgelse 14814ddf674Smrg case \`(set -o) 2>/dev/null\` in #( 14914ddf674Smrg *posix*) : 15014ddf674Smrg set -o posix ;; #( 15114ddf674Smrg *) : 15214ddf674Smrg ;; 15314ddf674Smrgesac 15414ddf674Smrgfi 15514ddf674Smrg" 15614ddf674Smrg as_required="as_fn_return () { (exit \$1); } 15714ddf674Smrgas_fn_success () { as_fn_return 0; } 15814ddf674Smrgas_fn_failure () { as_fn_return 1; } 15914ddf674Smrgas_fn_ret_success () { return 0; } 16014ddf674Smrgas_fn_ret_failure () { return 1; } 16114ddf674Smrg 16214ddf674Smrgexitcode=0 16314ddf674Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 16414ddf674Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 16514ddf674Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 16614ddf674Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 16714ddf674Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 16814ddf674Smrg 16914ddf674Smrgelse 17014ddf674Smrg exitcode=1; echo positional parameters were not saved. 17114ddf674Smrgfi 17214ddf674Smrgtest x\$exitcode = x0 || exit 1" 17314ddf674Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 17414ddf674Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 17514ddf674Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 17614ddf674Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 17714ddf674Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 17814ddf674Smrg if (eval "$as_required") 2>/dev/null; then : 17914ddf674Smrg as_have_required=yes 18014ddf674Smrgelse 18114ddf674Smrg as_have_required=no 18214ddf674Smrgfi 18314ddf674Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 18414ddf674Smrg 18514ddf674Smrgelse 18614ddf674Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18714ddf674Smrgas_found=false 18814ddf674Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189cacd992dSmrgdo 19014ddf674Smrg IFS=$as_save_IFS 19114ddf674Smrg test -z "$as_dir" && as_dir=. 19214ddf674Smrg as_found=: 19314ddf674Smrg case $as_dir in #( 19414ddf674Smrg /*) 19514ddf674Smrg for as_base in sh bash ksh sh5; do 19614ddf674Smrg # Try only shells that exist, to save several forks. 19714ddf674Smrg as_shell=$as_dir/$as_base 19814ddf674Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 19914ddf674Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 20014ddf674Smrg CONFIG_SHELL=$as_shell as_have_required=yes 20114ddf674Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 20214ddf674Smrg break 2 20314ddf674Smrgfi 20414ddf674Smrgfi 20514ddf674Smrg done;; 20614ddf674Smrg esac 20714ddf674Smrg as_found=false 20814ddf674Smrgdone 20914ddf674Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 21014ddf674Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 21114ddf674Smrg CONFIG_SHELL=$SHELL as_have_required=yes 21214ddf674Smrgfi; } 21314ddf674SmrgIFS=$as_save_IFS 21414ddf674Smrg 21514ddf674Smrg 21614ddf674Smrg if test "x$CONFIG_SHELL" != x; then : 21714ddf674Smrg # We cannot yet assume a decent shell, so we have to provide a 21814ddf674Smrg # neutralization value for shells without unset; and this also 21914ddf674Smrg # works around shells that cannot unset nonexistent variables. 2206758a055Smrg # Preserve -v and -x to the replacement shell. 22114ddf674Smrg BASH_ENV=/dev/null 22214ddf674Smrg ENV=/dev/null 22314ddf674Smrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 22414ddf674Smrg export CONFIG_SHELL 2256758a055Smrg case $- in # (((( 2266758a055Smrg *v*x* | *x*v* ) as_opts=-vx ;; 2276758a055Smrg *v* ) as_opts=-v ;; 2286758a055Smrg *x* ) as_opts=-x ;; 2296758a055Smrg * ) as_opts= ;; 2306758a055Smrg esac 2316758a055Smrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 23214ddf674Smrgfi 23314ddf674Smrg 23414ddf674Smrg if test x$as_have_required = xno; then : 23514ddf674Smrg $as_echo "$0: This script requires a shell more modern than all" 23614ddf674Smrg $as_echo "$0: the shells that I found on your system." 23714ddf674Smrg if test x${ZSH_VERSION+set} = xset ; then 23814ddf674Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 23914ddf674Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240cacd992dSmrg else 24114ddf674Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 24214ddf674Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 24314ddf674Smrg$0: about your system, including any error possibly output 24414ddf674Smrg$0: before this message. Then install a modern shell, or 24514ddf674Smrg$0: manually run the script under such a shell if you do 24614ddf674Smrg$0: have one." 247cacd992dSmrg fi 24814ddf674Smrg exit 1 24914ddf674Smrgfi 25014ddf674Smrgfi 25114ddf674Smrgfi 25214ddf674SmrgSHELL=${CONFIG_SHELL-/bin/sh} 25314ddf674Smrgexport SHELL 25414ddf674Smrg# Unset more variables known to interfere with behavior of common tools. 25514ddf674SmrgCLICOLOR_FORCE= GREP_OPTIONS= 25614ddf674Smrgunset CLICOLOR_FORCE GREP_OPTIONS 25714ddf674Smrg 25814ddf674Smrg## --------------------- ## 25914ddf674Smrg## M4sh Shell Functions. ## 26014ddf674Smrg## --------------------- ## 26114ddf674Smrg# as_fn_unset VAR 26214ddf674Smrg# --------------- 26314ddf674Smrg# Portably unset VAR. 26414ddf674Smrgas_fn_unset () 26514ddf674Smrg{ 26614ddf674Smrg { eval $1=; unset $1;} 26714ddf674Smrg} 26814ddf674Smrgas_unset=as_fn_unset 26914ddf674Smrg 27014ddf674Smrg# as_fn_set_status STATUS 27114ddf674Smrg# ----------------------- 27214ddf674Smrg# Set $? to STATUS, without forking. 27314ddf674Smrgas_fn_set_status () 27414ddf674Smrg{ 27514ddf674Smrg return $1 27614ddf674Smrg} # as_fn_set_status 27714ddf674Smrg 27814ddf674Smrg# as_fn_exit STATUS 27914ddf674Smrg# ----------------- 28014ddf674Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 28114ddf674Smrgas_fn_exit () 28214ddf674Smrg{ 28314ddf674Smrg set +e 28414ddf674Smrg as_fn_set_status $1 28514ddf674Smrg exit $1 28614ddf674Smrg} # as_fn_exit 28714ddf674Smrg 28814ddf674Smrg# as_fn_mkdir_p 28914ddf674Smrg# ------------- 29014ddf674Smrg# Create "$as_dir" as a directory, including parents if necessary. 29114ddf674Smrgas_fn_mkdir_p () 29214ddf674Smrg{ 293cacd992dSmrg 29414ddf674Smrg case $as_dir in #( 29514ddf674Smrg -*) as_dir=./$as_dir;; 29614ddf674Smrg esac 29714ddf674Smrg test -d "$as_dir" || eval $as_mkdir_p || { 29814ddf674Smrg as_dirs= 29914ddf674Smrg while :; do 30014ddf674Smrg case $as_dir in #( 30114ddf674Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 30214ddf674Smrg *) as_qdir=$as_dir;; 30314ddf674Smrg esac 30414ddf674Smrg as_dirs="'$as_qdir' $as_dirs" 30514ddf674Smrg as_dir=`$as_dirname -- "$as_dir" || 30614ddf674Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30714ddf674Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 30814ddf674Smrg X"$as_dir" : 'X\(//\)$' \| \ 30914ddf674Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 31014ddf674Smrg$as_echo X"$as_dir" | 31114ddf674Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31214ddf674Smrg s//\1/ 31314ddf674Smrg q 31414ddf674Smrg } 31514ddf674Smrg /^X\(\/\/\)[^/].*/{ 31614ddf674Smrg s//\1/ 31714ddf674Smrg q 31814ddf674Smrg } 31914ddf674Smrg /^X\(\/\/\)$/{ 32014ddf674Smrg s//\1/ 32114ddf674Smrg q 32214ddf674Smrg } 32314ddf674Smrg /^X\(\/\).*/{ 32414ddf674Smrg s//\1/ 32514ddf674Smrg q 32614ddf674Smrg } 32714ddf674Smrg s/.*/./; q'` 32814ddf674Smrg test -d "$as_dir" && break 32914ddf674Smrg done 33014ddf674Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3316758a055Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 33214ddf674Smrg 33314ddf674Smrg 33414ddf674Smrg} # as_fn_mkdir_p 33514ddf674Smrg# as_fn_append VAR VALUE 33614ddf674Smrg# ---------------------- 33714ddf674Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 33814ddf674Smrg# advantage of any shell optimizations that allow amortized linear growth over 33914ddf674Smrg# repeated appends, instead of the typical quadratic growth present in naive 34014ddf674Smrg# implementations. 34114ddf674Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 34214ddf674Smrg eval 'as_fn_append () 34314ddf674Smrg { 34414ddf674Smrg eval $1+=\$2 34514ddf674Smrg }' 34614ddf674Smrgelse 34714ddf674Smrg as_fn_append () 34814ddf674Smrg { 34914ddf674Smrg eval $1=\$$1\$2 35014ddf674Smrg } 35114ddf674Smrgfi # as_fn_append 35214ddf674Smrg 35314ddf674Smrg# as_fn_arith ARG... 35414ddf674Smrg# ------------------ 35514ddf674Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 35614ddf674Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 35714ddf674Smrg# must be portable across $(()) and expr. 35814ddf674Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 35914ddf674Smrg eval 'as_fn_arith () 36014ddf674Smrg { 36114ddf674Smrg as_val=$(( $* )) 36214ddf674Smrg }' 36314ddf674Smrgelse 36414ddf674Smrg as_fn_arith () 36514ddf674Smrg { 36614ddf674Smrg as_val=`expr "$@" || test $? -eq 1` 36714ddf674Smrg } 36814ddf674Smrgfi # as_fn_arith 36914ddf674Smrg 37014ddf674Smrg 3716758a055Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 3726758a055Smrg# ---------------------------------------- 37314ddf674Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 37414ddf674Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 3756758a055Smrg# script with STATUS, using 1 if that was 0. 37614ddf674Smrgas_fn_error () 37714ddf674Smrg{ 3786758a055Smrg as_status=$1; test $as_status -eq 0 && as_status=1 3796758a055Smrg if test "$4"; then 3806758a055Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3816758a055Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 38214ddf674Smrg fi 3836758a055Smrg $as_echo "$as_me: error: $2" >&2 38414ddf674Smrg as_fn_exit $as_status 38514ddf674Smrg} # as_fn_error 38614ddf674Smrg 38714ddf674Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 38814ddf674Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 389cacd992dSmrg as_expr=expr 390cacd992dSmrgelse 391cacd992dSmrg as_expr=false 392cacd992dSmrgfi 393cacd992dSmrg 39414ddf674Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395cacd992dSmrg as_basename=basename 396cacd992dSmrgelse 397cacd992dSmrg as_basename=false 398cacd992dSmrgfi 399cacd992dSmrg 40014ddf674Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 40114ddf674Smrg as_dirname=dirname 40214ddf674Smrgelse 40314ddf674Smrg as_dirname=false 40414ddf674Smrgfi 405cacd992dSmrg 40614ddf674Smrgas_me=`$as_basename -- "$0" || 407cacd992dSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408cacd992dSmrg X"$0" : 'X\(//\)$' \| \ 40914ddf674Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 41014ddf674Smrg$as_echo X/"$0" | 41114ddf674Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 41214ddf674Smrg s//\1/ 41314ddf674Smrg q 41414ddf674Smrg } 41514ddf674Smrg /^X\/\(\/\/\)$/{ 41614ddf674Smrg s//\1/ 41714ddf674Smrg q 41814ddf674Smrg } 41914ddf674Smrg /^X\/\(\/\).*/{ 42014ddf674Smrg s//\1/ 42114ddf674Smrg q 42214ddf674Smrg } 42314ddf674Smrg s/.*/./; q'` 424cacd992dSmrg 425cacd992dSmrg# Avoid depending upon Character Ranges. 426cacd992dSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 427cacd992dSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428cacd992dSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 429cacd992dSmrgas_cr_digits='0123456789' 430cacd992dSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 431cacd992dSmrg 432cacd992dSmrg 43314ddf674Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 43414ddf674Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 43514ddf674Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 43614ddf674Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 43714ddf674Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 43814ddf674Smrg sed -n ' 43914ddf674Smrg p 44014ddf674Smrg /[$]LINENO/= 44114ddf674Smrg ' <$as_myself | 442cacd992dSmrg sed ' 44314ddf674Smrg s/[$]LINENO.*/&-/ 44414ddf674Smrg t lineno 44514ddf674Smrg b 44614ddf674Smrg :lineno 447cacd992dSmrg N 44814ddf674Smrg :loop 44914ddf674Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450cacd992dSmrg t loop 45114ddf674Smrg s/-\n.*// 452cacd992dSmrg ' >$as_me.lineno && 45314ddf674Smrg chmod +x "$as_me.lineno" || 45414ddf674Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455cacd992dSmrg 456cacd992dSmrg # Don't try to exec as it changes $[0], causing all sort of problems 457cacd992dSmrg # (the dirname of $[0] is not the place where we might find the 45814ddf674Smrg # original and so on. Autoconf is especially sensitive to this). 45914ddf674Smrg . "./$as_me.lineno" 460cacd992dSmrg # Exit status is that of the last command. 461cacd992dSmrg exit 462cacd992dSmrg} 463cacd992dSmrg 46414ddf674SmrgECHO_C= ECHO_N= ECHO_T= 46514ddf674Smrgcase `echo -n x` in #((((( 46614ddf674Smrg-n*) 46714ddf674Smrg case `echo 'xy\c'` in 46814ddf674Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 46914ddf674Smrg xy) ECHO_C='\c';; 47014ddf674Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 47114ddf674Smrg ECHO_T=' ';; 47214ddf674Smrg esac;; 47314ddf674Smrg*) 47414ddf674Smrg ECHO_N='-n';; 475cacd992dSmrgesac 476cacd992dSmrg 47714ddf674Smrgrm -f conf$$ conf$$.exe conf$$.file 47814ddf674Smrgif test -d conf$$.dir; then 47914ddf674Smrg rm -f conf$$.dir/conf$$.file 480cacd992dSmrgelse 48114ddf674Smrg rm -f conf$$.dir 48214ddf674Smrg mkdir conf$$.dir 2>/dev/null 483cacd992dSmrgfi 48414ddf674Smrgif (echo >conf$$.file) 2>/dev/null; then 48514ddf674Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 486cacd992dSmrg as_ln_s='ln -s' 48714ddf674Smrg # ... but there are two gotchas: 48814ddf674Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 48914ddf674Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 49014ddf674Smrg # In both cases, we have to default to `cp -p'. 49114ddf674Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 49214ddf674Smrg as_ln_s='cp -p' 49314ddf674Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 49414ddf674Smrg as_ln_s=ln 49514ddf674Smrg else 49614ddf674Smrg as_ln_s='cp -p' 497cacd992dSmrg fi 498cacd992dSmrgelse 499cacd992dSmrg as_ln_s='cp -p' 500cacd992dSmrgfi 50114ddf674Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 50214ddf674Smrgrmdir conf$$.dir 2>/dev/null 503cacd992dSmrg 504cacd992dSmrgif mkdir -p . 2>/dev/null; then 50514ddf674Smrg as_mkdir_p='mkdir -p "$as_dir"' 506cacd992dSmrgelse 507cacd992dSmrg test -d ./-p && rmdir ./-p 508cacd992dSmrg as_mkdir_p=false 509cacd992dSmrgfi 510cacd992dSmrg 51114ddf674Smrgif test -x / >/dev/null 2>&1; then 51214ddf674Smrg as_test_x='test -x' 51314ddf674Smrgelse 51414ddf674Smrg if ls -dL / >/dev/null 2>&1; then 51514ddf674Smrg as_ls_L_option=L 51614ddf674Smrg else 51714ddf674Smrg as_ls_L_option= 51814ddf674Smrg fi 51914ddf674Smrg as_test_x=' 52014ddf674Smrg eval sh -c '\'' 52114ddf674Smrg if test -d "$1"; then 52214ddf674Smrg test -d "$1/."; 52314ddf674Smrg else 52414ddf674Smrg case $1 in #( 52514ddf674Smrg -*)set "./$1";; 52614ddf674Smrg esac; 52714ddf674Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 52814ddf674Smrg ???[sx]*):;;*)false;;esac;fi 52914ddf674Smrg '\'' sh 53014ddf674Smrg ' 53114ddf674Smrgfi 53214ddf674Smrgas_executable_p=$as_test_x 533cacd992dSmrg 534cacd992dSmrg# Sed expression to map a string onto a valid CPP name. 535cacd992dSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536cacd992dSmrg 537cacd992dSmrg# Sed expression to map a string onto a valid variable name. 538cacd992dSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539cacd992dSmrg 540cacd992dSmrg 54114ddf674Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 54214ddf674Smrgexec 6>&1 543cacd992dSmrg 544cacd992dSmrg# Name of the host. 5456758a055Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546cacd992dSmrg# so uname gets run too. 547cacd992dSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548cacd992dSmrg 549cacd992dSmrg# 550cacd992dSmrg# Initializations. 551cacd992dSmrg# 552cacd992dSmrgac_default_prefix=/usr/local 55314ddf674Smrgac_clean_files= 554cacd992dSmrgac_config_libobj_dir=. 55514ddf674SmrgLIBOBJS= 556cacd992dSmrgcross_compiling=no 557cacd992dSmrgsubdirs= 558cacd992dSmrgMFLAGS= 559cacd992dSmrgMAKEFLAGS= 560cacd992dSmrg 561cacd992dSmrg# Identity of this package. 562cacd992dSmrgPACKAGE_NAME='xvidtune' 563cacd992dSmrgPACKAGE_TARNAME='xvidtune' 5646758a055SmrgPACKAGE_VERSION='1.0.3' 5656758a055SmrgPACKAGE_STRING='xvidtune 1.0.3' 566cacd992dSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 56714ddf674SmrgPACKAGE_URL='' 568cacd992dSmrg 5696758a055Smrgac_unique_file="Makefile.am" 57014ddf674Smrg# Factoring default headers for most tests. 57114ddf674Smrgac_includes_default="\ 57214ddf674Smrg#include <stdio.h> 57314ddf674Smrg#ifdef HAVE_SYS_TYPES_H 57414ddf674Smrg# include <sys/types.h> 57514ddf674Smrg#endif 57614ddf674Smrg#ifdef HAVE_SYS_STAT_H 57714ddf674Smrg# include <sys/stat.h> 57814ddf674Smrg#endif 57914ddf674Smrg#ifdef STDC_HEADERS 58014ddf674Smrg# include <stdlib.h> 58114ddf674Smrg# include <stddef.h> 58214ddf674Smrg#else 58314ddf674Smrg# ifdef HAVE_STDLIB_H 58414ddf674Smrg# include <stdlib.h> 58514ddf674Smrg# endif 58614ddf674Smrg#endif 58714ddf674Smrg#ifdef HAVE_STRING_H 58814ddf674Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 58914ddf674Smrg# include <memory.h> 59014ddf674Smrg# endif 59114ddf674Smrg# include <string.h> 59214ddf674Smrg#endif 59314ddf674Smrg#ifdef HAVE_STRINGS_H 59414ddf674Smrg# include <strings.h> 59514ddf674Smrg#endif 59614ddf674Smrg#ifdef HAVE_INTTYPES_H 59714ddf674Smrg# include <inttypes.h> 59814ddf674Smrg#endif 59914ddf674Smrg#ifdef HAVE_STDINT_H 60014ddf674Smrg# include <stdint.h> 60114ddf674Smrg#endif 60214ddf674Smrg#ifdef HAVE_UNISTD_H 60314ddf674Smrg# include <unistd.h> 60414ddf674Smrg#endif" 60514ddf674Smrg 60614ddf674Smrgac_subst_vars='am__EXEEXT_FALSE 60714ddf674Smrgam__EXEEXT_TRUE 60814ddf674SmrgLTLIBOBJS 60914ddf674SmrgLIBOBJS 61014ddf674Smrgappdefaultdir 61114ddf674SmrgXVIDTUNE_LIBS 61214ddf674SmrgXVIDTUNE_CFLAGS 6136758a055SmrgAM_BACKSLASH 6146758a055SmrgAM_DEFAULT_VERBOSITY 6156758a055SmrgMAN_SUBSTS 6166758a055SmrgXORG_MAN_PAGE 61714ddf674SmrgADMIN_MAN_DIR 61814ddf674SmrgDRIVER_MAN_DIR 61914ddf674SmrgMISC_MAN_DIR 62014ddf674SmrgFILE_MAN_DIR 62114ddf674SmrgLIB_MAN_DIR 62214ddf674SmrgAPP_MAN_DIR 62314ddf674SmrgADMIN_MAN_SUFFIX 62414ddf674SmrgDRIVER_MAN_SUFFIX 62514ddf674SmrgMISC_MAN_SUFFIX 62614ddf674SmrgFILE_MAN_SUFFIX 62714ddf674SmrgLIB_MAN_SUFFIX 62814ddf674SmrgAPP_MAN_SUFFIX 6296758a055SmrgSED 63014ddf674Smrghost_os 63114ddf674Smrghost_vendor 63214ddf674Smrghost_cpu 63314ddf674Smrghost 63414ddf674Smrgbuild_os 63514ddf674Smrgbuild_vendor 63614ddf674Smrgbuild_cpu 63714ddf674Smrgbuild 63814ddf674SmrgINSTALL_CMD 63914ddf674SmrgPKG_CONFIG 64014ddf674SmrgCHANGELOG_CMD 6416758a055SmrgSTRICT_CFLAGS 64214ddf674SmrgCWARNFLAGS 6436758a055SmrgBASE_CFLAGS 64414ddf674SmrgEGREP 64514ddf674SmrgGREP 64614ddf674SmrgCPP 64714ddf674Smrgam__fastdepCC_FALSE 64814ddf674Smrgam__fastdepCC_TRUE 64914ddf674SmrgCCDEPMODE 6506758a055Smrgam__nodep 65114ddf674SmrgAMDEPBACKSLASH 65214ddf674SmrgAMDEP_FALSE 65314ddf674SmrgAMDEP_TRUE 65414ddf674Smrgam__quote 65514ddf674Smrgam__include 65614ddf674SmrgDEPDIR 65714ddf674SmrgOBJEXT 65814ddf674SmrgEXEEXT 65914ddf674Smrgac_ct_CC 66014ddf674SmrgCPPFLAGS 66114ddf674SmrgLDFLAGS 66214ddf674SmrgCFLAGS 66314ddf674SmrgCC 66414ddf674SmrgMAINT 66514ddf674SmrgMAINTAINER_MODE_FALSE 66614ddf674SmrgMAINTAINER_MODE_TRUE 66714ddf674Smrgam__untar 66814ddf674Smrgam__tar 66914ddf674SmrgAMTAR 67014ddf674Smrgam__leading_dot 67114ddf674SmrgSET_MAKE 67214ddf674SmrgAWK 67314ddf674Smrgmkdir_p 67414ddf674SmrgMKDIR_P 67514ddf674SmrgINSTALL_STRIP_PROGRAM 67614ddf674SmrgSTRIP 67714ddf674Smrginstall_sh 67814ddf674SmrgMAKEINFO 67914ddf674SmrgAUTOHEADER 68014ddf674SmrgAUTOMAKE 68114ddf674SmrgAUTOCONF 68214ddf674SmrgACLOCAL 68314ddf674SmrgVERSION 68414ddf674SmrgPACKAGE 68514ddf674SmrgCYGPATH_W 68614ddf674Smrgam__isrc 68714ddf674SmrgINSTALL_DATA 68814ddf674SmrgINSTALL_SCRIPT 68914ddf674SmrgINSTALL_PROGRAM 69014ddf674Smrgtarget_alias 69114ddf674Smrghost_alias 69214ddf674Smrgbuild_alias 69314ddf674SmrgLIBS 69414ddf674SmrgECHO_T 69514ddf674SmrgECHO_N 69614ddf674SmrgECHO_C 69714ddf674SmrgDEFS 69814ddf674Smrgmandir 69914ddf674Smrglocaledir 70014ddf674Smrglibdir 70114ddf674Smrgpsdir 70214ddf674Smrgpdfdir 70314ddf674Smrgdvidir 70414ddf674Smrghtmldir 70514ddf674Smrginfodir 70614ddf674Smrgdocdir 70714ddf674Smrgoldincludedir 70814ddf674Smrgincludedir 70914ddf674Smrglocalstatedir 71014ddf674Smrgsharedstatedir 71114ddf674Smrgsysconfdir 71214ddf674Smrgdatadir 71314ddf674Smrgdatarootdir 71414ddf674Smrglibexecdir 71514ddf674Smrgsbindir 71614ddf674Smrgbindir 71714ddf674Smrgprogram_transform_name 71814ddf674Smrgprefix 71914ddf674Smrgexec_prefix 72014ddf674SmrgPACKAGE_URL 72114ddf674SmrgPACKAGE_BUGREPORT 72214ddf674SmrgPACKAGE_STRING 72314ddf674SmrgPACKAGE_VERSION 72414ddf674SmrgPACKAGE_TARNAME 72514ddf674SmrgPACKAGE_NAME 72614ddf674SmrgPATH_SEPARATOR 72714ddf674SmrgSHELL' 728cacd992dSmrgac_subst_files='' 72914ddf674Smrgac_user_opts=' 73014ddf674Smrgenable_option_checking 73114ddf674Smrgenable_maintainer_mode 73214ddf674Smrgenable_dependency_tracking 7336758a055Smrgenable_selective_werror 73414ddf674Smrgenable_strict_compilation 7356758a055Smrgenable_silent_rules 73614ddf674Smrgwith_appdefaultdir 73714ddf674Smrg' 73814ddf674Smrg ac_precious_vars='build_alias 73914ddf674Smrghost_alias 74014ddf674Smrgtarget_alias 74114ddf674SmrgCC 74214ddf674SmrgCFLAGS 74314ddf674SmrgLDFLAGS 74414ddf674SmrgLIBS 74514ddf674SmrgCPPFLAGS 74614ddf674SmrgCPP 74714ddf674SmrgPKG_CONFIG 74814ddf674SmrgXVIDTUNE_CFLAGS 74914ddf674SmrgXVIDTUNE_LIBS' 75014ddf674Smrg 751cacd992dSmrg 752cacd992dSmrg# Initialize some variables set by options. 753cacd992dSmrgac_init_help= 754cacd992dSmrgac_init_version=false 75514ddf674Smrgac_unrecognized_opts= 75614ddf674Smrgac_unrecognized_sep= 757cacd992dSmrg# The variables have the same names as the options, with 758cacd992dSmrg# dashes changed to underlines. 759cacd992dSmrgcache_file=/dev/null 760cacd992dSmrgexec_prefix=NONE 761cacd992dSmrgno_create= 762cacd992dSmrgno_recursion= 763cacd992dSmrgprefix=NONE 764cacd992dSmrgprogram_prefix=NONE 765cacd992dSmrgprogram_suffix=NONE 766cacd992dSmrgprogram_transform_name=s,x,x, 767cacd992dSmrgsilent= 768cacd992dSmrgsite= 769cacd992dSmrgsrcdir= 770cacd992dSmrgverbose= 771cacd992dSmrgx_includes=NONE 772cacd992dSmrgx_libraries=NONE 773cacd992dSmrg 774cacd992dSmrg# Installation directory options. 775cacd992dSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 776cacd992dSmrg# and all the variables that are supposed to be based on exec_prefix 777cacd992dSmrg# by default will actually change. 778cacd992dSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 77914ddf674Smrg# (The list follows the same order as the GNU Coding Standards.) 780cacd992dSmrgbindir='${exec_prefix}/bin' 781cacd992dSmrgsbindir='${exec_prefix}/sbin' 782cacd992dSmrglibexecdir='${exec_prefix}/libexec' 78314ddf674Smrgdatarootdir='${prefix}/share' 78414ddf674Smrgdatadir='${datarootdir}' 785cacd992dSmrgsysconfdir='${prefix}/etc' 786cacd992dSmrgsharedstatedir='${prefix}/com' 787cacd992dSmrglocalstatedir='${prefix}/var' 788cacd992dSmrgincludedir='${prefix}/include' 789cacd992dSmrgoldincludedir='/usr/include' 79014ddf674Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 79114ddf674Smrginfodir='${datarootdir}/info' 79214ddf674Smrghtmldir='${docdir}' 79314ddf674Smrgdvidir='${docdir}' 79414ddf674Smrgpdfdir='${docdir}' 79514ddf674Smrgpsdir='${docdir}' 79614ddf674Smrglibdir='${exec_prefix}/lib' 79714ddf674Smrglocaledir='${datarootdir}/locale' 79814ddf674Smrgmandir='${datarootdir}/man' 799cacd992dSmrg 800cacd992dSmrgac_prev= 80114ddf674Smrgac_dashdash= 802cacd992dSmrgfor ac_option 803cacd992dSmrgdo 804cacd992dSmrg # If the previous option needs an argument, assign it. 805cacd992dSmrg if test -n "$ac_prev"; then 80614ddf674Smrg eval $ac_prev=\$ac_option 807cacd992dSmrg ac_prev= 808cacd992dSmrg continue 809cacd992dSmrg fi 810cacd992dSmrg 81114ddf674Smrg case $ac_option in 8126758a055Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8136758a055Smrg *=) ac_optarg= ;; 8146758a055Smrg *) ac_optarg=yes ;; 81514ddf674Smrg esac 816cacd992dSmrg 817cacd992dSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 818cacd992dSmrg 81914ddf674Smrg case $ac_dashdash$ac_option in 82014ddf674Smrg --) 82114ddf674Smrg ac_dashdash=yes ;; 822cacd992dSmrg 823cacd992dSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 824cacd992dSmrg ac_prev=bindir ;; 825cacd992dSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 826cacd992dSmrg bindir=$ac_optarg ;; 827cacd992dSmrg 828cacd992dSmrg -build | --build | --buil | --bui | --bu) 829cacd992dSmrg ac_prev=build_alias ;; 830cacd992dSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 831cacd992dSmrg build_alias=$ac_optarg ;; 832cacd992dSmrg 833cacd992dSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 834cacd992dSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 835cacd992dSmrg ac_prev=cache_file ;; 836cacd992dSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 837cacd992dSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 838cacd992dSmrg cache_file=$ac_optarg ;; 839cacd992dSmrg 840cacd992dSmrg --config-cache | -C) 841cacd992dSmrg cache_file=config.cache ;; 842cacd992dSmrg 84314ddf674Smrg -datadir | --datadir | --datadi | --datad) 844cacd992dSmrg ac_prev=datadir ;; 84514ddf674Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 846cacd992dSmrg datadir=$ac_optarg ;; 847cacd992dSmrg 84814ddf674Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 84914ddf674Smrg | --dataroo | --dataro | --datar) 85014ddf674Smrg ac_prev=datarootdir ;; 85114ddf674Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 85214ddf674Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 85314ddf674Smrg datarootdir=$ac_optarg ;; 85414ddf674Smrg 855cacd992dSmrg -disable-* | --disable-*) 85614ddf674Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 857cacd992dSmrg # Reject names that are not valid shell variable names. 85814ddf674Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8596758a055Smrg as_fn_error $? "invalid feature name: $ac_useropt" 86014ddf674Smrg ac_useropt_orig=$ac_useropt 86114ddf674Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 86214ddf674Smrg case $ac_user_opts in 86314ddf674Smrg *" 86414ddf674Smrg"enable_$ac_useropt" 86514ddf674Smrg"*) ;; 86614ddf674Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 86714ddf674Smrg ac_unrecognized_sep=', ';; 86814ddf674Smrg esac 86914ddf674Smrg eval enable_$ac_useropt=no ;; 87014ddf674Smrg 87114ddf674Smrg -docdir | --docdir | --docdi | --doc | --do) 87214ddf674Smrg ac_prev=docdir ;; 87314ddf674Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 87414ddf674Smrg docdir=$ac_optarg ;; 87514ddf674Smrg 87614ddf674Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 87714ddf674Smrg ac_prev=dvidir ;; 87814ddf674Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 87914ddf674Smrg dvidir=$ac_optarg ;; 880cacd992dSmrg 881cacd992dSmrg -enable-* | --enable-*) 88214ddf674Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 883cacd992dSmrg # Reject names that are not valid shell variable names. 88414ddf674Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8856758a055Smrg as_fn_error $? "invalid feature name: $ac_useropt" 88614ddf674Smrg ac_useropt_orig=$ac_useropt 88714ddf674Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 88814ddf674Smrg case $ac_user_opts in 88914ddf674Smrg *" 89014ddf674Smrg"enable_$ac_useropt" 89114ddf674Smrg"*) ;; 89214ddf674Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 89314ddf674Smrg ac_unrecognized_sep=', ';; 894cacd992dSmrg esac 89514ddf674Smrg eval enable_$ac_useropt=\$ac_optarg ;; 896cacd992dSmrg 897cacd992dSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 898cacd992dSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 899cacd992dSmrg | --exec | --exe | --ex) 900cacd992dSmrg ac_prev=exec_prefix ;; 901cacd992dSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 902cacd992dSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 903cacd992dSmrg | --exec=* | --exe=* | --ex=*) 904cacd992dSmrg exec_prefix=$ac_optarg ;; 905cacd992dSmrg 906cacd992dSmrg -gas | --gas | --ga | --g) 907cacd992dSmrg # Obsolete; use --with-gas. 908cacd992dSmrg with_gas=yes ;; 909cacd992dSmrg 910cacd992dSmrg -help | --help | --hel | --he | -h) 911cacd992dSmrg ac_init_help=long ;; 912cacd992dSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 913cacd992dSmrg ac_init_help=recursive ;; 914cacd992dSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 915cacd992dSmrg ac_init_help=short ;; 916cacd992dSmrg 917cacd992dSmrg -host | --host | --hos | --ho) 918cacd992dSmrg ac_prev=host_alias ;; 919cacd992dSmrg -host=* | --host=* | --hos=* | --ho=*) 920cacd992dSmrg host_alias=$ac_optarg ;; 921cacd992dSmrg 92214ddf674Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 92314ddf674Smrg ac_prev=htmldir ;; 92414ddf674Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 92514ddf674Smrg | --ht=*) 92614ddf674Smrg htmldir=$ac_optarg ;; 92714ddf674Smrg 928cacd992dSmrg -includedir | --includedir | --includedi | --included | --include \ 929cacd992dSmrg | --includ | --inclu | --incl | --inc) 930cacd992dSmrg ac_prev=includedir ;; 931cacd992dSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 932cacd992dSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 933cacd992dSmrg includedir=$ac_optarg ;; 934cacd992dSmrg 935cacd992dSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 936cacd992dSmrg ac_prev=infodir ;; 937cacd992dSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 938cacd992dSmrg infodir=$ac_optarg ;; 939cacd992dSmrg 940cacd992dSmrg -libdir | --libdir | --libdi | --libd) 941cacd992dSmrg ac_prev=libdir ;; 942cacd992dSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 943cacd992dSmrg libdir=$ac_optarg ;; 944cacd992dSmrg 945cacd992dSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 946cacd992dSmrg | --libexe | --libex | --libe) 947cacd992dSmrg ac_prev=libexecdir ;; 948cacd992dSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 949cacd992dSmrg | --libexe=* | --libex=* | --libe=*) 950cacd992dSmrg libexecdir=$ac_optarg ;; 951cacd992dSmrg 95214ddf674Smrg -localedir | --localedir | --localedi | --localed | --locale) 95314ddf674Smrg ac_prev=localedir ;; 95414ddf674Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 95514ddf674Smrg localedir=$ac_optarg ;; 95614ddf674Smrg 957cacd992dSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 95814ddf674Smrg | --localstate | --localstat | --localsta | --localst | --locals) 959cacd992dSmrg ac_prev=localstatedir ;; 960cacd992dSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 96114ddf674Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 962cacd992dSmrg localstatedir=$ac_optarg ;; 963cacd992dSmrg 964cacd992dSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 965cacd992dSmrg ac_prev=mandir ;; 966cacd992dSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 967cacd992dSmrg mandir=$ac_optarg ;; 968cacd992dSmrg 969cacd992dSmrg -nfp | --nfp | --nf) 970cacd992dSmrg # Obsolete; use --without-fp. 971cacd992dSmrg with_fp=no ;; 972cacd992dSmrg 973cacd992dSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 974cacd992dSmrg | --no-cr | --no-c | -n) 975cacd992dSmrg no_create=yes ;; 976cacd992dSmrg 977cacd992dSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 978cacd992dSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 979cacd992dSmrg no_recursion=yes ;; 980cacd992dSmrg 981cacd992dSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 982cacd992dSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 983cacd992dSmrg | --oldin | --oldi | --old | --ol | --o) 984cacd992dSmrg ac_prev=oldincludedir ;; 985cacd992dSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 986cacd992dSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 987cacd992dSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 988cacd992dSmrg oldincludedir=$ac_optarg ;; 989cacd992dSmrg 990cacd992dSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 991cacd992dSmrg ac_prev=prefix ;; 992cacd992dSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 993cacd992dSmrg prefix=$ac_optarg ;; 994cacd992dSmrg 995cacd992dSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 996cacd992dSmrg | --program-pre | --program-pr | --program-p) 997cacd992dSmrg ac_prev=program_prefix ;; 998cacd992dSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 999cacd992dSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1000cacd992dSmrg program_prefix=$ac_optarg ;; 1001cacd992dSmrg 1002cacd992dSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1003cacd992dSmrg | --program-suf | --program-su | --program-s) 1004cacd992dSmrg ac_prev=program_suffix ;; 1005cacd992dSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1006cacd992dSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1007cacd992dSmrg program_suffix=$ac_optarg ;; 1008cacd992dSmrg 1009cacd992dSmrg -program-transform-name | --program-transform-name \ 1010cacd992dSmrg | --program-transform-nam | --program-transform-na \ 1011cacd992dSmrg | --program-transform-n | --program-transform- \ 1012cacd992dSmrg | --program-transform | --program-transfor \ 1013cacd992dSmrg | --program-transfo | --program-transf \ 1014cacd992dSmrg | --program-trans | --program-tran \ 1015cacd992dSmrg | --progr-tra | --program-tr | --program-t) 1016cacd992dSmrg ac_prev=program_transform_name ;; 1017cacd992dSmrg -program-transform-name=* | --program-transform-name=* \ 1018cacd992dSmrg | --program-transform-nam=* | --program-transform-na=* \ 1019cacd992dSmrg | --program-transform-n=* | --program-transform-=* \ 1020cacd992dSmrg | --program-transform=* | --program-transfor=* \ 1021cacd992dSmrg | --program-transfo=* | --program-transf=* \ 1022cacd992dSmrg | --program-trans=* | --program-tran=* \ 1023cacd992dSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 1024cacd992dSmrg program_transform_name=$ac_optarg ;; 1025cacd992dSmrg 102614ddf674Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 102714ddf674Smrg ac_prev=pdfdir ;; 102814ddf674Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 102914ddf674Smrg pdfdir=$ac_optarg ;; 103014ddf674Smrg 103114ddf674Smrg -psdir | --psdir | --psdi | --psd | --ps) 103214ddf674Smrg ac_prev=psdir ;; 103314ddf674Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 103414ddf674Smrg psdir=$ac_optarg ;; 103514ddf674Smrg 1036cacd992dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1037cacd992dSmrg | -silent | --silent | --silen | --sile | --sil) 1038cacd992dSmrg silent=yes ;; 1039cacd992dSmrg 1040cacd992dSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1041cacd992dSmrg ac_prev=sbindir ;; 1042cacd992dSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1043cacd992dSmrg | --sbi=* | --sb=*) 1044cacd992dSmrg sbindir=$ac_optarg ;; 1045cacd992dSmrg 1046cacd992dSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1047cacd992dSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1048cacd992dSmrg | --sharedst | --shareds | --shared | --share | --shar \ 1049cacd992dSmrg | --sha | --sh) 1050cacd992dSmrg ac_prev=sharedstatedir ;; 1051cacd992dSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1052cacd992dSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1053cacd992dSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1054cacd992dSmrg | --sha=* | --sh=*) 1055cacd992dSmrg sharedstatedir=$ac_optarg ;; 1056cacd992dSmrg 1057cacd992dSmrg -site | --site | --sit) 1058cacd992dSmrg ac_prev=site ;; 1059cacd992dSmrg -site=* | --site=* | --sit=*) 1060cacd992dSmrg site=$ac_optarg ;; 1061cacd992dSmrg 1062cacd992dSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1063cacd992dSmrg ac_prev=srcdir ;; 1064cacd992dSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1065cacd992dSmrg srcdir=$ac_optarg ;; 1066cacd992dSmrg 1067cacd992dSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1068cacd992dSmrg | --syscon | --sysco | --sysc | --sys | --sy) 1069cacd992dSmrg ac_prev=sysconfdir ;; 1070cacd992dSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1071cacd992dSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1072cacd992dSmrg sysconfdir=$ac_optarg ;; 1073cacd992dSmrg 1074cacd992dSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 1075cacd992dSmrg ac_prev=target_alias ;; 1076cacd992dSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1077cacd992dSmrg target_alias=$ac_optarg ;; 1078cacd992dSmrg 1079cacd992dSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1080cacd992dSmrg verbose=yes ;; 1081cacd992dSmrg 1082cacd992dSmrg -version | --version | --versio | --versi | --vers | -V) 1083cacd992dSmrg ac_init_version=: ;; 1084cacd992dSmrg 1085cacd992dSmrg -with-* | --with-*) 108614ddf674Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1087cacd992dSmrg # Reject names that are not valid shell variable names. 108814ddf674Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 10896758a055Smrg as_fn_error $? "invalid package name: $ac_useropt" 109014ddf674Smrg ac_useropt_orig=$ac_useropt 109114ddf674Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 109214ddf674Smrg case $ac_user_opts in 109314ddf674Smrg *" 109414ddf674Smrg"with_$ac_useropt" 109514ddf674Smrg"*) ;; 109614ddf674Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 109714ddf674Smrg ac_unrecognized_sep=', ';; 1098cacd992dSmrg esac 109914ddf674Smrg eval with_$ac_useropt=\$ac_optarg ;; 1100cacd992dSmrg 1101cacd992dSmrg -without-* | --without-*) 110214ddf674Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1103cacd992dSmrg # Reject names that are not valid shell variable names. 110414ddf674Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11056758a055Smrg as_fn_error $? "invalid package name: $ac_useropt" 110614ddf674Smrg ac_useropt_orig=$ac_useropt 110714ddf674Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 110814ddf674Smrg case $ac_user_opts in 110914ddf674Smrg *" 111014ddf674Smrg"with_$ac_useropt" 111114ddf674Smrg"*) ;; 111214ddf674Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 111314ddf674Smrg ac_unrecognized_sep=', ';; 111414ddf674Smrg esac 111514ddf674Smrg eval with_$ac_useropt=no ;; 1116cacd992dSmrg 1117cacd992dSmrg --x) 1118cacd992dSmrg # Obsolete; use --with-x. 1119cacd992dSmrg with_x=yes ;; 1120cacd992dSmrg 1121cacd992dSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1122cacd992dSmrg | --x-incl | --x-inc | --x-in | --x-i) 1123cacd992dSmrg ac_prev=x_includes ;; 1124cacd992dSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1125cacd992dSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1126cacd992dSmrg x_includes=$ac_optarg ;; 1127cacd992dSmrg 1128cacd992dSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1129cacd992dSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1130cacd992dSmrg ac_prev=x_libraries ;; 1131cacd992dSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1132cacd992dSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1133cacd992dSmrg x_libraries=$ac_optarg ;; 1134cacd992dSmrg 11356758a055Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 11366758a055SmrgTry \`$0 --help' for more information" 1137cacd992dSmrg ;; 1138cacd992dSmrg 1139cacd992dSmrg *=*) 1140cacd992dSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1141cacd992dSmrg # Reject names that are not valid shell variable names. 114214ddf674Smrg case $ac_envvar in #( 114314ddf674Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 11446758a055Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 114514ddf674Smrg esac 114614ddf674Smrg eval $ac_envvar=\$ac_optarg 1147cacd992dSmrg export $ac_envvar ;; 1148cacd992dSmrg 1149cacd992dSmrg *) 1150cacd992dSmrg # FIXME: should be removed in autoconf 3.0. 115114ddf674Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1152cacd992dSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 115314ddf674Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 11546758a055Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1155cacd992dSmrg ;; 1156cacd992dSmrg 1157cacd992dSmrg esac 1158cacd992dSmrgdone 1159cacd992dSmrg 1160cacd992dSmrgif test -n "$ac_prev"; then 1161cacd992dSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 11626758a055Smrg as_fn_error $? "missing argument to $ac_option" 1163cacd992dSmrgfi 1164cacd992dSmrg 116514ddf674Smrgif test -n "$ac_unrecognized_opts"; then 116614ddf674Smrg case $enable_option_checking in 116714ddf674Smrg no) ;; 11686758a055Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 116914ddf674Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1170cacd992dSmrg esac 117114ddf674Smrgfi 1172cacd992dSmrg 117314ddf674Smrg# Check all directory arguments for consistency. 117414ddf674Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 117514ddf674Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 117614ddf674Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 117714ddf674Smrg libdir localedir mandir 1178cacd992dSmrgdo 117914ddf674Smrg eval ac_val=\$$ac_var 118014ddf674Smrg # Remove trailing slashes. 118114ddf674Smrg case $ac_val in 118214ddf674Smrg */ ) 118314ddf674Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 118414ddf674Smrg eval $ac_var=\$ac_val;; 118514ddf674Smrg esac 118614ddf674Smrg # Be sure to have absolute directory names. 1187cacd992dSmrg case $ac_val in 118814ddf674Smrg [\\/$]* | ?:[\\/]* ) continue;; 118914ddf674Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1190cacd992dSmrg esac 11916758a055Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1192cacd992dSmrgdone 1193cacd992dSmrg 1194cacd992dSmrg# There might be people who depend on the old broken behavior: `$host' 1195cacd992dSmrg# used to hold the argument of --host etc. 1196cacd992dSmrg# FIXME: To remove some day. 1197cacd992dSmrgbuild=$build_alias 1198cacd992dSmrghost=$host_alias 1199cacd992dSmrgtarget=$target_alias 1200cacd992dSmrg 1201cacd992dSmrg# FIXME: To remove some day. 1202cacd992dSmrgif test "x$host_alias" != x; then 1203cacd992dSmrg if test "x$build_alias" = x; then 1204cacd992dSmrg cross_compiling=maybe 12056758a055Smrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 12066758a055Smrg If a cross compiler is detected then cross compile mode will be used" >&2 1207cacd992dSmrg elif test "x$build_alias" != "x$host_alias"; then 1208cacd992dSmrg cross_compiling=yes 1209cacd992dSmrg fi 1210cacd992dSmrgfi 1211cacd992dSmrg 1212cacd992dSmrgac_tool_prefix= 1213cacd992dSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1214cacd992dSmrg 1215cacd992dSmrgtest "$silent" = yes && exec 6>/dev/null 1216cacd992dSmrg 1217cacd992dSmrg 121814ddf674Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 121914ddf674Smrgac_ls_di=`ls -di .` && 122014ddf674Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12216758a055Smrg as_fn_error $? "working directory cannot be determined" 122214ddf674Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12236758a055Smrg as_fn_error $? "pwd does not report name of working directory" 122414ddf674Smrg 122514ddf674Smrg 1226cacd992dSmrg# Find the source files, if location was not specified. 1227cacd992dSmrgif test -z "$srcdir"; then 1228cacd992dSmrg ac_srcdir_defaulted=yes 122914ddf674Smrg # Try the directory containing this script, then the parent directory. 123014ddf674Smrg ac_confdir=`$as_dirname -- "$as_myself" || 123114ddf674Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 123214ddf674Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 123314ddf674Smrg X"$as_myself" : 'X\(//\)$' \| \ 123414ddf674Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 123514ddf674Smrg$as_echo X"$as_myself" | 123614ddf674Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 123714ddf674Smrg s//\1/ 123814ddf674Smrg q 123914ddf674Smrg } 124014ddf674Smrg /^X\(\/\/\)[^/].*/{ 124114ddf674Smrg s//\1/ 124214ddf674Smrg q 124314ddf674Smrg } 124414ddf674Smrg /^X\(\/\/\)$/{ 124514ddf674Smrg s//\1/ 124614ddf674Smrg q 124714ddf674Smrg } 124814ddf674Smrg /^X\(\/\).*/{ 124914ddf674Smrg s//\1/ 125014ddf674Smrg q 125114ddf674Smrg } 125214ddf674Smrg s/.*/./; q'` 1253cacd992dSmrg srcdir=$ac_confdir 125414ddf674Smrg if test ! -r "$srcdir/$ac_unique_file"; then 1255cacd992dSmrg srcdir=.. 1256cacd992dSmrg fi 1257cacd992dSmrgelse 1258cacd992dSmrg ac_srcdir_defaulted=no 1259cacd992dSmrgfi 126014ddf674Smrgif test ! -r "$srcdir/$ac_unique_file"; then 126114ddf674Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 12626758a055Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 126314ddf674Smrgfi 126414ddf674Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 126514ddf674Smrgac_abs_confdir=`( 12666758a055Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 126714ddf674Smrg pwd)` 126814ddf674Smrg# When building in place, set srcdir=. 126914ddf674Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 127014ddf674Smrg srcdir=. 127114ddf674Smrgfi 127214ddf674Smrg# Remove unnecessary trailing slashes from srcdir. 127314ddf674Smrg# Double slashes in file names in object file debugging info 127414ddf674Smrg# mess up M-x gdb in Emacs. 127514ddf674Smrgcase $srcdir in 127614ddf674Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 127714ddf674Smrgesac 127814ddf674Smrgfor ac_var in $ac_precious_vars; do 127914ddf674Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 128014ddf674Smrg eval ac_env_${ac_var}_value=\$${ac_var} 128114ddf674Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 128214ddf674Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 128314ddf674Smrgdone 1284cacd992dSmrg 1285cacd992dSmrg# 1286cacd992dSmrg# Report the --help message. 1287cacd992dSmrg# 1288cacd992dSmrgif test "$ac_init_help" = "long"; then 1289cacd992dSmrg # Omit some internal or obsolete options to make the list less imposing. 1290cacd992dSmrg # This message is too long to be a string in the A/UX 3.1 sh. 1291cacd992dSmrg cat <<_ACEOF 12926758a055Smrg\`configure' configures xvidtune 1.0.3 to adapt to many kinds of systems. 1293cacd992dSmrg 1294cacd992dSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1295cacd992dSmrg 1296cacd992dSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1297cacd992dSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1298cacd992dSmrg 1299cacd992dSmrgDefaults for the options are specified in brackets. 1300cacd992dSmrg 1301cacd992dSmrgConfiguration: 1302cacd992dSmrg -h, --help display this help and exit 1303cacd992dSmrg --help=short display options specific to this package 1304cacd992dSmrg --help=recursive display the short help of all the included packages 1305cacd992dSmrg -V, --version display version information and exit 13066758a055Smrg -q, --quiet, --silent do not print \`checking ...' messages 1307cacd992dSmrg --cache-file=FILE cache test results in FILE [disabled] 1308cacd992dSmrg -C, --config-cache alias for \`--cache-file=config.cache' 1309cacd992dSmrg -n, --no-create do not create output files 1310cacd992dSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1311cacd992dSmrg 1312cacd992dSmrgInstallation directories: 1313cacd992dSmrg --prefix=PREFIX install architecture-independent files in PREFIX 131414ddf674Smrg [$ac_default_prefix] 1315cacd992dSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 131614ddf674Smrg [PREFIX] 1317cacd992dSmrg 1318cacd992dSmrgBy default, \`make install' will install all the files in 1319cacd992dSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1320cacd992dSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1321cacd992dSmrgfor instance \`--prefix=\$HOME'. 1322cacd992dSmrg 1323cacd992dSmrgFor better control, use the options below. 1324cacd992dSmrg 1325cacd992dSmrgFine tuning of the installation directories: 132614ddf674Smrg --bindir=DIR user executables [EPREFIX/bin] 132714ddf674Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 132814ddf674Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 132914ddf674Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 133014ddf674Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 133114ddf674Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 133214ddf674Smrg --libdir=DIR object code libraries [EPREFIX/lib] 133314ddf674Smrg --includedir=DIR C header files [PREFIX/include] 133414ddf674Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 133514ddf674Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 133614ddf674Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 133714ddf674Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 133814ddf674Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 133914ddf674Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 134014ddf674Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xvidtune] 134114ddf674Smrg --htmldir=DIR html documentation [DOCDIR] 134214ddf674Smrg --dvidir=DIR dvi documentation [DOCDIR] 134314ddf674Smrg --pdfdir=DIR pdf documentation [DOCDIR] 134414ddf674Smrg --psdir=DIR ps documentation [DOCDIR] 1345cacd992dSmrg_ACEOF 1346cacd992dSmrg 1347cacd992dSmrg cat <<\_ACEOF 1348cacd992dSmrg 1349cacd992dSmrgProgram names: 1350cacd992dSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 1351cacd992dSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 1352cacd992dSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1353cacd992dSmrg 1354cacd992dSmrgSystem types: 1355cacd992dSmrg --build=BUILD configure for building on BUILD [guessed] 1356cacd992dSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1357cacd992dSmrg_ACEOF 1358cacd992dSmrgfi 1359cacd992dSmrg 1360cacd992dSmrgif test -n "$ac_init_help"; then 1361cacd992dSmrg case $ac_init_help in 13626758a055Smrg short | recursive ) echo "Configuration of xvidtune 1.0.3:";; 1363cacd992dSmrg esac 1364cacd992dSmrg cat <<\_ACEOF 1365cacd992dSmrg 1366cacd992dSmrgOptional Features: 136714ddf674Smrg --disable-option-checking ignore unrecognized --enable/--with options 1368cacd992dSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1369cacd992dSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 137014ddf674Smrg --enable-maintainer-mode enable make rules and dependencies not useful 137114ddf674Smrg (and sometimes confusing) to the casual installer 137214ddf674Smrg --disable-dependency-tracking speeds up one-time build 137314ddf674Smrg --enable-dependency-tracking do not reject slow dependency extractors 13746758a055Smrg --disable-selective-werror 13756758a055Smrg Turn off selective compiler errors. (default: 13766758a055Smrg enabled) 137714ddf674Smrg --enable-strict-compilation 137814ddf674Smrg Enable all warnings from compiler and make them 137914ddf674Smrg errors (default: disabled) 13806758a055Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 13816758a055Smrg --disable-silent-rules verbose build output (undo: `make V=0') 1382cacd992dSmrg 1383cacd992dSmrgOptional Packages: 1384cacd992dSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1385cacd992dSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 138614ddf674Smrg --with-appdefaultdir=<pathname> 138714ddf674Smrg specify directory for app-defaults files (default is 138814ddf674Smrg autodetected) 1389cacd992dSmrg 1390cacd992dSmrgSome influential environment variables: 1391cacd992dSmrg CC C compiler command 1392cacd992dSmrg CFLAGS C compiler flags 1393cacd992dSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1394cacd992dSmrg nonstandard directory <lib dir> 139514ddf674Smrg LIBS libraries to pass to the linker, e.g. -l<library> 139614ddf674Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 139714ddf674Smrg you have headers in a nonstandard directory <include dir> 1398cacd992dSmrg CPP C preprocessor 1399cacd992dSmrg PKG_CONFIG path to pkg-config utility 1400cacd992dSmrg XVIDTUNE_CFLAGS 1401cacd992dSmrg C compiler flags for XVIDTUNE, overriding pkg-config 1402cacd992dSmrg XVIDTUNE_LIBS 1403cacd992dSmrg linker flags for XVIDTUNE, overriding pkg-config 1404cacd992dSmrg 1405cacd992dSmrgUse these variables to override the choices made by `configure' or to help 1406cacd992dSmrgit to find libraries and programs with nonstandard names/locations. 1407cacd992dSmrg 1408cacd992dSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1409cacd992dSmrg_ACEOF 141014ddf674Smrgac_status=$? 1411cacd992dSmrgfi 1412cacd992dSmrg 1413cacd992dSmrgif test "$ac_init_help" = "recursive"; then 1414cacd992dSmrg # If there are subdirs, report their specific --help. 1415cacd992dSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 141614ddf674Smrg test -d "$ac_dir" || 141714ddf674Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 141814ddf674Smrg continue 1419cacd992dSmrg ac_builddir=. 1420cacd992dSmrg 142114ddf674Smrgcase "$ac_dir" in 142214ddf674Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 142314ddf674Smrg*) 142414ddf674Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 142514ddf674Smrg # A ".." for each directory in $ac_dir_suffix. 142614ddf674Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 142714ddf674Smrg case $ac_top_builddir_sub in 142814ddf674Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 142914ddf674Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 143014ddf674Smrg esac ;; 143114ddf674Smrgesac 143214ddf674Smrgac_abs_top_builddir=$ac_pwd 143314ddf674Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 143414ddf674Smrg# for backward compatibility: 143514ddf674Smrgac_top_builddir=$ac_top_build_prefix 1436cacd992dSmrg 1437cacd992dSmrgcase $srcdir in 143814ddf674Smrg .) # We are building in place. 1439cacd992dSmrg ac_srcdir=. 144014ddf674Smrg ac_top_srcdir=$ac_top_builddir_sub 144114ddf674Smrg ac_abs_top_srcdir=$ac_pwd ;; 144214ddf674Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1443cacd992dSmrg ac_srcdir=$srcdir$ac_dir_suffix; 144414ddf674Smrg ac_top_srcdir=$srcdir 144514ddf674Smrg ac_abs_top_srcdir=$srcdir ;; 144614ddf674Smrg *) # Relative name. 144714ddf674Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 144814ddf674Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 144914ddf674Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1450cacd992dSmrgesac 145114ddf674Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 145214ddf674Smrg 145314ddf674Smrg cd "$ac_dir" || { ac_status=$?; continue; } 145414ddf674Smrg # Check for guested configure. 145514ddf674Smrg if test -f "$ac_srcdir/configure.gnu"; then 145614ddf674Smrg echo && 145714ddf674Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 145814ddf674Smrg elif test -f "$ac_srcdir/configure"; then 145914ddf674Smrg echo && 146014ddf674Smrg $SHELL "$ac_srcdir/configure" --help=recursive 1461cacd992dSmrg else 146214ddf674Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 146314ddf674Smrg fi || ac_status=$? 146414ddf674Smrg cd "$ac_pwd" || { ac_status=$?; break; } 1465cacd992dSmrg done 1466cacd992dSmrgfi 1467cacd992dSmrg 146814ddf674Smrgtest -n "$ac_init_help" && exit $ac_status 1469cacd992dSmrgif $ac_init_version; then 1470cacd992dSmrg cat <<\_ACEOF 14716758a055Smrgxvidtune configure 1.0.3 14726758a055Smrggenerated by GNU Autoconf 2.68 1473cacd992dSmrg 14746758a055SmrgCopyright (C) 2010 Free Software Foundation, Inc. 1475cacd992dSmrgThis configure script is free software; the Free Software Foundation 1476cacd992dSmrggives unlimited permission to copy, distribute and modify it. 1477cacd992dSmrg_ACEOF 147814ddf674Smrg exit 1479cacd992dSmrgfi 1480cacd992dSmrg 148114ddf674Smrg## ------------------------ ## 148214ddf674Smrg## Autoconf initialization. ## 148314ddf674Smrg## ------------------------ ## 1484cacd992dSmrg 148514ddf674Smrg# ac_fn_c_try_compile LINENO 148614ddf674Smrg# -------------------------- 148714ddf674Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 148814ddf674Smrgac_fn_c_try_compile () 1489cacd992dSmrg{ 149014ddf674Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 149114ddf674Smrg rm -f conftest.$ac_objext 149214ddf674Smrg if { { ac_try="$ac_compile" 149314ddf674Smrgcase "(($ac_try" in 149414ddf674Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 149514ddf674Smrg *) ac_try_echo=$ac_try;; 149614ddf674Smrgesac 149714ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 149814ddf674Smrg$as_echo "$ac_try_echo"; } >&5 149914ddf674Smrg (eval "$ac_compile") 2>conftest.err 150014ddf674Smrg ac_status=$? 150114ddf674Smrg if test -s conftest.err; then 150214ddf674Smrg grep -v '^ *+' conftest.err >conftest.er1 150314ddf674Smrg cat conftest.er1 >&5 150414ddf674Smrg mv -f conftest.er1 conftest.err 150514ddf674Smrg fi 150614ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 150714ddf674Smrg test $ac_status = 0; } && { 150814ddf674Smrg test -z "$ac_c_werror_flag" || 150914ddf674Smrg test ! -s conftest.err 151014ddf674Smrg } && test -s conftest.$ac_objext; then : 151114ddf674Smrg ac_retval=0 151214ddf674Smrgelse 151314ddf674Smrg $as_echo "$as_me: failed program was:" >&5 151414ddf674Smrgsed 's/^/| /' conftest.$ac_ext >&5 1515cacd992dSmrg 151614ddf674Smrg ac_retval=1 151714ddf674Smrgfi 15186758a055Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 151914ddf674Smrg as_fn_set_status $ac_retval 1520cacd992dSmrg 152114ddf674Smrg} # ac_fn_c_try_compile 1522cacd992dSmrg 15236758a055Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 15246758a055Smrg# --------------------------------------------- 15256758a055Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 15266758a055Smrg# accordingly. 152714ddf674Smrgac_fn_c_check_decl () 152814ddf674Smrg{ 152914ddf674Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15306758a055Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 15316758a055Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 15326758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 15336758a055Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 15346758a055Smrgif eval \${$3+:} false; then : 153514ddf674Smrg $as_echo_n "(cached) " >&6 153614ddf674Smrgelse 153714ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 153814ddf674Smrg/* end confdefs.h. */ 153914ddf674Smrg$4 154014ddf674Smrgint 154114ddf674Smrgmain () 154214ddf674Smrg{ 15436758a055Smrg#ifndef $as_decl_name 15446758a055Smrg#ifdef __cplusplus 15456758a055Smrg (void) $as_decl_use; 15466758a055Smrg#else 15476758a055Smrg (void) $as_decl_name; 15486758a055Smrg#endif 154914ddf674Smrg#endif 1550cacd992dSmrg 155114ddf674Smrg ; 155214ddf674Smrg return 0; 155314ddf674Smrg} 155414ddf674Smrg_ACEOF 155514ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then : 155614ddf674Smrg eval "$3=yes" 155714ddf674Smrgelse 155814ddf674Smrg eval "$3=no" 155914ddf674Smrgfi 156014ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 156114ddf674Smrgfi 156214ddf674Smrgeval ac_res=\$$3 156314ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 156414ddf674Smrg$as_echo "$ac_res" >&6; } 15656758a055Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1566cacd992dSmrg 156714ddf674Smrg} # ac_fn_c_check_decl 156814ddf674Smrg 156914ddf674Smrg# ac_fn_c_try_cpp LINENO 157014ddf674Smrg# ---------------------- 157114ddf674Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 157214ddf674Smrgac_fn_c_try_cpp () 157314ddf674Smrg{ 157414ddf674Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 157514ddf674Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 157614ddf674Smrgcase "(($ac_try" in 157714ddf674Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 157814ddf674Smrg *) ac_try_echo=$ac_try;; 157914ddf674Smrgesac 158014ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 158114ddf674Smrg$as_echo "$ac_try_echo"; } >&5 158214ddf674Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 158314ddf674Smrg ac_status=$? 158414ddf674Smrg if test -s conftest.err; then 158514ddf674Smrg grep -v '^ *+' conftest.err >conftest.er1 158614ddf674Smrg cat conftest.er1 >&5 158714ddf674Smrg mv -f conftest.er1 conftest.err 158814ddf674Smrg fi 158914ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15906758a055Smrg test $ac_status = 0; } > conftest.i && { 159114ddf674Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 159214ddf674Smrg test ! -s conftest.err 159314ddf674Smrg }; then : 159414ddf674Smrg ac_retval=0 159514ddf674Smrgelse 159614ddf674Smrg $as_echo "$as_me: failed program was:" >&5 159714ddf674Smrgsed 's/^/| /' conftest.$ac_ext >&5 159814ddf674Smrg 159914ddf674Smrg ac_retval=1 160014ddf674Smrgfi 16016758a055Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 160214ddf674Smrg as_fn_set_status $ac_retval 160314ddf674Smrg 160414ddf674Smrg} # ac_fn_c_try_cpp 160514ddf674Smrg 160614ddf674Smrg# ac_fn_c_try_run LINENO 160714ddf674Smrg# ---------------------- 160814ddf674Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 160914ddf674Smrg# that executables *can* be run. 161014ddf674Smrgac_fn_c_try_run () 161114ddf674Smrg{ 161214ddf674Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 161314ddf674Smrg if { { ac_try="$ac_link" 161414ddf674Smrgcase "(($ac_try" in 161514ddf674Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 161614ddf674Smrg *) ac_try_echo=$ac_try;; 161714ddf674Smrgesac 161814ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 161914ddf674Smrg$as_echo "$ac_try_echo"; } >&5 162014ddf674Smrg (eval "$ac_link") 2>&5 162114ddf674Smrg ac_status=$? 162214ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 162314ddf674Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 162414ddf674Smrg { { case "(($ac_try" in 162514ddf674Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 162614ddf674Smrg *) ac_try_echo=$ac_try;; 162714ddf674Smrgesac 162814ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 162914ddf674Smrg$as_echo "$ac_try_echo"; } >&5 163014ddf674Smrg (eval "$ac_try") 2>&5 163114ddf674Smrg ac_status=$? 163214ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 163314ddf674Smrg test $ac_status = 0; }; }; then : 163414ddf674Smrg ac_retval=0 163514ddf674Smrgelse 163614ddf674Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 163714ddf674Smrg $as_echo "$as_me: failed program was:" >&5 163814ddf674Smrgsed 's/^/| /' conftest.$ac_ext >&5 163914ddf674Smrg 164014ddf674Smrg ac_retval=$ac_status 164114ddf674Smrgfi 164214ddf674Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 16436758a055Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 164414ddf674Smrg as_fn_set_status $ac_retval 164514ddf674Smrg 164614ddf674Smrg} # ac_fn_c_try_run 164714ddf674Smrg 164814ddf674Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 164914ddf674Smrg# ------------------------------------------------------- 165014ddf674Smrg# Tests whether HEADER exists and can be compiled using the include files in 165114ddf674Smrg# INCLUDES, setting the cache variable VAR accordingly. 165214ddf674Smrgac_fn_c_check_header_compile () 165314ddf674Smrg{ 165414ddf674Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 165514ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 165614ddf674Smrg$as_echo_n "checking for $2... " >&6; } 16576758a055Smrgif eval \${$3+:} false; then : 165814ddf674Smrg $as_echo_n "(cached) " >&6 165914ddf674Smrgelse 166014ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 166114ddf674Smrg/* end confdefs.h. */ 166214ddf674Smrg$4 166314ddf674Smrg#include <$2> 166414ddf674Smrg_ACEOF 166514ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then : 166614ddf674Smrg eval "$3=yes" 166714ddf674Smrgelse 166814ddf674Smrg eval "$3=no" 166914ddf674Smrgfi 167014ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 167114ddf674Smrgfi 167214ddf674Smrgeval ac_res=\$$3 167314ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 167414ddf674Smrg$as_echo "$ac_res" >&6; } 16756758a055Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 167614ddf674Smrg 167714ddf674Smrg} # ac_fn_c_check_header_compile 16786758a055Smrg 16796758a055Smrg# ac_fn_c_try_link LINENO 16806758a055Smrg# ----------------------- 16816758a055Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 16826758a055Smrgac_fn_c_try_link () 16836758a055Smrg{ 16846758a055Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16856758a055Smrg rm -f conftest.$ac_objext conftest$ac_exeext 16866758a055Smrg if { { ac_try="$ac_link" 16876758a055Smrgcase "(($ac_try" in 16886758a055Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16896758a055Smrg *) ac_try_echo=$ac_try;; 16906758a055Smrgesac 16916758a055Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16926758a055Smrg$as_echo "$ac_try_echo"; } >&5 16936758a055Smrg (eval "$ac_link") 2>conftest.err 16946758a055Smrg ac_status=$? 16956758a055Smrg if test -s conftest.err; then 16966758a055Smrg grep -v '^ *+' conftest.err >conftest.er1 16976758a055Smrg cat conftest.er1 >&5 16986758a055Smrg mv -f conftest.er1 conftest.err 16996758a055Smrg fi 17006758a055Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17016758a055Smrg test $ac_status = 0; } && { 17026758a055Smrg test -z "$ac_c_werror_flag" || 17036758a055Smrg test ! -s conftest.err 17046758a055Smrg } && test -s conftest$ac_exeext && { 17056758a055Smrg test "$cross_compiling" = yes || 17066758a055Smrg $as_test_x conftest$ac_exeext 17076758a055Smrg }; then : 17086758a055Smrg ac_retval=0 17096758a055Smrgelse 17106758a055Smrg $as_echo "$as_me: failed program was:" >&5 17116758a055Smrgsed 's/^/| /' conftest.$ac_ext >&5 17126758a055Smrg 17136758a055Smrg ac_retval=1 17146758a055Smrgfi 17156758a055Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 17166758a055Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 17176758a055Smrg # interfere with the next link command; also delete a directory that is 17186758a055Smrg # left behind by Apple's compiler. We do this before executing the actions. 17196758a055Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17206758a055Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17216758a055Smrg as_fn_set_status $ac_retval 17226758a055Smrg 17236758a055Smrg} # ac_fn_c_try_link 172414ddf674Smrgcat >config.log <<_ACEOF 172514ddf674SmrgThis file contains any messages produced by compilers while 172614ddf674Smrgrunning configure, to aid debugging if configure makes a mistake. 172714ddf674Smrg 17286758a055SmrgIt was created by xvidtune $as_me 1.0.3, which was 17296758a055Smrggenerated by GNU Autoconf 2.68. Invocation command line was 173014ddf674Smrg 173114ddf674Smrg $ $0 $@ 173214ddf674Smrg 173314ddf674Smrg_ACEOF 173414ddf674Smrgexec 5>>config.log 173514ddf674Smrg{ 173614ddf674Smrgcat <<_ASUNAME 173714ddf674Smrg## --------- ## 173814ddf674Smrg## Platform. ## 173914ddf674Smrg## --------- ## 174014ddf674Smrg 174114ddf674Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 174214ddf674Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 174314ddf674Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 174414ddf674Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 174514ddf674Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 174614ddf674Smrg 174714ddf674Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 174814ddf674Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 174914ddf674Smrg 175014ddf674Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 175114ddf674Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 175214ddf674Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 175314ddf674Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 175414ddf674Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 175514ddf674Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 175614ddf674Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 175714ddf674Smrg 175814ddf674Smrg_ASUNAME 175914ddf674Smrg 176014ddf674Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 176114ddf674Smrgfor as_dir in $PATH 1762cacd992dSmrgdo 1763cacd992dSmrg IFS=$as_save_IFS 1764cacd992dSmrg test -z "$as_dir" && as_dir=. 176514ddf674Smrg $as_echo "PATH: $as_dir" 176614ddf674Smrg done 176714ddf674SmrgIFS=$as_save_IFS 1768cacd992dSmrg 1769cacd992dSmrg} >&5 1770cacd992dSmrg 1771cacd992dSmrgcat >&5 <<_ACEOF 1772cacd992dSmrg 1773cacd992dSmrg 1774cacd992dSmrg## ----------- ## 1775cacd992dSmrg## Core tests. ## 1776cacd992dSmrg## ----------- ## 1777cacd992dSmrg 1778cacd992dSmrg_ACEOF 1779cacd992dSmrg 1780cacd992dSmrg 1781cacd992dSmrg# Keep a trace of the command line. 1782cacd992dSmrg# Strip out --no-create and --no-recursion so they do not pile up. 1783cacd992dSmrg# Strip out --silent because we don't want to record it for future runs. 1784cacd992dSmrg# Also quote any args containing shell meta-characters. 1785cacd992dSmrg# Make two passes to allow for proper duplicate-argument suppression. 1786cacd992dSmrgac_configure_args= 1787cacd992dSmrgac_configure_args0= 1788cacd992dSmrgac_configure_args1= 1789cacd992dSmrgac_must_keep_next=false 1790cacd992dSmrgfor ac_pass in 1 2 1791cacd992dSmrgdo 1792cacd992dSmrg for ac_arg 1793cacd992dSmrg do 1794cacd992dSmrg case $ac_arg in 1795cacd992dSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1796cacd992dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1797cacd992dSmrg | -silent | --silent | --silen | --sile | --sil) 1798cacd992dSmrg continue ;; 179914ddf674Smrg *\'*) 180014ddf674Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1801cacd992dSmrg esac 1802cacd992dSmrg case $ac_pass in 180314ddf674Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1804cacd992dSmrg 2) 180514ddf674Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 1806cacd992dSmrg if test $ac_must_keep_next = true; then 1807cacd992dSmrg ac_must_keep_next=false # Got value, back to normal. 1808cacd992dSmrg else 1809cacd992dSmrg case $ac_arg in 1810cacd992dSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1811cacd992dSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1812cacd992dSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1813cacd992dSmrg | -with-* | --with-* | -without-* | --without-* | --x) 1814cacd992dSmrg case "$ac_configure_args0 " in 1815cacd992dSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1816cacd992dSmrg esac 1817cacd992dSmrg ;; 1818cacd992dSmrg -* ) ac_must_keep_next=true ;; 1819cacd992dSmrg esac 1820cacd992dSmrg fi 182114ddf674Smrg as_fn_append ac_configure_args " '$ac_arg'" 1822cacd992dSmrg ;; 1823cacd992dSmrg esac 1824cacd992dSmrg done 1825cacd992dSmrgdone 182614ddf674Smrg{ ac_configure_args0=; unset ac_configure_args0;} 182714ddf674Smrg{ ac_configure_args1=; unset ac_configure_args1;} 1828cacd992dSmrg 1829cacd992dSmrg# When interrupted or exit'd, cleanup temporary files, and complete 1830cacd992dSmrg# config.log. We remove comments because anyway the quotes in there 1831cacd992dSmrg# would cause problems or look ugly. 183214ddf674Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 183314ddf674Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1834cacd992dSmrgtrap 'exit_status=$? 1835cacd992dSmrg # Save into config.log some information that might help in debugging. 1836cacd992dSmrg { 1837cacd992dSmrg echo 1838cacd992dSmrg 18396758a055Smrg $as_echo "## ---------------- ## 1840cacd992dSmrg## Cache variables. ## 18416758a055Smrg## ---------------- ##" 1842cacd992dSmrg echo 1843cacd992dSmrg # The following way of writing the cache mishandles newlines in values, 184414ddf674Smrg( 184514ddf674Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 184614ddf674Smrg eval ac_val=\$$ac_var 184714ddf674Smrg case $ac_val in #( 184814ddf674Smrg *${as_nl}*) 184914ddf674Smrg case $ac_var in #( 185014ddf674Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 185114ddf674Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 185214ddf674Smrg esac 185314ddf674Smrg case $ac_var in #( 185414ddf674Smrg _ | IFS | as_nl) ;; #( 185514ddf674Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 185614ddf674Smrg *) { eval $ac_var=; unset $ac_var;} ;; 185714ddf674Smrg esac ;; 185814ddf674Smrg esac 185914ddf674Smrg done 1860cacd992dSmrg (set) 2>&1 | 186114ddf674Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 186214ddf674Smrg *${as_nl}ac_space=\ *) 1863cacd992dSmrg sed -n \ 186414ddf674Smrg "s/'\''/'\''\\\\'\'''\''/g; 186514ddf674Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 186614ddf674Smrg ;; #( 1867cacd992dSmrg *) 186814ddf674Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1869cacd992dSmrg ;; 187014ddf674Smrg esac | 187114ddf674Smrg sort 187214ddf674Smrg) 1873cacd992dSmrg echo 1874cacd992dSmrg 18756758a055Smrg $as_echo "## ----------------- ## 1876cacd992dSmrg## Output variables. ## 18776758a055Smrg## ----------------- ##" 1878cacd992dSmrg echo 1879cacd992dSmrg for ac_var in $ac_subst_vars 1880cacd992dSmrg do 188114ddf674Smrg eval ac_val=\$$ac_var 188214ddf674Smrg case $ac_val in 188314ddf674Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 188414ddf674Smrg esac 188514ddf674Smrg $as_echo "$ac_var='\''$ac_val'\''" 1886cacd992dSmrg done | sort 1887cacd992dSmrg echo 1888cacd992dSmrg 1889cacd992dSmrg if test -n "$ac_subst_files"; then 18906758a055Smrg $as_echo "## ------------------- ## 189114ddf674Smrg## File substitutions. ## 18926758a055Smrg## ------------------- ##" 1893cacd992dSmrg echo 1894cacd992dSmrg for ac_var in $ac_subst_files 1895cacd992dSmrg do 189614ddf674Smrg eval ac_val=\$$ac_var 189714ddf674Smrg case $ac_val in 189814ddf674Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 189914ddf674Smrg esac 190014ddf674Smrg $as_echo "$ac_var='\''$ac_val'\''" 1901cacd992dSmrg done | sort 1902cacd992dSmrg echo 1903cacd992dSmrg fi 1904cacd992dSmrg 1905cacd992dSmrg if test -s confdefs.h; then 19066758a055Smrg $as_echo "## ----------- ## 1907cacd992dSmrg## confdefs.h. ## 19086758a055Smrg## ----------- ##" 1909cacd992dSmrg echo 191014ddf674Smrg cat confdefs.h 1911cacd992dSmrg echo 1912cacd992dSmrg fi 1913cacd992dSmrg test "$ac_signal" != 0 && 191414ddf674Smrg $as_echo "$as_me: caught signal $ac_signal" 191514ddf674Smrg $as_echo "$as_me: exit $exit_status" 1916cacd992dSmrg } >&5 191714ddf674Smrg rm -f core *.core core.conftest.* && 191814ddf674Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1919cacd992dSmrg exit $exit_status 192014ddf674Smrg' 0 1921cacd992dSmrgfor ac_signal in 1 2 13 15; do 192214ddf674Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1923cacd992dSmrgdone 1924cacd992dSmrgac_signal=0 1925cacd992dSmrg 1926cacd992dSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 192714ddf674Smrgrm -f -r conftest* confdefs.h 192814ddf674Smrg 192914ddf674Smrg$as_echo "/* confdefs.h */" > confdefs.h 1930cacd992dSmrg 1931cacd992dSmrg# Predefined preprocessor variables. 1932cacd992dSmrg 1933cacd992dSmrgcat >>confdefs.h <<_ACEOF 1934cacd992dSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 1935cacd992dSmrg_ACEOF 1936cacd992dSmrg 1937cacd992dSmrgcat >>confdefs.h <<_ACEOF 1938cacd992dSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1939cacd992dSmrg_ACEOF 1940cacd992dSmrg 1941cacd992dSmrgcat >>confdefs.h <<_ACEOF 1942cacd992dSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 1943cacd992dSmrg_ACEOF 1944cacd992dSmrg 1945cacd992dSmrgcat >>confdefs.h <<_ACEOF 1946cacd992dSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 1947cacd992dSmrg_ACEOF 1948cacd992dSmrg 1949cacd992dSmrgcat >>confdefs.h <<_ACEOF 1950cacd992dSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1951cacd992dSmrg_ACEOF 1952cacd992dSmrg 195314ddf674Smrgcat >>confdefs.h <<_ACEOF 195414ddf674Smrg#define PACKAGE_URL "$PACKAGE_URL" 195514ddf674Smrg_ACEOF 195614ddf674Smrg 1957cacd992dSmrg 1958cacd992dSmrg# Let the site file select an alternate cache file if it wants to. 195914ddf674Smrg# Prefer an explicitly selected file to automatically selected ones. 196014ddf674Smrgac_site_file1=NONE 196114ddf674Smrgac_site_file2=NONE 196214ddf674Smrgif test -n "$CONFIG_SITE"; then 19636758a055Smrg # We do not want a PATH search for config.site. 19646758a055Smrg case $CONFIG_SITE in #(( 19656758a055Smrg -*) ac_site_file1=./$CONFIG_SITE;; 19666758a055Smrg */*) ac_site_file1=$CONFIG_SITE;; 19676758a055Smrg *) ac_site_file1=./$CONFIG_SITE;; 19686758a055Smrg esac 196914ddf674Smrgelif test "x$prefix" != xNONE; then 197014ddf674Smrg ac_site_file1=$prefix/share/config.site 197114ddf674Smrg ac_site_file2=$prefix/etc/config.site 197214ddf674Smrgelse 197314ddf674Smrg ac_site_file1=$ac_default_prefix/share/config.site 197414ddf674Smrg ac_site_file2=$ac_default_prefix/etc/config.site 1975cacd992dSmrgfi 197614ddf674Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 197714ddf674Smrgdo 197814ddf674Smrg test "x$ac_site_file" = xNONE && continue 197914ddf674Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 198014ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 198114ddf674Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1982cacd992dSmrg sed 's/^/| /' "$ac_site_file" >&5 19836758a055Smrg . "$ac_site_file" \ 19846758a055Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19856758a055Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19866758a055Smrgas_fn_error $? "failed to load site script $ac_site_file 19876758a055SmrgSee \`config.log' for more details" "$LINENO" 5; } 1988cacd992dSmrg fi 1989cacd992dSmrgdone 1990cacd992dSmrg 1991cacd992dSmrgif test -r "$cache_file"; then 199214ddf674Smrg # Some versions of bash will fail to source /dev/null (special files 199314ddf674Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 199414ddf674Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 199514ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 199614ddf674Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 1997cacd992dSmrg case $cache_file in 199814ddf674Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 199914ddf674Smrg *) . "./$cache_file";; 2000cacd992dSmrg esac 2001cacd992dSmrg fi 2002cacd992dSmrgelse 200314ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 200414ddf674Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2005cacd992dSmrg >$cache_file 2006cacd992dSmrgfi 2007cacd992dSmrg 2008cacd992dSmrg# Check that the precious variables saved in the cache have kept the same 2009cacd992dSmrg# value. 2010cacd992dSmrgac_cache_corrupted=false 201114ddf674Smrgfor ac_var in $ac_precious_vars; do 2012cacd992dSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2013cacd992dSmrg eval ac_new_set=\$ac_env_${ac_var}_set 201414ddf674Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 201514ddf674Smrg eval ac_new_val=\$ac_env_${ac_var}_value 2016cacd992dSmrg case $ac_old_set,$ac_new_set in 2017cacd992dSmrg set,) 201814ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 201914ddf674Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2020cacd992dSmrg ac_cache_corrupted=: ;; 2021cacd992dSmrg ,set) 202214ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 202314ddf674Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2024cacd992dSmrg ac_cache_corrupted=: ;; 2025cacd992dSmrg ,);; 2026cacd992dSmrg *) 2027cacd992dSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 202814ddf674Smrg # differences in whitespace do not lead to failure. 202914ddf674Smrg ac_old_val_w=`echo x $ac_old_val` 203014ddf674Smrg ac_new_val_w=`echo x $ac_new_val` 203114ddf674Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 203214ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 203314ddf674Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 203414ddf674Smrg ac_cache_corrupted=: 203514ddf674Smrg else 203614ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 203714ddf674Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 203814ddf674Smrg eval $ac_var=\$ac_old_val 203914ddf674Smrg fi 204014ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 204114ddf674Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 204214ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 204314ddf674Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2044cacd992dSmrg fi;; 2045cacd992dSmrg esac 2046cacd992dSmrg # Pass precious variables to config.status. 2047cacd992dSmrg if test "$ac_new_set" = set; then 2048cacd992dSmrg case $ac_new_val in 204914ddf674Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2050cacd992dSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2051cacd992dSmrg esac 2052cacd992dSmrg case " $ac_configure_args " in 2053cacd992dSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 205414ddf674Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2055cacd992dSmrg esac 2056cacd992dSmrg fi 2057cacd992dSmrgdone 2058cacd992dSmrgif $ac_cache_corrupted; then 205914ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 206014ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 206114ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 206214ddf674Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 20636758a055Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2064cacd992dSmrgfi 206514ddf674Smrg## -------------------- ## 206614ddf674Smrg## Main body of script. ## 206714ddf674Smrg## -------------------- ## 2068cacd992dSmrg 2069cacd992dSmrgac_ext=c 2070cacd992dSmrgac_cpp='$CPP $CPPFLAGS' 2071cacd992dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2072cacd992dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2073cacd992dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2074cacd992dSmrg 2075cacd992dSmrg 20766758a055Smrg 20776758a055Smrgac_config_headers="$ac_config_headers config.h" 20786758a055Smrg 20796758a055Smrg 20806758a055Smrg# Initialize Automake 208114ddf674Smrgam__api_version='1.11' 2082cacd992dSmrg 2083cacd992dSmrgac_aux_dir= 208414ddf674Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 20856758a055Smrg if test -f "$ac_dir/install-sh"; then 20866758a055Smrg ac_aux_dir=$ac_dir 20876758a055Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 20886758a055Smrg break 20896758a055Smrg elif test -f "$ac_dir/install.sh"; then 20906758a055Smrg ac_aux_dir=$ac_dir 20916758a055Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 20926758a055Smrg break 20936758a055Smrg elif test -f "$ac_dir/shtool"; then 20946758a055Smrg ac_aux_dir=$ac_dir 20956758a055Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 20966758a055Smrg break 20976758a055Smrg fi 2098cacd992dSmrgdone 2099cacd992dSmrgif test -z "$ac_aux_dir"; then 21006758a055Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2101cacd992dSmrgfi 210214ddf674Smrg 210314ddf674Smrg# These three variables are undocumented and unsupported, 210414ddf674Smrg# and are intended to be withdrawn in a future Autoconf release. 210514ddf674Smrg# They can cause serious problems if a builder's source tree is in a directory 210614ddf674Smrg# whose full name contains unusual characters. 210714ddf674Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 210814ddf674Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 210914ddf674Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 211014ddf674Smrg 2111cacd992dSmrg 2112cacd992dSmrg# Find a good install program. We prefer a C program (faster), 2113cacd992dSmrg# so one script is as good as another. But avoid the broken or 2114cacd992dSmrg# incompatible versions: 2115cacd992dSmrg# SysV /etc/install, /usr/sbin/install 2116cacd992dSmrg# SunOS /usr/etc/install 2117cacd992dSmrg# IRIX /sbin/install 2118cacd992dSmrg# AIX /bin/install 2119cacd992dSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2120cacd992dSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2121cacd992dSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2122cacd992dSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2123cacd992dSmrg# OS/2's system install, which has a completely different semantic 2124cacd992dSmrg# ./install, which can be erroneously created by make from ./install.sh. 212514ddf674Smrg# Reject install programs that cannot install multiple files. 212614ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 212714ddf674Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2128cacd992dSmrgif test -z "$INSTALL"; then 21296758a055Smrgif ${ac_cv_path_install+:} false; then : 213014ddf674Smrg $as_echo_n "(cached) " >&6 2131cacd992dSmrgelse 2132cacd992dSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2133cacd992dSmrgfor as_dir in $PATH 2134cacd992dSmrgdo 2135cacd992dSmrg IFS=$as_save_IFS 2136cacd992dSmrg test -z "$as_dir" && as_dir=. 213714ddf674Smrg # Account for people who put trailing slashes in PATH elements. 213814ddf674Smrgcase $as_dir/ in #(( 213914ddf674Smrg ./ | .// | /[cC]/* | \ 2140cacd992dSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 214114ddf674Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2142cacd992dSmrg /usr/ucb/* ) ;; 2143cacd992dSmrg *) 2144cacd992dSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 2145cacd992dSmrg # Don't use installbsd from OSF since it installs stuff as root 2146cacd992dSmrg # by default. 2147cacd992dSmrg for ac_prog in ginstall scoinst install; do 2148cacd992dSmrg for ac_exec_ext in '' $ac_executable_extensions; do 214914ddf674Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2150cacd992dSmrg if test $ac_prog = install && 2151cacd992dSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2152cacd992dSmrg # AIX install. It has an incompatible calling convention. 2153cacd992dSmrg : 2154cacd992dSmrg elif test $ac_prog = install && 2155cacd992dSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2156cacd992dSmrg # program-specific install script used by HP pwplus--don't use. 2157cacd992dSmrg : 2158cacd992dSmrg else 215914ddf674Smrg rm -rf conftest.one conftest.two conftest.dir 216014ddf674Smrg echo one > conftest.one 216114ddf674Smrg echo two > conftest.two 216214ddf674Smrg mkdir conftest.dir 216314ddf674Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 216414ddf674Smrg test -s conftest.one && test -s conftest.two && 216514ddf674Smrg test -s conftest.dir/conftest.one && 216614ddf674Smrg test -s conftest.dir/conftest.two 216714ddf674Smrg then 216814ddf674Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 216914ddf674Smrg break 3 217014ddf674Smrg fi 2171cacd992dSmrg fi 2172cacd992dSmrg fi 2173cacd992dSmrg done 2174cacd992dSmrg done 2175cacd992dSmrg ;; 2176cacd992dSmrgesac 2177cacd992dSmrg 217814ddf674Smrg done 217914ddf674SmrgIFS=$as_save_IFS 218014ddf674Smrg 218114ddf674Smrgrm -rf conftest.one conftest.two conftest.dir 2182cacd992dSmrg 2183cacd992dSmrgfi 2184cacd992dSmrg if test "${ac_cv_path_install+set}" = set; then 2185cacd992dSmrg INSTALL=$ac_cv_path_install 2186cacd992dSmrg else 218714ddf674Smrg # As a last resort, use the slow shell script. Don't cache a 218814ddf674Smrg # value for INSTALL within a source directory, because that will 2189cacd992dSmrg # break other packages using the cache if that directory is 219014ddf674Smrg # removed, or if the value is a relative name. 2191cacd992dSmrg INSTALL=$ac_install_sh 2192cacd992dSmrg fi 2193cacd992dSmrgfi 219414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 219514ddf674Smrg$as_echo "$INSTALL" >&6; } 2196cacd992dSmrg 2197cacd992dSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2198cacd992dSmrg# It thinks the first close brace ends the variable substitution. 2199cacd992dSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2200cacd992dSmrg 2201cacd992dSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2202cacd992dSmrg 2203cacd992dSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2204cacd992dSmrg 220514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 220614ddf674Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 2207cacd992dSmrg# Just in case 2208cacd992dSmrgsleep 1 2209cacd992dSmrgecho timestamp > conftest.file 221014ddf674Smrg# Reject unsafe characters in $srcdir or the absolute working directory 221114ddf674Smrg# name. Accept space and tab only in the latter. 221214ddf674Smrgam_lf=' 221314ddf674Smrg' 221414ddf674Smrgcase `pwd` in 221514ddf674Smrg *[\\\"\#\$\&\'\`$am_lf]*) 22166758a055Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 221714ddf674Smrgesac 221814ddf674Smrgcase $srcdir in 221914ddf674Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 22206758a055Smrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 222114ddf674Smrgesac 222214ddf674Smrg 2223cacd992dSmrg# Do `set' in a subshell so we don't clobber the current shell's 2224cacd992dSmrg# arguments. Must try -L first in case configure is actually a 2225cacd992dSmrg# symlink; some systems play weird games with the mod time of symlinks 2226cacd992dSmrg# (eg FreeBSD returns the mod time of the symlink's containing 2227cacd992dSmrg# directory). 2228cacd992dSmrgif ( 222914ddf674Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2230cacd992dSmrg if test "$*" = "X"; then 2231cacd992dSmrg # -L didn't work. 223214ddf674Smrg set X `ls -t "$srcdir/configure" conftest.file` 2233cacd992dSmrg fi 2234cacd992dSmrg rm -f conftest.file 2235cacd992dSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 2236cacd992dSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 2237cacd992dSmrg 2238cacd992dSmrg # If neither matched, then we have a broken ls. This can happen 2239cacd992dSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2240cacd992dSmrg # broken ls alias from the environment. This has actually 2241cacd992dSmrg # happened. Such a system could not be considered "sane". 22426758a055Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 224314ddf674Smrgalias in your environment" "$LINENO" 5 2244cacd992dSmrg fi 2245cacd992dSmrg 2246cacd992dSmrg test "$2" = conftest.file 2247cacd992dSmrg ) 2248cacd992dSmrgthen 2249cacd992dSmrg # Ok. 2250cacd992dSmrg : 2251cacd992dSmrgelse 22526758a055Smrg as_fn_error $? "newly created file is older than distributed files! 225314ddf674SmrgCheck your system clock" "$LINENO" 5 2254cacd992dSmrgfi 225514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 225614ddf674Smrg$as_echo "yes" >&6; } 2257cacd992dSmrgtest "$program_prefix" != NONE && 225814ddf674Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2259cacd992dSmrg# Use a double $ so make ignores it. 2260cacd992dSmrgtest "$program_suffix" != NONE && 226114ddf674Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 226214ddf674Smrg# Double any \ or $. 2263cacd992dSmrg# By default was `s,x,x', remove it if useless. 226414ddf674Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 226514ddf674Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2266cacd992dSmrg 2267cacd992dSmrg# expand $ac_aux_dir to an absolute path 2268cacd992dSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 2269cacd992dSmrg 227014ddf674Smrgif test x"${MISSING+set}" != xset; then 227114ddf674Smrg case $am_aux_dir in 227214ddf674Smrg *\ * | *\ *) 227314ddf674Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 227414ddf674Smrg *) 227514ddf674Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 227614ddf674Smrg esac 227714ddf674Smrgfi 2278cacd992dSmrg# Use eval to expand $SHELL 2279cacd992dSmrgif eval "$MISSING --run true"; then 2280cacd992dSmrg am_missing_run="$MISSING --run " 2281cacd992dSmrgelse 2282cacd992dSmrg am_missing_run= 228314ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 228414ddf674Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 228514ddf674Smrgfi 228614ddf674Smrg 228714ddf674Smrgif test x"${install_sh}" != xset; then 228814ddf674Smrg case $am_aux_dir in 228914ddf674Smrg *\ * | *\ *) 229014ddf674Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 229114ddf674Smrg *) 229214ddf674Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 229314ddf674Smrg esac 229414ddf674Smrgfi 229514ddf674Smrg 229614ddf674Smrg# Installed binaries are usually stripped using `strip' when the user 229714ddf674Smrg# run `make install-strip'. However `strip' might not be the right 229814ddf674Smrg# tool to use in cross-compilation environments, therefore Automake 229914ddf674Smrg# will honor the `STRIP' environment variable to overrule this program. 230014ddf674Smrgif test "$cross_compiling" != no; then 230114ddf674Smrg if test -n "$ac_tool_prefix"; then 230214ddf674Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 230314ddf674Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 230414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 230514ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; } 23066758a055Smrgif ${ac_cv_prog_STRIP+:} false; then : 230714ddf674Smrg $as_echo_n "(cached) " >&6 230814ddf674Smrgelse 230914ddf674Smrg if test -n "$STRIP"; then 231014ddf674Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 231114ddf674Smrgelse 231214ddf674Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 231314ddf674Smrgfor as_dir in $PATH 231414ddf674Smrgdo 231514ddf674Smrg IFS=$as_save_IFS 231614ddf674Smrg test -z "$as_dir" && as_dir=. 231714ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 231814ddf674Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 231914ddf674Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 232014ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 232114ddf674Smrg break 2 232214ddf674Smrg fi 232314ddf674Smrgdone 232414ddf674Smrg done 232514ddf674SmrgIFS=$as_save_IFS 232614ddf674Smrg 232714ddf674Smrgfi 232814ddf674Smrgfi 232914ddf674SmrgSTRIP=$ac_cv_prog_STRIP 233014ddf674Smrgif test -n "$STRIP"; then 233114ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 233214ddf674Smrg$as_echo "$STRIP" >&6; } 233314ddf674Smrgelse 233414ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 233514ddf674Smrg$as_echo "no" >&6; } 233614ddf674Smrgfi 233714ddf674Smrg 233814ddf674Smrg 233914ddf674Smrgfi 234014ddf674Smrgif test -z "$ac_cv_prog_STRIP"; then 234114ddf674Smrg ac_ct_STRIP=$STRIP 234214ddf674Smrg # Extract the first word of "strip", so it can be a program name with args. 234314ddf674Smrgset dummy strip; ac_word=$2 234414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 234514ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; } 23466758a055Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 234714ddf674Smrg $as_echo_n "(cached) " >&6 234814ddf674Smrgelse 234914ddf674Smrg if test -n "$ac_ct_STRIP"; then 235014ddf674Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 235114ddf674Smrgelse 235214ddf674Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 235314ddf674Smrgfor as_dir in $PATH 235414ddf674Smrgdo 235514ddf674Smrg IFS=$as_save_IFS 235614ddf674Smrg test -z "$as_dir" && as_dir=. 235714ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 235814ddf674Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 235914ddf674Smrg ac_cv_prog_ac_ct_STRIP="strip" 236014ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 236114ddf674Smrg break 2 236214ddf674Smrg fi 236314ddf674Smrgdone 236414ddf674Smrg done 236514ddf674SmrgIFS=$as_save_IFS 236614ddf674Smrg 236714ddf674Smrgfi 236814ddf674Smrgfi 236914ddf674Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 237014ddf674Smrgif test -n "$ac_ct_STRIP"; then 237114ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 237214ddf674Smrg$as_echo "$ac_ct_STRIP" >&6; } 237314ddf674Smrgelse 237414ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 237514ddf674Smrg$as_echo "no" >&6; } 237614ddf674Smrgfi 237714ddf674Smrg 237814ddf674Smrg if test "x$ac_ct_STRIP" = x; then 237914ddf674Smrg STRIP=":" 238014ddf674Smrg else 238114ddf674Smrg case $cross_compiling:$ac_tool_warned in 238214ddf674Smrgyes:) 238314ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 238414ddf674Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 238514ddf674Smrgac_tool_warned=yes ;; 238614ddf674Smrgesac 238714ddf674Smrg STRIP=$ac_ct_STRIP 238814ddf674Smrg fi 238914ddf674Smrgelse 239014ddf674Smrg STRIP="$ac_cv_prog_STRIP" 239114ddf674Smrgfi 239214ddf674Smrg 239314ddf674Smrgfi 239414ddf674SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 239514ddf674Smrg 239614ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 239714ddf674Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 239814ddf674Smrgif test -z "$MKDIR_P"; then 23996758a055Smrg if ${ac_cv_path_mkdir+:} false; then : 240014ddf674Smrg $as_echo_n "(cached) " >&6 240114ddf674Smrgelse 240214ddf674Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 240314ddf674Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 240414ddf674Smrgdo 240514ddf674Smrg IFS=$as_save_IFS 240614ddf674Smrg test -z "$as_dir" && as_dir=. 240714ddf674Smrg for ac_prog in mkdir gmkdir; do 240814ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 240914ddf674Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 241014ddf674Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 241114ddf674Smrg 'mkdir (GNU coreutils) '* | \ 241214ddf674Smrg 'mkdir (coreutils) '* | \ 241314ddf674Smrg 'mkdir (fileutils) '4.1*) 241414ddf674Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 241514ddf674Smrg break 3;; 241614ddf674Smrg esac 241714ddf674Smrg done 241814ddf674Smrg done 241914ddf674Smrg done 242014ddf674SmrgIFS=$as_save_IFS 242114ddf674Smrg 242214ddf674Smrgfi 242314ddf674Smrg 242414ddf674Smrg test -d ./--version && rmdir ./--version 242514ddf674Smrg if test "${ac_cv_path_mkdir+set}" = set; then 242614ddf674Smrg MKDIR_P="$ac_cv_path_mkdir -p" 242714ddf674Smrg else 242814ddf674Smrg # As a last resort, use the slow shell script. Don't cache a 242914ddf674Smrg # value for MKDIR_P within a source directory, because that will 243014ddf674Smrg # break other packages using the cache if that directory is 243114ddf674Smrg # removed, or if the value is a relative name. 243214ddf674Smrg MKDIR_P="$ac_install_sh -d" 243314ddf674Smrg fi 2434cacd992dSmrgfi 243514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 243614ddf674Smrg$as_echo "$MKDIR_P" >&6; } 243714ddf674Smrg 243814ddf674Smrgmkdir_p="$MKDIR_P" 243914ddf674Smrgcase $mkdir_p in 244014ddf674Smrg [\\/$]* | ?:[\\/]*) ;; 244114ddf674Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 244214ddf674Smrgesac 2443cacd992dSmrg 2444cacd992dSmrgfor ac_prog in gawk mawk nawk awk 2445cacd992dSmrgdo 2446cacd992dSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2447cacd992dSmrgset dummy $ac_prog; ac_word=$2 244814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 244914ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; } 24506758a055Smrgif ${ac_cv_prog_AWK+:} false; then : 245114ddf674Smrg $as_echo_n "(cached) " >&6 2452cacd992dSmrgelse 2453cacd992dSmrg if test -n "$AWK"; then 2454cacd992dSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2455cacd992dSmrgelse 2456cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2457cacd992dSmrgfor as_dir in $PATH 2458cacd992dSmrgdo 2459cacd992dSmrg IFS=$as_save_IFS 2460cacd992dSmrg test -z "$as_dir" && as_dir=. 246114ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 246214ddf674Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2463cacd992dSmrg ac_cv_prog_AWK="$ac_prog" 246414ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2465cacd992dSmrg break 2 2466cacd992dSmrg fi 2467cacd992dSmrgdone 246814ddf674Smrg done 246914ddf674SmrgIFS=$as_save_IFS 2470cacd992dSmrg 2471cacd992dSmrgfi 2472cacd992dSmrgfi 2473cacd992dSmrgAWK=$ac_cv_prog_AWK 2474cacd992dSmrgif test -n "$AWK"; then 247514ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 247614ddf674Smrg$as_echo "$AWK" >&6; } 2477cacd992dSmrgelse 247814ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 247914ddf674Smrg$as_echo "no" >&6; } 2480cacd992dSmrgfi 2481cacd992dSmrg 248214ddf674Smrg 2483cacd992dSmrg test -n "$AWK" && break 2484cacd992dSmrgdone 2485cacd992dSmrg 248614ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 248714ddf674Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 248814ddf674Smrgset x ${MAKE-make} 248914ddf674Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 24906758a055Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 249114ddf674Smrg $as_echo_n "(cached) " >&6 2492cacd992dSmrgelse 2493cacd992dSmrg cat >conftest.make <<\_ACEOF 249414ddf674SmrgSHELL = /bin/sh 2495cacd992dSmrgall: 249614ddf674Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2497cacd992dSmrg_ACEOF 24986758a055Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 249914ddf674Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 250014ddf674Smrg *@@@%%%=?*=@@@%%%*) 250114ddf674Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 250214ddf674Smrg *) 250314ddf674Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 250414ddf674Smrgesac 2505cacd992dSmrgrm -f conftest.make 2506cacd992dSmrgfi 250714ddf674Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 250814ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 250914ddf674Smrg$as_echo "yes" >&6; } 2510cacd992dSmrg SET_MAKE= 2511cacd992dSmrgelse 251214ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 251314ddf674Smrg$as_echo "no" >&6; } 2514cacd992dSmrg SET_MAKE="MAKE=${MAKE-make}" 2515cacd992dSmrgfi 2516cacd992dSmrg 2517cacd992dSmrgrm -rf .tst 2>/dev/null 2518cacd992dSmrgmkdir .tst 2>/dev/null 2519cacd992dSmrgif test -d .tst; then 2520cacd992dSmrg am__leading_dot=. 2521cacd992dSmrgelse 2522cacd992dSmrg am__leading_dot=_ 2523cacd992dSmrgfi 2524cacd992dSmrgrmdir .tst 2>/dev/null 2525cacd992dSmrg 252614ddf674Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 252714ddf674Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 252814ddf674Smrg # is not polluted with repeated "-I." 252914ddf674Smrg am__isrc=' -I$(srcdir)' 253014ddf674Smrg # test to see if srcdir already configured 253114ddf674Smrg if test -f $srcdir/config.status; then 25326758a055Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 253314ddf674Smrg fi 2534cacd992dSmrgfi 2535cacd992dSmrg 2536cacd992dSmrg# test whether we have cygpath 2537cacd992dSmrgif test -z "$CYGPATH_W"; then 2538cacd992dSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 2539cacd992dSmrg CYGPATH_W='cygpath -w' 2540cacd992dSmrg else 2541cacd992dSmrg CYGPATH_W=echo 2542cacd992dSmrg fi 2543cacd992dSmrgfi 2544cacd992dSmrg 2545cacd992dSmrg 2546cacd992dSmrg# Define the identity of the package. 2547cacd992dSmrg PACKAGE='xvidtune' 25486758a055Smrg VERSION='1.0.3' 2549cacd992dSmrg 2550cacd992dSmrg 2551cacd992dSmrgcat >>confdefs.h <<_ACEOF 2552cacd992dSmrg#define PACKAGE "$PACKAGE" 2553cacd992dSmrg_ACEOF 2554cacd992dSmrg 2555cacd992dSmrg 2556cacd992dSmrgcat >>confdefs.h <<_ACEOF 2557cacd992dSmrg#define VERSION "$VERSION" 2558cacd992dSmrg_ACEOF 2559cacd992dSmrg 2560cacd992dSmrg# Some tools Automake needs. 2561cacd992dSmrg 2562cacd992dSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2563cacd992dSmrg 2564cacd992dSmrg 2565cacd992dSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2566cacd992dSmrg 2567cacd992dSmrg 2568cacd992dSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2569cacd992dSmrg 2570cacd992dSmrg 2571cacd992dSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2572cacd992dSmrg 2573cacd992dSmrg 2574cacd992dSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2575cacd992dSmrg 257614ddf674Smrg# We need awk for the "check" target. The system "awk" is bad on 257714ddf674Smrg# some platforms. 257814ddf674Smrg# Always define AMTAR for backward compatibility. 2579cacd992dSmrg 2580cacd992dSmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2581cacd992dSmrg 258214ddf674Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2583cacd992dSmrg 258414ddf674Smrg 258514ddf674Smrg 258614ddf674Smrg 258714ddf674Smrg 258814ddf674Smrg 258914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 259014ddf674Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 259114ddf674Smrg # Check whether --enable-maintainer-mode was given. 259214ddf674Smrgif test "${enable_maintainer_mode+set}" = set; then : 259314ddf674Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2594cacd992dSmrgelse 259514ddf674Smrg USE_MAINTAINER_MODE=no 259614ddf674Smrgfi 259714ddf674Smrg 259814ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 259914ddf674Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 260014ddf674Smrg if test $USE_MAINTAINER_MODE = yes; then 260114ddf674Smrg MAINTAINER_MODE_TRUE= 260214ddf674Smrg MAINTAINER_MODE_FALSE='#' 2603cacd992dSmrgelse 260414ddf674Smrg MAINTAINER_MODE_TRUE='#' 260514ddf674Smrg MAINTAINER_MODE_FALSE= 2606cacd992dSmrgfi 2607cacd992dSmrg 260814ddf674Smrg MAINT=$MAINTAINER_MODE_TRUE 2609cacd992dSmrg 2610cacd992dSmrg 2611cacd992dSmrg 26126758a055Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2613cacd992dSmrg 2614cacd992dSmrg 2615cacd992dSmrg 2616cacd992dSmrg 2617cacd992dSmrg 2618cacd992dSmrg 261914ddf674Smrg 262014ddf674Smrg 262114ddf674Smrg 262214ddf674Smrg 262314ddf674Smrg 262414ddf674SmrgDEPDIR="${am__leading_dot}deps" 262514ddf674Smrg 262614ddf674Smrgac_config_commands="$ac_config_commands depfiles" 262714ddf674Smrg 262814ddf674Smrg 262914ddf674Smrgam_make=${MAKE-make} 263014ddf674Smrgcat > confinc << 'END' 263114ddf674Smrgam__doit: 263214ddf674Smrg @echo this is the am__doit target 263314ddf674Smrg.PHONY: am__doit 263414ddf674SmrgEND 263514ddf674Smrg# If we don't find an include directive, just comment out the code. 263614ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 263714ddf674Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 263814ddf674Smrgam__include="#" 263914ddf674Smrgam__quote= 264014ddf674Smrg_am_result=none 264114ddf674Smrg# First try GNU make style include. 264214ddf674Smrgecho "include confinc" > confmf 264314ddf674Smrg# Ignore all kinds of additional output from `make'. 264414ddf674Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 264514ddf674Smrg*the\ am__doit\ target*) 264614ddf674Smrg am__include=include 264714ddf674Smrg am__quote= 264814ddf674Smrg _am_result=GNU 264914ddf674Smrg ;; 265014ddf674Smrgesac 265114ddf674Smrg# Now try BSD make style include. 265214ddf674Smrgif test "$am__include" = "#"; then 265314ddf674Smrg echo '.include "confinc"' > confmf 265414ddf674Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 265514ddf674Smrg *the\ am__doit\ target*) 265614ddf674Smrg am__include=.include 265714ddf674Smrg am__quote="\"" 265814ddf674Smrg _am_result=BSD 265914ddf674Smrg ;; 266014ddf674Smrg esac 2661cacd992dSmrgfi 2662cacd992dSmrg 2663cacd992dSmrg 266414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 266514ddf674Smrg$as_echo "$_am_result" >&6; } 266614ddf674Smrgrm -f confinc confmf 2667cacd992dSmrg 266814ddf674Smrg# Check whether --enable-dependency-tracking was given. 266914ddf674Smrgif test "${enable_dependency_tracking+set}" = set; then : 267014ddf674Smrg enableval=$enable_dependency_tracking; 267114ddf674Smrgfi 2672cacd992dSmrg 267314ddf674Smrgif test "x$enable_dependency_tracking" != xno; then 267414ddf674Smrg am_depcomp="$ac_aux_dir/depcomp" 267514ddf674Smrg AMDEPBACKSLASH='\' 26766758a055Smrg am__nodep='_no' 267714ddf674Smrgfi 267814ddf674Smrg if test "x$enable_dependency_tracking" != xno; then 267914ddf674Smrg AMDEP_TRUE= 268014ddf674Smrg AMDEP_FALSE='#' 268114ddf674Smrgelse 268214ddf674Smrg AMDEP_TRUE='#' 268314ddf674Smrg AMDEP_FALSE= 268414ddf674Smrgfi 2685cacd992dSmrg 2686cacd992dSmrg 2687cacd992dSmrgac_ext=c 2688cacd992dSmrgac_cpp='$CPP $CPPFLAGS' 2689cacd992dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2690cacd992dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2691cacd992dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2692cacd992dSmrgif test -n "$ac_tool_prefix"; then 2693cacd992dSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2694cacd992dSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 269514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 269614ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; } 26976758a055Smrgif ${ac_cv_prog_CC+:} false; then : 269814ddf674Smrg $as_echo_n "(cached) " >&6 2699cacd992dSmrgelse 2700cacd992dSmrg if test -n "$CC"; then 2701cacd992dSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2702cacd992dSmrgelse 2703cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2704cacd992dSmrgfor as_dir in $PATH 2705cacd992dSmrgdo 2706cacd992dSmrg IFS=$as_save_IFS 2707cacd992dSmrg test -z "$as_dir" && as_dir=. 270814ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 270914ddf674Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2710cacd992dSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 271114ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2712cacd992dSmrg break 2 2713cacd992dSmrg fi 2714cacd992dSmrgdone 271514ddf674Smrg done 271614ddf674SmrgIFS=$as_save_IFS 2717cacd992dSmrg 2718cacd992dSmrgfi 2719cacd992dSmrgfi 2720cacd992dSmrgCC=$ac_cv_prog_CC 2721cacd992dSmrgif test -n "$CC"; then 272214ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 272314ddf674Smrg$as_echo "$CC" >&6; } 2724cacd992dSmrgelse 272514ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 272614ddf674Smrg$as_echo "no" >&6; } 2727cacd992dSmrgfi 2728cacd992dSmrg 272914ddf674Smrg 2730cacd992dSmrgfi 2731cacd992dSmrgif test -z "$ac_cv_prog_CC"; then 2732cacd992dSmrg ac_ct_CC=$CC 2733cacd992dSmrg # Extract the first word of "gcc", so it can be a program name with args. 2734cacd992dSmrgset dummy gcc; ac_word=$2 273514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 273614ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; } 27376758a055Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 273814ddf674Smrg $as_echo_n "(cached) " >&6 2739cacd992dSmrgelse 2740cacd992dSmrg if test -n "$ac_ct_CC"; then 2741cacd992dSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2742cacd992dSmrgelse 2743cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2744cacd992dSmrgfor as_dir in $PATH 2745cacd992dSmrgdo 2746cacd992dSmrg IFS=$as_save_IFS 2747cacd992dSmrg test -z "$as_dir" && as_dir=. 274814ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 274914ddf674Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2750cacd992dSmrg ac_cv_prog_ac_ct_CC="gcc" 275114ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2752cacd992dSmrg break 2 2753cacd992dSmrg fi 2754cacd992dSmrgdone 275514ddf674Smrg done 275614ddf674SmrgIFS=$as_save_IFS 2757cacd992dSmrg 2758cacd992dSmrgfi 2759cacd992dSmrgfi 2760cacd992dSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2761cacd992dSmrgif test -n "$ac_ct_CC"; then 276214ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 276314ddf674Smrg$as_echo "$ac_ct_CC" >&6; } 2764cacd992dSmrgelse 276514ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 276614ddf674Smrg$as_echo "no" >&6; } 2767cacd992dSmrgfi 2768cacd992dSmrg 276914ddf674Smrg if test "x$ac_ct_CC" = x; then 277014ddf674Smrg CC="" 277114ddf674Smrg else 277214ddf674Smrg case $cross_compiling:$ac_tool_warned in 277314ddf674Smrgyes:) 277414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 277514ddf674Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 277614ddf674Smrgac_tool_warned=yes ;; 277714ddf674Smrgesac 277814ddf674Smrg CC=$ac_ct_CC 277914ddf674Smrg fi 2780cacd992dSmrgelse 2781cacd992dSmrg CC="$ac_cv_prog_CC" 2782cacd992dSmrgfi 2783cacd992dSmrg 2784cacd992dSmrgif test -z "$CC"; then 278514ddf674Smrg if test -n "$ac_tool_prefix"; then 278614ddf674Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2787cacd992dSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 278814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 278914ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; } 27906758a055Smrgif ${ac_cv_prog_CC+:} false; then : 279114ddf674Smrg $as_echo_n "(cached) " >&6 2792cacd992dSmrgelse 2793cacd992dSmrg if test -n "$CC"; then 2794cacd992dSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2795cacd992dSmrgelse 2796cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2797cacd992dSmrgfor as_dir in $PATH 2798cacd992dSmrgdo 2799cacd992dSmrg IFS=$as_save_IFS 2800cacd992dSmrg test -z "$as_dir" && as_dir=. 280114ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 280214ddf674Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2803cacd992dSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 280414ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2805cacd992dSmrg break 2 2806cacd992dSmrg fi 2807cacd992dSmrgdone 280814ddf674Smrg done 280914ddf674SmrgIFS=$as_save_IFS 2810cacd992dSmrg 2811cacd992dSmrgfi 2812cacd992dSmrgfi 2813cacd992dSmrgCC=$ac_cv_prog_CC 2814cacd992dSmrgif test -n "$CC"; then 281514ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 281614ddf674Smrg$as_echo "$CC" >&6; } 2817cacd992dSmrgelse 281814ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 281914ddf674Smrg$as_echo "no" >&6; } 2820cacd992dSmrgfi 2821cacd992dSmrg 2822cacd992dSmrg 282314ddf674Smrg fi 2824cacd992dSmrgfi 2825cacd992dSmrgif test -z "$CC"; then 2826cacd992dSmrg # Extract the first word of "cc", so it can be a program name with args. 2827cacd992dSmrgset dummy cc; ac_word=$2 282814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 282914ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; } 28306758a055Smrgif ${ac_cv_prog_CC+:} false; then : 283114ddf674Smrg $as_echo_n "(cached) " >&6 2832cacd992dSmrgelse 2833cacd992dSmrg if test -n "$CC"; then 2834cacd992dSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2835cacd992dSmrgelse 2836cacd992dSmrg ac_prog_rejected=no 2837cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2838cacd992dSmrgfor as_dir in $PATH 2839cacd992dSmrgdo 2840cacd992dSmrg IFS=$as_save_IFS 2841cacd992dSmrg test -z "$as_dir" && as_dir=. 284214ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 284314ddf674Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2844cacd992dSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2845cacd992dSmrg ac_prog_rejected=yes 2846cacd992dSmrg continue 2847cacd992dSmrg fi 2848cacd992dSmrg ac_cv_prog_CC="cc" 284914ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2850cacd992dSmrg break 2 2851cacd992dSmrg fi 2852cacd992dSmrgdone 285314ddf674Smrg done 285414ddf674SmrgIFS=$as_save_IFS 2855cacd992dSmrg 2856cacd992dSmrgif test $ac_prog_rejected = yes; then 2857cacd992dSmrg # We found a bogon in the path, so make sure we never use it. 2858cacd992dSmrg set dummy $ac_cv_prog_CC 2859cacd992dSmrg shift 2860cacd992dSmrg if test $# != 0; then 2861cacd992dSmrg # We chose a different compiler from the bogus one. 2862cacd992dSmrg # However, it has the same basename, so the bogon will be chosen 2863cacd992dSmrg # first if we set CC to just the basename; use the full file name. 2864cacd992dSmrg shift 2865cacd992dSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2866cacd992dSmrg fi 2867cacd992dSmrgfi 2868cacd992dSmrgfi 2869cacd992dSmrgfi 2870cacd992dSmrgCC=$ac_cv_prog_CC 2871cacd992dSmrgif test -n "$CC"; then 287214ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 287314ddf674Smrg$as_echo "$CC" >&6; } 2874cacd992dSmrgelse 287514ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 287614ddf674Smrg$as_echo "no" >&6; } 2877cacd992dSmrgfi 2878cacd992dSmrg 287914ddf674Smrg 2880cacd992dSmrgfi 2881cacd992dSmrgif test -z "$CC"; then 2882cacd992dSmrg if test -n "$ac_tool_prefix"; then 288314ddf674Smrg for ac_prog in cl.exe 2884cacd992dSmrg do 2885cacd992dSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2886cacd992dSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 288714ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 288814ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; } 28896758a055Smrgif ${ac_cv_prog_CC+:} false; then : 289014ddf674Smrg $as_echo_n "(cached) " >&6 2891cacd992dSmrgelse 2892cacd992dSmrg if test -n "$CC"; then 2893cacd992dSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2894cacd992dSmrgelse 2895cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896cacd992dSmrgfor as_dir in $PATH 2897cacd992dSmrgdo 2898cacd992dSmrg IFS=$as_save_IFS 2899cacd992dSmrg test -z "$as_dir" && as_dir=. 290014ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 290114ddf674Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2902cacd992dSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 290314ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2904cacd992dSmrg break 2 2905cacd992dSmrg fi 2906cacd992dSmrgdone 290714ddf674Smrg done 290814ddf674SmrgIFS=$as_save_IFS 2909cacd992dSmrg 2910cacd992dSmrgfi 2911cacd992dSmrgfi 2912cacd992dSmrgCC=$ac_cv_prog_CC 2913cacd992dSmrgif test -n "$CC"; then 291414ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 291514ddf674Smrg$as_echo "$CC" >&6; } 2916cacd992dSmrgelse 291714ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 291814ddf674Smrg$as_echo "no" >&6; } 2919cacd992dSmrgfi 2920cacd992dSmrg 292114ddf674Smrg 2922cacd992dSmrg test -n "$CC" && break 2923cacd992dSmrg done 2924cacd992dSmrgfi 2925cacd992dSmrgif test -z "$CC"; then 2926cacd992dSmrg ac_ct_CC=$CC 292714ddf674Smrg for ac_prog in cl.exe 2928cacd992dSmrgdo 2929cacd992dSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2930cacd992dSmrgset dummy $ac_prog; ac_word=$2 293114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 293214ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; } 29336758a055Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 293414ddf674Smrg $as_echo_n "(cached) " >&6 2935cacd992dSmrgelse 2936cacd992dSmrg if test -n "$ac_ct_CC"; then 2937cacd992dSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2938cacd992dSmrgelse 2939cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2940cacd992dSmrgfor as_dir in $PATH 2941cacd992dSmrgdo 2942cacd992dSmrg IFS=$as_save_IFS 2943cacd992dSmrg test -z "$as_dir" && as_dir=. 294414ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 294514ddf674Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2946cacd992dSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 294714ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2948cacd992dSmrg break 2 2949cacd992dSmrg fi 2950cacd992dSmrgdone 295114ddf674Smrg done 295214ddf674SmrgIFS=$as_save_IFS 2953cacd992dSmrg 2954cacd992dSmrgfi 2955cacd992dSmrgfi 2956cacd992dSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2957cacd992dSmrgif test -n "$ac_ct_CC"; then 295814ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 295914ddf674Smrg$as_echo "$ac_ct_CC" >&6; } 2960cacd992dSmrgelse 296114ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 296214ddf674Smrg$as_echo "no" >&6; } 2963cacd992dSmrgfi 2964cacd992dSmrg 296514ddf674Smrg 2966cacd992dSmrg test -n "$ac_ct_CC" && break 2967cacd992dSmrgdone 2968cacd992dSmrg 296914ddf674Smrg if test "x$ac_ct_CC" = x; then 297014ddf674Smrg CC="" 297114ddf674Smrg else 297214ddf674Smrg case $cross_compiling:$ac_tool_warned in 297314ddf674Smrgyes:) 297414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 297514ddf674Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 297614ddf674Smrgac_tool_warned=yes ;; 297714ddf674Smrgesac 297814ddf674Smrg CC=$ac_ct_CC 297914ddf674Smrg fi 2980cacd992dSmrgfi 2981cacd992dSmrg 2982cacd992dSmrgfi 2983cacd992dSmrg 2984cacd992dSmrg 298514ddf674Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 298614ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29876758a055Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 29886758a055SmrgSee \`config.log' for more details" "$LINENO" 5; } 2989cacd992dSmrg 2990cacd992dSmrg# Provide some information about the compiler. 299114ddf674Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 299214ddf674Smrgset X $ac_compile 299314ddf674Smrgac_compiler=$2 299414ddf674Smrgfor ac_option in --version -v -V -qversion; do 299514ddf674Smrg { { ac_try="$ac_compiler $ac_option >&5" 299614ddf674Smrgcase "(($ac_try" in 299714ddf674Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 299814ddf674Smrg *) ac_try_echo=$ac_try;; 299914ddf674Smrgesac 300014ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 300114ddf674Smrg$as_echo "$ac_try_echo"; } >&5 300214ddf674Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3003cacd992dSmrg ac_status=$? 300414ddf674Smrg if test -s conftest.err; then 300514ddf674Smrg sed '10a\ 300614ddf674Smrg... rest of stderr output deleted ... 300714ddf674Smrg 10q' conftest.err >conftest.er1 300814ddf674Smrg cat conftest.er1 >&5 300914ddf674Smrg fi 301014ddf674Smrg rm -f conftest.er1 conftest.err 301114ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 301214ddf674Smrg test $ac_status = 0; } 301314ddf674Smrgdone 3014cacd992dSmrg 301514ddf674Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3016cacd992dSmrg/* end confdefs.h. */ 3017cacd992dSmrg 3018cacd992dSmrgint 3019cacd992dSmrgmain () 3020cacd992dSmrg{ 3021cacd992dSmrg 3022cacd992dSmrg ; 3023cacd992dSmrg return 0; 3024cacd992dSmrg} 3025cacd992dSmrg_ACEOF 3026cacd992dSmrgac_clean_files_save=$ac_clean_files 302714ddf674Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3028cacd992dSmrg# Try to create an executable without -o first, disregard a.out. 3029cacd992dSmrg# It will help us diagnose broken compilers, and finding out an intuition 3030cacd992dSmrg# of exeext. 303114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 303214ddf674Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 303314ddf674Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 303414ddf674Smrg 303514ddf674Smrg# The possible output files: 303614ddf674Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 303714ddf674Smrg 303814ddf674Smrgac_rmfiles= 303914ddf674Smrgfor ac_file in $ac_files 304014ddf674Smrgdo 304114ddf674Smrg case $ac_file in 304214ddf674Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 304314ddf674Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 304414ddf674Smrg esac 304514ddf674Smrgdone 304614ddf674Smrgrm -f $ac_rmfiles 304714ddf674Smrg 304814ddf674Smrgif { { ac_try="$ac_link_default" 304914ddf674Smrgcase "(($ac_try" in 305014ddf674Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 305114ddf674Smrg *) ac_try_echo=$ac_try;; 305214ddf674Smrgesac 305314ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 305414ddf674Smrg$as_echo "$ac_try_echo"; } >&5 305514ddf674Smrg (eval "$ac_link_default") 2>&5 3056cacd992dSmrg ac_status=$? 305714ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 305814ddf674Smrg test $ac_status = 0; }; then : 305914ddf674Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 306014ddf674Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 306114ddf674Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 306214ddf674Smrg# so that the user can short-circuit this test for compilers unknown to 306314ddf674Smrg# Autoconf. 306414ddf674Smrgfor ac_file in $ac_files '' 3065cacd992dSmrgdo 3066cacd992dSmrg test -f "$ac_file" || continue 3067cacd992dSmrg case $ac_file in 306814ddf674Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3069cacd992dSmrg ;; 3070cacd992dSmrg [ab].out ) 3071cacd992dSmrg # We found the default executable, but exeext='' is most 3072cacd992dSmrg # certainly right. 3073cacd992dSmrg break;; 3074cacd992dSmrg *.* ) 307514ddf674Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 307614ddf674Smrg then :; else 307714ddf674Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 307814ddf674Smrg fi 307914ddf674Smrg # We set ac_cv_exeext here because the later test for it is not 308014ddf674Smrg # safe: cross compilers may not add the suffix if given an `-o' 308114ddf674Smrg # argument, so we may need to know it at that point already. 308214ddf674Smrg # Even if this section looks crufty: it has the advantage of 308314ddf674Smrg # actually working. 3084cacd992dSmrg break;; 3085cacd992dSmrg * ) 3086cacd992dSmrg break;; 3087cacd992dSmrg esac 3088cacd992dSmrgdone 308914ddf674Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 309014ddf674Smrg 3091cacd992dSmrgelse 309214ddf674Smrg ac_file='' 309314ddf674Smrgfi 309414ddf674Smrgif test -z "$ac_file"; then : 309514ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 309614ddf674Smrg$as_echo "no" >&6; } 309714ddf674Smrg$as_echo "$as_me: failed program was:" >&5 3098cacd992dSmrgsed 's/^/| /' conftest.$ac_ext >&5 3099cacd992dSmrg 310014ddf674Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 310114ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31026758a055Smrgas_fn_error 77 "C compiler cannot create executables 31036758a055SmrgSee \`config.log' for more details" "$LINENO" 5; } 310414ddf674Smrgelse 310514ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 310614ddf674Smrg$as_echo "yes" >&6; } 3107cacd992dSmrgfi 310814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 310914ddf674Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 311014ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 311114ddf674Smrg$as_echo "$ac_file" >&6; } 3112cacd992dSmrgac_exeext=$ac_cv_exeext 3113cacd992dSmrg 311414ddf674Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3115cacd992dSmrgac_clean_files=$ac_clean_files_save 311614ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 311714ddf674Smrg$as_echo_n "checking for suffix of executables... " >&6; } 311814ddf674Smrgif { { ac_try="$ac_link" 311914ddf674Smrgcase "(($ac_try" in 312014ddf674Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 312114ddf674Smrg *) ac_try_echo=$ac_try;; 312214ddf674Smrgesac 312314ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 312414ddf674Smrg$as_echo "$ac_try_echo"; } >&5 312514ddf674Smrg (eval "$ac_link") 2>&5 3126cacd992dSmrg ac_status=$? 312714ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 312814ddf674Smrg test $ac_status = 0; }; then : 3129cacd992dSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3130cacd992dSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3131cacd992dSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3132cacd992dSmrg# `rm'. 3133cacd992dSmrgfor ac_file in conftest.exe conftest conftest.*; do 3134cacd992dSmrg test -f "$ac_file" || continue 3135cacd992dSmrg case $ac_file in 313614ddf674Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3137cacd992dSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3138cacd992dSmrg break;; 3139cacd992dSmrg * ) break;; 3140cacd992dSmrg esac 3141cacd992dSmrgdone 3142cacd992dSmrgelse 314314ddf674Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 314414ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31456758a055Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 31466758a055SmrgSee \`config.log' for more details" "$LINENO" 5; } 3147cacd992dSmrgfi 314814ddf674Smrgrm -f conftest conftest$ac_cv_exeext 314914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 315014ddf674Smrg$as_echo "$ac_cv_exeext" >&6; } 3151cacd992dSmrg 3152cacd992dSmrgrm -f conftest.$ac_ext 3153cacd992dSmrgEXEEXT=$ac_cv_exeext 3154cacd992dSmrgac_exeext=$EXEEXT 315514ddf674Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 315614ddf674Smrg/* end confdefs.h. */ 315714ddf674Smrg#include <stdio.h> 315814ddf674Smrgint 315914ddf674Smrgmain () 316014ddf674Smrg{ 316114ddf674SmrgFILE *f = fopen ("conftest.out", "w"); 316214ddf674Smrg return ferror (f) || fclose (f) != 0; 316314ddf674Smrg 316414ddf674Smrg ; 316514ddf674Smrg return 0; 316614ddf674Smrg} 3167cacd992dSmrg_ACEOF 316814ddf674Smrgac_clean_files="$ac_clean_files conftest.out" 316914ddf674Smrg# Check that the compiler produces executables we can run. If not, either 317014ddf674Smrg# the compiler is broken, or we cross compile. 317114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 317214ddf674Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 317314ddf674Smrgif test "$cross_compiling" != yes; then 317414ddf674Smrg { { ac_try="$ac_link" 317514ddf674Smrgcase "(($ac_try" in 317614ddf674Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 317714ddf674Smrg *) ac_try_echo=$ac_try;; 317814ddf674Smrgesac 317914ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 318014ddf674Smrg$as_echo "$ac_try_echo"; } >&5 318114ddf674Smrg (eval "$ac_link") 2>&5 318214ddf674Smrg ac_status=$? 318314ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 318414ddf674Smrg test $ac_status = 0; } 318514ddf674Smrg if { ac_try='./conftest$ac_cv_exeext' 318614ddf674Smrg { { case "(($ac_try" in 318714ddf674Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 318814ddf674Smrg *) ac_try_echo=$ac_try;; 318914ddf674Smrgesac 319014ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 319114ddf674Smrg$as_echo "$ac_try_echo"; } >&5 319214ddf674Smrg (eval "$ac_try") 2>&5 319314ddf674Smrg ac_status=$? 319414ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 319514ddf674Smrg test $ac_status = 0; }; }; then 319614ddf674Smrg cross_compiling=no 319714ddf674Smrg else 319814ddf674Smrg if test "$cross_compiling" = maybe; then 319914ddf674Smrg cross_compiling=yes 320014ddf674Smrg else 320114ddf674Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 320214ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32036758a055Smrgas_fn_error $? "cannot run C compiled programs. 320414ddf674SmrgIf you meant to cross compile, use \`--host'. 32056758a055SmrgSee \`config.log' for more details" "$LINENO" 5; } 320614ddf674Smrg fi 320714ddf674Smrg fi 320814ddf674Smrgfi 320914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 321014ddf674Smrg$as_echo "$cross_compiling" >&6; } 321114ddf674Smrg 321214ddf674Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 321314ddf674Smrgac_clean_files=$ac_clean_files_save 321414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 321514ddf674Smrg$as_echo_n "checking for suffix of object files... " >&6; } 32166758a055Smrgif ${ac_cv_objext+:} false; then : 321714ddf674Smrg $as_echo_n "(cached) " >&6 321814ddf674Smrgelse 321914ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3220cacd992dSmrg/* end confdefs.h. */ 3221cacd992dSmrg 3222cacd992dSmrgint 3223cacd992dSmrgmain () 3224cacd992dSmrg{ 3225cacd992dSmrg 3226cacd992dSmrg ; 3227cacd992dSmrg return 0; 3228cacd992dSmrg} 3229cacd992dSmrg_ACEOF 3230cacd992dSmrgrm -f conftest.o conftest.obj 323114ddf674Smrgif { { ac_try="$ac_compile" 323214ddf674Smrgcase "(($ac_try" in 323314ddf674Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 323414ddf674Smrg *) ac_try_echo=$ac_try;; 323514ddf674Smrgesac 323614ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 323714ddf674Smrg$as_echo "$ac_try_echo"; } >&5 323814ddf674Smrg (eval "$ac_compile") 2>&5 3239cacd992dSmrg ac_status=$? 324014ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 324114ddf674Smrg test $ac_status = 0; }; then : 324214ddf674Smrg for ac_file in conftest.o conftest.obj conftest.*; do 324314ddf674Smrg test -f "$ac_file" || continue; 3244cacd992dSmrg case $ac_file in 324514ddf674Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3246cacd992dSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3247cacd992dSmrg break;; 3248cacd992dSmrg esac 3249cacd992dSmrgdone 3250cacd992dSmrgelse 325114ddf674Smrg $as_echo "$as_me: failed program was:" >&5 3252cacd992dSmrgsed 's/^/| /' conftest.$ac_ext >&5 3253cacd992dSmrg 325414ddf674Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 325514ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32566758a055Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 32576758a055SmrgSee \`config.log' for more details" "$LINENO" 5; } 3258cacd992dSmrgfi 3259cacd992dSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3260cacd992dSmrgfi 326114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 326214ddf674Smrg$as_echo "$ac_cv_objext" >&6; } 3263cacd992dSmrgOBJEXT=$ac_cv_objext 3264cacd992dSmrgac_objext=$OBJEXT 326514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 326614ddf674Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 32676758a055Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 326814ddf674Smrg $as_echo_n "(cached) " >&6 3269cacd992dSmrgelse 327014ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3271cacd992dSmrg/* end confdefs.h. */ 3272cacd992dSmrg 3273cacd992dSmrgint 3274cacd992dSmrgmain () 3275cacd992dSmrg{ 3276cacd992dSmrg#ifndef __GNUC__ 3277cacd992dSmrg choke me 3278cacd992dSmrg#endif 3279cacd992dSmrg 3280cacd992dSmrg ; 3281cacd992dSmrg return 0; 3282cacd992dSmrg} 3283cacd992dSmrg_ACEOF 328414ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then : 3285cacd992dSmrg ac_compiler_gnu=yes 3286cacd992dSmrgelse 328714ddf674Smrg ac_compiler_gnu=no 3288cacd992dSmrgfi 328914ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3290cacd992dSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3291cacd992dSmrg 3292cacd992dSmrgfi 329314ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 329414ddf674Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 329514ddf674Smrgif test $ac_compiler_gnu = yes; then 329614ddf674Smrg GCC=yes 329714ddf674Smrgelse 329814ddf674Smrg GCC= 329914ddf674Smrgfi 3300cacd992dSmrgac_test_CFLAGS=${CFLAGS+set} 3301cacd992dSmrgac_save_CFLAGS=$CFLAGS 330214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 330314ddf674Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 33046758a055Smrgif ${ac_cv_prog_cc_g+:} false; then : 330514ddf674Smrg $as_echo_n "(cached) " >&6 330614ddf674Smrgelse 330714ddf674Smrg ac_save_c_werror_flag=$ac_c_werror_flag 330814ddf674Smrg ac_c_werror_flag=yes 330914ddf674Smrg ac_cv_prog_cc_g=no 331014ddf674Smrg CFLAGS="-g" 331114ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3312cacd992dSmrg/* end confdefs.h. */ 3313cacd992dSmrg 3314cacd992dSmrgint 3315cacd992dSmrgmain () 3316cacd992dSmrg{ 3317cacd992dSmrg 3318cacd992dSmrg ; 3319cacd992dSmrg return 0; 3320cacd992dSmrg} 3321cacd992dSmrg_ACEOF 332214ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then : 3323cacd992dSmrg ac_cv_prog_cc_g=yes 3324cacd992dSmrgelse 332514ddf674Smrg CFLAGS="" 332614ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 332714ddf674Smrg/* end confdefs.h. */ 332814ddf674Smrg 332914ddf674Smrgint 333014ddf674Smrgmain () 333114ddf674Smrg{ 333214ddf674Smrg 333314ddf674Smrg ; 333414ddf674Smrg return 0; 333514ddf674Smrg} 333614ddf674Smrg_ACEOF 333714ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then : 333814ddf674Smrg 333914ddf674Smrgelse 334014ddf674Smrg ac_c_werror_flag=$ac_save_c_werror_flag 334114ddf674Smrg CFLAGS="-g" 334214ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 334314ddf674Smrg/* end confdefs.h. */ 334414ddf674Smrg 334514ddf674Smrgint 334614ddf674Smrgmain () 334714ddf674Smrg{ 3348cacd992dSmrg 334914ddf674Smrg ; 335014ddf674Smrg return 0; 335114ddf674Smrg} 335214ddf674Smrg_ACEOF 335314ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then : 335414ddf674Smrg ac_cv_prog_cc_g=yes 335514ddf674Smrgfi 335614ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3357cacd992dSmrgfi 335814ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3359cacd992dSmrgfi 336014ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 336114ddf674Smrg ac_c_werror_flag=$ac_save_c_werror_flag 336214ddf674Smrgfi 336314ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 336414ddf674Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3365cacd992dSmrgif test "$ac_test_CFLAGS" = set; then 3366cacd992dSmrg CFLAGS=$ac_save_CFLAGS 3367cacd992dSmrgelif test $ac_cv_prog_cc_g = yes; then 3368cacd992dSmrg if test "$GCC" = yes; then 3369cacd992dSmrg CFLAGS="-g -O2" 3370cacd992dSmrg else 3371cacd992dSmrg CFLAGS="-g" 3372cacd992dSmrg fi 3373cacd992dSmrgelse 3374cacd992dSmrg if test "$GCC" = yes; then 3375cacd992dSmrg CFLAGS="-O2" 3376cacd992dSmrg else 3377cacd992dSmrg CFLAGS= 3378cacd992dSmrg fi 3379cacd992dSmrgfi 338014ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 338114ddf674Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 33826758a055Smrgif ${ac_cv_prog_cc_c89+:} false; then : 338314ddf674Smrg $as_echo_n "(cached) " >&6 3384cacd992dSmrgelse 338514ddf674Smrg ac_cv_prog_cc_c89=no 3386cacd992dSmrgac_save_CC=$CC 338714ddf674Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3388cacd992dSmrg/* end confdefs.h. */ 3389cacd992dSmrg#include <stdarg.h> 3390cacd992dSmrg#include <stdio.h> 3391cacd992dSmrg#include <sys/types.h> 3392cacd992dSmrg#include <sys/stat.h> 3393cacd992dSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3394cacd992dSmrgstruct buf { int x; }; 3395cacd992dSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3396cacd992dSmrgstatic char *e (p, i) 3397cacd992dSmrg char **p; 3398cacd992dSmrg int i; 3399cacd992dSmrg{ 3400cacd992dSmrg return p[i]; 3401cacd992dSmrg} 3402cacd992dSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3403cacd992dSmrg{ 3404cacd992dSmrg char *s; 3405cacd992dSmrg va_list v; 3406cacd992dSmrg va_start (v,p); 3407cacd992dSmrg s = g (p, va_arg (v,int)); 3408cacd992dSmrg va_end (v); 3409cacd992dSmrg return s; 3410cacd992dSmrg} 3411cacd992dSmrg 3412cacd992dSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3413cacd992dSmrg function prototypes and stuff, but not '\xHH' hex character constants. 3414cacd992dSmrg These don't provoke an error unfortunately, instead are silently treated 341514ddf674Smrg as 'x'. The following induces an error, until -std is added to get 3416cacd992dSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3417cacd992dSmrg array size at least. It's necessary to write '\x00'==0 to get something 341814ddf674Smrg that's true only with -std. */ 3419cacd992dSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3420cacd992dSmrg 342114ddf674Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 342214ddf674Smrg inside strings and character constants. */ 342314ddf674Smrg#define FOO(x) 'x' 342414ddf674Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 342514ddf674Smrg 3426cacd992dSmrgint test (int i, double x); 3427cacd992dSmrgstruct s1 {int (*f) (int a);}; 3428cacd992dSmrgstruct s2 {int (*f) (double a);}; 3429cacd992dSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3430cacd992dSmrgint argc; 3431cacd992dSmrgchar **argv; 3432cacd992dSmrgint 3433cacd992dSmrgmain () 3434cacd992dSmrg{ 3435cacd992dSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3436cacd992dSmrg ; 3437cacd992dSmrg return 0; 3438cacd992dSmrg} 3439cacd992dSmrg_ACEOF 344014ddf674Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 344114ddf674Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3442cacd992dSmrgdo 3443cacd992dSmrg CC="$ac_save_CC $ac_arg" 344414ddf674Smrg if ac_fn_c_try_compile "$LINENO"; then : 344514ddf674Smrg ac_cv_prog_cc_c89=$ac_arg 3446cacd992dSmrgfi 344714ddf674Smrgrm -f core conftest.err conftest.$ac_objext 344814ddf674Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3449cacd992dSmrgdone 345014ddf674Smrgrm -f conftest.$ac_ext 3451cacd992dSmrgCC=$ac_save_CC 3452cacd992dSmrg 3453cacd992dSmrgfi 345414ddf674Smrg# AC_CACHE_VAL 345514ddf674Smrgcase "x$ac_cv_prog_cc_c89" in 345614ddf674Smrg x) 345714ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 345814ddf674Smrg$as_echo "none needed" >&6; } ;; 345914ddf674Smrg xno) 346014ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 346114ddf674Smrg$as_echo "unsupported" >&6; } ;; 3462cacd992dSmrg *) 346314ddf674Smrg CC="$CC $ac_cv_prog_cc_c89" 346414ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 346514ddf674Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3466cacd992dSmrgesac 346714ddf674Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3468cacd992dSmrg 3469cacd992dSmrgfi 3470cacd992dSmrg 3471cacd992dSmrgac_ext=c 3472cacd992dSmrgac_cpp='$CPP $CPPFLAGS' 3473cacd992dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3474cacd992dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3475cacd992dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3476cacd992dSmrg 3477cacd992dSmrgdepcc="$CC" am_compiler_list= 3478cacd992dSmrg 347914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 348014ddf674Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 34816758a055Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 348214ddf674Smrg $as_echo_n "(cached) " >&6 3483cacd992dSmrgelse 3484cacd992dSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3485cacd992dSmrg # We make a subdir and do the tests there. Otherwise we can end up 3486cacd992dSmrg # making bogus files that we don't know about and never remove. For 3487cacd992dSmrg # instance it was reported that on HP-UX the gcc test will end up 3488cacd992dSmrg # making a dummy file named `D' -- because `-MD' means `put the output 3489cacd992dSmrg # in D'. 34906758a055Smrg rm -rf conftest.dir 3491cacd992dSmrg mkdir conftest.dir 3492cacd992dSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 3493cacd992dSmrg # using a relative directory. 3494cacd992dSmrg cp "$am_depcomp" conftest.dir 3495cacd992dSmrg cd conftest.dir 3496cacd992dSmrg # We will build objects and dependencies in a subdirectory because 3497cacd992dSmrg # it helps to detect inapplicable dependency modes. For instance 3498cacd992dSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 3499cacd992dSmrg # side effect of compilation, but ICC will put the dependencies in 3500cacd992dSmrg # the current directory while Tru64 will put them in the object 3501cacd992dSmrg # directory. 3502cacd992dSmrg mkdir sub 3503cacd992dSmrg 3504cacd992dSmrg am_cv_CC_dependencies_compiler_type=none 3505cacd992dSmrg if test "$am_compiler_list" = ""; then 3506cacd992dSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3507cacd992dSmrg fi 350814ddf674Smrg am__universal=false 350914ddf674Smrg case " $depcc " in #( 351014ddf674Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 351114ddf674Smrg esac 351214ddf674Smrg 3513cacd992dSmrg for depmode in $am_compiler_list; do 3514cacd992dSmrg # Setup a source with many dependencies, because some compilers 3515cacd992dSmrg # like to wrap large dependency lists on column 80 (with \), and 3516cacd992dSmrg # we should not choose a depcomp mode which is confused by this. 3517cacd992dSmrg # 3518cacd992dSmrg # We need to recreate these files for each test, as the compiler may 3519cacd992dSmrg # overwrite some of them when testing with obscure command lines. 3520cacd992dSmrg # This happens at least with the AIX C compiler. 3521cacd992dSmrg : > sub/conftest.c 3522cacd992dSmrg for i in 1 2 3 4 5 6; do 3523cacd992dSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 352414ddf674Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 352514ddf674Smrg # Solaris 8's {/usr,}/bin/sh. 352614ddf674Smrg touch sub/conftst$i.h 3527cacd992dSmrg done 3528cacd992dSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3529cacd992dSmrg 353014ddf674Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 353114ddf674Smrg # mode. It turns out that the SunPro C++ compiler does not properly 353214ddf674Smrg # handle `-M -o', and we need to detect this. Also, some Intel 353314ddf674Smrg # versions had trouble with output in subdirs 353414ddf674Smrg am__obj=sub/conftest.${OBJEXT-o} 353514ddf674Smrg am__minus_obj="-o $am__obj" 3536cacd992dSmrg case $depmode in 353714ddf674Smrg gcc) 353814ddf674Smrg # This depmode causes a compiler race in universal mode. 353914ddf674Smrg test "$am__universal" = false || continue 354014ddf674Smrg ;; 3541cacd992dSmrg nosideeffect) 3542cacd992dSmrg # after this tag, mechanisms are not by side-effect, so they'll 3543cacd992dSmrg # only be used when explicitly requested 3544cacd992dSmrg if test "x$enable_dependency_tracking" = xyes; then 3545cacd992dSmrg continue 3546cacd992dSmrg else 3547cacd992dSmrg break 3548cacd992dSmrg fi 3549cacd992dSmrg ;; 35506758a055Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 355114ddf674Smrg # This compiler won't grok `-c -o', but also, the minuso test has 355214ddf674Smrg # not run yet. These depmodes are late enough in the game, and 355314ddf674Smrg # so weak that their functioning should not be impacted. 355414ddf674Smrg am__obj=conftest.${OBJEXT-o} 355514ddf674Smrg am__minus_obj= 355614ddf674Smrg ;; 3557cacd992dSmrg none) break ;; 3558cacd992dSmrg esac 3559cacd992dSmrg if depmode=$depmode \ 356014ddf674Smrg source=sub/conftest.c object=$am__obj \ 3561cacd992dSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 356214ddf674Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3563cacd992dSmrg >/dev/null 2>conftest.err && 356414ddf674Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3565cacd992dSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 356614ddf674Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3567cacd992dSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3568cacd992dSmrg # icc doesn't choke on unknown options, it will just issue warnings 356914ddf674Smrg # or remarks (even with -Werror). So we grep stderr for any message 357014ddf674Smrg # that says an option was ignored or not supported. 357114ddf674Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 357214ddf674Smrg # icc: Command line warning: ignoring option '-M'; no argument required 357314ddf674Smrg # The diagnosis changed in icc 8.0: 357414ddf674Smrg # icc: Command line remark: option '-MP' not supported 357514ddf674Smrg if (grep 'ignoring option' conftest.err || 357614ddf674Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3577cacd992dSmrg am_cv_CC_dependencies_compiler_type=$depmode 3578cacd992dSmrg break 3579cacd992dSmrg fi 3580cacd992dSmrg fi 3581cacd992dSmrg done 3582cacd992dSmrg 3583cacd992dSmrg cd .. 3584cacd992dSmrg rm -rf conftest.dir 3585cacd992dSmrgelse 3586cacd992dSmrg am_cv_CC_dependencies_compiler_type=none 3587cacd992dSmrgfi 3588cacd992dSmrg 3589cacd992dSmrgfi 359014ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 359114ddf674Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3592cacd992dSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3593cacd992dSmrg 359414ddf674Smrg if 3595cacd992dSmrg test "x$enable_dependency_tracking" != xno \ 3596cacd992dSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3597cacd992dSmrg am__fastdepCC_TRUE= 3598cacd992dSmrg am__fastdepCC_FALSE='#' 3599cacd992dSmrgelse 3600cacd992dSmrg am__fastdepCC_TRUE='#' 3601cacd992dSmrg am__fastdepCC_FALSE= 3602cacd992dSmrgfi 3603cacd992dSmrg 3604cacd992dSmrg 36056758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 36066758a055Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 36076758a055Smrgif ${ac_cv_prog_cc_c99+:} false; then : 36086758a055Smrg $as_echo_n "(cached) " >&6 36096758a055Smrgelse 36106758a055Smrg ac_cv_prog_cc_c99=no 36116758a055Smrgac_save_CC=$CC 36126758a055Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 36136758a055Smrg/* end confdefs.h. */ 36146758a055Smrg#include <stdarg.h> 36156758a055Smrg#include <stdbool.h> 36166758a055Smrg#include <stdlib.h> 36176758a055Smrg#include <wchar.h> 36186758a055Smrg#include <stdio.h> 36196758a055Smrg 36206758a055Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 36216758a055Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 36226758a055Smrg#define showlist(...) puts (#__VA_ARGS__) 36236758a055Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 36246758a055Smrgstatic void 36256758a055Smrgtest_varargs_macros (void) 36266758a055Smrg{ 36276758a055Smrg int x = 1234; 36286758a055Smrg int y = 5678; 36296758a055Smrg debug ("Flag"); 36306758a055Smrg debug ("X = %d\n", x); 36316758a055Smrg showlist (The first, second, and third items.); 36326758a055Smrg report (x>y, "x is %d but y is %d", x, y); 36336758a055Smrg} 36346758a055Smrg 36356758a055Smrg// Check long long types. 36366758a055Smrg#define BIG64 18446744073709551615ull 36376758a055Smrg#define BIG32 4294967295ul 36386758a055Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 36396758a055Smrg#if !BIG_OK 36406758a055Smrg your preprocessor is broken; 36416758a055Smrg#endif 36426758a055Smrg#if BIG_OK 36436758a055Smrg#else 36446758a055Smrg your preprocessor is broken; 36456758a055Smrg#endif 36466758a055Smrgstatic long long int bignum = -9223372036854775807LL; 36476758a055Smrgstatic unsigned long long int ubignum = BIG64; 36486758a055Smrg 36496758a055Smrgstruct incomplete_array 36506758a055Smrg{ 36516758a055Smrg int datasize; 36526758a055Smrg double data[]; 36536758a055Smrg}; 36546758a055Smrg 36556758a055Smrgstruct named_init { 36566758a055Smrg int number; 36576758a055Smrg const wchar_t *name; 36586758a055Smrg double average; 36596758a055Smrg}; 36606758a055Smrg 36616758a055Smrgtypedef const char *ccp; 36626758a055Smrg 36636758a055Smrgstatic inline int 36646758a055Smrgtest_restrict (ccp restrict text) 36656758a055Smrg{ 36666758a055Smrg // See if C++-style comments work. 36676758a055Smrg // Iterate through items via the restricted pointer. 36686758a055Smrg // Also check for declarations in for loops. 36696758a055Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 36706758a055Smrg continue; 36716758a055Smrg return 0; 36726758a055Smrg} 36736758a055Smrg 36746758a055Smrg// Check varargs and va_copy. 36756758a055Smrgstatic void 36766758a055Smrgtest_varargs (const char *format, ...) 36776758a055Smrg{ 36786758a055Smrg va_list args; 36796758a055Smrg va_start (args, format); 36806758a055Smrg va_list args_copy; 36816758a055Smrg va_copy (args_copy, args); 36826758a055Smrg 36836758a055Smrg const char *str; 36846758a055Smrg int number; 36856758a055Smrg float fnumber; 36866758a055Smrg 36876758a055Smrg while (*format) 36886758a055Smrg { 36896758a055Smrg switch (*format++) 36906758a055Smrg { 36916758a055Smrg case 's': // string 36926758a055Smrg str = va_arg (args_copy, const char *); 36936758a055Smrg break; 36946758a055Smrg case 'd': // int 36956758a055Smrg number = va_arg (args_copy, int); 36966758a055Smrg break; 36976758a055Smrg case 'f': // float 36986758a055Smrg fnumber = va_arg (args_copy, double); 36996758a055Smrg break; 37006758a055Smrg default: 37016758a055Smrg break; 37026758a055Smrg } 37036758a055Smrg } 37046758a055Smrg va_end (args_copy); 37056758a055Smrg va_end (args); 37066758a055Smrg} 37076758a055Smrg 37086758a055Smrgint 37096758a055Smrgmain () 37106758a055Smrg{ 37116758a055Smrg 37126758a055Smrg // Check bool. 37136758a055Smrg _Bool success = false; 37146758a055Smrg 37156758a055Smrg // Check restrict. 37166758a055Smrg if (test_restrict ("String literal") == 0) 37176758a055Smrg success = true; 37186758a055Smrg char *restrict newvar = "Another string"; 37196758a055Smrg 37206758a055Smrg // Check varargs. 37216758a055Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 37226758a055Smrg test_varargs_macros (); 37236758a055Smrg 37246758a055Smrg // Check flexible array members. 37256758a055Smrg struct incomplete_array *ia = 37266758a055Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 37276758a055Smrg ia->datasize = 10; 37286758a055Smrg for (int i = 0; i < ia->datasize; ++i) 37296758a055Smrg ia->data[i] = i * 1.234; 37306758a055Smrg 37316758a055Smrg // Check named initializers. 37326758a055Smrg struct named_init ni = { 37336758a055Smrg .number = 34, 37346758a055Smrg .name = L"Test wide string", 37356758a055Smrg .average = 543.34343, 37366758a055Smrg }; 37376758a055Smrg 37386758a055Smrg ni.number = 58; 37396758a055Smrg 37406758a055Smrg int dynamic_array[ni.number]; 37416758a055Smrg dynamic_array[ni.number - 1] = 543; 37426758a055Smrg 37436758a055Smrg // work around unused variable warnings 37446758a055Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 37456758a055Smrg || dynamic_array[ni.number - 1] != 543); 37466758a055Smrg 37476758a055Smrg ; 37486758a055Smrg return 0; 37496758a055Smrg} 37506758a055Smrg_ACEOF 37516758a055Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 37526758a055Smrgdo 37536758a055Smrg CC="$ac_save_CC $ac_arg" 37546758a055Smrg if ac_fn_c_try_compile "$LINENO"; then : 37556758a055Smrg ac_cv_prog_cc_c99=$ac_arg 37566758a055Smrgfi 37576758a055Smrgrm -f core conftest.err conftest.$ac_objext 37586758a055Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 37596758a055Smrgdone 37606758a055Smrgrm -f conftest.$ac_ext 37616758a055SmrgCC=$ac_save_CC 37626758a055Smrg 37636758a055Smrgfi 37646758a055Smrg# AC_CACHE_VAL 37656758a055Smrgcase "x$ac_cv_prog_cc_c99" in 37666758a055Smrg x) 37676758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 37686758a055Smrg$as_echo "none needed" >&6; } ;; 37696758a055Smrg xno) 37706758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 37716758a055Smrg$as_echo "unsupported" >&6; } ;; 37726758a055Smrg *) 37736758a055Smrg CC="$CC $ac_cv_prog_cc_c99" 37746758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 37756758a055Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 37766758a055Smrgesac 37776758a055Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 37786758a055Smrg 37796758a055Smrgfi 37806758a055Smrg 37816758a055Smrg 3782cacd992dSmrg 3783cacd992dSmrgac_ext=c 3784cacd992dSmrgac_cpp='$CPP $CPPFLAGS' 3785cacd992dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3786cacd992dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3787cacd992dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 378814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 378914ddf674Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3790cacd992dSmrg# On Suns, sometimes $CPP names a directory. 3791cacd992dSmrgif test -n "$CPP" && test -d "$CPP"; then 3792cacd992dSmrg CPP= 3793cacd992dSmrgfi 3794cacd992dSmrgif test -z "$CPP"; then 37956758a055Smrg if ${ac_cv_prog_CPP+:} false; then : 379614ddf674Smrg $as_echo_n "(cached) " >&6 3797cacd992dSmrgelse 3798cacd992dSmrg # Double quotes because CPP needs to be expanded 3799cacd992dSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3800cacd992dSmrg do 3801cacd992dSmrg ac_preproc_ok=false 3802cacd992dSmrgfor ac_c_preproc_warn_flag in '' yes 3803cacd992dSmrgdo 3804cacd992dSmrg # Use a header file that comes with gcc, so configuring glibc 3805cacd992dSmrg # with a fresh cross-compiler works. 3806cacd992dSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3807cacd992dSmrg # <limits.h> exists even on freestanding compilers. 3808cacd992dSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 3809cacd992dSmrg # not just through cpp. "Syntax error" is here to catch this case. 381014ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3811cacd992dSmrg/* end confdefs.h. */ 3812cacd992dSmrg#ifdef __STDC__ 3813cacd992dSmrg# include <limits.h> 3814cacd992dSmrg#else 3815cacd992dSmrg# include <assert.h> 3816cacd992dSmrg#endif 3817cacd992dSmrg Syntax error 3818cacd992dSmrg_ACEOF 381914ddf674Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3820cacd992dSmrg 382114ddf674Smrgelse 3822cacd992dSmrg # Broken: fails on valid input. 3823cacd992dSmrgcontinue 3824cacd992dSmrgfi 38256758a055Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3826cacd992dSmrg 382714ddf674Smrg # OK, works on sane cases. Now check whether nonexistent headers 3828cacd992dSmrg # can be detected and how. 382914ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3830cacd992dSmrg/* end confdefs.h. */ 3831cacd992dSmrg#include <ac_nonexistent.h> 3832cacd992dSmrg_ACEOF 383314ddf674Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3834cacd992dSmrg # Broken: success on invalid input. 3835cacd992dSmrgcontinue 3836cacd992dSmrgelse 3837cacd992dSmrg # Passes both tests. 3838cacd992dSmrgac_preproc_ok=: 3839cacd992dSmrgbreak 3840cacd992dSmrgfi 38416758a055Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3842cacd992dSmrg 3843cacd992dSmrgdone 3844cacd992dSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 38456758a055Smrgrm -f conftest.i conftest.err conftest.$ac_ext 384614ddf674Smrgif $ac_preproc_ok; then : 3847cacd992dSmrg break 3848cacd992dSmrgfi 3849cacd992dSmrg 3850cacd992dSmrg done 3851cacd992dSmrg ac_cv_prog_CPP=$CPP 3852cacd992dSmrg 3853cacd992dSmrgfi 3854cacd992dSmrg CPP=$ac_cv_prog_CPP 3855cacd992dSmrgelse 3856cacd992dSmrg ac_cv_prog_CPP=$CPP 3857cacd992dSmrgfi 385814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 385914ddf674Smrg$as_echo "$CPP" >&6; } 3860cacd992dSmrgac_preproc_ok=false 3861cacd992dSmrgfor ac_c_preproc_warn_flag in '' yes 3862cacd992dSmrgdo 3863cacd992dSmrg # Use a header file that comes with gcc, so configuring glibc 3864cacd992dSmrg # with a fresh cross-compiler works. 3865cacd992dSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3866cacd992dSmrg # <limits.h> exists even on freestanding compilers. 3867cacd992dSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 3868cacd992dSmrg # not just through cpp. "Syntax error" is here to catch this case. 386914ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3870cacd992dSmrg/* end confdefs.h. */ 3871cacd992dSmrg#ifdef __STDC__ 3872cacd992dSmrg# include <limits.h> 3873cacd992dSmrg#else 3874cacd992dSmrg# include <assert.h> 3875cacd992dSmrg#endif 3876cacd992dSmrg Syntax error 3877cacd992dSmrg_ACEOF 387814ddf674Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3879cacd992dSmrg 388014ddf674Smrgelse 3881cacd992dSmrg # Broken: fails on valid input. 3882cacd992dSmrgcontinue 3883cacd992dSmrgfi 38846758a055Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3885cacd992dSmrg 388614ddf674Smrg # OK, works on sane cases. Now check whether nonexistent headers 3887cacd992dSmrg # can be detected and how. 388814ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3889cacd992dSmrg/* end confdefs.h. */ 3890cacd992dSmrg#include <ac_nonexistent.h> 3891cacd992dSmrg_ACEOF 389214ddf674Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3893cacd992dSmrg # Broken: success on invalid input. 3894cacd992dSmrgcontinue 3895cacd992dSmrgelse 3896cacd992dSmrg # Passes both tests. 3897cacd992dSmrgac_preproc_ok=: 3898cacd992dSmrgbreak 3899cacd992dSmrgfi 39006758a055Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3901cacd992dSmrg 3902cacd992dSmrgdone 3903cacd992dSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 39046758a055Smrgrm -f conftest.i conftest.err conftest.$ac_ext 390514ddf674Smrgif $ac_preproc_ok; then : 390614ddf674Smrg 3907cacd992dSmrgelse 390814ddf674Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 390914ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 39106758a055Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 39116758a055SmrgSee \`config.log' for more details" "$LINENO" 5; } 3912cacd992dSmrgfi 3913cacd992dSmrg 3914cacd992dSmrgac_ext=c 3915cacd992dSmrgac_cpp='$CPP $CPPFLAGS' 3916cacd992dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3917cacd992dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3918cacd992dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3919cacd992dSmrg 392014ddf674Smrg 392114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 392214ddf674Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 39236758a055Smrgif ${ac_cv_path_GREP+:} false; then : 392414ddf674Smrg $as_echo_n "(cached) " >&6 3925cacd992dSmrgelse 392614ddf674Smrg if test -z "$GREP"; then 392714ddf674Smrg ac_path_GREP_found=false 392814ddf674Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3929cacd992dSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 393014ddf674Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3931cacd992dSmrgdo 3932cacd992dSmrg IFS=$as_save_IFS 3933cacd992dSmrg test -z "$as_dir" && as_dir=. 393414ddf674Smrg for ac_prog in grep ggrep; do 393514ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 393614ddf674Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 393714ddf674Smrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 393814ddf674Smrg# Check for GNU ac_path_GREP and select it if it is found. 393914ddf674Smrg # Check for GNU $ac_path_GREP 394014ddf674Smrgcase `"$ac_path_GREP" --version 2>&1` in 394114ddf674Smrg*GNU*) 394214ddf674Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 394314ddf674Smrg*) 394414ddf674Smrg ac_count=0 394514ddf674Smrg $as_echo_n 0123456789 >"conftest.in" 394614ddf674Smrg while : 394714ddf674Smrg do 394814ddf674Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 394914ddf674Smrg mv "conftest.tmp" "conftest.in" 395014ddf674Smrg cp "conftest.in" "conftest.nl" 395114ddf674Smrg $as_echo 'GREP' >> "conftest.nl" 395214ddf674Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 395314ddf674Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 395414ddf674Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 395514ddf674Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 395614ddf674Smrg # Best one so far, save it but keep looking for a better one 395714ddf674Smrg ac_cv_path_GREP="$ac_path_GREP" 395814ddf674Smrg ac_path_GREP_max=$ac_count 395914ddf674Smrg fi 396014ddf674Smrg # 10*(2^10) chars as input seems more than enough 396114ddf674Smrg test $ac_count -gt 10 && break 396214ddf674Smrg done 396314ddf674Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3964cacd992dSmrgesac 3965cacd992dSmrg 396614ddf674Smrg $ac_path_GREP_found && break 3 396714ddf674Smrg done 396814ddf674Smrg done 396914ddf674Smrg done 397014ddf674SmrgIFS=$as_save_IFS 397114ddf674Smrg if test -z "$ac_cv_path_GREP"; then 39726758a055Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 397314ddf674Smrg fi 3974cacd992dSmrgelse 397514ddf674Smrg ac_cv_path_GREP=$GREP 3976cacd992dSmrgfi 3977cacd992dSmrg 397814ddf674Smrgfi 397914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 398014ddf674Smrg$as_echo "$ac_cv_path_GREP" >&6; } 398114ddf674Smrg GREP="$ac_cv_path_GREP" 3982cacd992dSmrg 3983cacd992dSmrg 398414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 398514ddf674Smrg$as_echo_n "checking for egrep... " >&6; } 39866758a055Smrgif ${ac_cv_path_EGREP+:} false; then : 398714ddf674Smrg $as_echo_n "(cached) " >&6 3988cacd992dSmrgelse 398914ddf674Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 399014ddf674Smrg then ac_cv_path_EGREP="$GREP -E" 399114ddf674Smrg else 399214ddf674Smrg if test -z "$EGREP"; then 399314ddf674Smrg ac_path_EGREP_found=false 399414ddf674Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3995cacd992dSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 399614ddf674Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3997cacd992dSmrgdo 3998cacd992dSmrg IFS=$as_save_IFS 3999cacd992dSmrg test -z "$as_dir" && as_dir=. 400014ddf674Smrg for ac_prog in egrep; do 400114ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 400214ddf674Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 400314ddf674Smrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 400414ddf674Smrg# Check for GNU ac_path_EGREP and select it if it is found. 400514ddf674Smrg # Check for GNU $ac_path_EGREP 400614ddf674Smrgcase `"$ac_path_EGREP" --version 2>&1` in 400714ddf674Smrg*GNU*) 400814ddf674Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 400914ddf674Smrg*) 401014ddf674Smrg ac_count=0 401114ddf674Smrg $as_echo_n 0123456789 >"conftest.in" 401214ddf674Smrg while : 401314ddf674Smrg do 401414ddf674Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 401514ddf674Smrg mv "conftest.tmp" "conftest.in" 401614ddf674Smrg cp "conftest.in" "conftest.nl" 401714ddf674Smrg $as_echo 'EGREP' >> "conftest.nl" 401814ddf674Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 401914ddf674Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 402014ddf674Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 402114ddf674Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 402214ddf674Smrg # Best one so far, save it but keep looking for a better one 402314ddf674Smrg ac_cv_path_EGREP="$ac_path_EGREP" 402414ddf674Smrg ac_path_EGREP_max=$ac_count 402514ddf674Smrg fi 402614ddf674Smrg # 10*(2^10) chars as input seems more than enough 402714ddf674Smrg test $ac_count -gt 10 && break 402814ddf674Smrg done 402914ddf674Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 403014ddf674Smrgesac 403114ddf674Smrg 403214ddf674Smrg $ac_path_EGREP_found && break 3 403314ddf674Smrg done 403414ddf674Smrg done 403514ddf674Smrg done 403614ddf674SmrgIFS=$as_save_IFS 403714ddf674Smrg if test -z "$ac_cv_path_EGREP"; then 40386758a055Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 403914ddf674Smrg fi 404014ddf674Smrgelse 404114ddf674Smrg ac_cv_path_EGREP=$EGREP 404214ddf674Smrgfi 404314ddf674Smrg 404414ddf674Smrg fi 404514ddf674Smrgfi 404614ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 404714ddf674Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 404814ddf674Smrg EGREP="$ac_cv_path_EGREP" 404914ddf674Smrg 405014ddf674Smrg 405114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 405214ddf674Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 40536758a055Smrgif ${ac_cv_header_stdc+:} false; then : 405414ddf674Smrg $as_echo_n "(cached) " >&6 405514ddf674Smrgelse 405614ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 405714ddf674Smrg/* end confdefs.h. */ 405814ddf674Smrg#include <stdlib.h> 405914ddf674Smrg#include <stdarg.h> 406014ddf674Smrg#include <string.h> 406114ddf674Smrg#include <float.h> 406214ddf674Smrg 406314ddf674Smrgint 406414ddf674Smrgmain () 406514ddf674Smrg{ 406614ddf674Smrg 406714ddf674Smrg ; 406814ddf674Smrg return 0; 406914ddf674Smrg} 407014ddf674Smrg_ACEOF 407114ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then : 407214ddf674Smrg ac_cv_header_stdc=yes 407314ddf674Smrgelse 407414ddf674Smrg ac_cv_header_stdc=no 407514ddf674Smrgfi 407614ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 407714ddf674Smrg 407814ddf674Smrgif test $ac_cv_header_stdc = yes; then 407914ddf674Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 408014ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 408114ddf674Smrg/* end confdefs.h. */ 408214ddf674Smrg#include <string.h> 408314ddf674Smrg 408414ddf674Smrg_ACEOF 408514ddf674Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 408614ddf674Smrg $EGREP "memchr" >/dev/null 2>&1; then : 408714ddf674Smrg 408814ddf674Smrgelse 408914ddf674Smrg ac_cv_header_stdc=no 409014ddf674Smrgfi 409114ddf674Smrgrm -f conftest* 409214ddf674Smrg 409314ddf674Smrgfi 409414ddf674Smrg 409514ddf674Smrgif test $ac_cv_header_stdc = yes; then 409614ddf674Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 409714ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 409814ddf674Smrg/* end confdefs.h. */ 409914ddf674Smrg#include <stdlib.h> 410014ddf674Smrg 410114ddf674Smrg_ACEOF 410214ddf674Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 410314ddf674Smrg $EGREP "free" >/dev/null 2>&1; then : 410414ddf674Smrg 410514ddf674Smrgelse 410614ddf674Smrg ac_cv_header_stdc=no 410714ddf674Smrgfi 410814ddf674Smrgrm -f conftest* 410914ddf674Smrg 411014ddf674Smrgfi 411114ddf674Smrg 411214ddf674Smrgif test $ac_cv_header_stdc = yes; then 411314ddf674Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 411414ddf674Smrg if test "$cross_compiling" = yes; then : 411514ddf674Smrg : 411614ddf674Smrgelse 411714ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 411814ddf674Smrg/* end confdefs.h. */ 411914ddf674Smrg#include <ctype.h> 412014ddf674Smrg#include <stdlib.h> 412114ddf674Smrg#if ((' ' & 0x0FF) == 0x020) 412214ddf674Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 412314ddf674Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 412414ddf674Smrg#else 412514ddf674Smrg# define ISLOWER(c) \ 412614ddf674Smrg (('a' <= (c) && (c) <= 'i') \ 412714ddf674Smrg || ('j' <= (c) && (c) <= 'r') \ 412814ddf674Smrg || ('s' <= (c) && (c) <= 'z')) 412914ddf674Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 413014ddf674Smrg#endif 413114ddf674Smrg 413214ddf674Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 413314ddf674Smrgint 413414ddf674Smrgmain () 413514ddf674Smrg{ 413614ddf674Smrg int i; 413714ddf674Smrg for (i = 0; i < 256; i++) 413814ddf674Smrg if (XOR (islower (i), ISLOWER (i)) 413914ddf674Smrg || toupper (i) != TOUPPER (i)) 414014ddf674Smrg return 2; 414114ddf674Smrg return 0; 414214ddf674Smrg} 414314ddf674Smrg_ACEOF 414414ddf674Smrgif ac_fn_c_try_run "$LINENO"; then : 414514ddf674Smrg 414614ddf674Smrgelse 414714ddf674Smrg ac_cv_header_stdc=no 414814ddf674Smrgfi 414914ddf674Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 415014ddf674Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 415114ddf674Smrgfi 415214ddf674Smrg 415314ddf674Smrgfi 415414ddf674Smrgfi 415514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 415614ddf674Smrg$as_echo "$ac_cv_header_stdc" >&6; } 415714ddf674Smrgif test $ac_cv_header_stdc = yes; then 415814ddf674Smrg 415914ddf674Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 416014ddf674Smrg 416114ddf674Smrgfi 416214ddf674Smrg 416314ddf674Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 416414ddf674Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 416514ddf674Smrg inttypes.h stdint.h unistd.h 416614ddf674Smrgdo : 416714ddf674Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 416814ddf674Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 416914ddf674Smrg" 41706758a055Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 417114ddf674Smrg cat >>confdefs.h <<_ACEOF 417214ddf674Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 417314ddf674Smrg_ACEOF 417414ddf674Smrg 417514ddf674Smrgfi 417614ddf674Smrg 417714ddf674Smrgdone 417814ddf674Smrg 417914ddf674Smrg 418014ddf674Smrg 418114ddf674Smrg 418214ddf674Smrg 418314ddf674Smrg 41846758a055Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 41856758a055Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 41866758a055Smrg CLANGCC="yes" 41876758a055Smrgelse 41886758a055Smrg CLANGCC="no" 418914ddf674Smrgfi 419014ddf674Smrg 41916758a055Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 41926758a055Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 41936758a055Smrg INTELCC="yes" 41946758a055Smrgelse 41956758a055Smrg INTELCC="no" 419614ddf674Smrgfi 419714ddf674Smrg 41986758a055Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 41996758a055Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 42006758a055Smrg SUNCC="yes" 42016758a055Smrgelse 42026758a055Smrg SUNCC="no" 420314ddf674Smrgfi 420414ddf674Smrg 420514ddf674Smrg 420614ddf674Smrg 420714ddf674Smrg 420814ddf674Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 420914ddf674Smrg if test -n "$ac_tool_prefix"; then 421014ddf674Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 421114ddf674Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 421214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 421314ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; } 42146758a055Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 421514ddf674Smrg $as_echo_n "(cached) " >&6 421614ddf674Smrgelse 421714ddf674Smrg case $PKG_CONFIG in 421814ddf674Smrg [\\/]* | ?:[\\/]*) 421914ddf674Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 422014ddf674Smrg ;; 422114ddf674Smrg *) 422214ddf674Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 422314ddf674Smrgfor as_dir in $PATH 422414ddf674Smrgdo 422514ddf674Smrg IFS=$as_save_IFS 422614ddf674Smrg test -z "$as_dir" && as_dir=. 422714ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 422814ddf674Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 422914ddf674Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 423014ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 423114ddf674Smrg break 2 423214ddf674Smrg fi 423314ddf674Smrgdone 423414ddf674Smrg done 423514ddf674SmrgIFS=$as_save_IFS 4236cacd992dSmrg 4237cacd992dSmrg ;; 4238cacd992dSmrgesac 4239cacd992dSmrgfi 4240cacd992dSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4241cacd992dSmrgif test -n "$PKG_CONFIG"; then 424214ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 424314ddf674Smrg$as_echo "$PKG_CONFIG" >&6; } 4244cacd992dSmrgelse 424514ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 424614ddf674Smrg$as_echo "no" >&6; } 4247cacd992dSmrgfi 4248cacd992dSmrg 424914ddf674Smrg 4250cacd992dSmrgfi 4251cacd992dSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4252cacd992dSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4253cacd992dSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 4254cacd992dSmrgset dummy pkg-config; ac_word=$2 425514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 425614ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; } 42576758a055Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 425814ddf674Smrg $as_echo_n "(cached) " >&6 4259cacd992dSmrgelse 4260cacd992dSmrg case $ac_pt_PKG_CONFIG in 4261cacd992dSmrg [\\/]* | ?:[\\/]*) 4262cacd992dSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4263cacd992dSmrg ;; 4264cacd992dSmrg *) 4265cacd992dSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4266cacd992dSmrgfor as_dir in $PATH 4267cacd992dSmrgdo 4268cacd992dSmrg IFS=$as_save_IFS 4269cacd992dSmrg test -z "$as_dir" && as_dir=. 427014ddf674Smrg for ac_exec_ext in '' $ac_executable_extensions; do 427114ddf674Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4272cacd992dSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 427314ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4274cacd992dSmrg break 2 4275cacd992dSmrg fi 4276cacd992dSmrgdone 427714ddf674Smrg done 427814ddf674SmrgIFS=$as_save_IFS 4279cacd992dSmrg 4280cacd992dSmrg ;; 4281cacd992dSmrgesac 4282cacd992dSmrgfi 4283cacd992dSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4284cacd992dSmrgif test -n "$ac_pt_PKG_CONFIG"; then 428514ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 428614ddf674Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4287cacd992dSmrgelse 428814ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 428914ddf674Smrg$as_echo "no" >&6; } 4290cacd992dSmrgfi 4291cacd992dSmrg 429214ddf674Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 429314ddf674Smrg PKG_CONFIG="" 429414ddf674Smrg else 429514ddf674Smrg case $cross_compiling:$ac_tool_warned in 429614ddf674Smrgyes:) 429714ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 429814ddf674Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 429914ddf674Smrgac_tool_warned=yes ;; 430014ddf674Smrgesac 430114ddf674Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 430214ddf674Smrg fi 4303cacd992dSmrgelse 4304cacd992dSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4305cacd992dSmrgfi 4306cacd992dSmrg 4307cacd992dSmrgfi 4308cacd992dSmrgif test -n "$PKG_CONFIG"; then 4309cacd992dSmrg _pkg_min_version=0.9.0 431014ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 431114ddf674Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4312cacd992dSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 431314ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 431414ddf674Smrg$as_echo "yes" >&6; } 4315cacd992dSmrg else 431614ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 431714ddf674Smrg$as_echo "no" >&6; } 4318cacd992dSmrg PKG_CONFIG="" 4319cacd992dSmrg fi 4320cacd992dSmrg 4321cacd992dSmrgfi 432214ddf674Smrg# Make sure we can run config.sub. 432314ddf674Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 43246758a055Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4325cacd992dSmrg 432614ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 432714ddf674Smrg$as_echo_n "checking build system type... " >&6; } 43286758a055Smrgif ${ac_cv_build+:} false; then : 432914ddf674Smrg $as_echo_n "(cached) " >&6 4330cacd992dSmrgelse 433114ddf674Smrg ac_build_alias=$build_alias 433214ddf674Smrgtest "x$ac_build_alias" = x && 433314ddf674Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 433414ddf674Smrgtest "x$ac_build_alias" = x && 43356758a055Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 433614ddf674Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 43376758a055Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 433814ddf674Smrg 433914ddf674Smrgfi 434014ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 434114ddf674Smrg$as_echo "$ac_cv_build" >&6; } 434214ddf674Smrgcase $ac_cv_build in 434314ddf674Smrg*-*-*) ;; 43446758a055Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 434514ddf674Smrgesac 434614ddf674Smrgbuild=$ac_cv_build 434714ddf674Smrgac_save_IFS=$IFS; IFS='-' 434814ddf674Smrgset x $ac_cv_build 434914ddf674Smrgshift 435014ddf674Smrgbuild_cpu=$1 435114ddf674Smrgbuild_vendor=$2 435214ddf674Smrgshift; shift 435314ddf674Smrg# Remember, the first character of IFS is used to create $*, 435414ddf674Smrg# except with old shells: 435514ddf674Smrgbuild_os=$* 435614ddf674SmrgIFS=$ac_save_IFS 435714ddf674Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 435814ddf674Smrg 435914ddf674Smrg 436014ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 436114ddf674Smrg$as_echo_n "checking host system type... " >&6; } 43626758a055Smrgif ${ac_cv_host+:} false; then : 436314ddf674Smrg $as_echo_n "(cached) " >&6 4364cacd992dSmrgelse 436514ddf674Smrg if test "x$host_alias" = x; then 436614ddf674Smrg ac_cv_host=$ac_cv_build 4367cacd992dSmrgelse 436814ddf674Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 43696758a055Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4370cacd992dSmrgfi 437114ddf674Smrg 4372cacd992dSmrgfi 437314ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 437414ddf674Smrg$as_echo "$ac_cv_host" >&6; } 437514ddf674Smrgcase $ac_cv_host in 437614ddf674Smrg*-*-*) ;; 43776758a055Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 437814ddf674Smrgesac 437914ddf674Smrghost=$ac_cv_host 438014ddf674Smrgac_save_IFS=$IFS; IFS='-' 438114ddf674Smrgset x $ac_cv_host 438214ddf674Smrgshift 438314ddf674Smrghost_cpu=$1 438414ddf674Smrghost_vendor=$2 438514ddf674Smrgshift; shift 438614ddf674Smrg# Remember, the first character of IFS is used to create $*, 438714ddf674Smrg# except with old shells: 438814ddf674Smrghost_os=$* 438914ddf674SmrgIFS=$ac_save_IFS 439014ddf674Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4391cacd992dSmrg 4392cacd992dSmrg 43936758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 43946758a055Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 43956758a055Smrgif ${ac_cv_path_SED+:} false; then : 43966758a055Smrg $as_echo_n "(cached) " >&6 4397cacd992dSmrgelse 43986758a055Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 43996758a055Smrg for ac_i in 1 2 3 4 5 6 7; do 44006758a055Smrg ac_script="$ac_script$as_nl$ac_script" 44016758a055Smrg done 44026758a055Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 44036758a055Smrg { ac_script=; unset ac_script;} 44046758a055Smrg if test -z "$SED"; then 44056758a055Smrg ac_path_SED_found=false 44066758a055Smrg # Loop through the user's path and test for each of PROGNAME-LIST 44076758a055Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44086758a055Smrgfor as_dir in $PATH 44096758a055Smrgdo 44106758a055Smrg IFS=$as_save_IFS 44116758a055Smrg test -z "$as_dir" && as_dir=. 44126758a055Smrg for ac_prog in sed gsed; do 44136758a055Smrg for ac_exec_ext in '' $ac_executable_extensions; do 44146758a055Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 44156758a055Smrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 44166758a055Smrg# Check for GNU ac_path_SED and select it if it is found. 44176758a055Smrg # Check for GNU $ac_path_SED 44186758a055Smrgcase `"$ac_path_SED" --version 2>&1` in 44196758a055Smrg*GNU*) 44206758a055Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 44216758a055Smrg*) 44226758a055Smrg ac_count=0 44236758a055Smrg $as_echo_n 0123456789 >"conftest.in" 44246758a055Smrg while : 44256758a055Smrg do 44266758a055Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 44276758a055Smrg mv "conftest.tmp" "conftest.in" 44286758a055Smrg cp "conftest.in" "conftest.nl" 44296758a055Smrg $as_echo '' >> "conftest.nl" 44306758a055Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 44316758a055Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 44326758a055Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 44336758a055Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 44346758a055Smrg # Best one so far, save it but keep looking for a better one 44356758a055Smrg ac_cv_path_SED="$ac_path_SED" 44366758a055Smrg ac_path_SED_max=$ac_count 4437cacd992dSmrg fi 44386758a055Smrg # 10*(2^10) chars as input seems more than enough 44396758a055Smrg test $ac_count -gt 10 && break 44406758a055Smrg done 44416758a055Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 444214ddf674Smrgesac 4443cacd992dSmrg 44446758a055Smrg $ac_path_SED_found && break 3 44456758a055Smrg done 44466758a055Smrg done 44476758a055Smrg done 44486758a055SmrgIFS=$as_save_IFS 44496758a055Smrg if test -z "$ac_cv_path_SED"; then 44506758a055Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 44516758a055Smrg fi 44526758a055Smrgelse 44536758a055Smrg ac_cv_path_SED=$SED 44546758a055Smrgfi 4455cacd992dSmrg 44566758a055Smrgfi 44576758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 44586758a055Smrg$as_echo "$ac_cv_path_SED" >&6; } 44596758a055Smrg SED="$ac_cv_path_SED" 44606758a055Smrg rm -f conftest.sed 446114ddf674Smrg 446214ddf674Smrg 446314ddf674Smrg 446414ddf674Smrg 4465cacd992dSmrg 446614ddf674Smrg 44676758a055Smrg# Check whether --enable-selective-werror was given. 44686758a055Smrgif test "${enable_selective_werror+set}" = set; then : 44696758a055Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4470cacd992dSmrgelse 44716758a055Smrg SELECTIVE_WERROR=yes 4472cacd992dSmrgfi 447314ddf674Smrg 4474cacd992dSmrg 4475cacd992dSmrg 4476cacd992dSmrg 4477cacd992dSmrg 44786758a055Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 44796758a055Smrgif test "x$SUNCC" = "xyes"; then 44806758a055Smrg BASE_CFLAGS="-v" 4481cacd992dSmrgelse 44826758a055Smrg BASE_CFLAGS="" 4483cacd992dSmrgfi 4484cacd992dSmrg 44856758a055Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 448614ddf674Smrg 448714ddf674Smrg 448814ddf674Smrg 448914ddf674Smrg 449014ddf674Smrg 449114ddf674Smrg 449214ddf674Smrg 449314ddf674Smrg 449414ddf674Smrg 449514ddf674Smrg 449614ddf674Smrg 449714ddf674Smrg 449814ddf674Smrg 44996758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 450014ddf674Smrg 45016758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 45026758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 45036758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 45046758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 45056758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 45066758a055Smrg $as_echo_n "(cached) " >&6 45076758a055Smrgelse 45086758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45096758a055Smrg/* end confdefs.h. */ 45106758a055Smrgint i; 45116758a055Smrg_ACEOF 45126758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 45136758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 45146758a055Smrgelse 45156758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 4516cacd992dSmrgfi 45176758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4518cacd992dSmrgfi 45196758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 45206758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 45216758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 45226758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4523cacd992dSmrgfi 4524cacd992dSmrg 45256758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 45266758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 45276758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 45286758a055Smrg fi 45296758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 45306758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 45316758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 45326758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 45336758a055Smrg $as_echo_n "(cached) " >&6 45346758a055Smrgelse 45356758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45366758a055Smrg/* end confdefs.h. */ 45376758a055Smrgint i; 45386758a055Smrg_ACEOF 45396758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 45406758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 45416758a055Smrgelse 45426758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 454314ddf674Smrgfi 45446758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 454514ddf674Smrgfi 45466758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 45476758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 45486758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 45496758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 455014ddf674Smrgfi 4551cacd992dSmrg 45526758a055Smrgfound="no" 4553cacd992dSmrg 45546758a055Smrg if test $found = "no" ; then 45556758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 45566758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 45576758a055Smrg fi 45586758a055Smrg 45596758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 45606758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 45616758a055Smrg fi 45626758a055Smrg 45636758a055Smrg CFLAGS="$CFLAGS -Wall" 45646758a055Smrg 45656758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 45666758a055Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; } 45676758a055Smrg cacheid=xorg_cv_cc_flag__Wall 45686758a055Smrg if eval \${$cacheid+:} false; then : 45696758a055Smrg $as_echo_n "(cached) " >&6 45706758a055Smrgelse 45716758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45726758a055Smrg/* end confdefs.h. */ 45736758a055Smrgint i; 45746758a055Smrgint 45756758a055Smrgmain () 45766758a055Smrg{ 45776758a055Smrg 45786758a055Smrg ; 45796758a055Smrg return 0; 45806758a055Smrg} 45816758a055Smrg_ACEOF 45826758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 45836758a055Smrg eval $cacheid=yes 45846758a055Smrgelse 45856758a055Smrg eval $cacheid=no 458614ddf674Smrgfi 45876758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 45886758a055Smrg conftest$ac_exeext conftest.$ac_ext 4589cacd992dSmrgfi 4590cacd992dSmrg 4591cacd992dSmrg 45926758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4593cacd992dSmrg 45946758a055Smrg eval supported=\$$cacheid 45956758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 45966758a055Smrg$as_echo "$supported" >&6; } 45976758a055Smrg if test "$supported" = "yes" ; then 45986758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 45996758a055Smrg found="yes" 46006758a055Smrg fi 46016758a055Smrg fi 4602cacd992dSmrg 4603cacd992dSmrg 4604cacd992dSmrg 4605cacd992dSmrg 4606cacd992dSmrg 4607cacd992dSmrg 4608cacd992dSmrg 4609cacd992dSmrg 461014ddf674Smrg 461114ddf674Smrg 461214ddf674Smrg 461314ddf674Smrg 461414ddf674Smrg 461514ddf674Smrg 461614ddf674Smrg 46176758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 46186758a055Smrg 46196758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 46206758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 46216758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 46226758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 46236758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 462414ddf674Smrg $as_echo_n "(cached) " >&6 4625cacd992dSmrgelse 46266758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46276758a055Smrg/* end confdefs.h. */ 46286758a055Smrgint i; 46296758a055Smrg_ACEOF 46306758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 46316758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 463214ddf674Smrgelse 46336758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 463414ddf674Smrgfi 46356758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 463614ddf674Smrgfi 46376758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 46386758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 46396758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 46406758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 464114ddf674Smrgfi 464214ddf674Smrg 46436758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 46446758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 46456758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 46466758a055Smrg fi 46476758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 46486758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 46496758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 46506758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 465114ddf674Smrg $as_echo_n "(cached) " >&6 465214ddf674Smrgelse 46536758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46546758a055Smrg/* end confdefs.h. */ 46556758a055Smrgint i; 46566758a055Smrg_ACEOF 46576758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 46586758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 465914ddf674Smrgelse 46606758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 466114ddf674Smrgfi 46626758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 466314ddf674Smrgfi 46646758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 46656758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 46666758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 46676758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 466814ddf674Smrgfi 466914ddf674Smrg 46706758a055Smrgfound="no" 46716758a055Smrg 46726758a055Smrg if test $found = "no" ; then 46736758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 46746758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 46756758a055Smrg fi 46766758a055Smrg 46776758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 46786758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 46796758a055Smrg fi 46806758a055Smrg 46816758a055Smrg CFLAGS="$CFLAGS -Wpointer-arith" 46826758a055Smrg 46836758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 46846758a055Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 46856758a055Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 46866758a055Smrg if eval \${$cacheid+:} false; then : 46876758a055Smrg $as_echo_n "(cached) " >&6 468814ddf674Smrgelse 46896758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46906758a055Smrg/* end confdefs.h. */ 46916758a055Smrgint i; 46926758a055Smrgint 46936758a055Smrgmain () 46946758a055Smrg{ 46956758a055Smrg 46966758a055Smrg ; 46976758a055Smrg return 0; 46986758a055Smrg} 46996758a055Smrg_ACEOF 47006758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 47016758a055Smrg eval $cacheid=yes 47026758a055Smrgelse 47036758a055Smrg eval $cacheid=no 47046758a055Smrgfi 47056758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 47066758a055Smrg conftest$ac_exeext conftest.$ac_ext 4707cacd992dSmrgfi 4708cacd992dSmrg 47096758a055Smrg 47106758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 47116758a055Smrg 47126758a055Smrg eval supported=\$$cacheid 47136758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 47146758a055Smrg$as_echo "$supported" >&6; } 47156758a055Smrg if test "$supported" = "yes" ; then 47166758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 47176758a055Smrg found="yes" 47186758a055Smrg fi 47196758a055Smrg fi 47206758a055Smrg 47216758a055Smrg 47226758a055Smrg 47236758a055Smrg 47246758a055Smrg 47256758a055Smrg 47266758a055Smrg 47276758a055Smrg 47286758a055Smrg 47296758a055Smrg 47306758a055Smrg 47316758a055Smrg 47326758a055Smrg 47336758a055Smrg 47346758a055Smrg 47356758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 47366758a055Smrg 47376758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 47386758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47396758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 47406758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 47416758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 474214ddf674Smrg $as_echo_n "(cached) " >&6 474314ddf674Smrgelse 47446758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47456758a055Smrg/* end confdefs.h. */ 47466758a055Smrgint i; 47476758a055Smrg_ACEOF 47486758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 47496758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 475014ddf674Smrgelse 47516758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 475214ddf674Smrgfi 47536758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 475414ddf674Smrgfi 47556758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 47566758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 47576758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 47586758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 475914ddf674Smrgfi 4760cacd992dSmrg 47616758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 47626758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 47636758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47646758a055Smrg fi 47656758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 47666758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 47676758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 47686758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 476914ddf674Smrg $as_echo_n "(cached) " >&6 477014ddf674Smrgelse 47716758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47726758a055Smrg/* end confdefs.h. */ 47736758a055Smrgint i; 47746758a055Smrg_ACEOF 47756758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 47766758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 477714ddf674Smrgelse 47786758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 477914ddf674Smrgfi 47806758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 478114ddf674Smrgfi 47826758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 47836758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 47846758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 47856758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 478614ddf674Smrgfi 47876758a055Smrg 47886758a055Smrgfound="no" 47896758a055Smrg 47906758a055Smrg if test $found = "no" ; then 47916758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 47926758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47936758a055Smrg fi 47946758a055Smrg 47956758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 47966758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 47976758a055Smrg fi 47986758a055Smrg 47996758a055Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 48006758a055Smrg 48016758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 48026758a055Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 48036758a055Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 48046758a055Smrg if eval \${$cacheid+:} false; then : 48056758a055Smrg $as_echo_n "(cached) " >&6 480614ddf674Smrgelse 48076758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48086758a055Smrg/* end confdefs.h. */ 48096758a055Smrgint i; 48106758a055Smrgint 48116758a055Smrgmain () 48126758a055Smrg{ 48136758a055Smrg 48146758a055Smrg ; 48156758a055Smrg return 0; 48166758a055Smrg} 48176758a055Smrg_ACEOF 48186758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 48196758a055Smrg eval $cacheid=yes 48206758a055Smrgelse 48216758a055Smrg eval $cacheid=no 48226758a055Smrgfi 48236758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 48246758a055Smrg conftest$ac_exeext conftest.$ac_ext 482514ddf674Smrgfi 4826cacd992dSmrg 4827cacd992dSmrg 48286758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48296758a055Smrg 48306758a055Smrg eval supported=\$$cacheid 48316758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 48326758a055Smrg$as_echo "$supported" >&6; } 48336758a055Smrg if test "$supported" = "yes" ; then 48346758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 48356758a055Smrg found="yes" 48366758a055Smrg fi 48376758a055Smrg fi 48386758a055Smrg 48396758a055Smrg 48406758a055Smrg 48416758a055Smrg 48426758a055Smrg 48436758a055Smrg 48446758a055Smrg 48456758a055Smrg 48466758a055Smrg 48476758a055Smrg 48486758a055Smrg 48496758a055Smrg 48506758a055Smrg 48516758a055Smrg 48526758a055Smrg 48536758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 48546758a055Smrg 48556758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 48566758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48576758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 48586758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 48596758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 486014ddf674Smrg $as_echo_n "(cached) " >&6 486114ddf674Smrgelse 48626758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48636758a055Smrg/* end confdefs.h. */ 48646758a055Smrgint i; 48656758a055Smrg_ACEOF 48666758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 48676758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 4868cacd992dSmrgelse 48696758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 487014ddf674Smrgfi 48716758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 487214ddf674Smrgfi 48736758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 48746758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 48756758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 48766758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48776758a055Smrgfi 48786758a055Smrg 48796758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 48806758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 48816758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48826758a055Smrg fi 48836758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 48846758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 48856758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 48866758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 48876758a055Smrg $as_echo_n "(cached) " >&6 488814ddf674Smrgelse 48896758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48906758a055Smrg/* end confdefs.h. */ 48916758a055Smrgint i; 48926758a055Smrg_ACEOF 48936758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 48946758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 48956758a055Smrgelse 48966758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 48976758a055Smrgfi 48986758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48996758a055Smrgfi 49006758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 49016758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 49026758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 49036758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 490414ddf674Smrgfi 490514ddf674Smrg 49066758a055Smrgfound="no" 490714ddf674Smrg 49086758a055Smrg if test $found = "no" ; then 49096758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 49106758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49116758a055Smrg fi 49126758a055Smrg 49136758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 49146758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49156758a055Smrg fi 49166758a055Smrg 49176758a055Smrg CFLAGS="$CFLAGS -Wformat=2" 49186758a055Smrg 49196758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 49206758a055Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 49216758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 49226758a055Smrg if eval \${$cacheid+:} false; then : 492314ddf674Smrg $as_echo_n "(cached) " >&6 492414ddf674Smrgelse 49256758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49266758a055Smrg/* end confdefs.h. */ 49276758a055Smrgint i; 49286758a055Smrgint 49296758a055Smrgmain () 49306758a055Smrg{ 493114ddf674Smrg 49326758a055Smrg ; 49336758a055Smrg return 0; 49346758a055Smrg} 49356758a055Smrg_ACEOF 49366758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 49376758a055Smrg eval $cacheid=yes 49386758a055Smrgelse 49396758a055Smrg eval $cacheid=no 494014ddf674Smrgfi 49416758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 49426758a055Smrg conftest$ac_exeext conftest.$ac_ext 494314ddf674Smrgfi 49446758a055Smrg 49456758a055Smrg 49466758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49476758a055Smrg 49486758a055Smrg eval supported=\$$cacheid 49496758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 49506758a055Smrg$as_echo "$supported" >&6; } 49516758a055Smrg if test "$supported" = "yes" ; then 49526758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 49536758a055Smrg found="yes" 49546758a055Smrg fi 49556758a055Smrg fi 49566758a055Smrg 49576758a055Smrg if test $found = "no" ; then 49586758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 49596758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49606758a055Smrg fi 49616758a055Smrg 49626758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 49636758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49646758a055Smrg fi 49656758a055Smrg 49666758a055Smrg CFLAGS="$CFLAGS -Wformat" 49676758a055Smrg 49686758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 49696758a055Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; } 49706758a055Smrg cacheid=xorg_cv_cc_flag__Wformat 49716758a055Smrg if eval \${$cacheid+:} false; then : 49726758a055Smrg $as_echo_n "(cached) " >&6 497314ddf674Smrgelse 49746758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49756758a055Smrg/* end confdefs.h. */ 49766758a055Smrgint i; 49776758a055Smrgint 49786758a055Smrgmain () 49796758a055Smrg{ 49806758a055Smrg 49816758a055Smrg ; 49826758a055Smrg return 0; 49836758a055Smrg} 49846758a055Smrg_ACEOF 49856758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 49866758a055Smrg eval $cacheid=yes 49876758a055Smrgelse 49886758a055Smrg eval $cacheid=no 49896758a055Smrgfi 49906758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 49916758a055Smrg conftest$ac_exeext conftest.$ac_ext 499214ddf674Smrgfi 499314ddf674Smrg 499414ddf674Smrg 49956758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 499614ddf674Smrg 49976758a055Smrg eval supported=\$$cacheid 49986758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 49996758a055Smrg$as_echo "$supported" >&6; } 50006758a055Smrg if test "$supported" = "yes" ; then 50016758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 50026758a055Smrg found="yes" 50036758a055Smrg fi 50046758a055Smrg fi 50056758a055Smrg 50066758a055Smrg 50076758a055Smrg 50086758a055Smrg 50096758a055Smrg 50106758a055Smrg 50116758a055Smrg 50126758a055Smrg 50136758a055Smrg 50146758a055Smrg 50156758a055Smrg 50166758a055Smrg 50176758a055Smrg 50186758a055Smrg 50196758a055Smrg 50206758a055Smrg 50216758a055Smrg 50226758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 50236758a055Smrg 50246758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 50256758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50266758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 50276758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 50286758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 50296758a055Smrg $as_echo_n "(cached) " >&6 50306758a055Smrgelse 50316758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50326758a055Smrg/* end confdefs.h. */ 50336758a055Smrgint i; 50346758a055Smrg_ACEOF 50356758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 50366758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 50376758a055Smrgelse 50386758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 50396758a055Smrgfi 50406758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50416758a055Smrgfi 50426758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 50436758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 50446758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 50456758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 504614ddf674Smrgfi 504714ddf674Smrg 50486758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 50496758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 50506758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50516758a055Smrg fi 50526758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50536758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 50546758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 50556758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 50566758a055Smrg $as_echo_n "(cached) " >&6 50576758a055Smrgelse 50586758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50596758a055Smrg/* end confdefs.h. */ 50606758a055Smrgint i; 50616758a055Smrg_ACEOF 50626758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 50636758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 50646758a055Smrgelse 50656758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 50666758a055Smrgfi 50676758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50686758a055Smrgfi 50696758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 50706758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 50716758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 50726758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 507314ddf674Smrgfi 507414ddf674Smrg 50756758a055Smrgfound="no" 507614ddf674Smrg 50776758a055Smrg if test $found = "no" ; then 50786758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 50796758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50806758a055Smrg fi 508114ddf674Smrg 50826758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 50836758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50846758a055Smrg fi 50856758a055Smrg 50866758a055Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 50876758a055Smrg 50886758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 50896758a055Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 50906758a055Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 50916758a055Smrg if eval \${$cacheid+:} false; then : 50926758a055Smrg $as_echo_n "(cached) " >&6 50936758a055Smrgelse 50946758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50956758a055Smrg/* end confdefs.h. */ 50966758a055Smrgint i; 50976758a055Smrgint 50986758a055Smrgmain () 50996758a055Smrg{ 51006758a055Smrg 51016758a055Smrg ; 51026758a055Smrg return 0; 51036758a055Smrg} 51046758a055Smrg_ACEOF 51056758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 51066758a055Smrg eval $cacheid=yes 51076758a055Smrgelse 51086758a055Smrg eval $cacheid=no 51096758a055Smrgfi 51106758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 51116758a055Smrg conftest$ac_exeext conftest.$ac_ext 51126758a055Smrgfi 51136758a055Smrg 51146758a055Smrg 51156758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51166758a055Smrg 51176758a055Smrg eval supported=\$$cacheid 51186758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51196758a055Smrg$as_echo "$supported" >&6; } 51206758a055Smrg if test "$supported" = "yes" ; then 51216758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 51226758a055Smrg found="yes" 51236758a055Smrg fi 51246758a055Smrg fi 51256758a055Smrg 51266758a055Smrg 51276758a055Smrg 51286758a055Smrg 51296758a055Smrg 51306758a055Smrg 51316758a055Smrg 51326758a055Smrg 51336758a055Smrg 51346758a055Smrg 51356758a055Smrg 51366758a055Smrg 51376758a055Smrg 51386758a055Smrg 51396758a055Smrg 51406758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 51416758a055Smrg 51426758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 51436758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51446758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 51456758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 51466758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 51476758a055Smrg $as_echo_n "(cached) " >&6 51486758a055Smrgelse 51496758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51506758a055Smrg/* end confdefs.h. */ 51516758a055Smrgint i; 51526758a055Smrg_ACEOF 51536758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 51546758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 51556758a055Smrgelse 51566758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 51576758a055Smrgfi 51586758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51596758a055Smrgfi 51606758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 51616758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 51626758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 51636758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51646758a055Smrgfi 51656758a055Smrg 51666758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 51676758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 51686758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51696758a055Smrg fi 51706758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 51716758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 51726758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 51736758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 51746758a055Smrg $as_echo_n "(cached) " >&6 51756758a055Smrgelse 51766758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51776758a055Smrg/* end confdefs.h. */ 51786758a055Smrgint i; 51796758a055Smrg_ACEOF 51806758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 51816758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 51826758a055Smrgelse 51836758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 51846758a055Smrgfi 51856758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51866758a055Smrgfi 51876758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 51886758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 51896758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 51906758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51916758a055Smrgfi 51926758a055Smrg 51936758a055Smrgfound="no" 51946758a055Smrg 51956758a055Smrg if test $found = "no" ; then 51966758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 51976758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51986758a055Smrg fi 51996758a055Smrg 52006758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 52016758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52026758a055Smrg fi 52036758a055Smrg 52046758a055Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 52056758a055Smrg 52066758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 52076758a055Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 52086758a055Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 52096758a055Smrg if eval \${$cacheid+:} false; then : 52106758a055Smrg $as_echo_n "(cached) " >&6 52116758a055Smrgelse 52126758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52136758a055Smrg/* end confdefs.h. */ 52146758a055Smrgint i; 52156758a055Smrgint 52166758a055Smrgmain () 52176758a055Smrg{ 52186758a055Smrg 52196758a055Smrg ; 52206758a055Smrg return 0; 52216758a055Smrg} 52226758a055Smrg_ACEOF 52236758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 52246758a055Smrg eval $cacheid=yes 52256758a055Smrgelse 52266758a055Smrg eval $cacheid=no 52276758a055Smrgfi 52286758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 52296758a055Smrg conftest$ac_exeext conftest.$ac_ext 52306758a055Smrgfi 52316758a055Smrg 52326758a055Smrg 52336758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52346758a055Smrg 52356758a055Smrg eval supported=\$$cacheid 52366758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52376758a055Smrg$as_echo "$supported" >&6; } 52386758a055Smrg if test "$supported" = "yes" ; then 52396758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 52406758a055Smrg found="yes" 52416758a055Smrg fi 52426758a055Smrg fi 52436758a055Smrg 52446758a055Smrg 52456758a055Smrg 52466758a055Smrg 52476758a055Smrg 52486758a055Smrg 52496758a055Smrg 52506758a055Smrg 52516758a055Smrg 52526758a055Smrg 52536758a055Smrg 52546758a055Smrg 52556758a055Smrg 52566758a055Smrg 52576758a055Smrg 52586758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 52596758a055Smrg 52606758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 52616758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52626758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 52636758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 52646758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 52656758a055Smrg $as_echo_n "(cached) " >&6 52666758a055Smrgelse 52676758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52686758a055Smrg/* end confdefs.h. */ 52696758a055Smrgint i; 52706758a055Smrg_ACEOF 52716758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 52726758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 52736758a055Smrgelse 52746758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 52756758a055Smrgfi 52766758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52776758a055Smrgfi 52786758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 52796758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 52806758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 52816758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52826758a055Smrgfi 52836758a055Smrg 52846758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 52856758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 52866758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52876758a055Smrg fi 52886758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52896758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 52906758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 52916758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 52926758a055Smrg $as_echo_n "(cached) " >&6 52936758a055Smrgelse 52946758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52956758a055Smrg/* end confdefs.h. */ 52966758a055Smrgint i; 52976758a055Smrg_ACEOF 52986758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 52996758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 53006758a055Smrgelse 53016758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 53026758a055Smrgfi 53036758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53046758a055Smrgfi 53056758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 53066758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 53076758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 53086758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53096758a055Smrgfi 53106758a055Smrg 53116758a055Smrgfound="no" 53126758a055Smrg 53136758a055Smrg if test $found = "no" ; then 53146758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 53156758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53166758a055Smrg fi 53176758a055Smrg 53186758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 53196758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53206758a055Smrg fi 53216758a055Smrg 53226758a055Smrg CFLAGS="$CFLAGS -Wnested-externs" 53236758a055Smrg 53246758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 53256758a055Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 53266758a055Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 53276758a055Smrg if eval \${$cacheid+:} false; then : 53286758a055Smrg $as_echo_n "(cached) " >&6 53296758a055Smrgelse 53306758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53316758a055Smrg/* end confdefs.h. */ 53326758a055Smrgint i; 53336758a055Smrgint 53346758a055Smrgmain () 53356758a055Smrg{ 53366758a055Smrg 53376758a055Smrg ; 53386758a055Smrg return 0; 53396758a055Smrg} 53406758a055Smrg_ACEOF 53416758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 53426758a055Smrg eval $cacheid=yes 53436758a055Smrgelse 53446758a055Smrg eval $cacheid=no 53456758a055Smrgfi 53466758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 53476758a055Smrg conftest$ac_exeext conftest.$ac_ext 53486758a055Smrgfi 53496758a055Smrg 53506758a055Smrg 53516758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53526758a055Smrg 53536758a055Smrg eval supported=\$$cacheid 53546758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 53556758a055Smrg$as_echo "$supported" >&6; } 53566758a055Smrg if test "$supported" = "yes" ; then 53576758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 53586758a055Smrg found="yes" 53596758a055Smrg fi 53606758a055Smrg fi 53616758a055Smrg 53626758a055Smrg 53636758a055Smrg 53646758a055Smrg 53656758a055Smrg 53666758a055Smrg 53676758a055Smrg 53686758a055Smrg 53696758a055Smrg 53706758a055Smrg 53716758a055Smrg 53726758a055Smrg 53736758a055Smrg 53746758a055Smrg 53756758a055Smrg 53766758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 53776758a055Smrg 53786758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 53796758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53806758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 53816758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 53826758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 53836758a055Smrg $as_echo_n "(cached) " >&6 53846758a055Smrgelse 53856758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53866758a055Smrg/* end confdefs.h. */ 53876758a055Smrgint i; 53886758a055Smrg_ACEOF 53896758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 53906758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 53916758a055Smrgelse 53926758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 53936758a055Smrgfi 53946758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53956758a055Smrgfi 53966758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 53976758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 53986758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 53996758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54006758a055Smrgfi 54016758a055Smrg 54026758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 54036758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 54046758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54056758a055Smrg fi 54066758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54076758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 54086758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 54096758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 54106758a055Smrg $as_echo_n "(cached) " >&6 54116758a055Smrgelse 54126758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54136758a055Smrg/* end confdefs.h. */ 54146758a055Smrgint i; 54156758a055Smrg_ACEOF 54166758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 54176758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 54186758a055Smrgelse 54196758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 54206758a055Smrgfi 54216758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54226758a055Smrgfi 54236758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 54246758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 54256758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 54266758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54276758a055Smrgfi 54286758a055Smrg 54296758a055Smrgfound="no" 54306758a055Smrg 54316758a055Smrg if test $found = "no" ; then 54326758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 54336758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54346758a055Smrg fi 54356758a055Smrg 54366758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 54376758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54386758a055Smrg fi 54396758a055Smrg 54406758a055Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 54416758a055Smrg 54426758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 54436758a055Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 54446758a055Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 54456758a055Smrg if eval \${$cacheid+:} false; then : 54466758a055Smrg $as_echo_n "(cached) " >&6 54476758a055Smrgelse 54486758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54496758a055Smrg/* end confdefs.h. */ 54506758a055Smrgint i; 54516758a055Smrgint 54526758a055Smrgmain () 54536758a055Smrg{ 54546758a055Smrg 54556758a055Smrg ; 54566758a055Smrg return 0; 54576758a055Smrg} 54586758a055Smrg_ACEOF 54596758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 54606758a055Smrg eval $cacheid=yes 54616758a055Smrgelse 54626758a055Smrg eval $cacheid=no 54636758a055Smrgfi 54646758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 54656758a055Smrg conftest$ac_exeext conftest.$ac_ext 54666758a055Smrgfi 54676758a055Smrg 54686758a055Smrg 54696758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54706758a055Smrg 54716758a055Smrg eval supported=\$$cacheid 54726758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 54736758a055Smrg$as_echo "$supported" >&6; } 54746758a055Smrg if test "$supported" = "yes" ; then 54756758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 54766758a055Smrg found="yes" 54776758a055Smrg fi 54786758a055Smrg fi 54796758a055Smrg 54806758a055Smrg 54816758a055Smrg 54826758a055Smrg 54836758a055Smrg 54846758a055Smrg 54856758a055Smrg 54866758a055Smrg 54876758a055Smrg 54886758a055Smrg 54896758a055Smrg 54906758a055Smrg 54916758a055Smrg 54926758a055Smrg 54936758a055Smrg 54946758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 54956758a055Smrg 54966758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 54976758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54986758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 54996758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 55006758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 55016758a055Smrg $as_echo_n "(cached) " >&6 55026758a055Smrgelse 55036758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55046758a055Smrg/* end confdefs.h. */ 55056758a055Smrgint i; 55066758a055Smrg_ACEOF 55076758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 55086758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 55096758a055Smrgelse 55106758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 55116758a055Smrgfi 55126758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55136758a055Smrgfi 55146758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 55156758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 55166758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 55176758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55186758a055Smrgfi 55196758a055Smrg 55206758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 55216758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 55226758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55236758a055Smrg fi 55246758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55256758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 55266758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 55276758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 55286758a055Smrg $as_echo_n "(cached) " >&6 55296758a055Smrgelse 55306758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55316758a055Smrg/* end confdefs.h. */ 55326758a055Smrgint i; 55336758a055Smrg_ACEOF 55346758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 55356758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 55366758a055Smrgelse 55376758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 55386758a055Smrgfi 55396758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55406758a055Smrgfi 55416758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 55426758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 55436758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 55446758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55456758a055Smrgfi 55466758a055Smrg 55476758a055Smrgfound="no" 55486758a055Smrg 55496758a055Smrg if test $found = "no" ; then 55506758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 55516758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55526758a055Smrg fi 55536758a055Smrg 55546758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 55556758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55566758a055Smrg fi 55576758a055Smrg 55586758a055Smrg CFLAGS="$CFLAGS -Wold-style-definition" 55596758a055Smrg 55606758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 55616758a055Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 55626758a055Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 55636758a055Smrg if eval \${$cacheid+:} false; then : 55646758a055Smrg $as_echo_n "(cached) " >&6 55656758a055Smrgelse 55666758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55676758a055Smrg/* end confdefs.h. */ 55686758a055Smrgint i; 55696758a055Smrgint 55706758a055Smrgmain () 55716758a055Smrg{ 55726758a055Smrg 55736758a055Smrg ; 55746758a055Smrg return 0; 55756758a055Smrg} 55766758a055Smrg_ACEOF 55776758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 55786758a055Smrg eval $cacheid=yes 55796758a055Smrgelse 55806758a055Smrg eval $cacheid=no 55816758a055Smrgfi 55826758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 55836758a055Smrg conftest$ac_exeext conftest.$ac_ext 55846758a055Smrgfi 55856758a055Smrg 55866758a055Smrg 55876758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55886758a055Smrg 55896758a055Smrg eval supported=\$$cacheid 55906758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55916758a055Smrg$as_echo "$supported" >&6; } 55926758a055Smrg if test "$supported" = "yes" ; then 55936758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 55946758a055Smrg found="yes" 55956758a055Smrg fi 55966758a055Smrg fi 55976758a055Smrg 55986758a055Smrg 55996758a055Smrg 56006758a055Smrg 56016758a055Smrg 56026758a055Smrg 56036758a055Smrg 56046758a055Smrg 56056758a055Smrg 56066758a055Smrg 56076758a055Smrg 56086758a055Smrg 56096758a055Smrg 56106758a055Smrg 56116758a055Smrg 56126758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 56136758a055Smrg 56146758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 56156758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56166758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 56176758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 56186758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 56196758a055Smrg $as_echo_n "(cached) " >&6 56206758a055Smrgelse 56216758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56226758a055Smrg/* end confdefs.h. */ 56236758a055Smrgint i; 56246758a055Smrg_ACEOF 56256758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 56266758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 56276758a055Smrgelse 56286758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 56296758a055Smrgfi 56306758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56316758a055Smrgfi 56326758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 56336758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 56346758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 56356758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56366758a055Smrgfi 56376758a055Smrg 56386758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 56396758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 56406758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56416758a055Smrg fi 56426758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56436758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 56446758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 56456758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 56466758a055Smrg $as_echo_n "(cached) " >&6 56476758a055Smrgelse 56486758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56496758a055Smrg/* end confdefs.h. */ 56506758a055Smrgint i; 56516758a055Smrg_ACEOF 56526758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 56536758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 56546758a055Smrgelse 56556758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 56566758a055Smrgfi 56576758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56586758a055Smrgfi 56596758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 56606758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 56616758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 56626758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56636758a055Smrgfi 56646758a055Smrg 56656758a055Smrgfound="no" 56666758a055Smrg 56676758a055Smrg if test $found = "no" ; then 56686758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 56696758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56706758a055Smrg fi 56716758a055Smrg 56726758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 56736758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56746758a055Smrg fi 56756758a055Smrg 56766758a055Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 56776758a055Smrg 56786758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 56796758a055Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 56806758a055Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 56816758a055Smrg if eval \${$cacheid+:} false; then : 56826758a055Smrg $as_echo_n "(cached) " >&6 56836758a055Smrgelse 56846758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56856758a055Smrg/* end confdefs.h. */ 56866758a055Smrgint i; 56876758a055Smrgint 56886758a055Smrgmain () 56896758a055Smrg{ 56906758a055Smrg 56916758a055Smrg ; 56926758a055Smrg return 0; 56936758a055Smrg} 56946758a055Smrg_ACEOF 56956758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 56966758a055Smrg eval $cacheid=yes 56976758a055Smrgelse 56986758a055Smrg eval $cacheid=no 56996758a055Smrgfi 57006758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 57016758a055Smrg conftest$ac_exeext conftest.$ac_ext 57026758a055Smrgfi 57036758a055Smrg 57046758a055Smrg 57056758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57066758a055Smrg 57076758a055Smrg eval supported=\$$cacheid 57086758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 57096758a055Smrg$as_echo "$supported" >&6; } 57106758a055Smrg if test "$supported" = "yes" ; then 57116758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 57126758a055Smrg found="yes" 57136758a055Smrg fi 57146758a055Smrg fi 57156758a055Smrg 57166758a055Smrg 57176758a055Smrg 57186758a055Smrg 57196758a055Smrg 57206758a055Smrg# This chunk adds additional warnings that could catch undesired effects. 57216758a055Smrg 57226758a055Smrg 57236758a055Smrg 57246758a055Smrg 57256758a055Smrg 57266758a055Smrg 57276758a055Smrg 57286758a055Smrg 57296758a055Smrg 57306758a055Smrg 57316758a055Smrg 57326758a055Smrg 57336758a055Smrg 57346758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 57356758a055Smrg 57366758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 57376758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57386758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 57396758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 57406758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 57416758a055Smrg $as_echo_n "(cached) " >&6 57426758a055Smrgelse 57436758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57446758a055Smrg/* end confdefs.h. */ 57456758a055Smrgint i; 57466758a055Smrg_ACEOF 57476758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 57486758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 57496758a055Smrgelse 57506758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 57516758a055Smrgfi 57526758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57536758a055Smrgfi 57546758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 57556758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 57566758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 57576758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57586758a055Smrgfi 57596758a055Smrg 57606758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 57616758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 57626758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57636758a055Smrg fi 57646758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57656758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 57666758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 57676758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 57686758a055Smrg $as_echo_n "(cached) " >&6 57696758a055Smrgelse 57706758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57716758a055Smrg/* end confdefs.h. */ 57726758a055Smrgint i; 57736758a055Smrg_ACEOF 57746758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 57756758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 57766758a055Smrgelse 57776758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 57786758a055Smrgfi 57796758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57806758a055Smrgfi 57816758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 57826758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 57836758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 57846758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57856758a055Smrgfi 57866758a055Smrg 57876758a055Smrgfound="no" 57886758a055Smrg 57896758a055Smrg if test $found = "no" ; then 57906758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 57916758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57926758a055Smrg fi 57936758a055Smrg 57946758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 57956758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57966758a055Smrg fi 57976758a055Smrg 57986758a055Smrg CFLAGS="$CFLAGS -Wunused" 57996758a055Smrg 58006758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 58016758a055Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; } 58026758a055Smrg cacheid=xorg_cv_cc_flag__Wunused 58036758a055Smrg if eval \${$cacheid+:} false; then : 58046758a055Smrg $as_echo_n "(cached) " >&6 58056758a055Smrgelse 58066758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58076758a055Smrg/* end confdefs.h. */ 58086758a055Smrgint i; 58096758a055Smrgint 58106758a055Smrgmain () 58116758a055Smrg{ 58126758a055Smrg 58136758a055Smrg ; 58146758a055Smrg return 0; 58156758a055Smrg} 58166758a055Smrg_ACEOF 58176758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 58186758a055Smrg eval $cacheid=yes 58196758a055Smrgelse 58206758a055Smrg eval $cacheid=no 58216758a055Smrgfi 58226758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 58236758a055Smrg conftest$ac_exeext conftest.$ac_ext 58246758a055Smrgfi 58256758a055Smrg 58266758a055Smrg 58276758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58286758a055Smrg 58296758a055Smrg eval supported=\$$cacheid 58306758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 58316758a055Smrg$as_echo "$supported" >&6; } 58326758a055Smrg if test "$supported" = "yes" ; then 58336758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 58346758a055Smrg found="yes" 58356758a055Smrg fi 58366758a055Smrg fi 58376758a055Smrg 58386758a055Smrg 58396758a055Smrg 58406758a055Smrg 58416758a055Smrg 58426758a055Smrg 58436758a055Smrg 58446758a055Smrg 58456758a055Smrg 58466758a055Smrg 58476758a055Smrg 58486758a055Smrg 58496758a055Smrg 58506758a055Smrg 58516758a055Smrg 58526758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 58536758a055Smrg 58546758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 58556758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58566758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 58576758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 58586758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 58596758a055Smrg $as_echo_n "(cached) " >&6 58606758a055Smrgelse 58616758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58626758a055Smrg/* end confdefs.h. */ 58636758a055Smrgint i; 58646758a055Smrg_ACEOF 58656758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 58666758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 58676758a055Smrgelse 58686758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 58696758a055Smrgfi 58706758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58716758a055Smrgfi 58726758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 58736758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 58746758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 58756758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58766758a055Smrgfi 58776758a055Smrg 58786758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 58796758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 58806758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58816758a055Smrg fi 58826758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58836758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 58846758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 58856758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 58866758a055Smrg $as_echo_n "(cached) " >&6 58876758a055Smrgelse 58886758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58896758a055Smrg/* end confdefs.h. */ 58906758a055Smrgint i; 58916758a055Smrg_ACEOF 58926758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 58936758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 58946758a055Smrgelse 58956758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 58966758a055Smrgfi 58976758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58986758a055Smrgfi 58996758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 59006758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 59016758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 59026758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59036758a055Smrgfi 59046758a055Smrg 59056758a055Smrgfound="no" 59066758a055Smrg 59076758a055Smrg if test $found = "no" ; then 59086758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 59096758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59106758a055Smrg fi 59116758a055Smrg 59126758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 59136758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59146758a055Smrg fi 59156758a055Smrg 59166758a055Smrg CFLAGS="$CFLAGS -Wuninitialized" 59176758a055Smrg 59186758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 59196758a055Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 59206758a055Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 59216758a055Smrg if eval \${$cacheid+:} false; then : 59226758a055Smrg $as_echo_n "(cached) " >&6 59236758a055Smrgelse 59246758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59256758a055Smrg/* end confdefs.h. */ 59266758a055Smrgint i; 59276758a055Smrgint 59286758a055Smrgmain () 59296758a055Smrg{ 59306758a055Smrg 59316758a055Smrg ; 59326758a055Smrg return 0; 59336758a055Smrg} 59346758a055Smrg_ACEOF 59356758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 59366758a055Smrg eval $cacheid=yes 59376758a055Smrgelse 59386758a055Smrg eval $cacheid=no 59396758a055Smrgfi 59406758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 59416758a055Smrg conftest$ac_exeext conftest.$ac_ext 59426758a055Smrgfi 59436758a055Smrg 59446758a055Smrg 59456758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59466758a055Smrg 59476758a055Smrg eval supported=\$$cacheid 59486758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 59496758a055Smrg$as_echo "$supported" >&6; } 59506758a055Smrg if test "$supported" = "yes" ; then 59516758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 59526758a055Smrg found="yes" 59536758a055Smrg fi 59546758a055Smrg fi 59556758a055Smrg 59566758a055Smrg 59576758a055Smrg 59586758a055Smrg 59596758a055Smrg 59606758a055Smrg 59616758a055Smrg 59626758a055Smrg 59636758a055Smrg 59646758a055Smrg 59656758a055Smrg 59666758a055Smrg 59676758a055Smrg 59686758a055Smrg 59696758a055Smrg 59706758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 59716758a055Smrg 59726758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 59736758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59746758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 59756758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 59766758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 59776758a055Smrg $as_echo_n "(cached) " >&6 59786758a055Smrgelse 59796758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59806758a055Smrg/* end confdefs.h. */ 59816758a055Smrgint i; 59826758a055Smrg_ACEOF 59836758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 59846758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 59856758a055Smrgelse 59866758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 59876758a055Smrgfi 59886758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59896758a055Smrgfi 59906758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 59916758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 59926758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 59936758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59946758a055Smrgfi 59956758a055Smrg 59966758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 59976758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 59986758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59996758a055Smrg fi 60006758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60016758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 60026758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 60036758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 60046758a055Smrg $as_echo_n "(cached) " >&6 60056758a055Smrgelse 60066758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60076758a055Smrg/* end confdefs.h. */ 60086758a055Smrgint i; 60096758a055Smrg_ACEOF 60106758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 60116758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 60126758a055Smrgelse 60136758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 60146758a055Smrgfi 60156758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 60166758a055Smrgfi 60176758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 60186758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 60196758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 60206758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60216758a055Smrgfi 60226758a055Smrg 60236758a055Smrgfound="no" 60246758a055Smrg 60256758a055Smrg if test $found = "no" ; then 60266758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 60276758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60286758a055Smrg fi 60296758a055Smrg 60306758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 60316758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60326758a055Smrg fi 60336758a055Smrg 60346758a055Smrg CFLAGS="$CFLAGS -Wshadow" 60356758a055Smrg 60366758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 60376758a055Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 60386758a055Smrg cacheid=xorg_cv_cc_flag__Wshadow 60396758a055Smrg if eval \${$cacheid+:} false; then : 60406758a055Smrg $as_echo_n "(cached) " >&6 60416758a055Smrgelse 60426758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60436758a055Smrg/* end confdefs.h. */ 60446758a055Smrgint i; 60456758a055Smrgint 60466758a055Smrgmain () 60476758a055Smrg{ 60486758a055Smrg 60496758a055Smrg ; 60506758a055Smrg return 0; 60516758a055Smrg} 60526758a055Smrg_ACEOF 60536758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 60546758a055Smrg eval $cacheid=yes 60556758a055Smrgelse 60566758a055Smrg eval $cacheid=no 60576758a055Smrgfi 60586758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 60596758a055Smrg conftest$ac_exeext conftest.$ac_ext 60606758a055Smrgfi 60616758a055Smrg 60626758a055Smrg 60636758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60646758a055Smrg 60656758a055Smrg eval supported=\$$cacheid 60666758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 60676758a055Smrg$as_echo "$supported" >&6; } 60686758a055Smrg if test "$supported" = "yes" ; then 60696758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 60706758a055Smrg found="yes" 60716758a055Smrg fi 60726758a055Smrg fi 60736758a055Smrg 60746758a055Smrg 60756758a055Smrg 60766758a055Smrg 60776758a055Smrg 60786758a055Smrg 60796758a055Smrg 60806758a055Smrg 60816758a055Smrg 60826758a055Smrg 60836758a055Smrg 60846758a055Smrg 60856758a055Smrg 60866758a055Smrg 60876758a055Smrg 60886758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 60896758a055Smrg 60906758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 60916758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60926758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 60936758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 60946758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 60956758a055Smrg $as_echo_n "(cached) " >&6 60966758a055Smrgelse 60976758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60986758a055Smrg/* end confdefs.h. */ 60996758a055Smrgint i; 61006758a055Smrg_ACEOF 61016758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 61026758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 61036758a055Smrgelse 61046758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 61056758a055Smrgfi 61066758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 61076758a055Smrgfi 61086758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 61096758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 61106758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 61116758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61126758a055Smrgfi 61136758a055Smrg 61146758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 61156758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 61166758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61176758a055Smrg fi 61186758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61196758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 61206758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 61216758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 61226758a055Smrg $as_echo_n "(cached) " >&6 61236758a055Smrgelse 61246758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61256758a055Smrg/* end confdefs.h. */ 61266758a055Smrgint i; 61276758a055Smrg_ACEOF 61286758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 61296758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 61306758a055Smrgelse 61316758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 61326758a055Smrgfi 61336758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 61346758a055Smrgfi 61356758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 61366758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 61376758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 61386758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61396758a055Smrgfi 61406758a055Smrg 61416758a055Smrgfound="no" 61426758a055Smrg 61436758a055Smrg if test $found = "no" ; then 61446758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 61456758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61466758a055Smrg fi 61476758a055Smrg 61486758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 61496758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61506758a055Smrg fi 61516758a055Smrg 61526758a055Smrg CFLAGS="$CFLAGS -Wcast-qual" 61536758a055Smrg 61546758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 61556758a055Smrg$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 61566758a055Smrg cacheid=xorg_cv_cc_flag__Wcast_qual 61576758a055Smrg if eval \${$cacheid+:} false; then : 61586758a055Smrg $as_echo_n "(cached) " >&6 61596758a055Smrgelse 61606758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61616758a055Smrg/* end confdefs.h. */ 61626758a055Smrgint i; 61636758a055Smrgint 61646758a055Smrgmain () 61656758a055Smrg{ 61666758a055Smrg 61676758a055Smrg ; 61686758a055Smrg return 0; 61696758a055Smrg} 61706758a055Smrg_ACEOF 61716758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 61726758a055Smrg eval $cacheid=yes 61736758a055Smrgelse 61746758a055Smrg eval $cacheid=no 61756758a055Smrgfi 61766758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 61776758a055Smrg conftest$ac_exeext conftest.$ac_ext 61786758a055Smrgfi 61796758a055Smrg 61806758a055Smrg 61816758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61826758a055Smrg 61836758a055Smrg eval supported=\$$cacheid 61846758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 61856758a055Smrg$as_echo "$supported" >&6; } 61866758a055Smrg if test "$supported" = "yes" ; then 61876758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 61886758a055Smrg found="yes" 61896758a055Smrg fi 61906758a055Smrg fi 61916758a055Smrg 61926758a055Smrg 61936758a055Smrg 61946758a055Smrg 61956758a055Smrg 61966758a055Smrg 61976758a055Smrg 61986758a055Smrg 61996758a055Smrg 62006758a055Smrg 62016758a055Smrg 62026758a055Smrg 62036758a055Smrg 62046758a055Smrg 62056758a055Smrg 62066758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 62076758a055Smrg 62086758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 62096758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62106758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 62116758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 62126758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 62136758a055Smrg $as_echo_n "(cached) " >&6 62146758a055Smrgelse 62156758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62166758a055Smrg/* end confdefs.h. */ 62176758a055Smrgint i; 62186758a055Smrg_ACEOF 62196758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 62206758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 62216758a055Smrgelse 62226758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 62236758a055Smrgfi 62246758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62256758a055Smrgfi 62266758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 62276758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 62286758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 62296758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62306758a055Smrgfi 62316758a055Smrg 62326758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 62336758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 62346758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62356758a055Smrg fi 62366758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62376758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 62386758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 62396758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 62406758a055Smrg $as_echo_n "(cached) " >&6 62416758a055Smrgelse 62426758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62436758a055Smrg/* end confdefs.h. */ 62446758a055Smrgint i; 62456758a055Smrg_ACEOF 62466758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 62476758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 62486758a055Smrgelse 62496758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 62506758a055Smrgfi 62516758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62526758a055Smrgfi 62536758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 62546758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 62556758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 62566758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62576758a055Smrgfi 62586758a055Smrg 62596758a055Smrgfound="no" 62606758a055Smrg 62616758a055Smrg if test $found = "no" ; then 62626758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 62636758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62646758a055Smrg fi 62656758a055Smrg 62666758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 62676758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62686758a055Smrg fi 62696758a055Smrg 62706758a055Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 62716758a055Smrg 62726758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 62736758a055Smrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 62746758a055Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 62756758a055Smrg if eval \${$cacheid+:} false; then : 62766758a055Smrg $as_echo_n "(cached) " >&6 62776758a055Smrgelse 62786758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62796758a055Smrg/* end confdefs.h. */ 62806758a055Smrgint i; 62816758a055Smrgint 62826758a055Smrgmain () 62836758a055Smrg{ 62846758a055Smrg 62856758a055Smrg ; 62866758a055Smrg return 0; 62876758a055Smrg} 62886758a055Smrg_ACEOF 62896758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 62906758a055Smrg eval $cacheid=yes 62916758a055Smrgelse 62926758a055Smrg eval $cacheid=no 62936758a055Smrgfi 62946758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 62956758a055Smrg conftest$ac_exeext conftest.$ac_ext 62966758a055Smrgfi 62976758a055Smrg 62986758a055Smrg 62996758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63006758a055Smrg 63016758a055Smrg eval supported=\$$cacheid 63026758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 63036758a055Smrg$as_echo "$supported" >&6; } 63046758a055Smrg if test "$supported" = "yes" ; then 63056758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 63066758a055Smrg found="yes" 63076758a055Smrg fi 63086758a055Smrg fi 63096758a055Smrg 63106758a055Smrg 63116758a055Smrg 63126758a055Smrg 63136758a055Smrg 63146758a055Smrg 63156758a055Smrg 63166758a055Smrg 63176758a055Smrg 63186758a055Smrg 63196758a055Smrg 63206758a055Smrg 63216758a055Smrg 63226758a055Smrg 63236758a055Smrg 63246758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 63256758a055Smrg 63266758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 63276758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63286758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 63296758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 63306758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 63316758a055Smrg $as_echo_n "(cached) " >&6 63326758a055Smrgelse 63336758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63346758a055Smrg/* end confdefs.h. */ 63356758a055Smrgint i; 63366758a055Smrg_ACEOF 63376758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 63386758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 63396758a055Smrgelse 63406758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 63416758a055Smrgfi 63426758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 63436758a055Smrgfi 63446758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 63456758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 63466758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 63476758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63486758a055Smrgfi 63496758a055Smrg 63506758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 63516758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 63526758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63536758a055Smrg fi 63546758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63556758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 63566758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 63576758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 63586758a055Smrg $as_echo_n "(cached) " >&6 63596758a055Smrgelse 63606758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63616758a055Smrg/* end confdefs.h. */ 63626758a055Smrgint i; 63636758a055Smrg_ACEOF 63646758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 63656758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 63666758a055Smrgelse 63676758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 63686758a055Smrgfi 63696758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 63706758a055Smrgfi 63716758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 63726758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 63736758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 63746758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63756758a055Smrgfi 63766758a055Smrg 63776758a055Smrgfound="no" 63786758a055Smrg 63796758a055Smrg if test $found = "no" ; then 63806758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 63816758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63826758a055Smrg fi 63836758a055Smrg 63846758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 63856758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63866758a055Smrg fi 63876758a055Smrg 63886758a055Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 63896758a055Smrg 63906758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 63916758a055Smrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 63926758a055Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 63936758a055Smrg if eval \${$cacheid+:} false; then : 63946758a055Smrg $as_echo_n "(cached) " >&6 63956758a055Smrgelse 63966758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63976758a055Smrg/* end confdefs.h. */ 63986758a055Smrgint i; 63996758a055Smrgint 64006758a055Smrgmain () 64016758a055Smrg{ 64026758a055Smrg 64036758a055Smrg ; 64046758a055Smrg return 0; 64056758a055Smrg} 64066758a055Smrg_ACEOF 64076758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 64086758a055Smrg eval $cacheid=yes 64096758a055Smrgelse 64106758a055Smrg eval $cacheid=no 64116758a055Smrgfi 64126758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 64136758a055Smrg conftest$ac_exeext conftest.$ac_ext 64146758a055Smrgfi 64156758a055Smrg 64166758a055Smrg 64176758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64186758a055Smrg 64196758a055Smrg eval supported=\$$cacheid 64206758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 64216758a055Smrg$as_echo "$supported" >&6; } 64226758a055Smrg if test "$supported" = "yes" ; then 64236758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 64246758a055Smrg found="yes" 64256758a055Smrg fi 64266758a055Smrg fi 64276758a055Smrg 64286758a055Smrg 64296758a055Smrg 64306758a055Smrg 64316758a055Smrg 64326758a055Smrg 64336758a055Smrg 64346758a055Smrg 64356758a055Smrg 64366758a055Smrg 64376758a055Smrg 64386758a055Smrg 64396758a055Smrg 64406758a055Smrg 64416758a055Smrg 64426758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 64436758a055Smrg 64446758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 64456758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64466758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 64476758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 64486758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 64496758a055Smrg $as_echo_n "(cached) " >&6 64506758a055Smrgelse 64516758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64526758a055Smrg/* end confdefs.h. */ 64536758a055Smrgint i; 64546758a055Smrg_ACEOF 64556758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 64566758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 64576758a055Smrgelse 64586758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 64596758a055Smrgfi 64606758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 64616758a055Smrgfi 64626758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 64636758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 64646758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 64656758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64666758a055Smrgfi 64676758a055Smrg 64686758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 64696758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 64706758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64716758a055Smrg fi 64726758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64736758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 64746758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 64756758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 64766758a055Smrg $as_echo_n "(cached) " >&6 64776758a055Smrgelse 64786758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64796758a055Smrg/* end confdefs.h. */ 64806758a055Smrgint i; 64816758a055Smrg_ACEOF 64826758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 64836758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 64846758a055Smrgelse 64856758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 64866758a055Smrgfi 64876758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 64886758a055Smrgfi 64896758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 64906758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 64916758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 64926758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64936758a055Smrgfi 64946758a055Smrg 64956758a055Smrgfound="no" 64966758a055Smrg 64976758a055Smrg if test $found = "no" ; then 64986758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 64996758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65006758a055Smrg fi 65016758a055Smrg 65026758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 65036758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65046758a055Smrg fi 65056758a055Smrg 65066758a055Smrg CFLAGS="$CFLAGS -Wredundant-decls" 65076758a055Smrg 65086758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 65096758a055Smrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 65106758a055Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 65116758a055Smrg if eval \${$cacheid+:} false; then : 65126758a055Smrg $as_echo_n "(cached) " >&6 65136758a055Smrgelse 65146758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65156758a055Smrg/* end confdefs.h. */ 65166758a055Smrgint i; 65176758a055Smrgint 65186758a055Smrgmain () 65196758a055Smrg{ 65206758a055Smrg 65216758a055Smrg ; 65226758a055Smrg return 0; 65236758a055Smrg} 65246758a055Smrg_ACEOF 65256758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 65266758a055Smrg eval $cacheid=yes 65276758a055Smrgelse 65286758a055Smrg eval $cacheid=no 65296758a055Smrgfi 65306758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 65316758a055Smrg conftest$ac_exeext conftest.$ac_ext 65326758a055Smrgfi 65336758a055Smrg 65346758a055Smrg 65356758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65366758a055Smrg 65376758a055Smrg eval supported=\$$cacheid 65386758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 65396758a055Smrg$as_echo "$supported" >&6; } 65406758a055Smrg if test "$supported" = "yes" ; then 65416758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 65426758a055Smrg found="yes" 65436758a055Smrg fi 65446758a055Smrg fi 65456758a055Smrg 65466758a055Smrg 65476758a055Smrg 65486758a055Smrg# These are currently disabled because they are noisy. They will be enabled 65496758a055Smrg# in the future once the codebase is sufficiently modernized to silence 65506758a055Smrg# them. For now, I don't want them to drown out the other warnings. 65516758a055Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 65526758a055Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 65536758a055Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 65546758a055Smrg 65556758a055Smrg# Turn some warnings into errors, so we don't accidently get successful builds 65566758a055Smrg# when there are problems that should be fixed. 65576758a055Smrg 65586758a055Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 65596758a055Smrg 65606758a055Smrg 65616758a055Smrg 65626758a055Smrg 65636758a055Smrg 65646758a055Smrg 65656758a055Smrg 65666758a055Smrg 65676758a055Smrg 65686758a055Smrg 65696758a055Smrg 65706758a055Smrg 65716758a055Smrg 65726758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 65736758a055Smrg 65746758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 65756758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65766758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 65776758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 65786758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 65796758a055Smrg $as_echo_n "(cached) " >&6 65806758a055Smrgelse 65816758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65826758a055Smrg/* end confdefs.h. */ 65836758a055Smrgint i; 65846758a055Smrg_ACEOF 65856758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 65866758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 65876758a055Smrgelse 65886758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 65896758a055Smrgfi 65906758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65916758a055Smrgfi 65926758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 65936758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 65946758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 65956758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65966758a055Smrgfi 65976758a055Smrg 65986758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 65996758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 66006758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66016758a055Smrg fi 66026758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66036758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 66046758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 66056758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 66066758a055Smrg $as_echo_n "(cached) " >&6 66076758a055Smrgelse 66086758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66096758a055Smrg/* end confdefs.h. */ 66106758a055Smrgint i; 66116758a055Smrg_ACEOF 66126758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 66136758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 66146758a055Smrgelse 66156758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 66166758a055Smrgfi 66176758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66186758a055Smrgfi 66196758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 66206758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 66216758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 66226758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66236758a055Smrgfi 66246758a055Smrg 66256758a055Smrgfound="no" 66266758a055Smrg 66276758a055Smrg if test $found = "no" ; then 66286758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 66296758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66306758a055Smrg fi 66316758a055Smrg 66326758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 66336758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66346758a055Smrg fi 66356758a055Smrg 66366758a055Smrg CFLAGS="$CFLAGS -Werror=implicit" 66376758a055Smrg 66386758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 66396758a055Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 66406758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 66416758a055Smrg if eval \${$cacheid+:} false; then : 66426758a055Smrg $as_echo_n "(cached) " >&6 66436758a055Smrgelse 66446758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66456758a055Smrg/* end confdefs.h. */ 66466758a055Smrgint i; 66476758a055Smrgint 66486758a055Smrgmain () 66496758a055Smrg{ 66506758a055Smrg 66516758a055Smrg ; 66526758a055Smrg return 0; 66536758a055Smrg} 66546758a055Smrg_ACEOF 66556758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 66566758a055Smrg eval $cacheid=yes 66576758a055Smrgelse 66586758a055Smrg eval $cacheid=no 66596758a055Smrgfi 66606758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 66616758a055Smrg conftest$ac_exeext conftest.$ac_ext 66626758a055Smrgfi 66636758a055Smrg 66646758a055Smrg 66656758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66666758a055Smrg 66676758a055Smrg eval supported=\$$cacheid 66686758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 66696758a055Smrg$as_echo "$supported" >&6; } 66706758a055Smrg if test "$supported" = "yes" ; then 66716758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 66726758a055Smrg found="yes" 66736758a055Smrg fi 66746758a055Smrg fi 66756758a055Smrg 66766758a055Smrg if test $found = "no" ; then 66776758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 66786758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66796758a055Smrg fi 66806758a055Smrg 66816758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 66826758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66836758a055Smrg fi 66846758a055Smrg 66856758a055Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 66866758a055Smrg 66876758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 66886758a055Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 66896758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 66906758a055Smrg if eval \${$cacheid+:} false; then : 66916758a055Smrg $as_echo_n "(cached) " >&6 66926758a055Smrgelse 66936758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66946758a055Smrg/* end confdefs.h. */ 66956758a055Smrgint i; 66966758a055Smrgint 66976758a055Smrgmain () 66986758a055Smrg{ 66996758a055Smrg 67006758a055Smrg ; 67016758a055Smrg return 0; 67026758a055Smrg} 67036758a055Smrg_ACEOF 67046758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 67056758a055Smrg eval $cacheid=yes 67066758a055Smrgelse 67076758a055Smrg eval $cacheid=no 67086758a055Smrgfi 67096758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 67106758a055Smrg conftest$ac_exeext conftest.$ac_ext 67116758a055Smrgfi 67126758a055Smrg 67136758a055Smrg 67146758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67156758a055Smrg 67166758a055Smrg eval supported=\$$cacheid 67176758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 67186758a055Smrg$as_echo "$supported" >&6; } 67196758a055Smrg if test "$supported" = "yes" ; then 67206758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 67216758a055Smrg found="yes" 67226758a055Smrg fi 67236758a055Smrg fi 67246758a055Smrg 67256758a055Smrg 67266758a055Smrg 67276758a055Smrg 67286758a055Smrg 67296758a055Smrg 67306758a055Smrg 67316758a055Smrg 67326758a055Smrg 67336758a055Smrg 67346758a055Smrg 67356758a055Smrg 67366758a055Smrg 67376758a055Smrg 67386758a055Smrg 67396758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 67406758a055Smrg 67416758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 67426758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67436758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 67446758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 67456758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 67466758a055Smrg $as_echo_n "(cached) " >&6 67476758a055Smrgelse 67486758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67496758a055Smrg/* end confdefs.h. */ 67506758a055Smrgint i; 67516758a055Smrg_ACEOF 67526758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 67536758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 67546758a055Smrgelse 67556758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 67566758a055Smrgfi 67576758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67586758a055Smrgfi 67596758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 67606758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 67616758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 67626758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67636758a055Smrgfi 67646758a055Smrg 67656758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 67666758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 67676758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67686758a055Smrg fi 67696758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67706758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 67716758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 67726758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 67736758a055Smrg $as_echo_n "(cached) " >&6 67746758a055Smrgelse 67756758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67766758a055Smrg/* end confdefs.h. */ 67776758a055Smrgint i; 67786758a055Smrg_ACEOF 67796758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 67806758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 67816758a055Smrgelse 67826758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 67836758a055Smrgfi 67846758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67856758a055Smrgfi 67866758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 67876758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 67886758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 67896758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67906758a055Smrgfi 67916758a055Smrg 67926758a055Smrgfound="no" 67936758a055Smrg 67946758a055Smrg if test $found = "no" ; then 67956758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 67966758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67976758a055Smrg fi 67986758a055Smrg 67996758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 68006758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68016758a055Smrg fi 68026758a055Smrg 68036758a055Smrg CFLAGS="$CFLAGS -Werror=nonnull" 68046758a055Smrg 68056758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 68066758a055Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 68076758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 68086758a055Smrg if eval \${$cacheid+:} false; then : 68096758a055Smrg $as_echo_n "(cached) " >&6 68106758a055Smrgelse 68116758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68126758a055Smrg/* end confdefs.h. */ 68136758a055Smrgint i; 68146758a055Smrgint 68156758a055Smrgmain () 68166758a055Smrg{ 68176758a055Smrg 68186758a055Smrg ; 68196758a055Smrg return 0; 68206758a055Smrg} 68216758a055Smrg_ACEOF 68226758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 68236758a055Smrg eval $cacheid=yes 68246758a055Smrgelse 68256758a055Smrg eval $cacheid=no 68266758a055Smrgfi 68276758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 68286758a055Smrg conftest$ac_exeext conftest.$ac_ext 68296758a055Smrgfi 68306758a055Smrg 68316758a055Smrg 68326758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68336758a055Smrg 68346758a055Smrg eval supported=\$$cacheid 68356758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68366758a055Smrg$as_echo "$supported" >&6; } 68376758a055Smrg if test "$supported" = "yes" ; then 68386758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 68396758a055Smrg found="yes" 68406758a055Smrg fi 68416758a055Smrg fi 68426758a055Smrg 68436758a055Smrg 68446758a055Smrg 68456758a055Smrg 68466758a055Smrg 68476758a055Smrg 68486758a055Smrg 68496758a055Smrg 68506758a055Smrg 68516758a055Smrg 68526758a055Smrg 68536758a055Smrg 68546758a055Smrg 68556758a055Smrg 68566758a055Smrg 68576758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 68586758a055Smrg 68596758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 68606758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68616758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 68626758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 68636758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 68646758a055Smrg $as_echo_n "(cached) " >&6 68656758a055Smrgelse 68666758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68676758a055Smrg/* end confdefs.h. */ 68686758a055Smrgint i; 68696758a055Smrg_ACEOF 68706758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 68716758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 68726758a055Smrgelse 68736758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 68746758a055Smrgfi 68756758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 68766758a055Smrgfi 68776758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 68786758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 68796758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 68806758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68816758a055Smrgfi 68826758a055Smrg 68836758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 68846758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 68856758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68866758a055Smrg fi 68876758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68886758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 68896758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 68906758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 68916758a055Smrg $as_echo_n "(cached) " >&6 68926758a055Smrgelse 68936758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68946758a055Smrg/* end confdefs.h. */ 68956758a055Smrgint i; 68966758a055Smrg_ACEOF 68976758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 68986758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 68996758a055Smrgelse 69006758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 69016758a055Smrgfi 69026758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 69036758a055Smrgfi 69046758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 69056758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 69066758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 69076758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69086758a055Smrgfi 69096758a055Smrg 69106758a055Smrgfound="no" 69116758a055Smrg 69126758a055Smrg if test $found = "no" ; then 69136758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 69146758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69156758a055Smrg fi 69166758a055Smrg 69176758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 69186758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69196758a055Smrg fi 69206758a055Smrg 69216758a055Smrg CFLAGS="$CFLAGS -Werror=init-self" 69226758a055Smrg 69236758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 69246758a055Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 69256758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 69266758a055Smrg if eval \${$cacheid+:} false; then : 69276758a055Smrg $as_echo_n "(cached) " >&6 69286758a055Smrgelse 69296758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69306758a055Smrg/* end confdefs.h. */ 69316758a055Smrgint i; 69326758a055Smrgint 69336758a055Smrgmain () 69346758a055Smrg{ 69356758a055Smrg 69366758a055Smrg ; 69376758a055Smrg return 0; 69386758a055Smrg} 69396758a055Smrg_ACEOF 69406758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 69416758a055Smrg eval $cacheid=yes 69426758a055Smrgelse 69436758a055Smrg eval $cacheid=no 69446758a055Smrgfi 69456758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 69466758a055Smrg conftest$ac_exeext conftest.$ac_ext 69476758a055Smrgfi 69486758a055Smrg 69496758a055Smrg 69506758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69516758a055Smrg 69526758a055Smrg eval supported=\$$cacheid 69536758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 69546758a055Smrg$as_echo "$supported" >&6; } 69556758a055Smrg if test "$supported" = "yes" ; then 69566758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 69576758a055Smrg found="yes" 69586758a055Smrg fi 69596758a055Smrg fi 69606758a055Smrg 69616758a055Smrg 69626758a055Smrg 69636758a055Smrg 69646758a055Smrg 69656758a055Smrg 69666758a055Smrg 69676758a055Smrg 69686758a055Smrg 69696758a055Smrg 69706758a055Smrg 69716758a055Smrg 69726758a055Smrg 69736758a055Smrg 69746758a055Smrg 69756758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 69766758a055Smrg 69776758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 69786758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69796758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 69806758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 69816758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 69826758a055Smrg $as_echo_n "(cached) " >&6 69836758a055Smrgelse 69846758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69856758a055Smrg/* end confdefs.h. */ 69866758a055Smrgint i; 69876758a055Smrg_ACEOF 69886758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 69896758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 69906758a055Smrgelse 69916758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 69926758a055Smrgfi 69936758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 69946758a055Smrgfi 69956758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 69966758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 69976758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 69986758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69996758a055Smrgfi 70006758a055Smrg 70016758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 70026758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 70036758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70046758a055Smrg fi 70056758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70066758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 70076758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 70086758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 70096758a055Smrg $as_echo_n "(cached) " >&6 70106758a055Smrgelse 70116758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70126758a055Smrg/* end confdefs.h. */ 70136758a055Smrgint i; 70146758a055Smrg_ACEOF 70156758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 70166758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 70176758a055Smrgelse 70186758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 70196758a055Smrgfi 70206758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 70216758a055Smrgfi 70226758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 70236758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 70246758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 70256758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70266758a055Smrgfi 70276758a055Smrg 70286758a055Smrgfound="no" 70296758a055Smrg 70306758a055Smrg if test $found = "no" ; then 70316758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 70326758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70336758a055Smrg fi 70346758a055Smrg 70356758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 70366758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70376758a055Smrg fi 70386758a055Smrg 70396758a055Smrg CFLAGS="$CFLAGS -Werror=main" 70406758a055Smrg 70416758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 70426758a055Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 70436758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 70446758a055Smrg if eval \${$cacheid+:} false; then : 70456758a055Smrg $as_echo_n "(cached) " >&6 70466758a055Smrgelse 70476758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70486758a055Smrg/* end confdefs.h. */ 70496758a055Smrgint i; 70506758a055Smrgint 70516758a055Smrgmain () 70526758a055Smrg{ 70536758a055Smrg 70546758a055Smrg ; 70556758a055Smrg return 0; 70566758a055Smrg} 70576758a055Smrg_ACEOF 70586758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 70596758a055Smrg eval $cacheid=yes 70606758a055Smrgelse 70616758a055Smrg eval $cacheid=no 70626758a055Smrgfi 70636758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 70646758a055Smrg conftest$ac_exeext conftest.$ac_ext 70656758a055Smrgfi 70666758a055Smrg 70676758a055Smrg 70686758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70696758a055Smrg 70706758a055Smrg eval supported=\$$cacheid 70716758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 70726758a055Smrg$as_echo "$supported" >&6; } 70736758a055Smrg if test "$supported" = "yes" ; then 70746758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 70756758a055Smrg found="yes" 70766758a055Smrg fi 70776758a055Smrg fi 70786758a055Smrg 70796758a055Smrg 70806758a055Smrg 70816758a055Smrg 70826758a055Smrg 70836758a055Smrg 70846758a055Smrg 70856758a055Smrg 70866758a055Smrg 70876758a055Smrg 70886758a055Smrg 70896758a055Smrg 70906758a055Smrg 70916758a055Smrg 70926758a055Smrg 70936758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 70946758a055Smrg 70956758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 70966758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70976758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 70986758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 70996758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 71006758a055Smrg $as_echo_n "(cached) " >&6 71016758a055Smrgelse 71026758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71036758a055Smrg/* end confdefs.h. */ 71046758a055Smrgint i; 71056758a055Smrg_ACEOF 71066758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 71076758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 71086758a055Smrgelse 71096758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 71106758a055Smrgfi 71116758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 71126758a055Smrgfi 71136758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 71146758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 71156758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 71166758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71176758a055Smrgfi 71186758a055Smrg 71196758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 71206758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 71216758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71226758a055Smrg fi 71236758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71246758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 71256758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 71266758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 71276758a055Smrg $as_echo_n "(cached) " >&6 71286758a055Smrgelse 71296758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71306758a055Smrg/* end confdefs.h. */ 71316758a055Smrgint i; 71326758a055Smrg_ACEOF 71336758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 71346758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 71356758a055Smrgelse 71366758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 71376758a055Smrgfi 71386758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 71396758a055Smrgfi 71406758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 71416758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 71426758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 71436758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71446758a055Smrgfi 71456758a055Smrg 71466758a055Smrgfound="no" 71476758a055Smrg 71486758a055Smrg if test $found = "no" ; then 71496758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 71506758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71516758a055Smrg fi 71526758a055Smrg 71536758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 71546758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71556758a055Smrg fi 71566758a055Smrg 71576758a055Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 71586758a055Smrg 71596758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 71606758a055Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 71616758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 71626758a055Smrg if eval \${$cacheid+:} false; then : 71636758a055Smrg $as_echo_n "(cached) " >&6 71646758a055Smrgelse 71656758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71666758a055Smrg/* end confdefs.h. */ 71676758a055Smrgint i; 71686758a055Smrgint 71696758a055Smrgmain () 71706758a055Smrg{ 71716758a055Smrg 71726758a055Smrg ; 71736758a055Smrg return 0; 71746758a055Smrg} 71756758a055Smrg_ACEOF 71766758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 71776758a055Smrg eval $cacheid=yes 71786758a055Smrgelse 71796758a055Smrg eval $cacheid=no 71806758a055Smrgfi 71816758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 71826758a055Smrg conftest$ac_exeext conftest.$ac_ext 71836758a055Smrgfi 71846758a055Smrg 71856758a055Smrg 71866758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71876758a055Smrg 71886758a055Smrg eval supported=\$$cacheid 71896758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 71906758a055Smrg$as_echo "$supported" >&6; } 71916758a055Smrg if test "$supported" = "yes" ; then 71926758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 71936758a055Smrg found="yes" 71946758a055Smrg fi 71956758a055Smrg fi 71966758a055Smrg 71976758a055Smrg 71986758a055Smrg 71996758a055Smrg 72006758a055Smrg 72016758a055Smrg 72026758a055Smrg 72036758a055Smrg 72046758a055Smrg 72056758a055Smrg 72066758a055Smrg 72076758a055Smrg 72086758a055Smrg 72096758a055Smrg 72106758a055Smrg 72116758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 72126758a055Smrg 72136758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 72146758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72156758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 72166758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 72176758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 72186758a055Smrg $as_echo_n "(cached) " >&6 72196758a055Smrgelse 72206758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72216758a055Smrg/* end confdefs.h. */ 72226758a055Smrgint i; 72236758a055Smrg_ACEOF 72246758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 72256758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 72266758a055Smrgelse 72276758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 72286758a055Smrgfi 72296758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 72306758a055Smrgfi 72316758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 72326758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 72336758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 72346758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72356758a055Smrgfi 72366758a055Smrg 72376758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 72386758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 72396758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72406758a055Smrg fi 72416758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72426758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 72436758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 72446758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 72456758a055Smrg $as_echo_n "(cached) " >&6 72466758a055Smrgelse 72476758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72486758a055Smrg/* end confdefs.h. */ 72496758a055Smrgint i; 72506758a055Smrg_ACEOF 72516758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 72526758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 72536758a055Smrgelse 72546758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 72556758a055Smrgfi 72566758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 72576758a055Smrgfi 72586758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 72596758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 72606758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 72616758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72626758a055Smrgfi 72636758a055Smrg 72646758a055Smrgfound="no" 72656758a055Smrg 72666758a055Smrg if test $found = "no" ; then 72676758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 72686758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72696758a055Smrg fi 72706758a055Smrg 72716758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 72726758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72736758a055Smrg fi 72746758a055Smrg 72756758a055Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 72766758a055Smrg 72776758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 72786758a055Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 72796758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 72806758a055Smrg if eval \${$cacheid+:} false; then : 72816758a055Smrg $as_echo_n "(cached) " >&6 72826758a055Smrgelse 72836758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72846758a055Smrg/* end confdefs.h. */ 72856758a055Smrgint i; 72866758a055Smrgint 72876758a055Smrgmain () 72886758a055Smrg{ 72896758a055Smrg 72906758a055Smrg ; 72916758a055Smrg return 0; 72926758a055Smrg} 72936758a055Smrg_ACEOF 72946758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 72956758a055Smrg eval $cacheid=yes 72966758a055Smrgelse 72976758a055Smrg eval $cacheid=no 72986758a055Smrgfi 72996758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 73006758a055Smrg conftest$ac_exeext conftest.$ac_ext 73016758a055Smrgfi 73026758a055Smrg 73036758a055Smrg 73046758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73056758a055Smrg 73066758a055Smrg eval supported=\$$cacheid 73076758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 73086758a055Smrg$as_echo "$supported" >&6; } 73096758a055Smrg if test "$supported" = "yes" ; then 73106758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 73116758a055Smrg found="yes" 73126758a055Smrg fi 73136758a055Smrg fi 73146758a055Smrg 73156758a055Smrg 73166758a055Smrg 73176758a055Smrg 73186758a055Smrg 73196758a055Smrg 73206758a055Smrg 73216758a055Smrg 73226758a055Smrg 73236758a055Smrg 73246758a055Smrg 73256758a055Smrg 73266758a055Smrg 73276758a055Smrg 73286758a055Smrg 73296758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 73306758a055Smrg 73316758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 73326758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73336758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 73346758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 73356758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 73366758a055Smrg $as_echo_n "(cached) " >&6 73376758a055Smrgelse 73386758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73396758a055Smrg/* end confdefs.h. */ 73406758a055Smrgint i; 73416758a055Smrg_ACEOF 73426758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 73436758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 73446758a055Smrgelse 73456758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 73466758a055Smrgfi 73476758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 73486758a055Smrgfi 73496758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 73506758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 73516758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 73526758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73536758a055Smrgfi 73546758a055Smrg 73556758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 73566758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 73576758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73586758a055Smrg fi 73596758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73606758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 73616758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 73626758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 73636758a055Smrg $as_echo_n "(cached) " >&6 73646758a055Smrgelse 73656758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73666758a055Smrg/* end confdefs.h. */ 73676758a055Smrgint i; 73686758a055Smrg_ACEOF 73696758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 73706758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 73716758a055Smrgelse 73726758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 73736758a055Smrgfi 73746758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 73756758a055Smrgfi 73766758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 73776758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 73786758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 73796758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73806758a055Smrgfi 73816758a055Smrg 73826758a055Smrgfound="no" 73836758a055Smrg 73846758a055Smrg if test $found = "no" ; then 73856758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 73866758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73876758a055Smrg fi 73886758a055Smrg 73896758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 73906758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73916758a055Smrg fi 73926758a055Smrg 73936758a055Smrg CFLAGS="$CFLAGS -Werror=return-type" 73946758a055Smrg 73956758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 73966758a055Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 73976758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 73986758a055Smrg if eval \${$cacheid+:} false; then : 73996758a055Smrg $as_echo_n "(cached) " >&6 74006758a055Smrgelse 74016758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74026758a055Smrg/* end confdefs.h. */ 74036758a055Smrgint i; 74046758a055Smrgint 74056758a055Smrgmain () 74066758a055Smrg{ 74076758a055Smrg 74086758a055Smrg ; 74096758a055Smrg return 0; 74106758a055Smrg} 74116758a055Smrg_ACEOF 74126758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 74136758a055Smrg eval $cacheid=yes 74146758a055Smrgelse 74156758a055Smrg eval $cacheid=no 74166758a055Smrgfi 74176758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 74186758a055Smrg conftest$ac_exeext conftest.$ac_ext 74196758a055Smrgfi 74206758a055Smrg 74216758a055Smrg 74226758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74236758a055Smrg 74246758a055Smrg eval supported=\$$cacheid 74256758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74266758a055Smrg$as_echo "$supported" >&6; } 74276758a055Smrg if test "$supported" = "yes" ; then 74286758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 74296758a055Smrg found="yes" 74306758a055Smrg fi 74316758a055Smrg fi 74326758a055Smrg 74336758a055Smrg if test $found = "no" ; then 74346758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 74356758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74366758a055Smrg fi 74376758a055Smrg 74386758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 74396758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74406758a055Smrg fi 74416758a055Smrg 74426758a055Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 74436758a055Smrg 74446758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 74456758a055Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 74466758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 74476758a055Smrg if eval \${$cacheid+:} false; then : 74486758a055Smrg $as_echo_n "(cached) " >&6 74496758a055Smrgelse 74506758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74516758a055Smrg/* end confdefs.h. */ 74526758a055Smrgint i; 74536758a055Smrgint 74546758a055Smrgmain () 74556758a055Smrg{ 74566758a055Smrg 74576758a055Smrg ; 74586758a055Smrg return 0; 74596758a055Smrg} 74606758a055Smrg_ACEOF 74616758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 74626758a055Smrg eval $cacheid=yes 74636758a055Smrgelse 74646758a055Smrg eval $cacheid=no 74656758a055Smrgfi 74666758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 74676758a055Smrg conftest$ac_exeext conftest.$ac_ext 74686758a055Smrgfi 74696758a055Smrg 74706758a055Smrg 74716758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74726758a055Smrg 74736758a055Smrg eval supported=\$$cacheid 74746758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74756758a055Smrg$as_echo "$supported" >&6; } 74766758a055Smrg if test "$supported" = "yes" ; then 74776758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 74786758a055Smrg found="yes" 74796758a055Smrg fi 74806758a055Smrg fi 74816758a055Smrg 74826758a055Smrg 74836758a055Smrg 74846758a055Smrg 74856758a055Smrg 74866758a055Smrg 74876758a055Smrg 74886758a055Smrg 74896758a055Smrg 74906758a055Smrg 74916758a055Smrg 74926758a055Smrg 74936758a055Smrg 74946758a055Smrg 74956758a055Smrg 74966758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 74976758a055Smrg 74986758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 74996758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75006758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 75016758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 75026758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 75036758a055Smrg $as_echo_n "(cached) " >&6 75046758a055Smrgelse 75056758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75066758a055Smrg/* end confdefs.h. */ 75076758a055Smrgint i; 75086758a055Smrg_ACEOF 75096758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 75106758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 75116758a055Smrgelse 75126758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 75136758a055Smrgfi 75146758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 75156758a055Smrgfi 75166758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 75176758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 75186758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 75196758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75206758a055Smrgfi 75216758a055Smrg 75226758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 75236758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 75246758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75256758a055Smrg fi 75266758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75276758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 75286758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 75296758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 75306758a055Smrg $as_echo_n "(cached) " >&6 75316758a055Smrgelse 75326758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75336758a055Smrg/* end confdefs.h. */ 75346758a055Smrgint i; 75356758a055Smrg_ACEOF 75366758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 75376758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 75386758a055Smrgelse 75396758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 75406758a055Smrgfi 75416758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 75426758a055Smrgfi 75436758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 75446758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 75456758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 75466758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75476758a055Smrgfi 75486758a055Smrg 75496758a055Smrgfound="no" 75506758a055Smrg 75516758a055Smrg if test $found = "no" ; then 75526758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 75536758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75546758a055Smrg fi 75556758a055Smrg 75566758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 75576758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75586758a055Smrg fi 75596758a055Smrg 75606758a055Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 75616758a055Smrg 75626758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 75636758a055Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 75646758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 75656758a055Smrg if eval \${$cacheid+:} false; then : 75666758a055Smrg $as_echo_n "(cached) " >&6 75676758a055Smrgelse 75686758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75696758a055Smrg/* end confdefs.h. */ 75706758a055Smrgint i; 75716758a055Smrgint 75726758a055Smrgmain () 75736758a055Smrg{ 75746758a055Smrg 75756758a055Smrg ; 75766758a055Smrg return 0; 75776758a055Smrg} 75786758a055Smrg_ACEOF 75796758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 75806758a055Smrg eval $cacheid=yes 75816758a055Smrgelse 75826758a055Smrg eval $cacheid=no 75836758a055Smrgfi 75846758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 75856758a055Smrg conftest$ac_exeext conftest.$ac_ext 75866758a055Smrgfi 75876758a055Smrg 75886758a055Smrg 75896758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75906758a055Smrg 75916758a055Smrg eval supported=\$$cacheid 75926758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 75936758a055Smrg$as_echo "$supported" >&6; } 75946758a055Smrg if test "$supported" = "yes" ; then 75956758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 75966758a055Smrg found="yes" 75976758a055Smrg fi 75986758a055Smrg fi 75996758a055Smrg 76006758a055Smrg 76016758a055Smrg 76026758a055Smrg 76036758a055Smrg 76046758a055Smrg 76056758a055Smrg 76066758a055Smrg 76076758a055Smrg 76086758a055Smrg 76096758a055Smrg 76106758a055Smrg 76116758a055Smrg 76126758a055Smrg 76136758a055Smrg 76146758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 76156758a055Smrg 76166758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 76176758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76186758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 76196758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 76206758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 76216758a055Smrg $as_echo_n "(cached) " >&6 76226758a055Smrgelse 76236758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76246758a055Smrg/* end confdefs.h. */ 76256758a055Smrgint i; 76266758a055Smrg_ACEOF 76276758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 76286758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 76296758a055Smrgelse 76306758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 76316758a055Smrgfi 76326758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 76336758a055Smrgfi 76346758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 76356758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 76366758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 76376758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76386758a055Smrgfi 76396758a055Smrg 76406758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 76416758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 76426758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76436758a055Smrg fi 76446758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76456758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 76466758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 76476758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 76486758a055Smrg $as_echo_n "(cached) " >&6 76496758a055Smrgelse 76506758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76516758a055Smrg/* end confdefs.h. */ 76526758a055Smrgint i; 76536758a055Smrg_ACEOF 76546758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 76556758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 76566758a055Smrgelse 76576758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 76586758a055Smrgfi 76596758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 76606758a055Smrgfi 76616758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 76626758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 76636758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 76646758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76656758a055Smrgfi 76666758a055Smrg 76676758a055Smrgfound="no" 76686758a055Smrg 76696758a055Smrg if test $found = "no" ; then 76706758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 76716758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76726758a055Smrg fi 76736758a055Smrg 76746758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 76756758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76766758a055Smrg fi 76776758a055Smrg 76786758a055Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 76796758a055Smrg 76806758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 76816758a055Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 76826758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 76836758a055Smrg if eval \${$cacheid+:} false; then : 76846758a055Smrg $as_echo_n "(cached) " >&6 76856758a055Smrgelse 76866758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76876758a055Smrg/* end confdefs.h. */ 76886758a055Smrgint i; 76896758a055Smrgint 76906758a055Smrgmain () 76916758a055Smrg{ 76926758a055Smrg 76936758a055Smrg ; 76946758a055Smrg return 0; 76956758a055Smrg} 76966758a055Smrg_ACEOF 76976758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 76986758a055Smrg eval $cacheid=yes 76996758a055Smrgelse 77006758a055Smrg eval $cacheid=no 77016758a055Smrgfi 77026758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 77036758a055Smrg conftest$ac_exeext conftest.$ac_ext 77046758a055Smrgfi 77056758a055Smrg 77066758a055Smrg 77076758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77086758a055Smrg 77096758a055Smrg eval supported=\$$cacheid 77106758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 77116758a055Smrg$as_echo "$supported" >&6; } 77126758a055Smrg if test "$supported" = "yes" ; then 77136758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 77146758a055Smrg found="yes" 77156758a055Smrg fi 77166758a055Smrg fi 77176758a055Smrg 77186758a055Smrg 77196758a055Smrg 77206758a055Smrg 77216758a055Smrg 77226758a055Smrg 77236758a055Smrg 77246758a055Smrg 77256758a055Smrg 77266758a055Smrg 77276758a055Smrg 77286758a055Smrg 77296758a055Smrg 77306758a055Smrg 77316758a055Smrg 77326758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 77336758a055Smrg 77346758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 77356758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77366758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 77376758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 77386758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 77396758a055Smrg $as_echo_n "(cached) " >&6 77406758a055Smrgelse 77416758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77426758a055Smrg/* end confdefs.h. */ 77436758a055Smrgint i; 77446758a055Smrg_ACEOF 77456758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 77466758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 77476758a055Smrgelse 77486758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 77496758a055Smrgfi 77506758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 77516758a055Smrgfi 77526758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 77536758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 77546758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 77556758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77566758a055Smrgfi 77576758a055Smrg 77586758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 77596758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 77606758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77616758a055Smrg fi 77626758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77636758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 77646758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 77656758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 77666758a055Smrg $as_echo_n "(cached) " >&6 77676758a055Smrgelse 77686758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77696758a055Smrg/* end confdefs.h. */ 77706758a055Smrgint i; 77716758a055Smrg_ACEOF 77726758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 77736758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 77746758a055Smrgelse 77756758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 77766758a055Smrgfi 77776758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 77786758a055Smrgfi 77796758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 77806758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 77816758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 77826758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77836758a055Smrgfi 77846758a055Smrg 77856758a055Smrgfound="no" 77866758a055Smrg 77876758a055Smrg if test $found = "no" ; then 77886758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 77896758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77906758a055Smrg fi 77916758a055Smrg 77926758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 77936758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77946758a055Smrg fi 77956758a055Smrg 77966758a055Smrg CFLAGS="$CFLAGS -Werror=write-strings" 77976758a055Smrg 77986758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 77996758a055Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 78006758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 78016758a055Smrg if eval \${$cacheid+:} false; then : 78026758a055Smrg $as_echo_n "(cached) " >&6 78036758a055Smrgelse 78046758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78056758a055Smrg/* end confdefs.h. */ 78066758a055Smrgint i; 78076758a055Smrgint 78086758a055Smrgmain () 78096758a055Smrg{ 78106758a055Smrg 78116758a055Smrg ; 78126758a055Smrg return 0; 78136758a055Smrg} 78146758a055Smrg_ACEOF 78156758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 78166758a055Smrg eval $cacheid=yes 78176758a055Smrgelse 78186758a055Smrg eval $cacheid=no 78196758a055Smrgfi 78206758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 78216758a055Smrg conftest$ac_exeext conftest.$ac_ext 78226758a055Smrgfi 78236758a055Smrg 78246758a055Smrg 78256758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78266758a055Smrg 78276758a055Smrg eval supported=\$$cacheid 78286758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 78296758a055Smrg$as_echo "$supported" >&6; } 78306758a055Smrg if test "$supported" = "yes" ; then 78316758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 78326758a055Smrg found="yes" 78336758a055Smrg fi 78346758a055Smrg fi 78356758a055Smrg 78366758a055Smrg 78376758a055Smrg 78386758a055Smrg 78396758a055Smrg 78406758a055Smrg 78416758a055Smrg 78426758a055Smrg 78436758a055Smrg 78446758a055Smrg 78456758a055Smrg 78466758a055Smrg 78476758a055Smrg 78486758a055Smrg 78496758a055Smrg 78506758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 78516758a055Smrg 78526758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 78536758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78546758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 78556758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 78566758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 78576758a055Smrg $as_echo_n "(cached) " >&6 78586758a055Smrgelse 78596758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78606758a055Smrg/* end confdefs.h. */ 78616758a055Smrgint i; 78626758a055Smrg_ACEOF 78636758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 78646758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 78656758a055Smrgelse 78666758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 78676758a055Smrgfi 78686758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 78696758a055Smrgfi 78706758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 78716758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 78726758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 78736758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78746758a055Smrgfi 78756758a055Smrg 78766758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 78776758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 78786758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78796758a055Smrg fi 78806758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78816758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 78826758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 78836758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 78846758a055Smrg $as_echo_n "(cached) " >&6 78856758a055Smrgelse 78866758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78876758a055Smrg/* end confdefs.h. */ 78886758a055Smrgint i; 78896758a055Smrg_ACEOF 78906758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 78916758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 78926758a055Smrgelse 78936758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 78946758a055Smrgfi 78956758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 78966758a055Smrgfi 78976758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 78986758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 78996758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 79006758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79016758a055Smrgfi 79026758a055Smrg 79036758a055Smrgfound="no" 79046758a055Smrg 79056758a055Smrg if test $found = "no" ; then 79066758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 79076758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79086758a055Smrg fi 79096758a055Smrg 79106758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 79116758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79126758a055Smrg fi 79136758a055Smrg 79146758a055Smrg CFLAGS="$CFLAGS -Werror=address" 79156758a055Smrg 79166758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 79176758a055Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 79186758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 79196758a055Smrg if eval \${$cacheid+:} false; then : 79206758a055Smrg $as_echo_n "(cached) " >&6 79216758a055Smrgelse 79226758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79236758a055Smrg/* end confdefs.h. */ 79246758a055Smrgint i; 79256758a055Smrgint 79266758a055Smrgmain () 79276758a055Smrg{ 79286758a055Smrg 79296758a055Smrg ; 79306758a055Smrg return 0; 79316758a055Smrg} 79326758a055Smrg_ACEOF 79336758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 79346758a055Smrg eval $cacheid=yes 79356758a055Smrgelse 79366758a055Smrg eval $cacheid=no 79376758a055Smrgfi 79386758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 79396758a055Smrg conftest$ac_exeext conftest.$ac_ext 79406758a055Smrgfi 79416758a055Smrg 79426758a055Smrg 79436758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79446758a055Smrg 79456758a055Smrg eval supported=\$$cacheid 79466758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 79476758a055Smrg$as_echo "$supported" >&6; } 79486758a055Smrg if test "$supported" = "yes" ; then 79496758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 79506758a055Smrg found="yes" 79516758a055Smrg fi 79526758a055Smrg fi 79536758a055Smrg 79546758a055Smrg 79556758a055Smrg 79566758a055Smrg 79576758a055Smrg 79586758a055Smrg 79596758a055Smrg 79606758a055Smrg 79616758a055Smrg 79626758a055Smrg 79636758a055Smrg 79646758a055Smrg 79656758a055Smrg 79666758a055Smrg 79676758a055Smrg 79686758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 79696758a055Smrg 79706758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 79716758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79726758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 79736758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 79746758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 79756758a055Smrg $as_echo_n "(cached) " >&6 79766758a055Smrgelse 79776758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79786758a055Smrg/* end confdefs.h. */ 79796758a055Smrgint i; 79806758a055Smrg_ACEOF 79816758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 79826758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 79836758a055Smrgelse 79846758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 79856758a055Smrgfi 79866758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 79876758a055Smrgfi 79886758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 79896758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 79906758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 79916758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79926758a055Smrgfi 79936758a055Smrg 79946758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 79956758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 79966758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79976758a055Smrg fi 79986758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79996758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 80006758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 80016758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 80026758a055Smrg $as_echo_n "(cached) " >&6 80036758a055Smrgelse 80046758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80056758a055Smrg/* end confdefs.h. */ 80066758a055Smrgint i; 80076758a055Smrg_ACEOF 80086758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 80096758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 80106758a055Smrgelse 80116758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 80126758a055Smrgfi 80136758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 80146758a055Smrgfi 80156758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 80166758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 80176758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 80186758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80196758a055Smrgfi 80206758a055Smrg 80216758a055Smrgfound="no" 80226758a055Smrg 80236758a055Smrg if test $found = "no" ; then 80246758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 80256758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80266758a055Smrg fi 80276758a055Smrg 80286758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 80296758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80306758a055Smrg fi 80316758a055Smrg 80326758a055Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 80336758a055Smrg 80346758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 80356758a055Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 80366758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 80376758a055Smrg if eval \${$cacheid+:} false; then : 80386758a055Smrg $as_echo_n "(cached) " >&6 80396758a055Smrgelse 80406758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80416758a055Smrg/* end confdefs.h. */ 80426758a055Smrgint i; 80436758a055Smrgint 80446758a055Smrgmain () 80456758a055Smrg{ 80466758a055Smrg 80476758a055Smrg ; 80486758a055Smrg return 0; 80496758a055Smrg} 80506758a055Smrg_ACEOF 80516758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 80526758a055Smrg eval $cacheid=yes 80536758a055Smrgelse 80546758a055Smrg eval $cacheid=no 80556758a055Smrgfi 80566758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 80576758a055Smrg conftest$ac_exeext conftest.$ac_ext 80586758a055Smrgfi 80596758a055Smrg 80606758a055Smrg 80616758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80626758a055Smrg 80636758a055Smrg eval supported=\$$cacheid 80646758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 80656758a055Smrg$as_echo "$supported" >&6; } 80666758a055Smrg if test "$supported" = "yes" ; then 80676758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 80686758a055Smrg found="yes" 80696758a055Smrg fi 80706758a055Smrg fi 80716758a055Smrg 80726758a055Smrg if test $found = "no" ; then 80736758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 80746758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80756758a055Smrg fi 80766758a055Smrg 80776758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 80786758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80796758a055Smrg fi 80806758a055Smrg 80816758a055Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 80826758a055Smrg 80836758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 80846758a055Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 80856758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 80866758a055Smrg if eval \${$cacheid+:} false; then : 80876758a055Smrg $as_echo_n "(cached) " >&6 80886758a055Smrgelse 80896758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80906758a055Smrg/* end confdefs.h. */ 80916758a055Smrgint i; 80926758a055Smrgint 80936758a055Smrgmain () 80946758a055Smrg{ 80956758a055Smrg 80966758a055Smrg ; 80976758a055Smrg return 0; 80986758a055Smrg} 80996758a055Smrg_ACEOF 81006758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 81016758a055Smrg eval $cacheid=yes 81026758a055Smrgelse 81036758a055Smrg eval $cacheid=no 81046758a055Smrgfi 81056758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 81066758a055Smrg conftest$ac_exeext conftest.$ac_ext 81076758a055Smrgfi 81086758a055Smrg 81096758a055Smrg 81106758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81116758a055Smrg 81126758a055Smrg eval supported=\$$cacheid 81136758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 81146758a055Smrg$as_echo "$supported" >&6; } 81156758a055Smrg if test "$supported" = "yes" ; then 81166758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 81176758a055Smrg found="yes" 81186758a055Smrg fi 81196758a055Smrg fi 81206758a055Smrg 81216758a055Smrg 81226758a055Smrg 81236758a055Smrg 81246758a055Smrg 81256758a055Smrg 81266758a055Smrg 81276758a055Smrg 81286758a055Smrg 81296758a055Smrg 81306758a055Smrg 81316758a055Smrg 81326758a055Smrg 81336758a055Smrg 81346758a055Smrg 81356758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 81366758a055Smrg 81376758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 81386758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81396758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 81406758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 81416758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 81426758a055Smrg $as_echo_n "(cached) " >&6 81436758a055Smrgelse 81446758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81456758a055Smrg/* end confdefs.h. */ 81466758a055Smrgint i; 81476758a055Smrg_ACEOF 81486758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 81496758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 81506758a055Smrgelse 81516758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 81526758a055Smrgfi 81536758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 81546758a055Smrgfi 81556758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 81566758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 81576758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 81586758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81596758a055Smrgfi 81606758a055Smrg 81616758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 81626758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 81636758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81646758a055Smrg fi 81656758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81666758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 81676758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 81686758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 81696758a055Smrg $as_echo_n "(cached) " >&6 81706758a055Smrgelse 81716758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81726758a055Smrg/* end confdefs.h. */ 81736758a055Smrgint i; 81746758a055Smrg_ACEOF 81756758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 81766758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 81776758a055Smrgelse 81786758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 81796758a055Smrgfi 81806758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 81816758a055Smrgfi 81826758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 81836758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 81846758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 81856758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81866758a055Smrgfi 81876758a055Smrg 81886758a055Smrgfound="no" 81896758a055Smrg 81906758a055Smrg if test $found = "no" ; then 81916758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 81926758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81936758a055Smrg fi 81946758a055Smrg 81956758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 81966758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81976758a055Smrg fi 81986758a055Smrg 81996758a055Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 82006758a055Smrg 82016758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 82026758a055Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 82036758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 82046758a055Smrg if eval \${$cacheid+:} false; then : 82056758a055Smrg $as_echo_n "(cached) " >&6 82066758a055Smrgelse 82076758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82086758a055Smrg/* end confdefs.h. */ 82096758a055Smrgint i; 82106758a055Smrgint 82116758a055Smrgmain () 82126758a055Smrg{ 82136758a055Smrg 82146758a055Smrg ; 82156758a055Smrg return 0; 82166758a055Smrg} 82176758a055Smrg_ACEOF 82186758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 82196758a055Smrg eval $cacheid=yes 82206758a055Smrgelse 82216758a055Smrg eval $cacheid=no 82226758a055Smrgfi 82236758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 82246758a055Smrg conftest$ac_exeext conftest.$ac_ext 82256758a055Smrgfi 82266758a055Smrg 82276758a055Smrg 82286758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82296758a055Smrg 82306758a055Smrg eval supported=\$$cacheid 82316758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82326758a055Smrg$as_echo "$supported" >&6; } 82336758a055Smrg if test "$supported" = "yes" ; then 82346758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 82356758a055Smrg found="yes" 82366758a055Smrg fi 82376758a055Smrg fi 82386758a055Smrg 82396758a055Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 82406758a055Smrgelse 82416758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 82426758a055Smrg$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 82436758a055Smrg 82446758a055Smrg 82456758a055Smrg 82466758a055Smrg 82476758a055Smrg 82486758a055Smrg 82496758a055Smrg 82506758a055Smrg 82516758a055Smrg 82526758a055Smrg 82536758a055Smrg 82546758a055Smrg 82556758a055Smrg 82566758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 82576758a055Smrg 82586758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 82596758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82606758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 82616758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 82626758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 82636758a055Smrg $as_echo_n "(cached) " >&6 82646758a055Smrgelse 82656758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82666758a055Smrg/* end confdefs.h. */ 82676758a055Smrgint i; 82686758a055Smrg_ACEOF 82696758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 82706758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 82716758a055Smrgelse 82726758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 82736758a055Smrgfi 82746758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 82756758a055Smrgfi 82766758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 82776758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 82786758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 82796758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82806758a055Smrgfi 82816758a055Smrg 82826758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 82836758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 82846758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82856758a055Smrg fi 82866758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82876758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 82886758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 82896758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 82906758a055Smrg $as_echo_n "(cached) " >&6 82916758a055Smrgelse 82926758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82936758a055Smrg/* end confdefs.h. */ 82946758a055Smrgint i; 82956758a055Smrg_ACEOF 82966758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 82976758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 82986758a055Smrgelse 82996758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 83006758a055Smrgfi 83016758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 83026758a055Smrgfi 83036758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 83046758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 83056758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 83066758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83076758a055Smrgfi 83086758a055Smrg 83096758a055Smrgfound="no" 83106758a055Smrg 83116758a055Smrg if test $found = "no" ; then 83126758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 83136758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83146758a055Smrg fi 83156758a055Smrg 83166758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 83176758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83186758a055Smrg fi 83196758a055Smrg 83206758a055Smrg CFLAGS="$CFLAGS -Wimplicit" 83216758a055Smrg 83226758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 83236758a055Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 83246758a055Smrg cacheid=xorg_cv_cc_flag__Wimplicit 83256758a055Smrg if eval \${$cacheid+:} false; then : 83266758a055Smrg $as_echo_n "(cached) " >&6 83276758a055Smrgelse 83286758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83296758a055Smrg/* end confdefs.h. */ 83306758a055Smrgint i; 83316758a055Smrgint 83326758a055Smrgmain () 83336758a055Smrg{ 83346758a055Smrg 83356758a055Smrg ; 83366758a055Smrg return 0; 83376758a055Smrg} 83386758a055Smrg_ACEOF 83396758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 83406758a055Smrg eval $cacheid=yes 83416758a055Smrgelse 83426758a055Smrg eval $cacheid=no 83436758a055Smrgfi 83446758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 83456758a055Smrg conftest$ac_exeext conftest.$ac_ext 83466758a055Smrgfi 83476758a055Smrg 83486758a055Smrg 83496758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83506758a055Smrg 83516758a055Smrg eval supported=\$$cacheid 83526758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 83536758a055Smrg$as_echo "$supported" >&6; } 83546758a055Smrg if test "$supported" = "yes" ; then 83556758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 83566758a055Smrg found="yes" 83576758a055Smrg fi 83586758a055Smrg fi 83596758a055Smrg 83606758a055Smrg 83616758a055Smrg 83626758a055Smrg 83636758a055Smrg 83646758a055Smrg 83656758a055Smrg 83666758a055Smrg 83676758a055Smrg 83686758a055Smrg 83696758a055Smrg 83706758a055Smrg 83716758a055Smrg 83726758a055Smrg 83736758a055Smrg 83746758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 83756758a055Smrg 83766758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 83776758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83786758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 83796758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 83806758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 83816758a055Smrg $as_echo_n "(cached) " >&6 83826758a055Smrgelse 83836758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83846758a055Smrg/* end confdefs.h. */ 83856758a055Smrgint i; 83866758a055Smrg_ACEOF 83876758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 83886758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 83896758a055Smrgelse 83906758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 83916758a055Smrgfi 83926758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 83936758a055Smrgfi 83946758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 83956758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 83966758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 83976758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83986758a055Smrgfi 83996758a055Smrg 84006758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 84016758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 84026758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84036758a055Smrg fi 84046758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84056758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 84066758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 84076758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 84086758a055Smrg $as_echo_n "(cached) " >&6 84096758a055Smrgelse 84106758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84116758a055Smrg/* end confdefs.h. */ 84126758a055Smrgint i; 84136758a055Smrg_ACEOF 84146758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 84156758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 84166758a055Smrgelse 84176758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 84186758a055Smrgfi 84196758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 84206758a055Smrgfi 84216758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 84226758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 84236758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 84246758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 84256758a055Smrgfi 84266758a055Smrg 84276758a055Smrgfound="no" 84286758a055Smrg 84296758a055Smrg if test $found = "no" ; then 84306758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 84316758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84326758a055Smrg fi 84336758a055Smrg 84346758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 84356758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84366758a055Smrg fi 84376758a055Smrg 84386758a055Smrg CFLAGS="$CFLAGS -Wnonnull" 84396758a055Smrg 84406758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 84416758a055Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 84426758a055Smrg cacheid=xorg_cv_cc_flag__Wnonnull 84436758a055Smrg if eval \${$cacheid+:} false; then : 84446758a055Smrg $as_echo_n "(cached) " >&6 84456758a055Smrgelse 84466758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84476758a055Smrg/* end confdefs.h. */ 84486758a055Smrgint i; 84496758a055Smrgint 84506758a055Smrgmain () 84516758a055Smrg{ 84526758a055Smrg 84536758a055Smrg ; 84546758a055Smrg return 0; 84556758a055Smrg} 84566758a055Smrg_ACEOF 84576758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 84586758a055Smrg eval $cacheid=yes 84596758a055Smrgelse 84606758a055Smrg eval $cacheid=no 84616758a055Smrgfi 84626758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 84636758a055Smrg conftest$ac_exeext conftest.$ac_ext 84646758a055Smrgfi 84656758a055Smrg 84666758a055Smrg 84676758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 84686758a055Smrg 84696758a055Smrg eval supported=\$$cacheid 84706758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 84716758a055Smrg$as_echo "$supported" >&6; } 84726758a055Smrg if test "$supported" = "yes" ; then 84736758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 84746758a055Smrg found="yes" 84756758a055Smrg fi 84766758a055Smrg fi 84776758a055Smrg 84786758a055Smrg 84796758a055Smrg 84806758a055Smrg 84816758a055Smrg 84826758a055Smrg 84836758a055Smrg 84846758a055Smrg 84856758a055Smrg 84866758a055Smrg 84876758a055Smrg 84886758a055Smrg 84896758a055Smrg 84906758a055Smrg 84916758a055Smrg 84926758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 84936758a055Smrg 84946758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 84956758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84966758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 84976758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 84986758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 84996758a055Smrg $as_echo_n "(cached) " >&6 85006758a055Smrgelse 85016758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85026758a055Smrg/* end confdefs.h. */ 85036758a055Smrgint i; 85046758a055Smrg_ACEOF 85056758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 85066758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 85076758a055Smrgelse 85086758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 85096758a055Smrgfi 85106758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 85116758a055Smrgfi 85126758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 85136758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 85146758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 85156758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85166758a055Smrgfi 85176758a055Smrg 85186758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 85196758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 85206758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85216758a055Smrg fi 85226758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85236758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 85246758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 85256758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 85266758a055Smrg $as_echo_n "(cached) " >&6 85276758a055Smrgelse 85286758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85296758a055Smrg/* end confdefs.h. */ 85306758a055Smrgint i; 85316758a055Smrg_ACEOF 85326758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 85336758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 85346758a055Smrgelse 85356758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 85366758a055Smrgfi 85376758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 85386758a055Smrgfi 85396758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 85406758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 85416758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 85426758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85436758a055Smrgfi 85446758a055Smrg 85456758a055Smrgfound="no" 85466758a055Smrg 85476758a055Smrg if test $found = "no" ; then 85486758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 85496758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85506758a055Smrg fi 85516758a055Smrg 85526758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 85536758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85546758a055Smrg fi 85556758a055Smrg 85566758a055Smrg CFLAGS="$CFLAGS -Winit-self" 85576758a055Smrg 85586758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 85596758a055Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 85606758a055Smrg cacheid=xorg_cv_cc_flag__Winit_self 85616758a055Smrg if eval \${$cacheid+:} false; then : 85626758a055Smrg $as_echo_n "(cached) " >&6 85636758a055Smrgelse 85646758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85656758a055Smrg/* end confdefs.h. */ 85666758a055Smrgint i; 85676758a055Smrgint 85686758a055Smrgmain () 85696758a055Smrg{ 85706758a055Smrg 85716758a055Smrg ; 85726758a055Smrg return 0; 85736758a055Smrg} 85746758a055Smrg_ACEOF 85756758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 85766758a055Smrg eval $cacheid=yes 85776758a055Smrgelse 85786758a055Smrg eval $cacheid=no 85796758a055Smrgfi 85806758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 85816758a055Smrg conftest$ac_exeext conftest.$ac_ext 85826758a055Smrgfi 85836758a055Smrg 85846758a055Smrg 85856758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85866758a055Smrg 85876758a055Smrg eval supported=\$$cacheid 85886758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 85896758a055Smrg$as_echo "$supported" >&6; } 85906758a055Smrg if test "$supported" = "yes" ; then 85916758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 85926758a055Smrg found="yes" 85936758a055Smrg fi 85946758a055Smrg fi 85956758a055Smrg 85966758a055Smrg 85976758a055Smrg 85986758a055Smrg 85996758a055Smrg 86006758a055Smrg 86016758a055Smrg 86026758a055Smrg 86036758a055Smrg 86046758a055Smrg 86056758a055Smrg 86066758a055Smrg 86076758a055Smrg 86086758a055Smrg 86096758a055Smrg 86106758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 86116758a055Smrg 86126758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 86136758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86146758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 86156758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 86166758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 86176758a055Smrg $as_echo_n "(cached) " >&6 86186758a055Smrgelse 86196758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86206758a055Smrg/* end confdefs.h. */ 86216758a055Smrgint i; 86226758a055Smrg_ACEOF 86236758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 86246758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 86256758a055Smrgelse 86266758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 86276758a055Smrgfi 86286758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 86296758a055Smrgfi 86306758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 86316758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 86326758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 86336758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86346758a055Smrgfi 86356758a055Smrg 86366758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 86376758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 86386758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86396758a055Smrg fi 86406758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86416758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 86426758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 86436758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 86446758a055Smrg $as_echo_n "(cached) " >&6 86456758a055Smrgelse 86466758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86476758a055Smrg/* end confdefs.h. */ 86486758a055Smrgint i; 86496758a055Smrg_ACEOF 86506758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 86516758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 86526758a055Smrgelse 86536758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 86546758a055Smrgfi 86556758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 86566758a055Smrgfi 86576758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 86586758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 86596758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 86606758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86616758a055Smrgfi 86626758a055Smrg 86636758a055Smrgfound="no" 86646758a055Smrg 86656758a055Smrg if test $found = "no" ; then 86666758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 86676758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86686758a055Smrg fi 86696758a055Smrg 86706758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 86716758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86726758a055Smrg fi 86736758a055Smrg 86746758a055Smrg CFLAGS="$CFLAGS -Wmain" 86756758a055Smrg 86766758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 86776758a055Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; } 86786758a055Smrg cacheid=xorg_cv_cc_flag__Wmain 86796758a055Smrg if eval \${$cacheid+:} false; then : 86806758a055Smrg $as_echo_n "(cached) " >&6 86816758a055Smrgelse 86826758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86836758a055Smrg/* end confdefs.h. */ 86846758a055Smrgint i; 86856758a055Smrgint 86866758a055Smrgmain () 86876758a055Smrg{ 86886758a055Smrg 86896758a055Smrg ; 86906758a055Smrg return 0; 86916758a055Smrg} 86926758a055Smrg_ACEOF 86936758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 86946758a055Smrg eval $cacheid=yes 86956758a055Smrgelse 86966758a055Smrg eval $cacheid=no 86976758a055Smrgfi 86986758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 86996758a055Smrg conftest$ac_exeext conftest.$ac_ext 87006758a055Smrgfi 87016758a055Smrg 87026758a055Smrg 87036758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 87046758a055Smrg 87056758a055Smrg eval supported=\$$cacheid 87066758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 87076758a055Smrg$as_echo "$supported" >&6; } 87086758a055Smrg if test "$supported" = "yes" ; then 87096758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 87106758a055Smrg found="yes" 87116758a055Smrg fi 87126758a055Smrg fi 87136758a055Smrg 87146758a055Smrg 87156758a055Smrg 87166758a055Smrg 87176758a055Smrg 87186758a055Smrg 87196758a055Smrg 87206758a055Smrg 87216758a055Smrg 87226758a055Smrg 87236758a055Smrg 87246758a055Smrg 87256758a055Smrg 87266758a055Smrg 87276758a055Smrg 87286758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 87296758a055Smrg 87306758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 87316758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87326758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 87336758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 87346758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 87356758a055Smrg $as_echo_n "(cached) " >&6 87366758a055Smrgelse 87376758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87386758a055Smrg/* end confdefs.h. */ 87396758a055Smrgint i; 87406758a055Smrg_ACEOF 87416758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 87426758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 87436758a055Smrgelse 87446758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 87456758a055Smrgfi 87466758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 87476758a055Smrgfi 87486758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 87496758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 87506758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 87516758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 87526758a055Smrgfi 87536758a055Smrg 87546758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 87556758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 87566758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87576758a055Smrg fi 87586758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87596758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 87606758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 87616758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 87626758a055Smrg $as_echo_n "(cached) " >&6 87636758a055Smrgelse 87646758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87656758a055Smrg/* end confdefs.h. */ 87666758a055Smrgint i; 87676758a055Smrg_ACEOF 87686758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 87696758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 87706758a055Smrgelse 87716758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 87726758a055Smrgfi 87736758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 87746758a055Smrgfi 87756758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 87766758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 87776758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 87786758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 87796758a055Smrgfi 87806758a055Smrg 87816758a055Smrgfound="no" 87826758a055Smrg 87836758a055Smrg if test $found = "no" ; then 87846758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 87856758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87866758a055Smrg fi 87876758a055Smrg 87886758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 87896758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87906758a055Smrg fi 87916758a055Smrg 87926758a055Smrg CFLAGS="$CFLAGS -Wmissing-braces" 87936758a055Smrg 87946758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 87956758a055Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 87966758a055Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 87976758a055Smrg if eval \${$cacheid+:} false; then : 87986758a055Smrg $as_echo_n "(cached) " >&6 87996758a055Smrgelse 88006758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88016758a055Smrg/* end confdefs.h. */ 88026758a055Smrgint i; 88036758a055Smrgint 88046758a055Smrgmain () 88056758a055Smrg{ 88066758a055Smrg 88076758a055Smrg ; 88086758a055Smrg return 0; 88096758a055Smrg} 88106758a055Smrg_ACEOF 88116758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 88126758a055Smrg eval $cacheid=yes 88136758a055Smrgelse 88146758a055Smrg eval $cacheid=no 88156758a055Smrgfi 88166758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 88176758a055Smrg conftest$ac_exeext conftest.$ac_ext 88186758a055Smrgfi 88196758a055Smrg 88206758a055Smrg 88216758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88226758a055Smrg 88236758a055Smrg eval supported=\$$cacheid 88246758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88256758a055Smrg$as_echo "$supported" >&6; } 88266758a055Smrg if test "$supported" = "yes" ; then 88276758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 88286758a055Smrg found="yes" 88296758a055Smrg fi 88306758a055Smrg fi 88316758a055Smrg 88326758a055Smrg 88336758a055Smrg 88346758a055Smrg 88356758a055Smrg 88366758a055Smrg 88376758a055Smrg 88386758a055Smrg 88396758a055Smrg 88406758a055Smrg 88416758a055Smrg 88426758a055Smrg 88436758a055Smrg 88446758a055Smrg 88456758a055Smrg 88466758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 88476758a055Smrg 88486758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 88496758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88506758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 88516758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 88526758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 88536758a055Smrg $as_echo_n "(cached) " >&6 88546758a055Smrgelse 88556758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88566758a055Smrg/* end confdefs.h. */ 88576758a055Smrgint i; 88586758a055Smrg_ACEOF 88596758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 88606758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 88616758a055Smrgelse 88626758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 88636758a055Smrgfi 88646758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 88656758a055Smrgfi 88666758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 88676758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 88686758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 88696758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88706758a055Smrgfi 88716758a055Smrg 88726758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 88736758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 88746758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88756758a055Smrg fi 88766758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88776758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 88786758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 88796758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 88806758a055Smrg $as_echo_n "(cached) " >&6 88816758a055Smrgelse 88826758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88836758a055Smrg/* end confdefs.h. */ 88846758a055Smrgint i; 88856758a055Smrg_ACEOF 88866758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 88876758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 88886758a055Smrgelse 88896758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 88906758a055Smrgfi 88916758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 88926758a055Smrgfi 88936758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 88946758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 88956758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 88966758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88976758a055Smrgfi 88986758a055Smrg 88996758a055Smrgfound="no" 89006758a055Smrg 89016758a055Smrg if test $found = "no" ; then 89026758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 89036758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89046758a055Smrg fi 89056758a055Smrg 89066758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 89076758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89086758a055Smrg fi 89096758a055Smrg 89106758a055Smrg CFLAGS="$CFLAGS -Wsequence-point" 89116758a055Smrg 89126758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 89136758a055Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 89146758a055Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 89156758a055Smrg if eval \${$cacheid+:} false; then : 89166758a055Smrg $as_echo_n "(cached) " >&6 89176758a055Smrgelse 89186758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89196758a055Smrg/* end confdefs.h. */ 89206758a055Smrgint i; 89216758a055Smrgint 89226758a055Smrgmain () 89236758a055Smrg{ 89246758a055Smrg 89256758a055Smrg ; 89266758a055Smrg return 0; 89276758a055Smrg} 89286758a055Smrg_ACEOF 89296758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 89306758a055Smrg eval $cacheid=yes 89316758a055Smrgelse 89326758a055Smrg eval $cacheid=no 89336758a055Smrgfi 89346758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 89356758a055Smrg conftest$ac_exeext conftest.$ac_ext 89366758a055Smrgfi 89376758a055Smrg 89386758a055Smrg 89396758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89406758a055Smrg 89416758a055Smrg eval supported=\$$cacheid 89426758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 89436758a055Smrg$as_echo "$supported" >&6; } 89446758a055Smrg if test "$supported" = "yes" ; then 89456758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 89466758a055Smrg found="yes" 89476758a055Smrg fi 89486758a055Smrg fi 89496758a055Smrg 89506758a055Smrg 89516758a055Smrg 89526758a055Smrg 89536758a055Smrg 89546758a055Smrg 89556758a055Smrg 89566758a055Smrg 89576758a055Smrg 89586758a055Smrg 89596758a055Smrg 89606758a055Smrg 89616758a055Smrg 89626758a055Smrg 89636758a055Smrg 89646758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 89656758a055Smrg 89666758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 89676758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89686758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 89696758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 89706758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 89716758a055Smrg $as_echo_n "(cached) " >&6 89726758a055Smrgelse 89736758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89746758a055Smrg/* end confdefs.h. */ 89756758a055Smrgint i; 89766758a055Smrg_ACEOF 89776758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 89786758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 89796758a055Smrgelse 89806758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 89816758a055Smrgfi 89826758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 89836758a055Smrgfi 89846758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 89856758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 89866758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 89876758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89886758a055Smrgfi 89896758a055Smrg 89906758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 89916758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 89926758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89936758a055Smrg fi 89946758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89956758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 89966758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 89976758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 89986758a055Smrg $as_echo_n "(cached) " >&6 89996758a055Smrgelse 90006758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90016758a055Smrg/* end confdefs.h. */ 90026758a055Smrgint i; 90036758a055Smrg_ACEOF 90046758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 90056758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 90066758a055Smrgelse 90076758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 90086758a055Smrgfi 90096758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 90106758a055Smrgfi 90116758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 90126758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 90136758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 90146758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90156758a055Smrgfi 90166758a055Smrg 90176758a055Smrgfound="no" 90186758a055Smrg 90196758a055Smrg if test $found = "no" ; then 90206758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 90216758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90226758a055Smrg fi 90236758a055Smrg 90246758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 90256758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90266758a055Smrg fi 90276758a055Smrg 90286758a055Smrg CFLAGS="$CFLAGS -Wreturn-type" 90296758a055Smrg 90306758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 90316758a055Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 90326758a055Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 90336758a055Smrg if eval \${$cacheid+:} false; then : 90346758a055Smrg $as_echo_n "(cached) " >&6 90356758a055Smrgelse 90366758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90376758a055Smrg/* end confdefs.h. */ 90386758a055Smrgint i; 90396758a055Smrgint 90406758a055Smrgmain () 90416758a055Smrg{ 90426758a055Smrg 90436758a055Smrg ; 90446758a055Smrg return 0; 90456758a055Smrg} 90466758a055Smrg_ACEOF 90476758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 90486758a055Smrg eval $cacheid=yes 90496758a055Smrgelse 90506758a055Smrg eval $cacheid=no 90516758a055Smrgfi 90526758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 90536758a055Smrg conftest$ac_exeext conftest.$ac_ext 90546758a055Smrgfi 90556758a055Smrg 90566758a055Smrg 90576758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90586758a055Smrg 90596758a055Smrg eval supported=\$$cacheid 90606758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 90616758a055Smrg$as_echo "$supported" >&6; } 90626758a055Smrg if test "$supported" = "yes" ; then 90636758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 90646758a055Smrg found="yes" 90656758a055Smrg fi 90666758a055Smrg fi 90676758a055Smrg 90686758a055Smrg 90696758a055Smrg 90706758a055Smrg 90716758a055Smrg 90726758a055Smrg 90736758a055Smrg 90746758a055Smrg 90756758a055Smrg 90766758a055Smrg 90776758a055Smrg 90786758a055Smrg 90796758a055Smrg 90806758a055Smrg 90816758a055Smrg 90826758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 90836758a055Smrg 90846758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 90856758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90866758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 90876758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 90886758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 90896758a055Smrg $as_echo_n "(cached) " >&6 90906758a055Smrgelse 90916758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90926758a055Smrg/* end confdefs.h. */ 90936758a055Smrgint i; 90946758a055Smrg_ACEOF 90956758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 90966758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 90976758a055Smrgelse 90986758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 90996758a055Smrgfi 91006758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 91016758a055Smrgfi 91026758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 91036758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 91046758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 91056758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91066758a055Smrgfi 91076758a055Smrg 91086758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 91096758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 91106758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91116758a055Smrg fi 91126758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91136758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 91146758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 91156758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 91166758a055Smrg $as_echo_n "(cached) " >&6 91176758a055Smrgelse 91186758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91196758a055Smrg/* end confdefs.h. */ 91206758a055Smrgint i; 91216758a055Smrg_ACEOF 91226758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 91236758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 91246758a055Smrgelse 91256758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 91266758a055Smrgfi 91276758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 91286758a055Smrgfi 91296758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 91306758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 91316758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 91326758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91336758a055Smrgfi 91346758a055Smrg 91356758a055Smrgfound="no" 91366758a055Smrg 91376758a055Smrg if test $found = "no" ; then 91386758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 91396758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91406758a055Smrg fi 91416758a055Smrg 91426758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 91436758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91446758a055Smrg fi 91456758a055Smrg 91466758a055Smrg CFLAGS="$CFLAGS -Wtrigraphs" 91476758a055Smrg 91486758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 91496758a055Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 91506758a055Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 91516758a055Smrg if eval \${$cacheid+:} false; then : 91526758a055Smrg $as_echo_n "(cached) " >&6 91536758a055Smrgelse 91546758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91556758a055Smrg/* end confdefs.h. */ 91566758a055Smrgint i; 91576758a055Smrgint 91586758a055Smrgmain () 91596758a055Smrg{ 91606758a055Smrg 91616758a055Smrg ; 91626758a055Smrg return 0; 91636758a055Smrg} 91646758a055Smrg_ACEOF 91656758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 91666758a055Smrg eval $cacheid=yes 91676758a055Smrgelse 91686758a055Smrg eval $cacheid=no 91696758a055Smrgfi 91706758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 91716758a055Smrg conftest$ac_exeext conftest.$ac_ext 91726758a055Smrgfi 91736758a055Smrg 91746758a055Smrg 91756758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91766758a055Smrg 91776758a055Smrg eval supported=\$$cacheid 91786758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 91796758a055Smrg$as_echo "$supported" >&6; } 91806758a055Smrg if test "$supported" = "yes" ; then 91816758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 91826758a055Smrg found="yes" 91836758a055Smrg fi 91846758a055Smrg fi 91856758a055Smrg 91866758a055Smrg 91876758a055Smrg 91886758a055Smrg 91896758a055Smrg 91906758a055Smrg 91916758a055Smrg 91926758a055Smrg 91936758a055Smrg 91946758a055Smrg 91956758a055Smrg 91966758a055Smrg 91976758a055Smrg 91986758a055Smrg 91996758a055Smrg 92006758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 92016758a055Smrg 92026758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 92036758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92046758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 92056758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 92066758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 92076758a055Smrg $as_echo_n "(cached) " >&6 92086758a055Smrgelse 92096758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92106758a055Smrg/* end confdefs.h. */ 92116758a055Smrgint i; 92126758a055Smrg_ACEOF 92136758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 92146758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 92156758a055Smrgelse 92166758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 92176758a055Smrgfi 92186758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 92196758a055Smrgfi 92206758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 92216758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 92226758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 92236758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92246758a055Smrgfi 92256758a055Smrg 92266758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 92276758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 92286758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92296758a055Smrg fi 92306758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92316758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 92326758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 92336758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 92346758a055Smrg $as_echo_n "(cached) " >&6 92356758a055Smrgelse 92366758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92376758a055Smrg/* end confdefs.h. */ 92386758a055Smrgint i; 92396758a055Smrg_ACEOF 92406758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 92416758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 92426758a055Smrgelse 92436758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 92446758a055Smrgfi 92456758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 92466758a055Smrgfi 92476758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 92486758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 92496758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 92506758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92516758a055Smrgfi 92526758a055Smrg 92536758a055Smrgfound="no" 92546758a055Smrg 92556758a055Smrg if test $found = "no" ; then 92566758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 92576758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92586758a055Smrg fi 92596758a055Smrg 92606758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 92616758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92626758a055Smrg fi 92636758a055Smrg 92646758a055Smrg CFLAGS="$CFLAGS -Warray-bounds" 92656758a055Smrg 92666758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 92676758a055Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 92686758a055Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 92696758a055Smrg if eval \${$cacheid+:} false; then : 92706758a055Smrg $as_echo_n "(cached) " >&6 92716758a055Smrgelse 92726758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92736758a055Smrg/* end confdefs.h. */ 92746758a055Smrgint i; 92756758a055Smrgint 92766758a055Smrgmain () 92776758a055Smrg{ 92786758a055Smrg 92796758a055Smrg ; 92806758a055Smrg return 0; 92816758a055Smrg} 92826758a055Smrg_ACEOF 92836758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 92846758a055Smrg eval $cacheid=yes 92856758a055Smrgelse 92866758a055Smrg eval $cacheid=no 92876758a055Smrgfi 92886758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 92896758a055Smrg conftest$ac_exeext conftest.$ac_ext 92906758a055Smrgfi 92916758a055Smrg 92926758a055Smrg 92936758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92946758a055Smrg 92956758a055Smrg eval supported=\$$cacheid 92966758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 92976758a055Smrg$as_echo "$supported" >&6; } 92986758a055Smrg if test "$supported" = "yes" ; then 92996758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 93006758a055Smrg found="yes" 93016758a055Smrg fi 93026758a055Smrg fi 93036758a055Smrg 93046758a055Smrg 93056758a055Smrg 93066758a055Smrg 93076758a055Smrg 93086758a055Smrg 93096758a055Smrg 93106758a055Smrg 93116758a055Smrg 93126758a055Smrg 93136758a055Smrg 93146758a055Smrg 93156758a055Smrg 93166758a055Smrg 93176758a055Smrg 93186758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 93196758a055Smrg 93206758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 93216758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93226758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 93236758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 93246758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 93256758a055Smrg $as_echo_n "(cached) " >&6 93266758a055Smrgelse 93276758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93286758a055Smrg/* end confdefs.h. */ 93296758a055Smrgint i; 93306758a055Smrg_ACEOF 93316758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 93326758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 93336758a055Smrgelse 93346758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 93356758a055Smrgfi 93366758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 93376758a055Smrgfi 93386758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 93396758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 93406758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 93416758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93426758a055Smrgfi 93436758a055Smrg 93446758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 93456758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 93466758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93476758a055Smrg fi 93486758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93496758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 93506758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 93516758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 93526758a055Smrg $as_echo_n "(cached) " >&6 93536758a055Smrgelse 93546758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93556758a055Smrg/* end confdefs.h. */ 93566758a055Smrgint i; 93576758a055Smrg_ACEOF 93586758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 93596758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 93606758a055Smrgelse 93616758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 93626758a055Smrgfi 93636758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 93646758a055Smrgfi 93656758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 93666758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 93676758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 93686758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93696758a055Smrgfi 93706758a055Smrg 93716758a055Smrgfound="no" 93726758a055Smrg 93736758a055Smrg if test $found = "no" ; then 93746758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 93756758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93766758a055Smrg fi 93776758a055Smrg 93786758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 93796758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93806758a055Smrg fi 93816758a055Smrg 93826758a055Smrg CFLAGS="$CFLAGS -Wwrite-strings" 93836758a055Smrg 93846758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 93856758a055Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 93866758a055Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 93876758a055Smrg if eval \${$cacheid+:} false; then : 93886758a055Smrg $as_echo_n "(cached) " >&6 93896758a055Smrgelse 93906758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93916758a055Smrg/* end confdefs.h. */ 93926758a055Smrgint i; 93936758a055Smrgint 93946758a055Smrgmain () 93956758a055Smrg{ 93966758a055Smrg 93976758a055Smrg ; 93986758a055Smrg return 0; 93996758a055Smrg} 94006758a055Smrg_ACEOF 94016758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 94026758a055Smrg eval $cacheid=yes 94036758a055Smrgelse 94046758a055Smrg eval $cacheid=no 94056758a055Smrgfi 94066758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 94076758a055Smrg conftest$ac_exeext conftest.$ac_ext 94086758a055Smrgfi 94096758a055Smrg 94106758a055Smrg 94116758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94126758a055Smrg 94136758a055Smrg eval supported=\$$cacheid 94146758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 94156758a055Smrg$as_echo "$supported" >&6; } 94166758a055Smrg if test "$supported" = "yes" ; then 94176758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 94186758a055Smrg found="yes" 94196758a055Smrg fi 94206758a055Smrg fi 94216758a055Smrg 94226758a055Smrg 94236758a055Smrg 94246758a055Smrg 94256758a055Smrg 94266758a055Smrg 94276758a055Smrg 94286758a055Smrg 94296758a055Smrg 94306758a055Smrg 94316758a055Smrg 94326758a055Smrg 94336758a055Smrg 94346758a055Smrg 94356758a055Smrg 94366758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 94376758a055Smrg 94386758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 94396758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94406758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 94416758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 94426758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 94436758a055Smrg $as_echo_n "(cached) " >&6 94446758a055Smrgelse 94456758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94466758a055Smrg/* end confdefs.h. */ 94476758a055Smrgint i; 94486758a055Smrg_ACEOF 94496758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 94506758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 94516758a055Smrgelse 94526758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 94536758a055Smrgfi 94546758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 94556758a055Smrgfi 94566758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 94576758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 94586758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 94596758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94606758a055Smrgfi 94616758a055Smrg 94626758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 94636758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 94646758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94656758a055Smrg fi 94666758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94676758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 94686758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 94696758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 94706758a055Smrg $as_echo_n "(cached) " >&6 94716758a055Smrgelse 94726758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94736758a055Smrg/* end confdefs.h. */ 94746758a055Smrgint i; 94756758a055Smrg_ACEOF 94766758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 94776758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 94786758a055Smrgelse 94796758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 94806758a055Smrgfi 94816758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 94826758a055Smrgfi 94836758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 94846758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 94856758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 94866758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94876758a055Smrgfi 94886758a055Smrg 94896758a055Smrgfound="no" 94906758a055Smrg 94916758a055Smrg if test $found = "no" ; then 94926758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 94936758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94946758a055Smrg fi 94956758a055Smrg 94966758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 94976758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94986758a055Smrg fi 94996758a055Smrg 95006758a055Smrg CFLAGS="$CFLAGS -Waddress" 95016758a055Smrg 95026758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 95036758a055Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; } 95046758a055Smrg cacheid=xorg_cv_cc_flag__Waddress 95056758a055Smrg if eval \${$cacheid+:} false; then : 95066758a055Smrg $as_echo_n "(cached) " >&6 95076758a055Smrgelse 95086758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95096758a055Smrg/* end confdefs.h. */ 95106758a055Smrgint i; 95116758a055Smrgint 95126758a055Smrgmain () 95136758a055Smrg{ 95146758a055Smrg 95156758a055Smrg ; 95166758a055Smrg return 0; 95176758a055Smrg} 95186758a055Smrg_ACEOF 95196758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 95206758a055Smrg eval $cacheid=yes 95216758a055Smrgelse 95226758a055Smrg eval $cacheid=no 95236758a055Smrgfi 95246758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 95256758a055Smrg conftest$ac_exeext conftest.$ac_ext 95266758a055Smrgfi 95276758a055Smrg 95286758a055Smrg 95296758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95306758a055Smrg 95316758a055Smrg eval supported=\$$cacheid 95326758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 95336758a055Smrg$as_echo "$supported" >&6; } 95346758a055Smrg if test "$supported" = "yes" ; then 95356758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 95366758a055Smrg found="yes" 95376758a055Smrg fi 95386758a055Smrg fi 95396758a055Smrg 95406758a055Smrg 95416758a055Smrg 95426758a055Smrg 95436758a055Smrg 95446758a055Smrg 95456758a055Smrg 95466758a055Smrg 95476758a055Smrg 95486758a055Smrg 95496758a055Smrg 95506758a055Smrg 95516758a055Smrg 95526758a055Smrg 95536758a055Smrg 95546758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 95556758a055Smrg 95566758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 95576758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95586758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 95596758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 95606758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 95616758a055Smrg $as_echo_n "(cached) " >&6 95626758a055Smrgelse 95636758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95646758a055Smrg/* end confdefs.h. */ 95656758a055Smrgint i; 95666758a055Smrg_ACEOF 95676758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 95686758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 95696758a055Smrgelse 95706758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 95716758a055Smrgfi 95726758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 95736758a055Smrgfi 95746758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 95756758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 95766758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 95776758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95786758a055Smrgfi 95796758a055Smrg 95806758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 95816758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 95826758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95836758a055Smrg fi 95846758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95856758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 95866758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 95876758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 95886758a055Smrg $as_echo_n "(cached) " >&6 95896758a055Smrgelse 95906758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95916758a055Smrg/* end confdefs.h. */ 95926758a055Smrgint i; 95936758a055Smrg_ACEOF 95946758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 95956758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 95966758a055Smrgelse 95976758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 95986758a055Smrgfi 95996758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 96006758a055Smrgfi 96016758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 96026758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 96036758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 96046758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96056758a055Smrgfi 96066758a055Smrg 96076758a055Smrgfound="no" 96086758a055Smrg 96096758a055Smrg if test $found = "no" ; then 96106758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 96116758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96126758a055Smrg fi 96136758a055Smrg 96146758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 96156758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96166758a055Smrg fi 96176758a055Smrg 96186758a055Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 96196758a055Smrg 96206758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 96216758a055Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 96226758a055Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 96236758a055Smrg if eval \${$cacheid+:} false; then : 96246758a055Smrg $as_echo_n "(cached) " >&6 96256758a055Smrgelse 96266758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96276758a055Smrg/* end confdefs.h. */ 96286758a055Smrgint i; 96296758a055Smrgint 96306758a055Smrgmain () 96316758a055Smrg{ 96326758a055Smrg 96336758a055Smrg ; 96346758a055Smrg return 0; 96356758a055Smrg} 96366758a055Smrg_ACEOF 96376758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 96386758a055Smrg eval $cacheid=yes 96396758a055Smrgelse 96406758a055Smrg eval $cacheid=no 96416758a055Smrgfi 96426758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 96436758a055Smrg conftest$ac_exeext conftest.$ac_ext 96446758a055Smrgfi 96456758a055Smrg 96466758a055Smrg 96476758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96486758a055Smrg 96496758a055Smrg eval supported=\$$cacheid 96506758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 96516758a055Smrg$as_echo "$supported" >&6; } 96526758a055Smrg if test "$supported" = "yes" ; then 96536758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 96546758a055Smrg found="yes" 96556758a055Smrg fi 96566758a055Smrg fi 96576758a055Smrg 96586758a055Smrg 96596758a055Smrg 96606758a055Smrg 96616758a055Smrg 96626758a055Smrg 96636758a055Smrg 96646758a055Smrg 96656758a055Smrg 96666758a055Smrg 96676758a055Smrg 96686758a055Smrg 96696758a055Smrg 96706758a055Smrg 96716758a055Smrg 96726758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 96736758a055Smrg 96746758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 96756758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96766758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 96776758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 96786758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 96796758a055Smrg $as_echo_n "(cached) " >&6 96806758a055Smrgelse 96816758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96826758a055Smrg/* end confdefs.h. */ 96836758a055Smrgint i; 96846758a055Smrg_ACEOF 96856758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 96866758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 96876758a055Smrgelse 96886758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 96896758a055Smrgfi 96906758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 96916758a055Smrgfi 96926758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 96936758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 96946758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 96956758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96966758a055Smrgfi 96976758a055Smrg 96986758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 96996758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 97006758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97016758a055Smrg fi 97026758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97036758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 97046758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 97056758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 97066758a055Smrg $as_echo_n "(cached) " >&6 97076758a055Smrgelse 97086758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97096758a055Smrg/* end confdefs.h. */ 97106758a055Smrgint i; 97116758a055Smrg_ACEOF 97126758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 97136758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 97146758a055Smrgelse 97156758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 97166758a055Smrgfi 97176758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97186758a055Smrgfi 97196758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 97206758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 97216758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 97226758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 97236758a055Smrgfi 97246758a055Smrg 97256758a055Smrgfound="no" 97266758a055Smrg 97276758a055Smrg if test $found = "no" ; then 97286758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 97296758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97306758a055Smrg fi 97316758a055Smrg 97326758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 97336758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97346758a055Smrg fi 97356758a055Smrg 97366758a055Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 97376758a055Smrg 97386758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 97396758a055Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 97406758a055Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 97416758a055Smrg if eval \${$cacheid+:} false; then : 97426758a055Smrg $as_echo_n "(cached) " >&6 97436758a055Smrgelse 97446758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97456758a055Smrg/* end confdefs.h. */ 97466758a055Smrgint i; 97476758a055Smrgint 97486758a055Smrgmain () 97496758a055Smrg{ 97506758a055Smrg 97516758a055Smrg ; 97526758a055Smrg return 0; 97536758a055Smrg} 97546758a055Smrg_ACEOF 97556758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 97566758a055Smrg eval $cacheid=yes 97576758a055Smrgelse 97586758a055Smrg eval $cacheid=no 97596758a055Smrgfi 97606758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 97616758a055Smrg conftest$ac_exeext conftest.$ac_ext 97626758a055Smrgfi 97636758a055Smrg 97646758a055Smrg 97656758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 97666758a055Smrg 97676758a055Smrg eval supported=\$$cacheid 97686758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 97696758a055Smrg$as_echo "$supported" >&6; } 97706758a055Smrg if test "$supported" = "yes" ; then 97716758a055Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 97726758a055Smrg found="yes" 97736758a055Smrg fi 97746758a055Smrg fi 97756758a055Smrg 97766758a055Smrg 97776758a055Smrgfi 97786758a055Smrg 97796758a055Smrg 97806758a055Smrg 97816758a055Smrg 97826758a055Smrg 97836758a055Smrg 97846758a055Smrg 97856758a055Smrg CWARNFLAGS="$BASE_CFLAGS" 97866758a055Smrg if test "x$GCC" = xyes ; then 97876758a055Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 97886758a055Smrg fi 97896758a055Smrg 97906758a055Smrg 97916758a055Smrg 97926758a055Smrg 97936758a055Smrg 97946758a055Smrg 97956758a055Smrg 97966758a055Smrg 97976758a055Smrg# Check whether --enable-strict-compilation was given. 97986758a055Smrgif test "${enable_strict_compilation+set}" = set; then : 97996758a055Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 98006758a055Smrgelse 98016758a055Smrg STRICT_COMPILE=no 98026758a055Smrgfi 98036758a055Smrg 98046758a055Smrg 98056758a055Smrg 98066758a055Smrg 98076758a055Smrg 98086758a055Smrg 98096758a055SmrgSTRICT_CFLAGS="" 98106758a055Smrg 98116758a055Smrg 98126758a055Smrg 98136758a055Smrg 98146758a055Smrg 98156758a055Smrg 98166758a055Smrg 98176758a055Smrg 98186758a055Smrg 98196758a055Smrg 98206758a055Smrg 98216758a055Smrg 98226758a055Smrg 98236758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 98246758a055Smrg 98256758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 98266758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98276758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 98286758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 98296758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 98306758a055Smrg $as_echo_n "(cached) " >&6 98316758a055Smrgelse 98326758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98336758a055Smrg/* end confdefs.h. */ 98346758a055Smrgint i; 98356758a055Smrg_ACEOF 98366758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 98376758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 98386758a055Smrgelse 98396758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 98406758a055Smrgfi 98416758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98426758a055Smrgfi 98436758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 98446758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 98456758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 98466758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98476758a055Smrgfi 98486758a055Smrg 98496758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 98506758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 98516758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98526758a055Smrg fi 98536758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98546758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 98556758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 98566758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 98576758a055Smrg $as_echo_n "(cached) " >&6 98586758a055Smrgelse 98596758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98606758a055Smrg/* end confdefs.h. */ 98616758a055Smrgint i; 98626758a055Smrg_ACEOF 98636758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 98646758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 98656758a055Smrgelse 98666758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 98676758a055Smrgfi 98686758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98696758a055Smrgfi 98706758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 98716758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 98726758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 98736758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98746758a055Smrgfi 987514ddf674Smrg 98766758a055Smrgfound="no" 98776758a055Smrg 98786758a055Smrg if test $found = "no" ; then 98796758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 98806758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98816758a055Smrg fi 98826758a055Smrg 98836758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 98846758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98856758a055Smrg fi 98866758a055Smrg 98876758a055Smrg CFLAGS="$CFLAGS -pedantic" 98886758a055Smrg 98896758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 98906758a055Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; } 98916758a055Smrg cacheid=xorg_cv_cc_flag__pedantic 98926758a055Smrg if eval \${$cacheid+:} false; then : 989314ddf674Smrg $as_echo_n "(cached) " >&6 989414ddf674Smrgelse 989514ddf674Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 989614ddf674Smrg/* end confdefs.h. */ 98976758a055Smrgint i; 989814ddf674Smrgint 989914ddf674Smrgmain () 990014ddf674Smrg{ 990114ddf674Smrg 990214ddf674Smrg ; 990314ddf674Smrg return 0; 990414ddf674Smrg} 990514ddf674Smrg_ACEOF 99066758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 99076758a055Smrg eval $cacheid=yes 99086758a055Smrgelse 99096758a055Smrg eval $cacheid=no 99106758a055Smrgfi 99116758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 99126758a055Smrg conftest$ac_exeext conftest.$ac_ext 99136758a055Smrgfi 99146758a055Smrg 99156758a055Smrg 99166758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 99176758a055Smrg 99186758a055Smrg eval supported=\$$cacheid 99196758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 99206758a055Smrg$as_echo "$supported" >&6; } 99216758a055Smrg if test "$supported" = "yes" ; then 99226758a055Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 99236758a055Smrg found="yes" 99246758a055Smrg fi 99256758a055Smrg fi 99266758a055Smrg 99276758a055Smrg 99286758a055Smrg 99296758a055Smrg 99306758a055Smrg 99316758a055Smrg 99326758a055Smrg 99336758a055Smrg 99346758a055Smrg 99356758a055Smrg 99366758a055Smrg 99376758a055Smrg 99386758a055Smrg 99396758a055Smrg 99406758a055Smrg 99416758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 99426758a055Smrg 99436758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 99446758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99456758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 99466758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 99476758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 99486758a055Smrg $as_echo_n "(cached) " >&6 99496758a055Smrgelse 99506758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99516758a055Smrg/* end confdefs.h. */ 99526758a055Smrgint i; 99536758a055Smrg_ACEOF 995414ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then : 99556758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 995614ddf674Smrgelse 99576758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 995814ddf674Smrgfi 995914ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 996014ddf674Smrgfi 99616758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 99626758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 99636758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 99646758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 996514ddf674Smrgfi 99666758a055Smrg 99676758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 99686758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 99696758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99706758a055Smrg fi 99716758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99726758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 99736758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 99746758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 997514ddf674Smrg $as_echo_n "(cached) " >&6 997614ddf674Smrgelse 99776758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 997814ddf674Smrg/* end confdefs.h. */ 99796758a055Smrgint i; 998014ddf674Smrg_ACEOF 998114ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then : 99826758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 998314ddf674Smrgelse 99846758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 99856758a055Smrgfi 99866758a055Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 99876758a055Smrgfi 99886758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 99896758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 99906758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 99916758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 99926758a055Smrgfi 999314ddf674Smrg 99946758a055Smrgfound="no" 99956758a055Smrg 99966758a055Smrg if test $found = "no" ; then 99976758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 99986758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99996758a055Smrg fi 100006758a055Smrg 100016758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 100026758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100036758a055Smrg fi 100046758a055Smrg 100056758a055Smrg CFLAGS="$CFLAGS -Werror" 100066758a055Smrg 100076758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 100086758a055Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; } 100096758a055Smrg cacheid=xorg_cv_cc_flag__Werror 100106758a055Smrg if eval \${$cacheid+:} false; then : 100116758a055Smrg $as_echo_n "(cached) " >&6 100126758a055Smrgelse 100136758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100146758a055Smrg/* end confdefs.h. */ 100156758a055Smrgint i; 1001614ddf674Smrgint 1001714ddf674Smrgmain () 1001814ddf674Smrg{ 1001914ddf674Smrg 1002014ddf674Smrg ; 1002114ddf674Smrg return 0; 1002214ddf674Smrg} 1002314ddf674Smrg_ACEOF 100246758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 100256758a055Smrg eval $cacheid=yes 100266758a055Smrgelse 100276758a055Smrg eval $cacheid=no 100286758a055Smrgfi 100296758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 100306758a055Smrg conftest$ac_exeext conftest.$ac_ext 100316758a055Smrgfi 100326758a055Smrg 100336758a055Smrg 100346758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 100356758a055Smrg 100366758a055Smrg eval supported=\$$cacheid 100376758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 100386758a055Smrg$as_echo "$supported" >&6; } 100396758a055Smrg if test "$supported" = "yes" ; then 100406758a055Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 100416758a055Smrg found="yes" 100426758a055Smrg fi 100436758a055Smrg fi 1004414ddf674Smrg 100456758a055Smrg if test $found = "no" ; then 100466758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 100476758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100486758a055Smrg fi 100496758a055Smrg 100506758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 100516758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100526758a055Smrg fi 100536758a055Smrg 100546758a055Smrg CFLAGS="$CFLAGS -errwarn" 100556758a055Smrg 100566758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 100576758a055Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; } 100586758a055Smrg cacheid=xorg_cv_cc_flag__errwarn 100596758a055Smrg if eval \${$cacheid+:} false; then : 100606758a055Smrg $as_echo_n "(cached) " >&6 1006114ddf674Smrgelse 100626758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1006314ddf674Smrg/* end confdefs.h. */ 100646758a055Smrgint i; 1006514ddf674Smrgint 1006614ddf674Smrgmain () 1006714ddf674Smrg{ 1006814ddf674Smrg 1006914ddf674Smrg ; 1007014ddf674Smrg return 0; 1007114ddf674Smrg} 1007214ddf674Smrg_ACEOF 100736758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 100746758a055Smrg eval $cacheid=yes 100756758a055Smrgelse 100766758a055Smrg eval $cacheid=no 100776758a055Smrgfi 100786758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 100796758a055Smrg conftest$ac_exeext conftest.$ac_ext 100806758a055Smrgfi 100816758a055Smrg 100826758a055Smrg 100836758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 100846758a055Smrg 100856758a055Smrg eval supported=\$$cacheid 100866758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 100876758a055Smrg$as_echo "$supported" >&6; } 100886758a055Smrg if test "$supported" = "yes" ; then 100896758a055Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 100906758a055Smrg found="yes" 100916758a055Smrg fi 100926758a055Smrg fi 100936758a055Smrg 100946758a055Smrg 100956758a055Smrg 100966758a055Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 100976758a055Smrg# activate it with -Werror, so we add it here explicitly. 100986758a055Smrg 100996758a055Smrg 101006758a055Smrg 101016758a055Smrg 101026758a055Smrg 101036758a055Smrg 101046758a055Smrg 101056758a055Smrg 101066758a055Smrg 101076758a055Smrg 101086758a055Smrg 101096758a055Smrg 101106758a055Smrg 101116758a055Smrgxorg_testset_save_CFLAGS="$CFLAGS" 101126758a055Smrg 101136758a055Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 101146758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101156758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 101166758a055Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 101176758a055Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 101186758a055Smrg $as_echo_n "(cached) " >&6 101196758a055Smrgelse 101206758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101216758a055Smrg/* end confdefs.h. */ 101226758a055Smrgint i; 101236758a055Smrg_ACEOF 1012414ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then : 101256758a055Smrg xorg_cv_cc_flag_unknown_warning_option=yes 101266758a055Smrgelse 101276758a055Smrg xorg_cv_cc_flag_unknown_warning_option=no 1012814ddf674Smrgfi 1012914ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1013014ddf674Smrgfi 101316758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 101326758a055Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 101336758a055Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 101346758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101356758a055Smrgfi 101366758a055Smrg 101376758a055Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 101386758a055Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 101396758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101406758a055Smrg fi 101416758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101426758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 101436758a055Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 101446758a055Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 101456758a055Smrg $as_echo_n "(cached) " >&6 101466758a055Smrgelse 101476758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101486758a055Smrg/* end confdefs.h. */ 101496758a055Smrgint i; 101506758a055Smrg_ACEOF 101516758a055Smrgif ac_fn_c_try_compile "$LINENO"; then : 101526758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 101536758a055Smrgelse 101546758a055Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1015514ddf674Smrgfi 1015614ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1015714ddf674Smrgfi 101586758a055Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 101596758a055Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 101606758a055Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 101616758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1016214ddf674Smrgfi 101636758a055Smrg 101646758a055Smrgfound="no" 101656758a055Smrg 101666758a055Smrg if test $found = "no" ; then 101676758a055Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 101686758a055Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101696758a055Smrg fi 101706758a055Smrg 101716758a055Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 101726758a055Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101736758a055Smrg fi 101746758a055Smrg 101756758a055Smrg CFLAGS="$CFLAGS -Werror=attributes" 101766758a055Smrg 101776758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 101786758a055Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 101796758a055Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 101806758a055Smrg if eval \${$cacheid+:} false; then : 1018114ddf674Smrg $as_echo_n "(cached) " >&6 1018214ddf674Smrgelse 101836758a055Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1018414ddf674Smrg/* end confdefs.h. */ 101856758a055Smrgint i; 101866758a055Smrgint 101876758a055Smrgmain () 1018814ddf674Smrg{ 101896758a055Smrg 101906758a055Smrg ; 101916758a055Smrg return 0; 1019214ddf674Smrg} 101936758a055Smrg_ACEOF 101946758a055Smrgif ac_fn_c_try_link "$LINENO"; then : 101956758a055Smrg eval $cacheid=yes 101966758a055Smrgelse 101976758a055Smrg eval $cacheid=no 101986758a055Smrgfi 101996758a055Smrgrm -f core conftest.err conftest.$ac_objext \ 102006758a055Smrg conftest$ac_exeext conftest.$ac_ext 102016758a055Smrgfi 102026758a055Smrg 102036758a055Smrg 102046758a055Smrg CFLAGS="$xorg_testset_save_CFLAGS" 102056758a055Smrg 102066758a055Smrg eval supported=\$$cacheid 102076758a055Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102086758a055Smrg$as_echo "$supported" >&6; } 102096758a055Smrg if test "$supported" = "yes" ; then 102106758a055Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 102116758a055Smrg found="yes" 102126758a055Smrg fi 102136758a055Smrg fi 102146758a055Smrg 102156758a055Smrg 102166758a055Smrg 102176758a055Smrgif test "x$STRICT_COMPILE" = "xyes"; then 102186758a055Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 102196758a055Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 102206758a055Smrgfi 102216758a055Smrg 102226758a055Smrg 102236758a055Smrg 102246758a055Smrg 102256758a055Smrg 102266758a055Smrg 102276758a055Smrgcat >>confdefs.h <<_ACEOF 102286758a055Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 102296758a055Smrg_ACEOF 102306758a055Smrg 102316758a055Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 102326758a055Smrg if test "x$PVM" = "x"; then 102336758a055Smrg PVM="0" 102346758a055Smrg fi 102356758a055Smrg 102366758a055Smrgcat >>confdefs.h <<_ACEOF 102376758a055Smrg#define PACKAGE_VERSION_MINOR $PVM 102386758a055Smrg_ACEOF 102396758a055Smrg 102406758a055Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 102416758a055Smrg if test "x$PVP" = "x"; then 102426758a055Smrg PVP="0" 102436758a055Smrg fi 102446758a055Smrg 102456758a055Smrgcat >>confdefs.h <<_ACEOF 102466758a055Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 102476758a055Smrg_ACEOF 102486758a055Smrg 102496758a055Smrg 102506758a055Smrg 102516758a055SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 102526758a055Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 102536758a055Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 102546758a055Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 102556758a055Smrg 102566758a055Smrg 102576758a055Smrg 102586758a055Smrg 102596758a055Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 102606758a055SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 102616758a055Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 102626758a055Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 102636758a055Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 1026414ddf674Smrg 1026514ddf674Smrg 1026614ddf674Smrg 102676758a055Smrg 102686758a055Smrg 102696758a055Smrg 102706758a055Smrgif test x$APP_MAN_SUFFIX = x ; then 102716758a055Smrg APP_MAN_SUFFIX=1 102726758a055Smrgfi 102736758a055Smrgif test x$APP_MAN_DIR = x ; then 102746758a055Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1027514ddf674Smrgfi 1027614ddf674Smrg 102776758a055Smrgif test x$LIB_MAN_SUFFIX = x ; then 102786758a055Smrg LIB_MAN_SUFFIX=3 102796758a055Smrgfi 102806758a055Smrgif test x$LIB_MAN_DIR = x ; then 102816758a055Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1028214ddf674Smrgfi 1028314ddf674Smrg 102846758a055Smrgif test x$FILE_MAN_SUFFIX = x ; then 102856758a055Smrg case $host_os in 102866758a055Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 102876758a055Smrg *) FILE_MAN_SUFFIX=5 ;; 102886758a055Smrg esac 102896758a055Smrgfi 102906758a055Smrgif test x$FILE_MAN_DIR = x ; then 102916758a055Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1029214ddf674Smrgfi 1029314ddf674Smrg 102946758a055Smrgif test x$MISC_MAN_SUFFIX = x ; then 102956758a055Smrg case $host_os in 102966758a055Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 102976758a055Smrg *) MISC_MAN_SUFFIX=7 ;; 102986758a055Smrg esac 102996758a055Smrgfi 103006758a055Smrgif test x$MISC_MAN_DIR = x ; then 103016758a055Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 103026758a055Smrgfi 1030314ddf674Smrg 103046758a055Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 103056758a055Smrg case $host_os in 103066758a055Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 103076758a055Smrg *) DRIVER_MAN_SUFFIX=4 ;; 103086758a055Smrg esac 103096758a055Smrgfi 103106758a055Smrgif test x$DRIVER_MAN_DIR = x ; then 103116758a055Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 103126758a055Smrgfi 1031314ddf674Smrg 103146758a055Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 103156758a055Smrg case $host_os in 103166758a055Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 103176758a055Smrg *) ADMIN_MAN_SUFFIX=8 ;; 103186758a055Smrg esac 103196758a055Smrgfi 103206758a055Smrgif test x$ADMIN_MAN_DIR = x ; then 103216758a055Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 103226758a055Smrgfi 1032314ddf674Smrg 1032414ddf674Smrg 1032514ddf674Smrg 1032614ddf674Smrg 1032714ddf674Smrg 1032814ddf674Smrg 103296758a055Smrg 103306758a055Smrg 103316758a055Smrg 103326758a055Smrg 103336758a055Smrg 103346758a055Smrg 103356758a055Smrg 103366758a055Smrg 103376758a055Smrg 103386758a055SmrgXORG_MAN_PAGE="X Version 11" 103396758a055Smrg 103406758a055SmrgMAN_SUBSTS="\ 103416758a055Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 103426758a055Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 103436758a055Smrg -e 's|__xservername__|Xorg|g' \ 103446758a055Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 103456758a055Smrg -e 's|__projectroot__|\$(prefix)|g' \ 103466758a055Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 103476758a055Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 103486758a055Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 103496758a055Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 103506758a055Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 103516758a055Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 103526758a055Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 103536758a055Smrg 103546758a055Smrg 103556758a055Smrg 103566758a055Smrg# Check whether --enable-silent-rules was given. 103576758a055Smrgif test "${enable_silent_rules+set}" = set; then : 103586758a055Smrg enableval=$enable_silent_rules; 1035914ddf674Smrgfi 1036014ddf674Smrg 103616758a055Smrgcase $enable_silent_rules in 103626758a055Smrgyes) AM_DEFAULT_VERBOSITY=0;; 103636758a055Smrgno) AM_DEFAULT_VERBOSITY=1;; 103646758a055Smrg*) AM_DEFAULT_VERBOSITY=0;; 103656758a055Smrgesac 103666758a055SmrgAM_BACKSLASH='\' 1036714ddf674Smrg 10368cacd992dSmrg 10369cacd992dSmrg 1037014ddf674Smrg# Checks for pkg-config packages 10371cacd992dSmrg 10372cacd992dSmrgpkg_failed=no 1037314ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVIDTUNE" >&5 1037414ddf674Smrg$as_echo_n "checking for XVIDTUNE... " >&6; } 1037514ddf674Smrg 1037614ddf674Smrgif test -n "$XVIDTUNE_CFLAGS"; then 1037714ddf674Smrg pkg_cv_XVIDTUNE_CFLAGS="$XVIDTUNE_CFLAGS" 1037814ddf674Smrg elif test -n "$PKG_CONFIG"; then 1037914ddf674Smrg if test -n "$PKG_CONFIG" && \ 1038014ddf674Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm xt xaw7 xmu x11\""; } >&5 1038114ddf674Smrg ($PKG_CONFIG --exists --print-errors "xxf86vm xt xaw7 xmu x11") 2>&5 10382cacd992dSmrg ac_status=$? 1038314ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1038414ddf674Smrg test $ac_status = 0; }; then 1038514ddf674Smrg pkg_cv_XVIDTUNE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm xt xaw7 xmu x11" 2>/dev/null` 10386cacd992dSmrgelse 10387cacd992dSmrg pkg_failed=yes 10388cacd992dSmrgfi 1038914ddf674Smrg else 1039014ddf674Smrg pkg_failed=untried 10391cacd992dSmrgfi 1039214ddf674Smrgif test -n "$XVIDTUNE_LIBS"; then 1039314ddf674Smrg pkg_cv_XVIDTUNE_LIBS="$XVIDTUNE_LIBS" 1039414ddf674Smrg elif test -n "$PKG_CONFIG"; then 1039514ddf674Smrg if test -n "$PKG_CONFIG" && \ 1039614ddf674Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm xt xaw7 xmu x11\""; } >&5 1039714ddf674Smrg ($PKG_CONFIG --exists --print-errors "xxf86vm xt xaw7 xmu x11") 2>&5 10398cacd992dSmrg ac_status=$? 1039914ddf674Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1040014ddf674Smrg test $ac_status = 0; }; then 1040114ddf674Smrg pkg_cv_XVIDTUNE_LIBS=`$PKG_CONFIG --libs "xxf86vm xt xaw7 xmu x11" 2>/dev/null` 10402cacd992dSmrgelse 10403cacd992dSmrg pkg_failed=yes 10404cacd992dSmrgfi 1040514ddf674Smrg else 1040614ddf674Smrg pkg_failed=untried 10407cacd992dSmrgfi 10408cacd992dSmrg 10409cacd992dSmrg 10410cacd992dSmrg 10411cacd992dSmrgif test $pkg_failed = yes; then 10412cacd992dSmrg 10413cacd992dSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10414cacd992dSmrg _pkg_short_errors_supported=yes 10415cacd992dSmrgelse 10416cacd992dSmrg _pkg_short_errors_supported=no 10417cacd992dSmrgfi 10418cacd992dSmrg if test $_pkg_short_errors_supported = yes; then 1041914ddf674Smrg XVIDTUNE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86vm xt xaw7 xmu x11" 2>&1` 10420cacd992dSmrg else 1042114ddf674Smrg XVIDTUNE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86vm xt xaw7 xmu x11" 2>&1` 10422cacd992dSmrg fi 10423cacd992dSmrg # Put the nasty error message in config.log where it belongs 1042414ddf674Smrg echo "$XVIDTUNE_PKG_ERRORS" >&5 10425cacd992dSmrg 104266758a055Smrg as_fn_error $? "Package requirements (xxf86vm xt xaw7 xmu x11) were not met: 10427cacd992dSmrg 1042814ddf674Smrg$XVIDTUNE_PKG_ERRORS 10429cacd992dSmrg 10430cacd992dSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 10431cacd992dSmrginstalled software in a non-standard prefix. 10432cacd992dSmrg 1043314ddf674SmrgAlternatively, you may set the environment variables XVIDTUNE_CFLAGS 1043414ddf674Smrgand XVIDTUNE_LIBS to avoid the need to call pkg-config. 10435cacd992dSmrgSee the pkg-config man page for more details. 1043614ddf674Smrg" "$LINENO" 5 10437cacd992dSmrgelif test $pkg_failed = untried; then 1043814ddf674Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1043914ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 104406758a055Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10441cacd992dSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 10442cacd992dSmrgpath to pkg-config. 10443cacd992dSmrg 1044414ddf674SmrgAlternatively, you may set the environment variables XVIDTUNE_CFLAGS 1044514ddf674Smrgand XVIDTUNE_LIBS to avoid the need to call pkg-config. 10446cacd992dSmrgSee the pkg-config man page for more details. 10447cacd992dSmrg 1044814ddf674SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 104496758a055SmrgSee \`config.log' for more details" "$LINENO" 5; } 10450cacd992dSmrgelse 1045114ddf674Smrg XVIDTUNE_CFLAGS=$pkg_cv_XVIDTUNE_CFLAGS 1045214ddf674Smrg XVIDTUNE_LIBS=$pkg_cv_XVIDTUNE_LIBS 1045314ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 1045414ddf674Smrg$as_echo "yes" >&6; } 10455cacd992dSmrg : 10456cacd992dSmrgfi 1045714ddf674Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 10458cacd992dSmrg 1045914ddf674Smrg# Check whether --with-appdefaultdir was given. 1046014ddf674Smrgif test "${with_appdefaultdir+set}" = set; then : 1046114ddf674Smrg withval=$with_appdefaultdir; appdefaultdir="$withval" 10462cacd992dSmrgelse 1046314ddf674Smrg appdefaultdir="${xt_appdefaultdir}" 10464cacd992dSmrgfi 10465cacd992dSmrg 10466cacd992dSmrg 10467cacd992dSmrg 10468cacd992dSmrg 104696758a055Smrgac_config_files="$ac_config_files Makefile man/Makefile" 10470cacd992dSmrg 10471cacd992dSmrgcat >confcache <<\_ACEOF 10472cacd992dSmrg# This file is a shell script that caches the results of configure 10473cacd992dSmrg# tests run on this system so they can be shared between configure 10474cacd992dSmrg# scripts and configure runs, see configure's option --config-cache. 10475cacd992dSmrg# It is not useful on other systems. If it contains results you don't 10476cacd992dSmrg# want to keep, you may remove or edit it. 10477cacd992dSmrg# 10478cacd992dSmrg# config.status only pays attention to the cache file if you give it 10479cacd992dSmrg# the --recheck option to rerun configure. 10480cacd992dSmrg# 10481cacd992dSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 10482cacd992dSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 10483cacd992dSmrg# following values. 10484cacd992dSmrg 10485cacd992dSmrg_ACEOF 10486cacd992dSmrg 10487cacd992dSmrg# The following way of writing the cache mishandles newlines in values, 10488cacd992dSmrg# but we know of no workaround that is simple, portable, and efficient. 1048914ddf674Smrg# So, we kill variables containing newlines. 10490cacd992dSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 10491cacd992dSmrg# and sets the high bit in the cache file unless we assign to the vars. 1049214ddf674Smrg( 1049314ddf674Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 1049414ddf674Smrg eval ac_val=\$$ac_var 1049514ddf674Smrg case $ac_val in #( 1049614ddf674Smrg *${as_nl}*) 1049714ddf674Smrg case $ac_var in #( 1049814ddf674Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1049914ddf674Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1050014ddf674Smrg esac 1050114ddf674Smrg case $ac_var in #( 1050214ddf674Smrg _ | IFS | as_nl) ;; #( 1050314ddf674Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1050414ddf674Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1050514ddf674Smrg esac ;; 1050614ddf674Smrg esac 1050714ddf674Smrg done 1050814ddf674Smrg 10509cacd992dSmrg (set) 2>&1 | 1051014ddf674Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 1051114ddf674Smrg *${as_nl}ac_space=\ *) 1051214ddf674Smrg # `set' does not quote correctly, so add quotes: double-quote 1051314ddf674Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 10514cacd992dSmrg sed -n \ 10515cacd992dSmrg "s/'/'\\\\''/g; 10516cacd992dSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 1051714ddf674Smrg ;; #( 10518cacd992dSmrg *) 10519cacd992dSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 1052014ddf674Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10521cacd992dSmrg ;; 1052214ddf674Smrg esac | 1052314ddf674Smrg sort 1052414ddf674Smrg) | 10525cacd992dSmrg sed ' 1052614ddf674Smrg /^ac_cv_env_/b end 10527cacd992dSmrg t clear 1052814ddf674Smrg :clear 10529cacd992dSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10530cacd992dSmrg t end 1053114ddf674Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 1053214ddf674Smrg :end' >>confcache 1053314ddf674Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 1053414ddf674Smrg if test -w "$cache_file"; then 105356758a055Smrg if test "x$cache_file" != "x/dev/null"; then 1053614ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 1053714ddf674Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 105386758a055Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 105396758a055Smrg cat confcache >"$cache_file" 105406758a055Smrg else 105416758a055Smrg case $cache_file in #( 105426758a055Smrg */* | ?:*) 105436758a055Smrg mv -f confcache "$cache_file"$$ && 105446758a055Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 105456758a055Smrg *) 105466758a055Smrg mv -f confcache "$cache_file" ;; 105476758a055Smrg esac 105486758a055Smrg fi 105496758a055Smrg fi 10550cacd992dSmrg else 1055114ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 1055214ddf674Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10553cacd992dSmrg fi 10554cacd992dSmrgfi 10555cacd992dSmrgrm -f confcache 10556cacd992dSmrg 10557cacd992dSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 10558cacd992dSmrg# Let make expand exec_prefix. 10559cacd992dSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10560cacd992dSmrg 10561cacd992dSmrgDEFS=-DHAVE_CONFIG_H 10562cacd992dSmrg 10563cacd992dSmrgac_libobjs= 10564cacd992dSmrgac_ltlibobjs= 105656758a055SmrgU= 10566cacd992dSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10567cacd992dSmrg # 1. Remove the extension, and $U if already installed. 1056814ddf674Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 1056914ddf674Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 1057014ddf674Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 1057114ddf674Smrg # will be set to the directory where LIBOBJS objects are built. 1057214ddf674Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 1057314ddf674Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10574cacd992dSmrgdone 10575cacd992dSmrgLIBOBJS=$ac_libobjs 10576cacd992dSmrg 10577cacd992dSmrgLTLIBOBJS=$ac_ltlibobjs 10578cacd992dSmrg 10579cacd992dSmrg 1058014ddf674Smrg if test -n "$EXEEXT"; then 1058114ddf674Smrg am__EXEEXT_TRUE= 1058214ddf674Smrg am__EXEEXT_FALSE='#' 1058314ddf674Smrgelse 1058414ddf674Smrg am__EXEEXT_TRUE='#' 1058514ddf674Smrg am__EXEEXT_FALSE= 1058614ddf674Smrgfi 1058714ddf674Smrg 10588cacd992dSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 105896758a055Smrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 1059014ddf674SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 10591cacd992dSmrgfi 10592cacd992dSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 105936758a055Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 1059414ddf674SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 10595cacd992dSmrgfi 1059614ddf674Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 105976758a055Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 1059814ddf674SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 10599cacd992dSmrgfi 10600cacd992dSmrg 106016758a055Smrg: "${CONFIG_STATUS=./config.status}" 1060214ddf674Smrgac_write_fail=0 10603cacd992dSmrgac_clean_files_save=$ac_clean_files 10604cacd992dSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 1060514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 1060614ddf674Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 1060714ddf674Smrgas_write_fail=0 1060814ddf674Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10609cacd992dSmrg#! $SHELL 10610cacd992dSmrg# Generated by $as_me. 10611cacd992dSmrg# Run this file to recreate the current configuration. 10612cacd992dSmrg# Compiler output produced by configure, useful for debugging 10613cacd992dSmrg# configure, is in config.log if it exists. 10614cacd992dSmrg 10615cacd992dSmrgdebug=false 10616cacd992dSmrgac_cs_recheck=false 10617cacd992dSmrgac_cs_silent=false 10618cacd992dSmrg 1061914ddf674SmrgSHELL=\${CONFIG_SHELL-$SHELL} 1062014ddf674Smrgexport SHELL 1062114ddf674Smrg_ASEOF 1062214ddf674Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 1062314ddf674Smrg## -------------------- ## 1062414ddf674Smrg## M4sh Initialization. ## 1062514ddf674Smrg## -------------------- ## 1062614ddf674Smrg 1062714ddf674Smrg# Be more Bourne compatible 1062814ddf674SmrgDUALCASE=1; export DUALCASE # for MKS sh 1062914ddf674Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10630cacd992dSmrg emulate sh 10631cacd992dSmrg NULLCMD=: 1063214ddf674Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10633cacd992dSmrg # is contrary to our usage. Disable this feature. 10634cacd992dSmrg alias -g '${1+"$@"}'='"$@"' 1063514ddf674Smrg setopt NO_GLOB_SUBST 1063614ddf674Smrgelse 1063714ddf674Smrg case `(set -o) 2>/dev/null` in #( 1063814ddf674Smrg *posix*) : 1063914ddf674Smrg set -o posix ;; #( 1064014ddf674Smrg *) : 1064114ddf674Smrg ;; 1064214ddf674Smrgesac 10643cacd992dSmrgfi 10644cacd992dSmrg 1064514ddf674Smrg 1064614ddf674Smrgas_nl=' 1064714ddf674Smrg' 1064814ddf674Smrgexport as_nl 1064914ddf674Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 1065014ddf674Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1065114ddf674Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 1065214ddf674Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 1065314ddf674Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 1065414ddf674Smrg# but without wasting forks for bash or zsh. 1065514ddf674Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 1065614ddf674Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 1065714ddf674Smrg as_echo='print -r --' 1065814ddf674Smrg as_echo_n='print -rn --' 1065914ddf674Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 1066014ddf674Smrg as_echo='printf %s\n' 1066114ddf674Smrg as_echo_n='printf %s' 10662cacd992dSmrgelse 1066314ddf674Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 1066414ddf674Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 1066514ddf674Smrg as_echo_n='/usr/ucb/echo -n' 1066614ddf674Smrg else 1066714ddf674Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 1066814ddf674Smrg as_echo_n_body='eval 1066914ddf674Smrg arg=$1; 1067014ddf674Smrg case $arg in #( 1067114ddf674Smrg *"$as_nl"*) 1067214ddf674Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 1067314ddf674Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 1067414ddf674Smrg esac; 1067514ddf674Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 1067614ddf674Smrg ' 1067714ddf674Smrg export as_echo_n_body 1067814ddf674Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 1067914ddf674Smrg fi 1068014ddf674Smrg export as_echo_body 1068114ddf674Smrg as_echo='sh -c $as_echo_body as_echo' 1068214ddf674Smrgfi 1068314ddf674Smrg 1068414ddf674Smrg# The user is always right. 1068514ddf674Smrgif test "${PATH_SEPARATOR+set}" != set; then 1068614ddf674Smrg PATH_SEPARATOR=: 1068714ddf674Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 1068814ddf674Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 1068914ddf674Smrg PATH_SEPARATOR=';' 1069014ddf674Smrg } 10691cacd992dSmrgfi 10692cacd992dSmrg 10693cacd992dSmrg 1069414ddf674Smrg# IFS 1069514ddf674Smrg# We need space, tab and new line, in precisely that order. Quoting is 1069614ddf674Smrg# there to prevent editors from complaining about space-tab. 1069714ddf674Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 1069814ddf674Smrg# splitting by setting IFS to empty value.) 1069914ddf674SmrgIFS=" "" $as_nl" 1070014ddf674Smrg 1070114ddf674Smrg# Find who we are. Look in the path if we contain no directory separator. 107026758a055Smrgas_myself= 1070314ddf674Smrgcase $0 in #(( 1070414ddf674Smrg *[\\/]* ) as_myself=$0 ;; 1070514ddf674Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1070614ddf674Smrgfor as_dir in $PATH 1070714ddf674Smrgdo 1070814ddf674Smrg IFS=$as_save_IFS 1070914ddf674Smrg test -z "$as_dir" && as_dir=. 1071014ddf674Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1071114ddf674Smrg done 1071214ddf674SmrgIFS=$as_save_IFS 1071314ddf674Smrg 1071414ddf674Smrg ;; 1071514ddf674Smrgesac 1071614ddf674Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1071714ddf674Smrg# in which case we are not to be found in the path. 1071814ddf674Smrgif test "x$as_myself" = x; then 1071914ddf674Smrg as_myself=$0 1072014ddf674Smrgfi 1072114ddf674Smrgif test ! -f "$as_myself"; then 1072214ddf674Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1072314ddf674Smrg exit 1 1072414ddf674Smrgfi 1072514ddf674Smrg 1072614ddf674Smrg# Unset variables that we do not need and which cause bugs (e.g. in 1072714ddf674Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1072814ddf674Smrg# suppresses any "Segmentation fault" message there. '((' could 1072914ddf674Smrg# trigger a bug in pdksh 5.2.14. 1073014ddf674Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1073114ddf674Smrgdo eval test x\${$as_var+set} = xset \ 1073214ddf674Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1073314ddf674Smrgdone 10734cacd992dSmrgPS1='$ ' 10735cacd992dSmrgPS2='> ' 10736cacd992dSmrgPS4='+ ' 10737cacd992dSmrg 10738cacd992dSmrg# NLS nuisances. 1073914ddf674SmrgLC_ALL=C 1074014ddf674Smrgexport LC_ALL 1074114ddf674SmrgLANGUAGE=C 1074214ddf674Smrgexport LANGUAGE 1074314ddf674Smrg 1074414ddf674Smrg# CDPATH. 1074514ddf674Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1074614ddf674Smrg 1074714ddf674Smrg 107486758a055Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 107496758a055Smrg# ---------------------------------------- 1075014ddf674Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 1075114ddf674Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 107526758a055Smrg# script with STATUS, using 1 if that was 0. 1075314ddf674Smrgas_fn_error () 1075414ddf674Smrg{ 107556758a055Smrg as_status=$1; test $as_status -eq 0 && as_status=1 107566758a055Smrg if test "$4"; then 107576758a055Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 107586758a055Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10759cacd992dSmrg fi 107606758a055Smrg $as_echo "$as_me: error: $2" >&2 1076114ddf674Smrg as_fn_exit $as_status 1076214ddf674Smrg} # as_fn_error 1076314ddf674Smrg 10764cacd992dSmrg 1076514ddf674Smrg# as_fn_set_status STATUS 1076614ddf674Smrg# ----------------------- 1076714ddf674Smrg# Set $? to STATUS, without forking. 1076814ddf674Smrgas_fn_set_status () 1076914ddf674Smrg{ 1077014ddf674Smrg return $1 1077114ddf674Smrg} # as_fn_set_status 1077214ddf674Smrg 1077314ddf674Smrg# as_fn_exit STATUS 1077414ddf674Smrg# ----------------- 1077514ddf674Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 1077614ddf674Smrgas_fn_exit () 1077714ddf674Smrg{ 1077814ddf674Smrg set +e 1077914ddf674Smrg as_fn_set_status $1 1078014ddf674Smrg exit $1 1078114ddf674Smrg} # as_fn_exit 1078214ddf674Smrg 1078314ddf674Smrg# as_fn_unset VAR 1078414ddf674Smrg# --------------- 1078514ddf674Smrg# Portably unset VAR. 1078614ddf674Smrgas_fn_unset () 1078714ddf674Smrg{ 1078814ddf674Smrg { eval $1=; unset $1;} 1078914ddf674Smrg} 1079014ddf674Smrgas_unset=as_fn_unset 1079114ddf674Smrg# as_fn_append VAR VALUE 1079214ddf674Smrg# ---------------------- 1079314ddf674Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 1079414ddf674Smrg# advantage of any shell optimizations that allow amortized linear growth over 1079514ddf674Smrg# repeated appends, instead of the typical quadratic growth present in naive 1079614ddf674Smrg# implementations. 1079714ddf674Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 1079814ddf674Smrg eval 'as_fn_append () 1079914ddf674Smrg { 1080014ddf674Smrg eval $1+=\$2 1080114ddf674Smrg }' 1080214ddf674Smrgelse 1080314ddf674Smrg as_fn_append () 1080414ddf674Smrg { 1080514ddf674Smrg eval $1=\$$1\$2 1080614ddf674Smrg } 1080714ddf674Smrgfi # as_fn_append 1080814ddf674Smrg 1080914ddf674Smrg# as_fn_arith ARG... 1081014ddf674Smrg# ------------------ 1081114ddf674Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 1081214ddf674Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 1081314ddf674Smrg# must be portable across $(()) and expr. 1081414ddf674Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 1081514ddf674Smrg eval 'as_fn_arith () 1081614ddf674Smrg { 1081714ddf674Smrg as_val=$(( $* )) 1081814ddf674Smrg }' 1081914ddf674Smrgelse 1082014ddf674Smrg as_fn_arith () 1082114ddf674Smrg { 1082214ddf674Smrg as_val=`expr "$@" || test $? -eq 1` 1082314ddf674Smrg } 1082414ddf674Smrgfi # as_fn_arith 1082514ddf674Smrg 1082614ddf674Smrg 1082714ddf674Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 1082814ddf674Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 10829cacd992dSmrg as_expr=expr 10830cacd992dSmrgelse 10831cacd992dSmrg as_expr=false 10832cacd992dSmrgfi 10833cacd992dSmrg 1083414ddf674Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10835cacd992dSmrg as_basename=basename 10836cacd992dSmrgelse 10837cacd992dSmrg as_basename=false 10838cacd992dSmrgfi 10839cacd992dSmrg 1084014ddf674Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 1084114ddf674Smrg as_dirname=dirname 1084214ddf674Smrgelse 1084314ddf674Smrg as_dirname=false 1084414ddf674Smrgfi 10845cacd992dSmrg 1084614ddf674Smrgas_me=`$as_basename -- "$0" || 10847cacd992dSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10848cacd992dSmrg X"$0" : 'X\(//\)$' \| \ 1084914ddf674Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 1085014ddf674Smrg$as_echo X/"$0" | 1085114ddf674Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 1085214ddf674Smrg s//\1/ 1085314ddf674Smrg q 1085414ddf674Smrg } 1085514ddf674Smrg /^X\/\(\/\/\)$/{ 1085614ddf674Smrg s//\1/ 1085714ddf674Smrg q 1085814ddf674Smrg } 1085914ddf674Smrg /^X\/\(\/\).*/{ 1086014ddf674Smrg s//\1/ 1086114ddf674Smrg q 1086214ddf674Smrg } 1086314ddf674Smrg s/.*/./; q'` 10864cacd992dSmrg 10865cacd992dSmrg# Avoid depending upon Character Ranges. 10866cacd992dSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 10867cacd992dSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10868cacd992dSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 10869cacd992dSmrgas_cr_digits='0123456789' 10870cacd992dSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 10871cacd992dSmrg 1087214ddf674SmrgECHO_C= ECHO_N= ECHO_T= 1087314ddf674Smrgcase `echo -n x` in #((((( 1087414ddf674Smrg-n*) 1087514ddf674Smrg case `echo 'xy\c'` in 1087614ddf674Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 1087714ddf674Smrg xy) ECHO_C='\c';; 1087814ddf674Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 1087914ddf674Smrg ECHO_T=' ';; 1088014ddf674Smrg esac;; 1088114ddf674Smrg*) 1088214ddf674Smrg ECHO_N='-n';; 10883cacd992dSmrgesac 10884cacd992dSmrg 1088514ddf674Smrgrm -f conf$$ conf$$.exe conf$$.file 1088614ddf674Smrgif test -d conf$$.dir; then 1088714ddf674Smrg rm -f conf$$.dir/conf$$.file 10888cacd992dSmrgelse 1088914ddf674Smrg rm -f conf$$.dir 1089014ddf674Smrg mkdir conf$$.dir 2>/dev/null 10891cacd992dSmrgfi 1089214ddf674Smrgif (echo >conf$$.file) 2>/dev/null; then 1089314ddf674Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 10894cacd992dSmrg as_ln_s='ln -s' 1089514ddf674Smrg # ... but there are two gotchas: 1089614ddf674Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 1089714ddf674Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 1089814ddf674Smrg # In both cases, we have to default to `cp -p'. 1089914ddf674Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 1090014ddf674Smrg as_ln_s='cp -p' 1090114ddf674Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 1090214ddf674Smrg as_ln_s=ln 1090314ddf674Smrg else 1090414ddf674Smrg as_ln_s='cp -p' 10905cacd992dSmrg fi 10906cacd992dSmrgelse 10907cacd992dSmrg as_ln_s='cp -p' 10908cacd992dSmrgfi 1090914ddf674Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 1091014ddf674Smrgrmdir conf$$.dir 2>/dev/null 1091114ddf674Smrg 1091214ddf674Smrg 1091314ddf674Smrg# as_fn_mkdir_p 1091414ddf674Smrg# ------------- 1091514ddf674Smrg# Create "$as_dir" as a directory, including parents if necessary. 1091614ddf674Smrgas_fn_mkdir_p () 1091714ddf674Smrg{ 1091814ddf674Smrg 1091914ddf674Smrg case $as_dir in #( 1092014ddf674Smrg -*) as_dir=./$as_dir;; 1092114ddf674Smrg esac 1092214ddf674Smrg test -d "$as_dir" || eval $as_mkdir_p || { 1092314ddf674Smrg as_dirs= 1092414ddf674Smrg while :; do 1092514ddf674Smrg case $as_dir in #( 1092614ddf674Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 1092714ddf674Smrg *) as_qdir=$as_dir;; 1092814ddf674Smrg esac 1092914ddf674Smrg as_dirs="'$as_qdir' $as_dirs" 1093014ddf674Smrg as_dir=`$as_dirname -- "$as_dir" || 1093114ddf674Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1093214ddf674Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 1093314ddf674Smrg X"$as_dir" : 'X\(//\)$' \| \ 1093414ddf674Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 1093514ddf674Smrg$as_echo X"$as_dir" | 1093614ddf674Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1093714ddf674Smrg s//\1/ 1093814ddf674Smrg q 1093914ddf674Smrg } 1094014ddf674Smrg /^X\(\/\/\)[^/].*/{ 1094114ddf674Smrg s//\1/ 1094214ddf674Smrg q 1094314ddf674Smrg } 1094414ddf674Smrg /^X\(\/\/\)$/{ 1094514ddf674Smrg s//\1/ 1094614ddf674Smrg q 1094714ddf674Smrg } 1094814ddf674Smrg /^X\(\/\).*/{ 1094914ddf674Smrg s//\1/ 1095014ddf674Smrg q 1095114ddf674Smrg } 1095214ddf674Smrg s/.*/./; q'` 1095314ddf674Smrg test -d "$as_dir" && break 1095414ddf674Smrg done 1095514ddf674Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 109566758a055Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10957cacd992dSmrg 1095814ddf674Smrg 1095914ddf674Smrg} # as_fn_mkdir_p 10960cacd992dSmrgif mkdir -p . 2>/dev/null; then 1096114ddf674Smrg as_mkdir_p='mkdir -p "$as_dir"' 10962cacd992dSmrgelse 10963cacd992dSmrg test -d ./-p && rmdir ./-p 10964cacd992dSmrg as_mkdir_p=false 10965cacd992dSmrgfi 1096614ddf674Smrg 1096714ddf674Smrgif test -x / >/dev/null 2>&1; then 1096814ddf674Smrg as_test_x='test -x' 1096914ddf674Smrgelse 1097014ddf674Smrg if ls -dL / >/dev/null 2>&1; then 1097114ddf674Smrg as_ls_L_option=L 1097214ddf674Smrg else 1097314ddf674Smrg as_ls_L_option= 1097414ddf674Smrg fi 1097514ddf674Smrg as_test_x=' 1097614ddf674Smrg eval sh -c '\'' 1097714ddf674Smrg if test -d "$1"; then 1097814ddf674Smrg test -d "$1/."; 1097914ddf674Smrg else 1098014ddf674Smrg case $1 in #( 1098114ddf674Smrg -*)set "./$1";; 1098214ddf674Smrg esac; 1098314ddf674Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 1098414ddf674Smrg ???[sx]*):;;*)false;;esac;fi 1098514ddf674Smrg '\'' sh 1098614ddf674Smrg ' 1098714ddf674Smrgfi 1098814ddf674Smrgas_executable_p=$as_test_x 10989cacd992dSmrg 10990cacd992dSmrg# Sed expression to map a string onto a valid CPP name. 10991cacd992dSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10992cacd992dSmrg 10993cacd992dSmrg# Sed expression to map a string onto a valid variable name. 10994cacd992dSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10995cacd992dSmrg 10996cacd992dSmrg 10997cacd992dSmrgexec 6>&1 1099814ddf674Smrg## ----------------------------------- ## 1099914ddf674Smrg## Main body of $CONFIG_STATUS script. ## 1100014ddf674Smrg## ----------------------------------- ## 1100114ddf674Smrg_ASEOF 1100214ddf674Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 1100314ddf674Smrg 1100414ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1100514ddf674Smrg# Save the log message, to keep $0 and so on meaningful, and to 11006cacd992dSmrg# report actual input values of CONFIG_FILES etc. instead of their 1100714ddf674Smrg# values after options handling. 1100814ddf674Smrgac_log=" 110096758a055SmrgThis file was extended by xvidtune $as_me 1.0.3, which was 110106758a055Smrggenerated by GNU Autoconf 2.68. Invocation command line was 11011cacd992dSmrg 11012cacd992dSmrg CONFIG_FILES = $CONFIG_FILES 11013cacd992dSmrg CONFIG_HEADERS = $CONFIG_HEADERS 11014cacd992dSmrg CONFIG_LINKS = $CONFIG_LINKS 11015cacd992dSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 11016cacd992dSmrg $ $0 $@ 11017cacd992dSmrg 1101814ddf674Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 1101914ddf674Smrg" 1102014ddf674Smrg 11021cacd992dSmrg_ACEOF 11022cacd992dSmrg 1102314ddf674Smrgcase $ac_config_files in *" 1102414ddf674Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 1102514ddf674Smrgesac 11026cacd992dSmrg 1102714ddf674Smrgcase $ac_config_headers in *" 1102814ddf674Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 1102914ddf674Smrgesac 11030cacd992dSmrg 11031cacd992dSmrg 1103214ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1103314ddf674Smrg# Files that config.status was made for. 1103414ddf674Smrgconfig_files="$ac_config_files" 1103514ddf674Smrgconfig_headers="$ac_config_headers" 1103614ddf674Smrgconfig_commands="$ac_config_commands" 11037cacd992dSmrg 1103814ddf674Smrg_ACEOF 11039cacd992dSmrg 1104014ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11041cacd992dSmrgac_cs_usage="\ 1104214ddf674Smrg\`$as_me' instantiates files and other configuration actions 1104314ddf674Smrgfrom templates according to the current configuration. Unless the files 1104414ddf674Smrgand actions are specified as TAGs, all are instantiated by default. 11045cacd992dSmrg 1104614ddf674SmrgUsage: $0 [OPTION]... [TAG]... 11047cacd992dSmrg 11048cacd992dSmrg -h, --help print this help, then exit 1104914ddf674Smrg -V, --version print version number and configuration settings, then exit 1105014ddf674Smrg --config print configuration, then exit 1105114ddf674Smrg -q, --quiet, --silent 1105214ddf674Smrg do not print progress messages 11053cacd992dSmrg -d, --debug don't remove temporary files 11054cacd992dSmrg --recheck update $as_me by reconfiguring in the same conditions 1105514ddf674Smrg --file=FILE[:TEMPLATE] 1105614ddf674Smrg instantiate the configuration file FILE 1105714ddf674Smrg --header=FILE[:TEMPLATE] 1105814ddf674Smrg instantiate the configuration header FILE 11059cacd992dSmrg 11060cacd992dSmrgConfiguration files: 11061cacd992dSmrg$config_files 11062cacd992dSmrg 11063cacd992dSmrgConfiguration headers: 11064cacd992dSmrg$config_headers 11065cacd992dSmrg 11066cacd992dSmrgConfiguration commands: 11067cacd992dSmrg$config_commands 11068cacd992dSmrg 1106914ddf674SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11070cacd992dSmrg 1107114ddf674Smrg_ACEOF 1107214ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1107314ddf674Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11074cacd992dSmrgac_cs_version="\\ 110756758a055Smrgxvidtune config.status 1.0.3 110766758a055Smrgconfigured by $0, generated by GNU Autoconf 2.68, 1107714ddf674Smrg with options \\"\$ac_cs_config\\" 11078cacd992dSmrg 110796758a055SmrgCopyright (C) 2010 Free Software Foundation, Inc. 11080cacd992dSmrgThis config.status script is free software; the Free Software Foundation 11081cacd992dSmrggives unlimited permission to copy, distribute and modify it." 1108214ddf674Smrg 1108314ddf674Smrgac_pwd='$ac_pwd' 1108414ddf674Smrgsrcdir='$srcdir' 1108514ddf674SmrgINSTALL='$INSTALL' 1108614ddf674SmrgMKDIR_P='$MKDIR_P' 1108714ddf674SmrgAWK='$AWK' 1108814ddf674Smrgtest -n "\$AWK" || AWK=awk 11089cacd992dSmrg_ACEOF 11090cacd992dSmrg 1109114ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1109214ddf674Smrg# The default lists apply if the user does not specify any file. 11093cacd992dSmrgac_need_defaults=: 11094cacd992dSmrgwhile test $# != 0 11095cacd992dSmrgdo 11096cacd992dSmrg case $1 in 110976758a055Smrg --*=?*) 1109814ddf674Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1109914ddf674Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11100cacd992dSmrg ac_shift=: 11101cacd992dSmrg ;; 111026758a055Smrg --*=) 111036758a055Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 111046758a055Smrg ac_optarg= 111056758a055Smrg ac_shift=: 111066758a055Smrg ;; 1110714ddf674Smrg *) 11108cacd992dSmrg ac_option=$1 11109cacd992dSmrg ac_optarg=$2 11110cacd992dSmrg ac_shift=shift 11111cacd992dSmrg ;; 11112cacd992dSmrg esac 11113cacd992dSmrg 11114cacd992dSmrg case $ac_option in 11115cacd992dSmrg # Handling of the options. 11116cacd992dSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11117cacd992dSmrg ac_cs_recheck=: ;; 1111814ddf674Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 1111914ddf674Smrg $as_echo "$ac_cs_version"; exit ;; 1112014ddf674Smrg --config | --confi | --conf | --con | --co | --c ) 1112114ddf674Smrg $as_echo "$ac_cs_config"; exit ;; 1112214ddf674Smrg --debug | --debu | --deb | --de | --d | -d ) 11123cacd992dSmrg debug=: ;; 11124cacd992dSmrg --file | --fil | --fi | --f ) 11125cacd992dSmrg $ac_shift 1112614ddf674Smrg case $ac_optarg in 1112714ddf674Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 111286758a055Smrg '') as_fn_error $? "missing file argument" ;; 1112914ddf674Smrg esac 1113014ddf674Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 11131cacd992dSmrg ac_need_defaults=false;; 11132cacd992dSmrg --header | --heade | --head | --hea ) 11133cacd992dSmrg $ac_shift 1113414ddf674Smrg case $ac_optarg in 1113514ddf674Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1113614ddf674Smrg esac 1113714ddf674Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11138cacd992dSmrg ac_need_defaults=false;; 1113914ddf674Smrg --he | --h) 1114014ddf674Smrg # Conflict between --help and --header 111416758a055Smrg as_fn_error $? "ambiguous option: \`$1' 1114214ddf674SmrgTry \`$0 --help' for more information.";; 1114314ddf674Smrg --help | --hel | -h ) 1114414ddf674Smrg $as_echo "$ac_cs_usage"; exit ;; 11145cacd992dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11146cacd992dSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 11147cacd992dSmrg ac_cs_silent=: ;; 11148cacd992dSmrg 11149cacd992dSmrg # This is an error. 111506758a055Smrg -*) as_fn_error $? "unrecognized option: \`$1' 1115114ddf674SmrgTry \`$0 --help' for more information." ;; 11152cacd992dSmrg 1115314ddf674Smrg *) as_fn_append ac_config_targets " $1" 1115414ddf674Smrg ac_need_defaults=false ;; 11155cacd992dSmrg 11156cacd992dSmrg esac 11157cacd992dSmrg shift 11158cacd992dSmrgdone 11159cacd992dSmrg 11160cacd992dSmrgac_configure_extra_args= 11161cacd992dSmrg 11162cacd992dSmrgif $ac_cs_silent; then 11163cacd992dSmrg exec 6>/dev/null 11164cacd992dSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 11165cacd992dSmrgfi 11166cacd992dSmrg 11167cacd992dSmrg_ACEOF 1116814ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11169cacd992dSmrgif \$ac_cs_recheck; then 1117014ddf674Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 1117114ddf674Smrg shift 1117214ddf674Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 1117314ddf674Smrg CONFIG_SHELL='$SHELL' 1117414ddf674Smrg export CONFIG_SHELL 1117514ddf674Smrg exec "\$@" 11176cacd992dSmrgfi 11177cacd992dSmrg 11178cacd992dSmrg_ACEOF 1117914ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1118014ddf674Smrgexec 5>>config.log 1118114ddf674Smrg{ 1118214ddf674Smrg echo 1118314ddf674Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 1118414ddf674Smrg## Running $as_me. ## 1118514ddf674Smrg_ASBOX 1118614ddf674Smrg $as_echo "$ac_log" 1118714ddf674Smrg} >&5 11188cacd992dSmrg 1118914ddf674Smrg_ACEOF 1119014ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11191cacd992dSmrg# 1119214ddf674Smrg# INIT-COMMANDS 11193cacd992dSmrg# 11194cacd992dSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11195cacd992dSmrg 11196cacd992dSmrg_ACEOF 11197cacd992dSmrg 1119814ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11199cacd992dSmrg 1120014ddf674Smrg# Handling of arguments. 11201cacd992dSmrgfor ac_config_target in $ac_config_targets 11202cacd992dSmrgdo 1120314ddf674Smrg case $ac_config_target in 1120414ddf674Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 112056758a055Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 1120614ddf674Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 112076758a055Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 1120814ddf674Smrg 112096758a055Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11210cacd992dSmrg esac 11211cacd992dSmrgdone 11212cacd992dSmrg 1121314ddf674Smrg 11214cacd992dSmrg# If the user did not use the arguments to specify the items to instantiate, 11215cacd992dSmrg# then the envvar interface is used. Set only those that are not. 11216cacd992dSmrg# We use the long form for the default assignment because of an extremely 11217cacd992dSmrg# bizarre bug on SunOS 4.1.3. 11218cacd992dSmrgif $ac_need_defaults; then 11219cacd992dSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11220cacd992dSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11221cacd992dSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11222cacd992dSmrgfi 11223cacd992dSmrg 11224cacd992dSmrg# Have a temporary directory for convenience. Make it in the build tree 1122514ddf674Smrg# simply because there is no reason against having it here, and in addition, 11226cacd992dSmrg# creating and moving files from /tmp can sometimes cause problems. 1122714ddf674Smrg# Hook for its removal unless debugging. 1122814ddf674Smrg# Note that there is a small window in which the directory will not be cleaned: 1122914ddf674Smrg# after its creation but before its name has been assigned to `$tmp'. 11230cacd992dSmrg$debug || 11231cacd992dSmrg{ 112326758a055Smrg tmp= ac_tmp= 1123314ddf674Smrg trap 'exit_status=$? 112346758a055Smrg : "${ac_tmp:=$tmp}" 112356758a055Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 1123614ddf674Smrg' 0 1123714ddf674Smrg trap 'as_fn_exit 1' 1 2 13 15 11238cacd992dSmrg} 11239cacd992dSmrg# Create a (secure) tmp directory for tmp files. 11240cacd992dSmrg 11241cacd992dSmrg{ 1124214ddf674Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 112436758a055Smrg test -d "$tmp" 11244cacd992dSmrg} || 11245cacd992dSmrg{ 1124614ddf674Smrg tmp=./conf$$-$RANDOM 1124714ddf674Smrg (umask 077 && mkdir "$tmp") 112486758a055Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 112496758a055Smrgac_tmp=$tmp 1125014ddf674Smrg 1125114ddf674Smrg# Set up the scripts for CONFIG_FILES section. 1125214ddf674Smrg# No need to generate them if there are no CONFIG_FILES. 1125314ddf674Smrg# This happens for instance with `./config.status config.h'. 1125414ddf674Smrgif test -n "$CONFIG_FILES"; then 1125514ddf674Smrg 1125614ddf674Smrg 1125714ddf674Smrgac_cr=`echo X | tr X '\015'` 1125814ddf674Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 1125914ddf674Smrg# But we know of no other shell where ac_cr would be empty at this 1126014ddf674Smrg# point, so we can use a bashism as a fallback. 1126114ddf674Smrgif test "x$ac_cr" = x; then 1126214ddf674Smrg eval ac_cr=\$\'\\r\' 1126314ddf674Smrgfi 1126414ddf674Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 1126514ddf674Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 112666758a055Smrg ac_cs_awk_cr='\\r' 1126714ddf674Smrgelse 1126814ddf674Smrg ac_cs_awk_cr=$ac_cr 1126914ddf674Smrgfi 1127014ddf674Smrg 112716758a055Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 1127214ddf674Smrg_ACEOF 1127314ddf674Smrg 1127414ddf674Smrg 11275cacd992dSmrg{ 1127614ddf674Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 1127714ddf674Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 1127814ddf674Smrg echo "_ACEOF" 1127914ddf674Smrg} >conf$$subs.sh || 112806758a055Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 112816758a055Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 1128214ddf674Smrgac_delim='%!_!# ' 1128314ddf674Smrgfor ac_last_try in false false false false false :; do 1128414ddf674Smrg . ./conf$$subs.sh || 112856758a055Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1128614ddf674Smrg 1128714ddf674Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 1128814ddf674Smrg if test $ac_delim_n = $ac_delim_num; then 1128914ddf674Smrg break 1129014ddf674Smrg elif $ac_last_try; then 112916758a055Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1129214ddf674Smrg else 1129314ddf674Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 1129414ddf674Smrg fi 1129514ddf674Smrgdone 1129614ddf674Smrgrm -f conf$$subs.sh 11297cacd992dSmrg 1129814ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 112996758a055Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11300cacd992dSmrg_ACEOF 1130114ddf674Smrgsed -n ' 1130214ddf674Smrgh 1130314ddf674Smrgs/^/S["/; s/!.*/"]=/ 1130414ddf674Smrgp 1130514ddf674Smrgg 1130614ddf674Smrgs/^[^!]*!// 1130714ddf674Smrg:repl 1130814ddf674Smrgt repl 1130914ddf674Smrgs/'"$ac_delim"'$// 1131014ddf674Smrgt delim 1131114ddf674Smrg:nl 1131214ddf674Smrgh 1131314ddf674Smrgs/\(.\{148\}\)..*/\1/ 1131414ddf674Smrgt more1 1131514ddf674Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 1131614ddf674Smrgp 1131714ddf674Smrgn 1131814ddf674Smrgb repl 1131914ddf674Smrg:more1 1132014ddf674Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 1132114ddf674Smrgp 1132214ddf674Smrgg 1132314ddf674Smrgs/.\{148\}// 1132414ddf674Smrgt nl 1132514ddf674Smrg:delim 1132614ddf674Smrgh 1132714ddf674Smrgs/\(.\{148\}\)..*/\1/ 1132814ddf674Smrgt more2 1132914ddf674Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 1133014ddf674Smrgp 1133114ddf674Smrgb 1133214ddf674Smrg:more2 1133314ddf674Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 1133414ddf674Smrgp 1133514ddf674Smrgg 1133614ddf674Smrgs/.\{148\}// 1133714ddf674Smrgt delim 1133814ddf674Smrg' <conf$$subs.awk | sed ' 1133914ddf674Smrg/^[^""]/{ 1134014ddf674Smrg N 1134114ddf674Smrg s/\n// 1134214ddf674Smrg} 1134314ddf674Smrg' >>$CONFIG_STATUS || ac_write_fail=1 1134414ddf674Smrgrm -f conf$$subs.awk 1134514ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1134614ddf674Smrg_ACAWK 113476758a055Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 1134814ddf674Smrg for (key in S) S_is_set[key] = 1 1134914ddf674Smrg FS = "" 11350cacd992dSmrg 1135114ddf674Smrg} 1135214ddf674Smrg{ 1135314ddf674Smrg line = $ 0 1135414ddf674Smrg nfields = split(line, field, "@") 1135514ddf674Smrg substed = 0 1135614ddf674Smrg len = length(field[1]) 1135714ddf674Smrg for (i = 2; i < nfields; i++) { 1135814ddf674Smrg key = field[i] 1135914ddf674Smrg keylen = length(key) 1136014ddf674Smrg if (S_is_set[key]) { 1136114ddf674Smrg value = S[key] 1136214ddf674Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 1136314ddf674Smrg len += length(value) + length(field[++i]) 1136414ddf674Smrg substed = 1 1136514ddf674Smrg } else 1136614ddf674Smrg len += 1 + keylen 1136714ddf674Smrg } 1136814ddf674Smrg 1136914ddf674Smrg print line 1137014ddf674Smrg} 11371cacd992dSmrg 1137214ddf674Smrg_ACAWK 1137314ddf674Smrg_ACEOF 1137414ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1137514ddf674Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 1137614ddf674Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 1137714ddf674Smrgelse 1137814ddf674Smrg cat 113796758a055Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 113806758a055Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 1138114ddf674Smrg_ACEOF 1138214ddf674Smrg 113836758a055Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 113846758a055Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 1138514ddf674Smrg# trailing colons and then remove the whole line if VPATH becomes empty 1138614ddf674Smrg# (actually we leave an empty line to preserve line numbers). 1138714ddf674Smrgif test "x$srcdir" = x.; then 113886758a055Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 113896758a055Smrgh 113906758a055Smrgs/// 113916758a055Smrgs/^/:/ 113926758a055Smrgs/[ ]*$/:/ 113936758a055Smrgs/:\$(srcdir):/:/g 113946758a055Smrgs/:\${srcdir}:/:/g 113956758a055Smrgs/:@srcdir@:/:/g 113966758a055Smrgs/^:*// 1139714ddf674Smrgs/:*$// 113986758a055Smrgx 113996758a055Smrgs/\(=[ ]*\).*/\1/ 114006758a055SmrgG 114016758a055Smrgs/\n// 1140214ddf674Smrgs/^[^=]*=[ ]*$// 1140314ddf674Smrg}' 1140414ddf674Smrgfi 11405cacd992dSmrg 1140614ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1140714ddf674Smrgfi # test -n "$CONFIG_FILES" 11408cacd992dSmrg 1140914ddf674Smrg# Set up the scripts for CONFIG_HEADERS section. 1141014ddf674Smrg# No need to generate them if there are no CONFIG_HEADERS. 1141114ddf674Smrg# This happens for instance with `./config.status Makefile'. 1141214ddf674Smrgif test -n "$CONFIG_HEADERS"; then 114136758a055Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 1141414ddf674SmrgBEGIN { 11415cacd992dSmrg_ACEOF 11416cacd992dSmrg 1141714ddf674Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 1141814ddf674Smrg# here-document in config.status, that substitutes the proper values into 1141914ddf674Smrg# config.h.in to produce config.h. 1142014ddf674Smrg 1142114ddf674Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 1142214ddf674Smrg# handling of long lines. 1142314ddf674Smrgac_delim='%!_!# ' 1142414ddf674Smrgfor ac_last_try in false false :; do 114256758a055Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 114266758a055Smrg if test -z "$ac_tt"; then 1142714ddf674Smrg break 1142814ddf674Smrg elif $ac_last_try; then 114296758a055Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 1143014ddf674Smrg else 1143114ddf674Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11432cacd992dSmrg fi 1143314ddf674Smrgdone 11434cacd992dSmrg 1143514ddf674Smrg# For the awk script, D is an array of macro values keyed by name, 1143614ddf674Smrg# likewise P contains macro parameters if any. Preserve backslash 1143714ddf674Smrg# newline sequences. 1143814ddf674Smrg 1143914ddf674Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 1144014ddf674Smrgsed -n ' 1144114ddf674Smrgs/.\{148\}/&'"$ac_delim"'/g 1144214ddf674Smrgt rset 1144314ddf674Smrg:rset 1144414ddf674Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 1144514ddf674Smrgt def 1144614ddf674Smrgd 1144714ddf674Smrg:def 1144814ddf674Smrgs/\\$// 1144914ddf674Smrgt bsnl 1145014ddf674Smrgs/["\\]/\\&/g 1145114ddf674Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 1145214ddf674SmrgD["\1"]=" \3"/p 1145314ddf674Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 1145414ddf674Smrgd 1145514ddf674Smrg:bsnl 1145614ddf674Smrgs/["\\]/\\&/g 1145714ddf674Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 1145814ddf674SmrgD["\1"]=" \3\\\\\\n"\\/p 1145914ddf674Smrgt cont 1146014ddf674Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 1146114ddf674Smrgt cont 1146214ddf674Smrgd 1146314ddf674Smrg:cont 1146414ddf674Smrgn 1146514ddf674Smrgs/.\{148\}/&'"$ac_delim"'/g 1146614ddf674Smrgt clear 1146714ddf674Smrg:clear 1146814ddf674Smrgs/\\$// 1146914ddf674Smrgt bsnlc 1147014ddf674Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 1147114ddf674Smrgd 1147214ddf674Smrg:bsnlc 1147314ddf674Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 1147414ddf674Smrgb cont 1147514ddf674Smrg' <confdefs.h | sed ' 1147614ddf674Smrgs/'"$ac_delim"'/"\\\ 1147714ddf674Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 1147814ddf674Smrg 1147914ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1148014ddf674Smrg for (key in D) D_is_set[key] = 1 1148114ddf674Smrg FS = "" 1148214ddf674Smrg} 1148314ddf674Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 1148414ddf674Smrg line = \$ 0 1148514ddf674Smrg split(line, arg, " ") 1148614ddf674Smrg if (arg[1] == "#") { 1148714ddf674Smrg defundef = arg[2] 1148814ddf674Smrg mac1 = arg[3] 1148914ddf674Smrg } else { 1149014ddf674Smrg defundef = substr(arg[1], 2) 1149114ddf674Smrg mac1 = arg[2] 1149214ddf674Smrg } 1149314ddf674Smrg split(mac1, mac2, "(") #) 1149414ddf674Smrg macro = mac2[1] 1149514ddf674Smrg prefix = substr(line, 1, index(line, defundef) - 1) 1149614ddf674Smrg if (D_is_set[macro]) { 1149714ddf674Smrg # Preserve the white space surrounding the "#". 1149814ddf674Smrg print prefix "define", macro P[macro] D[macro] 1149914ddf674Smrg next 1150014ddf674Smrg } else { 1150114ddf674Smrg # Replace #undef with comments. This is necessary, for example, 1150214ddf674Smrg # in the case of _POSIX_SOURCE, which is predefined and required 1150314ddf674Smrg # on some systems where configure will not decide to define it. 1150414ddf674Smrg if (defundef == "undef") { 1150514ddf674Smrg print "/*", prefix defundef, macro, "*/" 1150614ddf674Smrg next 1150714ddf674Smrg } 1150814ddf674Smrg } 1150914ddf674Smrg} 1151014ddf674Smrg{ print } 1151114ddf674Smrg_ACAWK 11512cacd992dSmrg_ACEOF 1151314ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 115146758a055Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 1151514ddf674Smrgfi # test -n "$CONFIG_HEADERS" 1151614ddf674Smrg 1151714ddf674Smrg 1151814ddf674Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 1151914ddf674Smrgshift 1152014ddf674Smrgfor ac_tag 1152114ddf674Smrgdo 1152214ddf674Smrg case $ac_tag in 1152314ddf674Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 1152414ddf674Smrg esac 1152514ddf674Smrg case $ac_mode$ac_tag in 1152614ddf674Smrg :[FHL]*:*);; 115276758a055Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 1152814ddf674Smrg :[FH]-) ac_tag=-:-;; 1152914ddf674Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 1153014ddf674Smrg esac 1153114ddf674Smrg ac_save_IFS=$IFS 1153214ddf674Smrg IFS=: 1153314ddf674Smrg set x $ac_tag 1153414ddf674Smrg IFS=$ac_save_IFS 1153514ddf674Smrg shift 1153614ddf674Smrg ac_file=$1 1153714ddf674Smrg shift 1153814ddf674Smrg 1153914ddf674Smrg case $ac_mode in 1154014ddf674Smrg :L) ac_source=$1;; 1154114ddf674Smrg :[FH]) 1154214ddf674Smrg ac_file_inputs= 1154314ddf674Smrg for ac_f 1154414ddf674Smrg do 1154514ddf674Smrg case $ac_f in 115466758a055Smrg -) ac_f="$ac_tmp/stdin";; 1154714ddf674Smrg *) # Look for the file first in the build tree, then in the source tree 1154814ddf674Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 1154914ddf674Smrg # because $ac_f cannot contain `:'. 1155014ddf674Smrg test -f "$ac_f" || 1155114ddf674Smrg case $ac_f in 1155214ddf674Smrg [\\/$]*) false;; 1155314ddf674Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 1155414ddf674Smrg esac || 115556758a055Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 1155614ddf674Smrg esac 1155714ddf674Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 1155814ddf674Smrg as_fn_append ac_file_inputs " '$ac_f'" 1155914ddf674Smrg done 1156014ddf674Smrg 1156114ddf674Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 1156214ddf674Smrg # use $as_me), people would be surprised to read: 1156314ddf674Smrg # /* config.h. Generated by config.status. */ 1156414ddf674Smrg configure_input='Generated from '` 1156514ddf674Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 1156614ddf674Smrg `' by configure.' 1156714ddf674Smrg if test x"$ac_file" != x-; then 1156814ddf674Smrg configure_input="$ac_file. $configure_input" 1156914ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 1157014ddf674Smrg$as_echo "$as_me: creating $ac_file" >&6;} 1157114ddf674Smrg fi 1157214ddf674Smrg # Neutralize special characters interpreted by sed in replacement strings. 1157314ddf674Smrg case $configure_input in #( 1157414ddf674Smrg *\&* | *\|* | *\\* ) 1157514ddf674Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 1157614ddf674Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 1157714ddf674Smrg *) ac_sed_conf_input=$configure_input;; 1157814ddf674Smrg esac 1157914ddf674Smrg 1158014ddf674Smrg case $ac_tag in 115816758a055Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 115826758a055Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 1158314ddf674Smrg esac 1158414ddf674Smrg ;; 11585cacd992dSmrg esac 11586cacd992dSmrg 1158714ddf674Smrg ac_dir=`$as_dirname -- "$ac_file" || 11588cacd992dSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11589cacd992dSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 11590cacd992dSmrg X"$ac_file" : 'X\(//\)$' \| \ 1159114ddf674Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 1159214ddf674Smrg$as_echo X"$ac_file" | 1159314ddf674Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1159414ddf674Smrg s//\1/ 1159514ddf674Smrg q 1159614ddf674Smrg } 1159714ddf674Smrg /^X\(\/\/\)[^/].*/{ 1159814ddf674Smrg s//\1/ 1159914ddf674Smrg q 1160014ddf674Smrg } 1160114ddf674Smrg /^X\(\/\/\)$/{ 1160214ddf674Smrg s//\1/ 1160314ddf674Smrg q 1160414ddf674Smrg } 1160514ddf674Smrg /^X\(\/\).*/{ 1160614ddf674Smrg s//\1/ 1160714ddf674Smrg q 1160814ddf674Smrg } 1160914ddf674Smrg s/.*/./; q'` 1161014ddf674Smrg as_dir="$ac_dir"; as_fn_mkdir_p 11611cacd992dSmrg ac_builddir=. 11612cacd992dSmrg 1161314ddf674Smrgcase "$ac_dir" in 1161414ddf674Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1161514ddf674Smrg*) 1161614ddf674Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1161714ddf674Smrg # A ".." for each directory in $ac_dir_suffix. 1161814ddf674Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1161914ddf674Smrg case $ac_top_builddir_sub in 1162014ddf674Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1162114ddf674Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1162214ddf674Smrg esac ;; 1162314ddf674Smrgesac 1162414ddf674Smrgac_abs_top_builddir=$ac_pwd 1162514ddf674Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1162614ddf674Smrg# for backward compatibility: 1162714ddf674Smrgac_top_builddir=$ac_top_build_prefix 11628cacd992dSmrg 11629cacd992dSmrgcase $srcdir in 1163014ddf674Smrg .) # We are building in place. 11631cacd992dSmrg ac_srcdir=. 1163214ddf674Smrg ac_top_srcdir=$ac_top_builddir_sub 1163314ddf674Smrg ac_abs_top_srcdir=$ac_pwd ;; 1163414ddf674Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 11635cacd992dSmrg ac_srcdir=$srcdir$ac_dir_suffix; 1163614ddf674Smrg ac_top_srcdir=$srcdir 1163714ddf674Smrg ac_abs_top_srcdir=$srcdir ;; 1163814ddf674Smrg *) # Relative name. 1163914ddf674Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1164014ddf674Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1164114ddf674Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11642cacd992dSmrgesac 1164314ddf674Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11644cacd992dSmrg 11645cacd992dSmrg 1164614ddf674Smrg case $ac_mode in 1164714ddf674Smrg :F) 1164814ddf674Smrg # 1164914ddf674Smrg # CONFIG_FILE 1165014ddf674Smrg # 11651cacd992dSmrg 11652cacd992dSmrg case $INSTALL in 11653cacd992dSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 1165414ddf674Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 1165514ddf674Smrg esac 1165614ddf674Smrg ac_MKDIR_P=$MKDIR_P 1165714ddf674Smrg case $MKDIR_P in 1165814ddf674Smrg [\\/$]* | ?:[\\/]* ) ;; 1165914ddf674Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11660cacd992dSmrg esac 1166114ddf674Smrg_ACEOF 11662cacd992dSmrg 1166314ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1166414ddf674Smrg# If the template does not know about datarootdir, expand it. 1166514ddf674Smrg# FIXME: This hack should be removed a few years after 2.60. 1166614ddf674Smrgac_datarootdir_hack=; ac_datarootdir_seen= 1166714ddf674Smrgac_sed_dataroot=' 1166814ddf674Smrg/datarootdir/ { 1166914ddf674Smrg p 1167014ddf674Smrg q 1167114ddf674Smrg} 1167214ddf674Smrg/@datadir@/p 1167314ddf674Smrg/@docdir@/p 1167414ddf674Smrg/@infodir@/p 1167514ddf674Smrg/@localedir@/p 1167614ddf674Smrg/@mandir@/p' 1167714ddf674Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 1167814ddf674Smrg*datarootdir*) ac_datarootdir_seen=yes;; 1167914ddf674Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 1168014ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 1168114ddf674Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 1168214ddf674Smrg_ACEOF 1168314ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1168414ddf674Smrg ac_datarootdir_hack=' 1168514ddf674Smrg s&@datadir@&$datadir&g 1168614ddf674Smrg s&@docdir@&$docdir&g 1168714ddf674Smrg s&@infodir@&$infodir&g 1168814ddf674Smrg s&@localedir@&$localedir&g 1168914ddf674Smrg s&@mandir@&$mandir&g 1169014ddf674Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 1169114ddf674Smrgesac 11692cacd992dSmrg_ACEOF 1169314ddf674Smrg 1169414ddf674Smrg# Neutralize VPATH when `$srcdir' = `.'. 1169514ddf674Smrg# Shell code in configure.ac might set extrasub. 1169614ddf674Smrg# FIXME: do we really want to maintain this feature? 1169714ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1169814ddf674Smrgac_sed_extra="$ac_vpsub 11699cacd992dSmrg$extrasub 11700cacd992dSmrg_ACEOF 1170114ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11702cacd992dSmrg:t 11703cacd992dSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 1170414ddf674Smrgs|@configure_input@|$ac_sed_conf_input|;t t 1170514ddf674Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 1170614ddf674Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 1170714ddf674Smrgs&@srcdir@&$ac_srcdir&;t t 1170814ddf674Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 1170914ddf674Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 1171014ddf674Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 1171114ddf674Smrgs&@builddir@&$ac_builddir&;t t 1171214ddf674Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 1171314ddf674Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 1171414ddf674Smrgs&@INSTALL@&$ac_INSTALL&;t t 1171514ddf674Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 1171614ddf674Smrg$ac_datarootdir_hack 1171714ddf674Smrg" 117186758a055Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 117196758a055Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1172014ddf674Smrg 1172114ddf674Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 117226758a055Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 117236758a055Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 117246758a055Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 1172514ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 117266758a055Smrgwhich seems to be undefined. Please make sure it is defined" >&5 1172714ddf674Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 117286758a055Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 1172914ddf674Smrg 117306758a055Smrg rm -f "$ac_tmp/stdin" 11731cacd992dSmrg case $ac_file in 117326758a055Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 117336758a055Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 1173414ddf674Smrg esac \ 117356758a055Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1173614ddf674Smrg ;; 1173714ddf674Smrg :H) 1173814ddf674Smrg # 1173914ddf674Smrg # CONFIG_HEADER 1174014ddf674Smrg # 11741cacd992dSmrg if test x"$ac_file" != x-; then 1174214ddf674Smrg { 1174314ddf674Smrg $as_echo "/* $configure_input */" \ 117446758a055Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 117456758a055Smrg } >"$ac_tmp/config.h" \ 117466758a055Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 117476758a055Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 1174814ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 1174914ddf674Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 11750cacd992dSmrg else 1175114ddf674Smrg rm -f "$ac_file" 117526758a055Smrg mv "$ac_tmp/config.h" "$ac_file" \ 117536758a055Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11754cacd992dSmrg fi 11755cacd992dSmrg else 1175614ddf674Smrg $as_echo "/* $configure_input */" \ 117576758a055Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 117586758a055Smrg || as_fn_error $? "could not create -" "$LINENO" 5 11759cacd992dSmrg fi 1176014ddf674Smrg# Compute "$ac_file"'s index in $config_headers. 1176114ddf674Smrg_am_arg="$ac_file" 11762cacd992dSmrg_am_stamp_count=1 11763cacd992dSmrgfor _am_header in $config_headers :; do 11764cacd992dSmrg case $_am_header in 1176514ddf674Smrg $_am_arg | $_am_arg:* ) 11766cacd992dSmrg break ;; 11767cacd992dSmrg * ) 11768cacd992dSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11769cacd992dSmrg esac 11770cacd992dSmrgdone 1177114ddf674Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 1177214ddf674Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1177314ddf674Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 1177414ddf674Smrg X"$_am_arg" : 'X\(//\)$' \| \ 1177514ddf674Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 1177614ddf674Smrg$as_echo X"$_am_arg" | 1177714ddf674Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1177814ddf674Smrg s//\1/ 1177914ddf674Smrg q 1178014ddf674Smrg } 1178114ddf674Smrg /^X\(\/\/\)[^/].*/{ 1178214ddf674Smrg s//\1/ 1178314ddf674Smrg q 1178414ddf674Smrg } 1178514ddf674Smrg /^X\(\/\/\)$/{ 1178614ddf674Smrg s//\1/ 1178714ddf674Smrg q 1178814ddf674Smrg } 1178914ddf674Smrg /^X\(\/\).*/{ 1179014ddf674Smrg s//\1/ 1179114ddf674Smrg q 1179214ddf674Smrg } 1179314ddf674Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 1179414ddf674Smrg ;; 11795cacd992dSmrg 1179614ddf674Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 1179714ddf674Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 1179814ddf674Smrg ;; 1179914ddf674Smrg esac 11800cacd992dSmrg 11801cacd992dSmrg 1180214ddf674Smrg case $ac_file$ac_mode in 1180314ddf674Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 1180414ddf674Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 1180514ddf674Smrg # are listed without --file. Let's play safe and only enable the eval 1180614ddf674Smrg # if we detect the quoting. 1180714ddf674Smrg case $CONFIG_FILES in 1180814ddf674Smrg *\'*) eval set x "$CONFIG_FILES" ;; 1180914ddf674Smrg *) set x $CONFIG_FILES ;; 1181014ddf674Smrg esac 1181114ddf674Smrg shift 1181214ddf674Smrg for mf 1181314ddf674Smrg do 1181414ddf674Smrg # Strip MF so we end up with the name of the file. 1181514ddf674Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 1181614ddf674Smrg # Check whether this is an Automake generated Makefile or not. 1181714ddf674Smrg # We used to match only the files named `Makefile.in', but 1181814ddf674Smrg # some people rename them; so instead we look at the file content. 1181914ddf674Smrg # Grep'ing the first line is not enough: some people post-process 1182014ddf674Smrg # each Makefile.in and add a new line on top of each file to say so. 1182114ddf674Smrg # Grep'ing the whole file is not good either: AIX grep has a line 1182214ddf674Smrg # limit of 2048, but all sed's we know have understand at least 4000. 1182314ddf674Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 1182414ddf674Smrg dirpart=`$as_dirname -- "$mf" || 11825cacd992dSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11826cacd992dSmrg X"$mf" : 'X\(//\)[^/]' \| \ 11827cacd992dSmrg X"$mf" : 'X\(//\)$' \| \ 1182814ddf674Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 1182914ddf674Smrg$as_echo X"$mf" | 1183014ddf674Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1183114ddf674Smrg s//\1/ 1183214ddf674Smrg q 1183314ddf674Smrg } 1183414ddf674Smrg /^X\(\/\/\)[^/].*/{ 1183514ddf674Smrg s//\1/ 1183614ddf674Smrg q 1183714ddf674Smrg } 1183814ddf674Smrg /^X\(\/\/\)$/{ 1183914ddf674Smrg s//\1/ 1184014ddf674Smrg q 1184114ddf674Smrg } 1184214ddf674Smrg /^X\(\/\).*/{ 1184314ddf674Smrg s//\1/ 1184414ddf674Smrg q 1184514ddf674Smrg } 1184614ddf674Smrg s/.*/./; q'` 1184714ddf674Smrg else 1184814ddf674Smrg continue 1184914ddf674Smrg fi 1185014ddf674Smrg # Extract the definition of DEPDIR, am__include, and am__quote 1185114ddf674Smrg # from the Makefile without running `make'. 1185214ddf674Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 1185314ddf674Smrg test -z "$DEPDIR" && continue 1185414ddf674Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 1185514ddf674Smrg test -z "am__include" && continue 1185614ddf674Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 1185714ddf674Smrg # When using ansi2knr, U may be empty or an underscore; expand it 1185814ddf674Smrg U=`sed -n 's/^U = //p' < "$mf"` 1185914ddf674Smrg # Find all dependency output files, they are included files with 1186014ddf674Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 1186114ddf674Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 1186214ddf674Smrg # expansion. 1186314ddf674Smrg for file in `sed -n " 1186414ddf674Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 1186514ddf674Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 1186614ddf674Smrg # Make sure the directory exists. 1186714ddf674Smrg test -f "$dirpart/$file" && continue 1186814ddf674Smrg fdir=`$as_dirname -- "$file" || 11869cacd992dSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11870cacd992dSmrg X"$file" : 'X\(//\)[^/]' \| \ 11871cacd992dSmrg X"$file" : 'X\(//\)$' \| \ 1187214ddf674Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 1187314ddf674Smrg$as_echo X"$file" | 1187414ddf674Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1187514ddf674Smrg s//\1/ 1187614ddf674Smrg q 1187714ddf674Smrg } 1187814ddf674Smrg /^X\(\/\/\)[^/].*/{ 1187914ddf674Smrg s//\1/ 1188014ddf674Smrg q 1188114ddf674Smrg } 1188214ddf674Smrg /^X\(\/\/\)$/{ 1188314ddf674Smrg s//\1/ 1188414ddf674Smrg q 1188514ddf674Smrg } 1188614ddf674Smrg /^X\(\/\).*/{ 1188714ddf674Smrg s//\1/ 1188814ddf674Smrg q 1188914ddf674Smrg } 1189014ddf674Smrg s/.*/./; q'` 1189114ddf674Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 1189214ddf674Smrg # echo "creating $dirpart/$file" 1189314ddf674Smrg echo '# dummy' > "$dirpart/$file" 11894cacd992dSmrg done 11895cacd992dSmrg done 1189614ddf674Smrg} 11897cacd992dSmrg ;; 1189814ddf674Smrg 11899cacd992dSmrg esac 1190014ddf674Smrgdone # for ac_tag 11901cacd992dSmrg 11902cacd992dSmrg 1190314ddf674Smrgas_fn_exit 0 11904cacd992dSmrg_ACEOF 11905cacd992dSmrgac_clean_files=$ac_clean_files_save 11906cacd992dSmrg 1190714ddf674Smrgtest $ac_write_fail = 0 || 119086758a055Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 1190914ddf674Smrg 11910cacd992dSmrg 11911cacd992dSmrg# configure is writing to config.log, and then calls config.status. 11912cacd992dSmrg# config.status does its own redirection, appending to config.log. 11913cacd992dSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 11914cacd992dSmrg# by configure, so config.status won't be able to write to it; its 11915cacd992dSmrg# output is simply discarded. So we exec the FD to /dev/null, 11916cacd992dSmrg# effectively closing config.log, so it can be properly (re)opened and 11917cacd992dSmrg# appended to by config.status. When coming back to configure, we 11918cacd992dSmrg# need to make the FD available again. 11919cacd992dSmrgif test "$no_create" != yes; then 11920cacd992dSmrg ac_cs_success=: 11921cacd992dSmrg ac_config_status_args= 11922cacd992dSmrg test "$silent" = yes && 11923cacd992dSmrg ac_config_status_args="$ac_config_status_args --quiet" 11924cacd992dSmrg exec 5>/dev/null 11925cacd992dSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11926cacd992dSmrg exec 5>>config.log 11927cacd992dSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11928cacd992dSmrg # would make configure fail if this is the last instruction. 119296758a055Smrg $ac_cs_success || as_fn_exit 1 1193014ddf674Smrgfi 1193114ddf674Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 1193214ddf674Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 1193314ddf674Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11934cacd992dSmrgfi 11935cacd992dSmrg 11936