configure revision 9d794632
19fe995a9Smrg#! /bin/sh 29fe995a9Smrg# Guess values for system-dependent variables and create Makefiles. 39d794632Smrg# Generated by GNU Autoconf 2.68 for iceauth 1.0.6. 49fe995a9Smrg# 59fe995a9Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 69fe995a9Smrg# 7b62cc08cSmrg# 89fe995a9Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9b62cc08cSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10b62cc08cSmrg# Foundation, Inc. 11b62cc08cSmrg# 12b62cc08cSmrg# 139fe995a9Smrg# This configure script is free software; the Free Software Foundation 149fe995a9Smrg# gives unlimited permission to copy, distribute and modify it. 15b62cc08cSmrg## -------------------- ## 16b62cc08cSmrg## M4sh Initialization. ## 17b62cc08cSmrg## -------------------- ## 189fe995a9Smrg 199fe995a9Smrg# Be more Bourne compatible 209fe995a9SmrgDUALCASE=1; export DUALCASE # for MKS sh 21b62cc08cSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 229fe995a9Smrg emulate sh 239fe995a9Smrg NULLCMD=: 24b62cc08cSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 259fe995a9Smrg # is contrary to our usage. Disable this feature. 269fe995a9Smrg alias -g '${1+"$@"}'='"$@"' 279fe995a9Smrg setopt NO_GLOB_SUBST 289fe995a9Smrgelse 29b62cc08cSmrg case `(set -o) 2>/dev/null` in #( 30b62cc08cSmrg *posix*) : 31b62cc08cSmrg set -o posix ;; #( 32b62cc08cSmrg *) : 33b62cc08cSmrg ;; 349fe995a9Smrgesac 359fe995a9Smrgfi 369fe995a9Smrg 379fe995a9Smrg 38b62cc08cSmrgas_nl=' 39b62cc08cSmrg' 40b62cc08cSmrgexport as_nl 41b62cc08cSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 42b62cc08cSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43b62cc08cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44b62cc08cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45b62cc08cSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 46b62cc08cSmrg# but without wasting forks for bash or zsh. 47b62cc08cSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 48b62cc08cSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49b62cc08cSmrg as_echo='print -r --' 50b62cc08cSmrg as_echo_n='print -rn --' 51b62cc08cSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52b62cc08cSmrg as_echo='printf %s\n' 53b62cc08cSmrg as_echo_n='printf %s' 54b62cc08cSmrgelse 55b62cc08cSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56b62cc08cSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57b62cc08cSmrg as_echo_n='/usr/ucb/echo -n' 589fe995a9Smrg else 59b62cc08cSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60b62cc08cSmrg as_echo_n_body='eval 61b62cc08cSmrg arg=$1; 62b62cc08cSmrg case $arg in #( 63b62cc08cSmrg *"$as_nl"*) 64b62cc08cSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 65b62cc08cSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66b62cc08cSmrg esac; 67b62cc08cSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68b62cc08cSmrg ' 69b62cc08cSmrg export as_echo_n_body 70b62cc08cSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 719fe995a9Smrg fi 72b62cc08cSmrg export as_echo_body 73b62cc08cSmrg as_echo='sh -c $as_echo_body as_echo' 749fe995a9Smrgfi 759fe995a9Smrg 76b62cc08cSmrg# The user is always right. 77b62cc08cSmrgif test "${PATH_SEPARATOR+set}" != set; then 78b62cc08cSmrg PATH_SEPARATOR=: 79b62cc08cSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80b62cc08cSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81b62cc08cSmrg PATH_SEPARATOR=';' 82b62cc08cSmrg } 839fe995a9Smrgfi 849fe995a9Smrg 859fe995a9Smrg 869fe995a9Smrg# IFS 879fe995a9Smrg# We need space, tab and new line, in precisely that order. Quoting is 889fe995a9Smrg# there to prevent editors from complaining about space-tab. 899fe995a9Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 909fe995a9Smrg# splitting by setting IFS to empty value.) 919fe995a9SmrgIFS=" "" $as_nl" 929fe995a9Smrg 939fe995a9Smrg# Find who we are. Look in the path if we contain no directory separator. 94b62cc08cSmrgas_myself= 95b62cc08cSmrgcase $0 in #(( 969fe995a9Smrg *[\\/]* ) as_myself=$0 ;; 979fe995a9Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 989fe995a9Smrgfor as_dir in $PATH 999fe995a9Smrgdo 1009fe995a9Smrg IFS=$as_save_IFS 1019fe995a9Smrg test -z "$as_dir" && as_dir=. 102b62cc08cSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103b62cc08cSmrg done 1049fe995a9SmrgIFS=$as_save_IFS 1059fe995a9Smrg 1069fe995a9Smrg ;; 1079fe995a9Smrgesac 1089fe995a9Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1099fe995a9Smrg# in which case we are not to be found in the path. 1109fe995a9Smrgif test "x$as_myself" = x; then 1119fe995a9Smrg as_myself=$0 1129fe995a9Smrgfi 1139fe995a9Smrgif test ! -f "$as_myself"; then 114b62cc08cSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115b62cc08cSmrg exit 1 1169fe995a9Smrgfi 1179fe995a9Smrg 118b62cc08cSmrg# Unset variables that we do not need and which cause bugs (e.g. in 119b62cc08cSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120b62cc08cSmrg# suppresses any "Segmentation fault" message there. '((' could 121b62cc08cSmrg# trigger a bug in pdksh 5.2.14. 122b62cc08cSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 123b62cc08cSmrgdo eval test x\${$as_var+set} = xset \ 124b62cc08cSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1259fe995a9Smrgdone 1269fe995a9SmrgPS1='$ ' 1279fe995a9SmrgPS2='> ' 1289fe995a9SmrgPS4='+ ' 1299fe995a9Smrg 1309fe995a9Smrg# NLS nuisances. 131b62cc08cSmrgLC_ALL=C 132b62cc08cSmrgexport LC_ALL 133b62cc08cSmrgLANGUAGE=C 134b62cc08cSmrgexport LANGUAGE 1359fe995a9Smrg 1369fe995a9Smrg# CDPATH. 137b62cc08cSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1389fe995a9Smrg 1399fe995a9Smrgif test "x$CONFIG_SHELL" = x; then 140b62cc08cSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141b62cc08cSmrg emulate sh 142b62cc08cSmrg NULLCMD=: 143b62cc08cSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144b62cc08cSmrg # is contrary to our usage. Disable this feature. 145b62cc08cSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 146b62cc08cSmrg setopt NO_GLOB_SUBST 1479fe995a9Smrgelse 148b62cc08cSmrg case \`(set -o) 2>/dev/null\` in #( 149b62cc08cSmrg *posix*) : 150b62cc08cSmrg set -o posix ;; #( 151b62cc08cSmrg *) : 152b62cc08cSmrg ;; 153b62cc08cSmrgesac 1549fe995a9Smrgfi 155b62cc08cSmrg" 156b62cc08cSmrg as_required="as_fn_return () { (exit \$1); } 157b62cc08cSmrgas_fn_success () { as_fn_return 0; } 158b62cc08cSmrgas_fn_failure () { as_fn_return 1; } 159b62cc08cSmrgas_fn_ret_success () { return 0; } 160b62cc08cSmrgas_fn_ret_failure () { return 1; } 1619fe995a9Smrg 1629fe995a9Smrgexitcode=0 163b62cc08cSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 164b62cc08cSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165b62cc08cSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166b62cc08cSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167b62cc08cSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1689fe995a9Smrg 1699fe995a9Smrgelse 170b62cc08cSmrg exitcode=1; echo positional parameters were not saved. 171b62cc08cSmrgfi 172b62cc08cSmrgtest x\$exitcode = x0 || exit 1" 173b62cc08cSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174b62cc08cSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175b62cc08cSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176b62cc08cSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177b62cc08cSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 178b62cc08cSmrg if (eval "$as_required") 2>/dev/null; then : 179b62cc08cSmrg as_have_required=yes 1809fe995a9Smrgelse 181b62cc08cSmrg as_have_required=no 1829fe995a9Smrgfi 183b62cc08cSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 1849fe995a9Smrg 1859fe995a9Smrgelse 186b62cc08cSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187b62cc08cSmrgas_found=false 1889fe995a9Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 1899fe995a9Smrgdo 1909fe995a9Smrg IFS=$as_save_IFS 1919fe995a9Smrg test -z "$as_dir" && as_dir=. 192b62cc08cSmrg as_found=: 193b62cc08cSmrg case $as_dir in #( 1949fe995a9Smrg /*) 1959fe995a9Smrg for as_base in sh bash ksh sh5; do 196b62cc08cSmrg # Try only shells that exist, to save several forks. 197b62cc08cSmrg as_shell=$as_dir/$as_base 198b62cc08cSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199b62cc08cSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200b62cc08cSmrg CONFIG_SHELL=$as_shell as_have_required=yes 201b62cc08cSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202b62cc08cSmrg break 2 203b62cc08cSmrgfi 204b62cc08cSmrgfi 2059fe995a9Smrg done;; 2069fe995a9Smrg esac 207b62cc08cSmrg as_found=false 2089fe995a9Smrgdone 209b62cc08cSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210b62cc08cSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211b62cc08cSmrg CONFIG_SHELL=$SHELL as_have_required=yes 212b62cc08cSmrgfi; } 2139fe995a9SmrgIFS=$as_save_IFS 2149fe995a9Smrg 2159fe995a9Smrg 216b62cc08cSmrg if test "x$CONFIG_SHELL" != x; then : 217b62cc08cSmrg # We cannot yet assume a decent shell, so we have to provide a 218b62cc08cSmrg # neutralization value for shells without unset; and this also 219b62cc08cSmrg # works around shells that cannot unset nonexistent variables. 220b62cc08cSmrg # Preserve -v and -x to the replacement shell. 221b62cc08cSmrg BASH_ENV=/dev/null 222b62cc08cSmrg ENV=/dev/null 223b62cc08cSmrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224b62cc08cSmrg export CONFIG_SHELL 225b62cc08cSmrg case $- in # (((( 226b62cc08cSmrg *v*x* | *x*v* ) as_opts=-vx ;; 227b62cc08cSmrg *v* ) as_opts=-v ;; 228b62cc08cSmrg *x* ) as_opts=-x ;; 229b62cc08cSmrg * ) as_opts= ;; 230b62cc08cSmrg esac 231b62cc08cSmrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 2329fe995a9Smrgfi 2339fe995a9Smrg 234b62cc08cSmrg if test x$as_have_required = xno; then : 235b62cc08cSmrg $as_echo "$0: This script requires a shell more modern than all" 236b62cc08cSmrg $as_echo "$0: the shells that I found on your system." 237b62cc08cSmrg if test x${ZSH_VERSION+set} = xset ; then 238b62cc08cSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239b62cc08cSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240b62cc08cSmrg else 241b62cc08cSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 242b62cc08cSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243b62cc08cSmrg$0: about your system, including any error possibly output 244b62cc08cSmrg$0: before this message. Then install a modern shell, or 245b62cc08cSmrg$0: manually run the script under such a shell if you do 246b62cc08cSmrg$0: have one." 247b62cc08cSmrg fi 248b62cc08cSmrg exit 1 2499fe995a9Smrgfi 250b62cc08cSmrgfi 251b62cc08cSmrgfi 252b62cc08cSmrgSHELL=${CONFIG_SHELL-/bin/sh} 253b62cc08cSmrgexport SHELL 254b62cc08cSmrg# Unset more variables known to interfere with behavior of common tools. 255b62cc08cSmrgCLICOLOR_FORCE= GREP_OPTIONS= 256b62cc08cSmrgunset CLICOLOR_FORCE GREP_OPTIONS 2579fe995a9Smrg 258b62cc08cSmrg## --------------------- ## 259b62cc08cSmrg## M4sh Shell Functions. ## 260b62cc08cSmrg## --------------------- ## 261b62cc08cSmrg# as_fn_unset VAR 262b62cc08cSmrg# --------------- 263b62cc08cSmrg# Portably unset VAR. 264b62cc08cSmrgas_fn_unset () 265b62cc08cSmrg{ 266b62cc08cSmrg { eval $1=; unset $1;} 2679fe995a9Smrg} 268b62cc08cSmrgas_unset=as_fn_unset 2699fe995a9Smrg 270b62cc08cSmrg# as_fn_set_status STATUS 271b62cc08cSmrg# ----------------------- 272b62cc08cSmrg# Set $? to STATUS, without forking. 273b62cc08cSmrgas_fn_set_status () 274b62cc08cSmrg{ 275b62cc08cSmrg return $1 276b62cc08cSmrg} # as_fn_set_status 2779fe995a9Smrg 278b62cc08cSmrg# as_fn_exit STATUS 279b62cc08cSmrg# ----------------- 280b62cc08cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281b62cc08cSmrgas_fn_exit () 282b62cc08cSmrg{ 283b62cc08cSmrg set +e 284b62cc08cSmrg as_fn_set_status $1 285b62cc08cSmrg exit $1 286b62cc08cSmrg} # as_fn_exit 287b62cc08cSmrg 288b62cc08cSmrg# as_fn_mkdir_p 289b62cc08cSmrg# ------------- 290b62cc08cSmrg# Create "$as_dir" as a directory, including parents if necessary. 291b62cc08cSmrgas_fn_mkdir_p () 292b62cc08cSmrg{ 2939fe995a9Smrg 294b62cc08cSmrg case $as_dir in #( 295b62cc08cSmrg -*) as_dir=./$as_dir;; 296b62cc08cSmrg esac 297b62cc08cSmrg test -d "$as_dir" || eval $as_mkdir_p || { 298b62cc08cSmrg as_dirs= 299b62cc08cSmrg while :; do 300b62cc08cSmrg case $as_dir in #( 301b62cc08cSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302b62cc08cSmrg *) as_qdir=$as_dir;; 303b62cc08cSmrg esac 304b62cc08cSmrg as_dirs="'$as_qdir' $as_dirs" 305b62cc08cSmrg as_dir=`$as_dirname -- "$as_dir" || 306b62cc08cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307b62cc08cSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 308b62cc08cSmrg X"$as_dir" : 'X\(//\)$' \| \ 309b62cc08cSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310b62cc08cSmrg$as_echo X"$as_dir" | 311b62cc08cSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312b62cc08cSmrg s//\1/ 313b62cc08cSmrg q 314b62cc08cSmrg } 315b62cc08cSmrg /^X\(\/\/\)[^/].*/{ 316b62cc08cSmrg s//\1/ 317b62cc08cSmrg q 318b62cc08cSmrg } 319b62cc08cSmrg /^X\(\/\/\)$/{ 320b62cc08cSmrg s//\1/ 321b62cc08cSmrg q 322b62cc08cSmrg } 323b62cc08cSmrg /^X\(\/\).*/{ 324b62cc08cSmrg s//\1/ 325b62cc08cSmrg q 326b62cc08cSmrg } 327b62cc08cSmrg s/.*/./; q'` 328b62cc08cSmrg test -d "$as_dir" && break 329b62cc08cSmrg done 330b62cc08cSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 331b62cc08cSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332b62cc08cSmrg 333b62cc08cSmrg 334b62cc08cSmrg} # as_fn_mkdir_p 335b62cc08cSmrg# as_fn_append VAR VALUE 336b62cc08cSmrg# ---------------------- 337b62cc08cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 338b62cc08cSmrg# advantage of any shell optimizations that allow amortized linear growth over 339b62cc08cSmrg# repeated appends, instead of the typical quadratic growth present in naive 340b62cc08cSmrg# implementations. 341b62cc08cSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342b62cc08cSmrg eval 'as_fn_append () 343b62cc08cSmrg { 344b62cc08cSmrg eval $1+=\$2 345b62cc08cSmrg }' 3469fe995a9Smrgelse 347b62cc08cSmrg as_fn_append () 348b62cc08cSmrg { 349b62cc08cSmrg eval $1=\$$1\$2 350b62cc08cSmrg } 351b62cc08cSmrgfi # as_fn_append 352b62cc08cSmrg 353b62cc08cSmrg# as_fn_arith ARG... 354b62cc08cSmrg# ------------------ 355b62cc08cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 356b62cc08cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 357b62cc08cSmrg# must be portable across $(()) and expr. 358b62cc08cSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359b62cc08cSmrg eval 'as_fn_arith () 360b62cc08cSmrg { 361b62cc08cSmrg as_val=$(( $* )) 362b62cc08cSmrg }' 3639fe995a9Smrgelse 364b62cc08cSmrg as_fn_arith () 365b62cc08cSmrg { 366b62cc08cSmrg as_val=`expr "$@" || test $? -eq 1` 367b62cc08cSmrg } 368b62cc08cSmrgfi # as_fn_arith 3699fe995a9Smrg 3709fe995a9Smrg 371b62cc08cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 372b62cc08cSmrg# ---------------------------------------- 373b62cc08cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374b62cc08cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375b62cc08cSmrg# script with STATUS, using 1 if that was 0. 376b62cc08cSmrgas_fn_error () 377b62cc08cSmrg{ 378b62cc08cSmrg as_status=$1; test $as_status -eq 0 && as_status=1 379b62cc08cSmrg if test "$4"; then 380b62cc08cSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382b62cc08cSmrg fi 383b62cc08cSmrg $as_echo "$as_me: error: $2" >&2 384b62cc08cSmrg as_fn_exit $as_status 385b62cc08cSmrg} # as_fn_error 3869fe995a9Smrg 387b62cc08cSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 388b62cc08cSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 389b62cc08cSmrg as_expr=expr 3909fe995a9Smrgelse 391b62cc08cSmrg as_expr=false 3929fe995a9Smrgfi 3939fe995a9Smrg 394b62cc08cSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395b62cc08cSmrg as_basename=basename 3969fe995a9Smrgelse 397b62cc08cSmrg as_basename=false 3989fe995a9Smrgfi 3999fe995a9Smrg 400b62cc08cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401b62cc08cSmrg as_dirname=dirname 4029fe995a9Smrgelse 403b62cc08cSmrg as_dirname=false 4049fe995a9Smrgfi 4059fe995a9Smrg 406b62cc08cSmrgas_me=`$as_basename -- "$0" || 407b62cc08cSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408b62cc08cSmrg X"$0" : 'X\(//\)$' \| \ 409b62cc08cSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 410b62cc08cSmrg$as_echo X/"$0" | 411b62cc08cSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 412b62cc08cSmrg s//\1/ 413b62cc08cSmrg q 414b62cc08cSmrg } 415b62cc08cSmrg /^X\/\(\/\/\)$/{ 416b62cc08cSmrg s//\1/ 417b62cc08cSmrg q 418b62cc08cSmrg } 419b62cc08cSmrg /^X\/\(\/\).*/{ 420b62cc08cSmrg s//\1/ 421b62cc08cSmrg q 422b62cc08cSmrg } 423b62cc08cSmrg s/.*/./; q'` 4249fe995a9Smrg 425b62cc08cSmrg# Avoid depending upon Character Ranges. 426b62cc08cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 427b62cc08cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428b62cc08cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 429b62cc08cSmrgas_cr_digits='0123456789' 430b62cc08cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4319fe995a9Smrg 4329fe995a9Smrg 433b62cc08cSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 434b62cc08cSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 435b62cc08cSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436b62cc08cSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437b62cc08cSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4389fe995a9Smrg sed -n ' 4399fe995a9Smrg p 4409fe995a9Smrg /[$]LINENO/= 4419fe995a9Smrg ' <$as_myself | 4429fe995a9Smrg sed ' 4439fe995a9Smrg s/[$]LINENO.*/&-/ 4449fe995a9Smrg t lineno 4459fe995a9Smrg b 4469fe995a9Smrg :lineno 4479fe995a9Smrg N 4489fe995a9Smrg :loop 4499fe995a9Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4509fe995a9Smrg t loop 4519fe995a9Smrg s/-\n.*// 4529fe995a9Smrg ' >$as_me.lineno && 4539fe995a9Smrg chmod +x "$as_me.lineno" || 454b62cc08cSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4559fe995a9Smrg 4569fe995a9Smrg # Don't try to exec as it changes $[0], causing all sort of problems 4579fe995a9Smrg # (the dirname of $[0] is not the place where we might find the 4589fe995a9Smrg # original and so on. Autoconf is especially sensitive to this). 4599fe995a9Smrg . "./$as_me.lineno" 4609fe995a9Smrg # Exit status is that of the last command. 4619fe995a9Smrg exit 4629fe995a9Smrg} 4639fe995a9Smrg 4649fe995a9SmrgECHO_C= ECHO_N= ECHO_T= 465b62cc08cSmrgcase `echo -n x` in #((((( 4669fe995a9Smrg-n*) 467b62cc08cSmrg case `echo 'xy\c'` in 4689fe995a9Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469b62cc08cSmrg xy) ECHO_C='\c';; 470b62cc08cSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471b62cc08cSmrg ECHO_T=' ';; 4729fe995a9Smrg esac;; 4739fe995a9Smrg*) 4749fe995a9Smrg ECHO_N='-n';; 4759fe995a9Smrgesac 4769fe995a9Smrg 4779fe995a9Smrgrm -f conf$$ conf$$.exe conf$$.file 4789fe995a9Smrgif test -d conf$$.dir; then 4799fe995a9Smrg rm -f conf$$.dir/conf$$.file 4809fe995a9Smrgelse 4819fe995a9Smrg rm -f conf$$.dir 482b62cc08cSmrg mkdir conf$$.dir 2>/dev/null 483b62cc08cSmrgfi 484b62cc08cSmrgif (echo >conf$$.file) 2>/dev/null; then 485b62cc08cSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 486b62cc08cSmrg as_ln_s='ln -s' 487b62cc08cSmrg # ... but there are two gotchas: 488b62cc08cSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489b62cc08cSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490b62cc08cSmrg # In both cases, we have to default to `cp -p'. 491b62cc08cSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492b62cc08cSmrg as_ln_s='cp -p' 493b62cc08cSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 494b62cc08cSmrg as_ln_s=ln 495b62cc08cSmrg else 4969fe995a9Smrg as_ln_s='cp -p' 497b62cc08cSmrg fi 4989fe995a9Smrgelse 4999fe995a9Smrg as_ln_s='cp -p' 5009fe995a9Smrgfi 5019fe995a9Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5029fe995a9Smrgrmdir conf$$.dir 2>/dev/null 5039fe995a9Smrg 5049fe995a9Smrgif mkdir -p . 2>/dev/null; then 505b62cc08cSmrg as_mkdir_p='mkdir -p "$as_dir"' 5069fe995a9Smrgelse 5079fe995a9Smrg test -d ./-p && rmdir ./-p 5089fe995a9Smrg as_mkdir_p=false 5099fe995a9Smrgfi 5109fe995a9Smrg 5119fe995a9Smrgif test -x / >/dev/null 2>&1; then 5129fe995a9Smrg as_test_x='test -x' 5139fe995a9Smrgelse 5149fe995a9Smrg if ls -dL / >/dev/null 2>&1; then 5159fe995a9Smrg as_ls_L_option=L 5169fe995a9Smrg else 5179fe995a9Smrg as_ls_L_option= 5189fe995a9Smrg fi 5199fe995a9Smrg as_test_x=' 5209fe995a9Smrg eval sh -c '\'' 5219fe995a9Smrg if test -d "$1"; then 522b62cc08cSmrg test -d "$1/."; 5239fe995a9Smrg else 524b62cc08cSmrg case $1 in #( 525b62cc08cSmrg -*)set "./$1";; 5269fe995a9Smrg esac; 527b62cc08cSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5289fe995a9Smrg ???[sx]*):;;*)false;;esac;fi 5299fe995a9Smrg '\'' sh 5309fe995a9Smrg ' 5319fe995a9Smrgfi 5329fe995a9Smrgas_executable_p=$as_test_x 5339fe995a9Smrg 5349fe995a9Smrg# Sed expression to map a string onto a valid CPP name. 5359fe995a9Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5369fe995a9Smrg 5379fe995a9Smrg# Sed expression to map a string onto a valid variable name. 5389fe995a9Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5399fe995a9Smrg 5409fe995a9Smrg 541b62cc08cSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 542b62cc08cSmrgexec 6>&1 5439fe995a9Smrg 5449fe995a9Smrg# Name of the host. 545b62cc08cSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5469fe995a9Smrg# so uname gets run too. 5479fe995a9Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5489fe995a9Smrg 5499fe995a9Smrg# 5509fe995a9Smrg# Initializations. 5519fe995a9Smrg# 5529fe995a9Smrgac_default_prefix=/usr/local 5539fe995a9Smrgac_clean_files= 5549fe995a9Smrgac_config_libobj_dir=. 5559fe995a9SmrgLIBOBJS= 5569fe995a9Smrgcross_compiling=no 5579fe995a9Smrgsubdirs= 5589fe995a9SmrgMFLAGS= 5599fe995a9SmrgMAKEFLAGS= 5609fe995a9Smrg 5619fe995a9Smrg# Identity of this package. 5629fe995a9SmrgPACKAGE_NAME='iceauth' 5639fe995a9SmrgPACKAGE_TARNAME='iceauth' 5649d794632SmrgPACKAGE_VERSION='1.0.6' 5659d794632SmrgPACKAGE_STRING='iceauth 1.0.6' 5669fe995a9SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567b62cc08cSmrgPACKAGE_URL='' 5689fe995a9Smrg 569b62cc08cSmrg# Factoring default headers for most tests. 570b62cc08cSmrgac_includes_default="\ 571b62cc08cSmrg#include <stdio.h> 572b62cc08cSmrg#ifdef HAVE_SYS_TYPES_H 573b62cc08cSmrg# include <sys/types.h> 574b62cc08cSmrg#endif 575b62cc08cSmrg#ifdef HAVE_SYS_STAT_H 576b62cc08cSmrg# include <sys/stat.h> 577b62cc08cSmrg#endif 578b62cc08cSmrg#ifdef STDC_HEADERS 579b62cc08cSmrg# include <stdlib.h> 580b62cc08cSmrg# include <stddef.h> 581b62cc08cSmrg#else 582b62cc08cSmrg# ifdef HAVE_STDLIB_H 583b62cc08cSmrg# include <stdlib.h> 584b62cc08cSmrg# endif 585b62cc08cSmrg#endif 586b62cc08cSmrg#ifdef HAVE_STRING_H 587b62cc08cSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 588b62cc08cSmrg# include <memory.h> 589b62cc08cSmrg# endif 590b62cc08cSmrg# include <string.h> 591b62cc08cSmrg#endif 592b62cc08cSmrg#ifdef HAVE_STRINGS_H 593b62cc08cSmrg# include <strings.h> 594b62cc08cSmrg#endif 595b62cc08cSmrg#ifdef HAVE_INTTYPES_H 596b62cc08cSmrg# include <inttypes.h> 597b62cc08cSmrg#endif 598b62cc08cSmrg#ifdef HAVE_STDINT_H 599b62cc08cSmrg# include <stdint.h> 600b62cc08cSmrg#endif 601b62cc08cSmrg#ifdef HAVE_UNISTD_H 602b62cc08cSmrg# include <unistd.h> 603b62cc08cSmrg#endif" 604b62cc08cSmrg 605b62cc08cSmrgac_subst_vars='am__EXEEXT_FALSE 606b62cc08cSmrgam__EXEEXT_TRUE 607b62cc08cSmrgLTLIBOBJS 6089fe995a9SmrgLIBOBJS 609b62cc08cSmrgLINT_FALSE 610b62cc08cSmrgLINT_TRUE 611b62cc08cSmrgLINT_FLAGS 612b62cc08cSmrgLINT 613b62cc08cSmrgICEAUTH_LIBS 614b62cc08cSmrgICEAUTH_CFLAGS 615b62cc08cSmrgMAN_SUBSTS 616b62cc08cSmrgXORG_MAN_PAGE 617b62cc08cSmrgADMIN_MAN_DIR 618b62cc08cSmrgDRIVER_MAN_DIR 619b62cc08cSmrgMISC_MAN_DIR 620b62cc08cSmrgFILE_MAN_DIR 621b62cc08cSmrgLIB_MAN_DIR 622b62cc08cSmrgAPP_MAN_DIR 623b62cc08cSmrgADMIN_MAN_SUFFIX 624b62cc08cSmrgDRIVER_MAN_SUFFIX 625b62cc08cSmrgMISC_MAN_SUFFIX 626b62cc08cSmrgFILE_MAN_SUFFIX 627b62cc08cSmrgLIB_MAN_SUFFIX 628b62cc08cSmrgAPP_MAN_SUFFIX 629b62cc08cSmrgSED 630b62cc08cSmrghost_os 631b62cc08cSmrghost_vendor 632b62cc08cSmrghost_cpu 633b62cc08cSmrghost 634b62cc08cSmrgbuild_os 635b62cc08cSmrgbuild_vendor 636b62cc08cSmrgbuild_cpu 637b62cc08cSmrgbuild 638b62cc08cSmrgINSTALL_CMD 639b62cc08cSmrgPKG_CONFIG 640b62cc08cSmrgCHANGELOG_CMD 6419d794632SmrgSTRICT_CFLAGS 642b62cc08cSmrgCWARNFLAGS 6439d794632SmrgBASE_CFLAGS 644b62cc08cSmrgEGREP 645b62cc08cSmrgGREP 646b62cc08cSmrgCPP 647b62cc08cSmrgam__fastdepCC_FALSE 648b62cc08cSmrgam__fastdepCC_TRUE 649b62cc08cSmrgCCDEPMODE 6509d794632Smrgam__nodep 651b62cc08cSmrgAMDEPBACKSLASH 652b62cc08cSmrgAMDEP_FALSE 653b62cc08cSmrgAMDEP_TRUE 654b62cc08cSmrgam__quote 655b62cc08cSmrgam__include 656b62cc08cSmrgDEPDIR 657b62cc08cSmrgOBJEXT 658b62cc08cSmrgEXEEXT 659b62cc08cSmrgac_ct_CC 660b62cc08cSmrgCPPFLAGS 661b62cc08cSmrgLDFLAGS 662b62cc08cSmrgCFLAGS 663b62cc08cSmrgCC 664b62cc08cSmrgMAINT 665b62cc08cSmrgMAINTAINER_MODE_FALSE 666b62cc08cSmrgMAINTAINER_MODE_TRUE 6679d794632SmrgAM_BACKSLASH 6689d794632SmrgAM_DEFAULT_VERBOSITY 6699d794632SmrgAM_DEFAULT_V 6709d794632SmrgAM_V 671b62cc08cSmrgam__untar 672b62cc08cSmrgam__tar 673b62cc08cSmrgAMTAR 674b62cc08cSmrgam__leading_dot 675b62cc08cSmrgSET_MAKE 676b62cc08cSmrgAWK 677b62cc08cSmrgmkdir_p 678b62cc08cSmrgMKDIR_P 679b62cc08cSmrgINSTALL_STRIP_PROGRAM 680b62cc08cSmrgSTRIP 681b62cc08cSmrginstall_sh 682b62cc08cSmrgMAKEINFO 683b62cc08cSmrgAUTOHEADER 684b62cc08cSmrgAUTOMAKE 685b62cc08cSmrgAUTOCONF 686b62cc08cSmrgACLOCAL 687b62cc08cSmrgVERSION 688b62cc08cSmrgPACKAGE 689b62cc08cSmrgCYGPATH_W 690b62cc08cSmrgam__isrc 691b62cc08cSmrgINSTALL_DATA 692b62cc08cSmrgINSTALL_SCRIPT 693b62cc08cSmrgINSTALL_PROGRAM 694b62cc08cSmrgtarget_alias 695b62cc08cSmrghost_alias 696b62cc08cSmrgbuild_alias 697b62cc08cSmrgLIBS 698b62cc08cSmrgECHO_T 699b62cc08cSmrgECHO_N 700b62cc08cSmrgECHO_C 701b62cc08cSmrgDEFS 702b62cc08cSmrgmandir 703b62cc08cSmrglocaledir 704b62cc08cSmrglibdir 705b62cc08cSmrgpsdir 706b62cc08cSmrgpdfdir 707b62cc08cSmrgdvidir 708b62cc08cSmrghtmldir 709b62cc08cSmrginfodir 710b62cc08cSmrgdocdir 711b62cc08cSmrgoldincludedir 712b62cc08cSmrgincludedir 713b62cc08cSmrglocalstatedir 714b62cc08cSmrgsharedstatedir 715b62cc08cSmrgsysconfdir 716b62cc08cSmrgdatadir 717b62cc08cSmrgdatarootdir 718b62cc08cSmrglibexecdir 719b62cc08cSmrgsbindir 720b62cc08cSmrgbindir 721b62cc08cSmrgprogram_transform_name 722b62cc08cSmrgprefix 723b62cc08cSmrgexec_prefix 724b62cc08cSmrgPACKAGE_URL 725b62cc08cSmrgPACKAGE_BUGREPORT 726b62cc08cSmrgPACKAGE_STRING 727b62cc08cSmrgPACKAGE_VERSION 728b62cc08cSmrgPACKAGE_TARNAME 729b62cc08cSmrgPACKAGE_NAME 730b62cc08cSmrgPATH_SEPARATOR 731b62cc08cSmrgSHELL' 7329fe995a9Smrgac_subst_files='' 733b62cc08cSmrgac_user_opts=' 734b62cc08cSmrgenable_option_checking 7359d794632Smrgenable_silent_rules 736b62cc08cSmrgenable_maintainer_mode 737b62cc08cSmrgenable_dependency_tracking 7389d794632Smrgenable_selective_werror 739b62cc08cSmrgenable_strict_compilation 740b62cc08cSmrgwith_lint 741b62cc08cSmrg' 7429fe995a9Smrg ac_precious_vars='build_alias 7439fe995a9Smrghost_alias 7449fe995a9Smrgtarget_alias 7459fe995a9SmrgCC 7469fe995a9SmrgCFLAGS 7479fe995a9SmrgLDFLAGS 7489fe995a9SmrgLIBS 7499fe995a9SmrgCPPFLAGS 750b62cc08cSmrgCPP 7519fe995a9SmrgPKG_CONFIG 7529fe995a9SmrgICEAUTH_CFLAGS 753b62cc08cSmrgICEAUTH_LIBS 754b62cc08cSmrgLINT 755b62cc08cSmrgLINT_FLAGS' 7569fe995a9Smrg 7579fe995a9Smrg 7589fe995a9Smrg# Initialize some variables set by options. 7599fe995a9Smrgac_init_help= 7609fe995a9Smrgac_init_version=false 761b62cc08cSmrgac_unrecognized_opts= 762b62cc08cSmrgac_unrecognized_sep= 7639fe995a9Smrg# The variables have the same names as the options, with 7649fe995a9Smrg# dashes changed to underlines. 7659fe995a9Smrgcache_file=/dev/null 7669fe995a9Smrgexec_prefix=NONE 7679fe995a9Smrgno_create= 7689fe995a9Smrgno_recursion= 7699fe995a9Smrgprefix=NONE 7709fe995a9Smrgprogram_prefix=NONE 7719fe995a9Smrgprogram_suffix=NONE 7729fe995a9Smrgprogram_transform_name=s,x,x, 7739fe995a9Smrgsilent= 7749fe995a9Smrgsite= 7759fe995a9Smrgsrcdir= 7769fe995a9Smrgverbose= 7779fe995a9Smrgx_includes=NONE 7789fe995a9Smrgx_libraries=NONE 7799fe995a9Smrg 7809fe995a9Smrg# Installation directory options. 7819fe995a9Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 7829fe995a9Smrg# and all the variables that are supposed to be based on exec_prefix 7839fe995a9Smrg# by default will actually change. 7849fe995a9Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 7859fe995a9Smrg# (The list follows the same order as the GNU Coding Standards.) 7869fe995a9Smrgbindir='${exec_prefix}/bin' 7879fe995a9Smrgsbindir='${exec_prefix}/sbin' 7889fe995a9Smrglibexecdir='${exec_prefix}/libexec' 7899fe995a9Smrgdatarootdir='${prefix}/share' 7909fe995a9Smrgdatadir='${datarootdir}' 7919fe995a9Smrgsysconfdir='${prefix}/etc' 7929fe995a9Smrgsharedstatedir='${prefix}/com' 7939fe995a9Smrglocalstatedir='${prefix}/var' 7949fe995a9Smrgincludedir='${prefix}/include' 7959fe995a9Smrgoldincludedir='/usr/include' 7969fe995a9Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 7979fe995a9Smrginfodir='${datarootdir}/info' 7989fe995a9Smrghtmldir='${docdir}' 7999fe995a9Smrgdvidir='${docdir}' 8009fe995a9Smrgpdfdir='${docdir}' 8019fe995a9Smrgpsdir='${docdir}' 8029fe995a9Smrglibdir='${exec_prefix}/lib' 8039fe995a9Smrglocaledir='${datarootdir}/locale' 8049fe995a9Smrgmandir='${datarootdir}/man' 8059fe995a9Smrg 8069fe995a9Smrgac_prev= 8079fe995a9Smrgac_dashdash= 8089fe995a9Smrgfor ac_option 8099fe995a9Smrgdo 8109fe995a9Smrg # If the previous option needs an argument, assign it. 8119fe995a9Smrg if test -n "$ac_prev"; then 8129fe995a9Smrg eval $ac_prev=\$ac_option 8139fe995a9Smrg ac_prev= 8149fe995a9Smrg continue 8159fe995a9Smrg fi 8169fe995a9Smrg 8179fe995a9Smrg case $ac_option in 818b62cc08cSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 819b62cc08cSmrg *=) ac_optarg= ;; 820b62cc08cSmrg *) ac_optarg=yes ;; 8219fe995a9Smrg esac 8229fe995a9Smrg 8239fe995a9Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 8249fe995a9Smrg 8259fe995a9Smrg case $ac_dashdash$ac_option in 8269fe995a9Smrg --) 8279fe995a9Smrg ac_dashdash=yes ;; 8289fe995a9Smrg 8299fe995a9Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8309fe995a9Smrg ac_prev=bindir ;; 8319fe995a9Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8329fe995a9Smrg bindir=$ac_optarg ;; 8339fe995a9Smrg 8349fe995a9Smrg -build | --build | --buil | --bui | --bu) 8359fe995a9Smrg ac_prev=build_alias ;; 8369fe995a9Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8379fe995a9Smrg build_alias=$ac_optarg ;; 8389fe995a9Smrg 8399fe995a9Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8409fe995a9Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8419fe995a9Smrg ac_prev=cache_file ;; 8429fe995a9Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8439fe995a9Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8449fe995a9Smrg cache_file=$ac_optarg ;; 8459fe995a9Smrg 8469fe995a9Smrg --config-cache | -C) 8479fe995a9Smrg cache_file=config.cache ;; 8489fe995a9Smrg 8499fe995a9Smrg -datadir | --datadir | --datadi | --datad) 8509fe995a9Smrg ac_prev=datadir ;; 8519fe995a9Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8529fe995a9Smrg datadir=$ac_optarg ;; 8539fe995a9Smrg 8549fe995a9Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8559fe995a9Smrg | --dataroo | --dataro | --datar) 8569fe995a9Smrg ac_prev=datarootdir ;; 8579fe995a9Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8589fe995a9Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8599fe995a9Smrg datarootdir=$ac_optarg ;; 8609fe995a9Smrg 8619fe995a9Smrg -disable-* | --disable-*) 862b62cc08cSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8639fe995a9Smrg # Reject names that are not valid shell variable names. 864b62cc08cSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 865b62cc08cSmrg as_fn_error $? "invalid feature name: $ac_useropt" 866b62cc08cSmrg ac_useropt_orig=$ac_useropt 867b62cc08cSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 868b62cc08cSmrg case $ac_user_opts in 869b62cc08cSmrg *" 870b62cc08cSmrg"enable_$ac_useropt" 871b62cc08cSmrg"*) ;; 872b62cc08cSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 873b62cc08cSmrg ac_unrecognized_sep=', ';; 874b62cc08cSmrg esac 875b62cc08cSmrg eval enable_$ac_useropt=no ;; 8769fe995a9Smrg 8779fe995a9Smrg -docdir | --docdir | --docdi | --doc | --do) 8789fe995a9Smrg ac_prev=docdir ;; 8799fe995a9Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 8809fe995a9Smrg docdir=$ac_optarg ;; 8819fe995a9Smrg 8829fe995a9Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 8839fe995a9Smrg ac_prev=dvidir ;; 8849fe995a9Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 8859fe995a9Smrg dvidir=$ac_optarg ;; 8869fe995a9Smrg 8879fe995a9Smrg -enable-* | --enable-*) 888b62cc08cSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 8899fe995a9Smrg # Reject names that are not valid shell variable names. 890b62cc08cSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 891b62cc08cSmrg as_fn_error $? "invalid feature name: $ac_useropt" 892b62cc08cSmrg ac_useropt_orig=$ac_useropt 893b62cc08cSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 894b62cc08cSmrg case $ac_user_opts in 895b62cc08cSmrg *" 896b62cc08cSmrg"enable_$ac_useropt" 897b62cc08cSmrg"*) ;; 898b62cc08cSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 899b62cc08cSmrg ac_unrecognized_sep=', ';; 900b62cc08cSmrg esac 901b62cc08cSmrg eval enable_$ac_useropt=\$ac_optarg ;; 9029fe995a9Smrg 9039fe995a9Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9049fe995a9Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9059fe995a9Smrg | --exec | --exe | --ex) 9069fe995a9Smrg ac_prev=exec_prefix ;; 9079fe995a9Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9089fe995a9Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9099fe995a9Smrg | --exec=* | --exe=* | --ex=*) 9109fe995a9Smrg exec_prefix=$ac_optarg ;; 9119fe995a9Smrg 9129fe995a9Smrg -gas | --gas | --ga | --g) 9139fe995a9Smrg # Obsolete; use --with-gas. 9149fe995a9Smrg with_gas=yes ;; 9159fe995a9Smrg 9169fe995a9Smrg -help | --help | --hel | --he | -h) 9179fe995a9Smrg ac_init_help=long ;; 9189fe995a9Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9199fe995a9Smrg ac_init_help=recursive ;; 9209fe995a9Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9219fe995a9Smrg ac_init_help=short ;; 9229fe995a9Smrg 9239fe995a9Smrg -host | --host | --hos | --ho) 9249fe995a9Smrg ac_prev=host_alias ;; 9259fe995a9Smrg -host=* | --host=* | --hos=* | --ho=*) 9269fe995a9Smrg host_alias=$ac_optarg ;; 9279fe995a9Smrg 9289fe995a9Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9299fe995a9Smrg ac_prev=htmldir ;; 9309fe995a9Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9319fe995a9Smrg | --ht=*) 9329fe995a9Smrg htmldir=$ac_optarg ;; 9339fe995a9Smrg 9349fe995a9Smrg -includedir | --includedir | --includedi | --included | --include \ 9359fe995a9Smrg | --includ | --inclu | --incl | --inc) 9369fe995a9Smrg ac_prev=includedir ;; 9379fe995a9Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9389fe995a9Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9399fe995a9Smrg includedir=$ac_optarg ;; 9409fe995a9Smrg 9419fe995a9Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9429fe995a9Smrg ac_prev=infodir ;; 9439fe995a9Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9449fe995a9Smrg infodir=$ac_optarg ;; 9459fe995a9Smrg 9469fe995a9Smrg -libdir | --libdir | --libdi | --libd) 9479fe995a9Smrg ac_prev=libdir ;; 9489fe995a9Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9499fe995a9Smrg libdir=$ac_optarg ;; 9509fe995a9Smrg 9519fe995a9Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9529fe995a9Smrg | --libexe | --libex | --libe) 9539fe995a9Smrg ac_prev=libexecdir ;; 9549fe995a9Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9559fe995a9Smrg | --libexe=* | --libex=* | --libe=*) 9569fe995a9Smrg libexecdir=$ac_optarg ;; 9579fe995a9Smrg 9589fe995a9Smrg -localedir | --localedir | --localedi | --localed | --locale) 9599fe995a9Smrg ac_prev=localedir ;; 9609fe995a9Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 9619fe995a9Smrg localedir=$ac_optarg ;; 9629fe995a9Smrg 9639fe995a9Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 9649fe995a9Smrg | --localstate | --localstat | --localsta | --localst | --locals) 9659fe995a9Smrg ac_prev=localstatedir ;; 9669fe995a9Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 9679fe995a9Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9689fe995a9Smrg localstatedir=$ac_optarg ;; 9699fe995a9Smrg 9709fe995a9Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9719fe995a9Smrg ac_prev=mandir ;; 9729fe995a9Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9739fe995a9Smrg mandir=$ac_optarg ;; 9749fe995a9Smrg 9759fe995a9Smrg -nfp | --nfp | --nf) 9769fe995a9Smrg # Obsolete; use --without-fp. 9779fe995a9Smrg with_fp=no ;; 9789fe995a9Smrg 9799fe995a9Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 9809fe995a9Smrg | --no-cr | --no-c | -n) 9819fe995a9Smrg no_create=yes ;; 9829fe995a9Smrg 9839fe995a9Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 9849fe995a9Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 9859fe995a9Smrg no_recursion=yes ;; 9869fe995a9Smrg 9879fe995a9Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 9889fe995a9Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 9899fe995a9Smrg | --oldin | --oldi | --old | --ol | --o) 9909fe995a9Smrg ac_prev=oldincludedir ;; 9919fe995a9Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 9929fe995a9Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 9939fe995a9Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 9949fe995a9Smrg oldincludedir=$ac_optarg ;; 9959fe995a9Smrg 9969fe995a9Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 9979fe995a9Smrg ac_prev=prefix ;; 9989fe995a9Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 9999fe995a9Smrg prefix=$ac_optarg ;; 10009fe995a9Smrg 10019fe995a9Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10029fe995a9Smrg | --program-pre | --program-pr | --program-p) 10039fe995a9Smrg ac_prev=program_prefix ;; 10049fe995a9Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10059fe995a9Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10069fe995a9Smrg program_prefix=$ac_optarg ;; 10079fe995a9Smrg 10089fe995a9Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10099fe995a9Smrg | --program-suf | --program-su | --program-s) 10109fe995a9Smrg ac_prev=program_suffix ;; 10119fe995a9Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10129fe995a9Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10139fe995a9Smrg program_suffix=$ac_optarg ;; 10149fe995a9Smrg 10159fe995a9Smrg -program-transform-name | --program-transform-name \ 10169fe995a9Smrg | --program-transform-nam | --program-transform-na \ 10179fe995a9Smrg | --program-transform-n | --program-transform- \ 10189fe995a9Smrg | --program-transform | --program-transfor \ 10199fe995a9Smrg | --program-transfo | --program-transf \ 10209fe995a9Smrg | --program-trans | --program-tran \ 10219fe995a9Smrg | --progr-tra | --program-tr | --program-t) 10229fe995a9Smrg ac_prev=program_transform_name ;; 10239fe995a9Smrg -program-transform-name=* | --program-transform-name=* \ 10249fe995a9Smrg | --program-transform-nam=* | --program-transform-na=* \ 10259fe995a9Smrg | --program-transform-n=* | --program-transform-=* \ 10269fe995a9Smrg | --program-transform=* | --program-transfor=* \ 10279fe995a9Smrg | --program-transfo=* | --program-transf=* \ 10289fe995a9Smrg | --program-trans=* | --program-tran=* \ 10299fe995a9Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 10309fe995a9Smrg program_transform_name=$ac_optarg ;; 10319fe995a9Smrg 10329fe995a9Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10339fe995a9Smrg ac_prev=pdfdir ;; 10349fe995a9Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10359fe995a9Smrg pdfdir=$ac_optarg ;; 10369fe995a9Smrg 10379fe995a9Smrg -psdir | --psdir | --psdi | --psd | --ps) 10389fe995a9Smrg ac_prev=psdir ;; 10399fe995a9Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10409fe995a9Smrg psdir=$ac_optarg ;; 10419fe995a9Smrg 10429fe995a9Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10439fe995a9Smrg | -silent | --silent | --silen | --sile | --sil) 10449fe995a9Smrg silent=yes ;; 10459fe995a9Smrg 10469fe995a9Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10479fe995a9Smrg ac_prev=sbindir ;; 10489fe995a9Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10499fe995a9Smrg | --sbi=* | --sb=*) 10509fe995a9Smrg sbindir=$ac_optarg ;; 10519fe995a9Smrg 10529fe995a9Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10539fe995a9Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10549fe995a9Smrg | --sharedst | --shareds | --shared | --share | --shar \ 10559fe995a9Smrg | --sha | --sh) 10569fe995a9Smrg ac_prev=sharedstatedir ;; 10579fe995a9Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10589fe995a9Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10599fe995a9Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10609fe995a9Smrg | --sha=* | --sh=*) 10619fe995a9Smrg sharedstatedir=$ac_optarg ;; 10629fe995a9Smrg 10639fe995a9Smrg -site | --site | --sit) 10649fe995a9Smrg ac_prev=site ;; 10659fe995a9Smrg -site=* | --site=* | --sit=*) 10669fe995a9Smrg site=$ac_optarg ;; 10679fe995a9Smrg 10689fe995a9Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10699fe995a9Smrg ac_prev=srcdir ;; 10709fe995a9Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10719fe995a9Smrg srcdir=$ac_optarg ;; 10729fe995a9Smrg 10739fe995a9Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10749fe995a9Smrg | --syscon | --sysco | --sysc | --sys | --sy) 10759fe995a9Smrg ac_prev=sysconfdir ;; 10769fe995a9Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10779fe995a9Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10789fe995a9Smrg sysconfdir=$ac_optarg ;; 10799fe995a9Smrg 10809fe995a9Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 10819fe995a9Smrg ac_prev=target_alias ;; 10829fe995a9Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 10839fe995a9Smrg target_alias=$ac_optarg ;; 10849fe995a9Smrg 10859fe995a9Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 10869fe995a9Smrg verbose=yes ;; 10879fe995a9Smrg 10889fe995a9Smrg -version | --version | --versio | --versi | --vers | -V) 10899fe995a9Smrg ac_init_version=: ;; 10909fe995a9Smrg 10919fe995a9Smrg -with-* | --with-*) 1092b62cc08cSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 10939fe995a9Smrg # Reject names that are not valid shell variable names. 1094b62cc08cSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1095b62cc08cSmrg as_fn_error $? "invalid package name: $ac_useropt" 1096b62cc08cSmrg ac_useropt_orig=$ac_useropt 1097b62cc08cSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1098b62cc08cSmrg case $ac_user_opts in 1099b62cc08cSmrg *" 1100b62cc08cSmrg"with_$ac_useropt" 1101b62cc08cSmrg"*) ;; 1102b62cc08cSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1103b62cc08cSmrg ac_unrecognized_sep=', ';; 1104b62cc08cSmrg esac 1105b62cc08cSmrg eval with_$ac_useropt=\$ac_optarg ;; 11069fe995a9Smrg 11079fe995a9Smrg -without-* | --without-*) 1108b62cc08cSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11099fe995a9Smrg # Reject names that are not valid shell variable names. 1110b62cc08cSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1111b62cc08cSmrg as_fn_error $? "invalid package name: $ac_useropt" 1112b62cc08cSmrg ac_useropt_orig=$ac_useropt 1113b62cc08cSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1114b62cc08cSmrg case $ac_user_opts in 1115b62cc08cSmrg *" 1116b62cc08cSmrg"with_$ac_useropt" 1117b62cc08cSmrg"*) ;; 1118b62cc08cSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1119b62cc08cSmrg ac_unrecognized_sep=', ';; 1120b62cc08cSmrg esac 1121b62cc08cSmrg eval with_$ac_useropt=no ;; 11229fe995a9Smrg 11239fe995a9Smrg --x) 11249fe995a9Smrg # Obsolete; use --with-x. 11259fe995a9Smrg with_x=yes ;; 11269fe995a9Smrg 11279fe995a9Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11289fe995a9Smrg | --x-incl | --x-inc | --x-in | --x-i) 11299fe995a9Smrg ac_prev=x_includes ;; 11309fe995a9Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11319fe995a9Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11329fe995a9Smrg x_includes=$ac_optarg ;; 11339fe995a9Smrg 11349fe995a9Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11359fe995a9Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11369fe995a9Smrg ac_prev=x_libraries ;; 11379fe995a9Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11389fe995a9Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11399fe995a9Smrg x_libraries=$ac_optarg ;; 11409fe995a9Smrg 1141b62cc08cSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1142b62cc08cSmrgTry \`$0 --help' for more information" 11439fe995a9Smrg ;; 11449fe995a9Smrg 11459fe995a9Smrg *=*) 11469fe995a9Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11479fe995a9Smrg # Reject names that are not valid shell variable names. 1148b62cc08cSmrg case $ac_envvar in #( 1149b62cc08cSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1150b62cc08cSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1151b62cc08cSmrg esac 11529fe995a9Smrg eval $ac_envvar=\$ac_optarg 11539fe995a9Smrg export $ac_envvar ;; 11549fe995a9Smrg 11559fe995a9Smrg *) 11569fe995a9Smrg # FIXME: should be removed in autoconf 3.0. 1157b62cc08cSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11589fe995a9Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1159b62cc08cSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1160b62cc08cSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11619fe995a9Smrg ;; 11629fe995a9Smrg 11639fe995a9Smrg esac 11649fe995a9Smrgdone 11659fe995a9Smrg 11669fe995a9Smrgif test -n "$ac_prev"; then 11679fe995a9Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1168b62cc08cSmrg as_fn_error $? "missing argument to $ac_option" 1169b62cc08cSmrgfi 1170b62cc08cSmrg 1171b62cc08cSmrgif test -n "$ac_unrecognized_opts"; then 1172b62cc08cSmrg case $enable_option_checking in 1173b62cc08cSmrg no) ;; 1174b62cc08cSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1175b62cc08cSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1176b62cc08cSmrg esac 11779fe995a9Smrgfi 11789fe995a9Smrg 1179b62cc08cSmrg# Check all directory arguments for consistency. 11809fe995a9Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 11819fe995a9Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 11829fe995a9Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 11839fe995a9Smrg libdir localedir mandir 11849fe995a9Smrgdo 11859fe995a9Smrg eval ac_val=\$$ac_var 1186b62cc08cSmrg # Remove trailing slashes. 1187b62cc08cSmrg case $ac_val in 1188b62cc08cSmrg */ ) 1189b62cc08cSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1190b62cc08cSmrg eval $ac_var=\$ac_val;; 1191b62cc08cSmrg esac 1192b62cc08cSmrg # Be sure to have absolute directory names. 11939fe995a9Smrg case $ac_val in 11949fe995a9Smrg [\\/$]* | ?:[\\/]* ) continue;; 11959fe995a9Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 11969fe995a9Smrg esac 1197b62cc08cSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 11989fe995a9Smrgdone 11999fe995a9Smrg 12009fe995a9Smrg# There might be people who depend on the old broken behavior: `$host' 12019fe995a9Smrg# used to hold the argument of --host etc. 12029fe995a9Smrg# FIXME: To remove some day. 12039fe995a9Smrgbuild=$build_alias 12049fe995a9Smrghost=$host_alias 12059fe995a9Smrgtarget=$target_alias 12069fe995a9Smrg 12079fe995a9Smrg# FIXME: To remove some day. 12089fe995a9Smrgif test "x$host_alias" != x; then 12099fe995a9Smrg if test "x$build_alias" = x; then 12109fe995a9Smrg cross_compiling=maybe 1211b62cc08cSmrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1212b62cc08cSmrg If a cross compiler is detected then cross compile mode will be used" >&2 12139fe995a9Smrg elif test "x$build_alias" != "x$host_alias"; then 12149fe995a9Smrg cross_compiling=yes 12159fe995a9Smrg fi 12169fe995a9Smrgfi 12179fe995a9Smrg 12189fe995a9Smrgac_tool_prefix= 12199fe995a9Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12209fe995a9Smrg 12219fe995a9Smrgtest "$silent" = yes && exec 6>/dev/null 12229fe995a9Smrg 12239fe995a9Smrg 12249fe995a9Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 12259fe995a9Smrgac_ls_di=`ls -di .` && 12269fe995a9Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1227b62cc08cSmrg as_fn_error $? "working directory cannot be determined" 12289fe995a9Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1229b62cc08cSmrg as_fn_error $? "pwd does not report name of working directory" 12309fe995a9Smrg 12319fe995a9Smrg 12329fe995a9Smrg# Find the source files, if location was not specified. 12339fe995a9Smrgif test -z "$srcdir"; then 12349fe995a9Smrg ac_srcdir_defaulted=yes 12359fe995a9Smrg # Try the directory containing this script, then the parent directory. 1236b62cc08cSmrg ac_confdir=`$as_dirname -- "$as_myself" || 1237b62cc08cSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1238b62cc08cSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1239b62cc08cSmrg X"$as_myself" : 'X\(//\)$' \| \ 1240b62cc08cSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1241b62cc08cSmrg$as_echo X"$as_myself" | 12429fe995a9Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12439fe995a9Smrg s//\1/ 12449fe995a9Smrg q 12459fe995a9Smrg } 12469fe995a9Smrg /^X\(\/\/\)[^/].*/{ 12479fe995a9Smrg s//\1/ 12489fe995a9Smrg q 12499fe995a9Smrg } 12509fe995a9Smrg /^X\(\/\/\)$/{ 12519fe995a9Smrg s//\1/ 12529fe995a9Smrg q 12539fe995a9Smrg } 12549fe995a9Smrg /^X\(\/\).*/{ 12559fe995a9Smrg s//\1/ 12569fe995a9Smrg q 12579fe995a9Smrg } 12589fe995a9Smrg s/.*/./; q'` 12599fe995a9Smrg srcdir=$ac_confdir 12609fe995a9Smrg if test ! -r "$srcdir/$ac_unique_file"; then 12619fe995a9Smrg srcdir=.. 12629fe995a9Smrg fi 12639fe995a9Smrgelse 12649fe995a9Smrg ac_srcdir_defaulted=no 12659fe995a9Smrgfi 12669fe995a9Smrgif test ! -r "$srcdir/$ac_unique_file"; then 12679fe995a9Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1268b62cc08cSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 12699fe995a9Smrgfi 12709fe995a9Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 12719fe995a9Smrgac_abs_confdir=`( 1272b62cc08cSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 12739fe995a9Smrg pwd)` 12749fe995a9Smrg# When building in place, set srcdir=. 12759fe995a9Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 12769fe995a9Smrg srcdir=. 12779fe995a9Smrgfi 12789fe995a9Smrg# Remove unnecessary trailing slashes from srcdir. 12799fe995a9Smrg# Double slashes in file names in object file debugging info 12809fe995a9Smrg# mess up M-x gdb in Emacs. 12819fe995a9Smrgcase $srcdir in 12829fe995a9Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 12839fe995a9Smrgesac 12849fe995a9Smrgfor ac_var in $ac_precious_vars; do 12859fe995a9Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 12869fe995a9Smrg eval ac_env_${ac_var}_value=\$${ac_var} 12879fe995a9Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 12889fe995a9Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 12899fe995a9Smrgdone 12909fe995a9Smrg 12919fe995a9Smrg# 12929fe995a9Smrg# Report the --help message. 12939fe995a9Smrg# 12949fe995a9Smrgif test "$ac_init_help" = "long"; then 12959fe995a9Smrg # Omit some internal or obsolete options to make the list less imposing. 12969fe995a9Smrg # This message is too long to be a string in the A/UX 3.1 sh. 12979fe995a9Smrg cat <<_ACEOF 12989d794632Smrg\`configure' configures iceauth 1.0.6 to adapt to many kinds of systems. 12999fe995a9Smrg 13009fe995a9SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13019fe995a9Smrg 13029fe995a9SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13039fe995a9SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13049fe995a9Smrg 13059fe995a9SmrgDefaults for the options are specified in brackets. 13069fe995a9Smrg 13079fe995a9SmrgConfiguration: 13089fe995a9Smrg -h, --help display this help and exit 13099fe995a9Smrg --help=short display options specific to this package 13109fe995a9Smrg --help=recursive display the short help of all the included packages 13119fe995a9Smrg -V, --version display version information and exit 1312b62cc08cSmrg -q, --quiet, --silent do not print \`checking ...' messages 13139fe995a9Smrg --cache-file=FILE cache test results in FILE [disabled] 13149fe995a9Smrg -C, --config-cache alias for \`--cache-file=config.cache' 13159fe995a9Smrg -n, --no-create do not create output files 13169fe995a9Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13179fe995a9Smrg 13189fe995a9SmrgInstallation directories: 13199fe995a9Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1320b62cc08cSmrg [$ac_default_prefix] 13219fe995a9Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1322b62cc08cSmrg [PREFIX] 13239fe995a9Smrg 13249fe995a9SmrgBy default, \`make install' will install all the files in 13259fe995a9Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13269fe995a9Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13279fe995a9Smrgfor instance \`--prefix=\$HOME'. 13289fe995a9Smrg 13299fe995a9SmrgFor better control, use the options below. 13309fe995a9Smrg 13319fe995a9SmrgFine tuning of the installation directories: 1332b62cc08cSmrg --bindir=DIR user executables [EPREFIX/bin] 1333b62cc08cSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1334b62cc08cSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 1335b62cc08cSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1336b62cc08cSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1337b62cc08cSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1338b62cc08cSmrg --libdir=DIR object code libraries [EPREFIX/lib] 1339b62cc08cSmrg --includedir=DIR C header files [PREFIX/include] 1340b62cc08cSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1341b62cc08cSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1342b62cc08cSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1343b62cc08cSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 1344b62cc08cSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1345b62cc08cSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 1346b62cc08cSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/iceauth] 1347b62cc08cSmrg --htmldir=DIR html documentation [DOCDIR] 1348b62cc08cSmrg --dvidir=DIR dvi documentation [DOCDIR] 1349b62cc08cSmrg --pdfdir=DIR pdf documentation [DOCDIR] 1350b62cc08cSmrg --psdir=DIR ps documentation [DOCDIR] 13519fe995a9Smrg_ACEOF 13529fe995a9Smrg 13539fe995a9Smrg cat <<\_ACEOF 13549fe995a9Smrg 13559fe995a9SmrgProgram names: 13569fe995a9Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 13579fe995a9Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 13589fe995a9Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13599fe995a9Smrg 13609fe995a9SmrgSystem types: 13619fe995a9Smrg --build=BUILD configure for building on BUILD [guessed] 13629fe995a9Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13639fe995a9Smrg_ACEOF 13649fe995a9Smrgfi 13659fe995a9Smrg 13669fe995a9Smrgif test -n "$ac_init_help"; then 13679fe995a9Smrg case $ac_init_help in 13689d794632Smrg short | recursive ) echo "Configuration of iceauth 1.0.6:";; 13699fe995a9Smrg esac 13709fe995a9Smrg cat <<\_ACEOF 13719fe995a9Smrg 13729fe995a9SmrgOptional Features: 1373b62cc08cSmrg --disable-option-checking ignore unrecognized --enable/--with options 13749fe995a9Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13759fe995a9Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 13769d794632Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 13779d794632Smrg --disable-silent-rules verbose build output (undo: "make V=0") 13789d794632Smrg --enable-maintainer-mode 13799d794632Smrg enable make rules and dependencies not useful (and 13809d794632Smrg sometimes confusing) to the casual installer 13819d794632Smrg --enable-dependency-tracking 13829d794632Smrg do not reject slow dependency extractors 13839d794632Smrg --disable-dependency-tracking 13849d794632Smrg speeds up one-time build 13859d794632Smrg --disable-selective-werror 13869d794632Smrg Turn off selective compiler errors. (default: 13879d794632Smrg enabled) 1388b62cc08cSmrg --enable-strict-compilation 1389b62cc08cSmrg Enable all warnings from compiler and make them 1390b62cc08cSmrg errors (default: disabled) 13919fe995a9Smrg 13929fe995a9SmrgOptional Packages: 13939fe995a9Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 13949fe995a9Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 13959fe995a9Smrg --with-lint Use a lint-style source code checker (default: 13969fe995a9Smrg disabled) 13979fe995a9Smrg 13989fe995a9SmrgSome influential environment variables: 13999fe995a9Smrg CC C compiler command 14009fe995a9Smrg CFLAGS C compiler flags 14019fe995a9Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14029fe995a9Smrg nonstandard directory <lib dir> 14039fe995a9Smrg LIBS libraries to pass to the linker, e.g. -l<library> 1404b62cc08cSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14059fe995a9Smrg you have headers in a nonstandard directory <include dir> 1406b62cc08cSmrg CPP C preprocessor 14079fe995a9Smrg PKG_CONFIG path to pkg-config utility 14089fe995a9Smrg ICEAUTH_CFLAGS 14099fe995a9Smrg C compiler flags for ICEAUTH, overriding pkg-config 14109fe995a9Smrg ICEAUTH_LIBS 14119fe995a9Smrg linker flags for ICEAUTH, overriding pkg-config 1412b62cc08cSmrg LINT Path to a lint-style command 1413b62cc08cSmrg LINT_FLAGS Flags for the lint-style command 14149fe995a9Smrg 14159fe995a9SmrgUse these variables to override the choices made by `configure' or to help 14169fe995a9Smrgit to find libraries and programs with nonstandard names/locations. 14179fe995a9Smrg 14189fe995a9SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 14199fe995a9Smrg_ACEOF 14209fe995a9Smrgac_status=$? 14219fe995a9Smrgfi 14229fe995a9Smrg 14239fe995a9Smrgif test "$ac_init_help" = "recursive"; then 14249fe995a9Smrg # If there are subdirs, report their specific --help. 14259fe995a9Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1426b62cc08cSmrg test -d "$ac_dir" || 1427b62cc08cSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1428b62cc08cSmrg continue 14299fe995a9Smrg ac_builddir=. 14309fe995a9Smrg 14319fe995a9Smrgcase "$ac_dir" in 14329fe995a9Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14339fe995a9Smrg*) 1434b62cc08cSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14359fe995a9Smrg # A ".." for each directory in $ac_dir_suffix. 1436b62cc08cSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14379fe995a9Smrg case $ac_top_builddir_sub in 14389fe995a9Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14399fe995a9Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14409fe995a9Smrg esac ;; 14419fe995a9Smrgesac 14429fe995a9Smrgac_abs_top_builddir=$ac_pwd 14439fe995a9Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14449fe995a9Smrg# for backward compatibility: 14459fe995a9Smrgac_top_builddir=$ac_top_build_prefix 14469fe995a9Smrg 14479fe995a9Smrgcase $srcdir in 14489fe995a9Smrg .) # We are building in place. 14499fe995a9Smrg ac_srcdir=. 14509fe995a9Smrg ac_top_srcdir=$ac_top_builddir_sub 14519fe995a9Smrg ac_abs_top_srcdir=$ac_pwd ;; 14529fe995a9Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 14539fe995a9Smrg ac_srcdir=$srcdir$ac_dir_suffix; 14549fe995a9Smrg ac_top_srcdir=$srcdir 14559fe995a9Smrg ac_abs_top_srcdir=$srcdir ;; 14569fe995a9Smrg *) # Relative name. 14579fe995a9Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14589fe995a9Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14599fe995a9Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14609fe995a9Smrgesac 14619fe995a9Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14629fe995a9Smrg 14639fe995a9Smrg cd "$ac_dir" || { ac_status=$?; continue; } 14649fe995a9Smrg # Check for guested configure. 14659fe995a9Smrg if test -f "$ac_srcdir/configure.gnu"; then 14669fe995a9Smrg echo && 14679fe995a9Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 14689fe995a9Smrg elif test -f "$ac_srcdir/configure"; then 14699fe995a9Smrg echo && 14709fe995a9Smrg $SHELL "$ac_srcdir/configure" --help=recursive 14719fe995a9Smrg else 1472b62cc08cSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 14739fe995a9Smrg fi || ac_status=$? 14749fe995a9Smrg cd "$ac_pwd" || { ac_status=$?; break; } 14759fe995a9Smrg done 14769fe995a9Smrgfi 14779fe995a9Smrg 14789fe995a9Smrgtest -n "$ac_init_help" && exit $ac_status 14799fe995a9Smrgif $ac_init_version; then 14809fe995a9Smrg cat <<\_ACEOF 14819d794632Smrgiceauth configure 1.0.6 1482b62cc08cSmrggenerated by GNU Autoconf 2.68 14839fe995a9Smrg 1484b62cc08cSmrgCopyright (C) 2010 Free Software Foundation, Inc. 14859fe995a9SmrgThis configure script is free software; the Free Software Foundation 14869fe995a9Smrggives unlimited permission to copy, distribute and modify it. 14879fe995a9Smrg_ACEOF 14889fe995a9Smrg exit 14899fe995a9Smrgfi 1490b62cc08cSmrg 1491b62cc08cSmrg## ------------------------ ## 1492b62cc08cSmrg## Autoconf initialization. ## 1493b62cc08cSmrg## ------------------------ ## 1494b62cc08cSmrg 1495b62cc08cSmrg# ac_fn_c_try_compile LINENO 1496b62cc08cSmrg# -------------------------- 1497b62cc08cSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1498b62cc08cSmrgac_fn_c_try_compile () 1499b62cc08cSmrg{ 1500b62cc08cSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1501b62cc08cSmrg rm -f conftest.$ac_objext 1502b62cc08cSmrg if { { ac_try="$ac_compile" 1503b62cc08cSmrgcase "(($ac_try" in 1504b62cc08cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1505b62cc08cSmrg *) ac_try_echo=$ac_try;; 1506b62cc08cSmrgesac 1507b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1508b62cc08cSmrg$as_echo "$ac_try_echo"; } >&5 1509b62cc08cSmrg (eval "$ac_compile") 2>conftest.err 1510b62cc08cSmrg ac_status=$? 1511b62cc08cSmrg if test -s conftest.err; then 1512b62cc08cSmrg grep -v '^ *+' conftest.err >conftest.er1 1513b62cc08cSmrg cat conftest.er1 >&5 1514b62cc08cSmrg mv -f conftest.er1 conftest.err 1515b62cc08cSmrg fi 1516b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1517b62cc08cSmrg test $ac_status = 0; } && { 1518b62cc08cSmrg test -z "$ac_c_werror_flag" || 1519b62cc08cSmrg test ! -s conftest.err 1520b62cc08cSmrg } && test -s conftest.$ac_objext; then : 1521b62cc08cSmrg ac_retval=0 1522b62cc08cSmrgelse 1523b62cc08cSmrg $as_echo "$as_me: failed program was:" >&5 1524b62cc08cSmrgsed 's/^/| /' conftest.$ac_ext >&5 1525b62cc08cSmrg 1526b62cc08cSmrg ac_retval=1 1527b62cc08cSmrgfi 1528b62cc08cSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1529b62cc08cSmrg as_fn_set_status $ac_retval 1530b62cc08cSmrg 1531b62cc08cSmrg} # ac_fn_c_try_compile 1532b62cc08cSmrg 1533b62cc08cSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1534b62cc08cSmrg# --------------------------------------------- 1535b62cc08cSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1536b62cc08cSmrg# accordingly. 1537b62cc08cSmrgac_fn_c_check_decl () 1538b62cc08cSmrg{ 1539b62cc08cSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1540b62cc08cSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1541b62cc08cSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1542b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1543b62cc08cSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1544b62cc08cSmrgif eval \${$3+:} false; then : 1545b62cc08cSmrg $as_echo_n "(cached) " >&6 1546b62cc08cSmrgelse 1547b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1548b62cc08cSmrg/* end confdefs.h. */ 1549b62cc08cSmrg$4 1550b62cc08cSmrgint 1551b62cc08cSmrgmain () 1552b62cc08cSmrg{ 1553b62cc08cSmrg#ifndef $as_decl_name 1554b62cc08cSmrg#ifdef __cplusplus 1555b62cc08cSmrg (void) $as_decl_use; 1556b62cc08cSmrg#else 1557b62cc08cSmrg (void) $as_decl_name; 1558b62cc08cSmrg#endif 1559b62cc08cSmrg#endif 1560b62cc08cSmrg 1561b62cc08cSmrg ; 1562b62cc08cSmrg return 0; 1563b62cc08cSmrg} 1564b62cc08cSmrg_ACEOF 1565b62cc08cSmrgif ac_fn_c_try_compile "$LINENO"; then : 1566b62cc08cSmrg eval "$3=yes" 1567b62cc08cSmrgelse 1568b62cc08cSmrg eval "$3=no" 1569b62cc08cSmrgfi 1570b62cc08cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1571b62cc08cSmrgfi 1572b62cc08cSmrgeval ac_res=\$$3 1573b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1574b62cc08cSmrg$as_echo "$ac_res" >&6; } 1575b62cc08cSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1576b62cc08cSmrg 1577b62cc08cSmrg} # ac_fn_c_check_decl 1578b62cc08cSmrg 1579b62cc08cSmrg# ac_fn_c_try_cpp LINENO 1580b62cc08cSmrg# ---------------------- 1581b62cc08cSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1582b62cc08cSmrgac_fn_c_try_cpp () 1583b62cc08cSmrg{ 1584b62cc08cSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585b62cc08cSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1586b62cc08cSmrgcase "(($ac_try" in 1587b62cc08cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588b62cc08cSmrg *) ac_try_echo=$ac_try;; 1589b62cc08cSmrgesac 1590b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591b62cc08cSmrg$as_echo "$ac_try_echo"; } >&5 1592b62cc08cSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1593b62cc08cSmrg ac_status=$? 1594b62cc08cSmrg if test -s conftest.err; then 1595b62cc08cSmrg grep -v '^ *+' conftest.err >conftest.er1 1596b62cc08cSmrg cat conftest.er1 >&5 1597b62cc08cSmrg mv -f conftest.er1 conftest.err 1598b62cc08cSmrg fi 1599b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600b62cc08cSmrg test $ac_status = 0; } > conftest.i && { 1601b62cc08cSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1602b62cc08cSmrg test ! -s conftest.err 1603b62cc08cSmrg }; then : 1604b62cc08cSmrg ac_retval=0 1605b62cc08cSmrgelse 1606b62cc08cSmrg $as_echo "$as_me: failed program was:" >&5 1607b62cc08cSmrgsed 's/^/| /' conftest.$ac_ext >&5 1608b62cc08cSmrg 1609b62cc08cSmrg ac_retval=1 1610b62cc08cSmrgfi 1611b62cc08cSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612b62cc08cSmrg as_fn_set_status $ac_retval 1613b62cc08cSmrg 1614b62cc08cSmrg} # ac_fn_c_try_cpp 1615b62cc08cSmrg 1616b62cc08cSmrg# ac_fn_c_try_run LINENO 1617b62cc08cSmrg# ---------------------- 1618b62cc08cSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1619b62cc08cSmrg# that executables *can* be run. 1620b62cc08cSmrgac_fn_c_try_run () 1621b62cc08cSmrg{ 1622b62cc08cSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623b62cc08cSmrg if { { ac_try="$ac_link" 1624b62cc08cSmrgcase "(($ac_try" in 1625b62cc08cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1626b62cc08cSmrg *) ac_try_echo=$ac_try;; 1627b62cc08cSmrgesac 1628b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1629b62cc08cSmrg$as_echo "$ac_try_echo"; } >&5 1630b62cc08cSmrg (eval "$ac_link") 2>&5 1631b62cc08cSmrg ac_status=$? 1632b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633b62cc08cSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1634b62cc08cSmrg { { case "(($ac_try" in 1635b62cc08cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636b62cc08cSmrg *) ac_try_echo=$ac_try;; 1637b62cc08cSmrgesac 1638b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639b62cc08cSmrg$as_echo "$ac_try_echo"; } >&5 1640b62cc08cSmrg (eval "$ac_try") 2>&5 1641b62cc08cSmrg ac_status=$? 1642b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643b62cc08cSmrg test $ac_status = 0; }; }; then : 1644b62cc08cSmrg ac_retval=0 1645b62cc08cSmrgelse 1646b62cc08cSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 1647b62cc08cSmrg $as_echo "$as_me: failed program was:" >&5 1648b62cc08cSmrgsed 's/^/| /' conftest.$ac_ext >&5 1649b62cc08cSmrg 1650b62cc08cSmrg ac_retval=$ac_status 1651b62cc08cSmrgfi 1652b62cc08cSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1653b62cc08cSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654b62cc08cSmrg as_fn_set_status $ac_retval 1655b62cc08cSmrg 1656b62cc08cSmrg} # ac_fn_c_try_run 1657b62cc08cSmrg 1658b62cc08cSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1659b62cc08cSmrg# ------------------------------------------------------- 1660b62cc08cSmrg# Tests whether HEADER exists and can be compiled using the include files in 1661b62cc08cSmrg# INCLUDES, setting the cache variable VAR accordingly. 1662b62cc08cSmrgac_fn_c_check_header_compile () 1663b62cc08cSmrg{ 1664b62cc08cSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1666b62cc08cSmrg$as_echo_n "checking for $2... " >&6; } 1667b62cc08cSmrgif eval \${$3+:} false; then : 1668b62cc08cSmrg $as_echo_n "(cached) " >&6 1669b62cc08cSmrgelse 1670b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1671b62cc08cSmrg/* end confdefs.h. */ 1672b62cc08cSmrg$4 1673b62cc08cSmrg#include <$2> 1674b62cc08cSmrg_ACEOF 1675b62cc08cSmrgif ac_fn_c_try_compile "$LINENO"; then : 1676b62cc08cSmrg eval "$3=yes" 1677b62cc08cSmrgelse 1678b62cc08cSmrg eval "$3=no" 1679b62cc08cSmrgfi 1680b62cc08cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1681b62cc08cSmrgfi 1682b62cc08cSmrgeval ac_res=\$$3 1683b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1684b62cc08cSmrg$as_echo "$ac_res" >&6; } 1685b62cc08cSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686b62cc08cSmrg 1687b62cc08cSmrg} # ac_fn_c_check_header_compile 16889d794632Smrg 16899d794632Smrg# ac_fn_c_try_link LINENO 16909d794632Smrg# ----------------------- 16919d794632Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 16929d794632Smrgac_fn_c_try_link () 16939d794632Smrg{ 16949d794632Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16959d794632Smrg rm -f conftest.$ac_objext conftest$ac_exeext 16969d794632Smrg if { { ac_try="$ac_link" 16979d794632Smrgcase "(($ac_try" in 16989d794632Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16999d794632Smrg *) ac_try_echo=$ac_try;; 17009d794632Smrgesac 17019d794632Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17029d794632Smrg$as_echo "$ac_try_echo"; } >&5 17039d794632Smrg (eval "$ac_link") 2>conftest.err 17049d794632Smrg ac_status=$? 17059d794632Smrg if test -s conftest.err; then 17069d794632Smrg grep -v '^ *+' conftest.err >conftest.er1 17079d794632Smrg cat conftest.er1 >&5 17089d794632Smrg mv -f conftest.er1 conftest.err 17099d794632Smrg fi 17109d794632Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17119d794632Smrg test $ac_status = 0; } && { 17129d794632Smrg test -z "$ac_c_werror_flag" || 17139d794632Smrg test ! -s conftest.err 17149d794632Smrg } && test -s conftest$ac_exeext && { 17159d794632Smrg test "$cross_compiling" = yes || 17169d794632Smrg $as_test_x conftest$ac_exeext 17179d794632Smrg }; then : 17189d794632Smrg ac_retval=0 17199d794632Smrgelse 17209d794632Smrg $as_echo "$as_me: failed program was:" >&5 17219d794632Smrgsed 's/^/| /' conftest.$ac_ext >&5 17229d794632Smrg 17239d794632Smrg ac_retval=1 17249d794632Smrgfi 17259d794632Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 17269d794632Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 17279d794632Smrg # interfere with the next link command; also delete a directory that is 17289d794632Smrg # left behind by Apple's compiler. We do this before executing the actions. 17299d794632Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17309d794632Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17319d794632Smrg as_fn_set_status $ac_retval 17329d794632Smrg 17339d794632Smrg} # ac_fn_c_try_link 17349fe995a9Smrgcat >config.log <<_ACEOF 17359fe995a9SmrgThis file contains any messages produced by compilers while 17369fe995a9Smrgrunning configure, to aid debugging if configure makes a mistake. 17379fe995a9Smrg 17389d794632SmrgIt was created by iceauth $as_me 1.0.6, which was 1739b62cc08cSmrggenerated by GNU Autoconf 2.68. Invocation command line was 17409fe995a9Smrg 17419fe995a9Smrg $ $0 $@ 17429fe995a9Smrg 17439fe995a9Smrg_ACEOF 17449fe995a9Smrgexec 5>>config.log 17459fe995a9Smrg{ 17469fe995a9Smrgcat <<_ASUNAME 17479fe995a9Smrg## --------- ## 17489fe995a9Smrg## Platform. ## 17499fe995a9Smrg## --------- ## 17509fe995a9Smrg 17519fe995a9Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 17529fe995a9Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 17539fe995a9Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 17549fe995a9Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 17559fe995a9Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 17569fe995a9Smrg 17579fe995a9Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 17589fe995a9Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 17599fe995a9Smrg 17609fe995a9Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 17619fe995a9Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 17629fe995a9Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 17639fe995a9Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 17649fe995a9Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 17659fe995a9Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 17669fe995a9Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 17679fe995a9Smrg 17689fe995a9Smrg_ASUNAME 17699fe995a9Smrg 17709fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17719fe995a9Smrgfor as_dir in $PATH 17729fe995a9Smrgdo 17739fe995a9Smrg IFS=$as_save_IFS 17749fe995a9Smrg test -z "$as_dir" && as_dir=. 1775b62cc08cSmrg $as_echo "PATH: $as_dir" 1776b62cc08cSmrg done 17779fe995a9SmrgIFS=$as_save_IFS 17789fe995a9Smrg 17799fe995a9Smrg} >&5 17809fe995a9Smrg 17819fe995a9Smrgcat >&5 <<_ACEOF 17829fe995a9Smrg 17839fe995a9Smrg 17849fe995a9Smrg## ----------- ## 17859fe995a9Smrg## Core tests. ## 17869fe995a9Smrg## ----------- ## 17879fe995a9Smrg 17889fe995a9Smrg_ACEOF 17899fe995a9Smrg 17909fe995a9Smrg 17919fe995a9Smrg# Keep a trace of the command line. 17929fe995a9Smrg# Strip out --no-create and --no-recursion so they do not pile up. 17939fe995a9Smrg# Strip out --silent because we don't want to record it for future runs. 17949fe995a9Smrg# Also quote any args containing shell meta-characters. 17959fe995a9Smrg# Make two passes to allow for proper duplicate-argument suppression. 17969fe995a9Smrgac_configure_args= 17979fe995a9Smrgac_configure_args0= 17989fe995a9Smrgac_configure_args1= 17999fe995a9Smrgac_must_keep_next=false 18009fe995a9Smrgfor ac_pass in 1 2 18019fe995a9Smrgdo 18029fe995a9Smrg for ac_arg 18039fe995a9Smrg do 18049fe995a9Smrg case $ac_arg in 18059fe995a9Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18069fe995a9Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18079fe995a9Smrg | -silent | --silent | --silen | --sile | --sil) 18089fe995a9Smrg continue ;; 18099fe995a9Smrg *\'*) 1810b62cc08cSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18119fe995a9Smrg esac 18129fe995a9Smrg case $ac_pass in 1813b62cc08cSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 18149fe995a9Smrg 2) 1815b62cc08cSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 18169fe995a9Smrg if test $ac_must_keep_next = true; then 18179fe995a9Smrg ac_must_keep_next=false # Got value, back to normal. 18189fe995a9Smrg else 18199fe995a9Smrg case $ac_arg in 18209fe995a9Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 18219fe995a9Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 18229fe995a9Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 18239fe995a9Smrg | -with-* | --with-* | -without-* | --without-* | --x) 18249fe995a9Smrg case "$ac_configure_args0 " in 18259fe995a9Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 18269fe995a9Smrg esac 18279fe995a9Smrg ;; 18289fe995a9Smrg -* ) ac_must_keep_next=true ;; 18299fe995a9Smrg esac 18309fe995a9Smrg fi 1831b62cc08cSmrg as_fn_append ac_configure_args " '$ac_arg'" 18329fe995a9Smrg ;; 18339fe995a9Smrg esac 18349fe995a9Smrg done 18359fe995a9Smrgdone 1836b62cc08cSmrg{ ac_configure_args0=; unset ac_configure_args0;} 1837b62cc08cSmrg{ ac_configure_args1=; unset ac_configure_args1;} 18389fe995a9Smrg 18399fe995a9Smrg# When interrupted or exit'd, cleanup temporary files, and complete 18409fe995a9Smrg# config.log. We remove comments because anyway the quotes in there 18419fe995a9Smrg# would cause problems or look ugly. 18429fe995a9Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 18439fe995a9Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 18449fe995a9Smrgtrap 'exit_status=$? 18459fe995a9Smrg # Save into config.log some information that might help in debugging. 18469fe995a9Smrg { 18479fe995a9Smrg echo 18489fe995a9Smrg 1849b62cc08cSmrg $as_echo "## ---------------- ## 18509fe995a9Smrg## Cache variables. ## 1851b62cc08cSmrg## ---------------- ##" 18529fe995a9Smrg echo 18539fe995a9Smrg # The following way of writing the cache mishandles newlines in values, 18549fe995a9Smrg( 18559fe995a9Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 18569fe995a9Smrg eval ac_val=\$$ac_var 18579fe995a9Smrg case $ac_val in #( 18589fe995a9Smrg *${as_nl}*) 18599fe995a9Smrg case $ac_var in #( 1860b62cc08cSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1861b62cc08cSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18629fe995a9Smrg esac 18639fe995a9Smrg case $ac_var in #( 18649fe995a9Smrg _ | IFS | as_nl) ;; #( 1865b62cc08cSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1866b62cc08cSmrg *) { eval $ac_var=; unset $ac_var;} ;; 18679fe995a9Smrg esac ;; 18689fe995a9Smrg esac 18699fe995a9Smrg done 18709fe995a9Smrg (set) 2>&1 | 18719fe995a9Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 18729fe995a9Smrg *${as_nl}ac_space=\ *) 18739fe995a9Smrg sed -n \ 18749fe995a9Smrg "s/'\''/'\''\\\\'\'''\''/g; 18759fe995a9Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 18769fe995a9Smrg ;; #( 18779fe995a9Smrg *) 18789fe995a9Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18799fe995a9Smrg ;; 18809fe995a9Smrg esac | 18819fe995a9Smrg sort 18829fe995a9Smrg) 18839fe995a9Smrg echo 18849fe995a9Smrg 1885b62cc08cSmrg $as_echo "## ----------------- ## 18869fe995a9Smrg## Output variables. ## 1887b62cc08cSmrg## ----------------- ##" 18889fe995a9Smrg echo 18899fe995a9Smrg for ac_var in $ac_subst_vars 18909fe995a9Smrg do 18919fe995a9Smrg eval ac_val=\$$ac_var 18929fe995a9Smrg case $ac_val in 1893b62cc08cSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 18949fe995a9Smrg esac 1895b62cc08cSmrg $as_echo "$ac_var='\''$ac_val'\''" 18969fe995a9Smrg done | sort 18979fe995a9Smrg echo 18989fe995a9Smrg 18999fe995a9Smrg if test -n "$ac_subst_files"; then 1900b62cc08cSmrg $as_echo "## ------------------- ## 19019fe995a9Smrg## File substitutions. ## 1902b62cc08cSmrg## ------------------- ##" 19039fe995a9Smrg echo 19049fe995a9Smrg for ac_var in $ac_subst_files 19059fe995a9Smrg do 19069fe995a9Smrg eval ac_val=\$$ac_var 19079fe995a9Smrg case $ac_val in 1908b62cc08cSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19099fe995a9Smrg esac 1910b62cc08cSmrg $as_echo "$ac_var='\''$ac_val'\''" 19119fe995a9Smrg done | sort 19129fe995a9Smrg echo 19139fe995a9Smrg fi 19149fe995a9Smrg 19159fe995a9Smrg if test -s confdefs.h; then 1916b62cc08cSmrg $as_echo "## ----------- ## 19179fe995a9Smrg## confdefs.h. ## 1918b62cc08cSmrg## ----------- ##" 19199fe995a9Smrg echo 19209fe995a9Smrg cat confdefs.h 19219fe995a9Smrg echo 19229fe995a9Smrg fi 19239fe995a9Smrg test "$ac_signal" != 0 && 1924b62cc08cSmrg $as_echo "$as_me: caught signal $ac_signal" 1925b62cc08cSmrg $as_echo "$as_me: exit $exit_status" 19269fe995a9Smrg } >&5 19279fe995a9Smrg rm -f core *.core core.conftest.* && 19289fe995a9Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 19299fe995a9Smrg exit $exit_status 19309fe995a9Smrg' 0 19319fe995a9Smrgfor ac_signal in 1 2 13 15; do 1932b62cc08cSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 19339fe995a9Smrgdone 19349fe995a9Smrgac_signal=0 19359fe995a9Smrg 19369fe995a9Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 19379fe995a9Smrgrm -f -r conftest* confdefs.h 19389fe995a9Smrg 1939b62cc08cSmrg$as_echo "/* confdefs.h */" > confdefs.h 1940b62cc08cSmrg 19419fe995a9Smrg# Predefined preprocessor variables. 19429fe995a9Smrg 19439fe995a9Smrgcat >>confdefs.h <<_ACEOF 19449fe995a9Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 19459fe995a9Smrg_ACEOF 19469fe995a9Smrg 19479fe995a9Smrgcat >>confdefs.h <<_ACEOF 19489fe995a9Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 19499fe995a9Smrg_ACEOF 19509fe995a9Smrg 19519fe995a9Smrgcat >>confdefs.h <<_ACEOF 19529fe995a9Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 19539fe995a9Smrg_ACEOF 19549fe995a9Smrg 19559fe995a9Smrgcat >>confdefs.h <<_ACEOF 19569fe995a9Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 19579fe995a9Smrg_ACEOF 19589fe995a9Smrg 19599fe995a9Smrgcat >>confdefs.h <<_ACEOF 19609fe995a9Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 19619fe995a9Smrg_ACEOF 19629fe995a9Smrg 1963b62cc08cSmrgcat >>confdefs.h <<_ACEOF 1964b62cc08cSmrg#define PACKAGE_URL "$PACKAGE_URL" 1965b62cc08cSmrg_ACEOF 1966b62cc08cSmrg 19679fe995a9Smrg 19689fe995a9Smrg# Let the site file select an alternate cache file if it wants to. 1969b62cc08cSmrg# Prefer an explicitly selected file to automatically selected ones. 1970b62cc08cSmrgac_site_file1=NONE 1971b62cc08cSmrgac_site_file2=NONE 19729fe995a9Smrgif test -n "$CONFIG_SITE"; then 1973b62cc08cSmrg # We do not want a PATH search for config.site. 1974b62cc08cSmrg case $CONFIG_SITE in #(( 1975b62cc08cSmrg -*) ac_site_file1=./$CONFIG_SITE;; 1976b62cc08cSmrg */*) ac_site_file1=$CONFIG_SITE;; 1977b62cc08cSmrg *) ac_site_file1=./$CONFIG_SITE;; 1978b62cc08cSmrg esac 19799fe995a9Smrgelif test "x$prefix" != xNONE; then 1980b62cc08cSmrg ac_site_file1=$prefix/share/config.site 1981b62cc08cSmrg ac_site_file2=$prefix/etc/config.site 19829fe995a9Smrgelse 1983b62cc08cSmrg ac_site_file1=$ac_default_prefix/share/config.site 1984b62cc08cSmrg ac_site_file2=$ac_default_prefix/etc/config.site 19859fe995a9Smrgfi 1986b62cc08cSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 19879fe995a9Smrgdo 1988b62cc08cSmrg test "x$ac_site_file" = xNONE && continue 1989b62cc08cSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1990b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1991b62cc08cSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 19929fe995a9Smrg sed 's/^/| /' "$ac_site_file" >&5 1993b62cc08cSmrg . "$ac_site_file" \ 1994b62cc08cSmrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1995b62cc08cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1996b62cc08cSmrgas_fn_error $? "failed to load site script $ac_site_file 1997b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; } 19989fe995a9Smrg fi 19999fe995a9Smrgdone 20009fe995a9Smrg 20019fe995a9Smrgif test -r "$cache_file"; then 2002b62cc08cSmrg # Some versions of bash will fail to source /dev/null (special files 2003b62cc08cSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2004b62cc08cSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2005b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2006b62cc08cSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 20079fe995a9Smrg case $cache_file in 20089fe995a9Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 20099fe995a9Smrg *) . "./$cache_file";; 20109fe995a9Smrg esac 20119fe995a9Smrg fi 20129fe995a9Smrgelse 2013b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2014b62cc08cSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 20159fe995a9Smrg >$cache_file 20169fe995a9Smrgfi 20179fe995a9Smrg 20189fe995a9Smrg# Check that the precious variables saved in the cache have kept the same 20199fe995a9Smrg# value. 20209fe995a9Smrgac_cache_corrupted=false 20219fe995a9Smrgfor ac_var in $ac_precious_vars; do 20229fe995a9Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 20239fe995a9Smrg eval ac_new_set=\$ac_env_${ac_var}_set 20249fe995a9Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 20259fe995a9Smrg eval ac_new_val=\$ac_env_${ac_var}_value 20269fe995a9Smrg case $ac_old_set,$ac_new_set in 20279fe995a9Smrg set,) 2028b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2029b62cc08cSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 20309fe995a9Smrg ac_cache_corrupted=: ;; 20319fe995a9Smrg ,set) 2032b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2033b62cc08cSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 20349fe995a9Smrg ac_cache_corrupted=: ;; 20359fe995a9Smrg ,);; 20369fe995a9Smrg *) 20379fe995a9Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 2038b62cc08cSmrg # differences in whitespace do not lead to failure. 2039b62cc08cSmrg ac_old_val_w=`echo x $ac_old_val` 2040b62cc08cSmrg ac_new_val_w=`echo x $ac_new_val` 2041b62cc08cSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2042b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2043b62cc08cSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2044b62cc08cSmrg ac_cache_corrupted=: 2045b62cc08cSmrg else 2046b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2047b62cc08cSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2048b62cc08cSmrg eval $ac_var=\$ac_old_val 2049b62cc08cSmrg fi 2050b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2051b62cc08cSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2052b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2053b62cc08cSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 20549fe995a9Smrg fi;; 20559fe995a9Smrg esac 20569fe995a9Smrg # Pass precious variables to config.status. 20579fe995a9Smrg if test "$ac_new_set" = set; then 20589fe995a9Smrg case $ac_new_val in 2059b62cc08cSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2060b62cc08cSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2061b62cc08cSmrg esac 2062b62cc08cSmrg case " $ac_configure_args " in 2063b62cc08cSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2064b62cc08cSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2065b62cc08cSmrg esac 2066b62cc08cSmrg fi 2067b62cc08cSmrgdone 2068b62cc08cSmrgif $ac_cache_corrupted; then 2069b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2070b62cc08cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2071b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2072b62cc08cSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2073b62cc08cSmrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2074b62cc08cSmrgfi 2075b62cc08cSmrg## -------------------- ## 2076b62cc08cSmrg## Main body of script. ## 2077b62cc08cSmrg## -------------------- ## 20789fe995a9Smrg 20799fe995a9Smrgac_ext=c 20809fe995a9Smrgac_cpp='$CPP $CPPFLAGS' 20819fe995a9Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20829fe995a9Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20839fe995a9Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 20849fe995a9Smrg 20859fe995a9Smrg 20869d794632Smrgam__api_version='1.14' 20879fe995a9Smrg 20889fe995a9Smrgac_aux_dir= 20899fe995a9Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 20909fe995a9Smrg if test -f "$ac_dir/install-sh"; then 20919fe995a9Smrg ac_aux_dir=$ac_dir 20929fe995a9Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 20939fe995a9Smrg break 20949fe995a9Smrg elif test -f "$ac_dir/install.sh"; then 20959fe995a9Smrg ac_aux_dir=$ac_dir 20969fe995a9Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 20979fe995a9Smrg break 20989fe995a9Smrg elif test -f "$ac_dir/shtool"; then 20999fe995a9Smrg ac_aux_dir=$ac_dir 21009fe995a9Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 21019fe995a9Smrg break 21029fe995a9Smrg fi 21039fe995a9Smrgdone 21049fe995a9Smrgif test -z "$ac_aux_dir"; then 2105b62cc08cSmrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 21069fe995a9Smrgfi 21079fe995a9Smrg 21089fe995a9Smrg# These three variables are undocumented and unsupported, 21099fe995a9Smrg# and are intended to be withdrawn in a future Autoconf release. 21109fe995a9Smrg# They can cause serious problems if a builder's source tree is in a directory 21119fe995a9Smrg# whose full name contains unusual characters. 21129fe995a9Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 21139fe995a9Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 21149fe995a9Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 21159fe995a9Smrg 21169fe995a9Smrg 21179fe995a9Smrg# Find a good install program. We prefer a C program (faster), 21189fe995a9Smrg# so one script is as good as another. But avoid the broken or 21199fe995a9Smrg# incompatible versions: 21209fe995a9Smrg# SysV /etc/install, /usr/sbin/install 21219fe995a9Smrg# SunOS /usr/etc/install 21229fe995a9Smrg# IRIX /sbin/install 21239fe995a9Smrg# AIX /bin/install 21249fe995a9Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 21259fe995a9Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 21269fe995a9Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 21279fe995a9Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 21289fe995a9Smrg# OS/2's system install, which has a completely different semantic 21299fe995a9Smrg# ./install, which can be erroneously created by make from ./install.sh. 2130b62cc08cSmrg# Reject install programs that cannot install multiple files. 2131b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2132b62cc08cSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 21339fe995a9Smrgif test -z "$INSTALL"; then 2134b62cc08cSmrgif ${ac_cv_path_install+:} false; then : 2135b62cc08cSmrg $as_echo_n "(cached) " >&6 21369fe995a9Smrgelse 21379fe995a9Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21389fe995a9Smrgfor as_dir in $PATH 21399fe995a9Smrgdo 21409fe995a9Smrg IFS=$as_save_IFS 21419fe995a9Smrg test -z "$as_dir" && as_dir=. 2142b62cc08cSmrg # Account for people who put trailing slashes in PATH elements. 2143b62cc08cSmrgcase $as_dir/ in #(( 2144b62cc08cSmrg ./ | .// | /[cC]/* | \ 21459fe995a9Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2146b62cc08cSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 21479fe995a9Smrg /usr/ucb/* ) ;; 21489fe995a9Smrg *) 21499fe995a9Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 21509fe995a9Smrg # Don't use installbsd from OSF since it installs stuff as root 21519fe995a9Smrg # by default. 21529fe995a9Smrg for ac_prog in ginstall scoinst install; do 21539fe995a9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 21549fe995a9Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 21559fe995a9Smrg if test $ac_prog = install && 21569fe995a9Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 21579fe995a9Smrg # AIX install. It has an incompatible calling convention. 21589fe995a9Smrg : 21599fe995a9Smrg elif test $ac_prog = install && 21609fe995a9Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 21619fe995a9Smrg # program-specific install script used by HP pwplus--don't use. 21629fe995a9Smrg : 21639fe995a9Smrg else 2164b62cc08cSmrg rm -rf conftest.one conftest.two conftest.dir 2165b62cc08cSmrg echo one > conftest.one 2166b62cc08cSmrg echo two > conftest.two 2167b62cc08cSmrg mkdir conftest.dir 2168b62cc08cSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2169b62cc08cSmrg test -s conftest.one && test -s conftest.two && 2170b62cc08cSmrg test -s conftest.dir/conftest.one && 2171b62cc08cSmrg test -s conftest.dir/conftest.two 2172b62cc08cSmrg then 2173b62cc08cSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2174b62cc08cSmrg break 3 2175b62cc08cSmrg fi 21769fe995a9Smrg fi 21779fe995a9Smrg fi 21789fe995a9Smrg done 21799fe995a9Smrg done 21809fe995a9Smrg ;; 21819fe995a9Smrgesac 2182b62cc08cSmrg 2183b62cc08cSmrg done 21849fe995a9SmrgIFS=$as_save_IFS 21859fe995a9Smrg 2186b62cc08cSmrgrm -rf conftest.one conftest.two conftest.dir 21879fe995a9Smrg 21889fe995a9Smrgfi 21899fe995a9Smrg if test "${ac_cv_path_install+set}" = set; then 21909fe995a9Smrg INSTALL=$ac_cv_path_install 21919fe995a9Smrg else 21929fe995a9Smrg # As a last resort, use the slow shell script. Don't cache a 21939fe995a9Smrg # value for INSTALL within a source directory, because that will 21949fe995a9Smrg # break other packages using the cache if that directory is 21959fe995a9Smrg # removed, or if the value is a relative name. 21969fe995a9Smrg INSTALL=$ac_install_sh 21979fe995a9Smrg fi 21989fe995a9Smrgfi 2199b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2200b62cc08cSmrg$as_echo "$INSTALL" >&6; } 22019fe995a9Smrg 22029fe995a9Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 22039fe995a9Smrg# It thinks the first close brace ends the variable substitution. 22049fe995a9Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 22059fe995a9Smrg 22069fe995a9Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 22079fe995a9Smrg 22089fe995a9Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 22099fe995a9Smrg 2210b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2211b62cc08cSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 2212b62cc08cSmrg# Reject unsafe characters in $srcdir or the absolute working directory 2213b62cc08cSmrg# name. Accept space and tab only in the latter. 2214b62cc08cSmrgam_lf=' 2215b62cc08cSmrg' 2216b62cc08cSmrgcase `pwd` in 2217b62cc08cSmrg *[\\\"\#\$\&\'\`$am_lf]*) 2218b62cc08cSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2219b62cc08cSmrgesac 2220b62cc08cSmrgcase $srcdir in 2221b62cc08cSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 22229d794632Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2223b62cc08cSmrgesac 2224b62cc08cSmrg 22259d794632Smrg# Do 'set' in a subshell so we don't clobber the current shell's 22269fe995a9Smrg# arguments. Must try -L first in case configure is actually a 22279fe995a9Smrg# symlink; some systems play weird games with the mod time of symlinks 22289fe995a9Smrg# (eg FreeBSD returns the mod time of the symlink's containing 22299fe995a9Smrg# directory). 22309fe995a9Smrgif ( 22319d794632Smrg am_has_slept=no 22329d794632Smrg for am_try in 1 2; do 22339d794632Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 22349d794632Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 22359d794632Smrg if test "$*" = "X"; then 22369d794632Smrg # -L didn't work. 22379d794632Smrg set X `ls -t "$srcdir/configure" conftest.file` 22389d794632Smrg fi 22399d794632Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 22409d794632Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 22419d794632Smrg 22429d794632Smrg # If neither matched, then we have a broken ls. This can happen 22439d794632Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 22449d794632Smrg # broken ls alias from the environment. This has actually 22459d794632Smrg # happened. Such a system could not be considered "sane". 22469d794632Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 22479d794632Smrg alias in your environment" "$LINENO" 5 22489d794632Smrg fi 22499d794632Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 22509d794632Smrg break 22519d794632Smrg fi 22529d794632Smrg # Just in case. 22539d794632Smrg sleep 1 22549d794632Smrg am_has_slept=yes 22559d794632Smrg done 22569fe995a9Smrg test "$2" = conftest.file 22579fe995a9Smrg ) 22589fe995a9Smrgthen 22599fe995a9Smrg # Ok. 22609fe995a9Smrg : 22619fe995a9Smrgelse 2262b62cc08cSmrg as_fn_error $? "newly created file is older than distributed files! 2263b62cc08cSmrgCheck your system clock" "$LINENO" 5 22649fe995a9Smrgfi 2265b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2266b62cc08cSmrg$as_echo "yes" >&6; } 22679d794632Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 22689d794632Smrg# generated files are strictly newer. 22699d794632Smrgam_sleep_pid= 22709d794632Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 22719d794632Smrg ( sleep 1 ) & 22729d794632Smrg am_sleep_pid=$! 22739d794632Smrgfi 22749d794632Smrg 22759d794632Smrgrm -f conftest.file 22769d794632Smrg 22779fe995a9Smrgtest "$program_prefix" != NONE && 22789fe995a9Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 22799fe995a9Smrg# Use a double $ so make ignores it. 22809fe995a9Smrgtest "$program_suffix" != NONE && 22819fe995a9Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2282b62cc08cSmrg# Double any \ or $. 22839fe995a9Smrg# By default was `s,x,x', remove it if useless. 2284b62cc08cSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2285b62cc08cSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 22869fe995a9Smrg 22879fe995a9Smrg# expand $ac_aux_dir to an absolute path 22889fe995a9Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 22899fe995a9Smrg 2290b62cc08cSmrgif test x"${MISSING+set}" != xset; then 2291b62cc08cSmrg case $am_aux_dir in 2292b62cc08cSmrg *\ * | *\ *) 2293b62cc08cSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2294b62cc08cSmrg *) 2295b62cc08cSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2296b62cc08cSmrg esac 2297b62cc08cSmrgfi 22989fe995a9Smrg# Use eval to expand $SHELL 22999d794632Smrgif eval "$MISSING --is-lightweight"; then 23009d794632Smrg am_missing_run="$MISSING " 23019fe995a9Smrgelse 23029fe995a9Smrg am_missing_run= 23039d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 23049d794632Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2305b62cc08cSmrgfi 2306b62cc08cSmrg 2307b62cc08cSmrgif test x"${install_sh}" != xset; then 2308b62cc08cSmrg case $am_aux_dir in 2309b62cc08cSmrg *\ * | *\ *) 2310b62cc08cSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2311b62cc08cSmrg *) 2312b62cc08cSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2313b62cc08cSmrg esac 2314b62cc08cSmrgfi 2315b62cc08cSmrg 23169d794632Smrg# Installed binaries are usually stripped using 'strip' when the user 23179d794632Smrg# run "make install-strip". However 'strip' might not be the right 2318b62cc08cSmrg# tool to use in cross-compilation environments, therefore Automake 23199d794632Smrg# will honor the 'STRIP' environment variable to overrule this program. 2320b62cc08cSmrgif test "$cross_compiling" != no; then 2321b62cc08cSmrg if test -n "$ac_tool_prefix"; then 2322b62cc08cSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2323b62cc08cSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2324b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2325b62cc08cSmrg$as_echo_n "checking for $ac_word... " >&6; } 2326b62cc08cSmrgif ${ac_cv_prog_STRIP+:} false; then : 2327b62cc08cSmrg $as_echo_n "(cached) " >&6 2328b62cc08cSmrgelse 2329b62cc08cSmrg if test -n "$STRIP"; then 2330b62cc08cSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2331b62cc08cSmrgelse 2332b62cc08cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2333b62cc08cSmrgfor as_dir in $PATH 2334b62cc08cSmrgdo 2335b62cc08cSmrg IFS=$as_save_IFS 2336b62cc08cSmrg test -z "$as_dir" && as_dir=. 2337b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2338b62cc08cSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2339b62cc08cSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2340b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2341b62cc08cSmrg break 2 2342b62cc08cSmrg fi 2343b62cc08cSmrgdone 2344b62cc08cSmrg done 2345b62cc08cSmrgIFS=$as_save_IFS 2346b62cc08cSmrg 2347b62cc08cSmrgfi 2348b62cc08cSmrgfi 2349b62cc08cSmrgSTRIP=$ac_cv_prog_STRIP 2350b62cc08cSmrgif test -n "$STRIP"; then 2351b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2352b62cc08cSmrg$as_echo "$STRIP" >&6; } 2353b62cc08cSmrgelse 2354b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2355b62cc08cSmrg$as_echo "no" >&6; } 2356b62cc08cSmrgfi 2357b62cc08cSmrg 2358b62cc08cSmrg 2359b62cc08cSmrgfi 2360b62cc08cSmrgif test -z "$ac_cv_prog_STRIP"; then 2361b62cc08cSmrg ac_ct_STRIP=$STRIP 2362b62cc08cSmrg # Extract the first word of "strip", so it can be a program name with args. 2363b62cc08cSmrgset dummy strip; ac_word=$2 2364b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2365b62cc08cSmrg$as_echo_n "checking for $ac_word... " >&6; } 2366b62cc08cSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2367b62cc08cSmrg $as_echo_n "(cached) " >&6 2368b62cc08cSmrgelse 2369b62cc08cSmrg if test -n "$ac_ct_STRIP"; then 2370b62cc08cSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2371b62cc08cSmrgelse 2372b62cc08cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2373b62cc08cSmrgfor as_dir in $PATH 2374b62cc08cSmrgdo 2375b62cc08cSmrg IFS=$as_save_IFS 2376b62cc08cSmrg test -z "$as_dir" && as_dir=. 2377b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2378b62cc08cSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2379b62cc08cSmrg ac_cv_prog_ac_ct_STRIP="strip" 2380b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2381b62cc08cSmrg break 2 2382b62cc08cSmrg fi 2383b62cc08cSmrgdone 2384b62cc08cSmrg done 2385b62cc08cSmrgIFS=$as_save_IFS 2386b62cc08cSmrg 2387b62cc08cSmrgfi 2388b62cc08cSmrgfi 2389b62cc08cSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2390b62cc08cSmrgif test -n "$ac_ct_STRIP"; then 2391b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2392b62cc08cSmrg$as_echo "$ac_ct_STRIP" >&6; } 2393b62cc08cSmrgelse 2394b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2395b62cc08cSmrg$as_echo "no" >&6; } 2396b62cc08cSmrgfi 2397b62cc08cSmrg 2398b62cc08cSmrg if test "x$ac_ct_STRIP" = x; then 2399b62cc08cSmrg STRIP=":" 2400b62cc08cSmrg else 2401b62cc08cSmrg case $cross_compiling:$ac_tool_warned in 2402b62cc08cSmrgyes:) 2403b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2404b62cc08cSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2405b62cc08cSmrgac_tool_warned=yes ;; 2406b62cc08cSmrgesac 2407b62cc08cSmrg STRIP=$ac_ct_STRIP 2408b62cc08cSmrg fi 2409b62cc08cSmrgelse 2410b62cc08cSmrg STRIP="$ac_cv_prog_STRIP" 24119fe995a9Smrgfi 24129fe995a9Smrg 2413b62cc08cSmrgfi 2414b62cc08cSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2415b62cc08cSmrg 2416b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2417b62cc08cSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 24189fe995a9Smrgif test -z "$MKDIR_P"; then 2419b62cc08cSmrg if ${ac_cv_path_mkdir+:} false; then : 2420b62cc08cSmrg $as_echo_n "(cached) " >&6 24219fe995a9Smrgelse 24229fe995a9Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24239fe995a9Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 24249fe995a9Smrgdo 24259fe995a9Smrg IFS=$as_save_IFS 24269fe995a9Smrg test -z "$as_dir" && as_dir=. 2427b62cc08cSmrg for ac_prog in mkdir gmkdir; do 24289fe995a9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 24299fe995a9Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 24309fe995a9Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 24319fe995a9Smrg 'mkdir (GNU coreutils) '* | \ 24329fe995a9Smrg 'mkdir (coreutils) '* | \ 24339fe995a9Smrg 'mkdir (fileutils) '4.1*) 24349fe995a9Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 24359fe995a9Smrg break 3;; 24369fe995a9Smrg esac 24379fe995a9Smrg done 24389fe995a9Smrg done 2439b62cc08cSmrg done 24409fe995a9SmrgIFS=$as_save_IFS 24419fe995a9Smrg 24429fe995a9Smrgfi 24439fe995a9Smrg 2444b62cc08cSmrg test -d ./--version && rmdir ./--version 24459fe995a9Smrg if test "${ac_cv_path_mkdir+set}" = set; then 24469fe995a9Smrg MKDIR_P="$ac_cv_path_mkdir -p" 24479fe995a9Smrg else 24489fe995a9Smrg # As a last resort, use the slow shell script. Don't cache a 24499fe995a9Smrg # value for MKDIR_P within a source directory, because that will 24509fe995a9Smrg # break other packages using the cache if that directory is 24519fe995a9Smrg # removed, or if the value is a relative name. 24529fe995a9Smrg MKDIR_P="$ac_install_sh -d" 24539fe995a9Smrg fi 24549fe995a9Smrgfi 2455b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2456b62cc08cSmrg$as_echo "$MKDIR_P" >&6; } 24579fe995a9Smrg 24589fe995a9Smrgfor ac_prog in gawk mawk nawk awk 24599fe995a9Smrgdo 24609fe995a9Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 24619fe995a9Smrgset dummy $ac_prog; ac_word=$2 2462b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2463b62cc08cSmrg$as_echo_n "checking for $ac_word... " >&6; } 2464b62cc08cSmrgif ${ac_cv_prog_AWK+:} false; then : 2465b62cc08cSmrg $as_echo_n "(cached) " >&6 24669fe995a9Smrgelse 24679fe995a9Smrg if test -n "$AWK"; then 24689fe995a9Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 24699fe995a9Smrgelse 24709fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24719fe995a9Smrgfor as_dir in $PATH 24729fe995a9Smrgdo 24739fe995a9Smrg IFS=$as_save_IFS 24749fe995a9Smrg test -z "$as_dir" && as_dir=. 2475b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 24769fe995a9Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24779fe995a9Smrg ac_cv_prog_AWK="$ac_prog" 2478b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24799fe995a9Smrg break 2 24809fe995a9Smrg fi 24819fe995a9Smrgdone 2482b62cc08cSmrg done 24839fe995a9SmrgIFS=$as_save_IFS 24849fe995a9Smrg 24859fe995a9Smrgfi 24869fe995a9Smrgfi 24879fe995a9SmrgAWK=$ac_cv_prog_AWK 24889fe995a9Smrgif test -n "$AWK"; then 2489b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2490b62cc08cSmrg$as_echo "$AWK" >&6; } 24919fe995a9Smrgelse 2492b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2493b62cc08cSmrg$as_echo "no" >&6; } 24949fe995a9Smrgfi 24959fe995a9Smrg 24969fe995a9Smrg 24979fe995a9Smrg test -n "$AWK" && break 24989fe995a9Smrgdone 24999fe995a9Smrg 2500b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2501b62cc08cSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2502b62cc08cSmrgset x ${MAKE-make} 2503b62cc08cSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2504b62cc08cSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2505b62cc08cSmrg $as_echo_n "(cached) " >&6 25069fe995a9Smrgelse 25079fe995a9Smrg cat >conftest.make <<\_ACEOF 25089fe995a9SmrgSHELL = /bin/sh 25099fe995a9Smrgall: 25109fe995a9Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 25119fe995a9Smrg_ACEOF 2512b62cc08cSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 25139fe995a9Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 25149fe995a9Smrg *@@@%%%=?*=@@@%%%*) 25159fe995a9Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 25169fe995a9Smrg *) 25179fe995a9Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 25189fe995a9Smrgesac 25199fe995a9Smrgrm -f conftest.make 25209fe995a9Smrgfi 25219fe995a9Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2522b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2523b62cc08cSmrg$as_echo "yes" >&6; } 25249fe995a9Smrg SET_MAKE= 25259fe995a9Smrgelse 2526b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2527b62cc08cSmrg$as_echo "no" >&6; } 25289fe995a9Smrg SET_MAKE="MAKE=${MAKE-make}" 25299fe995a9Smrgfi 25309fe995a9Smrg 25319fe995a9Smrgrm -rf .tst 2>/dev/null 25329fe995a9Smrgmkdir .tst 2>/dev/null 25339fe995a9Smrgif test -d .tst; then 25349fe995a9Smrg am__leading_dot=. 25359fe995a9Smrgelse 25369fe995a9Smrg am__leading_dot=_ 25379fe995a9Smrgfi 25389fe995a9Smrgrmdir .tst 2>/dev/null 25399fe995a9Smrg 25409d794632Smrg# Check whether --enable-silent-rules was given. 25419d794632Smrgif test "${enable_silent_rules+set}" = set; then : 25429d794632Smrg enableval=$enable_silent_rules; 25439d794632Smrgfi 25449d794632Smrg 25459d794632Smrgcase $enable_silent_rules in # ((( 25469d794632Smrg yes) AM_DEFAULT_VERBOSITY=0;; 25479d794632Smrg no) AM_DEFAULT_VERBOSITY=1;; 25489d794632Smrg *) AM_DEFAULT_VERBOSITY=1;; 25499d794632Smrgesac 25509d794632Smrgam_make=${MAKE-make} 25519d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 25529d794632Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 25539d794632Smrgif ${am_cv_make_support_nested_variables+:} false; then : 25549d794632Smrg $as_echo_n "(cached) " >&6 25559d794632Smrgelse 25569d794632Smrg if $as_echo 'TRUE=$(BAR$(V)) 25579d794632SmrgBAR0=false 25589d794632SmrgBAR1=true 25599d794632SmrgV=1 25609d794632Smrgam__doit: 25619d794632Smrg @$(TRUE) 25629d794632Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 25639d794632Smrg am_cv_make_support_nested_variables=yes 25649d794632Smrgelse 25659d794632Smrg am_cv_make_support_nested_variables=no 25669d794632Smrgfi 25679d794632Smrgfi 25689d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 25699d794632Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 25709d794632Smrgif test $am_cv_make_support_nested_variables = yes; then 25719d794632Smrg AM_V='$(V)' 25729d794632Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 25739d794632Smrgelse 25749d794632Smrg AM_V=$AM_DEFAULT_VERBOSITY 25759d794632Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 25769d794632Smrgfi 25779d794632SmrgAM_BACKSLASH='\' 25789d794632Smrg 25799fe995a9Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 25809fe995a9Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 25819fe995a9Smrg # is not polluted with repeated "-I." 25829fe995a9Smrg am__isrc=' -I$(srcdir)' 25839fe995a9Smrg # test to see if srcdir already configured 25849fe995a9Smrg if test -f $srcdir/config.status; then 2585b62cc08cSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 25869fe995a9Smrg fi 25879fe995a9Smrgfi 25889fe995a9Smrg 25899fe995a9Smrg# test whether we have cygpath 25909fe995a9Smrgif test -z "$CYGPATH_W"; then 25919fe995a9Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 25929fe995a9Smrg CYGPATH_W='cygpath -w' 25939fe995a9Smrg else 25949fe995a9Smrg CYGPATH_W=echo 25959fe995a9Smrg fi 25969fe995a9Smrgfi 25979fe995a9Smrg 25989fe995a9Smrg 25999fe995a9Smrg# Define the identity of the package. 26009fe995a9Smrg PACKAGE='iceauth' 26019d794632Smrg VERSION='1.0.6' 26029fe995a9Smrg 26039fe995a9Smrg 26049fe995a9Smrgcat >>confdefs.h <<_ACEOF 26059fe995a9Smrg#define PACKAGE "$PACKAGE" 26069fe995a9Smrg_ACEOF 26079fe995a9Smrg 26089fe995a9Smrg 26099fe995a9Smrgcat >>confdefs.h <<_ACEOF 26109fe995a9Smrg#define VERSION "$VERSION" 26119fe995a9Smrg_ACEOF 26129fe995a9Smrg 26139fe995a9Smrg# Some tools Automake needs. 26149fe995a9Smrg 26159fe995a9SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 26169fe995a9Smrg 26179fe995a9Smrg 26189fe995a9SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 26199fe995a9Smrg 26209fe995a9Smrg 26219fe995a9SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 26229fe995a9Smrg 26239fe995a9Smrg 26249fe995a9SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 26259fe995a9Smrg 26269fe995a9Smrg 26279fe995a9SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 26289fe995a9Smrg 26299d794632Smrg# For better backward compatibility. To be removed once Automake 1.9.x 26309d794632Smrg# dies out for good. For more background, see: 26319d794632Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 26329d794632Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 26339d794632Smrgmkdir_p='$(MKDIR_P)' 26349d794632Smrg 26359fe995a9Smrg# We need awk for the "check" target. The system "awk" is bad on 26369fe995a9Smrg# some platforms. 26379d794632Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 26389d794632Smrg# in the wild :-( We should find a proper way to deprecate it ... 26399d794632SmrgAMTAR='$${TAR-tar}' 26409d794632Smrg 26419d794632Smrg 26429d794632Smrg# We'll loop over all known methods to create a tar archive until one works. 26439d794632Smrg_am_tools='gnutar pax cpio none' 26449d794632Smrg 26459d794632Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 26469d794632Smrg 26479fe995a9Smrg 26489fe995a9Smrg 26499fe995a9Smrg 26509fe995a9Smrg 26519fe995a9Smrg 26529d794632Smrg# POSIX will say in a future version that running "rm -f" with no argument 26539d794632Smrg# is OK; and we want to be able to make that assumption in our Makefile 26549d794632Smrg# recipes. So use an aggressive probe to check that the usage we want is 26559d794632Smrg# actually supported "in the wild" to an acceptable degree. 26569d794632Smrg# See automake bug#10828. 26579d794632Smrg# To make any issue more visible, cause the running configure to be aborted 26589d794632Smrg# by default if the 'rm' program in use doesn't match our expectations; the 26599d794632Smrg# user can still override this though. 26609d794632Smrgif rm -f && rm -fr && rm -rf; then : OK; else 26619d794632Smrg cat >&2 <<'END' 26629d794632SmrgOops! 26639fe995a9Smrg 26649d794632SmrgYour 'rm' program seems unable to run without file operands specified 26659d794632Smrgon the command line, even when the '-f' option is present. This is contrary 26669d794632Smrgto the behaviour of most rm programs out there, and not conforming with 26679d794632Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 26689fe995a9Smrg 26699d794632SmrgPlease tell bug-automake@gnu.org about your system, including the value 26709d794632Smrgof your $PATH and any error possibly output before this message. This 26719d794632Smrgcan help us improve future automake versions. 26729d794632Smrg 26739d794632SmrgEND 26749d794632Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 26759d794632Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 26769d794632Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 26779d794632Smrg echo >&2 26789d794632Smrg else 26799d794632Smrg cat >&2 <<'END' 26809d794632SmrgAborting the configuration process, to ensure you take notice of the issue. 26819d794632Smrg 26829d794632SmrgYou can download and install GNU coreutils to get an 'rm' implementation 26839d794632Smrgthat behaves properly: <http://www.gnu.org/software/coreutils/>. 26849d794632Smrg 26859d794632SmrgIf you want to complete the configuration process using your problematic 26869d794632Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 26879d794632Smrgto "yes", and re-run configure. 26889d794632Smrg 26899d794632SmrgEND 26909d794632Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 26919d794632Smrg fi 26929d794632Smrgfi 2693b62cc08cSmrg 2694b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2695b62cc08cSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 26969fe995a9Smrg # Check whether --enable-maintainer-mode was given. 2697b62cc08cSmrgif test "${enable_maintainer_mode+set}" = set; then : 26989fe995a9Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 26999fe995a9Smrgelse 27009fe995a9Smrg USE_MAINTAINER_MODE=no 27019fe995a9Smrgfi 27029fe995a9Smrg 2703b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2704b62cc08cSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 27059fe995a9Smrg if test $USE_MAINTAINER_MODE = yes; then 27069fe995a9Smrg MAINTAINER_MODE_TRUE= 27079fe995a9Smrg MAINTAINER_MODE_FALSE='#' 27089fe995a9Smrgelse 27099fe995a9Smrg MAINTAINER_MODE_TRUE='#' 27109fe995a9Smrg MAINTAINER_MODE_FALSE= 27119fe995a9Smrgfi 27129fe995a9Smrg 27139fe995a9Smrg MAINT=$MAINTAINER_MODE_TRUE 27149fe995a9Smrg 27159fe995a9Smrg 27169fe995a9Smrg 27179fe995a9Smrgac_config_headers="$ac_config_headers config.h" 27189fe995a9Smrg 27199fe995a9Smrg 2720b62cc08cSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2721b62cc08cSmrg 2722b62cc08cSmrg 2723b62cc08cSmrg 2724b62cc08cSmrg 2725b62cc08cSmrg 2726b62cc08cSmrg 2727b62cc08cSmrg 2728b62cc08cSmrg 27299fe995a9Smrg 27309fe995a9Smrg 27319fe995a9Smrg 273290b6713cSmrgDEPDIR="${am__leading_dot}deps" 273390b6713cSmrg 273490b6713cSmrgac_config_commands="$ac_config_commands depfiles" 273590b6713cSmrg 273690b6713cSmrg 273790b6713cSmrgam_make=${MAKE-make} 273890b6713cSmrgcat > confinc << 'END' 273990b6713cSmrgam__doit: 274090b6713cSmrg @echo this is the am__doit target 274190b6713cSmrg.PHONY: am__doit 274290b6713cSmrgEND 274390b6713cSmrg# If we don't find an include directive, just comment out the code. 274490b6713cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 274590b6713cSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 274690b6713cSmrgam__include="#" 274790b6713cSmrgam__quote= 274890b6713cSmrg_am_result=none 274990b6713cSmrg# First try GNU make style include. 275090b6713cSmrgecho "include confinc" > confmf 27519d794632Smrg# Ignore all kinds of additional output from 'make'. 275290b6713cSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 275390b6713cSmrg*the\ am__doit\ target*) 275490b6713cSmrg am__include=include 275590b6713cSmrg am__quote= 275690b6713cSmrg _am_result=GNU 275790b6713cSmrg ;; 275890b6713cSmrgesac 275990b6713cSmrg# Now try BSD make style include. 276090b6713cSmrgif test "$am__include" = "#"; then 276190b6713cSmrg echo '.include "confinc"' > confmf 276290b6713cSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 276390b6713cSmrg *the\ am__doit\ target*) 276490b6713cSmrg am__include=.include 276590b6713cSmrg am__quote="\"" 276690b6713cSmrg _am_result=BSD 276790b6713cSmrg ;; 276890b6713cSmrg esac 276990b6713cSmrgfi 277090b6713cSmrg 277190b6713cSmrg 277290b6713cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 277390b6713cSmrg$as_echo "$_am_result" >&6; } 277490b6713cSmrgrm -f confinc confmf 277590b6713cSmrg 277690b6713cSmrg# Check whether --enable-dependency-tracking was given. 277790b6713cSmrgif test "${enable_dependency_tracking+set}" = set; then : 277890b6713cSmrg enableval=$enable_dependency_tracking; 277990b6713cSmrgfi 278090b6713cSmrg 278190b6713cSmrgif test "x$enable_dependency_tracking" != xno; then 278290b6713cSmrg am_depcomp="$ac_aux_dir/depcomp" 278390b6713cSmrg AMDEPBACKSLASH='\' 27849d794632Smrg am__nodep='_no' 278590b6713cSmrgfi 278690b6713cSmrg if test "x$enable_dependency_tracking" != xno; then 278790b6713cSmrg AMDEP_TRUE= 278890b6713cSmrg AMDEP_FALSE='#' 278990b6713cSmrgelse 279090b6713cSmrg AMDEP_TRUE='#' 279190b6713cSmrg AMDEP_FALSE= 279290b6713cSmrgfi 279390b6713cSmrg 279490b6713cSmrg 27959fe995a9Smrgac_ext=c 27969fe995a9Smrgac_cpp='$CPP $CPPFLAGS' 27979fe995a9Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27989fe995a9Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27999fe995a9Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 28009fe995a9Smrgif test -n "$ac_tool_prefix"; then 28019fe995a9Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 28029fe995a9Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2803b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2804b62cc08cSmrg$as_echo_n "checking for $ac_word... " >&6; } 2805b62cc08cSmrgif ${ac_cv_prog_CC+:} false; then : 2806b62cc08cSmrg $as_echo_n "(cached) " >&6 28079fe995a9Smrgelse 28089fe995a9Smrg if test -n "$CC"; then 28099fe995a9Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 28109fe995a9Smrgelse 28119fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28129fe995a9Smrgfor as_dir in $PATH 28139fe995a9Smrgdo 28149fe995a9Smrg IFS=$as_save_IFS 28159fe995a9Smrg test -z "$as_dir" && as_dir=. 2816b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 28179fe995a9Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28189fe995a9Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2819b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28209fe995a9Smrg break 2 28219fe995a9Smrg fi 28229fe995a9Smrgdone 2823b62cc08cSmrg done 28249fe995a9SmrgIFS=$as_save_IFS 28259fe995a9Smrg 28269fe995a9Smrgfi 28279fe995a9Smrgfi 28289fe995a9SmrgCC=$ac_cv_prog_CC 28299fe995a9Smrgif test -n "$CC"; then 2830b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2831b62cc08cSmrg$as_echo "$CC" >&6; } 28329fe995a9Smrgelse 2833b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2834b62cc08cSmrg$as_echo "no" >&6; } 28359fe995a9Smrgfi 28369fe995a9Smrg 28379fe995a9Smrg 28389fe995a9Smrgfi 28399fe995a9Smrgif test -z "$ac_cv_prog_CC"; then 28409fe995a9Smrg ac_ct_CC=$CC 28419fe995a9Smrg # Extract the first word of "gcc", so it can be a program name with args. 28429fe995a9Smrgset dummy gcc; ac_word=$2 2843b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2844b62cc08cSmrg$as_echo_n "checking for $ac_word... " >&6; } 2845b62cc08cSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2846b62cc08cSmrg $as_echo_n "(cached) " >&6 28479fe995a9Smrgelse 28489fe995a9Smrg if test -n "$ac_ct_CC"; then 28499fe995a9Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28509fe995a9Smrgelse 28519fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28529fe995a9Smrgfor as_dir in $PATH 28539fe995a9Smrgdo 28549fe995a9Smrg IFS=$as_save_IFS 28559fe995a9Smrg test -z "$as_dir" && as_dir=. 2856b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 28579fe995a9Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28589fe995a9Smrg ac_cv_prog_ac_ct_CC="gcc" 2859b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28609fe995a9Smrg break 2 28619fe995a9Smrg fi 28629fe995a9Smrgdone 2863b62cc08cSmrg done 28649fe995a9SmrgIFS=$as_save_IFS 28659fe995a9Smrg 28669fe995a9Smrgfi 28679fe995a9Smrgfi 28689fe995a9Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 28699fe995a9Smrgif test -n "$ac_ct_CC"; then 2870b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2871b62cc08cSmrg$as_echo "$ac_ct_CC" >&6; } 28729fe995a9Smrgelse 2873b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2874b62cc08cSmrg$as_echo "no" >&6; } 28759fe995a9Smrgfi 28769fe995a9Smrg 28779fe995a9Smrg if test "x$ac_ct_CC" = x; then 28789fe995a9Smrg CC="" 28799fe995a9Smrg else 28809fe995a9Smrg case $cross_compiling:$ac_tool_warned in 28819fe995a9Smrgyes:) 2882b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2883b62cc08cSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28849fe995a9Smrgac_tool_warned=yes ;; 28859fe995a9Smrgesac 28869fe995a9Smrg CC=$ac_ct_CC 28879fe995a9Smrg fi 28889fe995a9Smrgelse 28899fe995a9Smrg CC="$ac_cv_prog_CC" 28909fe995a9Smrgfi 28919fe995a9Smrg 28929fe995a9Smrgif test -z "$CC"; then 28939fe995a9Smrg if test -n "$ac_tool_prefix"; then 28949fe995a9Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 28959fe995a9Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2896b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2897b62cc08cSmrg$as_echo_n "checking for $ac_word... " >&6; } 2898b62cc08cSmrgif ${ac_cv_prog_CC+:} false; then : 2899b62cc08cSmrg $as_echo_n "(cached) " >&6 29009fe995a9Smrgelse 29019fe995a9Smrg if test -n "$CC"; then 29029fe995a9Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 29039fe995a9Smrgelse 29049fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29059fe995a9Smrgfor as_dir in $PATH 29069fe995a9Smrgdo 29079fe995a9Smrg IFS=$as_save_IFS 29089fe995a9Smrg test -z "$as_dir" && as_dir=. 2909b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29109fe995a9Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29119fe995a9Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2912b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29139fe995a9Smrg break 2 29149fe995a9Smrg fi 29159fe995a9Smrgdone 2916b62cc08cSmrg done 29179fe995a9SmrgIFS=$as_save_IFS 29189fe995a9Smrg 29199fe995a9Smrgfi 29209fe995a9Smrgfi 29219fe995a9SmrgCC=$ac_cv_prog_CC 29229fe995a9Smrgif test -n "$CC"; then 2923b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2924b62cc08cSmrg$as_echo "$CC" >&6; } 29259fe995a9Smrgelse 2926b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2927b62cc08cSmrg$as_echo "no" >&6; } 29289fe995a9Smrgfi 29299fe995a9Smrg 29309fe995a9Smrg 29319fe995a9Smrg fi 29329fe995a9Smrgfi 29339fe995a9Smrgif test -z "$CC"; then 29349fe995a9Smrg # Extract the first word of "cc", so it can be a program name with args. 29359fe995a9Smrgset dummy cc; ac_word=$2 2936b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2937b62cc08cSmrg$as_echo_n "checking for $ac_word... " >&6; } 2938b62cc08cSmrgif ${ac_cv_prog_CC+:} false; then : 2939b62cc08cSmrg $as_echo_n "(cached) " >&6 29409fe995a9Smrgelse 29419fe995a9Smrg if test -n "$CC"; then 29429fe995a9Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 29439fe995a9Smrgelse 29449fe995a9Smrg ac_prog_rejected=no 29459fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29469fe995a9Smrgfor as_dir in $PATH 29479fe995a9Smrgdo 29489fe995a9Smrg IFS=$as_save_IFS 29499fe995a9Smrg test -z "$as_dir" && as_dir=. 2950b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29519fe995a9Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29529fe995a9Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 29539fe995a9Smrg ac_prog_rejected=yes 29549fe995a9Smrg continue 29559fe995a9Smrg fi 29569fe995a9Smrg ac_cv_prog_CC="cc" 2957b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29589fe995a9Smrg break 2 29599fe995a9Smrg fi 29609fe995a9Smrgdone 2961b62cc08cSmrg done 29629fe995a9SmrgIFS=$as_save_IFS 29639fe995a9Smrg 29649fe995a9Smrgif test $ac_prog_rejected = yes; then 29659fe995a9Smrg # We found a bogon in the path, so make sure we never use it. 29669fe995a9Smrg set dummy $ac_cv_prog_CC 29679fe995a9Smrg shift 29689fe995a9Smrg if test $# != 0; then 29699fe995a9Smrg # We chose a different compiler from the bogus one. 29709fe995a9Smrg # However, it has the same basename, so the bogon will be chosen 29719fe995a9Smrg # first if we set CC to just the basename; use the full file name. 29729fe995a9Smrg shift 29739fe995a9Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 29749fe995a9Smrg fi 29759fe995a9Smrgfi 29769fe995a9Smrgfi 29779fe995a9Smrgfi 29789fe995a9SmrgCC=$ac_cv_prog_CC 29799fe995a9Smrgif test -n "$CC"; then 2980b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2981b62cc08cSmrg$as_echo "$CC" >&6; } 29829fe995a9Smrgelse 2983b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984b62cc08cSmrg$as_echo "no" >&6; } 29859fe995a9Smrgfi 29869fe995a9Smrg 29879fe995a9Smrg 29889fe995a9Smrgfi 29899fe995a9Smrgif test -z "$CC"; then 29909fe995a9Smrg if test -n "$ac_tool_prefix"; then 29919fe995a9Smrg for ac_prog in cl.exe 29929fe995a9Smrg do 29939fe995a9Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29949fe995a9Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2995b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2996b62cc08cSmrg$as_echo_n "checking for $ac_word... " >&6; } 2997b62cc08cSmrgif ${ac_cv_prog_CC+:} false; then : 2998b62cc08cSmrg $as_echo_n "(cached) " >&6 29999fe995a9Smrgelse 30009fe995a9Smrg if test -n "$CC"; then 30019fe995a9Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 30029fe995a9Smrgelse 30039fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30049fe995a9Smrgfor as_dir in $PATH 30059fe995a9Smrgdo 30069fe995a9Smrg IFS=$as_save_IFS 30079fe995a9Smrg test -z "$as_dir" && as_dir=. 3008b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 30099fe995a9Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 30109fe995a9Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3011b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30129fe995a9Smrg break 2 30139fe995a9Smrg fi 30149fe995a9Smrgdone 3015b62cc08cSmrg done 30169fe995a9SmrgIFS=$as_save_IFS 30179fe995a9Smrg 30189fe995a9Smrgfi 30199fe995a9Smrgfi 30209fe995a9SmrgCC=$ac_cv_prog_CC 30219fe995a9Smrgif test -n "$CC"; then 3022b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3023b62cc08cSmrg$as_echo "$CC" >&6; } 30249fe995a9Smrgelse 3025b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3026b62cc08cSmrg$as_echo "no" >&6; } 30279fe995a9Smrgfi 30289fe995a9Smrg 30299fe995a9Smrg 30309fe995a9Smrg test -n "$CC" && break 30319fe995a9Smrg done 30329fe995a9Smrgfi 30339fe995a9Smrgif test -z "$CC"; then 30349fe995a9Smrg ac_ct_CC=$CC 30359fe995a9Smrg for ac_prog in cl.exe 30369fe995a9Smrgdo 30379fe995a9Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 30389fe995a9Smrgset dummy $ac_prog; ac_word=$2 3039b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3040b62cc08cSmrg$as_echo_n "checking for $ac_word... " >&6; } 3041b62cc08cSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 3042b62cc08cSmrg $as_echo_n "(cached) " >&6 30439fe995a9Smrgelse 30449fe995a9Smrg if test -n "$ac_ct_CC"; then 30459fe995a9Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 30469fe995a9Smrgelse 30479fe995a9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30489fe995a9Smrgfor as_dir in $PATH 30499fe995a9Smrgdo 30509fe995a9Smrg IFS=$as_save_IFS 30519fe995a9Smrg test -z "$as_dir" && as_dir=. 3052b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 30539fe995a9Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 30549fe995a9Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 3055b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30569fe995a9Smrg break 2 30579fe995a9Smrg fi 30589fe995a9Smrgdone 3059b62cc08cSmrg done 30609fe995a9SmrgIFS=$as_save_IFS 30619fe995a9Smrg 30629fe995a9Smrgfi 30639fe995a9Smrgfi 30649fe995a9Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 30659fe995a9Smrgif test -n "$ac_ct_CC"; then 3066b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3067b62cc08cSmrg$as_echo "$ac_ct_CC" >&6; } 30689fe995a9Smrgelse 3069b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3070b62cc08cSmrg$as_echo "no" >&6; } 30719fe995a9Smrgfi 30729fe995a9Smrg 30739fe995a9Smrg 30749fe995a9Smrg test -n "$ac_ct_CC" && break 30759fe995a9Smrgdone 30769fe995a9Smrg 30779fe995a9Smrg if test "x$ac_ct_CC" = x; then 30789fe995a9Smrg CC="" 30799fe995a9Smrg else 30809fe995a9Smrg case $cross_compiling:$ac_tool_warned in 30819fe995a9Smrgyes:) 3082b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3083b62cc08cSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30849fe995a9Smrgac_tool_warned=yes ;; 30859fe995a9Smrgesac 30869fe995a9Smrg CC=$ac_ct_CC 30879fe995a9Smrg fi 30889fe995a9Smrgfi 30899fe995a9Smrg 30909fe995a9Smrgfi 30919fe995a9Smrg 30929fe995a9Smrg 3093b62cc08cSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3094b62cc08cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3095b62cc08cSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 3096b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; } 30979fe995a9Smrg 30989fe995a9Smrg# Provide some information about the compiler. 3099b62cc08cSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3100b62cc08cSmrgset X $ac_compile 3101b62cc08cSmrgac_compiler=$2 3102b62cc08cSmrgfor ac_option in --version -v -V -qversion; do 3103b62cc08cSmrg { { ac_try="$ac_compiler $ac_option >&5" 31049fe995a9Smrgcase "(($ac_try" in 31059fe995a9Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31069fe995a9Smrg *) ac_try_echo=$ac_try;; 31079fe995a9Smrgesac 3108b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3109b62cc08cSmrg$as_echo "$ac_try_echo"; } >&5 3110b62cc08cSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 31119fe995a9Smrg ac_status=$? 3112b62cc08cSmrg if test -s conftest.err; then 3113b62cc08cSmrg sed '10a\ 3114b62cc08cSmrg... rest of stderr output deleted ... 3115b62cc08cSmrg 10q' conftest.err >conftest.er1 3116b62cc08cSmrg cat conftest.er1 >&5 3117b62cc08cSmrg fi 3118b62cc08cSmrg rm -f conftest.er1 conftest.err 3119b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3120b62cc08cSmrg test $ac_status = 0; } 3121b62cc08cSmrgdone 31229fe995a9Smrg 3123b62cc08cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 31249fe995a9Smrg/* end confdefs.h. */ 31259fe995a9Smrg 31269fe995a9Smrgint 31279fe995a9Smrgmain () 31289fe995a9Smrg{ 31299fe995a9Smrg 31309fe995a9Smrg ; 31319fe995a9Smrg return 0; 31329fe995a9Smrg} 31339fe995a9Smrg_ACEOF 31349fe995a9Smrgac_clean_files_save=$ac_clean_files 3135b62cc08cSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 31369fe995a9Smrg# Try to create an executable without -o first, disregard a.out. 31379fe995a9Smrg# It will help us diagnose broken compilers, and finding out an intuition 31389fe995a9Smrg# of exeext. 3139b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3140b62cc08cSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 3141b62cc08cSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3142b62cc08cSmrg 3143b62cc08cSmrg# The possible output files: 3144b62cc08cSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3145b62cc08cSmrg 31469fe995a9Smrgac_rmfiles= 31479fe995a9Smrgfor ac_file in $ac_files 31489fe995a9Smrgdo 31499fe995a9Smrg case $ac_file in 3150b62cc08cSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 31519fe995a9Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 31529fe995a9Smrg esac 31539fe995a9Smrgdone 31549fe995a9Smrgrm -f $ac_rmfiles 31559fe995a9Smrg 3156b62cc08cSmrgif { { ac_try="$ac_link_default" 31579fe995a9Smrgcase "(($ac_try" in 31589fe995a9Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31599fe995a9Smrg *) ac_try_echo=$ac_try;; 31609fe995a9Smrgesac 3161b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3162b62cc08cSmrg$as_echo "$ac_try_echo"; } >&5 31639fe995a9Smrg (eval "$ac_link_default") 2>&5 31649fe995a9Smrg ac_status=$? 3165b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3166b62cc08cSmrg test $ac_status = 0; }; then : 31679fe995a9Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 31689fe995a9Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 31699fe995a9Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 31709fe995a9Smrg# so that the user can short-circuit this test for compilers unknown to 31719fe995a9Smrg# Autoconf. 31729fe995a9Smrgfor ac_file in $ac_files '' 31739fe995a9Smrgdo 31749fe995a9Smrg test -f "$ac_file" || continue 31759fe995a9Smrg case $ac_file in 3176b62cc08cSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 31779fe995a9Smrg ;; 31789fe995a9Smrg [ab].out ) 31799fe995a9Smrg # We found the default executable, but exeext='' is most 31809fe995a9Smrg # certainly right. 31819fe995a9Smrg break;; 31829fe995a9Smrg *.* ) 3183b62cc08cSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 31849fe995a9Smrg then :; else 31859fe995a9Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 31869fe995a9Smrg fi 31879fe995a9Smrg # We set ac_cv_exeext here because the later test for it is not 31889fe995a9Smrg # safe: cross compilers may not add the suffix if given an `-o' 31899fe995a9Smrg # argument, so we may need to know it at that point already. 31909fe995a9Smrg # Even if this section looks crufty: it has the advantage of 31919fe995a9Smrg # actually working. 31929fe995a9Smrg break;; 31939fe995a9Smrg * ) 31949fe995a9Smrg break;; 31959fe995a9Smrg esac 31969fe995a9Smrgdone 3197b62cc08cSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3198b62cc08cSmrg 3199b62cc08cSmrgelse 3200b62cc08cSmrg ac_file='' 3201b62cc08cSmrgfi 3202b62cc08cSmrgif test -z "$ac_file"; then : 3203b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3204b62cc08cSmrg$as_echo "no" >&6; } 3205b62cc08cSmrg$as_echo "$as_me: failed program was:" >&5 3206b62cc08cSmrgsed 's/^/| /' conftest.$ac_ext >&5 3207b62cc08cSmrg 3208b62cc08cSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3209b62cc08cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3210b62cc08cSmrgas_fn_error 77 "C compiler cannot create executables 3211b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; } 3212b62cc08cSmrgelse 3213b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3214b62cc08cSmrg$as_echo "yes" >&6; } 32159fe995a9Smrgfi 3216b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3217b62cc08cSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3218b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3219b62cc08cSmrg$as_echo "$ac_file" >&6; } 3220b62cc08cSmrgac_exeext=$ac_cv_exeext 32219fe995a9Smrg 3222b62cc08cSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 32239fe995a9Smrgac_clean_files=$ac_clean_files_save 3224b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3225b62cc08cSmrg$as_echo_n "checking for suffix of executables... " >&6; } 3226b62cc08cSmrgif { { ac_try="$ac_link" 32279fe995a9Smrgcase "(($ac_try" in 32289fe995a9Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32299fe995a9Smrg *) ac_try_echo=$ac_try;; 32309fe995a9Smrgesac 3231b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3232b62cc08cSmrg$as_echo "$ac_try_echo"; } >&5 32339fe995a9Smrg (eval "$ac_link") 2>&5 32349fe995a9Smrg ac_status=$? 3235b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3236b62cc08cSmrg test $ac_status = 0; }; then : 32379fe995a9Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 32389fe995a9Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 32399fe995a9Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 32409fe995a9Smrg# `rm'. 32419fe995a9Smrgfor ac_file in conftest.exe conftest conftest.*; do 32429fe995a9Smrg test -f "$ac_file" || continue 32439fe995a9Smrg case $ac_file in 3244b62cc08cSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 32459fe995a9Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 32469fe995a9Smrg break;; 32479fe995a9Smrg * ) break;; 32489fe995a9Smrg esac 32499fe995a9Smrgdone 32509fe995a9Smrgelse 3251b62cc08cSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3252b62cc08cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3253b62cc08cSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3254b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; } 32559fe995a9Smrgfi 3256b62cc08cSmrgrm -f conftest conftest$ac_cv_exeext 3257b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3258b62cc08cSmrg$as_echo "$ac_cv_exeext" >&6; } 32599fe995a9Smrg 32609fe995a9Smrgrm -f conftest.$ac_ext 32619fe995a9SmrgEXEEXT=$ac_cv_exeext 32629fe995a9Smrgac_exeext=$EXEEXT 3263b62cc08cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3264b62cc08cSmrg/* end confdefs.h. */ 3265b62cc08cSmrg#include <stdio.h> 3266b62cc08cSmrgint 3267b62cc08cSmrgmain () 3268b62cc08cSmrg{ 3269b62cc08cSmrgFILE *f = fopen ("conftest.out", "w"); 3270b62cc08cSmrg return ferror (f) || fclose (f) != 0; 3271b62cc08cSmrg 3272b62cc08cSmrg ; 3273b62cc08cSmrg return 0; 3274b62cc08cSmrg} 32759fe995a9Smrg_ACEOF 3276b62cc08cSmrgac_clean_files="$ac_clean_files conftest.out" 3277b62cc08cSmrg# Check that the compiler produces executables we can run. If not, either 3278b62cc08cSmrg# the compiler is broken, or we cross compile. 3279b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3280b62cc08cSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3281b62cc08cSmrgif test "$cross_compiling" != yes; then 3282b62cc08cSmrg { { ac_try="$ac_link" 3283b62cc08cSmrgcase "(($ac_try" in 3284b62cc08cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3285b62cc08cSmrg *) ac_try_echo=$ac_try;; 3286b62cc08cSmrgesac 3287b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3288b62cc08cSmrg$as_echo "$ac_try_echo"; } >&5 3289b62cc08cSmrg (eval "$ac_link") 2>&5 3290b62cc08cSmrg ac_status=$? 3291b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3292b62cc08cSmrg test $ac_status = 0; } 3293b62cc08cSmrg if { ac_try='./conftest$ac_cv_exeext' 3294b62cc08cSmrg { { case "(($ac_try" in 3295b62cc08cSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3296b62cc08cSmrg *) ac_try_echo=$ac_try;; 3297b62cc08cSmrgesac 3298b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3299b62cc08cSmrg$as_echo "$ac_try_echo"; } >&5 3300b62cc08cSmrg (eval "$ac_try") 2>&5 3301b62cc08cSmrg ac_status=$? 3302b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3303b62cc08cSmrg test $ac_status = 0; }; }; then 3304b62cc08cSmrg cross_compiling=no 3305b62cc08cSmrg else 3306b62cc08cSmrg if test "$cross_compiling" = maybe; then 3307b62cc08cSmrg cross_compiling=yes 3308b62cc08cSmrg else 3309b62cc08cSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3310b62cc08cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3311b62cc08cSmrgas_fn_error $? "cannot run C compiled programs. 3312b62cc08cSmrgIf you meant to cross compile, use \`--host'. 3313b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; } 3314b62cc08cSmrg fi 3315b62cc08cSmrg fi 3316b62cc08cSmrgfi 3317b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3318b62cc08cSmrg$as_echo "$cross_compiling" >&6; } 3319b62cc08cSmrg 3320b62cc08cSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3321b62cc08cSmrgac_clean_files=$ac_clean_files_save 3322b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3323b62cc08cSmrg$as_echo_n "checking for suffix of object files... " >&6; } 3324b62cc08cSmrgif ${ac_cv_objext+:} false; then : 3325b62cc08cSmrg $as_echo_n "(cached) " >&6 3326b62cc08cSmrgelse 3327b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33289fe995a9Smrg/* end confdefs.h. */ 33299fe995a9Smrg 33309fe995a9Smrgint 33319fe995a9Smrgmain () 33329fe995a9Smrg{ 33339fe995a9Smrg 33349fe995a9Smrg ; 33359fe995a9Smrg return 0; 33369fe995a9Smrg} 33379fe995a9Smrg_ACEOF 33389fe995a9Smrgrm -f conftest.o conftest.obj 3339b62cc08cSmrgif { { ac_try="$ac_compile" 33409fe995a9Smrgcase "(($ac_try" in 33419fe995a9Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33429fe995a9Smrg *) ac_try_echo=$ac_try;; 33439fe995a9Smrgesac 3344b62cc08cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3345b62cc08cSmrg$as_echo "$ac_try_echo"; } >&5 33469fe995a9Smrg (eval "$ac_compile") 2>&5 33479fe995a9Smrg ac_status=$? 3348b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3349b62cc08cSmrg test $ac_status = 0; }; then : 33509fe995a9Smrg for ac_file in conftest.o conftest.obj conftest.*; do 33519fe995a9Smrg test -f "$ac_file" || continue; 33529fe995a9Smrg case $ac_file in 3353b62cc08cSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 33549fe995a9Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 33559fe995a9Smrg break;; 33569fe995a9Smrg esac 33579fe995a9Smrgdone 33589fe995a9Smrgelse 3359b62cc08cSmrg $as_echo "$as_me: failed program was:" >&5 33609fe995a9Smrgsed 's/^/| /' conftest.$ac_ext >&5 33619fe995a9Smrg 3362b62cc08cSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3363b62cc08cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3364b62cc08cSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3365b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; } 33669fe995a9Smrgfi 33679fe995a9Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 33689fe995a9Smrgfi 3369b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3370b62cc08cSmrg$as_echo "$ac_cv_objext" >&6; } 33719fe995a9SmrgOBJEXT=$ac_cv_objext 33729fe995a9Smrgac_objext=$OBJEXT 3373b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3374b62cc08cSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3375b62cc08cSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 3376b62cc08cSmrg $as_echo_n "(cached) " >&6 33779fe995a9Smrgelse 3378b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33799fe995a9Smrg/* end confdefs.h. */ 33809fe995a9Smrg 33819fe995a9Smrgint 33829fe995a9Smrgmain () 33839fe995a9Smrg{ 33849fe995a9Smrg#ifndef __GNUC__ 33859fe995a9Smrg choke me 33869fe995a9Smrg#endif 33879fe995a9Smrg 33889fe995a9Smrg ; 33899fe995a9Smrg return 0; 33909fe995a9Smrg} 33919fe995a9Smrg_ACEOF 3392b62cc08cSmrgif ac_fn_c_try_compile "$LINENO"; then : 33939fe995a9Smrg ac_compiler_gnu=yes 33949fe995a9Smrgelse 3395b62cc08cSmrg ac_compiler_gnu=no 33969fe995a9Smrgfi 33979fe995a9Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33989fe995a9Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 33999fe995a9Smrg 34009fe995a9Smrgfi 3401b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3402b62cc08cSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3403b62cc08cSmrgif test $ac_compiler_gnu = yes; then 3404b62cc08cSmrg GCC=yes 3405b62cc08cSmrgelse 3406b62cc08cSmrg GCC= 3407b62cc08cSmrgfi 34089fe995a9Smrgac_test_CFLAGS=${CFLAGS+set} 34099fe995a9Smrgac_save_CFLAGS=$CFLAGS 3410b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3411b62cc08cSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3412b62cc08cSmrgif ${ac_cv_prog_cc_g+:} false; then : 3413b62cc08cSmrg $as_echo_n "(cached) " >&6 34149fe995a9Smrgelse 34159fe995a9Smrg ac_save_c_werror_flag=$ac_c_werror_flag 34169fe995a9Smrg ac_c_werror_flag=yes 34179fe995a9Smrg ac_cv_prog_cc_g=no 34189fe995a9Smrg CFLAGS="-g" 3419b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34209fe995a9Smrg/* end confdefs.h. */ 34219fe995a9Smrg 34229fe995a9Smrgint 34239fe995a9Smrgmain () 34249fe995a9Smrg{ 34259fe995a9Smrg 34269fe995a9Smrg ; 34279fe995a9Smrg return 0; 34289fe995a9Smrg} 34299fe995a9Smrg_ACEOF 3430b62cc08cSmrgif ac_fn_c_try_compile "$LINENO"; then : 34319fe995a9Smrg ac_cv_prog_cc_g=yes 34329fe995a9Smrgelse 3433b62cc08cSmrg CFLAGS="" 3434b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34359fe995a9Smrg/* end confdefs.h. */ 34369fe995a9Smrg 34379fe995a9Smrgint 34389fe995a9Smrgmain () 34399fe995a9Smrg{ 34409fe995a9Smrg 34419fe995a9Smrg ; 34429fe995a9Smrg return 0; 34439fe995a9Smrg} 34449fe995a9Smrg_ACEOF 3445b62cc08cSmrgif ac_fn_c_try_compile "$LINENO"; then : 34469fe995a9Smrg 3447b62cc08cSmrgelse 3448b62cc08cSmrg ac_c_werror_flag=$ac_save_c_werror_flag 34499fe995a9Smrg CFLAGS="-g" 3450b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34519fe995a9Smrg/* end confdefs.h. */ 34529fe995a9Smrg 34539fe995a9Smrgint 34549fe995a9Smrgmain () 34559fe995a9Smrg{ 34569fe995a9Smrg 34579fe995a9Smrg ; 34589fe995a9Smrg return 0; 34599fe995a9Smrg} 34609fe995a9Smrg_ACEOF 3461b62cc08cSmrgif ac_fn_c_try_compile "$LINENO"; then : 34629fe995a9Smrg ac_cv_prog_cc_g=yes 34639fe995a9Smrgfi 34649fe995a9Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34659fe995a9Smrgfi 34669fe995a9Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34679fe995a9Smrgfi 34689fe995a9Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34699fe995a9Smrg ac_c_werror_flag=$ac_save_c_werror_flag 34709fe995a9Smrgfi 3471b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3472b62cc08cSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 34739fe995a9Smrgif test "$ac_test_CFLAGS" = set; then 34749fe995a9Smrg CFLAGS=$ac_save_CFLAGS 34759fe995a9Smrgelif test $ac_cv_prog_cc_g = yes; then 34769fe995a9Smrg if test "$GCC" = yes; then 34779fe995a9Smrg CFLAGS="-g -O2" 34789fe995a9Smrg else 34799fe995a9Smrg CFLAGS="-g" 34809fe995a9Smrg fi 34819fe995a9Smrgelse 34829fe995a9Smrg if test "$GCC" = yes; then 34839fe995a9Smrg CFLAGS="-O2" 34849fe995a9Smrg else 34859fe995a9Smrg CFLAGS= 34869fe995a9Smrg fi 34879fe995a9Smrgfi 3488b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3489b62cc08cSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3490b62cc08cSmrgif ${ac_cv_prog_cc_c89+:} false; then : 3491b62cc08cSmrg $as_echo_n "(cached) " >&6 34929fe995a9Smrgelse 34939fe995a9Smrg ac_cv_prog_cc_c89=no 34949fe995a9Smrgac_save_CC=$CC 3495b62cc08cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 34969fe995a9Smrg/* end confdefs.h. */ 34979fe995a9Smrg#include <stdarg.h> 34989fe995a9Smrg#include <stdio.h> 34999fe995a9Smrg#include <sys/types.h> 35009fe995a9Smrg#include <sys/stat.h> 35019fe995a9Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 35029fe995a9Smrgstruct buf { int x; }; 35039fe995a9SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 35049fe995a9Smrgstatic char *e (p, i) 35059fe995a9Smrg char **p; 35069fe995a9Smrg int i; 35079fe995a9Smrg{ 35089fe995a9Smrg return p[i]; 35099fe995a9Smrg} 35109fe995a9Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 35119fe995a9Smrg{ 35129fe995a9Smrg char *s; 35139fe995a9Smrg va_list v; 35149fe995a9Smrg va_start (v,p); 35159fe995a9Smrg s = g (p, va_arg (v,int)); 35169fe995a9Smrg va_end (v); 35179fe995a9Smrg return s; 35189fe995a9Smrg} 35199fe995a9Smrg 35209fe995a9Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 35219fe995a9Smrg function prototypes and stuff, but not '\xHH' hex character constants. 35229fe995a9Smrg These don't provoke an error unfortunately, instead are silently treated 35239fe995a9Smrg as 'x'. The following induces an error, until -std is added to get 35249fe995a9Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 35259fe995a9Smrg array size at least. It's necessary to write '\x00'==0 to get something 35269fe995a9Smrg that's true only with -std. */ 35279fe995a9Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 35289fe995a9Smrg 35299fe995a9Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 35309fe995a9Smrg inside strings and character constants. */ 35319fe995a9Smrg#define FOO(x) 'x' 35329fe995a9Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 35339fe995a9Smrg 35349fe995a9Smrgint test (int i, double x); 35359fe995a9Smrgstruct s1 {int (*f) (int a);}; 35369fe995a9Smrgstruct s2 {int (*f) (double a);}; 35379fe995a9Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 35389fe995a9Smrgint argc; 35399fe995a9Smrgchar **argv; 35409fe995a9Smrgint 35419fe995a9Smrgmain () 35429fe995a9Smrg{ 35439fe995a9Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 35449fe995a9Smrg ; 35459fe995a9Smrg return 0; 35469fe995a9Smrg} 35479fe995a9Smrg_ACEOF 35489fe995a9Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 35499fe995a9Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35509fe995a9Smrgdo 35519fe995a9Smrg CC="$ac_save_CC $ac_arg" 3552b62cc08cSmrg if ac_fn_c_try_compile "$LINENO"; then : 35539fe995a9Smrg ac_cv_prog_cc_c89=$ac_arg 35549fe995a9Smrgfi 35559fe995a9Smrgrm -f core conftest.err conftest.$ac_objext 35569fe995a9Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 35579fe995a9Smrgdone 35589fe995a9Smrgrm -f conftest.$ac_ext 35599fe995a9SmrgCC=$ac_save_CC 35609fe995a9Smrg 35619fe995a9Smrgfi 35629fe995a9Smrg# AC_CACHE_VAL 35639fe995a9Smrgcase "x$ac_cv_prog_cc_c89" in 35649fe995a9Smrg x) 3565b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3566b62cc08cSmrg$as_echo "none needed" >&6; } ;; 35679fe995a9Smrg xno) 3568b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3569b62cc08cSmrg$as_echo "unsupported" >&6; } ;; 35709fe995a9Smrg *) 35719fe995a9Smrg CC="$CC $ac_cv_prog_cc_c89" 3572b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3573b62cc08cSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35749fe995a9Smrgesac 3575b62cc08cSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 35769fe995a9Smrg 3577b62cc08cSmrgfi 35789fe995a9Smrg 35799fe995a9Smrgac_ext=c 35809fe995a9Smrgac_cpp='$CPP $CPPFLAGS' 35819fe995a9Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35829fe995a9Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35839fe995a9Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 35849fe995a9Smrg 35859d794632Smrgac_ext=c 35869d794632Smrgac_cpp='$CPP $CPPFLAGS' 35879d794632Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35889d794632Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35899d794632Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 35909d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 35919d794632Smrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 35929d794632Smrgif ${am_cv_prog_cc_c_o+:} false; then : 35939d794632Smrg $as_echo_n "(cached) " >&6 35949d794632Smrgelse 35959d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35969d794632Smrg/* end confdefs.h. */ 35979d794632Smrg 35989d794632Smrgint 35999d794632Smrgmain () 36009d794632Smrg{ 36019d794632Smrg 36029d794632Smrg ; 36039d794632Smrg return 0; 36049d794632Smrg} 36059d794632Smrg_ACEOF 36069d794632Smrg # Make sure it works both with $CC and with simple cc. 36079d794632Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 36089d794632Smrg # compilers refuse to overwrite an existing .o file with -o, 36099d794632Smrg # though they will create one. 36109d794632Smrg am_cv_prog_cc_c_o=yes 36119d794632Smrg for am_i in 1 2; do 36129d794632Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 36139d794632Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 36149d794632Smrg ac_status=$? 36159d794632Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 36169d794632Smrg (exit $ac_status); } \ 36179d794632Smrg && test -f conftest2.$ac_objext; then 36189d794632Smrg : OK 36199d794632Smrg else 36209d794632Smrg am_cv_prog_cc_c_o=no 36219d794632Smrg break 36229d794632Smrg fi 36239d794632Smrg done 36249d794632Smrg rm -f core conftest* 36259d794632Smrg unset am_i 36269d794632Smrgfi 36279d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 36289d794632Smrg$as_echo "$am_cv_prog_cc_c_o" >&6; } 36299d794632Smrgif test "$am_cv_prog_cc_c_o" != yes; then 36309d794632Smrg # Losing compiler, so override with the script. 36319d794632Smrg # FIXME: It is wrong to rewrite CC. 36329d794632Smrg # But if we don't then we get into trouble of one sort or another. 36339d794632Smrg # A longer-term fix would be to have automake use am__CC in this case, 36349d794632Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 36359d794632Smrg CC="$am_aux_dir/compile $CC" 36369d794632Smrgfi 36379d794632Smrgac_ext=c 36389d794632Smrgac_cpp='$CPP $CPPFLAGS' 36399d794632Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36409d794632Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36419d794632Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 36429d794632Smrg 36439d794632Smrg 36449fe995a9Smrgdepcc="$CC" am_compiler_list= 36459fe995a9Smrg 3646b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3647b62cc08cSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3648b62cc08cSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3649b62cc08cSmrg $as_echo_n "(cached) " >&6 36509fe995a9Smrgelse 36519fe995a9Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 36529fe995a9Smrg # We make a subdir and do the tests there. Otherwise we can end up 36539fe995a9Smrg # making bogus files that we don't know about and never remove. For 36549fe995a9Smrg # instance it was reported that on HP-UX the gcc test will end up 36559d794632Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 36569d794632Smrg # in D". 36579d794632Smrg rm -rf conftest.dir 36589fe995a9Smrg mkdir conftest.dir 36599fe995a9Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 36609fe995a9Smrg # using a relative directory. 36619fe995a9Smrg cp "$am_depcomp" conftest.dir 36629fe995a9Smrg cd conftest.dir 36639fe995a9Smrg # We will build objects and dependencies in a subdirectory because 36649fe995a9Smrg # it helps to detect inapplicable dependency modes. For instance 36659fe995a9Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 36669fe995a9Smrg # side effect of compilation, but ICC will put the dependencies in 36679fe995a9Smrg # the current directory while Tru64 will put them in the object 36689fe995a9Smrg # directory. 36699fe995a9Smrg mkdir sub 36709fe995a9Smrg 36719fe995a9Smrg am_cv_CC_dependencies_compiler_type=none 36729fe995a9Smrg if test "$am_compiler_list" = ""; then 36739fe995a9Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 36749fe995a9Smrg fi 3675b62cc08cSmrg am__universal=false 3676b62cc08cSmrg case " $depcc " in #( 3677b62cc08cSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3678b62cc08cSmrg esac 3679b62cc08cSmrg 36809fe995a9Smrg for depmode in $am_compiler_list; do 36819fe995a9Smrg # Setup a source with many dependencies, because some compilers 36829fe995a9Smrg # like to wrap large dependency lists on column 80 (with \), and 36839fe995a9Smrg # we should not choose a depcomp mode which is confused by this. 36849fe995a9Smrg # 36859fe995a9Smrg # We need to recreate these files for each test, as the compiler may 36869fe995a9Smrg # overwrite some of them when testing with obscure command lines. 36879fe995a9Smrg # This happens at least with the AIX C compiler. 36889fe995a9Smrg : > sub/conftest.c 36899fe995a9Smrg for i in 1 2 3 4 5 6; do 36909fe995a9Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 36919d794632Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 36929d794632Smrg # Solaris 10 /bin/sh. 36939d794632Smrg echo '/* dummy */' > sub/conftst$i.h 36949fe995a9Smrg done 36959fe995a9Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 36969fe995a9Smrg 36979d794632Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 3698b62cc08cSmrg # mode. It turns out that the SunPro C++ compiler does not properly 36999d794632Smrg # handle '-M -o', and we need to detect this. Also, some Intel 37009d794632Smrg # versions had trouble with output in subdirs. 3701b62cc08cSmrg am__obj=sub/conftest.${OBJEXT-o} 3702b62cc08cSmrg am__minus_obj="-o $am__obj" 37039fe995a9Smrg case $depmode in 3704b62cc08cSmrg gcc) 3705b62cc08cSmrg # This depmode causes a compiler race in universal mode. 3706b62cc08cSmrg test "$am__universal" = false || continue 3707b62cc08cSmrg ;; 37089fe995a9Smrg nosideeffect) 37099d794632Smrg # After this tag, mechanisms are not by side-effect, so they'll 37109d794632Smrg # only be used when explicitly requested. 37119fe995a9Smrg if test "x$enable_dependency_tracking" = xyes; then 37129fe995a9Smrg continue 37139fe995a9Smrg else 37149fe995a9Smrg break 37159fe995a9Smrg fi 37169fe995a9Smrg ;; 37179d794632Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 37189d794632Smrg # This compiler won't grok '-c -o', but also, the minuso test has 3719b62cc08cSmrg # not run yet. These depmodes are late enough in the game, and 3720b62cc08cSmrg # so weak that their functioning should not be impacted. 3721b62cc08cSmrg am__obj=conftest.${OBJEXT-o} 3722b62cc08cSmrg am__minus_obj= 3723b62cc08cSmrg ;; 37249fe995a9Smrg none) break ;; 37259fe995a9Smrg esac 37269fe995a9Smrg if depmode=$depmode \ 3727b62cc08cSmrg source=sub/conftest.c object=$am__obj \ 37289fe995a9Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3729b62cc08cSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 37309fe995a9Smrg >/dev/null 2>conftest.err && 37319fe995a9Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 37329fe995a9Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3733b62cc08cSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 37349fe995a9Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 37359fe995a9Smrg # icc doesn't choke on unknown options, it will just issue warnings 37369fe995a9Smrg # or remarks (even with -Werror). So we grep stderr for any message 37379fe995a9Smrg # that says an option was ignored or not supported. 37389fe995a9Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 37399fe995a9Smrg # icc: Command line warning: ignoring option '-M'; no argument required 37409fe995a9Smrg # The diagnosis changed in icc 8.0: 37419fe995a9Smrg # icc: Command line remark: option '-MP' not supported 37429fe995a9Smrg if (grep 'ignoring option' conftest.err || 37439fe995a9Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 37449fe995a9Smrg am_cv_CC_dependencies_compiler_type=$depmode 37459fe995a9Smrg break 37469fe995a9Smrg fi 37479fe995a9Smrg fi 37489fe995a9Smrg done 37499fe995a9Smrg 3750b62cc08cSmrg cd .. 3751b62cc08cSmrg rm -rf conftest.dir 3752b62cc08cSmrgelse 3753b62cc08cSmrg am_cv_CC_dependencies_compiler_type=none 3754b62cc08cSmrgfi 3755b62cc08cSmrg 3756b62cc08cSmrgfi 3757b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3758b62cc08cSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3759b62cc08cSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3760b62cc08cSmrg 3761b62cc08cSmrg if 3762b62cc08cSmrg test "x$enable_dependency_tracking" != xno \ 3763b62cc08cSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3764b62cc08cSmrg am__fastdepCC_TRUE= 3765b62cc08cSmrg am__fastdepCC_FALSE='#' 3766b62cc08cSmrgelse 3767b62cc08cSmrg am__fastdepCC_TRUE='#' 3768b62cc08cSmrg am__fastdepCC_FALSE= 3769b62cc08cSmrgfi 3770b62cc08cSmrg 3771b62cc08cSmrg 3772b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3773b62cc08cSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3774b62cc08cSmrgif ${ac_cv_prog_cc_c99+:} false; then : 3775b62cc08cSmrg $as_echo_n "(cached) " >&6 3776b62cc08cSmrgelse 3777b62cc08cSmrg ac_cv_prog_cc_c99=no 3778b62cc08cSmrgac_save_CC=$CC 3779b62cc08cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780b62cc08cSmrg/* end confdefs.h. */ 3781b62cc08cSmrg#include <stdarg.h> 3782b62cc08cSmrg#include <stdbool.h> 3783b62cc08cSmrg#include <stdlib.h> 3784b62cc08cSmrg#include <wchar.h> 3785b62cc08cSmrg#include <stdio.h> 3786b62cc08cSmrg 3787b62cc08cSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 3788b62cc08cSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 3789b62cc08cSmrg#define showlist(...) puts (#__VA_ARGS__) 3790b62cc08cSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3791b62cc08cSmrgstatic void 3792b62cc08cSmrgtest_varargs_macros (void) 3793b62cc08cSmrg{ 3794b62cc08cSmrg int x = 1234; 3795b62cc08cSmrg int y = 5678; 3796b62cc08cSmrg debug ("Flag"); 3797b62cc08cSmrg debug ("X = %d\n", x); 3798b62cc08cSmrg showlist (The first, second, and third items.); 3799b62cc08cSmrg report (x>y, "x is %d but y is %d", x, y); 3800b62cc08cSmrg} 3801b62cc08cSmrg 3802b62cc08cSmrg// Check long long types. 3803b62cc08cSmrg#define BIG64 18446744073709551615ull 3804b62cc08cSmrg#define BIG32 4294967295ul 3805b62cc08cSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3806b62cc08cSmrg#if !BIG_OK 3807b62cc08cSmrg your preprocessor is broken; 3808b62cc08cSmrg#endif 3809b62cc08cSmrg#if BIG_OK 3810b62cc08cSmrg#else 3811b62cc08cSmrg your preprocessor is broken; 3812b62cc08cSmrg#endif 3813b62cc08cSmrgstatic long long int bignum = -9223372036854775807LL; 3814b62cc08cSmrgstatic unsigned long long int ubignum = BIG64; 3815b62cc08cSmrg 3816b62cc08cSmrgstruct incomplete_array 3817b62cc08cSmrg{ 3818b62cc08cSmrg int datasize; 3819b62cc08cSmrg double data[]; 3820b62cc08cSmrg}; 3821b62cc08cSmrg 3822b62cc08cSmrgstruct named_init { 3823b62cc08cSmrg int number; 3824b62cc08cSmrg const wchar_t *name; 3825b62cc08cSmrg double average; 3826b62cc08cSmrg}; 3827b62cc08cSmrg 3828b62cc08cSmrgtypedef const char *ccp; 3829b62cc08cSmrg 3830b62cc08cSmrgstatic inline int 3831b62cc08cSmrgtest_restrict (ccp restrict text) 3832b62cc08cSmrg{ 3833b62cc08cSmrg // See if C++-style comments work. 3834b62cc08cSmrg // Iterate through items via the restricted pointer. 3835b62cc08cSmrg // Also check for declarations in for loops. 3836b62cc08cSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3837b62cc08cSmrg continue; 3838b62cc08cSmrg return 0; 3839b62cc08cSmrg} 3840b62cc08cSmrg 3841b62cc08cSmrg// Check varargs and va_copy. 3842b62cc08cSmrgstatic void 3843b62cc08cSmrgtest_varargs (const char *format, ...) 3844b62cc08cSmrg{ 3845b62cc08cSmrg va_list args; 3846b62cc08cSmrg va_start (args, format); 3847b62cc08cSmrg va_list args_copy; 3848b62cc08cSmrg va_copy (args_copy, args); 3849b62cc08cSmrg 3850b62cc08cSmrg const char *str; 3851b62cc08cSmrg int number; 3852b62cc08cSmrg float fnumber; 3853b62cc08cSmrg 3854b62cc08cSmrg while (*format) 3855b62cc08cSmrg { 3856b62cc08cSmrg switch (*format++) 3857b62cc08cSmrg { 3858b62cc08cSmrg case 's': // string 3859b62cc08cSmrg str = va_arg (args_copy, const char *); 3860b62cc08cSmrg break; 3861b62cc08cSmrg case 'd': // int 3862b62cc08cSmrg number = va_arg (args_copy, int); 3863b62cc08cSmrg break; 3864b62cc08cSmrg case 'f': // float 3865b62cc08cSmrg fnumber = va_arg (args_copy, double); 3866b62cc08cSmrg break; 3867b62cc08cSmrg default: 3868b62cc08cSmrg break; 3869b62cc08cSmrg } 3870b62cc08cSmrg } 3871b62cc08cSmrg va_end (args_copy); 3872b62cc08cSmrg va_end (args); 3873b62cc08cSmrg} 3874b62cc08cSmrg 3875b62cc08cSmrgint 3876b62cc08cSmrgmain () 3877b62cc08cSmrg{ 3878b62cc08cSmrg 3879b62cc08cSmrg // Check bool. 3880b62cc08cSmrg _Bool success = false; 3881b62cc08cSmrg 3882b62cc08cSmrg // Check restrict. 3883b62cc08cSmrg if (test_restrict ("String literal") == 0) 3884b62cc08cSmrg success = true; 3885b62cc08cSmrg char *restrict newvar = "Another string"; 3886b62cc08cSmrg 3887b62cc08cSmrg // Check varargs. 3888b62cc08cSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 3889b62cc08cSmrg test_varargs_macros (); 3890b62cc08cSmrg 3891b62cc08cSmrg // Check flexible array members. 3892b62cc08cSmrg struct incomplete_array *ia = 3893b62cc08cSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3894b62cc08cSmrg ia->datasize = 10; 3895b62cc08cSmrg for (int i = 0; i < ia->datasize; ++i) 3896b62cc08cSmrg ia->data[i] = i * 1.234; 3897b62cc08cSmrg 3898b62cc08cSmrg // Check named initializers. 3899b62cc08cSmrg struct named_init ni = { 3900b62cc08cSmrg .number = 34, 3901b62cc08cSmrg .name = L"Test wide string", 3902b62cc08cSmrg .average = 543.34343, 3903b62cc08cSmrg }; 3904b62cc08cSmrg 3905b62cc08cSmrg ni.number = 58; 3906b62cc08cSmrg 3907b62cc08cSmrg int dynamic_array[ni.number]; 3908b62cc08cSmrg dynamic_array[ni.number - 1] = 543; 3909b62cc08cSmrg 3910b62cc08cSmrg // work around unused variable warnings 3911b62cc08cSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3912b62cc08cSmrg || dynamic_array[ni.number - 1] != 543); 3913b62cc08cSmrg 3914b62cc08cSmrg ; 3915b62cc08cSmrg return 0; 3916b62cc08cSmrg} 3917b62cc08cSmrg_ACEOF 3918b62cc08cSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3919b62cc08cSmrgdo 3920b62cc08cSmrg CC="$ac_save_CC $ac_arg" 3921b62cc08cSmrg if ac_fn_c_try_compile "$LINENO"; then : 3922b62cc08cSmrg ac_cv_prog_cc_c99=$ac_arg 3923b62cc08cSmrgfi 3924b62cc08cSmrgrm -f core conftest.err conftest.$ac_objext 3925b62cc08cSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 3926b62cc08cSmrgdone 3927b62cc08cSmrgrm -f conftest.$ac_ext 3928b62cc08cSmrgCC=$ac_save_CC 3929b62cc08cSmrg 3930b62cc08cSmrgfi 3931b62cc08cSmrg# AC_CACHE_VAL 3932b62cc08cSmrgcase "x$ac_cv_prog_cc_c99" in 3933b62cc08cSmrg x) 3934b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3935b62cc08cSmrg$as_echo "none needed" >&6; } ;; 3936b62cc08cSmrg xno) 3937b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3938b62cc08cSmrg$as_echo "unsupported" >&6; } ;; 3939b62cc08cSmrg *) 3940b62cc08cSmrg CC="$CC $ac_cv_prog_cc_c99" 3941b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3942b62cc08cSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3943b62cc08cSmrgesac 3944b62cc08cSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 3945b62cc08cSmrg 3946b62cc08cSmrgfi 3947b62cc08cSmrg 3948b62cc08cSmrg 39499d794632Smrg 3950b62cc08cSmrgac_ext=c 3951b62cc08cSmrgac_cpp='$CPP $CPPFLAGS' 3952b62cc08cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3953b62cc08cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3954b62cc08cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3955b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3956b62cc08cSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3957b62cc08cSmrg# On Suns, sometimes $CPP names a directory. 3958b62cc08cSmrgif test -n "$CPP" && test -d "$CPP"; then 3959b62cc08cSmrg CPP= 3960b62cc08cSmrgfi 3961b62cc08cSmrgif test -z "$CPP"; then 3962b62cc08cSmrg if ${ac_cv_prog_CPP+:} false; then : 3963b62cc08cSmrg $as_echo_n "(cached) " >&6 3964b62cc08cSmrgelse 3965b62cc08cSmrg # Double quotes because CPP needs to be expanded 3966b62cc08cSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3967b62cc08cSmrg do 3968b62cc08cSmrg ac_preproc_ok=false 3969b62cc08cSmrgfor ac_c_preproc_warn_flag in '' yes 3970b62cc08cSmrgdo 3971b62cc08cSmrg # Use a header file that comes with gcc, so configuring glibc 3972b62cc08cSmrg # with a fresh cross-compiler works. 3973b62cc08cSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3974b62cc08cSmrg # <limits.h> exists even on freestanding compilers. 3975b62cc08cSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 3976b62cc08cSmrg # not just through cpp. "Syntax error" is here to catch this case. 3977b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3978b62cc08cSmrg/* end confdefs.h. */ 3979b62cc08cSmrg#ifdef __STDC__ 3980b62cc08cSmrg# include <limits.h> 3981b62cc08cSmrg#else 3982b62cc08cSmrg# include <assert.h> 3983b62cc08cSmrg#endif 3984b62cc08cSmrg Syntax error 3985b62cc08cSmrg_ACEOF 3986b62cc08cSmrgif ac_fn_c_try_cpp "$LINENO"; then : 3987b62cc08cSmrg 3988b62cc08cSmrgelse 3989b62cc08cSmrg # Broken: fails on valid input. 3990b62cc08cSmrgcontinue 3991b62cc08cSmrgfi 3992b62cc08cSmrgrm -f conftest.err conftest.i conftest.$ac_ext 3993b62cc08cSmrg 3994b62cc08cSmrg # OK, works on sane cases. Now check whether nonexistent headers 3995b62cc08cSmrg # can be detected and how. 3996b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3997b62cc08cSmrg/* end confdefs.h. */ 3998b62cc08cSmrg#include <ac_nonexistent.h> 3999b62cc08cSmrg_ACEOF 4000b62cc08cSmrgif ac_fn_c_try_cpp "$LINENO"; then : 4001b62cc08cSmrg # Broken: success on invalid input. 4002b62cc08cSmrgcontinue 4003b62cc08cSmrgelse 4004b62cc08cSmrg # Passes both tests. 4005b62cc08cSmrgac_preproc_ok=: 4006b62cc08cSmrgbreak 4007b62cc08cSmrgfi 4008b62cc08cSmrgrm -f conftest.err conftest.i conftest.$ac_ext 4009b62cc08cSmrg 4010b62cc08cSmrgdone 4011b62cc08cSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4012b62cc08cSmrgrm -f conftest.i conftest.err conftest.$ac_ext 4013b62cc08cSmrgif $ac_preproc_ok; then : 4014b62cc08cSmrg break 4015b62cc08cSmrgfi 4016b62cc08cSmrg 4017b62cc08cSmrg done 4018b62cc08cSmrg ac_cv_prog_CPP=$CPP 4019b62cc08cSmrg 4020b62cc08cSmrgfi 4021b62cc08cSmrg CPP=$ac_cv_prog_CPP 40229fe995a9Smrgelse 4023b62cc08cSmrg ac_cv_prog_CPP=$CPP 40249fe995a9Smrgfi 4025b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4026b62cc08cSmrg$as_echo "$CPP" >&6; } 4027b62cc08cSmrgac_preproc_ok=false 4028b62cc08cSmrgfor ac_c_preproc_warn_flag in '' yes 4029b62cc08cSmrgdo 4030b62cc08cSmrg # Use a header file that comes with gcc, so configuring glibc 4031b62cc08cSmrg # with a fresh cross-compiler works. 4032b62cc08cSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4033b62cc08cSmrg # <limits.h> exists even on freestanding compilers. 4034b62cc08cSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 4035b62cc08cSmrg # not just through cpp. "Syntax error" is here to catch this case. 4036b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4037b62cc08cSmrg/* end confdefs.h. */ 4038b62cc08cSmrg#ifdef __STDC__ 4039b62cc08cSmrg# include <limits.h> 4040b62cc08cSmrg#else 4041b62cc08cSmrg# include <assert.h> 4042b62cc08cSmrg#endif 4043b62cc08cSmrg Syntax error 4044b62cc08cSmrg_ACEOF 4045b62cc08cSmrgif ac_fn_c_try_cpp "$LINENO"; then : 40469fe995a9Smrg 4047b62cc08cSmrgelse 4048b62cc08cSmrg # Broken: fails on valid input. 4049b62cc08cSmrgcontinue 40509fe995a9Smrgfi 4051b62cc08cSmrgrm -f conftest.err conftest.i conftest.$ac_ext 40529fe995a9Smrg 4053b62cc08cSmrg # OK, works on sane cases. Now check whether nonexistent headers 4054b62cc08cSmrg # can be detected and how. 4055b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056b62cc08cSmrg/* end confdefs.h. */ 4057b62cc08cSmrg#include <ac_nonexistent.h> 4058b62cc08cSmrg_ACEOF 4059b62cc08cSmrgif ac_fn_c_try_cpp "$LINENO"; then : 4060b62cc08cSmrg # Broken: success on invalid input. 4061b62cc08cSmrgcontinue 40629fe995a9Smrgelse 4063b62cc08cSmrg # Passes both tests. 4064b62cc08cSmrgac_preproc_ok=: 4065b62cc08cSmrgbreak 40669fe995a9Smrgfi 4067b62cc08cSmrgrm -f conftest.err conftest.i conftest.$ac_ext 40689fe995a9Smrg 4069b62cc08cSmrgdone 4070b62cc08cSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4071b62cc08cSmrgrm -f conftest.i conftest.err conftest.$ac_ext 4072b62cc08cSmrgif $ac_preproc_ok; then : 40739fe995a9Smrg 40749fe995a9Smrgelse 4075b62cc08cSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4076b62cc08cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4077b62cc08cSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4078b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; } 4079b62cc08cSmrgfi 4080b62cc08cSmrg 4081b62cc08cSmrgac_ext=c 4082b62cc08cSmrgac_cpp='$CPP $CPPFLAGS' 4083b62cc08cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4084b62cc08cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4085b62cc08cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4086b62cc08cSmrg 4087b62cc08cSmrg 4088b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4089b62cc08cSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4090b62cc08cSmrgif ${ac_cv_path_GREP+:} false; then : 4091b62cc08cSmrg $as_echo_n "(cached) " >&6 4092b62cc08cSmrgelse 4093b62cc08cSmrg if test -z "$GREP"; then 4094b62cc08cSmrg ac_path_GREP_found=false 4095b62cc08cSmrg # Loop through the user's path and test for each of PROGNAME-LIST 40969fe995a9Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4097b62cc08cSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 40989fe995a9Smrgdo 40999fe995a9Smrg IFS=$as_save_IFS 41009fe995a9Smrg test -z "$as_dir" && as_dir=. 4101b62cc08cSmrg for ac_prog in grep ggrep; do 4102b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4103b62cc08cSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4104b62cc08cSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4105b62cc08cSmrg# Check for GNU ac_path_GREP and select it if it is found. 4106b62cc08cSmrg # Check for GNU $ac_path_GREP 4107b62cc08cSmrgcase `"$ac_path_GREP" --version 2>&1` in 4108b62cc08cSmrg*GNU*) 4109b62cc08cSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4110b62cc08cSmrg*) 4111b62cc08cSmrg ac_count=0 4112b62cc08cSmrg $as_echo_n 0123456789 >"conftest.in" 4113b62cc08cSmrg while : 4114b62cc08cSmrg do 4115b62cc08cSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4116b62cc08cSmrg mv "conftest.tmp" "conftest.in" 4117b62cc08cSmrg cp "conftest.in" "conftest.nl" 4118b62cc08cSmrg $as_echo 'GREP' >> "conftest.nl" 4119b62cc08cSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4120b62cc08cSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4121b62cc08cSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4122b62cc08cSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4123b62cc08cSmrg # Best one so far, save it but keep looking for a better one 4124b62cc08cSmrg ac_cv_path_GREP="$ac_path_GREP" 4125b62cc08cSmrg ac_path_GREP_max=$ac_count 4126b62cc08cSmrg fi 4127b62cc08cSmrg # 10*(2^10) chars as input seems more than enough 4128b62cc08cSmrg test $ac_count -gt 10 && break 4129b62cc08cSmrg done 4130b62cc08cSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 41319fe995a9Smrgesac 41329fe995a9Smrg 4133b62cc08cSmrg $ac_path_GREP_found && break 3 4134b62cc08cSmrg done 4135b62cc08cSmrg done 4136b62cc08cSmrg done 4137b62cc08cSmrgIFS=$as_save_IFS 4138b62cc08cSmrg if test -z "$ac_cv_path_GREP"; then 4139b62cc08cSmrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4140b62cc08cSmrg fi 4141b62cc08cSmrgelse 4142b62cc08cSmrg ac_cv_path_GREP=$GREP 4143b62cc08cSmrgfi 41449fe995a9Smrg 41459fe995a9Smrgfi 4146b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4147b62cc08cSmrg$as_echo "$ac_cv_path_GREP" >&6; } 4148b62cc08cSmrg GREP="$ac_cv_path_GREP" 4149b62cc08cSmrg 4150b62cc08cSmrg 4151b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4152b62cc08cSmrg$as_echo_n "checking for egrep... " >&6; } 4153b62cc08cSmrgif ${ac_cv_path_EGREP+:} false; then : 4154b62cc08cSmrg $as_echo_n "(cached) " >&6 4155b62cc08cSmrgelse 4156b62cc08cSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4157b62cc08cSmrg then ac_cv_path_EGREP="$GREP -E" 4158b62cc08cSmrg else 4159b62cc08cSmrg if test -z "$EGREP"; then 4160b62cc08cSmrg ac_path_EGREP_found=false 4161b62cc08cSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4162b62cc08cSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4163b62cc08cSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4164b62cc08cSmrgdo 4165b62cc08cSmrg IFS=$as_save_IFS 4166b62cc08cSmrg test -z "$as_dir" && as_dir=. 4167b62cc08cSmrg for ac_prog in egrep; do 4168b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4169b62cc08cSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4170b62cc08cSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4171b62cc08cSmrg# Check for GNU ac_path_EGREP and select it if it is found. 4172b62cc08cSmrg # Check for GNU $ac_path_EGREP 4173b62cc08cSmrgcase `"$ac_path_EGREP" --version 2>&1` in 4174b62cc08cSmrg*GNU*) 4175b62cc08cSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4176b62cc08cSmrg*) 4177b62cc08cSmrg ac_count=0 4178b62cc08cSmrg $as_echo_n 0123456789 >"conftest.in" 4179b62cc08cSmrg while : 4180b62cc08cSmrg do 4181b62cc08cSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4182b62cc08cSmrg mv "conftest.tmp" "conftest.in" 4183b62cc08cSmrg cp "conftest.in" "conftest.nl" 4184b62cc08cSmrg $as_echo 'EGREP' >> "conftest.nl" 4185b62cc08cSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4186b62cc08cSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4187b62cc08cSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4188b62cc08cSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4189b62cc08cSmrg # Best one so far, save it but keep looking for a better one 4190b62cc08cSmrg ac_cv_path_EGREP="$ac_path_EGREP" 4191b62cc08cSmrg ac_path_EGREP_max=$ac_count 4192b62cc08cSmrg fi 4193b62cc08cSmrg # 10*(2^10) chars as input seems more than enough 4194b62cc08cSmrg test $ac_count -gt 10 && break 4195b62cc08cSmrg done 4196b62cc08cSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4197b62cc08cSmrgesac 4198b62cc08cSmrg 4199b62cc08cSmrg $ac_path_EGREP_found && break 3 4200b62cc08cSmrg done 4201b62cc08cSmrg done 4202b62cc08cSmrg done 4203b62cc08cSmrgIFS=$as_save_IFS 4204b62cc08cSmrg if test -z "$ac_cv_path_EGREP"; then 4205b62cc08cSmrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 42069fe995a9Smrg fi 4207b62cc08cSmrgelse 4208b62cc08cSmrg ac_cv_path_EGREP=$EGREP 42099fe995a9Smrgfi 42109fe995a9Smrg 4211b62cc08cSmrg fi 4212b62cc08cSmrgfi 4213b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4214b62cc08cSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 4215b62cc08cSmrg EGREP="$ac_cv_path_EGREP" 42169fe995a9Smrg 42179fe995a9Smrg 4218b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4219b62cc08cSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 4220b62cc08cSmrgif ${ac_cv_header_stdc+:} false; then : 4221b62cc08cSmrg $as_echo_n "(cached) " >&6 4222b62cc08cSmrgelse 4223b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4224b62cc08cSmrg/* end confdefs.h. */ 4225b62cc08cSmrg#include <stdlib.h> 4226b62cc08cSmrg#include <stdarg.h> 4227b62cc08cSmrg#include <string.h> 4228b62cc08cSmrg#include <float.h> 4229b62cc08cSmrg 4230b62cc08cSmrgint 4231b62cc08cSmrgmain () 4232b62cc08cSmrg{ 4233b62cc08cSmrg 4234b62cc08cSmrg ; 4235b62cc08cSmrg return 0; 4236b62cc08cSmrg} 4237b62cc08cSmrg_ACEOF 4238b62cc08cSmrgif ac_fn_c_try_compile "$LINENO"; then : 4239b62cc08cSmrg ac_cv_header_stdc=yes 4240b62cc08cSmrgelse 4241b62cc08cSmrg ac_cv_header_stdc=no 4242b62cc08cSmrgfi 4243b62cc08cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42449fe995a9Smrg 4245b62cc08cSmrgif test $ac_cv_header_stdc = yes; then 4246b62cc08cSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4247b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4248b62cc08cSmrg/* end confdefs.h. */ 4249b62cc08cSmrg#include <string.h> 42509fe995a9Smrg 4251b62cc08cSmrg_ACEOF 4252b62cc08cSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4253b62cc08cSmrg $EGREP "memchr" >/dev/null 2>&1; then : 42549fe995a9Smrg 42559fe995a9Smrgelse 4256b62cc08cSmrg ac_cv_header_stdc=no 4257b62cc08cSmrgfi 4258b62cc08cSmrgrm -f conftest* 4259b62cc08cSmrg 4260b62cc08cSmrgfi 4261b62cc08cSmrg 4262b62cc08cSmrgif test $ac_cv_header_stdc = yes; then 4263b62cc08cSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4264b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4265b62cc08cSmrg/* end confdefs.h. */ 4266b62cc08cSmrg#include <stdlib.h> 4267b62cc08cSmrg 42689fe995a9Smrg_ACEOF 4269b62cc08cSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4270b62cc08cSmrg $EGREP "free" >/dev/null 2>&1; then : 4271b62cc08cSmrg 4272b62cc08cSmrgelse 4273b62cc08cSmrg ac_cv_header_stdc=no 4274b62cc08cSmrgfi 4275b62cc08cSmrgrm -f conftest* 4276b62cc08cSmrg 4277b62cc08cSmrgfi 4278b62cc08cSmrg 4279b62cc08cSmrgif test $ac_cv_header_stdc = yes; then 4280b62cc08cSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4281b62cc08cSmrg if test "$cross_compiling" = yes; then : 4282b62cc08cSmrg : 4283b62cc08cSmrgelse 4284b62cc08cSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42859fe995a9Smrg/* end confdefs.h. */ 4286b62cc08cSmrg#include <ctype.h> 4287b62cc08cSmrg#include <stdlib.h> 4288b62cc08cSmrg#if ((' ' & 0x0FF) == 0x020) 4289b62cc08cSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4290b62cc08cSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4291b62cc08cSmrg#else 4292b62cc08cSmrg# define ISLOWER(c) \ 4293b62cc08cSmrg (('a' <= (c) && (c) <= 'i') \ 4294b62cc08cSmrg || ('j' <= (c) && (c) <= 'r') \ 4295b62cc08cSmrg || ('s' <= (c) && (c) <= 'z')) 4296b62cc08cSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4297b62cc08cSmrg#endif 42989fe995a9Smrg 4299b62cc08cSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 43009fe995a9Smrgint 43019fe995a9Smrgmain () 43029fe995a9Smrg{ 4303b62cc08cSmrg int i; 4304b62cc08cSmrg for (i = 0; i < 256; i++) 4305b62cc08cSmrg if (XOR (islower (i), ISLOWER (i)) 4306b62cc08cSmrg || toupper (i) != TOUPPER (i)) 4307b62cc08cSmrg return 2; 43089fe995a9Smrg return 0; 43099fe995a9Smrg} 43109fe995a9Smrg_ACEOF 4311b62cc08cSmrgif ac_fn_c_try_run "$LINENO"; then : 4312b62cc08cSmrg 43139fe995a9Smrgelse 4314b62cc08cSmrg ac_cv_header_stdc=no 4315b62cc08cSmrgfi 4316b62cc08cSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4317b62cc08cSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 4318b62cc08cSmrgfi 43199fe995a9Smrg 43209fe995a9Smrgfi 4321b62cc08cSmrgfi 4322b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4323b62cc08cSmrg$as_echo "$ac_cv_header_stdc" >&6; } 4324b62cc08cSmrgif test $ac_cv_header_stdc = yes; then 4325b62cc08cSmrg 4326b62cc08cSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 43279fe995a9Smrg 43289fe995a9Smrgfi 43299fe995a9Smrg 4330b62cc08cSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4331b62cc08cSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4332b62cc08cSmrg inttypes.h stdint.h unistd.h 4333b62cc08cSmrgdo : 4334b62cc08cSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4335b62cc08cSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4336b62cc08cSmrg" 4337b62cc08cSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4338b62cc08cSmrg cat >>confdefs.h <<_ACEOF 4339b62cc08cSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43409fe995a9Smrg_ACEOF 43419fe995a9Smrg 4342b62cc08cSmrgfi 4343b62cc08cSmrg 4344b62cc08cSmrgdone 43459fe995a9Smrg 43469fe995a9Smrg 43479fe995a9Smrg 43489fe995a9Smrg 434990b6713cSmrg 435090b6713cSmrg 43519d794632Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 43529d794632Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 43539d794632Smrg CLANGCC="yes" 43549d794632Smrgelse 43559d794632Smrg CLANGCC="no" 43569d794632Smrgfi 43579d794632Smrg 43589d794632Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 43599d794632Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 43609d794632Smrg INTELCC="yes" 43619d794632Smrgelse 43629d794632Smrg INTELCC="no" 43639d794632Smrgfi 43649d794632Smrg 43659d794632Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 43669d794632Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 43679d794632Smrg SUNCC="yes" 43689d794632Smrgelse 43699d794632Smrg SUNCC="no" 43709d794632Smrgfi 43719d794632Smrg 43729d794632Smrg 437390b6713cSmrg 437490b6713cSmrg 43759fe995a9Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 43769fe995a9Smrg if test -n "$ac_tool_prefix"; then 43779fe995a9Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 43789fe995a9Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4379b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4380b62cc08cSmrg$as_echo_n "checking for $ac_word... " >&6; } 4381b62cc08cSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4382b62cc08cSmrg $as_echo_n "(cached) " >&6 43839fe995a9Smrgelse 43849fe995a9Smrg case $PKG_CONFIG in 43859fe995a9Smrg [\\/]* | ?:[\\/]*) 43869fe995a9Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 43879fe995a9Smrg ;; 43889fe995a9Smrg *) 43899fe995a9Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43909fe995a9Smrgfor as_dir in $PATH 43919fe995a9Smrgdo 43929fe995a9Smrg IFS=$as_save_IFS 43939fe995a9Smrg test -z "$as_dir" && as_dir=. 4394b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 43959fe995a9Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 43969fe995a9Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4397b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43989fe995a9Smrg break 2 43999fe995a9Smrg fi 44009fe995a9Smrgdone 4401b62cc08cSmrg done 44029fe995a9SmrgIFS=$as_save_IFS 44039fe995a9Smrg 44049fe995a9Smrg ;; 44059fe995a9Smrgesac 44069fe995a9Smrgfi 44079fe995a9SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 44089fe995a9Smrgif test -n "$PKG_CONFIG"; then 4409b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4410b62cc08cSmrg$as_echo "$PKG_CONFIG" >&6; } 44119fe995a9Smrgelse 4412b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4413b62cc08cSmrg$as_echo "no" >&6; } 44149fe995a9Smrgfi 44159fe995a9Smrg 44169fe995a9Smrg 44179fe995a9Smrgfi 44189fe995a9Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 44199fe995a9Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 44209fe995a9Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 44219fe995a9Smrgset dummy pkg-config; ac_word=$2 4422b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4423b62cc08cSmrg$as_echo_n "checking for $ac_word... " >&6; } 4424b62cc08cSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4425b62cc08cSmrg $as_echo_n "(cached) " >&6 44269fe995a9Smrgelse 44279fe995a9Smrg case $ac_pt_PKG_CONFIG in 44289fe995a9Smrg [\\/]* | ?:[\\/]*) 44299fe995a9Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 44309fe995a9Smrg ;; 44319fe995a9Smrg *) 44329fe995a9Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44339fe995a9Smrgfor as_dir in $PATH 44349fe995a9Smrgdo 44359fe995a9Smrg IFS=$as_save_IFS 44369fe995a9Smrg test -z "$as_dir" && as_dir=. 4437b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 44389fe995a9Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 44399fe995a9Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4440b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44419fe995a9Smrg break 2 44429fe995a9Smrg fi 44439fe995a9Smrgdone 4444b62cc08cSmrg done 44459fe995a9SmrgIFS=$as_save_IFS 44469fe995a9Smrg 44479fe995a9Smrg ;; 44489fe995a9Smrgesac 44499fe995a9Smrgfi 44509fe995a9Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 44519fe995a9Smrgif test -n "$ac_pt_PKG_CONFIG"; then 4452b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4453b62cc08cSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 44549fe995a9Smrgelse 4455b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4456b62cc08cSmrg$as_echo "no" >&6; } 44579fe995a9Smrgfi 44589fe995a9Smrg 44599fe995a9Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 44609fe995a9Smrg PKG_CONFIG="" 44619fe995a9Smrg else 44629fe995a9Smrg case $cross_compiling:$ac_tool_warned in 44639fe995a9Smrgyes:) 4464b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4465b62cc08cSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44669fe995a9Smrgac_tool_warned=yes ;; 44679fe995a9Smrgesac 44689fe995a9Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 44699fe995a9Smrg fi 44709fe995a9Smrgelse 44719fe995a9Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 44729fe995a9Smrgfi 44739fe995a9Smrg 44749fe995a9Smrgfi 44759fe995a9Smrgif test -n "$PKG_CONFIG"; then 44769fe995a9Smrg _pkg_min_version=0.9.0 4477b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4478b62cc08cSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 44799fe995a9Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4480b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4481b62cc08cSmrg$as_echo "yes" >&6; } 44829fe995a9Smrg else 4483b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4484b62cc08cSmrg$as_echo "no" >&6; } 4485b62cc08cSmrg PKG_CONFIG="" 4486b62cc08cSmrg fi 44879d794632Smrg 4488b62cc08cSmrgfi 44899fe995a9Smrg# Make sure we can run config.sub. 44909fe995a9Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4491b62cc08cSmrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 44929fe995a9Smrg 4493b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4494b62cc08cSmrg$as_echo_n "checking build system type... " >&6; } 4495b62cc08cSmrgif ${ac_cv_build+:} false; then : 4496b62cc08cSmrg $as_echo_n "(cached) " >&6 44979fe995a9Smrgelse 44989fe995a9Smrg ac_build_alias=$build_alias 44999fe995a9Smrgtest "x$ac_build_alias" = x && 45009fe995a9Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 45019fe995a9Smrgtest "x$ac_build_alias" = x && 4502b62cc08cSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 45039fe995a9Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4504b62cc08cSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 45059fe995a9Smrg 45069fe995a9Smrgfi 4507b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4508b62cc08cSmrg$as_echo "$ac_cv_build" >&6; } 45099fe995a9Smrgcase $ac_cv_build in 45109fe995a9Smrg*-*-*) ;; 4511b62cc08cSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 45129fe995a9Smrgesac 45139fe995a9Smrgbuild=$ac_cv_build 45149fe995a9Smrgac_save_IFS=$IFS; IFS='-' 45159fe995a9Smrgset x $ac_cv_build 45169fe995a9Smrgshift 45179fe995a9Smrgbuild_cpu=$1 45189fe995a9Smrgbuild_vendor=$2 45199fe995a9Smrgshift; shift 45209fe995a9Smrg# Remember, the first character of IFS is used to create $*, 45219fe995a9Smrg# except with old shells: 45229fe995a9Smrgbuild_os=$* 45239fe995a9SmrgIFS=$ac_save_IFS 45249fe995a9Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 45259fe995a9Smrg 45269fe995a9Smrg 4527b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4528b62cc08cSmrg$as_echo_n "checking host system type... " >&6; } 4529b62cc08cSmrgif ${ac_cv_host+:} false; then : 4530b62cc08cSmrg $as_echo_n "(cached) " >&6 45319fe995a9Smrgelse 45329fe995a9Smrg if test "x$host_alias" = x; then 45339fe995a9Smrg ac_cv_host=$ac_cv_build 45349fe995a9Smrgelse 45359fe995a9Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4536b62cc08cSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 45379fe995a9Smrgfi 45389fe995a9Smrg 45399fe995a9Smrgfi 4540b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4541b62cc08cSmrg$as_echo "$ac_cv_host" >&6; } 45429fe995a9Smrgcase $ac_cv_host in 45439fe995a9Smrg*-*-*) ;; 4544b62cc08cSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 45459fe995a9Smrgesac 45469fe995a9Smrghost=$ac_cv_host 45479fe995a9Smrgac_save_IFS=$IFS; IFS='-' 45489fe995a9Smrgset x $ac_cv_host 45499fe995a9Smrgshift 45509fe995a9Smrghost_cpu=$1 45519fe995a9Smrghost_vendor=$2 45529fe995a9Smrgshift; shift 45539fe995a9Smrg# Remember, the first character of IFS is used to create $*, 45549fe995a9Smrg# except with old shells: 45559fe995a9Smrghost_os=$* 45569fe995a9SmrgIFS=$ac_save_IFS 45579fe995a9Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 45589fe995a9Smrg 45599fe995a9Smrg 4560b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4561b62cc08cSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4562b62cc08cSmrgif ${ac_cv_path_SED+:} false; then : 4563b62cc08cSmrg $as_echo_n "(cached) " >&6 4564b62cc08cSmrgelse 4565b62cc08cSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4566b62cc08cSmrg for ac_i in 1 2 3 4 5 6 7; do 4567b62cc08cSmrg ac_script="$ac_script$as_nl$ac_script" 4568b62cc08cSmrg done 4569b62cc08cSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4570b62cc08cSmrg { ac_script=; unset ac_script;} 4571b62cc08cSmrg if test -z "$SED"; then 4572b62cc08cSmrg ac_path_SED_found=false 4573b62cc08cSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4574b62cc08cSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4575b62cc08cSmrgfor as_dir in $PATH 4576b62cc08cSmrgdo 4577b62cc08cSmrg IFS=$as_save_IFS 4578b62cc08cSmrg test -z "$as_dir" && as_dir=. 4579b62cc08cSmrg for ac_prog in sed gsed; do 4580b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4581b62cc08cSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4582b62cc08cSmrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4583b62cc08cSmrg# Check for GNU ac_path_SED and select it if it is found. 4584b62cc08cSmrg # Check for GNU $ac_path_SED 4585b62cc08cSmrgcase `"$ac_path_SED" --version 2>&1` in 4586b62cc08cSmrg*GNU*) 4587b62cc08cSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4588b62cc08cSmrg*) 4589b62cc08cSmrg ac_count=0 4590b62cc08cSmrg $as_echo_n 0123456789 >"conftest.in" 4591b62cc08cSmrg while : 4592b62cc08cSmrg do 4593b62cc08cSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4594b62cc08cSmrg mv "conftest.tmp" "conftest.in" 4595b62cc08cSmrg cp "conftest.in" "conftest.nl" 4596b62cc08cSmrg $as_echo '' >> "conftest.nl" 4597b62cc08cSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4598b62cc08cSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4599b62cc08cSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4600b62cc08cSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4601b62cc08cSmrg # Best one so far, save it but keep looking for a better one 4602b62cc08cSmrg ac_cv_path_SED="$ac_path_SED" 4603b62cc08cSmrg ac_path_SED_max=$ac_count 4604b62cc08cSmrg fi 4605b62cc08cSmrg # 10*(2^10) chars as input seems more than enough 4606b62cc08cSmrg test $ac_count -gt 10 && break 4607b62cc08cSmrg done 4608b62cc08cSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4609b62cc08cSmrgesac 4610b62cc08cSmrg 4611b62cc08cSmrg $ac_path_SED_found && break 3 4612b62cc08cSmrg done 4613b62cc08cSmrg done 4614b62cc08cSmrg done 4615b62cc08cSmrgIFS=$as_save_IFS 4616b62cc08cSmrg if test -z "$ac_cv_path_SED"; then 4617b62cc08cSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4618b62cc08cSmrg fi 4619b62cc08cSmrgelse 4620b62cc08cSmrg ac_cv_path_SED=$SED 4621b62cc08cSmrgfi 4622b62cc08cSmrg 4623b62cc08cSmrgfi 4624b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4625b62cc08cSmrg$as_echo "$ac_cv_path_SED" >&6; } 4626b62cc08cSmrg SED="$ac_cv_path_SED" 4627b62cc08cSmrg rm -f conftest.sed 4628b62cc08cSmrg 4629b62cc08cSmrg 4630b62cc08cSmrg 4631b62cc08cSmrg 4632b62cc08cSmrg 46339d794632Smrg 46349d794632Smrg# Check whether --enable-selective-werror was given. 46359d794632Smrgif test "${enable_selective_werror+set}" = set; then : 46369d794632Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4637b62cc08cSmrgelse 46389d794632Smrg SELECTIVE_WERROR=yes 4639b62cc08cSmrgfi 4640b62cc08cSmrg 46419d794632Smrg 46429d794632Smrg 46439d794632Smrg 46449d794632Smrg 46459d794632Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 46469d794632Smrgif test "x$SUNCC" = "xyes"; then 46479d794632Smrg BASE_CFLAGS="-v" 46489d794632Smrgelse 46499d794632Smrg BASE_CFLAGS="" 4650b62cc08cSmrgfi 4651b62cc08cSmrg 46529d794632Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4653b62cc08cSmrg 4654b62cc08cSmrg 4655b62cc08cSmrg 4656b62cc08cSmrg 4657b62cc08cSmrg 4658b62cc08cSmrg 4659b62cc08cSmrg 46609d794632Smrg 46619d794632Smrg 46629d794632Smrg 46639d794632Smrg 46649d794632Smrg 46659d794632Smrg 46669d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 46679d794632Smrg 46689d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 46699d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 46709d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 46719d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 46729d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 46739d794632Smrg $as_echo_n "(cached) " >&6 4674b62cc08cSmrgelse 46759d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46769d794632Smrg/* end confdefs.h. */ 46779d794632Smrgint i; 46789d794632Smrg_ACEOF 46799d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 46809d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 46819d794632Smrgelse 46829d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 46839d794632Smrgfi 46849d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46859d794632Smrgfi 46869d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 46879d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 46889d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 46899d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4690b62cc08cSmrgfi 4691b62cc08cSmrg 46929d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 46939d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 46949d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4695b62cc08cSmrg fi 46969d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 46979d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 46989d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 46999d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 47009d794632Smrg $as_echo_n "(cached) " >&6 47019d794632Smrgelse 47029d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47039d794632Smrg/* end confdefs.h. */ 47049d794632Smrgint i; 47059d794632Smrg_ACEOF 47069d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 47079d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 47089d794632Smrgelse 47099d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 47109d794632Smrgfi 47119d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47129d794632Smrgfi 47139d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 47149d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 47159d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 47169d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4717b62cc08cSmrgfi 4718b62cc08cSmrg 47199d794632Smrgfound="no" 4720b62cc08cSmrg 47219d794632Smrg if test $found = "no" ; then 47229d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 47239d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47249d794632Smrg fi 4725b62cc08cSmrg 47269d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 47279d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 47289d794632Smrg fi 4729b62cc08cSmrg 47309d794632Smrg CFLAGS="$CFLAGS -Wall" 4731b62cc08cSmrg 47329d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 47339d794632Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; } 47349d794632Smrg cacheid=xorg_cv_cc_flag__Wall 47359d794632Smrg if eval \${$cacheid+:} false; then : 47369d794632Smrg $as_echo_n "(cached) " >&6 47379d794632Smrgelse 47389d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47399d794632Smrg/* end confdefs.h. */ 47409d794632Smrgint i; 47419d794632Smrgint 47429d794632Smrgmain () 47439d794632Smrg{ 4744b62cc08cSmrg 47459d794632Smrg ; 47469d794632Smrg return 0; 47479d794632Smrg} 4748b62cc08cSmrg_ACEOF 47499d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 47509d794632Smrg eval $cacheid=yes 47519d794632Smrgelse 47529d794632Smrg eval $cacheid=no 47539d794632Smrgfi 47549d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 47559d794632Smrg conftest$ac_exeext conftest.$ac_ext 47569d794632Smrgfi 4757b62cc08cSmrg 47589d794632Smrg 47599d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 47609d794632Smrg 47619d794632Smrg eval supported=\$$cacheid 47629d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 47639d794632Smrg$as_echo "$supported" >&6; } 47649d794632Smrg if test "$supported" = "yes" ; then 47659d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 47669d794632Smrg found="yes" 47679d794632Smrg fi 4768b62cc08cSmrg fi 4769b62cc08cSmrg 4770b62cc08cSmrg 4771b62cc08cSmrg 4772b62cc08cSmrg 4773b62cc08cSmrg 4774b62cc08cSmrg 4775b62cc08cSmrg 4776b62cc08cSmrg 4777b62cc08cSmrg 4778b62cc08cSmrg 4779b62cc08cSmrg 47809fe995a9Smrg 47819fe995a9Smrg 47829fe995a9Smrg 47839fe995a9Smrg 47849d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 47859d794632Smrg 47869d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 47879d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47889d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 47899d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 47909d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 47919d794632Smrg $as_echo_n "(cached) " >&6 47929d794632Smrgelse 47939d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47949d794632Smrg/* end confdefs.h. */ 47959d794632Smrgint i; 47969d794632Smrg_ACEOF 47979d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 47989d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 47999d794632Smrgelse 48009d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 48019d794632Smrgfi 48029d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48039d794632Smrgfi 48049d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 48059d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 48069d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 48079d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48089d794632Smrgfi 48099d794632Smrg 48109d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 48119d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 48129d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48139d794632Smrg fi 48149d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 48159d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 48169d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 48179d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 48189d794632Smrg $as_echo_n "(cached) " >&6 48199d794632Smrgelse 48209d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48219d794632Smrg/* end confdefs.h. */ 48229d794632Smrgint i; 48239d794632Smrg_ACEOF 48249d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 48259d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 48269d794632Smrgelse 48279d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 48289d794632Smrgfi 48299d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48309d794632Smrgfi 48319d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 48329d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 48339d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 48349d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48359d794632Smrgfi 48369d794632Smrg 48379d794632Smrgfound="no" 48389d794632Smrg 48399d794632Smrg if test $found = "no" ; then 48409d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 48419d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 48429d794632Smrg fi 48439d794632Smrg 48449d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 48459d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 48469d794632Smrg fi 48479d794632Smrg 48489d794632Smrg CFLAGS="$CFLAGS -Wpointer-arith" 48499d794632Smrg 48509d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 48519d794632Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 48529d794632Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 48539d794632Smrg if eval \${$cacheid+:} false; then : 48549d794632Smrg $as_echo_n "(cached) " >&6 48559d794632Smrgelse 48569d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48579d794632Smrg/* end confdefs.h. */ 48589d794632Smrgint i; 48599d794632Smrgint 48609d794632Smrgmain () 48619d794632Smrg{ 48629d794632Smrg 48639d794632Smrg ; 48649d794632Smrg return 0; 48659d794632Smrg} 48669d794632Smrg_ACEOF 48679d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 48689d794632Smrg eval $cacheid=yes 48699d794632Smrgelse 48709d794632Smrg eval $cacheid=no 48719d794632Smrgfi 48729d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 48739d794632Smrg conftest$ac_exeext conftest.$ac_ext 48749d794632Smrgfi 48759d794632Smrg 48769d794632Smrg 48779d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 48789d794632Smrg 48799d794632Smrg eval supported=\$$cacheid 48809d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 48819d794632Smrg$as_echo "$supported" >&6; } 48829d794632Smrg if test "$supported" = "yes" ; then 48839d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 48849d794632Smrg found="yes" 48859d794632Smrg fi 48869d794632Smrg fi 48879d794632Smrg 48889d794632Smrg 48899d794632Smrg 48909d794632Smrg 48919d794632Smrg 48929d794632Smrg 48939d794632Smrg 48949d794632Smrg 48959d794632Smrg 48969d794632Smrg 48979d794632Smrg 48989d794632Smrg 48999d794632Smrg 49009d794632Smrg 49019d794632Smrg 49029d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 49039d794632Smrg 49049d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 49059d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49069d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 49079d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 49089d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 49099d794632Smrg $as_echo_n "(cached) " >&6 49109d794632Smrgelse 49119d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49129d794632Smrg/* end confdefs.h. */ 49139d794632Smrgint i; 49149d794632Smrg_ACEOF 49159d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 49169d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 49179d794632Smrgelse 49189d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 49199d794632Smrgfi 49209d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49219d794632Smrgfi 49229d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 49239d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 49249d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 49259d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49269d794632Smrgfi 49279d794632Smrg 49289d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 49299d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 49309d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49319d794632Smrg fi 49329d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49339d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 49349d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 49359d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 49369d794632Smrg $as_echo_n "(cached) " >&6 49379d794632Smrgelse 49389d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49399d794632Smrg/* end confdefs.h. */ 49409d794632Smrgint i; 49419d794632Smrg_ACEOF 49429d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 49439d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 49449d794632Smrgelse 49459d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 49469d794632Smrgfi 49479d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49489d794632Smrgfi 49499d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 49509d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 49519d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 49529d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49539d794632Smrgfi 49549d794632Smrg 49559d794632Smrgfound="no" 49569d794632Smrg 49579d794632Smrg if test $found = "no" ; then 49589d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 49599d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49609d794632Smrg fi 49619d794632Smrg 49629d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 49639d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49649d794632Smrg fi 49659d794632Smrg 49669d794632Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 49679d794632Smrg 49689d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 49699d794632Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 49709d794632Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 49719d794632Smrg if eval \${$cacheid+:} false; then : 49729d794632Smrg $as_echo_n "(cached) " >&6 49739d794632Smrgelse 49749d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49759d794632Smrg/* end confdefs.h. */ 49769d794632Smrgint i; 49779d794632Smrgint 49789d794632Smrgmain () 49799d794632Smrg{ 49809d794632Smrg 49819d794632Smrg ; 49829d794632Smrg return 0; 49839d794632Smrg} 49849d794632Smrg_ACEOF 49859d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 49869d794632Smrg eval $cacheid=yes 49879d794632Smrgelse 49889d794632Smrg eval $cacheid=no 49899d794632Smrgfi 49909d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 49919d794632Smrg conftest$ac_exeext conftest.$ac_ext 49929d794632Smrgfi 49939d794632Smrg 49949d794632Smrg 49959d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 49969d794632Smrg 49979d794632Smrg eval supported=\$$cacheid 49989d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 49999d794632Smrg$as_echo "$supported" >&6; } 50009d794632Smrg if test "$supported" = "yes" ; then 50019d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 50029d794632Smrg found="yes" 50039d794632Smrg fi 50049d794632Smrg fi 50059d794632Smrg 50069d794632Smrg 50079d794632Smrg 50089d794632Smrg 50099d794632Smrg 50109d794632Smrg 50119d794632Smrg 50129d794632Smrg 50139d794632Smrg 50149d794632Smrg 50159d794632Smrg 50169d794632Smrg 50179d794632Smrg 50189d794632Smrg 50199d794632Smrg 50209d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 50219d794632Smrg 50229d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 50239d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50249d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 50259d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 50269d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 50279d794632Smrg $as_echo_n "(cached) " >&6 50289d794632Smrgelse 50299d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50309d794632Smrg/* end confdefs.h. */ 50319d794632Smrgint i; 50329d794632Smrg_ACEOF 50339d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 50349d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 50359d794632Smrgelse 50369d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 50379d794632Smrgfi 50389d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50399d794632Smrgfi 50409d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 50419d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 50429d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 50439d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50449d794632Smrgfi 50459d794632Smrg 50469d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 50479d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 50489d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50499d794632Smrg fi 50509d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50519d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 50529d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 50539d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 50549d794632Smrg $as_echo_n "(cached) " >&6 50559d794632Smrgelse 50569d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50579d794632Smrg/* end confdefs.h. */ 50589d794632Smrgint i; 50599d794632Smrg_ACEOF 50609d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 50619d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 50629d794632Smrgelse 50639d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 50649d794632Smrgfi 50659d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50669d794632Smrgfi 50679d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 50689d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 50699d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 50709d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 50719d794632Smrgfi 50729d794632Smrg 50739d794632Smrgfound="no" 50749d794632Smrg 50759d794632Smrg if test $found = "no" ; then 50769d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 50779d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50789d794632Smrg fi 50799d794632Smrg 50809d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 50819d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50829d794632Smrg fi 50839d794632Smrg 50849d794632Smrg CFLAGS="$CFLAGS -Wformat=2" 50859d794632Smrg 50869d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 50879d794632Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 50889d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 50899d794632Smrg if eval \${$cacheid+:} false; then : 50909d794632Smrg $as_echo_n "(cached) " >&6 50919d794632Smrgelse 50929d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50939d794632Smrg/* end confdefs.h. */ 50949d794632Smrgint i; 50959d794632Smrgint 50969d794632Smrgmain () 50979d794632Smrg{ 50989d794632Smrg 50999d794632Smrg ; 51009d794632Smrg return 0; 51019d794632Smrg} 51029d794632Smrg_ACEOF 51039d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 51049d794632Smrg eval $cacheid=yes 51059d794632Smrgelse 51069d794632Smrg eval $cacheid=no 51079d794632Smrgfi 51089d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 51099d794632Smrg conftest$ac_exeext conftest.$ac_ext 51109d794632Smrgfi 51119d794632Smrg 51129d794632Smrg 51139d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51149d794632Smrg 51159d794632Smrg eval supported=\$$cacheid 51169d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51179d794632Smrg$as_echo "$supported" >&6; } 51189d794632Smrg if test "$supported" = "yes" ; then 51199d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 51209d794632Smrg found="yes" 51219d794632Smrg fi 51229d794632Smrg fi 51239d794632Smrg 51249d794632Smrg if test $found = "no" ; then 51259d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 51269d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51279d794632Smrg fi 51289d794632Smrg 51299d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 51309d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 51319d794632Smrg fi 51329d794632Smrg 51339d794632Smrg CFLAGS="$CFLAGS -Wformat" 51349d794632Smrg 51359d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 51369d794632Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; } 51379d794632Smrg cacheid=xorg_cv_cc_flag__Wformat 51389d794632Smrg if eval \${$cacheid+:} false; then : 51399d794632Smrg $as_echo_n "(cached) " >&6 51409d794632Smrgelse 51419d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51429d794632Smrg/* end confdefs.h. */ 51439d794632Smrgint i; 51449d794632Smrgint 51459d794632Smrgmain () 51469d794632Smrg{ 51479d794632Smrg 51489d794632Smrg ; 51499d794632Smrg return 0; 51509d794632Smrg} 51519d794632Smrg_ACEOF 51529d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 51539d794632Smrg eval $cacheid=yes 51549d794632Smrgelse 51559d794632Smrg eval $cacheid=no 51569d794632Smrgfi 51579d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 51589d794632Smrg conftest$ac_exeext conftest.$ac_ext 51599d794632Smrgfi 51609d794632Smrg 51619d794632Smrg 51629d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 51639d794632Smrg 51649d794632Smrg eval supported=\$$cacheid 51659d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51669d794632Smrg$as_echo "$supported" >&6; } 51679d794632Smrg if test "$supported" = "yes" ; then 51689d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 51699d794632Smrg found="yes" 51709d794632Smrg fi 51719d794632Smrg fi 51729d794632Smrg 51739d794632Smrg 51749d794632Smrg 51759d794632Smrg 51769d794632Smrg 51779d794632Smrg 51789d794632Smrg 51799d794632Smrg 51809d794632Smrg 51819d794632Smrg 51829d794632Smrg 51839d794632Smrg 51849d794632Smrg 51859d794632Smrg 51869d794632Smrg 51879d794632Smrg 51889d794632Smrg 51899d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 51909d794632Smrg 51919d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 51929d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51939d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 51949d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 51959d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 51969d794632Smrg $as_echo_n "(cached) " >&6 51979d794632Smrgelse 51989d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51999d794632Smrg/* end confdefs.h. */ 52009d794632Smrgint i; 52019d794632Smrg_ACEOF 52029d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 52039d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 52049d794632Smrgelse 52059d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 52069d794632Smrgfi 52079d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52089d794632Smrgfi 52099d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 52109d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 52119d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 52129d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52139d794632Smrgfi 52149d794632Smrg 52159d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 52169d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 52179d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52189d794632Smrg fi 52199d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52209d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 52219d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 52229d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 52239d794632Smrg $as_echo_n "(cached) " >&6 52249d794632Smrgelse 52259d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52269d794632Smrg/* end confdefs.h. */ 52279d794632Smrgint i; 52289d794632Smrg_ACEOF 52299d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 52309d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 52319d794632Smrgelse 52329d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 52339d794632Smrgfi 52349d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52359d794632Smrgfi 52369d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 52379d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 52389d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 52399d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52409d794632Smrgfi 52419d794632Smrg 52429d794632Smrgfound="no" 52439d794632Smrg 52449d794632Smrg if test $found = "no" ; then 52459d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 52469d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52479d794632Smrg fi 52489d794632Smrg 52499d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 52509d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52519d794632Smrg fi 52529d794632Smrg 52539d794632Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 52549d794632Smrg 52559d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 52569d794632Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 52579d794632Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 52589d794632Smrg if eval \${$cacheid+:} false; then : 52599d794632Smrg $as_echo_n "(cached) " >&6 52609d794632Smrgelse 52619d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52629d794632Smrg/* end confdefs.h. */ 52639d794632Smrgint i; 52649d794632Smrgint 52659d794632Smrgmain () 52669d794632Smrg{ 52679d794632Smrg 52689d794632Smrg ; 52699d794632Smrg return 0; 52709d794632Smrg} 52719d794632Smrg_ACEOF 52729d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 52739d794632Smrg eval $cacheid=yes 52749d794632Smrgelse 52759d794632Smrg eval $cacheid=no 52769d794632Smrgfi 52779d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 52789d794632Smrg conftest$ac_exeext conftest.$ac_ext 52799d794632Smrgfi 52809d794632Smrg 52819d794632Smrg 52829d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52839d794632Smrg 52849d794632Smrg eval supported=\$$cacheid 52859d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52869d794632Smrg$as_echo "$supported" >&6; } 52879d794632Smrg if test "$supported" = "yes" ; then 52889d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 52899d794632Smrg found="yes" 52909d794632Smrg fi 52919d794632Smrg fi 52929d794632Smrg 52939d794632Smrg 52949d794632Smrg 52959d794632Smrg 52969d794632Smrg 52979d794632Smrg 52989d794632Smrg 52999d794632Smrg 53009d794632Smrg 53019d794632Smrg 53029d794632Smrg 53039d794632Smrg 53049d794632Smrg 53059d794632Smrg 53069d794632Smrg 53079d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 53089d794632Smrg 53099d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 53109d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53119d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 53129d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 53139d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 53149d794632Smrg $as_echo_n "(cached) " >&6 53159d794632Smrgelse 53169d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53179d794632Smrg/* end confdefs.h. */ 53189d794632Smrgint i; 53199d794632Smrg_ACEOF 53209d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 53219d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 53229d794632Smrgelse 53239d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 53249d794632Smrgfi 53259d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53269d794632Smrgfi 53279d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 53289d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 53299d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 53309d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53319d794632Smrgfi 53329d794632Smrg 53339d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 53349d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 53359d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53369d794632Smrg fi 53379d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53389d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 53399d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 53409d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 53419d794632Smrg $as_echo_n "(cached) " >&6 53429d794632Smrgelse 53439d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53449d794632Smrg/* end confdefs.h. */ 53459d794632Smrgint i; 53469d794632Smrg_ACEOF 53479d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 53489d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 53499d794632Smrgelse 53509d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 53519d794632Smrgfi 53529d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53539d794632Smrgfi 53549d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 53559d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 53569d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 53579d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 53589d794632Smrgfi 53599d794632Smrg 53609d794632Smrgfound="no" 53619d794632Smrg 53629d794632Smrg if test $found = "no" ; then 53639d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 53649d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53659d794632Smrg fi 53669d794632Smrg 53679d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 53689d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53699d794632Smrg fi 53709d794632Smrg 53719d794632Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 53729d794632Smrg 53739d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 53749d794632Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 53759d794632Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 53769d794632Smrg if eval \${$cacheid+:} false; then : 53779d794632Smrg $as_echo_n "(cached) " >&6 53789d794632Smrgelse 53799d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53809d794632Smrg/* end confdefs.h. */ 53819d794632Smrgint i; 53829d794632Smrgint 53839d794632Smrgmain () 53849d794632Smrg{ 53859d794632Smrg 53869d794632Smrg ; 53879d794632Smrg return 0; 53889d794632Smrg} 53899d794632Smrg_ACEOF 53909d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 53919d794632Smrg eval $cacheid=yes 53929d794632Smrgelse 53939d794632Smrg eval $cacheid=no 53949d794632Smrgfi 53959d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 53969d794632Smrg conftest$ac_exeext conftest.$ac_ext 53979d794632Smrgfi 53989d794632Smrg 53999d794632Smrg 54009d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54019d794632Smrg 54029d794632Smrg eval supported=\$$cacheid 54039d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 54049d794632Smrg$as_echo "$supported" >&6; } 54059d794632Smrg if test "$supported" = "yes" ; then 54069d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 54079d794632Smrg found="yes" 54089d794632Smrg fi 54099d794632Smrg fi 54109d794632Smrg 54119d794632Smrg 54129d794632Smrg 54139d794632Smrg 54149d794632Smrg 54159d794632Smrg 54169d794632Smrg 54179d794632Smrg 54189d794632Smrg 54199d794632Smrg 54209d794632Smrg 54219d794632Smrg 54229d794632Smrg 54239d794632Smrg 54249d794632Smrg 54259d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 54269d794632Smrg 54279d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 54289d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54299d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 54309d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 54319d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 54329d794632Smrg $as_echo_n "(cached) " >&6 54339d794632Smrgelse 54349d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54359d794632Smrg/* end confdefs.h. */ 54369d794632Smrgint i; 54379d794632Smrg_ACEOF 54389d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 54399d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 54409d794632Smrgelse 54419d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 54429d794632Smrgfi 54439d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54449d794632Smrgfi 54459d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 54469d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 54479d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 54489d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54499d794632Smrgfi 54509d794632Smrg 54519d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 54529d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 54539d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54549d794632Smrg fi 54559d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54569d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 54579d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 54589d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 54599d794632Smrg $as_echo_n "(cached) " >&6 54609d794632Smrgelse 54619d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54629d794632Smrg/* end confdefs.h. */ 54639d794632Smrgint i; 54649d794632Smrg_ACEOF 54659d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 54669d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 54679d794632Smrgelse 54689d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 54699d794632Smrgfi 54709d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54719d794632Smrgfi 54729d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 54739d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 54749d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 54759d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 54769d794632Smrgfi 54779d794632Smrg 54789d794632Smrgfound="no" 54799d794632Smrg 54809d794632Smrg if test $found = "no" ; then 54819d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 54829d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54839d794632Smrg fi 54849d794632Smrg 54859d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 54869d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54879d794632Smrg fi 54889d794632Smrg 54899d794632Smrg CFLAGS="$CFLAGS -Wnested-externs" 54909d794632Smrg 54919d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 54929d794632Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 54939d794632Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 54949d794632Smrg if eval \${$cacheid+:} false; then : 54959d794632Smrg $as_echo_n "(cached) " >&6 54969d794632Smrgelse 54979d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54989d794632Smrg/* end confdefs.h. */ 54999d794632Smrgint i; 55009d794632Smrgint 55019d794632Smrgmain () 55029d794632Smrg{ 55039d794632Smrg 55049d794632Smrg ; 55059d794632Smrg return 0; 55069d794632Smrg} 55079d794632Smrg_ACEOF 55089d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 55099d794632Smrg eval $cacheid=yes 55109d794632Smrgelse 55119d794632Smrg eval $cacheid=no 55129d794632Smrgfi 55139d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 55149d794632Smrg conftest$ac_exeext conftest.$ac_ext 55159d794632Smrgfi 55169d794632Smrg 55179d794632Smrg 55189d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55199d794632Smrg 55209d794632Smrg eval supported=\$$cacheid 55219d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55229d794632Smrg$as_echo "$supported" >&6; } 55239d794632Smrg if test "$supported" = "yes" ; then 55249d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 55259d794632Smrg found="yes" 55269d794632Smrg fi 55279d794632Smrg fi 55289d794632Smrg 55299d794632Smrg 55309d794632Smrg 55319d794632Smrg 55329d794632Smrg 55339d794632Smrg 55349d794632Smrg 55359d794632Smrg 55369d794632Smrg 55379d794632Smrg 55389d794632Smrg 55399d794632Smrg 55409d794632Smrg 55419d794632Smrg 55429d794632Smrg 55439d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 55449d794632Smrg 55459d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 55469d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55479d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 55489d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 55499d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 55509d794632Smrg $as_echo_n "(cached) " >&6 55519d794632Smrgelse 55529d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55539d794632Smrg/* end confdefs.h. */ 55549d794632Smrgint i; 55559d794632Smrg_ACEOF 55569d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 55579d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 55589d794632Smrgelse 55599d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 55609d794632Smrgfi 55619d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55629d794632Smrgfi 55639d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 55649d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 55659d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 55669d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55679d794632Smrgfi 55689d794632Smrg 55699d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 55709d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 55719d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55729d794632Smrg fi 55739d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55749d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 55759d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 55769d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 55779d794632Smrg $as_echo_n "(cached) " >&6 55789d794632Smrgelse 55799d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55809d794632Smrg/* end confdefs.h. */ 55819d794632Smrgint i; 55829d794632Smrg_ACEOF 55839d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 55849d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 55859d794632Smrgelse 55869d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 55879d794632Smrgfi 55889d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55899d794632Smrgfi 55909d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 55919d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 55929d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 55939d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 55949d794632Smrgfi 55959d794632Smrg 55969d794632Smrgfound="no" 55979d794632Smrg 55989d794632Smrg if test $found = "no" ; then 55999d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 56009d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56019d794632Smrg fi 56029d794632Smrg 56039d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 56049d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56059d794632Smrg fi 56069d794632Smrg 56079d794632Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 56089d794632Smrg 56099d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 56109d794632Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 56119d794632Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 56129d794632Smrg if eval \${$cacheid+:} false; then : 56139d794632Smrg $as_echo_n "(cached) " >&6 56149d794632Smrgelse 56159d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56169d794632Smrg/* end confdefs.h. */ 56179d794632Smrgint i; 56189d794632Smrgint 56199d794632Smrgmain () 56209d794632Smrg{ 56219d794632Smrg 56229d794632Smrg ; 56239d794632Smrg return 0; 56249d794632Smrg} 56259d794632Smrg_ACEOF 56269d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 56279d794632Smrg eval $cacheid=yes 56289d794632Smrgelse 56299d794632Smrg eval $cacheid=no 56309d794632Smrgfi 56319d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 56329d794632Smrg conftest$ac_exeext conftest.$ac_ext 56339d794632Smrgfi 56349d794632Smrg 56359d794632Smrg 56369d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56379d794632Smrg 56389d794632Smrg eval supported=\$$cacheid 56399d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 56409d794632Smrg$as_echo "$supported" >&6; } 56419d794632Smrg if test "$supported" = "yes" ; then 56429d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 56439d794632Smrg found="yes" 56449d794632Smrg fi 56459d794632Smrg fi 56469d794632Smrg 56479d794632Smrg 56489d794632Smrg 56499d794632Smrg 56509d794632Smrg 56519d794632Smrg 56529d794632Smrg 56539d794632Smrg 56549d794632Smrg 56559d794632Smrg 56569d794632Smrg 56579d794632Smrg 56589d794632Smrg 56599d794632Smrg 56609d794632Smrg 56619d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 56629d794632Smrg 56639d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 56649d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56659d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 56669d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 56679d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 56689d794632Smrg $as_echo_n "(cached) " >&6 56699d794632Smrgelse 56709d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56719d794632Smrg/* end confdefs.h. */ 56729d794632Smrgint i; 56739d794632Smrg_ACEOF 56749d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 56759d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 56769d794632Smrgelse 56779d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 56789d794632Smrgfi 56799d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56809d794632Smrgfi 56819d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 56829d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 56839d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 56849d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 56859d794632Smrgfi 56869d794632Smrg 56879d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 56889d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 56899d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56909d794632Smrg fi 56919d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 56929d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 56939d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 56949d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 56959d794632Smrg $as_echo_n "(cached) " >&6 56969d794632Smrgelse 56979d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56989d794632Smrg/* end confdefs.h. */ 56999d794632Smrgint i; 57009d794632Smrg_ACEOF 57019d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 57029d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 57039d794632Smrgelse 57049d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 57059d794632Smrgfi 57069d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57079d794632Smrgfi 57089d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 57099d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 57109d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 57119d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57129d794632Smrgfi 57139d794632Smrg 57149d794632Smrgfound="no" 57159d794632Smrg 57169d794632Smrg if test $found = "no" ; then 57179d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 57189d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57199d794632Smrg fi 57209d794632Smrg 57219d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 57229d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57239d794632Smrg fi 57249d794632Smrg 57259d794632Smrg CFLAGS="$CFLAGS -Wold-style-definition" 57269d794632Smrg 57279d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 57289d794632Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 57299d794632Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 57309d794632Smrg if eval \${$cacheid+:} false; then : 57319d794632Smrg $as_echo_n "(cached) " >&6 57329d794632Smrgelse 57339d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57349d794632Smrg/* end confdefs.h. */ 57359d794632Smrgint i; 57369d794632Smrgint 57379d794632Smrgmain () 57389d794632Smrg{ 57399d794632Smrg 57409d794632Smrg ; 57419d794632Smrg return 0; 57429d794632Smrg} 57439d794632Smrg_ACEOF 57449d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 57459d794632Smrg eval $cacheid=yes 57469d794632Smrgelse 57479d794632Smrg eval $cacheid=no 57489d794632Smrgfi 57499d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 57509d794632Smrg conftest$ac_exeext conftest.$ac_ext 57519d794632Smrgfi 57529d794632Smrg 57539d794632Smrg 57549d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 57559d794632Smrg 57569d794632Smrg eval supported=\$$cacheid 57579d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 57589d794632Smrg$as_echo "$supported" >&6; } 57599d794632Smrg if test "$supported" = "yes" ; then 57609d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 57619d794632Smrg found="yes" 57629d794632Smrg fi 57639d794632Smrg fi 57649d794632Smrg 57659d794632Smrg 57669d794632Smrg 57679d794632Smrg 57689d794632Smrg 57699d794632Smrg 57709d794632Smrg 57719d794632Smrg 57729d794632Smrg 57739d794632Smrg 57749d794632Smrg 57759d794632Smrg 57769d794632Smrg 57779d794632Smrg 57789d794632Smrg 57799d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 57809d794632Smrg 57819d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 57829d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57839d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 57849d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 57859d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 57869d794632Smrg $as_echo_n "(cached) " >&6 57879d794632Smrgelse 57889d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57899d794632Smrg/* end confdefs.h. */ 57909d794632Smrgint i; 57919d794632Smrg_ACEOF 57929d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 57939d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 57949d794632Smrgelse 57959d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 57969d794632Smrgfi 57979d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57989d794632Smrgfi 57999d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 58009d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 58019d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 58029d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58039d794632Smrgfi 58049d794632Smrg 58059d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 58069d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 58079d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58089d794632Smrg fi 58099d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58109d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 58119d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 58129d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 58139d794632Smrg $as_echo_n "(cached) " >&6 58149d794632Smrgelse 58159d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58169d794632Smrg/* end confdefs.h. */ 58179d794632Smrgint i; 58189d794632Smrg_ACEOF 58199d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 58209d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 58219d794632Smrgelse 58229d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 58239d794632Smrgfi 58249d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58259d794632Smrgfi 58269d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 58279d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 58289d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 58299d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58309d794632Smrgfi 58319d794632Smrg 58329d794632Smrgfound="no" 58339d794632Smrg 58349d794632Smrg if test $found = "no" ; then 58359d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 58369d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58379d794632Smrg fi 58389d794632Smrg 58399d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 58409d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58419d794632Smrg fi 58429d794632Smrg 58439d794632Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 58449d794632Smrg 58459d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 58469d794632Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 58479d794632Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 58489d794632Smrg if eval \${$cacheid+:} false; then : 58499d794632Smrg $as_echo_n "(cached) " >&6 58509d794632Smrgelse 58519d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58529d794632Smrg/* end confdefs.h. */ 58539d794632Smrgint i; 58549d794632Smrgint 58559d794632Smrgmain () 58569d794632Smrg{ 58579d794632Smrg 58589d794632Smrg ; 58599d794632Smrg return 0; 58609d794632Smrg} 58619d794632Smrg_ACEOF 58629d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 58639d794632Smrg eval $cacheid=yes 58649d794632Smrgelse 58659d794632Smrg eval $cacheid=no 58669d794632Smrgfi 58679d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 58689d794632Smrg conftest$ac_exeext conftest.$ac_ext 58699d794632Smrgfi 58709d794632Smrg 58719d794632Smrg 58729d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 58739d794632Smrg 58749d794632Smrg eval supported=\$$cacheid 58759d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 58769d794632Smrg$as_echo "$supported" >&6; } 58779d794632Smrg if test "$supported" = "yes" ; then 58789d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 58799d794632Smrg found="yes" 58809d794632Smrg fi 58819d794632Smrg fi 58829d794632Smrg 58839d794632Smrg 58849d794632Smrg 58859d794632Smrg 58869d794632Smrg 58879d794632Smrg# This chunk adds additional warnings that could catch undesired effects. 58889d794632Smrg 58899d794632Smrg 58909d794632Smrg 58919d794632Smrg 58929d794632Smrg 58939d794632Smrg 58949d794632Smrg 58959d794632Smrg 58969d794632Smrg 58979d794632Smrg 58989d794632Smrg 58999d794632Smrg 59009d794632Smrg 59019d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 59029d794632Smrg 59039d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 59049d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59059d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 59069d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 59079d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 59089d794632Smrg $as_echo_n "(cached) " >&6 59099d794632Smrgelse 59109d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59119d794632Smrg/* end confdefs.h. */ 59129d794632Smrgint i; 59139d794632Smrg_ACEOF 59149d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 59159d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 59169d794632Smrgelse 59179d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 59189d794632Smrgfi 59199d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59209d794632Smrgfi 59219d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 59229d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 59239d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 59249d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59259d794632Smrgfi 59269d794632Smrg 59279d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 59289d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 59299d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59309d794632Smrg fi 59319d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59329d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 59339d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 59349d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 59359d794632Smrg $as_echo_n "(cached) " >&6 59369d794632Smrgelse 59379d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59389d794632Smrg/* end confdefs.h. */ 59399d794632Smrgint i; 59409d794632Smrg_ACEOF 59419d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 59429d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 59439d794632Smrgelse 59449d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 59459d794632Smrgfi 59469d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59479d794632Smrgfi 59489d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 59499d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 59509d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 59519d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59529d794632Smrgfi 59539d794632Smrg 59549d794632Smrgfound="no" 59559d794632Smrg 59569d794632Smrg if test $found = "no" ; then 59579d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 59589d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59599d794632Smrg fi 59609d794632Smrg 59619d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 59629d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59639d794632Smrg fi 59649d794632Smrg 59659d794632Smrg CFLAGS="$CFLAGS -Wunused" 59669d794632Smrg 59679d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 59689d794632Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; } 59699d794632Smrg cacheid=xorg_cv_cc_flag__Wunused 59709d794632Smrg if eval \${$cacheid+:} false; then : 59719d794632Smrg $as_echo_n "(cached) " >&6 59729d794632Smrgelse 59739d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59749d794632Smrg/* end confdefs.h. */ 59759d794632Smrgint i; 59769d794632Smrgint 59779d794632Smrgmain () 59789d794632Smrg{ 59799d794632Smrg 59809d794632Smrg ; 59819d794632Smrg return 0; 59829d794632Smrg} 59839d794632Smrg_ACEOF 59849d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 59859d794632Smrg eval $cacheid=yes 59869d794632Smrgelse 59879d794632Smrg eval $cacheid=no 59889d794632Smrgfi 59899d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 59909d794632Smrg conftest$ac_exeext conftest.$ac_ext 59919d794632Smrgfi 59929d794632Smrg 59939d794632Smrg 59949d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59959d794632Smrg 59969d794632Smrg eval supported=\$$cacheid 59979d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 59989d794632Smrg$as_echo "$supported" >&6; } 59999d794632Smrg if test "$supported" = "yes" ; then 60009d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 60019d794632Smrg found="yes" 60029d794632Smrg fi 60039d794632Smrg fi 60049d794632Smrg 60059d794632Smrg 60069d794632Smrg 60079d794632Smrg 60089d794632Smrg 60099d794632Smrg 60109d794632Smrg 60119d794632Smrg 60129d794632Smrg 60139d794632Smrg 60149d794632Smrg 60159d794632Smrg 60169d794632Smrg 60179d794632Smrg 60189d794632Smrg 60199d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 60209d794632Smrg 60219d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 60229d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60239d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 60249d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 60259d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 60269d794632Smrg $as_echo_n "(cached) " >&6 60279d794632Smrgelse 60289d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60299d794632Smrg/* end confdefs.h. */ 60309d794632Smrgint i; 60319d794632Smrg_ACEOF 60329d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 60339d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 60349d794632Smrgelse 60359d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 60369d794632Smrgfi 60379d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 60389d794632Smrgfi 60399d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 60409d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 60419d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 60429d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60439d794632Smrgfi 60449d794632Smrg 60459d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 60469d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 60479d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60489d794632Smrg fi 60499d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60509d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 60519d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 60529d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 60539d794632Smrg $as_echo_n "(cached) " >&6 60549d794632Smrgelse 60559d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60569d794632Smrg/* end confdefs.h. */ 60579d794632Smrgint i; 60589d794632Smrg_ACEOF 60599d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 60609d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 60619d794632Smrgelse 60629d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 60639d794632Smrgfi 60649d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 60659d794632Smrgfi 60669d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 60679d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 60689d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 60699d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 60709d794632Smrgfi 60719d794632Smrg 60729d794632Smrgfound="no" 60739d794632Smrg 60749d794632Smrg if test $found = "no" ; then 60759d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 60769d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60779d794632Smrg fi 60789d794632Smrg 60799d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 60809d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 60819d794632Smrg fi 60829d794632Smrg 60839d794632Smrg CFLAGS="$CFLAGS -Wuninitialized" 60849d794632Smrg 60859d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 60869d794632Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 60879d794632Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 60889d794632Smrg if eval \${$cacheid+:} false; then : 60899d794632Smrg $as_echo_n "(cached) " >&6 60909d794632Smrgelse 60919d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 60929d794632Smrg/* end confdefs.h. */ 60939d794632Smrgint i; 60949d794632Smrgint 60959d794632Smrgmain () 60969d794632Smrg{ 60979d794632Smrg 60989d794632Smrg ; 60999d794632Smrg return 0; 61009d794632Smrg} 61019d794632Smrg_ACEOF 61029d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 61039d794632Smrg eval $cacheid=yes 61049d794632Smrgelse 61059d794632Smrg eval $cacheid=no 61069d794632Smrgfi 61079d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 61089d794632Smrg conftest$ac_exeext conftest.$ac_ext 61099d794632Smrgfi 61109d794632Smrg 61119d794632Smrg 61129d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61139d794632Smrg 61149d794632Smrg eval supported=\$$cacheid 61159d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 61169d794632Smrg$as_echo "$supported" >&6; } 61179d794632Smrg if test "$supported" = "yes" ; then 61189d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 61199d794632Smrg found="yes" 61209d794632Smrg fi 61219d794632Smrg fi 61229d794632Smrg 61239d794632Smrg 61249d794632Smrg 61259d794632Smrg 61269d794632Smrg 61279d794632Smrg 61289d794632Smrg 61299d794632Smrg 61309d794632Smrg 61319d794632Smrg 61329d794632Smrg 61339d794632Smrg 61349d794632Smrg 61359d794632Smrg 61369d794632Smrg 61379d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 61389d794632Smrg 61399d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 61409d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61419d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 61429d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 61439d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 61449d794632Smrg $as_echo_n "(cached) " >&6 61459d794632Smrgelse 61469d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61479d794632Smrg/* end confdefs.h. */ 61489d794632Smrgint i; 61499d794632Smrg_ACEOF 61509d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 61519d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 61529d794632Smrgelse 61539d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 61549d794632Smrgfi 61559d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 61569d794632Smrgfi 61579d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 61589d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 61599d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 61609d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61619d794632Smrgfi 61629d794632Smrg 61639d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 61649d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 61659d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61669d794632Smrg fi 61679d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61689d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 61699d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 61709d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 61719d794632Smrg $as_echo_n "(cached) " >&6 61729d794632Smrgelse 61739d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 61749d794632Smrg/* end confdefs.h. */ 61759d794632Smrgint i; 61769d794632Smrg_ACEOF 61779d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 61789d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 61799d794632Smrgelse 61809d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 61819d794632Smrgfi 61829d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 61839d794632Smrgfi 61849d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 61859d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 61869d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 61879d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 61889d794632Smrgfi 61899d794632Smrg 61909d794632Smrgfound="no" 61919d794632Smrg 61929d794632Smrg if test $found = "no" ; then 61939d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 61949d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 61959d794632Smrg fi 61969d794632Smrg 61979d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 61989d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61999d794632Smrg fi 62009d794632Smrg 62019d794632Smrg CFLAGS="$CFLAGS -Wshadow" 62029d794632Smrg 62039d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 62049d794632Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 62059d794632Smrg cacheid=xorg_cv_cc_flag__Wshadow 62069d794632Smrg if eval \${$cacheid+:} false; then : 62079d794632Smrg $as_echo_n "(cached) " >&6 62089d794632Smrgelse 62099d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62109d794632Smrg/* end confdefs.h. */ 62119d794632Smrgint i; 62129d794632Smrgint 62139d794632Smrgmain () 62149d794632Smrg{ 62159d794632Smrg 62169d794632Smrg ; 62179d794632Smrg return 0; 62189d794632Smrg} 62199d794632Smrg_ACEOF 62209d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 62219d794632Smrg eval $cacheid=yes 62229d794632Smrgelse 62239d794632Smrg eval $cacheid=no 62249d794632Smrgfi 62259d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 62269d794632Smrg conftest$ac_exeext conftest.$ac_ext 62279d794632Smrgfi 62289d794632Smrg 62299d794632Smrg 62309d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62319d794632Smrg 62329d794632Smrg eval supported=\$$cacheid 62339d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62349d794632Smrg$as_echo "$supported" >&6; } 62359d794632Smrg if test "$supported" = "yes" ; then 62369d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 62379d794632Smrg found="yes" 62389d794632Smrg fi 62399d794632Smrg fi 62409d794632Smrg 62419d794632Smrg 62429d794632Smrg 62439d794632Smrg 62449d794632Smrg 62459d794632Smrg 62469d794632Smrg 62479d794632Smrg 62489d794632Smrg 62499d794632Smrg 62509d794632Smrg 62519d794632Smrg 62529d794632Smrg 62539d794632Smrg 62549d794632Smrg 62559d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 62569d794632Smrg 62579d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 62589d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62599d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 62609d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 62619d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 62629d794632Smrg $as_echo_n "(cached) " >&6 62639d794632Smrgelse 62649d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62659d794632Smrg/* end confdefs.h. */ 62669d794632Smrgint i; 62679d794632Smrg_ACEOF 62689d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 62699d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 62709d794632Smrgelse 62719d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 62729d794632Smrgfi 62739d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62749d794632Smrgfi 62759d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 62769d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 62779d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 62789d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 62799d794632Smrgfi 62809d794632Smrg 62819d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 62829d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 62839d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62849d794632Smrg fi 62859d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62869d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 62879d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 62889d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 62899d794632Smrg $as_echo_n "(cached) " >&6 62909d794632Smrgelse 62919d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62929d794632Smrg/* end confdefs.h. */ 62939d794632Smrgint i; 62949d794632Smrg_ACEOF 62959d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 62969d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 62979d794632Smrgelse 62989d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 62999d794632Smrgfi 63009d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 63019d794632Smrgfi 63029d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 63039d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 63049d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 63059d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63069d794632Smrgfi 63079d794632Smrg 63089d794632Smrgfound="no" 63099d794632Smrg 63109d794632Smrg if test $found = "no" ; then 63119d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 63129d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63139d794632Smrg fi 63149d794632Smrg 63159d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 63169d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63179d794632Smrg fi 63189d794632Smrg 63199d794632Smrg CFLAGS="$CFLAGS -Wcast-qual" 63209d794632Smrg 63219d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 63229d794632Smrg$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 63239d794632Smrg cacheid=xorg_cv_cc_flag__Wcast_qual 63249d794632Smrg if eval \${$cacheid+:} false; then : 63259d794632Smrg $as_echo_n "(cached) " >&6 63269d794632Smrgelse 63279d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63289d794632Smrg/* end confdefs.h. */ 63299d794632Smrgint i; 63309d794632Smrgint 63319d794632Smrgmain () 63329d794632Smrg{ 63339d794632Smrg 63349d794632Smrg ; 63359d794632Smrg return 0; 63369d794632Smrg} 63379d794632Smrg_ACEOF 63389d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 63399d794632Smrg eval $cacheid=yes 63409d794632Smrgelse 63419d794632Smrg eval $cacheid=no 63429d794632Smrgfi 63439d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 63449d794632Smrg conftest$ac_exeext conftest.$ac_ext 63459d794632Smrgfi 63469d794632Smrg 63479d794632Smrg 63489d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63499d794632Smrg 63509d794632Smrg eval supported=\$$cacheid 63519d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 63529d794632Smrg$as_echo "$supported" >&6; } 63539d794632Smrg if test "$supported" = "yes" ; then 63549d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 63559d794632Smrg found="yes" 63569d794632Smrg fi 63579d794632Smrg fi 63589d794632Smrg 63599d794632Smrg 63609d794632Smrg 63619d794632Smrg 63629d794632Smrg 63639d794632Smrg 63649d794632Smrg 63659d794632Smrg 63669d794632Smrg 63679d794632Smrg 63689d794632Smrg 63699d794632Smrg 63709d794632Smrg 63719d794632Smrg 63729d794632Smrg 63739d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 63749d794632Smrg 63759d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 63769d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63779d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 63789d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 63799d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 63809d794632Smrg $as_echo_n "(cached) " >&6 63819d794632Smrgelse 63829d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63839d794632Smrg/* end confdefs.h. */ 63849d794632Smrgint i; 63859d794632Smrg_ACEOF 63869d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 63879d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 63889d794632Smrgelse 63899d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 63909d794632Smrgfi 63919d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 63929d794632Smrgfi 63939d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 63949d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 63959d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 63969d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 63979d794632Smrgfi 63989d794632Smrg 63999d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 64009d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 64019d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64029d794632Smrg fi 64039d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64049d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 64059d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 64069d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 64079d794632Smrg $as_echo_n "(cached) " >&6 64089d794632Smrgelse 64099d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64109d794632Smrg/* end confdefs.h. */ 64119d794632Smrgint i; 64129d794632Smrg_ACEOF 64139d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 64149d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 64159d794632Smrgelse 64169d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 64179d794632Smrgfi 64189d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 64199d794632Smrgfi 64209d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 64219d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 64229d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 64239d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64249d794632Smrgfi 64259d794632Smrg 64269d794632Smrgfound="no" 64279d794632Smrg 64289d794632Smrg if test $found = "no" ; then 64299d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 64309d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64319d794632Smrg fi 64329d794632Smrg 64339d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 64349d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64359d794632Smrg fi 64369d794632Smrg 64379d794632Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 64389d794632Smrg 64399d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 64409d794632Smrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 64419d794632Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 64429d794632Smrg if eval \${$cacheid+:} false; then : 64439d794632Smrg $as_echo_n "(cached) " >&6 64449d794632Smrgelse 64459d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64469d794632Smrg/* end confdefs.h. */ 64479d794632Smrgint i; 64489d794632Smrgint 64499d794632Smrgmain () 64509d794632Smrg{ 64519d794632Smrg 64529d794632Smrg ; 64539d794632Smrg return 0; 64549d794632Smrg} 64559d794632Smrg_ACEOF 64569d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 64579d794632Smrg eval $cacheid=yes 64589d794632Smrgelse 64599d794632Smrg eval $cacheid=no 64609d794632Smrgfi 64619d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 64629d794632Smrg conftest$ac_exeext conftest.$ac_ext 64639d794632Smrgfi 64649d794632Smrg 64659d794632Smrg 64669d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 64679d794632Smrg 64689d794632Smrg eval supported=\$$cacheid 64699d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 64709d794632Smrg$as_echo "$supported" >&6; } 64719d794632Smrg if test "$supported" = "yes" ; then 64729d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 64739d794632Smrg found="yes" 64749d794632Smrg fi 64759d794632Smrg fi 64769d794632Smrg 64779d794632Smrg 64789d794632Smrg 64799d794632Smrg 64809d794632Smrg 64819d794632Smrg 64829d794632Smrg 64839d794632Smrg 64849d794632Smrg 64859d794632Smrg 64869d794632Smrg 64879d794632Smrg 64889d794632Smrg 64899d794632Smrg 64909d794632Smrg 64919d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 64929d794632Smrg 64939d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 64949d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64959d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 64969d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 64979d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 64989d794632Smrg $as_echo_n "(cached) " >&6 64999d794632Smrgelse 65009d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65019d794632Smrg/* end confdefs.h. */ 65029d794632Smrgint i; 65039d794632Smrg_ACEOF 65049d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 65059d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 65069d794632Smrgelse 65079d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 65089d794632Smrgfi 65099d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65109d794632Smrgfi 65119d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 65129d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 65139d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 65149d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65159d794632Smrgfi 65169d794632Smrg 65179d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 65189d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 65199d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65209d794632Smrg fi 65219d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65229d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 65239d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 65249d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 65259d794632Smrg $as_echo_n "(cached) " >&6 65269d794632Smrgelse 65279d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65289d794632Smrg/* end confdefs.h. */ 65299d794632Smrgint i; 65309d794632Smrg_ACEOF 65319d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 65329d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 65339d794632Smrgelse 65349d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 65359d794632Smrgfi 65369d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65379d794632Smrgfi 65389d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 65399d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 65409d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 65419d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65429d794632Smrgfi 65439d794632Smrg 65449d794632Smrgfound="no" 65459d794632Smrg 65469d794632Smrg if test $found = "no" ; then 65479d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 65489d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65499d794632Smrg fi 65509d794632Smrg 65519d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 65529d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65539d794632Smrg fi 65549d794632Smrg 65559d794632Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 65569d794632Smrg 65579d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 65589d794632Smrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 65599d794632Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 65609d794632Smrg if eval \${$cacheid+:} false; then : 65619d794632Smrg $as_echo_n "(cached) " >&6 65629d794632Smrgelse 65639d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65649d794632Smrg/* end confdefs.h. */ 65659d794632Smrgint i; 65669d794632Smrgint 65679d794632Smrgmain () 65689d794632Smrg{ 65699d794632Smrg 65709d794632Smrg ; 65719d794632Smrg return 0; 65729d794632Smrg} 65739d794632Smrg_ACEOF 65749d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 65759d794632Smrg eval $cacheid=yes 65769d794632Smrgelse 65779d794632Smrg eval $cacheid=no 65789d794632Smrgfi 65799d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 65809d794632Smrg conftest$ac_exeext conftest.$ac_ext 65819d794632Smrgfi 65829d794632Smrg 65839d794632Smrg 65849d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 65859d794632Smrg 65869d794632Smrg eval supported=\$$cacheid 65879d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 65889d794632Smrg$as_echo "$supported" >&6; } 65899d794632Smrg if test "$supported" = "yes" ; then 65909d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 65919d794632Smrg found="yes" 65929d794632Smrg fi 65939d794632Smrg fi 65949d794632Smrg 65959d794632Smrg 65969d794632Smrg 65979d794632Smrg 65989d794632Smrg 65999d794632Smrg 66009d794632Smrg 66019d794632Smrg 66029d794632Smrg 66039d794632Smrg 66049d794632Smrg 66059d794632Smrg 66069d794632Smrg 66079d794632Smrg 66089d794632Smrg 66099d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 66109d794632Smrg 66119d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 66129d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66139d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 66149d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 66159d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 66169d794632Smrg $as_echo_n "(cached) " >&6 66179d794632Smrgelse 66189d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66199d794632Smrg/* end confdefs.h. */ 66209d794632Smrgint i; 66219d794632Smrg_ACEOF 66229d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 66239d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 66249d794632Smrgelse 66259d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 66269d794632Smrgfi 66279d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66289d794632Smrgfi 66299d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 66309d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 66319d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 66329d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66339d794632Smrgfi 66349d794632Smrg 66359d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 66369d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 66379d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66389d794632Smrg fi 66399d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66409d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 66419d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 66429d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 66439d794632Smrg $as_echo_n "(cached) " >&6 66449d794632Smrgelse 66459d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66469d794632Smrg/* end confdefs.h. */ 66479d794632Smrgint i; 66489d794632Smrg_ACEOF 66499d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 66509d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 66519d794632Smrgelse 66529d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 66539d794632Smrgfi 66549d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66559d794632Smrgfi 66569d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 66579d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 66589d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 66599d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 66609d794632Smrgfi 66619d794632Smrg 66629d794632Smrgfound="no" 66639d794632Smrg 66649d794632Smrg if test $found = "no" ; then 66659d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 66669d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66679d794632Smrg fi 66689d794632Smrg 66699d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 66709d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 66719d794632Smrg fi 66729d794632Smrg 66739d794632Smrg CFLAGS="$CFLAGS -Wredundant-decls" 66749d794632Smrg 66759d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 66769d794632Smrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 66779d794632Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 66789d794632Smrg if eval \${$cacheid+:} false; then : 66799d794632Smrg $as_echo_n "(cached) " >&6 66809d794632Smrgelse 66819d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66829d794632Smrg/* end confdefs.h. */ 66839d794632Smrgint i; 66849d794632Smrgint 66859d794632Smrgmain () 66869d794632Smrg{ 66879d794632Smrg 66889d794632Smrg ; 66899d794632Smrg return 0; 66909d794632Smrg} 66919d794632Smrg_ACEOF 66929d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 66939d794632Smrg eval $cacheid=yes 66949d794632Smrgelse 66959d794632Smrg eval $cacheid=no 66969d794632Smrgfi 66979d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 66989d794632Smrg conftest$ac_exeext conftest.$ac_ext 66999d794632Smrgfi 67009d794632Smrg 67019d794632Smrg 67029d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67039d794632Smrg 67049d794632Smrg eval supported=\$$cacheid 67059d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 67069d794632Smrg$as_echo "$supported" >&6; } 67079d794632Smrg if test "$supported" = "yes" ; then 67089d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 67099d794632Smrg found="yes" 67109d794632Smrg fi 67119d794632Smrg fi 67129d794632Smrg 67139d794632Smrg 67149d794632Smrg 67159d794632Smrg# These are currently disabled because they are noisy. They will be enabled 67169d794632Smrg# in the future once the codebase is sufficiently modernized to silence 67179d794632Smrg# them. For now, I don't want them to drown out the other warnings. 67189d794632Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 67199d794632Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 67209d794632Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 67219d794632Smrg 67229d794632Smrg# Turn some warnings into errors, so we don't accidently get successful builds 67239d794632Smrg# when there are problems that should be fixed. 67249d794632Smrg 67259d794632Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 67269d794632Smrg 67279d794632Smrg 67289d794632Smrg 67299d794632Smrg 67309d794632Smrg 67319d794632Smrg 67329d794632Smrg 67339d794632Smrg 67349d794632Smrg 67359d794632Smrg 67369d794632Smrg 67379d794632Smrg 67389d794632Smrg 67399d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 67409d794632Smrg 67419d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 67429d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67439d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 67449d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 67459d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 67469d794632Smrg $as_echo_n "(cached) " >&6 67479d794632Smrgelse 67489d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67499d794632Smrg/* end confdefs.h. */ 67509d794632Smrgint i; 67519d794632Smrg_ACEOF 67529d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 67539d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 67549d794632Smrgelse 67559d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 67569d794632Smrgfi 67579d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67589d794632Smrgfi 67599d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 67609d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 67619d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 67629d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67639d794632Smrgfi 67649d794632Smrg 67659d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 67669d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 67679d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67689d794632Smrg fi 67699d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67709d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 67719d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 67729d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 67739d794632Smrg $as_echo_n "(cached) " >&6 67749d794632Smrgelse 67759d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67769d794632Smrg/* end confdefs.h. */ 67779d794632Smrgint i; 67789d794632Smrg_ACEOF 67799d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 67809d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 67819d794632Smrgelse 67829d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 67839d794632Smrgfi 67849d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67859d794632Smrgfi 67869d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 67879d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 67889d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 67899d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 67909d794632Smrgfi 67919d794632Smrg 67929d794632Smrgfound="no" 67939d794632Smrg 67949d794632Smrg if test $found = "no" ; then 67959d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 67969d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67979d794632Smrg fi 67989d794632Smrg 67999d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 68009d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68019d794632Smrg fi 68029d794632Smrg 68039d794632Smrg CFLAGS="$CFLAGS -Werror=implicit" 68049d794632Smrg 68059d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 68069d794632Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 68079d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 68089d794632Smrg if eval \${$cacheid+:} false; then : 68099d794632Smrg $as_echo_n "(cached) " >&6 68109d794632Smrgelse 68119d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68129d794632Smrg/* end confdefs.h. */ 68139d794632Smrgint i; 68149d794632Smrgint 68159d794632Smrgmain () 68169d794632Smrg{ 68179d794632Smrg 68189d794632Smrg ; 68199d794632Smrg return 0; 68209d794632Smrg} 68219d794632Smrg_ACEOF 68229d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 68239d794632Smrg eval $cacheid=yes 68249d794632Smrgelse 68259d794632Smrg eval $cacheid=no 68269d794632Smrgfi 68279d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 68289d794632Smrg conftest$ac_exeext conftest.$ac_ext 68299d794632Smrgfi 68309d794632Smrg 68319d794632Smrg 68329d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68339d794632Smrg 68349d794632Smrg eval supported=\$$cacheid 68359d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68369d794632Smrg$as_echo "$supported" >&6; } 68379d794632Smrg if test "$supported" = "yes" ; then 68389d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 68399d794632Smrg found="yes" 68409d794632Smrg fi 68419d794632Smrg fi 68429d794632Smrg 68439d794632Smrg if test $found = "no" ; then 68449d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 68459d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 68469d794632Smrg fi 68479d794632Smrg 68489d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 68499d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68509d794632Smrg fi 68519d794632Smrg 68529d794632Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 68539d794632Smrg 68549d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 68559d794632Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 68569d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 68579d794632Smrg if eval \${$cacheid+:} false; then : 68589d794632Smrg $as_echo_n "(cached) " >&6 68599d794632Smrgelse 68609d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68619d794632Smrg/* end confdefs.h. */ 68629d794632Smrgint i; 68639d794632Smrgint 68649d794632Smrgmain () 68659d794632Smrg{ 68669d794632Smrg 68679d794632Smrg ; 68689d794632Smrg return 0; 68699d794632Smrg} 68709d794632Smrg_ACEOF 68719d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 68729d794632Smrg eval $cacheid=yes 68739d794632Smrgelse 68749d794632Smrg eval $cacheid=no 68759d794632Smrgfi 68769d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 68779d794632Smrg conftest$ac_exeext conftest.$ac_ext 68789d794632Smrgfi 68799d794632Smrg 68809d794632Smrg 68819d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 68829d794632Smrg 68839d794632Smrg eval supported=\$$cacheid 68849d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68859d794632Smrg$as_echo "$supported" >&6; } 68869d794632Smrg if test "$supported" = "yes" ; then 68879d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 68889d794632Smrg found="yes" 68899d794632Smrg fi 68909d794632Smrg fi 68919d794632Smrg 68929d794632Smrg 68939d794632Smrg 68949d794632Smrg 68959d794632Smrg 68969d794632Smrg 68979d794632Smrg 68989d794632Smrg 68999d794632Smrg 69009d794632Smrg 69019d794632Smrg 69029d794632Smrg 69039d794632Smrg 69049d794632Smrg 69059d794632Smrg 69069d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 69079d794632Smrg 69089d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 69099d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69109d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 69119d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 69129d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 69139d794632Smrg $as_echo_n "(cached) " >&6 69149d794632Smrgelse 69159d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69169d794632Smrg/* end confdefs.h. */ 69179d794632Smrgint i; 69189d794632Smrg_ACEOF 69199d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 69209d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 69219d794632Smrgelse 69229d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 69239d794632Smrgfi 69249d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 69259d794632Smrgfi 69269d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 69279d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 69289d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 69299d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69309d794632Smrgfi 69319d794632Smrg 69329d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 69339d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 69349d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69359d794632Smrg fi 69369d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69379d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 69389d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 69399d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 69409d794632Smrg $as_echo_n "(cached) " >&6 69419d794632Smrgelse 69429d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69439d794632Smrg/* end confdefs.h. */ 69449d794632Smrgint i; 69459d794632Smrg_ACEOF 69469d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 69479d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 69489d794632Smrgelse 69499d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 69509d794632Smrgfi 69519d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 69529d794632Smrgfi 69539d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 69549d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 69559d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 69569d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 69579d794632Smrgfi 69589d794632Smrg 69599d794632Smrgfound="no" 69609d794632Smrg 69619d794632Smrg if test $found = "no" ; then 69629d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 69639d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69649d794632Smrg fi 69659d794632Smrg 69669d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 69679d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69689d794632Smrg fi 69699d794632Smrg 69709d794632Smrg CFLAGS="$CFLAGS -Werror=nonnull" 69719d794632Smrg 69729d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 69739d794632Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 69749d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 69759d794632Smrg if eval \${$cacheid+:} false; then : 69769d794632Smrg $as_echo_n "(cached) " >&6 69779d794632Smrgelse 69789d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 69799d794632Smrg/* end confdefs.h. */ 69809d794632Smrgint i; 69819d794632Smrgint 69829d794632Smrgmain () 69839d794632Smrg{ 69849d794632Smrg 69859d794632Smrg ; 69869d794632Smrg return 0; 69879d794632Smrg} 69889d794632Smrg_ACEOF 69899d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 69909d794632Smrg eval $cacheid=yes 69919d794632Smrgelse 69929d794632Smrg eval $cacheid=no 69939d794632Smrgfi 69949d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 69959d794632Smrg conftest$ac_exeext conftest.$ac_ext 69969d794632Smrgfi 69979d794632Smrg 69989d794632Smrg 69999d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70009d794632Smrg 70019d794632Smrg eval supported=\$$cacheid 70029d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 70039d794632Smrg$as_echo "$supported" >&6; } 70049d794632Smrg if test "$supported" = "yes" ; then 70059d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 70069d794632Smrg found="yes" 70079d794632Smrg fi 70089d794632Smrg fi 70099d794632Smrg 70109d794632Smrg 70119d794632Smrg 70129d794632Smrg 70139d794632Smrg 70149d794632Smrg 70159d794632Smrg 70169d794632Smrg 70179d794632Smrg 70189d794632Smrg 70199d794632Smrg 70209d794632Smrg 70219d794632Smrg 70229d794632Smrg 70239d794632Smrg 70249d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 70259d794632Smrg 70269d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 70279d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70289d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 70299d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 70309d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 70319d794632Smrg $as_echo_n "(cached) " >&6 70329d794632Smrgelse 70339d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70349d794632Smrg/* end confdefs.h. */ 70359d794632Smrgint i; 70369d794632Smrg_ACEOF 70379d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 70389d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 70399d794632Smrgelse 70409d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 70419d794632Smrgfi 70429d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 70439d794632Smrgfi 70449d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 70459d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 70469d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 70479d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70489d794632Smrgfi 70499d794632Smrg 70509d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 70519d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 70529d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70539d794632Smrg fi 70549d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70559d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 70569d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 70579d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 70589d794632Smrg $as_echo_n "(cached) " >&6 70599d794632Smrgelse 70609d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70619d794632Smrg/* end confdefs.h. */ 70629d794632Smrgint i; 70639d794632Smrg_ACEOF 70649d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 70659d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 70669d794632Smrgelse 70679d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 70689d794632Smrgfi 70699d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 70709d794632Smrgfi 70719d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 70729d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 70739d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 70749d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 70759d794632Smrgfi 70769d794632Smrg 70779d794632Smrgfound="no" 70789d794632Smrg 70799d794632Smrg if test $found = "no" ; then 70809d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 70819d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70829d794632Smrg fi 70839d794632Smrg 70849d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 70859d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 70869d794632Smrg fi 70879d794632Smrg 70889d794632Smrg CFLAGS="$CFLAGS -Werror=init-self" 70899d794632Smrg 70909d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 70919d794632Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 70929d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 70939d794632Smrg if eval \${$cacheid+:} false; then : 70949d794632Smrg $as_echo_n "(cached) " >&6 70959d794632Smrgelse 70969d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 70979d794632Smrg/* end confdefs.h. */ 70989d794632Smrgint i; 70999d794632Smrgint 71009d794632Smrgmain () 71019d794632Smrg{ 71029d794632Smrg 71039d794632Smrg ; 71049d794632Smrg return 0; 71059d794632Smrg} 71069d794632Smrg_ACEOF 71079d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 71089d794632Smrg eval $cacheid=yes 71099d794632Smrgelse 71109d794632Smrg eval $cacheid=no 71119d794632Smrgfi 71129d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 71139d794632Smrg conftest$ac_exeext conftest.$ac_ext 71149d794632Smrgfi 71159d794632Smrg 71169d794632Smrg 71179d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71189d794632Smrg 71199d794632Smrg eval supported=\$$cacheid 71209d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 71219d794632Smrg$as_echo "$supported" >&6; } 71229d794632Smrg if test "$supported" = "yes" ; then 71239d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 71249d794632Smrg found="yes" 71259d794632Smrg fi 71269d794632Smrg fi 71279d794632Smrg 71289d794632Smrg 71299d794632Smrg 71309d794632Smrg 71319d794632Smrg 71329d794632Smrg 71339d794632Smrg 71349d794632Smrg 71359d794632Smrg 71369d794632Smrg 71379d794632Smrg 71389d794632Smrg 71399d794632Smrg 71409d794632Smrg 71419d794632Smrg 71429d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 71439d794632Smrg 71449d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 71459d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71469d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 71479d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 71489d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 71499d794632Smrg $as_echo_n "(cached) " >&6 71509d794632Smrgelse 71519d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71529d794632Smrg/* end confdefs.h. */ 71539d794632Smrgint i; 71549d794632Smrg_ACEOF 71559d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 71569d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 71579d794632Smrgelse 71589d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 71599d794632Smrgfi 71609d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 71619d794632Smrgfi 71629d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 71639d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 71649d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 71659d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71669d794632Smrgfi 71679d794632Smrg 71689d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 71699d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 71709d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 71719d794632Smrg fi 71729d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71739d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 71749d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 71759d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 71769d794632Smrg $as_echo_n "(cached) " >&6 71779d794632Smrgelse 71789d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 71799d794632Smrg/* end confdefs.h. */ 71809d794632Smrgint i; 71819d794632Smrg_ACEOF 71829d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 71839d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 71849d794632Smrgelse 71859d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 71869d794632Smrgfi 71879d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 71889d794632Smrgfi 71899d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 71909d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 71919d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 71929d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 71939d794632Smrgfi 71949d794632Smrg 71959d794632Smrgfound="no" 71969d794632Smrg 71979d794632Smrg if test $found = "no" ; then 71989d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 71999d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72009d794632Smrg fi 72019d794632Smrg 72029d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 72039d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72049d794632Smrg fi 72059d794632Smrg 72069d794632Smrg CFLAGS="$CFLAGS -Werror=main" 72079d794632Smrg 72089d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 72099d794632Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 72109d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 72119d794632Smrg if eval \${$cacheid+:} false; then : 72129d794632Smrg $as_echo_n "(cached) " >&6 72139d794632Smrgelse 72149d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72159d794632Smrg/* end confdefs.h. */ 72169d794632Smrgint i; 72179d794632Smrgint 72189d794632Smrgmain () 72199d794632Smrg{ 72209d794632Smrg 72219d794632Smrg ; 72229d794632Smrg return 0; 72239d794632Smrg} 72249d794632Smrg_ACEOF 72259d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 72269d794632Smrg eval $cacheid=yes 72279d794632Smrgelse 72289d794632Smrg eval $cacheid=no 72299d794632Smrgfi 72309d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 72319d794632Smrg conftest$ac_exeext conftest.$ac_ext 72329d794632Smrgfi 72339d794632Smrg 72349d794632Smrg 72359d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72369d794632Smrg 72379d794632Smrg eval supported=\$$cacheid 72389d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 72399d794632Smrg$as_echo "$supported" >&6; } 72409d794632Smrg if test "$supported" = "yes" ; then 72419d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 72429d794632Smrg found="yes" 72439d794632Smrg fi 72449d794632Smrg fi 72459d794632Smrg 72469d794632Smrg 72479d794632Smrg 72489d794632Smrg 72499d794632Smrg 72509d794632Smrg 72519d794632Smrg 72529d794632Smrg 72539d794632Smrg 72549d794632Smrg 72559d794632Smrg 72569d794632Smrg 72579d794632Smrg 72589d794632Smrg 72599d794632Smrg 72609d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 72619d794632Smrg 72629d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 72639d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72649d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 72659d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 72669d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 72679d794632Smrg $as_echo_n "(cached) " >&6 72689d794632Smrgelse 72699d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72709d794632Smrg/* end confdefs.h. */ 72719d794632Smrgint i; 72729d794632Smrg_ACEOF 72739d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 72749d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 72759d794632Smrgelse 72769d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 72779d794632Smrgfi 72789d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 72799d794632Smrgfi 72809d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 72819d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 72829d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 72839d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 72849d794632Smrgfi 72859d794632Smrg 72869d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 72879d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 72889d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72899d794632Smrg fi 72909d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72919d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 72929d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 72939d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 72949d794632Smrg $as_echo_n "(cached) " >&6 72959d794632Smrgelse 72969d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 72979d794632Smrg/* end confdefs.h. */ 72989d794632Smrgint i; 72999d794632Smrg_ACEOF 73009d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 73019d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 73029d794632Smrgelse 73039d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 73049d794632Smrgfi 73059d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 73069d794632Smrgfi 73079d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 73089d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 73099d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 73109d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73119d794632Smrgfi 73129d794632Smrg 73139d794632Smrgfound="no" 73149d794632Smrg 73159d794632Smrg if test $found = "no" ; then 73169d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 73179d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73189d794632Smrg fi 73199d794632Smrg 73209d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 73219d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73229d794632Smrg fi 73239d794632Smrg 73249d794632Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 73259d794632Smrg 73269d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 73279d794632Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 73289d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 73299d794632Smrg if eval \${$cacheid+:} false; then : 73309d794632Smrg $as_echo_n "(cached) " >&6 73319d794632Smrgelse 73329d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73339d794632Smrg/* end confdefs.h. */ 73349d794632Smrgint i; 73359d794632Smrgint 73369d794632Smrgmain () 73379d794632Smrg{ 73389d794632Smrg 73399d794632Smrg ; 73409d794632Smrg return 0; 73419d794632Smrg} 73429d794632Smrg_ACEOF 73439d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 73449d794632Smrg eval $cacheid=yes 73459d794632Smrgelse 73469d794632Smrg eval $cacheid=no 73479d794632Smrgfi 73489d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 73499d794632Smrg conftest$ac_exeext conftest.$ac_ext 73509d794632Smrgfi 73519d794632Smrg 73529d794632Smrg 73539d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 73549d794632Smrg 73559d794632Smrg eval supported=\$$cacheid 73569d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 73579d794632Smrg$as_echo "$supported" >&6; } 73589d794632Smrg if test "$supported" = "yes" ; then 73599d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 73609d794632Smrg found="yes" 73619d794632Smrg fi 73629d794632Smrg fi 73639d794632Smrg 73649d794632Smrg 73659d794632Smrg 73669d794632Smrg 73679d794632Smrg 73689d794632Smrg 73699d794632Smrg 73709d794632Smrg 73719d794632Smrg 73729d794632Smrg 73739d794632Smrg 73749d794632Smrg 73759d794632Smrg 73769d794632Smrg 73779d794632Smrg 73789d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 73799d794632Smrg 73809d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 73819d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73829d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 73839d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 73849d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 73859d794632Smrg $as_echo_n "(cached) " >&6 73869d794632Smrgelse 73879d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 73889d794632Smrg/* end confdefs.h. */ 73899d794632Smrgint i; 73909d794632Smrg_ACEOF 73919d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 73929d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 73939d794632Smrgelse 73949d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 73959d794632Smrgfi 73969d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 73979d794632Smrgfi 73989d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 73999d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 74009d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 74019d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74029d794632Smrgfi 74039d794632Smrg 74049d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 74059d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 74069d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74079d794632Smrg fi 74089d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74099d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 74109d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 74119d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 74129d794632Smrg $as_echo_n "(cached) " >&6 74139d794632Smrgelse 74149d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74159d794632Smrg/* end confdefs.h. */ 74169d794632Smrgint i; 74179d794632Smrg_ACEOF 74189d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 74199d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 74209d794632Smrgelse 74219d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 74229d794632Smrgfi 74239d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 74249d794632Smrgfi 74259d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 74269d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 74279d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 74289d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74299d794632Smrgfi 74309d794632Smrg 74319d794632Smrgfound="no" 74329d794632Smrg 74339d794632Smrg if test $found = "no" ; then 74349d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 74359d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74369d794632Smrg fi 74379d794632Smrg 74389d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 74399d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74409d794632Smrg fi 74419d794632Smrg 74429d794632Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 74439d794632Smrg 74449d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 74459d794632Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 74469d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 74479d794632Smrg if eval \${$cacheid+:} false; then : 74489d794632Smrg $as_echo_n "(cached) " >&6 74499d794632Smrgelse 74509d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74519d794632Smrg/* end confdefs.h. */ 74529d794632Smrgint i; 74539d794632Smrgint 74549d794632Smrgmain () 74559d794632Smrg{ 74569d794632Smrg 74579d794632Smrg ; 74589d794632Smrg return 0; 74599d794632Smrg} 74609d794632Smrg_ACEOF 74619d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 74629d794632Smrg eval $cacheid=yes 74639d794632Smrgelse 74649d794632Smrg eval $cacheid=no 74659d794632Smrgfi 74669d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 74679d794632Smrg conftest$ac_exeext conftest.$ac_ext 74689d794632Smrgfi 74699d794632Smrg 74709d794632Smrg 74719d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 74729d794632Smrg 74739d794632Smrg eval supported=\$$cacheid 74749d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74759d794632Smrg$as_echo "$supported" >&6; } 74769d794632Smrg if test "$supported" = "yes" ; then 74779d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 74789d794632Smrg found="yes" 74799d794632Smrg fi 74809d794632Smrg fi 74819d794632Smrg 74829d794632Smrg 74839d794632Smrg 74849d794632Smrg 74859d794632Smrg 74869d794632Smrg 74879d794632Smrg 74889d794632Smrg 74899d794632Smrg 74909d794632Smrg 74919d794632Smrg 74929d794632Smrg 74939d794632Smrg 74949d794632Smrg 74959d794632Smrg 74969d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 74979d794632Smrg 74989d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 74999d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75009d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 75019d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 75029d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 75039d794632Smrg $as_echo_n "(cached) " >&6 75049d794632Smrgelse 75059d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75069d794632Smrg/* end confdefs.h. */ 75079d794632Smrgint i; 75089d794632Smrg_ACEOF 75099d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 75109d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 75119d794632Smrgelse 75129d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 75139d794632Smrgfi 75149d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 75159d794632Smrgfi 75169d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 75179d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 75189d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 75199d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75209d794632Smrgfi 75219d794632Smrg 75229d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 75239d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 75249d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75259d794632Smrg fi 75269d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75279d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 75289d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 75299d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 75309d794632Smrg $as_echo_n "(cached) " >&6 75319d794632Smrgelse 75329d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75339d794632Smrg/* end confdefs.h. */ 75349d794632Smrgint i; 75359d794632Smrg_ACEOF 75369d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 75379d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 75389d794632Smrgelse 75399d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 75409d794632Smrgfi 75419d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 75429d794632Smrgfi 75439d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 75449d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 75459d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 75469d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75479d794632Smrgfi 75489d794632Smrg 75499d794632Smrgfound="no" 75509d794632Smrg 75519d794632Smrg if test $found = "no" ; then 75529d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 75539d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75549d794632Smrg fi 75559d794632Smrg 75569d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 75579d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75589d794632Smrg fi 75599d794632Smrg 75609d794632Smrg CFLAGS="$CFLAGS -Werror=return-type" 75619d794632Smrg 75629d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 75639d794632Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 75649d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 75659d794632Smrg if eval \${$cacheid+:} false; then : 75669d794632Smrg $as_echo_n "(cached) " >&6 75679d794632Smrgelse 75689d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75699d794632Smrg/* end confdefs.h. */ 75709d794632Smrgint i; 75719d794632Smrgint 75729d794632Smrgmain () 75739d794632Smrg{ 75749d794632Smrg 75759d794632Smrg ; 75769d794632Smrg return 0; 75779d794632Smrg} 75789d794632Smrg_ACEOF 75799d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 75809d794632Smrg eval $cacheid=yes 75819d794632Smrgelse 75829d794632Smrg eval $cacheid=no 75839d794632Smrgfi 75849d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 75859d794632Smrg conftest$ac_exeext conftest.$ac_ext 75869d794632Smrgfi 75879d794632Smrg 75889d794632Smrg 75899d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 75909d794632Smrg 75919d794632Smrg eval supported=\$$cacheid 75929d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 75939d794632Smrg$as_echo "$supported" >&6; } 75949d794632Smrg if test "$supported" = "yes" ; then 75959d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 75969d794632Smrg found="yes" 75979d794632Smrg fi 75989d794632Smrg fi 75999d794632Smrg 76009d794632Smrg if test $found = "no" ; then 76019d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 76029d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76039d794632Smrg fi 76049d794632Smrg 76059d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 76069d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76079d794632Smrg fi 76089d794632Smrg 76099d794632Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 76109d794632Smrg 76119d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 76129d794632Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 76139d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 76149d794632Smrg if eval \${$cacheid+:} false; then : 76159d794632Smrg $as_echo_n "(cached) " >&6 76169d794632Smrgelse 76179d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76189d794632Smrg/* end confdefs.h. */ 76199d794632Smrgint i; 76209d794632Smrgint 76219d794632Smrgmain () 76229d794632Smrg{ 76239d794632Smrg 76249d794632Smrg ; 76259d794632Smrg return 0; 76269d794632Smrg} 76279d794632Smrg_ACEOF 76289d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 76299d794632Smrg eval $cacheid=yes 76309d794632Smrgelse 76319d794632Smrg eval $cacheid=no 76329d794632Smrgfi 76339d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 76349d794632Smrg conftest$ac_exeext conftest.$ac_ext 76359d794632Smrgfi 76369d794632Smrg 76379d794632Smrg 76389d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76399d794632Smrg 76409d794632Smrg eval supported=\$$cacheid 76419d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 76429d794632Smrg$as_echo "$supported" >&6; } 76439d794632Smrg if test "$supported" = "yes" ; then 76449d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 76459d794632Smrg found="yes" 76469d794632Smrg fi 76479d794632Smrg fi 76489d794632Smrg 76499d794632Smrg 76509d794632Smrg 76519d794632Smrg 76529d794632Smrg 76539d794632Smrg 76549d794632Smrg 76559d794632Smrg 76569d794632Smrg 76579d794632Smrg 76589d794632Smrg 76599d794632Smrg 76609d794632Smrg 76619d794632Smrg 76629d794632Smrg 76639d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 76649d794632Smrg 76659d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 76669d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76679d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 76689d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 76699d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 76709d794632Smrg $as_echo_n "(cached) " >&6 76719d794632Smrgelse 76729d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76739d794632Smrg/* end confdefs.h. */ 76749d794632Smrgint i; 76759d794632Smrg_ACEOF 76769d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 76779d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 76789d794632Smrgelse 76799d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 76809d794632Smrgfi 76819d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 76829d794632Smrgfi 76839d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 76849d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 76859d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 76869d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 76879d794632Smrgfi 76889d794632Smrg 76899d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 76909d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 76919d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76929d794632Smrg fi 76939d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 76949d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 76959d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 76969d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 76979d794632Smrg $as_echo_n "(cached) " >&6 76989d794632Smrgelse 76999d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77009d794632Smrg/* end confdefs.h. */ 77019d794632Smrgint i; 77029d794632Smrg_ACEOF 77039d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 77049d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 77059d794632Smrgelse 77069d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 77079d794632Smrgfi 77089d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 77099d794632Smrgfi 77109d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 77119d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 77129d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 77139d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77149d794632Smrgfi 77159d794632Smrg 77169d794632Smrgfound="no" 77179d794632Smrg 77189d794632Smrg if test $found = "no" ; then 77199d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 77209d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77219d794632Smrg fi 77229d794632Smrg 77239d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 77249d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77259d794632Smrg fi 77269d794632Smrg 77279d794632Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 77289d794632Smrg 77299d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 77309d794632Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 77319d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 77329d794632Smrg if eval \${$cacheid+:} false; then : 77339d794632Smrg $as_echo_n "(cached) " >&6 77349d794632Smrgelse 77359d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77369d794632Smrg/* end confdefs.h. */ 77379d794632Smrgint i; 77389d794632Smrgint 77399d794632Smrgmain () 77409d794632Smrg{ 77419d794632Smrg 77429d794632Smrg ; 77439d794632Smrg return 0; 77449d794632Smrg} 77459d794632Smrg_ACEOF 77469d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 77479d794632Smrg eval $cacheid=yes 77489d794632Smrgelse 77499d794632Smrg eval $cacheid=no 77509d794632Smrgfi 77519d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 77529d794632Smrg conftest$ac_exeext conftest.$ac_ext 77539d794632Smrgfi 77549d794632Smrg 77559d794632Smrg 77569d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 77579d794632Smrg 77589d794632Smrg eval supported=\$$cacheid 77599d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 77609d794632Smrg$as_echo "$supported" >&6; } 77619d794632Smrg if test "$supported" = "yes" ; then 77629d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 77639d794632Smrg found="yes" 77649d794632Smrg fi 77659d794632Smrg fi 77669d794632Smrg 77679d794632Smrg 77689d794632Smrg 77699d794632Smrg 77709d794632Smrg 77719d794632Smrg 77729d794632Smrg 77739d794632Smrg 77749d794632Smrg 77759d794632Smrg 77769d794632Smrg 77779d794632Smrg 77789d794632Smrg 77799d794632Smrg 77809d794632Smrg 77819d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 77829d794632Smrg 77839d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 77849d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 77859d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 77869d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 77879d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 77889d794632Smrg $as_echo_n "(cached) " >&6 77899d794632Smrgelse 77909d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77919d794632Smrg/* end confdefs.h. */ 77929d794632Smrgint i; 77939d794632Smrg_ACEOF 77949d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 77959d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 77969d794632Smrgelse 77979d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 77989d794632Smrgfi 77999d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 78009d794632Smrgfi 78019d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 78029d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 78039d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 78049d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78059d794632Smrgfi 78069d794632Smrg 78079d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 78089d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 78099d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78109d794632Smrg fi 78119d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78129d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 78139d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 78149d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 78159d794632Smrg $as_echo_n "(cached) " >&6 78169d794632Smrgelse 78179d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78189d794632Smrg/* end confdefs.h. */ 78199d794632Smrgint i; 78209d794632Smrg_ACEOF 78219d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 78229d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 78239d794632Smrgelse 78249d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 78259d794632Smrgfi 78269d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 78279d794632Smrgfi 78289d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 78299d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 78309d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 78319d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78329d794632Smrgfi 78339d794632Smrg 78349d794632Smrgfound="no" 78359d794632Smrg 78369d794632Smrg if test $found = "no" ; then 78379d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 78389d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78399d794632Smrg fi 78409d794632Smrg 78419d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 78429d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78439d794632Smrg fi 78449d794632Smrg 78459d794632Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 78469d794632Smrg 78479d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 78489d794632Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 78499d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 78509d794632Smrg if eval \${$cacheid+:} false; then : 78519d794632Smrg $as_echo_n "(cached) " >&6 78529d794632Smrgelse 78539d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 78549d794632Smrg/* end confdefs.h. */ 78559d794632Smrgint i; 78569d794632Smrgint 78579d794632Smrgmain () 78589d794632Smrg{ 78599d794632Smrg 78609d794632Smrg ; 78619d794632Smrg return 0; 78629d794632Smrg} 78639d794632Smrg_ACEOF 78649d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 78659d794632Smrg eval $cacheid=yes 78669d794632Smrgelse 78679d794632Smrg eval $cacheid=no 78689d794632Smrgfi 78699d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 78709d794632Smrg conftest$ac_exeext conftest.$ac_ext 78719d794632Smrgfi 78729d794632Smrg 78739d794632Smrg 78749d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 78759d794632Smrg 78769d794632Smrg eval supported=\$$cacheid 78779d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 78789d794632Smrg$as_echo "$supported" >&6; } 78799d794632Smrg if test "$supported" = "yes" ; then 78809d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 78819d794632Smrg found="yes" 78829d794632Smrg fi 78839d794632Smrg fi 78849d794632Smrg 78859d794632Smrg 78869d794632Smrg 78879d794632Smrg 78889d794632Smrg 78899d794632Smrg 78909d794632Smrg 78919d794632Smrg 78929d794632Smrg 78939d794632Smrg 78949d794632Smrg 78959d794632Smrg 78969d794632Smrg 78979d794632Smrg 78989d794632Smrg 78999d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 79009d794632Smrg 79019d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 79029d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79039d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 79049d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 79059d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 79069d794632Smrg $as_echo_n "(cached) " >&6 79079d794632Smrgelse 79089d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79099d794632Smrg/* end confdefs.h. */ 79109d794632Smrgint i; 79119d794632Smrg_ACEOF 79129d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 79139d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 79149d794632Smrgelse 79159d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 79169d794632Smrgfi 79179d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 79189d794632Smrgfi 79199d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 79209d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 79219d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 79229d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79239d794632Smrgfi 79249d794632Smrg 79259d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 79269d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 79279d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79289d794632Smrg fi 79299d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79309d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 79319d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 79329d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 79339d794632Smrg $as_echo_n "(cached) " >&6 79349d794632Smrgelse 79359d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79369d794632Smrg/* end confdefs.h. */ 79379d794632Smrgint i; 79389d794632Smrg_ACEOF 79399d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 79409d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 79419d794632Smrgelse 79429d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 79439d794632Smrgfi 79449d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 79459d794632Smrgfi 79469d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 79479d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 79489d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 79499d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79509d794632Smrgfi 79519d794632Smrg 79529d794632Smrgfound="no" 79539d794632Smrg 79549d794632Smrg if test $found = "no" ; then 79559d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 79569d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79579d794632Smrg fi 79589d794632Smrg 79599d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 79609d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79619d794632Smrg fi 79629d794632Smrg 79639d794632Smrg CFLAGS="$CFLAGS -Werror=write-strings" 79649d794632Smrg 79659d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 79669d794632Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 79679d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 79689d794632Smrg if eval \${$cacheid+:} false; then : 79699d794632Smrg $as_echo_n "(cached) " >&6 79709d794632Smrgelse 79719d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79729d794632Smrg/* end confdefs.h. */ 79739d794632Smrgint i; 79749d794632Smrgint 79759d794632Smrgmain () 79769d794632Smrg{ 79779d794632Smrg 79789d794632Smrg ; 79799d794632Smrg return 0; 79809d794632Smrg} 79819d794632Smrg_ACEOF 79829d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 79839d794632Smrg eval $cacheid=yes 79849d794632Smrgelse 79859d794632Smrg eval $cacheid=no 79869d794632Smrgfi 79879d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 79889d794632Smrg conftest$ac_exeext conftest.$ac_ext 79899d794632Smrgfi 79909d794632Smrg 79919d794632Smrg 79929d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 79939d794632Smrg 79949d794632Smrg eval supported=\$$cacheid 79959d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 79969d794632Smrg$as_echo "$supported" >&6; } 79979d794632Smrg if test "$supported" = "yes" ; then 79989d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 79999d794632Smrg found="yes" 80009d794632Smrg fi 80019d794632Smrg fi 80029d794632Smrg 80039d794632Smrg 80049d794632Smrg 80059d794632Smrg 80069d794632Smrg 80079d794632Smrg 80089d794632Smrg 80099d794632Smrg 80109d794632Smrg 80119d794632Smrg 80129d794632Smrg 80139d794632Smrg 80149d794632Smrg 80159d794632Smrg 80169d794632Smrg 80179d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 80189d794632Smrg 80199d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 80209d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80219d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 80229d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 80239d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 80249d794632Smrg $as_echo_n "(cached) " >&6 80259d794632Smrgelse 80269d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80279d794632Smrg/* end confdefs.h. */ 80289d794632Smrgint i; 80299d794632Smrg_ACEOF 80309d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 80319d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 80329d794632Smrgelse 80339d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 80349d794632Smrgfi 80359d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 80369d794632Smrgfi 80379d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 80389d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 80399d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 80409d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80419d794632Smrgfi 80429d794632Smrg 80439d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 80449d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 80459d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80469d794632Smrg fi 80479d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80489d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 80499d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 80509d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 80519d794632Smrg $as_echo_n "(cached) " >&6 80529d794632Smrgelse 80539d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80549d794632Smrg/* end confdefs.h. */ 80559d794632Smrgint i; 80569d794632Smrg_ACEOF 80579d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 80589d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 80599d794632Smrgelse 80609d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 80619d794632Smrgfi 80629d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 80639d794632Smrgfi 80649d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 80659d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 80669d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 80679d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 80689d794632Smrgfi 80699d794632Smrg 80709d794632Smrgfound="no" 80719d794632Smrg 80729d794632Smrg if test $found = "no" ; then 80739d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 80749d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80759d794632Smrg fi 80769d794632Smrg 80779d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 80789d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 80799d794632Smrg fi 80809d794632Smrg 80819d794632Smrg CFLAGS="$CFLAGS -Werror=address" 80829d794632Smrg 80839d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 80849d794632Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 80859d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 80869d794632Smrg if eval \${$cacheid+:} false; then : 80879d794632Smrg $as_echo_n "(cached) " >&6 80889d794632Smrgelse 80899d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80909d794632Smrg/* end confdefs.h. */ 80919d794632Smrgint i; 80929d794632Smrgint 80939d794632Smrgmain () 80949d794632Smrg{ 80959d794632Smrg 80969d794632Smrg ; 80979d794632Smrg return 0; 80989d794632Smrg} 80999d794632Smrg_ACEOF 81009d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 81019d794632Smrg eval $cacheid=yes 81029d794632Smrgelse 81039d794632Smrg eval $cacheid=no 81049d794632Smrgfi 81059d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 81069d794632Smrg conftest$ac_exeext conftest.$ac_ext 81079d794632Smrgfi 81089d794632Smrg 81099d794632Smrg 81109d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81119d794632Smrg 81129d794632Smrg eval supported=\$$cacheid 81139d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 81149d794632Smrg$as_echo "$supported" >&6; } 81159d794632Smrg if test "$supported" = "yes" ; then 81169d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 81179d794632Smrg found="yes" 81189d794632Smrg fi 81199d794632Smrg fi 81209d794632Smrg 81219d794632Smrg 81229d794632Smrg 81239d794632Smrg 81249d794632Smrg 81259d794632Smrg 81269d794632Smrg 81279d794632Smrg 81289d794632Smrg 81299d794632Smrg 81309d794632Smrg 81319d794632Smrg 81329d794632Smrg 81339d794632Smrg 81349d794632Smrg 81359d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 81369d794632Smrg 81379d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 81389d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81399d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 81409d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 81419d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 81429d794632Smrg $as_echo_n "(cached) " >&6 81439d794632Smrgelse 81449d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81459d794632Smrg/* end confdefs.h. */ 81469d794632Smrgint i; 81479d794632Smrg_ACEOF 81489d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 81499d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 81509d794632Smrgelse 81519d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 81529d794632Smrgfi 81539d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 81549d794632Smrgfi 81559d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 81569d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 81579d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 81589d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81599d794632Smrgfi 81609d794632Smrg 81619d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 81629d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 81639d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81649d794632Smrg fi 81659d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81669d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 81679d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 81689d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 81699d794632Smrg $as_echo_n "(cached) " >&6 81709d794632Smrgelse 81719d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 81729d794632Smrg/* end confdefs.h. */ 81739d794632Smrgint i; 81749d794632Smrg_ACEOF 81759d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 81769d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 81779d794632Smrgelse 81789d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 81799d794632Smrgfi 81809d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 81819d794632Smrgfi 81829d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 81839d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 81849d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 81859d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 81869d794632Smrgfi 81879d794632Smrg 81889d794632Smrgfound="no" 81899d794632Smrg 81909d794632Smrg if test $found = "no" ; then 81919d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 81929d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81939d794632Smrg fi 81949d794632Smrg 81959d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 81969d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81979d794632Smrg fi 81989d794632Smrg 81999d794632Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 82009d794632Smrg 82019d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 82029d794632Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 82039d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 82049d794632Smrg if eval \${$cacheid+:} false; then : 82059d794632Smrg $as_echo_n "(cached) " >&6 82069d794632Smrgelse 82079d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82089d794632Smrg/* end confdefs.h. */ 82099d794632Smrgint i; 82109d794632Smrgint 82119d794632Smrgmain () 82129d794632Smrg{ 82139d794632Smrg 82149d794632Smrg ; 82159d794632Smrg return 0; 82169d794632Smrg} 82179d794632Smrg_ACEOF 82189d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 82199d794632Smrg eval $cacheid=yes 82209d794632Smrgelse 82219d794632Smrg eval $cacheid=no 82229d794632Smrgfi 82239d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 82249d794632Smrg conftest$ac_exeext conftest.$ac_ext 82259d794632Smrgfi 82269d794632Smrg 82279d794632Smrg 82289d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82299d794632Smrg 82309d794632Smrg eval supported=\$$cacheid 82319d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82329d794632Smrg$as_echo "$supported" >&6; } 82339d794632Smrg if test "$supported" = "yes" ; then 82349d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 82359d794632Smrg found="yes" 82369d794632Smrg fi 82379d794632Smrg fi 82389d794632Smrg 82399d794632Smrg if test $found = "no" ; then 82409d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 82419d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 82429d794632Smrg fi 82439d794632Smrg 82449d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 82459d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82469d794632Smrg fi 82479d794632Smrg 82489d794632Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 82499d794632Smrg 82509d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 82519d794632Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 82529d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 82539d794632Smrg if eval \${$cacheid+:} false; then : 82549d794632Smrg $as_echo_n "(cached) " >&6 82559d794632Smrgelse 82569d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 82579d794632Smrg/* end confdefs.h. */ 82589d794632Smrgint i; 82599d794632Smrgint 82609d794632Smrgmain () 82619d794632Smrg{ 82629d794632Smrg 82639d794632Smrg ; 82649d794632Smrg return 0; 82659d794632Smrg} 82669d794632Smrg_ACEOF 82679d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 82689d794632Smrg eval $cacheid=yes 82699d794632Smrgelse 82709d794632Smrg eval $cacheid=no 82719d794632Smrgfi 82729d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 82739d794632Smrg conftest$ac_exeext conftest.$ac_ext 82749d794632Smrgfi 82759d794632Smrg 82769d794632Smrg 82779d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 82789d794632Smrg 82799d794632Smrg eval supported=\$$cacheid 82809d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82819d794632Smrg$as_echo "$supported" >&6; } 82829d794632Smrg if test "$supported" = "yes" ; then 82839d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 82849d794632Smrg found="yes" 82859d794632Smrg fi 82869d794632Smrg fi 82879d794632Smrg 82889d794632Smrg 82899d794632Smrg 82909d794632Smrg 82919d794632Smrg 82929d794632Smrg 82939d794632Smrg 82949d794632Smrg 82959d794632Smrg 82969d794632Smrg 82979d794632Smrg 82989d794632Smrg 82999d794632Smrg 83009d794632Smrg 83019d794632Smrg 83029d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 83039d794632Smrg 83049d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 83059d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83069d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 83079d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 83089d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 83099d794632Smrg $as_echo_n "(cached) " >&6 83109d794632Smrgelse 83119d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83129d794632Smrg/* end confdefs.h. */ 83139d794632Smrgint i; 83149d794632Smrg_ACEOF 83159d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 83169d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 83179d794632Smrgelse 83189d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 83199d794632Smrgfi 83209d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 83219d794632Smrgfi 83229d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 83239d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 83249d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 83259d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83269d794632Smrgfi 83279d794632Smrg 83289d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 83299d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 83309d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83319d794632Smrg fi 83329d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83339d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 83349d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 83359d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 83369d794632Smrg $as_echo_n "(cached) " >&6 83379d794632Smrgelse 83389d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83399d794632Smrg/* end confdefs.h. */ 83409d794632Smrgint i; 83419d794632Smrg_ACEOF 83429d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 83439d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 83449d794632Smrgelse 83459d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 83469d794632Smrgfi 83479d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 83489d794632Smrgfi 83499d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 83509d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 83519d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 83529d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83539d794632Smrgfi 83549d794632Smrg 83559d794632Smrgfound="no" 83569d794632Smrg 83579d794632Smrg if test $found = "no" ; then 83589d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 83599d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83609d794632Smrg fi 83619d794632Smrg 83629d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 83639d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83649d794632Smrg fi 83659d794632Smrg 83669d794632Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 83679d794632Smrg 83689d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 83699d794632Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 83709d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 83719d794632Smrg if eval \${$cacheid+:} false; then : 83729d794632Smrg $as_echo_n "(cached) " >&6 83739d794632Smrgelse 83749d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83759d794632Smrg/* end confdefs.h. */ 83769d794632Smrgint i; 83779d794632Smrgint 83789d794632Smrgmain () 83799d794632Smrg{ 83809d794632Smrg 83819d794632Smrg ; 83829d794632Smrg return 0; 83839d794632Smrg} 83849d794632Smrg_ACEOF 83859d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 83869d794632Smrg eval $cacheid=yes 83879d794632Smrgelse 83889d794632Smrg eval $cacheid=no 83899d794632Smrgfi 83909d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 83919d794632Smrg conftest$ac_exeext conftest.$ac_ext 83929d794632Smrgfi 83939d794632Smrg 83949d794632Smrg 83959d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 83969d794632Smrg 83979d794632Smrg eval supported=\$$cacheid 83989d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 83999d794632Smrg$as_echo "$supported" >&6; } 84009d794632Smrg if test "$supported" = "yes" ; then 84019d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 84029d794632Smrg found="yes" 84039d794632Smrg fi 84049d794632Smrg fi 84059d794632Smrg 84069d794632Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 84079d794632Smrgelse 84089d794632Smrg{ $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 84099d794632Smrg$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;} 84109d794632Smrg 84119d794632Smrg 84129d794632Smrg 84139d794632Smrg 84149d794632Smrg 84159d794632Smrg 84169d794632Smrg 84179d794632Smrg 84189d794632Smrg 84199d794632Smrg 84209d794632Smrg 84219d794632Smrg 84229d794632Smrg 84239d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 84249d794632Smrg 84259d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 84269d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84279d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 84289d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 84299d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 84309d794632Smrg $as_echo_n "(cached) " >&6 84319d794632Smrgelse 84329d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84339d794632Smrg/* end confdefs.h. */ 84349d794632Smrgint i; 84359d794632Smrg_ACEOF 84369d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 84379d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 84389d794632Smrgelse 84399d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 84409d794632Smrgfi 84419d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 84429d794632Smrgfi 84439d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 84449d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 84459d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 84469d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 84479d794632Smrgfi 84489d794632Smrg 84499d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 84509d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 84519d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84529d794632Smrg fi 84539d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84549d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 84559d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 84569d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 84579d794632Smrg $as_echo_n "(cached) " >&6 84589d794632Smrgelse 84599d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84609d794632Smrg/* end confdefs.h. */ 84619d794632Smrgint i; 84629d794632Smrg_ACEOF 84639d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 84649d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 84659d794632Smrgelse 84669d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 84679d794632Smrgfi 84689d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 84699d794632Smrgfi 84709d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 84719d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 84729d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 84739d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 84749d794632Smrgfi 84759d794632Smrg 84769d794632Smrgfound="no" 84779d794632Smrg 84789d794632Smrg if test $found = "no" ; then 84799d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 84809d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84819d794632Smrg fi 84829d794632Smrg 84839d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 84849d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 84859d794632Smrg fi 84869d794632Smrg 84879d794632Smrg CFLAGS="$CFLAGS -Wimplicit" 84889d794632Smrg 84899d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 84909d794632Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 84919d794632Smrg cacheid=xorg_cv_cc_flag__Wimplicit 84929d794632Smrg if eval \${$cacheid+:} false; then : 84939d794632Smrg $as_echo_n "(cached) " >&6 84949d794632Smrgelse 84959d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84969d794632Smrg/* end confdefs.h. */ 84979d794632Smrgint i; 84989d794632Smrgint 84999d794632Smrgmain () 85009d794632Smrg{ 85019d794632Smrg 85029d794632Smrg ; 85039d794632Smrg return 0; 85049d794632Smrg} 85059d794632Smrg_ACEOF 85069d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 85079d794632Smrg eval $cacheid=yes 85089d794632Smrgelse 85099d794632Smrg eval $cacheid=no 85109d794632Smrgfi 85119d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 85129d794632Smrg conftest$ac_exeext conftest.$ac_ext 85139d794632Smrgfi 85149d794632Smrg 85159d794632Smrg 85169d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85179d794632Smrg 85189d794632Smrg eval supported=\$$cacheid 85199d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 85209d794632Smrg$as_echo "$supported" >&6; } 85219d794632Smrg if test "$supported" = "yes" ; then 85229d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 85239d794632Smrg found="yes" 85249d794632Smrg fi 85259d794632Smrg fi 85269d794632Smrg 85279d794632Smrg 85289d794632Smrg 85299d794632Smrg 85309d794632Smrg 85319d794632Smrg 85329d794632Smrg 85339d794632Smrg 85349d794632Smrg 85359d794632Smrg 85369d794632Smrg 85379d794632Smrg 85389d794632Smrg 85399d794632Smrg 85409d794632Smrg 85419d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 85429d794632Smrg 85439d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 85449d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85459d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 85469d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 85479d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 85489d794632Smrg $as_echo_n "(cached) " >&6 85499d794632Smrgelse 85509d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85519d794632Smrg/* end confdefs.h. */ 85529d794632Smrgint i; 85539d794632Smrg_ACEOF 85549d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 85559d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 85569d794632Smrgelse 85579d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 85589d794632Smrgfi 85599d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 85609d794632Smrgfi 85619d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 85629d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 85639d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 85649d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85659d794632Smrgfi 85669d794632Smrg 85679d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 85689d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 85699d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85709d794632Smrg fi 85719d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85729d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 85739d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 85749d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 85759d794632Smrg $as_echo_n "(cached) " >&6 85769d794632Smrgelse 85779d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85789d794632Smrg/* end confdefs.h. */ 85799d794632Smrgint i; 85809d794632Smrg_ACEOF 85819d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 85829d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 85839d794632Smrgelse 85849d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 85859d794632Smrgfi 85869d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 85879d794632Smrgfi 85889d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 85899d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 85909d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 85919d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 85929d794632Smrgfi 85939d794632Smrg 85949d794632Smrgfound="no" 85959d794632Smrg 85969d794632Smrg if test $found = "no" ; then 85979d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 85989d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 85999d794632Smrg fi 86009d794632Smrg 86019d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 86029d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86039d794632Smrg fi 86049d794632Smrg 86059d794632Smrg CFLAGS="$CFLAGS -Wnonnull" 86069d794632Smrg 86079d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 86089d794632Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 86099d794632Smrg cacheid=xorg_cv_cc_flag__Wnonnull 86109d794632Smrg if eval \${$cacheid+:} false; then : 86119d794632Smrg $as_echo_n "(cached) " >&6 86129d794632Smrgelse 86139d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86149d794632Smrg/* end confdefs.h. */ 86159d794632Smrgint i; 86169d794632Smrgint 86179d794632Smrgmain () 86189d794632Smrg{ 86199d794632Smrg 86209d794632Smrg ; 86219d794632Smrg return 0; 86229d794632Smrg} 86239d794632Smrg_ACEOF 86249d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 86259d794632Smrg eval $cacheid=yes 86269d794632Smrgelse 86279d794632Smrg eval $cacheid=no 86289d794632Smrgfi 86299d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 86309d794632Smrg conftest$ac_exeext conftest.$ac_ext 86319d794632Smrgfi 86329d794632Smrg 86339d794632Smrg 86349d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86359d794632Smrg 86369d794632Smrg eval supported=\$$cacheid 86379d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 86389d794632Smrg$as_echo "$supported" >&6; } 86399d794632Smrg if test "$supported" = "yes" ; then 86409d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 86419d794632Smrg found="yes" 86429d794632Smrg fi 86439d794632Smrg fi 86449d794632Smrg 86459d794632Smrg 86469d794632Smrg 86479d794632Smrg 86489d794632Smrg 86499d794632Smrg 86509d794632Smrg 86519d794632Smrg 86529d794632Smrg 86539d794632Smrg 86549d794632Smrg 86559d794632Smrg 86569d794632Smrg 86579d794632Smrg 86589d794632Smrg 86599d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 86609d794632Smrg 86619d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 86629d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86639d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 86649d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 86659d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 86669d794632Smrg $as_echo_n "(cached) " >&6 86679d794632Smrgelse 86689d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86699d794632Smrg/* end confdefs.h. */ 86709d794632Smrgint i; 86719d794632Smrg_ACEOF 86729d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 86739d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 86749d794632Smrgelse 86759d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 86769d794632Smrgfi 86779d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 86789d794632Smrgfi 86799d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 86809d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 86819d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 86829d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 86839d794632Smrgfi 86849d794632Smrg 86859d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 86869d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 86879d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86889d794632Smrg fi 86899d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86909d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 86919d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 86929d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 86939d794632Smrg $as_echo_n "(cached) " >&6 86949d794632Smrgelse 86959d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86969d794632Smrg/* end confdefs.h. */ 86979d794632Smrgint i; 86989d794632Smrg_ACEOF 86999d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 87009d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 87019d794632Smrgelse 87029d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 87039d794632Smrgfi 87049d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 87059d794632Smrgfi 87069d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 87079d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 87089d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 87099d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 87109d794632Smrgfi 87119d794632Smrg 87129d794632Smrgfound="no" 87139d794632Smrg 87149d794632Smrg if test $found = "no" ; then 87159d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 87169d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87179d794632Smrg fi 87189d794632Smrg 87199d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 87209d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87219d794632Smrg fi 87229d794632Smrg 87239d794632Smrg CFLAGS="$CFLAGS -Winit-self" 87249d794632Smrg 87259d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 87269d794632Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 87279d794632Smrg cacheid=xorg_cv_cc_flag__Winit_self 87289d794632Smrg if eval \${$cacheid+:} false; then : 87299d794632Smrg $as_echo_n "(cached) " >&6 87309d794632Smrgelse 87319d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87329d794632Smrg/* end confdefs.h. */ 87339d794632Smrgint i; 87349d794632Smrgint 87359d794632Smrgmain () 87369d794632Smrg{ 87379d794632Smrg 87389d794632Smrg ; 87399d794632Smrg return 0; 87409d794632Smrg} 87419d794632Smrg_ACEOF 87429d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 87439d794632Smrg eval $cacheid=yes 87449d794632Smrgelse 87459d794632Smrg eval $cacheid=no 87469d794632Smrgfi 87479d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 87489d794632Smrg conftest$ac_exeext conftest.$ac_ext 87499d794632Smrgfi 87509d794632Smrg 87519d794632Smrg 87529d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 87539d794632Smrg 87549d794632Smrg eval supported=\$$cacheid 87559d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 87569d794632Smrg$as_echo "$supported" >&6; } 87579d794632Smrg if test "$supported" = "yes" ; then 87589d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 87599d794632Smrg found="yes" 87609d794632Smrg fi 87619d794632Smrg fi 87629d794632Smrg 87639d794632Smrg 87649d794632Smrg 87659d794632Smrg 87669d794632Smrg 87679d794632Smrg 87689d794632Smrg 87699d794632Smrg 87709d794632Smrg 87719d794632Smrg 87729d794632Smrg 87739d794632Smrg 87749d794632Smrg 87759d794632Smrg 87769d794632Smrg 87779d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 87789d794632Smrg 87799d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 87809d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87819d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 87829d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 87839d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 87849d794632Smrg $as_echo_n "(cached) " >&6 87859d794632Smrgelse 87869d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87879d794632Smrg/* end confdefs.h. */ 87889d794632Smrgint i; 87899d794632Smrg_ACEOF 87909d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 87919d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 87929d794632Smrgelse 87939d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 87949d794632Smrgfi 87959d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 87969d794632Smrgfi 87979d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 87989d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 87999d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 88009d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88019d794632Smrgfi 88029d794632Smrg 88039d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 88049d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 88059d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88069d794632Smrg fi 88079d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88089d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 88099d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 88109d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 88119d794632Smrg $as_echo_n "(cached) " >&6 88129d794632Smrgelse 88139d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88149d794632Smrg/* end confdefs.h. */ 88159d794632Smrgint i; 88169d794632Smrg_ACEOF 88179d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 88189d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 88199d794632Smrgelse 88209d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 88219d794632Smrgfi 88229d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 88239d794632Smrgfi 88249d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 88259d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 88269d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 88279d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88289d794632Smrgfi 88299d794632Smrg 88309d794632Smrgfound="no" 88319d794632Smrg 88329d794632Smrg if test $found = "no" ; then 88339d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 88349d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88359d794632Smrg fi 88369d794632Smrg 88379d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 88389d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88399d794632Smrg fi 88409d794632Smrg 88419d794632Smrg CFLAGS="$CFLAGS -Wmain" 88429d794632Smrg 88439d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 88449d794632Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; } 88459d794632Smrg cacheid=xorg_cv_cc_flag__Wmain 88469d794632Smrg if eval \${$cacheid+:} false; then : 88479d794632Smrg $as_echo_n "(cached) " >&6 88489d794632Smrgelse 88499d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88509d794632Smrg/* end confdefs.h. */ 88519d794632Smrgint i; 88529d794632Smrgint 88539d794632Smrgmain () 88549d794632Smrg{ 88559d794632Smrg 88569d794632Smrg ; 88579d794632Smrg return 0; 88589d794632Smrg} 88599d794632Smrg_ACEOF 88609d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 88619d794632Smrg eval $cacheid=yes 88629d794632Smrgelse 88639d794632Smrg eval $cacheid=no 88649d794632Smrgfi 88659d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 88669d794632Smrg conftest$ac_exeext conftest.$ac_ext 88679d794632Smrgfi 88689d794632Smrg 88699d794632Smrg 88709d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 88719d794632Smrg 88729d794632Smrg eval supported=\$$cacheid 88739d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88749d794632Smrg$as_echo "$supported" >&6; } 88759d794632Smrg if test "$supported" = "yes" ; then 88769d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 88779d794632Smrg found="yes" 88789d794632Smrg fi 88799d794632Smrg fi 88809d794632Smrg 88819d794632Smrg 88829d794632Smrg 88839d794632Smrg 88849d794632Smrg 88859d794632Smrg 88869d794632Smrg 88879d794632Smrg 88889d794632Smrg 88899d794632Smrg 88909d794632Smrg 88919d794632Smrg 88929d794632Smrg 88939d794632Smrg 88949d794632Smrg 88959d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 88969d794632Smrg 88979d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 88989d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88999d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 89009d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 89019d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 89029d794632Smrg $as_echo_n "(cached) " >&6 89039d794632Smrgelse 89049d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89059d794632Smrg/* end confdefs.h. */ 89069d794632Smrgint i; 89079d794632Smrg_ACEOF 89089d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 89099d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 89109d794632Smrgelse 89119d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 89129d794632Smrgfi 89139d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 89149d794632Smrgfi 89159d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 89169d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 89179d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 89189d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89199d794632Smrgfi 89209d794632Smrg 89219d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 89229d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 89239d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89249d794632Smrg fi 89259d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89269d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 89279d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 89289d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 89299d794632Smrg $as_echo_n "(cached) " >&6 89309d794632Smrgelse 89319d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89329d794632Smrg/* end confdefs.h. */ 89339d794632Smrgint i; 89349d794632Smrg_ACEOF 89359d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 89369d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 89379d794632Smrgelse 89389d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 89399d794632Smrgfi 89409d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 89419d794632Smrgfi 89429d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 89439d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 89449d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 89459d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89469d794632Smrgfi 89479d794632Smrg 89489d794632Smrgfound="no" 89499d794632Smrg 89509d794632Smrg if test $found = "no" ; then 89519d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 89529d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89539d794632Smrg fi 89549d794632Smrg 89559d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 89569d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89579d794632Smrg fi 89589d794632Smrg 89599d794632Smrg CFLAGS="$CFLAGS -Wmissing-braces" 89609d794632Smrg 89619d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 89629d794632Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 89639d794632Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 89649d794632Smrg if eval \${$cacheid+:} false; then : 89659d794632Smrg $as_echo_n "(cached) " >&6 89669d794632Smrgelse 89679d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89689d794632Smrg/* end confdefs.h. */ 89699d794632Smrgint i; 89709d794632Smrgint 89719d794632Smrgmain () 89729d794632Smrg{ 89739d794632Smrg 89749d794632Smrg ; 89759d794632Smrg return 0; 89769d794632Smrg} 89779d794632Smrg_ACEOF 89789d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 89799d794632Smrg eval $cacheid=yes 89809d794632Smrgelse 89819d794632Smrg eval $cacheid=no 89829d794632Smrgfi 89839d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 89849d794632Smrg conftest$ac_exeext conftest.$ac_ext 89859d794632Smrgfi 89869d794632Smrg 89879d794632Smrg 89889d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 89899d794632Smrg 89909d794632Smrg eval supported=\$$cacheid 89919d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 89929d794632Smrg$as_echo "$supported" >&6; } 89939d794632Smrg if test "$supported" = "yes" ; then 89949d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 89959d794632Smrg found="yes" 89969d794632Smrg fi 89979d794632Smrg fi 89989d794632Smrg 89999d794632Smrg 90009d794632Smrg 90019d794632Smrg 90029d794632Smrg 90039d794632Smrg 90049d794632Smrg 90059d794632Smrg 90069d794632Smrg 90079d794632Smrg 90089d794632Smrg 90099d794632Smrg 90109d794632Smrg 90119d794632Smrg 90129d794632Smrg 90139d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 90149d794632Smrg 90159d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 90169d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90179d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 90189d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 90199d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 90209d794632Smrg $as_echo_n "(cached) " >&6 90219d794632Smrgelse 90229d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90239d794632Smrg/* end confdefs.h. */ 90249d794632Smrgint i; 90259d794632Smrg_ACEOF 90269d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 90279d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 90289d794632Smrgelse 90299d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 90309d794632Smrgfi 90319d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 90329d794632Smrgfi 90339d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 90349d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 90359d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 90369d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90379d794632Smrgfi 90389d794632Smrg 90399d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 90409d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 90419d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90429d794632Smrg fi 90439d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90449d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 90459d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 90469d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 90479d794632Smrg $as_echo_n "(cached) " >&6 90489d794632Smrgelse 90499d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90509d794632Smrg/* end confdefs.h. */ 90519d794632Smrgint i; 90529d794632Smrg_ACEOF 90539d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 90549d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 90559d794632Smrgelse 90569d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 90579d794632Smrgfi 90589d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 90599d794632Smrgfi 90609d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 90619d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 90629d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 90639d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 90649d794632Smrgfi 90659d794632Smrg 90669d794632Smrgfound="no" 90679d794632Smrg 90689d794632Smrg if test $found = "no" ; then 90699d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 90709d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90719d794632Smrg fi 90729d794632Smrg 90739d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 90749d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 90759d794632Smrg fi 90769d794632Smrg 90779d794632Smrg CFLAGS="$CFLAGS -Wsequence-point" 90789d794632Smrg 90799d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 90809d794632Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 90819d794632Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 90829d794632Smrg if eval \${$cacheid+:} false; then : 90839d794632Smrg $as_echo_n "(cached) " >&6 90849d794632Smrgelse 90859d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90869d794632Smrg/* end confdefs.h. */ 90879d794632Smrgint i; 90889d794632Smrgint 90899d794632Smrgmain () 90909d794632Smrg{ 90919d794632Smrg 90929d794632Smrg ; 90939d794632Smrg return 0; 90949d794632Smrg} 90959d794632Smrg_ACEOF 90969d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 90979d794632Smrg eval $cacheid=yes 90989d794632Smrgelse 90999d794632Smrg eval $cacheid=no 91009d794632Smrgfi 91019d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 91029d794632Smrg conftest$ac_exeext conftest.$ac_ext 91039d794632Smrgfi 91049d794632Smrg 91059d794632Smrg 91069d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91079d794632Smrg 91089d794632Smrg eval supported=\$$cacheid 91099d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 91109d794632Smrg$as_echo "$supported" >&6; } 91119d794632Smrg if test "$supported" = "yes" ; then 91129d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 91139d794632Smrg found="yes" 91149d794632Smrg fi 91159d794632Smrg fi 91169d794632Smrg 91179d794632Smrg 91189d794632Smrg 91199d794632Smrg 91209d794632Smrg 91219d794632Smrg 91229d794632Smrg 91239d794632Smrg 91249d794632Smrg 91259d794632Smrg 91269d794632Smrg 91279d794632Smrg 91289d794632Smrg 91299d794632Smrg 91309d794632Smrg 91319d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 91329d794632Smrg 91339d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 91349d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91359d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 91369d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 91379d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 91389d794632Smrg $as_echo_n "(cached) " >&6 91399d794632Smrgelse 91409d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91419d794632Smrg/* end confdefs.h. */ 91429d794632Smrgint i; 91439d794632Smrg_ACEOF 91449d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 91459d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 91469d794632Smrgelse 91479d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 91489d794632Smrgfi 91499d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 91509d794632Smrgfi 91519d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 91529d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 91539d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 91549d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91559d794632Smrgfi 91569d794632Smrg 91579d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 91589d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 91599d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91609d794632Smrg fi 91619d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91629d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 91639d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 91649d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 91659d794632Smrg $as_echo_n "(cached) " >&6 91669d794632Smrgelse 91679d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 91689d794632Smrg/* end confdefs.h. */ 91699d794632Smrgint i; 91709d794632Smrg_ACEOF 91719d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 91729d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 91739d794632Smrgelse 91749d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 91759d794632Smrgfi 91769d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 91779d794632Smrgfi 91789d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 91799d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 91809d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 91819d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 91829d794632Smrgfi 91839d794632Smrg 91849d794632Smrgfound="no" 91859d794632Smrg 91869d794632Smrg if test $found = "no" ; then 91879d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 91889d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91899d794632Smrg fi 91909d794632Smrg 91919d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 91929d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91939d794632Smrg fi 91949d794632Smrg 91959d794632Smrg CFLAGS="$CFLAGS -Wreturn-type" 91969d794632Smrg 91979d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 91989d794632Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 91999d794632Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 92009d794632Smrg if eval \${$cacheid+:} false; then : 92019d794632Smrg $as_echo_n "(cached) " >&6 92029d794632Smrgelse 92039d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92049d794632Smrg/* end confdefs.h. */ 92059d794632Smrgint i; 92069d794632Smrgint 92079d794632Smrgmain () 92089d794632Smrg{ 92099d794632Smrg 92109d794632Smrg ; 92119d794632Smrg return 0; 92129d794632Smrg} 92139d794632Smrg_ACEOF 92149d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 92159d794632Smrg eval $cacheid=yes 92169d794632Smrgelse 92179d794632Smrg eval $cacheid=no 92189d794632Smrgfi 92199d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 92209d794632Smrg conftest$ac_exeext conftest.$ac_ext 92219d794632Smrgfi 92229d794632Smrg 92239d794632Smrg 92249d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92259d794632Smrg 92269d794632Smrg eval supported=\$$cacheid 92279d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 92289d794632Smrg$as_echo "$supported" >&6; } 92299d794632Smrg if test "$supported" = "yes" ; then 92309d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 92319d794632Smrg found="yes" 92329d794632Smrg fi 92339d794632Smrg fi 92349d794632Smrg 92359d794632Smrg 92369d794632Smrg 92379d794632Smrg 92389d794632Smrg 92399d794632Smrg 92409d794632Smrg 92419d794632Smrg 92429d794632Smrg 92439d794632Smrg 92449d794632Smrg 92459d794632Smrg 92469d794632Smrg 92479d794632Smrg 92489d794632Smrg 92499d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 92509d794632Smrg 92519d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 92529d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92539d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 92549d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 92559d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 92569d794632Smrg $as_echo_n "(cached) " >&6 92579d794632Smrgelse 92589d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92599d794632Smrg/* end confdefs.h. */ 92609d794632Smrgint i; 92619d794632Smrg_ACEOF 92629d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 92639d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 92649d794632Smrgelse 92659d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 92669d794632Smrgfi 92679d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 92689d794632Smrgfi 92699d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 92709d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 92719d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 92729d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 92739d794632Smrgfi 92749d794632Smrg 92759d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 92769d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 92779d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 92789d794632Smrg fi 92799d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92809d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 92819d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 92829d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 92839d794632Smrg $as_echo_n "(cached) " >&6 92849d794632Smrgelse 92859d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 92869d794632Smrg/* end confdefs.h. */ 92879d794632Smrgint i; 92889d794632Smrg_ACEOF 92899d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 92909d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 92919d794632Smrgelse 92929d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 92939d794632Smrgfi 92949d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 92959d794632Smrgfi 92969d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 92979d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 92989d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 92999d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93009d794632Smrgfi 93019d794632Smrg 93029d794632Smrgfound="no" 93039d794632Smrg 93049d794632Smrg if test $found = "no" ; then 93059d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 93069d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93079d794632Smrg fi 93089d794632Smrg 93099d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 93109d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93119d794632Smrg fi 93129d794632Smrg 93139d794632Smrg CFLAGS="$CFLAGS -Wtrigraphs" 93149d794632Smrg 93159d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 93169d794632Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 93179d794632Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 93189d794632Smrg if eval \${$cacheid+:} false; then : 93199d794632Smrg $as_echo_n "(cached) " >&6 93209d794632Smrgelse 93219d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93229d794632Smrg/* end confdefs.h. */ 93239d794632Smrgint i; 93249d794632Smrgint 93259d794632Smrgmain () 93269d794632Smrg{ 93279d794632Smrg 93289d794632Smrg ; 93299d794632Smrg return 0; 93309d794632Smrg} 93319d794632Smrg_ACEOF 93329d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 93339d794632Smrg eval $cacheid=yes 93349d794632Smrgelse 93359d794632Smrg eval $cacheid=no 93369d794632Smrgfi 93379d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 93389d794632Smrg conftest$ac_exeext conftest.$ac_ext 93399d794632Smrgfi 93409d794632Smrg 93419d794632Smrg 93429d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93439d794632Smrg 93449d794632Smrg eval supported=\$$cacheid 93459d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 93469d794632Smrg$as_echo "$supported" >&6; } 93479d794632Smrg if test "$supported" = "yes" ; then 93489d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 93499d794632Smrg found="yes" 93509d794632Smrg fi 93519d794632Smrg fi 93529d794632Smrg 93539d794632Smrg 93549d794632Smrg 93559d794632Smrg 93569d794632Smrg 93579d794632Smrg 93589d794632Smrg 93599d794632Smrg 93609d794632Smrg 93619d794632Smrg 93629d794632Smrg 93639d794632Smrg 93649d794632Smrg 93659d794632Smrg 93669d794632Smrg 93679d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 93689d794632Smrg 93699d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 93709d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93719d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 93729d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 93739d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 93749d794632Smrg $as_echo_n "(cached) " >&6 93759d794632Smrgelse 93769d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 93779d794632Smrg/* end confdefs.h. */ 93789d794632Smrgint i; 93799d794632Smrg_ACEOF 93809d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 93819d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 93829d794632Smrgelse 93839d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 93849d794632Smrgfi 93859d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 93869d794632Smrgfi 93879d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 93889d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 93899d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 93909d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 93919d794632Smrgfi 93929d794632Smrg 93939d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 93949d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 93959d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93969d794632Smrg fi 93979d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93989d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 93999d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 94009d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 94019d794632Smrg $as_echo_n "(cached) " >&6 94029d794632Smrgelse 94039d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94049d794632Smrg/* end confdefs.h. */ 94059d794632Smrgint i; 94069d794632Smrg_ACEOF 94079d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 94089d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 94099d794632Smrgelse 94109d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 94119d794632Smrgfi 94129d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 94139d794632Smrgfi 94149d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 94159d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 94169d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 94179d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94189d794632Smrgfi 94199d794632Smrg 94209d794632Smrgfound="no" 94219d794632Smrg 94229d794632Smrg if test $found = "no" ; then 94239d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 94249d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94259d794632Smrg fi 94269d794632Smrg 94279d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 94289d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94299d794632Smrg fi 94309d794632Smrg 94319d794632Smrg CFLAGS="$CFLAGS -Warray-bounds" 94329d794632Smrg 94339d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 94349d794632Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 94359d794632Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 94369d794632Smrg if eval \${$cacheid+:} false; then : 94379d794632Smrg $as_echo_n "(cached) " >&6 94389d794632Smrgelse 94399d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94409d794632Smrg/* end confdefs.h. */ 94419d794632Smrgint i; 94429d794632Smrgint 94439d794632Smrgmain () 94449d794632Smrg{ 94459d794632Smrg 94469d794632Smrg ; 94479d794632Smrg return 0; 94489d794632Smrg} 94499d794632Smrg_ACEOF 94509d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 94519d794632Smrg eval $cacheid=yes 94529d794632Smrgelse 94539d794632Smrg eval $cacheid=no 94549d794632Smrgfi 94559d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 94569d794632Smrg conftest$ac_exeext conftest.$ac_ext 94579d794632Smrgfi 94589d794632Smrg 94599d794632Smrg 94609d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 94619d794632Smrg 94629d794632Smrg eval supported=\$$cacheid 94639d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 94649d794632Smrg$as_echo "$supported" >&6; } 94659d794632Smrg if test "$supported" = "yes" ; then 94669d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 94679d794632Smrg found="yes" 94689d794632Smrg fi 94699d794632Smrg fi 94709d794632Smrg 94719d794632Smrg 94729d794632Smrg 94739d794632Smrg 94749d794632Smrg 94759d794632Smrg 94769d794632Smrg 94779d794632Smrg 94789d794632Smrg 94799d794632Smrg 94809d794632Smrg 94819d794632Smrg 94829d794632Smrg 94839d794632Smrg 94849d794632Smrg 94859d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 94869d794632Smrg 94879d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 94889d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94899d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 94909d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 94919d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 94929d794632Smrg $as_echo_n "(cached) " >&6 94939d794632Smrgelse 94949d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 94959d794632Smrg/* end confdefs.h. */ 94969d794632Smrgint i; 94979d794632Smrg_ACEOF 94989d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 94999d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 95009d794632Smrgelse 95019d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 95029d794632Smrgfi 95039d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 95049d794632Smrgfi 95059d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 95069d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 95079d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 95089d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95099d794632Smrgfi 95109d794632Smrg 95119d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 95129d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 95139d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95149d794632Smrg fi 95159d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95169d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 95179d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 95189d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 95199d794632Smrg $as_echo_n "(cached) " >&6 95209d794632Smrgelse 95219d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95229d794632Smrg/* end confdefs.h. */ 95239d794632Smrgint i; 95249d794632Smrg_ACEOF 95259d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 95269d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 95279d794632Smrgelse 95289d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 95299d794632Smrgfi 95309d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 95319d794632Smrgfi 95329d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 95339d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 95349d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 95359d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95369d794632Smrgfi 95379d794632Smrg 95389d794632Smrgfound="no" 95399d794632Smrg 95409d794632Smrg if test $found = "no" ; then 95419d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 95429d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95439d794632Smrg fi 95449d794632Smrg 95459d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 95469d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95479d794632Smrg fi 95489d794632Smrg 95499d794632Smrg CFLAGS="$CFLAGS -Wwrite-strings" 95509d794632Smrg 95519d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 95529d794632Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 95539d794632Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 95549d794632Smrg if eval \${$cacheid+:} false; then : 95559d794632Smrg $as_echo_n "(cached) " >&6 95569d794632Smrgelse 95579d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95589d794632Smrg/* end confdefs.h. */ 95599d794632Smrgint i; 95609d794632Smrgint 95619d794632Smrgmain () 95629d794632Smrg{ 95639d794632Smrg 95649d794632Smrg ; 95659d794632Smrg return 0; 95669d794632Smrg} 95679d794632Smrg_ACEOF 95689d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 95699d794632Smrg eval $cacheid=yes 95709d794632Smrgelse 95719d794632Smrg eval $cacheid=no 95729d794632Smrgfi 95739d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 95749d794632Smrg conftest$ac_exeext conftest.$ac_ext 95759d794632Smrgfi 95769d794632Smrg 95779d794632Smrg 95789d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 95799d794632Smrg 95809d794632Smrg eval supported=\$$cacheid 95819d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 95829d794632Smrg$as_echo "$supported" >&6; } 95839d794632Smrg if test "$supported" = "yes" ; then 95849d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 95859d794632Smrg found="yes" 95869d794632Smrg fi 95879d794632Smrg fi 95889d794632Smrg 95899d794632Smrg 95909d794632Smrg 95919d794632Smrg 95929d794632Smrg 95939d794632Smrg 95949d794632Smrg 95959d794632Smrg 95969d794632Smrg 95979d794632Smrg 95989d794632Smrg 95999d794632Smrg 96009d794632Smrg 96019d794632Smrg 96029d794632Smrg 96039d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 96049d794632Smrg 96059d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 96069d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96079d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 96089d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 96099d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 96109d794632Smrg $as_echo_n "(cached) " >&6 96119d794632Smrgelse 96129d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96139d794632Smrg/* end confdefs.h. */ 96149d794632Smrgint i; 96159d794632Smrg_ACEOF 96169d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 96179d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 96189d794632Smrgelse 96199d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 96209d794632Smrgfi 96219d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 96229d794632Smrgfi 96239d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 96249d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 96259d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 96269d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96279d794632Smrgfi 96289d794632Smrg 96299d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 96309d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 96319d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96329d794632Smrg fi 96339d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96349d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 96359d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 96369d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 96379d794632Smrg $as_echo_n "(cached) " >&6 96389d794632Smrgelse 96399d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96409d794632Smrg/* end confdefs.h. */ 96419d794632Smrgint i; 96429d794632Smrg_ACEOF 96439d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 96449d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 96459d794632Smrgelse 96469d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 96479d794632Smrgfi 96489d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 96499d794632Smrgfi 96509d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 96519d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 96529d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 96539d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96549d794632Smrgfi 96559d794632Smrg 96569d794632Smrgfound="no" 96579d794632Smrg 96589d794632Smrg if test $found = "no" ; then 96599d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 96609d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96619d794632Smrg fi 96629d794632Smrg 96639d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 96649d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96659d794632Smrg fi 96669d794632Smrg 96679d794632Smrg CFLAGS="$CFLAGS -Waddress" 96689d794632Smrg 96699d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 96709d794632Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; } 96719d794632Smrg cacheid=xorg_cv_cc_flag__Waddress 96729d794632Smrg if eval \${$cacheid+:} false; then : 96739d794632Smrg $as_echo_n "(cached) " >&6 96749d794632Smrgelse 96759d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96769d794632Smrg/* end confdefs.h. */ 96779d794632Smrgint i; 96789d794632Smrgint 96799d794632Smrgmain () 96809d794632Smrg{ 96819d794632Smrg 96829d794632Smrg ; 96839d794632Smrg return 0; 96849d794632Smrg} 96859d794632Smrg_ACEOF 96869d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 96879d794632Smrg eval $cacheid=yes 96889d794632Smrgelse 96899d794632Smrg eval $cacheid=no 96909d794632Smrgfi 96919d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 96929d794632Smrg conftest$ac_exeext conftest.$ac_ext 96939d794632Smrgfi 96949d794632Smrg 96959d794632Smrg 96969d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 96979d794632Smrg 96989d794632Smrg eval supported=\$$cacheid 96999d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 97009d794632Smrg$as_echo "$supported" >&6; } 97019d794632Smrg if test "$supported" = "yes" ; then 97029d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 97039d794632Smrg found="yes" 97049d794632Smrg fi 97059d794632Smrg fi 97069d794632Smrg 97079d794632Smrg 97089d794632Smrg 97099d794632Smrg 97109d794632Smrg 97119d794632Smrg 97129d794632Smrg 97139d794632Smrg 97149d794632Smrg 97159d794632Smrg 97169d794632Smrg 97179d794632Smrg 97189d794632Smrg 97199d794632Smrg 97209d794632Smrg 97219d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 97229d794632Smrg 97239d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 97249d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97259d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 97269d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 97279d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 97289d794632Smrg $as_echo_n "(cached) " >&6 97299d794632Smrgelse 97309d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97319d794632Smrg/* end confdefs.h. */ 97329d794632Smrgint i; 97339d794632Smrg_ACEOF 97349d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 97359d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 97369d794632Smrgelse 97379d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 97389d794632Smrgfi 97399d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97409d794632Smrgfi 97419d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 97429d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 97439d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 97449d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 97459d794632Smrgfi 97469d794632Smrg 97479d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 97489d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 97499d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97509d794632Smrg fi 97519d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97529d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 97539d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 97549d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 97559d794632Smrg $as_echo_n "(cached) " >&6 97569d794632Smrgelse 97579d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97589d794632Smrg/* end confdefs.h. */ 97599d794632Smrgint i; 97609d794632Smrg_ACEOF 97619d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 97629d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 97639d794632Smrgelse 97649d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 97659d794632Smrgfi 97669d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97679d794632Smrgfi 97689d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 97699d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 97709d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 97719d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 97729d794632Smrgfi 97739d794632Smrg 97749d794632Smrgfound="no" 97759d794632Smrg 97769d794632Smrg if test $found = "no" ; then 97779d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 97789d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97799d794632Smrg fi 97809d794632Smrg 97819d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 97829d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 97839d794632Smrg fi 97849d794632Smrg 97859d794632Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 97869d794632Smrg 97879d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 97889d794632Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 97899d794632Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 97909d794632Smrg if eval \${$cacheid+:} false; then : 97919d794632Smrg $as_echo_n "(cached) " >&6 97929d794632Smrgelse 97939d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97949d794632Smrg/* end confdefs.h. */ 97959d794632Smrgint i; 97969d794632Smrgint 97979d794632Smrgmain () 97989d794632Smrg{ 97999d794632Smrg 98009d794632Smrg ; 98019d794632Smrg return 0; 98029d794632Smrg} 98039d794632Smrg_ACEOF 98049d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 98059d794632Smrg eval $cacheid=yes 98069d794632Smrgelse 98079d794632Smrg eval $cacheid=no 98089d794632Smrgfi 98099d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 98109d794632Smrg conftest$ac_exeext conftest.$ac_ext 98119d794632Smrgfi 98129d794632Smrg 98139d794632Smrg 98149d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98159d794632Smrg 98169d794632Smrg eval supported=\$$cacheid 98179d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 98189d794632Smrg$as_echo "$supported" >&6; } 98199d794632Smrg if test "$supported" = "yes" ; then 98209d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 98219d794632Smrg found="yes" 98229d794632Smrg fi 98239d794632Smrg fi 98249d794632Smrg 98259d794632Smrg 98269d794632Smrg 98279d794632Smrg 98289d794632Smrg 98299d794632Smrg 98309d794632Smrg 98319d794632Smrg 98329d794632Smrg 98339d794632Smrg 98349d794632Smrg 98359d794632Smrg 98369d794632Smrg 98379d794632Smrg 98389d794632Smrg 98399d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 98409d794632Smrg 98419d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 98429d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98439d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 98449d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 98459d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 98469d794632Smrg $as_echo_n "(cached) " >&6 98479d794632Smrgelse 98489d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98499d794632Smrg/* end confdefs.h. */ 98509d794632Smrgint i; 98519d794632Smrg_ACEOF 98529d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 98539d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 98549d794632Smrgelse 98559d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 98569d794632Smrgfi 98579d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98589d794632Smrgfi 98599d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 98609d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 98619d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 98629d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98639d794632Smrgfi 98649d794632Smrg 98659d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 98669d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 98679d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98689d794632Smrg fi 98699d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98709d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 98719d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 98729d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 98739d794632Smrg $as_echo_n "(cached) " >&6 98749d794632Smrgelse 98759d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98769d794632Smrg/* end confdefs.h. */ 98779d794632Smrgint i; 98789d794632Smrg_ACEOF 98799d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 98809d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 98819d794632Smrgelse 98829d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 98839d794632Smrgfi 98849d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98859d794632Smrgfi 98869d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 98879d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 98889d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 98899d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 98909d794632Smrgfi 98919d794632Smrg 98929d794632Smrgfound="no" 98939d794632Smrg 98949d794632Smrg if test $found = "no" ; then 98959d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 98969d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 98979d794632Smrg fi 98989d794632Smrg 98999d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 99009d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99019d794632Smrg fi 99029d794632Smrg 99039d794632Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 99049d794632Smrg 99059d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 99069d794632Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 99079d794632Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 99089d794632Smrg if eval \${$cacheid+:} false; then : 99099d794632Smrg $as_echo_n "(cached) " >&6 99109d794632Smrgelse 99119d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99129d794632Smrg/* end confdefs.h. */ 99139d794632Smrgint i; 99149d794632Smrgint 99159d794632Smrgmain () 99169d794632Smrg{ 99179d794632Smrg 99189d794632Smrg ; 99199d794632Smrg return 0; 99209d794632Smrg} 99219d794632Smrg_ACEOF 99229d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 99239d794632Smrg eval $cacheid=yes 99249d794632Smrgelse 99259d794632Smrg eval $cacheid=no 99269d794632Smrgfi 99279d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 99289d794632Smrg conftest$ac_exeext conftest.$ac_ext 99299d794632Smrgfi 99309d794632Smrg 99319d794632Smrg 99329d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 99339d794632Smrg 99349d794632Smrg eval supported=\$$cacheid 99359d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 99369d794632Smrg$as_echo "$supported" >&6; } 99379d794632Smrg if test "$supported" = "yes" ; then 99389d794632Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 99399d794632Smrg found="yes" 99409d794632Smrg fi 99419d794632Smrg fi 99429d794632Smrg 99439d794632Smrg 99449d794632Smrgfi 99459d794632Smrg 99469d794632Smrg 99479d794632Smrg 99489d794632Smrg 99499d794632Smrg 99509d794632Smrg 99519d794632Smrg 99529d794632Smrg CWARNFLAGS="$BASE_CFLAGS" 99539d794632Smrg if test "x$GCC" = xyes ; then 99549d794632Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 99559d794632Smrg fi 99569d794632Smrg 99579d794632Smrg 99589d794632Smrg 99599d794632Smrg 99609d794632Smrg 99619d794632Smrg 99629d794632Smrg 99639d794632Smrg 99649d794632Smrg# Check whether --enable-strict-compilation was given. 99659d794632Smrgif test "${enable_strict_compilation+set}" = set; then : 99669d794632Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 99679d794632Smrgelse 99689d794632Smrg STRICT_COMPILE=no 99699d794632Smrgfi 99709d794632Smrg 99719d794632Smrg 99729d794632Smrg 99739d794632Smrg 99749d794632Smrg 99759d794632Smrg 99769d794632SmrgSTRICT_CFLAGS="" 99779d794632Smrg 99789d794632Smrg 99799d794632Smrg 99809d794632Smrg 99819d794632Smrg 99829d794632Smrg 99839d794632Smrg 99849d794632Smrg 99859d794632Smrg 99869d794632Smrg 99879d794632Smrg 99889d794632Smrg 99899d794632Smrg 99909d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 99919d794632Smrg 99929d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 99939d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99949d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 99959d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 99969d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 99979d794632Smrg $as_echo_n "(cached) " >&6 99989d794632Smrgelse 99999d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100009d794632Smrg/* end confdefs.h. */ 100019d794632Smrgint i; 100029d794632Smrg_ACEOF 100039d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 100049d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 100059d794632Smrgelse 100069d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 100079d794632Smrgfi 100089d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 100099d794632Smrgfi 100109d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 100119d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 100129d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 100139d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 100149d794632Smrgfi 100159d794632Smrg 100169d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 100179d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 100189d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100199d794632Smrg fi 100209d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100219d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 100229d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 100239d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 100249d794632Smrg $as_echo_n "(cached) " >&6 100259d794632Smrgelse 100269d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100279d794632Smrg/* end confdefs.h. */ 100289d794632Smrgint i; 100299d794632Smrg_ACEOF 100309d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 100319d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 100329d794632Smrgelse 100339d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 100349d794632Smrgfi 100359d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 100369d794632Smrgfi 100379d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 100389d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 100399d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 100409d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 100419d794632Smrgfi 100429d794632Smrg 100439d794632Smrgfound="no" 100449d794632Smrg 100459d794632Smrg if test $found = "no" ; then 100469d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 100479d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100489d794632Smrg fi 100499d794632Smrg 100509d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 100519d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100529d794632Smrg fi 100539d794632Smrg 100549d794632Smrg CFLAGS="$CFLAGS -pedantic" 100559d794632Smrg 100569d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 100579d794632Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; } 100589d794632Smrg cacheid=xorg_cv_cc_flag__pedantic 100599d794632Smrg if eval \${$cacheid+:} false; then : 100609d794632Smrg $as_echo_n "(cached) " >&6 100619d794632Smrgelse 100629d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100639d794632Smrg/* end confdefs.h. */ 100649d794632Smrgint i; 100659d794632Smrgint 100669d794632Smrgmain () 100679d794632Smrg{ 100689d794632Smrg 100699d794632Smrg ; 100709d794632Smrg return 0; 100719d794632Smrg} 100729d794632Smrg_ACEOF 100739d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 100749d794632Smrg eval $cacheid=yes 100759d794632Smrgelse 100769d794632Smrg eval $cacheid=no 100779d794632Smrgfi 100789d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 100799d794632Smrg conftest$ac_exeext conftest.$ac_ext 100809d794632Smrgfi 100819d794632Smrg 100829d794632Smrg 100839d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 100849d794632Smrg 100859d794632Smrg eval supported=\$$cacheid 100869d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 100879d794632Smrg$as_echo "$supported" >&6; } 100889d794632Smrg if test "$supported" = "yes" ; then 100899d794632Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 100909d794632Smrg found="yes" 100919d794632Smrg fi 100929d794632Smrg fi 100939d794632Smrg 100949d794632Smrg 100959d794632Smrg 100969d794632Smrg 100979d794632Smrg 100989d794632Smrg 100999d794632Smrg 101009d794632Smrg 101019d794632Smrg 101029d794632Smrg 101039d794632Smrg 101049d794632Smrg 101059d794632Smrg 101069d794632Smrg 101079d794632Smrg 101089d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 101099d794632Smrg 101109d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 101119d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101129d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 101139d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 101149d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 101159d794632Smrg $as_echo_n "(cached) " >&6 101169d794632Smrgelse 101179d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101189d794632Smrg/* end confdefs.h. */ 101199d794632Smrgint i; 101209d794632Smrg_ACEOF 101219d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 101229d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 101239d794632Smrgelse 101249d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 101259d794632Smrgfi 101269d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 101279d794632Smrgfi 101289d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 101299d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 101309d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 101319d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101329d794632Smrgfi 101339d794632Smrg 101349d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 101359d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 101369d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101379d794632Smrg fi 101389d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101399d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 101409d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 101419d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 101429d794632Smrg $as_echo_n "(cached) " >&6 101439d794632Smrgelse 101449d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101459d794632Smrg/* end confdefs.h. */ 101469d794632Smrgint i; 101479d794632Smrg_ACEOF 101489d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 101499d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 101509d794632Smrgelse 101519d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 101529d794632Smrgfi 101539d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 101549d794632Smrgfi 101559d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 101569d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 101579d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 101589d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 101599d794632Smrgfi 101609d794632Smrg 101619d794632Smrgfound="no" 101629d794632Smrg 101639d794632Smrg if test $found = "no" ; then 101649d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 101659d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101669d794632Smrg fi 101679d794632Smrg 101689d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 101699d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101709d794632Smrg fi 101719d794632Smrg 101729d794632Smrg CFLAGS="$CFLAGS -Werror" 101739d794632Smrg 101749d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 101759d794632Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; } 101769d794632Smrg cacheid=xorg_cv_cc_flag__Werror 101779d794632Smrg if eval \${$cacheid+:} false; then : 101789d794632Smrg $as_echo_n "(cached) " >&6 101799d794632Smrgelse 101809d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101819d794632Smrg/* end confdefs.h. */ 101829d794632Smrgint i; 101839d794632Smrgint 101849d794632Smrgmain () 101859d794632Smrg{ 101869d794632Smrg 101879d794632Smrg ; 101889d794632Smrg return 0; 101899d794632Smrg} 101909d794632Smrg_ACEOF 101919d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 101929d794632Smrg eval $cacheid=yes 101939d794632Smrgelse 101949d794632Smrg eval $cacheid=no 101959d794632Smrgfi 101969d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 101979d794632Smrg conftest$ac_exeext conftest.$ac_ext 101989d794632Smrgfi 101999d794632Smrg 102009d794632Smrg 102019d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 102029d794632Smrg 102039d794632Smrg eval supported=\$$cacheid 102049d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102059d794632Smrg$as_echo "$supported" >&6; } 102069d794632Smrg if test "$supported" = "yes" ; then 102079d794632Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 102089d794632Smrg found="yes" 102099d794632Smrg fi 102109d794632Smrg fi 102119d794632Smrg 102129d794632Smrg if test $found = "no" ; then 102139d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 102149d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102159d794632Smrg fi 102169d794632Smrg 102179d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 102189d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 102199d794632Smrg fi 102209d794632Smrg 102219d794632Smrg CFLAGS="$CFLAGS -errwarn" 102229d794632Smrg 102239d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 102249d794632Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; } 102259d794632Smrg cacheid=xorg_cv_cc_flag__errwarn 102269d794632Smrg if eval \${$cacheid+:} false; then : 102279d794632Smrg $as_echo_n "(cached) " >&6 102289d794632Smrgelse 102299d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102309d794632Smrg/* end confdefs.h. */ 102319d794632Smrgint i; 102329d794632Smrgint 102339d794632Smrgmain () 102349d794632Smrg{ 102359d794632Smrg 102369d794632Smrg ; 102379d794632Smrg return 0; 102389d794632Smrg} 102399d794632Smrg_ACEOF 102409d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 102419d794632Smrg eval $cacheid=yes 102429d794632Smrgelse 102439d794632Smrg eval $cacheid=no 102449d794632Smrgfi 102459d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 102469d794632Smrg conftest$ac_exeext conftest.$ac_ext 102479d794632Smrgfi 102489d794632Smrg 102499d794632Smrg 102509d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 102519d794632Smrg 102529d794632Smrg eval supported=\$$cacheid 102539d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102549d794632Smrg$as_echo "$supported" >&6; } 102559d794632Smrg if test "$supported" = "yes" ; then 102569d794632Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 102579d794632Smrg found="yes" 102589d794632Smrg fi 102599d794632Smrg fi 102609d794632Smrg 102619d794632Smrg 102629d794632Smrg 102639d794632Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 102649d794632Smrg# activate it with -Werror, so we add it here explicitly. 102659d794632Smrg 102669d794632Smrg 102679d794632Smrg 102689d794632Smrg 102699d794632Smrg 102709d794632Smrg 102719d794632Smrg 102729d794632Smrg 102739d794632Smrg 102749d794632Smrg 102759d794632Smrg 102769d794632Smrg 102779d794632Smrg 102789d794632Smrgxorg_testset_save_CFLAGS="$CFLAGS" 102799d794632Smrg 102809d794632Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 102819d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102829d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 102839d794632Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 102849d794632Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 102859d794632Smrg $as_echo_n "(cached) " >&6 102869d794632Smrgelse 102879d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 102889d794632Smrg/* end confdefs.h. */ 102899d794632Smrgint i; 102909d794632Smrg_ACEOF 102919d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 102929d794632Smrg xorg_cv_cc_flag_unknown_warning_option=yes 102939d794632Smrgelse 102949d794632Smrg xorg_cv_cc_flag_unknown_warning_option=no 102959d794632Smrgfi 102969d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 102979d794632Smrgfi 102989d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 102999d794632Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 103009d794632Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 103019d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 103029d794632Smrgfi 103039d794632Smrg 103049d794632Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 103059d794632Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 103069d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103079d794632Smrg fi 103089d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103099d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 103109d794632Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 103119d794632Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 103129d794632Smrg $as_echo_n "(cached) " >&6 103139d794632Smrgelse 103149d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 103159d794632Smrg/* end confdefs.h. */ 103169d794632Smrgint i; 103179d794632Smrg_ACEOF 103189d794632Smrgif ac_fn_c_try_compile "$LINENO"; then : 103199d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 103209d794632Smrgelse 103219d794632Smrg xorg_cv_cc_flag_unused_command_line_argument=no 103229d794632Smrgfi 103239d794632Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 103249d794632Smrgfi 103259d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 103269d794632Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 103279d794632Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 103289d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 103299d794632Smrgfi 103309d794632Smrg 103319d794632Smrgfound="no" 103329d794632Smrg 103339d794632Smrg if test $found = "no" ; then 103349d794632Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 103359d794632Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 103369d794632Smrg fi 103379d794632Smrg 103389d794632Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 103399d794632Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103409d794632Smrg fi 103419d794632Smrg 103429d794632Smrg CFLAGS="$CFLAGS -Werror=attributes" 103439d794632Smrg 103449d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 103459d794632Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 103469d794632Smrg cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 103479d794632Smrg if eval \${$cacheid+:} false; then : 103489d794632Smrg $as_echo_n "(cached) " >&6 103499d794632Smrgelse 103509d794632Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 103519d794632Smrg/* end confdefs.h. */ 103529d794632Smrgint i; 103539d794632Smrgint 103549d794632Smrgmain () 103559d794632Smrg{ 103569d794632Smrg 103579d794632Smrg ; 103589d794632Smrg return 0; 103599d794632Smrg} 103609d794632Smrg_ACEOF 103619d794632Smrgif ac_fn_c_try_link "$LINENO"; then : 103629d794632Smrg eval $cacheid=yes 103639d794632Smrgelse 103649d794632Smrg eval $cacheid=no 103659d794632Smrgfi 103669d794632Smrgrm -f core conftest.err conftest.$ac_objext \ 103679d794632Smrg conftest$ac_exeext conftest.$ac_ext 103689d794632Smrgfi 103699d794632Smrg 103709d794632Smrg 103719d794632Smrg CFLAGS="$xorg_testset_save_CFLAGS" 103729d794632Smrg 103739d794632Smrg eval supported=\$$cacheid 103749d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 103759d794632Smrg$as_echo "$supported" >&6; } 103769d794632Smrg if test "$supported" = "yes" ; then 103779d794632Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 103789d794632Smrg found="yes" 103799d794632Smrg fi 103809d794632Smrg fi 103819d794632Smrg 103829d794632Smrg 103839d794632Smrg 103849d794632Smrgif test "x$STRICT_COMPILE" = "xyes"; then 103859d794632Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 103869d794632Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 103879d794632Smrgfi 103889d794632Smrg 103899d794632Smrg 103909d794632Smrg 103919d794632Smrg 103929d794632Smrg 103939d794632Smrg 103949d794632Smrgcat >>confdefs.h <<_ACEOF 103959d794632Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 103969d794632Smrg_ACEOF 103979d794632Smrg 103989d794632Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 103999d794632Smrg if test "x$PVM" = "x"; then 104009d794632Smrg PVM="0" 104019d794632Smrg fi 104029d794632Smrg 104039d794632Smrgcat >>confdefs.h <<_ACEOF 104049d794632Smrg#define PACKAGE_VERSION_MINOR $PVM 104059d794632Smrg_ACEOF 104069d794632Smrg 104079d794632Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 104089d794632Smrg if test "x$PVP" = "x"; then 104099d794632Smrg PVP="0" 104109d794632Smrg fi 104119d794632Smrg 104129d794632Smrgcat >>confdefs.h <<_ACEOF 104139d794632Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 104149d794632Smrg_ACEOF 104159d794632Smrg 104169d794632Smrg 104179d794632Smrg 104189d794632SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 104199d794632Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 104209d794632Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 104219d794632Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 104229d794632Smrg 104239d794632Smrg 104249d794632Smrg 104259d794632Smrg 104269d794632Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 104279d794632SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 104289d794632Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 104299d794632Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 104309d794632Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 104319d794632Smrg 104329d794632Smrg 104339d794632Smrg 104349d794632Smrg 104359d794632Smrg 104369d794632Smrg 104379d794632Smrgif test x$APP_MAN_SUFFIX = x ; then 104389d794632Smrg APP_MAN_SUFFIX=1 104399d794632Smrgfi 104409d794632Smrgif test x$APP_MAN_DIR = x ; then 104419d794632Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 104429d794632Smrgfi 104439d794632Smrg 104449d794632Smrgif test x$LIB_MAN_SUFFIX = x ; then 104459fe995a9Smrg LIB_MAN_SUFFIX=3 104469fe995a9Smrgfi 104479fe995a9Smrgif test x$LIB_MAN_DIR = x ; then 104489fe995a9Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 104499fe995a9Smrgfi 104509fe995a9Smrg 104519fe995a9Smrgif test x$FILE_MAN_SUFFIX = x ; then 104529fe995a9Smrg case $host_os in 104539fe995a9Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 104549fe995a9Smrg *) FILE_MAN_SUFFIX=5 ;; 104559fe995a9Smrg esac 104569fe995a9Smrgfi 104579fe995a9Smrgif test x$FILE_MAN_DIR = x ; then 104589fe995a9Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 104599fe995a9Smrgfi 104609fe995a9Smrg 104619fe995a9Smrgif test x$MISC_MAN_SUFFIX = x ; then 104629fe995a9Smrg case $host_os in 104639fe995a9Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 104649fe995a9Smrg *) MISC_MAN_SUFFIX=7 ;; 104659fe995a9Smrg esac 104669fe995a9Smrgfi 104679fe995a9Smrgif test x$MISC_MAN_DIR = x ; then 104689fe995a9Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 104699fe995a9Smrgfi 104709fe995a9Smrg 104719fe995a9Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 104729fe995a9Smrg case $host_os in 104739fe995a9Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 104749fe995a9Smrg *) DRIVER_MAN_SUFFIX=4 ;; 104759fe995a9Smrg esac 104769fe995a9Smrgfi 104779fe995a9Smrgif test x$DRIVER_MAN_DIR = x ; then 104789fe995a9Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 104799fe995a9Smrgfi 104809fe995a9Smrg 104819fe995a9Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 104829fe995a9Smrg case $host_os in 104839fe995a9Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 104849fe995a9Smrg *) ADMIN_MAN_SUFFIX=8 ;; 104859fe995a9Smrg esac 104869fe995a9Smrgfi 104879fe995a9Smrgif test x$ADMIN_MAN_DIR = x ; then 104889fe995a9Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 104899fe995a9Smrgfi 104909fe995a9Smrg 104919fe995a9Smrg 104929fe995a9Smrg 104939fe995a9Smrg 104949fe995a9Smrg 104959fe995a9Smrg 104969fe995a9Smrg 104979fe995a9Smrg 104989fe995a9Smrg 104999fe995a9Smrg 105009fe995a9Smrg 105019fe995a9Smrg 105029fe995a9Smrg 105039fe995a9Smrg 105049fe995a9Smrg 10505b62cc08cSmrgXORG_MAN_PAGE="X Version 11" 10506b62cc08cSmrg 10507b62cc08cSmrgMAN_SUBSTS="\ 10508b62cc08cSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10509b62cc08cSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10510b62cc08cSmrg -e 's|__xservername__|Xorg|g' \ 10511b62cc08cSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 10512b62cc08cSmrg -e 's|__projectroot__|\$(prefix)|g' \ 10513b62cc08cSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10514b62cc08cSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10515b62cc08cSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10516b62cc08cSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10517b62cc08cSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10518b62cc08cSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10519b62cc08cSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10520b62cc08cSmrg 10521b62cc08cSmrg 10522b62cc08cSmrg 10523b62cc08cSmrg# Check whether --enable-silent-rules was given. 10524b62cc08cSmrgif test "${enable_silent_rules+set}" = set; then : 10525b62cc08cSmrg enableval=$enable_silent_rules; 10526b62cc08cSmrgfi 10527b62cc08cSmrg 105289d794632Smrgcase $enable_silent_rules in # ((( 105299d794632Smrg yes) AM_DEFAULT_VERBOSITY=0;; 105309d794632Smrg no) AM_DEFAULT_VERBOSITY=1;; 105319d794632Smrg *) AM_DEFAULT_VERBOSITY=0;; 10532b62cc08cSmrgesac 105339d794632Smrgam_make=${MAKE-make} 105349d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 105359d794632Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 105369d794632Smrgif ${am_cv_make_support_nested_variables+:} false; then : 105379d794632Smrg $as_echo_n "(cached) " >&6 105389d794632Smrgelse 105399d794632Smrg if $as_echo 'TRUE=$(BAR$(V)) 105409d794632SmrgBAR0=false 105419d794632SmrgBAR1=true 105429d794632SmrgV=1 105439d794632Smrgam__doit: 105449d794632Smrg @$(TRUE) 105459d794632Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 105469d794632Smrg am_cv_make_support_nested_variables=yes 105479d794632Smrgelse 105489d794632Smrg am_cv_make_support_nested_variables=no 105499d794632Smrgfi 105509d794632Smrgfi 105519d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 105529d794632Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 105539d794632Smrgif test $am_cv_make_support_nested_variables = yes; then 105549d794632Smrg AM_V='$(V)' 105559d794632Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 105569d794632Smrgelse 105579d794632Smrg AM_V=$AM_DEFAULT_VERBOSITY 105589d794632Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 105599d794632Smrgfi 10560b62cc08cSmrgAM_BACKSLASH='\' 10561b62cc08cSmrg 10562b62cc08cSmrg 105639fe995a9Smrg 10564b62cc08cSmrg# Checks for pkg-config packages 105659fe995a9Smrg 10566b62cc08cSmrgpkg_failed=no 10567b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICEAUTH" >&5 10568b62cc08cSmrg$as_echo_n "checking for ICEAUTH... " >&6; } 10569b62cc08cSmrg 10570b62cc08cSmrgif test -n "$ICEAUTH_CFLAGS"; then 10571b62cc08cSmrg pkg_cv_ICEAUTH_CFLAGS="$ICEAUTH_CFLAGS" 10572b62cc08cSmrg elif test -n "$PKG_CONFIG"; then 10573b62cc08cSmrg if test -n "$PKG_CONFIG" && \ 105749d794632Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5 105759d794632Smrg ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5 10576b62cc08cSmrg ac_status=$? 10577b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10578b62cc08cSmrg test $ac_status = 0; }; then 105799d794632Smrg pkg_cv_ICEAUTH_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 ice" 2>/dev/null` 10580b62cc08cSmrgelse 10581b62cc08cSmrg pkg_failed=yes 10582b62cc08cSmrgfi 10583b62cc08cSmrg else 10584b62cc08cSmrg pkg_failed=untried 10585b62cc08cSmrgfi 10586b62cc08cSmrgif test -n "$ICEAUTH_LIBS"; then 10587b62cc08cSmrg pkg_cv_ICEAUTH_LIBS="$ICEAUTH_LIBS" 10588b62cc08cSmrg elif test -n "$PKG_CONFIG"; then 10589b62cc08cSmrg if test -n "$PKG_CONFIG" && \ 105909d794632Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5 105919d794632Smrg ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5 10592b62cc08cSmrg ac_status=$? 10593b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10594b62cc08cSmrg test $ac_status = 0; }; then 105959d794632Smrg pkg_cv_ICEAUTH_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 ice" 2>/dev/null` 105969fe995a9Smrgelse 10597b62cc08cSmrg pkg_failed=yes 10598b62cc08cSmrgfi 10599b62cc08cSmrg else 10600b62cc08cSmrg pkg_failed=untried 106019fe995a9Smrgfi 106029fe995a9Smrg 106039fe995a9Smrg 106049fe995a9Smrg 10605b62cc08cSmrgif test $pkg_failed = yes; then 106069fe995a9Smrg 10607b62cc08cSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10608b62cc08cSmrg _pkg_short_errors_supported=yes 10609b62cc08cSmrgelse 10610b62cc08cSmrg _pkg_short_errors_supported=no 10611b62cc08cSmrgfi 10612b62cc08cSmrg if test $_pkg_short_errors_supported = yes; then 106139d794632Smrg ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.22 ice" 2>&1` 10614b62cc08cSmrg else 106159d794632Smrg ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.22 ice" 2>&1` 10616b62cc08cSmrg fi 10617b62cc08cSmrg # Put the nasty error message in config.log where it belongs 10618b62cc08cSmrg echo "$ICEAUTH_PKG_ERRORS" >&5 106199fe995a9Smrg 106209d794632Smrg as_fn_error $? "Package requirements (xproto >= 7.0.22 ice) were not met: 10621b62cc08cSmrg 10622b62cc08cSmrg$ICEAUTH_PKG_ERRORS 10623b62cc08cSmrg 10624b62cc08cSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 10625b62cc08cSmrginstalled software in a non-standard prefix. 10626b62cc08cSmrg 10627b62cc08cSmrgAlternatively, you may set the environment variables ICEAUTH_CFLAGS 10628b62cc08cSmrgand ICEAUTH_LIBS to avoid the need to call pkg-config. 106299d794632SmrgSee the pkg-config man page for more details. 106309d794632Smrg" "$LINENO" 5 10631b62cc08cSmrgelif test $pkg_failed = untried; then 10632b62cc08cSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10633b62cc08cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10634b62cc08cSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10635b62cc08cSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 10636b62cc08cSmrgpath to pkg-config. 10637b62cc08cSmrg 10638b62cc08cSmrgAlternatively, you may set the environment variables ICEAUTH_CFLAGS 10639b62cc08cSmrgand ICEAUTH_LIBS to avoid the need to call pkg-config. 10640b62cc08cSmrgSee the pkg-config man page for more details. 10641b62cc08cSmrg 10642b62cc08cSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 10643b62cc08cSmrgSee \`config.log' for more details" "$LINENO" 5; } 10644b62cc08cSmrgelse 10645b62cc08cSmrg ICEAUTH_CFLAGS=$pkg_cv_ICEAUTH_CFLAGS 10646b62cc08cSmrg ICEAUTH_LIBS=$pkg_cv_ICEAUTH_LIBS 10647b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10648b62cc08cSmrg$as_echo "yes" >&6; } 106499d794632Smrg : 10650b62cc08cSmrgfi 10651b62cc08cSmrg 10652b62cc08cSmrg 10653b62cc08cSmrg 10654b62cc08cSmrg 10655b62cc08cSmrg 10656b62cc08cSmrg 10657b62cc08cSmrg# Check whether --with-lint was given. 10658b62cc08cSmrgif test "${with_lint+set}" = set; then : 10659b62cc08cSmrg withval=$with_lint; use_lint=$withval 10660b62cc08cSmrgelse 10661b62cc08cSmrg use_lint=no 10662b62cc08cSmrgfi 10663b62cc08cSmrg 10664b62cc08cSmrg 10665b62cc08cSmrg# Obtain platform specific info like program name and options 10666b62cc08cSmrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris 10667b62cc08cSmrgcase $host_os in 10668b62cc08cSmrg *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 10669b62cc08cSmrg lint_name=splint 10670b62cc08cSmrg lint_options="-badflag" 10671b62cc08cSmrg ;; 10672b62cc08cSmrg *freebsd* | *netbsd*) 10673b62cc08cSmrg lint_name=lint 10674b62cc08cSmrg lint_options="-u -b" 10675b62cc08cSmrg ;; 10676b62cc08cSmrg *solaris*) 10677b62cc08cSmrg lint_name=lint 10678b62cc08cSmrg lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 10679b62cc08cSmrg ;; 10680b62cc08cSmrgesac 10681b62cc08cSmrg 10682b62cc08cSmrg# Test for the presence of the program (either guessed by the code or spelled out by the user) 10683b62cc08cSmrgif test "x$use_lint" = x"yes" ; then 10684b62cc08cSmrg # Extract the first word of "$lint_name", so it can be a program name with args. 10685b62cc08cSmrgset dummy $lint_name; ac_word=$2 10686b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10687b62cc08cSmrg$as_echo_n "checking for $ac_word... " >&6; } 10688b62cc08cSmrgif ${ac_cv_path_LINT+:} false; then : 10689b62cc08cSmrg $as_echo_n "(cached) " >&6 10690b62cc08cSmrgelse 10691b62cc08cSmrg case $LINT in 10692b62cc08cSmrg [\\/]* | ?:[\\/]*) 10693b62cc08cSmrg ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 10694b62cc08cSmrg ;; 10695b62cc08cSmrg *) 10696b62cc08cSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10697b62cc08cSmrgfor as_dir in $PATH 10698b62cc08cSmrgdo 10699b62cc08cSmrg IFS=$as_save_IFS 10700b62cc08cSmrg test -z "$as_dir" && as_dir=. 10701b62cc08cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 10702b62cc08cSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10703b62cc08cSmrg ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 10704b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10705b62cc08cSmrg break 2 10706b62cc08cSmrg fi 10707b62cc08cSmrgdone 10708b62cc08cSmrg done 10709b62cc08cSmrgIFS=$as_save_IFS 10710b62cc08cSmrg 10711b62cc08cSmrg ;; 10712b62cc08cSmrgesac 10713b62cc08cSmrgfi 10714b62cc08cSmrgLINT=$ac_cv_path_LINT 10715b62cc08cSmrgif test -n "$LINT"; then 10716b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 10717b62cc08cSmrg$as_echo "$LINT" >&6; } 10718b62cc08cSmrgelse 10719b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10720b62cc08cSmrg$as_echo "no" >&6; } 10721b62cc08cSmrgfi 10722b62cc08cSmrg 10723b62cc08cSmrg 10724b62cc08cSmrg if test "x$LINT" = "x"; then 10725b62cc08cSmrg as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 10726b62cc08cSmrg fi 10727b62cc08cSmrgelif test "x$use_lint" = x"no" ; then 10728b62cc08cSmrg if test "x$LINT" != "x"; then 10729b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 10730b62cc08cSmrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 10731b62cc08cSmrg fi 10732b62cc08cSmrgelse 10733b62cc08cSmrg as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 10734b62cc08cSmrgfi 10735b62cc08cSmrg 10736b62cc08cSmrg# User supplied flags override default flags 10737b62cc08cSmrgif test "x$LINT_FLAGS" != "x"; then 10738b62cc08cSmrg lint_options=$LINT_FLAGS 10739b62cc08cSmrgfi 10740b62cc08cSmrg 10741b62cc08cSmrgLINT_FLAGS=$lint_options 10742b62cc08cSmrg 10743b62cc08cSmrg if test "x$LINT" != x; then 10744b62cc08cSmrg LINT_TRUE= 10745b62cc08cSmrg LINT_FALSE='#' 10746b62cc08cSmrgelse 10747b62cc08cSmrg LINT_TRUE='#' 10748b62cc08cSmrg LINT_FALSE= 10749b62cc08cSmrgfi 107509fe995a9Smrg 107519fe995a9Smrg 107529fe995a9Smrg 107539fe995a9Smrg 1075490b6713cSmrgac_config_files="$ac_config_files Makefile man/Makefile" 107559fe995a9Smrg 107569fe995a9Smrgcat >confcache <<\_ACEOF 107579fe995a9Smrg# This file is a shell script that caches the results of configure 107589fe995a9Smrg# tests run on this system so they can be shared between configure 107599fe995a9Smrg# scripts and configure runs, see configure's option --config-cache. 107609fe995a9Smrg# It is not useful on other systems. If it contains results you don't 107619fe995a9Smrg# want to keep, you may remove or edit it. 107629fe995a9Smrg# 107639fe995a9Smrg# config.status only pays attention to the cache file if you give it 107649fe995a9Smrg# the --recheck option to rerun configure. 107659fe995a9Smrg# 107669fe995a9Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 107679fe995a9Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 107689fe995a9Smrg# following values. 107699fe995a9Smrg 107709fe995a9Smrg_ACEOF 107719fe995a9Smrg 107729fe995a9Smrg# The following way of writing the cache mishandles newlines in values, 107739fe995a9Smrg# but we know of no workaround that is simple, portable, and efficient. 107749fe995a9Smrg# So, we kill variables containing newlines. 107759fe995a9Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 107769fe995a9Smrg# and sets the high bit in the cache file unless we assign to the vars. 107779fe995a9Smrg( 107789fe995a9Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 107799fe995a9Smrg eval ac_val=\$$ac_var 107809fe995a9Smrg case $ac_val in #( 107819fe995a9Smrg *${as_nl}*) 107829fe995a9Smrg case $ac_var in #( 10783b62cc08cSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10784b62cc08cSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 107859fe995a9Smrg esac 107869fe995a9Smrg case $ac_var in #( 107879fe995a9Smrg _ | IFS | as_nl) ;; #( 10788b62cc08cSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10789b62cc08cSmrg *) { eval $ac_var=; unset $ac_var;} ;; 107909fe995a9Smrg esac ;; 107919fe995a9Smrg esac 107929fe995a9Smrg done 107939fe995a9Smrg 107949fe995a9Smrg (set) 2>&1 | 107959fe995a9Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 107969fe995a9Smrg *${as_nl}ac_space=\ *) 10797b62cc08cSmrg # `set' does not quote correctly, so add quotes: double-quote 10798b62cc08cSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 107999fe995a9Smrg sed -n \ 108009fe995a9Smrg "s/'/'\\\\''/g; 108019fe995a9Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 108029fe995a9Smrg ;; #( 108039fe995a9Smrg *) 108049fe995a9Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 108059fe995a9Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 108069fe995a9Smrg ;; 108079fe995a9Smrg esac | 108089fe995a9Smrg sort 108099fe995a9Smrg) | 108109fe995a9Smrg sed ' 108119fe995a9Smrg /^ac_cv_env_/b end 108129fe995a9Smrg t clear 108139fe995a9Smrg :clear 108149fe995a9Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 108159fe995a9Smrg t end 108169fe995a9Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 108179fe995a9Smrg :end' >>confcache 108189fe995a9Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 108199fe995a9Smrg if test -w "$cache_file"; then 10820b62cc08cSmrg if test "x$cache_file" != "x/dev/null"; then 10821b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10822b62cc08cSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 10823b62cc08cSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 10824b62cc08cSmrg cat confcache >"$cache_file" 10825b62cc08cSmrg else 10826b62cc08cSmrg case $cache_file in #( 10827b62cc08cSmrg */* | ?:*) 10828b62cc08cSmrg mv -f confcache "$cache_file"$$ && 10829b62cc08cSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 10830b62cc08cSmrg *) 10831b62cc08cSmrg mv -f confcache "$cache_file" ;; 10832b62cc08cSmrg esac 10833b62cc08cSmrg fi 10834b62cc08cSmrg fi 108359fe995a9Smrg else 10836b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10837b62cc08cSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 108389fe995a9Smrg fi 108399fe995a9Smrgfi 108409fe995a9Smrgrm -f confcache 108419fe995a9Smrg 108429fe995a9Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 108439fe995a9Smrg# Let make expand exec_prefix. 108449fe995a9Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 108459fe995a9Smrg 108469fe995a9SmrgDEFS=-DHAVE_CONFIG_H 108479fe995a9Smrg 108489fe995a9Smrgac_libobjs= 108499fe995a9Smrgac_ltlibobjs= 10850b62cc08cSmrgU= 108519fe995a9Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 108529fe995a9Smrg # 1. Remove the extension, and $U if already installed. 108539fe995a9Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10854b62cc08cSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 108559fe995a9Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 108569fe995a9Smrg # will be set to the directory where LIBOBJS objects are built. 10857b62cc08cSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10858b62cc08cSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 108599fe995a9Smrgdone 108609fe995a9SmrgLIBOBJS=$ac_libobjs 108619fe995a9Smrg 108629fe995a9SmrgLTLIBOBJS=$ac_ltlibobjs 108639fe995a9Smrg 108649fe995a9Smrg 108659d794632Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 108669d794632Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; } 108679d794632Smrg if test -n "$am_sleep_pid"; then 108689d794632Smrg # Hide warnings about reused PIDs. 108699d794632Smrg wait $am_sleep_pid 2>/dev/null 108709d794632Smrg fi 108719d794632Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 108729d794632Smrg$as_echo "done" >&6; } 10873b62cc08cSmrg if test -n "$EXEEXT"; then 10874b62cc08cSmrg am__EXEEXT_TRUE= 10875b62cc08cSmrg am__EXEEXT_FALSE='#' 10876b62cc08cSmrgelse 10877b62cc08cSmrg am__EXEEXT_TRUE='#' 10878b62cc08cSmrg am__EXEEXT_FALSE= 10879b62cc08cSmrgfi 10880b62cc08cSmrg 108819fe995a9Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10882b62cc08cSmrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10883b62cc08cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 108849fe995a9Smrgfi 108859fe995a9Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10886b62cc08cSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 10887b62cc08cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 108889fe995a9Smrgfi 108899fe995a9Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10890b62cc08cSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10891b62cc08cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 108929fe995a9Smrgfi 108939fe995a9Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 10894b62cc08cSmrg as_fn_error $? "conditional \"LINT\" was never defined. 10895b62cc08cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 108969fe995a9Smrgfi 108979fe995a9Smrg 10898b62cc08cSmrg: "${CONFIG_STATUS=./config.status}" 10899b62cc08cSmrgac_write_fail=0 109009fe995a9Smrgac_clean_files_save=$ac_clean_files 109019fe995a9Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 10902b62cc08cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10903b62cc08cSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10904b62cc08cSmrgas_write_fail=0 10905b62cc08cSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 109069fe995a9Smrg#! $SHELL 109079fe995a9Smrg# Generated by $as_me. 109089fe995a9Smrg# Run this file to recreate the current configuration. 109099fe995a9Smrg# Compiler output produced by configure, useful for debugging 109109fe995a9Smrg# configure, is in config.log if it exists. 109119fe995a9Smrg 109129fe995a9Smrgdebug=false 109139fe995a9Smrgac_cs_recheck=false 109149fe995a9Smrgac_cs_silent=false 109159fe995a9Smrg 10916b62cc08cSmrgSHELL=\${CONFIG_SHELL-$SHELL} 10917b62cc08cSmrgexport SHELL 10918b62cc08cSmrg_ASEOF 10919b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10920b62cc08cSmrg## -------------------- ## 10921b62cc08cSmrg## M4sh Initialization. ## 10922b62cc08cSmrg## -------------------- ## 109239fe995a9Smrg 109249fe995a9Smrg# Be more Bourne compatible 109259fe995a9SmrgDUALCASE=1; export DUALCASE # for MKS sh 10926b62cc08cSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 109279fe995a9Smrg emulate sh 109289fe995a9Smrg NULLCMD=: 10929b62cc08cSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 109309fe995a9Smrg # is contrary to our usage. Disable this feature. 109319fe995a9Smrg alias -g '${1+"$@"}'='"$@"' 109329fe995a9Smrg setopt NO_GLOB_SUBST 109339fe995a9Smrgelse 10934b62cc08cSmrg case `(set -o) 2>/dev/null` in #( 10935b62cc08cSmrg *posix*) : 10936b62cc08cSmrg set -o posix ;; #( 10937b62cc08cSmrg *) : 10938b62cc08cSmrg ;; 109399fe995a9Smrgesac 109409fe995a9Smrgfi 109419fe995a9Smrg 109429fe995a9Smrg 10943b62cc08cSmrgas_nl=' 10944b62cc08cSmrg' 10945b62cc08cSmrgexport as_nl 10946b62cc08cSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 10947b62cc08cSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10948b62cc08cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10949b62cc08cSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10950b62cc08cSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 10951b62cc08cSmrg# but without wasting forks for bash or zsh. 10952b62cc08cSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 10953b62cc08cSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10954b62cc08cSmrg as_echo='print -r --' 10955b62cc08cSmrg as_echo_n='print -rn --' 10956b62cc08cSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10957b62cc08cSmrg as_echo='printf %s\n' 10958b62cc08cSmrg as_echo_n='printf %s' 10959b62cc08cSmrgelse 10960b62cc08cSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10961b62cc08cSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10962b62cc08cSmrg as_echo_n='/usr/ucb/echo -n' 109639fe995a9Smrg else 10964b62cc08cSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10965b62cc08cSmrg as_echo_n_body='eval 10966b62cc08cSmrg arg=$1; 10967b62cc08cSmrg case $arg in #( 10968b62cc08cSmrg *"$as_nl"*) 10969b62cc08cSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 10970b62cc08cSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10971b62cc08cSmrg esac; 10972b62cc08cSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10973b62cc08cSmrg ' 10974b62cc08cSmrg export as_echo_n_body 10975b62cc08cSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 109769fe995a9Smrg fi 10977b62cc08cSmrg export as_echo_body 10978b62cc08cSmrg as_echo='sh -c $as_echo_body as_echo' 109799fe995a9Smrgfi 109809fe995a9Smrg 10981b62cc08cSmrg# The user is always right. 10982b62cc08cSmrgif test "${PATH_SEPARATOR+set}" != set; then 10983b62cc08cSmrg PATH_SEPARATOR=: 10984b62cc08cSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10985b62cc08cSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10986b62cc08cSmrg PATH_SEPARATOR=';' 10987b62cc08cSmrg } 109889fe995a9Smrgfi 109899fe995a9Smrg 109909fe995a9Smrg 109919fe995a9Smrg# IFS 109929fe995a9Smrg# We need space, tab and new line, in precisely that order. Quoting is 109939fe995a9Smrg# there to prevent editors from complaining about space-tab. 109949fe995a9Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 109959fe995a9Smrg# splitting by setting IFS to empty value.) 109969fe995a9SmrgIFS=" "" $as_nl" 109979fe995a9Smrg 109989fe995a9Smrg# Find who we are. Look in the path if we contain no directory separator. 10999b62cc08cSmrgas_myself= 11000b62cc08cSmrgcase $0 in #(( 110019fe995a9Smrg *[\\/]* ) as_myself=$0 ;; 110029fe995a9Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110039fe995a9Smrgfor as_dir in $PATH 110049fe995a9Smrgdo 110059fe995a9Smrg IFS=$as_save_IFS 110069fe995a9Smrg test -z "$as_dir" && as_dir=. 11007b62cc08cSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11008b62cc08cSmrg done 110099fe995a9SmrgIFS=$as_save_IFS 110109fe995a9Smrg 110119fe995a9Smrg ;; 110129fe995a9Smrgesac 110139fe995a9Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 110149fe995a9Smrg# in which case we are not to be found in the path. 110159fe995a9Smrgif test "x$as_myself" = x; then 110169fe995a9Smrg as_myself=$0 110179fe995a9Smrgfi 110189fe995a9Smrgif test ! -f "$as_myself"; then 11019b62cc08cSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11020b62cc08cSmrg exit 1 110219fe995a9Smrgfi 110229fe995a9Smrg 11023b62cc08cSmrg# Unset variables that we do not need and which cause bugs (e.g. in 11024b62cc08cSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11025b62cc08cSmrg# suppresses any "Segmentation fault" message there. '((' could 11026b62cc08cSmrg# trigger a bug in pdksh 5.2.14. 11027b62cc08cSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 11028b62cc08cSmrgdo eval test x\${$as_var+set} = xset \ 11029b62cc08cSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 110309fe995a9Smrgdone 110319fe995a9SmrgPS1='$ ' 110329fe995a9SmrgPS2='> ' 110339fe995a9SmrgPS4='+ ' 110349fe995a9Smrg 110359fe995a9Smrg# NLS nuisances. 11036b62cc08cSmrgLC_ALL=C 11037b62cc08cSmrgexport LC_ALL 11038b62cc08cSmrgLANGUAGE=C 11039b62cc08cSmrgexport LANGUAGE 11040b62cc08cSmrg 11041b62cc08cSmrg# CDPATH. 11042b62cc08cSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11043b62cc08cSmrg 11044b62cc08cSmrg 11045b62cc08cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 11046b62cc08cSmrg# ---------------------------------------- 11047b62cc08cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11048b62cc08cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11049b62cc08cSmrg# script with STATUS, using 1 if that was 0. 11050b62cc08cSmrgas_fn_error () 11051b62cc08cSmrg{ 11052b62cc08cSmrg as_status=$1; test $as_status -eq 0 && as_status=1 11053b62cc08cSmrg if test "$4"; then 11054b62cc08cSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11055b62cc08cSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 110569fe995a9Smrg fi 11057b62cc08cSmrg $as_echo "$as_me: error: $2" >&2 11058b62cc08cSmrg as_fn_exit $as_status 11059b62cc08cSmrg} # as_fn_error 11060b62cc08cSmrg 11061b62cc08cSmrg 11062b62cc08cSmrg# as_fn_set_status STATUS 11063b62cc08cSmrg# ----------------------- 11064b62cc08cSmrg# Set $? to STATUS, without forking. 11065b62cc08cSmrgas_fn_set_status () 11066b62cc08cSmrg{ 11067b62cc08cSmrg return $1 11068b62cc08cSmrg} # as_fn_set_status 11069b62cc08cSmrg 11070b62cc08cSmrg# as_fn_exit STATUS 11071b62cc08cSmrg# ----------------- 11072b62cc08cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11073b62cc08cSmrgas_fn_exit () 11074b62cc08cSmrg{ 11075b62cc08cSmrg set +e 11076b62cc08cSmrg as_fn_set_status $1 11077b62cc08cSmrg exit $1 11078b62cc08cSmrg} # as_fn_exit 11079b62cc08cSmrg 11080b62cc08cSmrg# as_fn_unset VAR 11081b62cc08cSmrg# --------------- 11082b62cc08cSmrg# Portably unset VAR. 11083b62cc08cSmrgas_fn_unset () 11084b62cc08cSmrg{ 11085b62cc08cSmrg { eval $1=; unset $1;} 11086b62cc08cSmrg} 11087b62cc08cSmrgas_unset=as_fn_unset 11088b62cc08cSmrg# as_fn_append VAR VALUE 11089b62cc08cSmrg# ---------------------- 11090b62cc08cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 11091b62cc08cSmrg# advantage of any shell optimizations that allow amortized linear growth over 11092b62cc08cSmrg# repeated appends, instead of the typical quadratic growth present in naive 11093b62cc08cSmrg# implementations. 11094b62cc08cSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11095b62cc08cSmrg eval 'as_fn_append () 11096b62cc08cSmrg { 11097b62cc08cSmrg eval $1+=\$2 11098b62cc08cSmrg }' 11099b62cc08cSmrgelse 11100b62cc08cSmrg as_fn_append () 11101b62cc08cSmrg { 11102b62cc08cSmrg eval $1=\$$1\$2 11103b62cc08cSmrg } 11104b62cc08cSmrgfi # as_fn_append 11105b62cc08cSmrg 11106b62cc08cSmrg# as_fn_arith ARG... 11107b62cc08cSmrg# ------------------ 11108b62cc08cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 11109b62cc08cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 11110b62cc08cSmrg# must be portable across $(()) and expr. 11111b62cc08cSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11112b62cc08cSmrg eval 'as_fn_arith () 11113b62cc08cSmrg { 11114b62cc08cSmrg as_val=$(( $* )) 11115b62cc08cSmrg }' 11116b62cc08cSmrgelse 11117b62cc08cSmrg as_fn_arith () 11118b62cc08cSmrg { 11119b62cc08cSmrg as_val=`expr "$@" || test $? -eq 1` 11120b62cc08cSmrg } 11121b62cc08cSmrgfi # as_fn_arith 11122b62cc08cSmrg 111239fe995a9Smrg 111249fe995a9Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 111259fe995a9Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 111269fe995a9Smrg as_expr=expr 111279fe995a9Smrgelse 111289fe995a9Smrg as_expr=false 111299fe995a9Smrgfi 111309fe995a9Smrg 111319fe995a9Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 111329fe995a9Smrg as_basename=basename 111339fe995a9Smrgelse 111349fe995a9Smrg as_basename=false 111359fe995a9Smrgfi 111369fe995a9Smrg 11137b62cc08cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11138b62cc08cSmrg as_dirname=dirname 11139b62cc08cSmrgelse 11140b62cc08cSmrg as_dirname=false 11141b62cc08cSmrgfi 111429fe995a9Smrg 111439fe995a9Smrgas_me=`$as_basename -- "$0" || 111449fe995a9Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 111459fe995a9Smrg X"$0" : 'X\(//\)$' \| \ 111469fe995a9Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 11147b62cc08cSmrg$as_echo X/"$0" | 111489fe995a9Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 111499fe995a9Smrg s//\1/ 111509fe995a9Smrg q 111519fe995a9Smrg } 111529fe995a9Smrg /^X\/\(\/\/\)$/{ 111539fe995a9Smrg s//\1/ 111549fe995a9Smrg q 111559fe995a9Smrg } 111569fe995a9Smrg /^X\/\(\/\).*/{ 111579fe995a9Smrg s//\1/ 111589fe995a9Smrg q 111599fe995a9Smrg } 111609fe995a9Smrg s/.*/./; q'` 111619fe995a9Smrg 11162b62cc08cSmrg# Avoid depending upon Character Ranges. 11163b62cc08cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 11164b62cc08cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11165b62cc08cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 11166b62cc08cSmrgas_cr_digits='0123456789' 11167b62cc08cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 111689fe995a9Smrg 111699fe995a9SmrgECHO_C= ECHO_N= ECHO_T= 11170b62cc08cSmrgcase `echo -n x` in #((((( 111719fe995a9Smrg-n*) 11172b62cc08cSmrg case `echo 'xy\c'` in 111739fe995a9Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11174b62cc08cSmrg xy) ECHO_C='\c';; 11175b62cc08cSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11176b62cc08cSmrg ECHO_T=' ';; 111779fe995a9Smrg esac;; 111789fe995a9Smrg*) 111799fe995a9Smrg ECHO_N='-n';; 111809fe995a9Smrgesac 111819fe995a9Smrg 111829fe995a9Smrgrm -f conf$$ conf$$.exe conf$$.file 111839fe995a9Smrgif test -d conf$$.dir; then 111849fe995a9Smrg rm -f conf$$.dir/conf$$.file 111859fe995a9Smrgelse 111869fe995a9Smrg rm -f conf$$.dir 11187b62cc08cSmrg mkdir conf$$.dir 2>/dev/null 11188b62cc08cSmrgfi 11189b62cc08cSmrgif (echo >conf$$.file) 2>/dev/null; then 11190b62cc08cSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 11191b62cc08cSmrg as_ln_s='ln -s' 11192b62cc08cSmrg # ... but there are two gotchas: 11193b62cc08cSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11194b62cc08cSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11195b62cc08cSmrg # In both cases, we have to default to `cp -p'. 11196b62cc08cSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11197b62cc08cSmrg as_ln_s='cp -p' 11198b62cc08cSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 11199b62cc08cSmrg as_ln_s=ln 11200b62cc08cSmrg else 112019fe995a9Smrg as_ln_s='cp -p' 11202b62cc08cSmrg fi 112039fe995a9Smrgelse 112049fe995a9Smrg as_ln_s='cp -p' 112059fe995a9Smrgfi 112069fe995a9Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 112079fe995a9Smrgrmdir conf$$.dir 2>/dev/null 112089fe995a9Smrg 11209b62cc08cSmrg 11210b62cc08cSmrg# as_fn_mkdir_p 11211b62cc08cSmrg# ------------- 11212b62cc08cSmrg# Create "$as_dir" as a directory, including parents if necessary. 11213b62cc08cSmrgas_fn_mkdir_p () 11214b62cc08cSmrg{ 11215b62cc08cSmrg 11216b62cc08cSmrg case $as_dir in #( 11217b62cc08cSmrg -*) as_dir=./$as_dir;; 11218b62cc08cSmrg esac 11219b62cc08cSmrg test -d "$as_dir" || eval $as_mkdir_p || { 11220b62cc08cSmrg as_dirs= 11221b62cc08cSmrg while :; do 11222b62cc08cSmrg case $as_dir in #( 11223b62cc08cSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11224b62cc08cSmrg *) as_qdir=$as_dir;; 11225b62cc08cSmrg esac 11226b62cc08cSmrg as_dirs="'$as_qdir' $as_dirs" 11227b62cc08cSmrg as_dir=`$as_dirname -- "$as_dir" || 11228b62cc08cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11229b62cc08cSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 11230b62cc08cSmrg X"$as_dir" : 'X\(//\)$' \| \ 11231b62cc08cSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11232b62cc08cSmrg$as_echo X"$as_dir" | 11233b62cc08cSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11234b62cc08cSmrg s//\1/ 11235b62cc08cSmrg q 11236b62cc08cSmrg } 11237b62cc08cSmrg /^X\(\/\/\)[^/].*/{ 11238b62cc08cSmrg s//\1/ 11239b62cc08cSmrg q 11240b62cc08cSmrg } 11241b62cc08cSmrg /^X\(\/\/\)$/{ 11242b62cc08cSmrg s//\1/ 11243b62cc08cSmrg q 11244b62cc08cSmrg } 11245b62cc08cSmrg /^X\(\/\).*/{ 11246b62cc08cSmrg s//\1/ 11247b62cc08cSmrg q 11248b62cc08cSmrg } 11249b62cc08cSmrg s/.*/./; q'` 11250b62cc08cSmrg test -d "$as_dir" && break 11251b62cc08cSmrg done 11252b62cc08cSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 11253b62cc08cSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11254b62cc08cSmrg 11255b62cc08cSmrg 11256b62cc08cSmrg} # as_fn_mkdir_p 112579fe995a9Smrgif mkdir -p . 2>/dev/null; then 11258b62cc08cSmrg as_mkdir_p='mkdir -p "$as_dir"' 112599fe995a9Smrgelse 112609fe995a9Smrg test -d ./-p && rmdir ./-p 112619fe995a9Smrg as_mkdir_p=false 112629fe995a9Smrgfi 112639fe995a9Smrg 112649fe995a9Smrgif test -x / >/dev/null 2>&1; then 112659fe995a9Smrg as_test_x='test -x' 112669fe995a9Smrgelse 112679fe995a9Smrg if ls -dL / >/dev/null 2>&1; then 112689fe995a9Smrg as_ls_L_option=L 112699fe995a9Smrg else 112709fe995a9Smrg as_ls_L_option= 112719fe995a9Smrg fi 112729fe995a9Smrg as_test_x=' 112739fe995a9Smrg eval sh -c '\'' 112749fe995a9Smrg if test -d "$1"; then 11275b62cc08cSmrg test -d "$1/."; 112769fe995a9Smrg else 11277b62cc08cSmrg case $1 in #( 11278b62cc08cSmrg -*)set "./$1";; 112799fe995a9Smrg esac; 11280b62cc08cSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 112819fe995a9Smrg ???[sx]*):;;*)false;;esac;fi 112829fe995a9Smrg '\'' sh 112839fe995a9Smrg ' 112849fe995a9Smrgfi 112859fe995a9Smrgas_executable_p=$as_test_x 112869fe995a9Smrg 112879fe995a9Smrg# Sed expression to map a string onto a valid CPP name. 112889fe995a9Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 112899fe995a9Smrg 112909fe995a9Smrg# Sed expression to map a string onto a valid variable name. 112919fe995a9Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 112929fe995a9Smrg 112939fe995a9Smrg 112949fe995a9Smrgexec 6>&1 11295b62cc08cSmrg## ----------------------------------- ## 11296b62cc08cSmrg## Main body of $CONFIG_STATUS script. ## 11297b62cc08cSmrg## ----------------------------------- ## 11298b62cc08cSmrg_ASEOF 11299b62cc08cSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 113009fe995a9Smrg 11301b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11302b62cc08cSmrg# Save the log message, to keep $0 and so on meaningful, and to 113039fe995a9Smrg# report actual input values of CONFIG_FILES etc. instead of their 113049fe995a9Smrg# values after options handling. 113059fe995a9Smrgac_log=" 113069d794632SmrgThis file was extended by iceauth $as_me 1.0.6, which was 11307b62cc08cSmrggenerated by GNU Autoconf 2.68. Invocation command line was 113089fe995a9Smrg 113099fe995a9Smrg CONFIG_FILES = $CONFIG_FILES 113109fe995a9Smrg CONFIG_HEADERS = $CONFIG_HEADERS 113119fe995a9Smrg CONFIG_LINKS = $CONFIG_LINKS 113129fe995a9Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 113139fe995a9Smrg $ $0 $@ 113149fe995a9Smrg 113159fe995a9Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 113169fe995a9Smrg" 113179fe995a9Smrg 113189fe995a9Smrg_ACEOF 113199fe995a9Smrg 11320b62cc08cSmrgcase $ac_config_files in *" 11321b62cc08cSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 11322b62cc08cSmrgesac 11323b62cc08cSmrg 11324b62cc08cSmrgcase $ac_config_headers in *" 11325b62cc08cSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11326b62cc08cSmrgesac 11327b62cc08cSmrg 11328b62cc08cSmrg 11329b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 113309fe995a9Smrg# Files that config.status was made for. 113319fe995a9Smrgconfig_files="$ac_config_files" 113329fe995a9Smrgconfig_headers="$ac_config_headers" 113339fe995a9Smrgconfig_commands="$ac_config_commands" 113349fe995a9Smrg 113359fe995a9Smrg_ACEOF 113369fe995a9Smrg 11337b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 113389fe995a9Smrgac_cs_usage="\ 11339b62cc08cSmrg\`$as_me' instantiates files and other configuration actions 11340b62cc08cSmrgfrom templates according to the current configuration. Unless the files 11341b62cc08cSmrgand actions are specified as TAGs, all are instantiated by default. 113429fe995a9Smrg 11343b62cc08cSmrgUsage: $0 [OPTION]... [TAG]... 113449fe995a9Smrg 113459fe995a9Smrg -h, --help print this help, then exit 113469fe995a9Smrg -V, --version print version number and configuration settings, then exit 11347b62cc08cSmrg --config print configuration, then exit 11348b62cc08cSmrg -q, --quiet, --silent 11349b62cc08cSmrg do not print progress messages 113509fe995a9Smrg -d, --debug don't remove temporary files 113519fe995a9Smrg --recheck update $as_me by reconfiguring in the same conditions 11352b62cc08cSmrg --file=FILE[:TEMPLATE] 11353b62cc08cSmrg instantiate the configuration file FILE 11354b62cc08cSmrg --header=FILE[:TEMPLATE] 11355b62cc08cSmrg instantiate the configuration header FILE 113569fe995a9Smrg 113579fe995a9SmrgConfiguration files: 113589fe995a9Smrg$config_files 113599fe995a9Smrg 113609fe995a9SmrgConfiguration headers: 113619fe995a9Smrg$config_headers 113629fe995a9Smrg 113639fe995a9SmrgConfiguration commands: 113649fe995a9Smrg$config_commands 113659fe995a9Smrg 11366b62cc08cSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 113679fe995a9Smrg 113689fe995a9Smrg_ACEOF 11369b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11370b62cc08cSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 113719fe995a9Smrgac_cs_version="\\ 113729d794632Smrgiceauth config.status 1.0.6 11373b62cc08cSmrgconfigured by $0, generated by GNU Autoconf 2.68, 11374b62cc08cSmrg with options \\"\$ac_cs_config\\" 113759fe995a9Smrg 11376b62cc08cSmrgCopyright (C) 2010 Free Software Foundation, Inc. 113779fe995a9SmrgThis config.status script is free software; the Free Software Foundation 113789fe995a9Smrggives unlimited permission to copy, distribute and modify it." 113799fe995a9Smrg 113809fe995a9Smrgac_pwd='$ac_pwd' 113819fe995a9Smrgsrcdir='$srcdir' 113829fe995a9SmrgINSTALL='$INSTALL' 113839fe995a9SmrgMKDIR_P='$MKDIR_P' 11384b62cc08cSmrgAWK='$AWK' 11385b62cc08cSmrgtest -n "\$AWK" || AWK=awk 113869fe995a9Smrg_ACEOF 113879fe995a9Smrg 11388b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11389b62cc08cSmrg# The default lists apply if the user does not specify any file. 113909fe995a9Smrgac_need_defaults=: 113919fe995a9Smrgwhile test $# != 0 113929fe995a9Smrgdo 113939fe995a9Smrg case $1 in 11394b62cc08cSmrg --*=?*) 113959fe995a9Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 113969fe995a9Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 113979fe995a9Smrg ac_shift=: 113989fe995a9Smrg ;; 11399b62cc08cSmrg --*=) 11400b62cc08cSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 11401b62cc08cSmrg ac_optarg= 11402b62cc08cSmrg ac_shift=: 11403b62cc08cSmrg ;; 114049fe995a9Smrg *) 114059fe995a9Smrg ac_option=$1 114069fe995a9Smrg ac_optarg=$2 114079fe995a9Smrg ac_shift=shift 114089fe995a9Smrg ;; 114099fe995a9Smrg esac 114109fe995a9Smrg 114119fe995a9Smrg case $ac_option in 114129fe995a9Smrg # Handling of the options. 114139fe995a9Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 114149fe995a9Smrg ac_cs_recheck=: ;; 114159fe995a9Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11416b62cc08cSmrg $as_echo "$ac_cs_version"; exit ;; 11417b62cc08cSmrg --config | --confi | --conf | --con | --co | --c ) 11418b62cc08cSmrg $as_echo "$ac_cs_config"; exit ;; 114199fe995a9Smrg --debug | --debu | --deb | --de | --d | -d ) 114209fe995a9Smrg debug=: ;; 114219fe995a9Smrg --file | --fil | --fi | --f ) 114229fe995a9Smrg $ac_shift 11423b62cc08cSmrg case $ac_optarg in 11424b62cc08cSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11425b62cc08cSmrg '') as_fn_error $? "missing file argument" ;; 11426b62cc08cSmrg esac 11427b62cc08cSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 114289fe995a9Smrg ac_need_defaults=false;; 114299fe995a9Smrg --header | --heade | --head | --hea ) 114309fe995a9Smrg $ac_shift 11431b62cc08cSmrg case $ac_optarg in 11432b62cc08cSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11433b62cc08cSmrg esac 11434b62cc08cSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 114359fe995a9Smrg ac_need_defaults=false;; 114369fe995a9Smrg --he | --h) 114379fe995a9Smrg # Conflict between --help and --header 11438b62cc08cSmrg as_fn_error $? "ambiguous option: \`$1' 11439b62cc08cSmrgTry \`$0 --help' for more information.";; 114409fe995a9Smrg --help | --hel | -h ) 11441b62cc08cSmrg $as_echo "$ac_cs_usage"; exit ;; 114429fe995a9Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 114439fe995a9Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 114449fe995a9Smrg ac_cs_silent=: ;; 114459fe995a9Smrg 114469fe995a9Smrg # This is an error. 11447b62cc08cSmrg -*) as_fn_error $? "unrecognized option: \`$1' 11448b62cc08cSmrgTry \`$0 --help' for more information." ;; 114499fe995a9Smrg 11450b62cc08cSmrg *) as_fn_append ac_config_targets " $1" 114519fe995a9Smrg ac_need_defaults=false ;; 114529fe995a9Smrg 114539fe995a9Smrg esac 114549fe995a9Smrg shift 114559fe995a9Smrgdone 114569fe995a9Smrg 114579fe995a9Smrgac_configure_extra_args= 114589fe995a9Smrg 114599fe995a9Smrgif $ac_cs_silent; then 114609fe995a9Smrg exec 6>/dev/null 114619fe995a9Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 114629fe995a9Smrgfi 114639fe995a9Smrg 114649fe995a9Smrg_ACEOF 11465b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 114669fe995a9Smrgif \$ac_cs_recheck; then 11467b62cc08cSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11468b62cc08cSmrg shift 11469b62cc08cSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11470b62cc08cSmrg CONFIG_SHELL='$SHELL' 114719fe995a9Smrg export CONFIG_SHELL 11472b62cc08cSmrg exec "\$@" 114739fe995a9Smrgfi 114749fe995a9Smrg 114759fe995a9Smrg_ACEOF 11476b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 114779fe995a9Smrgexec 5>>config.log 114789fe995a9Smrg{ 114799fe995a9Smrg echo 114809fe995a9Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 114819fe995a9Smrg## Running $as_me. ## 114829fe995a9Smrg_ASBOX 11483b62cc08cSmrg $as_echo "$ac_log" 114849fe995a9Smrg} >&5 114859fe995a9Smrg 114869fe995a9Smrg_ACEOF 11487b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 114889fe995a9Smrg# 114899fe995a9Smrg# INIT-COMMANDS 114909fe995a9Smrg# 114919fe995a9SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 114929fe995a9Smrg 114939fe995a9Smrg_ACEOF 114949fe995a9Smrg 11495b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 114969fe995a9Smrg 114979fe995a9Smrg# Handling of arguments. 114989fe995a9Smrgfor ac_config_target in $ac_config_targets 114999fe995a9Smrgdo 115009fe995a9Smrg case $ac_config_target in 115019fe995a9Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 115029fe995a9Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 115039fe995a9Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 1150490b6713cSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 115059fe995a9Smrg 11506b62cc08cSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 115079fe995a9Smrg esac 115089fe995a9Smrgdone 115099fe995a9Smrg 115109fe995a9Smrg 115119fe995a9Smrg# If the user did not use the arguments to specify the items to instantiate, 115129fe995a9Smrg# then the envvar interface is used. Set only those that are not. 115139fe995a9Smrg# We use the long form for the default assignment because of an extremely 115149fe995a9Smrg# bizarre bug on SunOS 4.1.3. 115159fe995a9Smrgif $ac_need_defaults; then 115169fe995a9Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 115179fe995a9Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 115189fe995a9Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 115199fe995a9Smrgfi 115209fe995a9Smrg 115219fe995a9Smrg# Have a temporary directory for convenience. Make it in the build tree 115229fe995a9Smrg# simply because there is no reason against having it here, and in addition, 115239fe995a9Smrg# creating and moving files from /tmp can sometimes cause problems. 115249fe995a9Smrg# Hook for its removal unless debugging. 115259fe995a9Smrg# Note that there is a small window in which the directory will not be cleaned: 115269fe995a9Smrg# after its creation but before its name has been assigned to `$tmp'. 115279fe995a9Smrg$debug || 115289fe995a9Smrg{ 11529b62cc08cSmrg tmp= ac_tmp= 115309fe995a9Smrg trap 'exit_status=$? 11531b62cc08cSmrg : "${ac_tmp:=$tmp}" 11532b62cc08cSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 115339fe995a9Smrg' 0 11534b62cc08cSmrg trap 'as_fn_exit 1' 1 2 13 15 115359fe995a9Smrg} 115369fe995a9Smrg# Create a (secure) tmp directory for tmp files. 115379fe995a9Smrg 115389fe995a9Smrg{ 115399fe995a9Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11540b62cc08cSmrg test -d "$tmp" 115419fe995a9Smrg} || 115429fe995a9Smrg{ 115439fe995a9Smrg tmp=./conf$$-$RANDOM 115449fe995a9Smrg (umask 077 && mkdir "$tmp") 11545b62cc08cSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11546b62cc08cSmrgac_tmp=$tmp 115479fe995a9Smrg 11548b62cc08cSmrg# Set up the scripts for CONFIG_FILES section. 11549b62cc08cSmrg# No need to generate them if there are no CONFIG_FILES. 11550b62cc08cSmrg# This happens for instance with `./config.status config.h'. 115519fe995a9Smrgif test -n "$CONFIG_FILES"; then 115529fe995a9Smrg 115539fe995a9Smrg 11554b62cc08cSmrgac_cr=`echo X | tr X '\015'` 11555b62cc08cSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 11556b62cc08cSmrg# But we know of no other shell where ac_cr would be empty at this 11557b62cc08cSmrg# point, so we can use a bashism as a fallback. 11558b62cc08cSmrgif test "x$ac_cr" = x; then 11559b62cc08cSmrg eval ac_cr=\$\'\\r\' 11560b62cc08cSmrgfi 11561b62cc08cSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11562b62cc08cSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11563b62cc08cSmrg ac_cs_awk_cr='\\r' 11564b62cc08cSmrgelse 11565b62cc08cSmrg ac_cs_awk_cr=$ac_cr 115669fe995a9Smrgfi 115679fe995a9Smrg 11568b62cc08cSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 115699fe995a9Smrg_ACEOF 115709fe995a9Smrg 115719fe995a9Smrg 11572b62cc08cSmrg{ 11573b62cc08cSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 11574b62cc08cSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11575b62cc08cSmrg echo "_ACEOF" 11576b62cc08cSmrg} >conf$$subs.sh || 11577b62cc08cSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11578b62cc08cSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 115799fe995a9Smrgac_delim='%!_!# ' 115809fe995a9Smrgfor ac_last_try in false false false false false :; do 11581b62cc08cSmrg . ./conf$$subs.sh || 11582b62cc08cSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 115839fe995a9Smrg 11584b62cc08cSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11585b62cc08cSmrg if test $ac_delim_n = $ac_delim_num; then 115869fe995a9Smrg break 115879fe995a9Smrg elif $ac_last_try; then 11588b62cc08cSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 115899fe995a9Smrg else 115909fe995a9Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 115919fe995a9Smrg fi 115929fe995a9Smrgdone 11593b62cc08cSmrgrm -f conf$$subs.sh 115949fe995a9Smrg 11595b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11596b62cc08cSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11597b62cc08cSmrg_ACEOF 11598b62cc08cSmrgsed -n ' 11599b62cc08cSmrgh 11600b62cc08cSmrgs/^/S["/; s/!.*/"]=/ 11601b62cc08cSmrgp 11602b62cc08cSmrgg 11603b62cc08cSmrgs/^[^!]*!// 11604b62cc08cSmrg:repl 11605b62cc08cSmrgt repl 11606b62cc08cSmrgs/'"$ac_delim"'$// 11607b62cc08cSmrgt delim 11608b62cc08cSmrg:nl 11609b62cc08cSmrgh 11610b62cc08cSmrgs/\(.\{148\}\)..*/\1/ 11611b62cc08cSmrgt more1 11612b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11613b62cc08cSmrgp 11614b62cc08cSmrgn 11615b62cc08cSmrgb repl 11616b62cc08cSmrg:more1 11617b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11618b62cc08cSmrgp 11619b62cc08cSmrgg 11620b62cc08cSmrgs/.\{148\}// 11621b62cc08cSmrgt nl 11622b62cc08cSmrg:delim 11623b62cc08cSmrgh 11624b62cc08cSmrgs/\(.\{148\}\)..*/\1/ 11625b62cc08cSmrgt more2 11626b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 11627b62cc08cSmrgp 11628b62cc08cSmrgb 11629b62cc08cSmrg:more2 11630b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11631b62cc08cSmrgp 11632b62cc08cSmrgg 11633b62cc08cSmrgs/.\{148\}// 11634b62cc08cSmrgt delim 11635b62cc08cSmrg' <conf$$subs.awk | sed ' 11636b62cc08cSmrg/^[^""]/{ 11637b62cc08cSmrg N 11638b62cc08cSmrg s/\n// 11639b62cc08cSmrg} 11640b62cc08cSmrg' >>$CONFIG_STATUS || ac_write_fail=1 11641b62cc08cSmrgrm -f conf$$subs.awk 11642b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11643b62cc08cSmrg_ACAWK 11644b62cc08cSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11645b62cc08cSmrg for (key in S) S_is_set[key] = 1 11646b62cc08cSmrg FS = "" 11647b62cc08cSmrg 11648b62cc08cSmrg} 11649b62cc08cSmrg{ 11650b62cc08cSmrg line = $ 0 11651b62cc08cSmrg nfields = split(line, field, "@") 11652b62cc08cSmrg substed = 0 11653b62cc08cSmrg len = length(field[1]) 11654b62cc08cSmrg for (i = 2; i < nfields; i++) { 11655b62cc08cSmrg key = field[i] 11656b62cc08cSmrg keylen = length(key) 11657b62cc08cSmrg if (S_is_set[key]) { 11658b62cc08cSmrg value = S[key] 11659b62cc08cSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11660b62cc08cSmrg len += length(value) + length(field[++i]) 11661b62cc08cSmrg substed = 1 11662b62cc08cSmrg } else 11663b62cc08cSmrg len += 1 + keylen 11664b62cc08cSmrg } 11665b62cc08cSmrg 11666b62cc08cSmrg print line 11667b62cc08cSmrg} 116689fe995a9Smrg 11669b62cc08cSmrg_ACAWK 116709fe995a9Smrg_ACEOF 11671b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11672b62cc08cSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11673b62cc08cSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11674b62cc08cSmrgelse 11675b62cc08cSmrg cat 11676b62cc08cSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11677b62cc08cSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 116789fe995a9Smrg_ACEOF 116799fe995a9Smrg 11680b62cc08cSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11681b62cc08cSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 116829fe995a9Smrg# trailing colons and then remove the whole line if VPATH becomes empty 116839fe995a9Smrg# (actually we leave an empty line to preserve line numbers). 116849fe995a9Smrgif test "x$srcdir" = x.; then 11685b62cc08cSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11686b62cc08cSmrgh 11687b62cc08cSmrgs/// 11688b62cc08cSmrgs/^/:/ 11689b62cc08cSmrgs/[ ]*$/:/ 11690b62cc08cSmrgs/:\$(srcdir):/:/g 11691b62cc08cSmrgs/:\${srcdir}:/:/g 11692b62cc08cSmrgs/:@srcdir@:/:/g 11693b62cc08cSmrgs/^:*// 116949fe995a9Smrgs/:*$// 11695b62cc08cSmrgx 11696b62cc08cSmrgs/\(=[ ]*\).*/\1/ 11697b62cc08cSmrgG 11698b62cc08cSmrgs/\n// 116999fe995a9Smrgs/^[^=]*=[ ]*$// 117009fe995a9Smrg}' 117019fe995a9Smrgfi 117029fe995a9Smrg 11703b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 117049fe995a9Smrgfi # test -n "$CONFIG_FILES" 117059fe995a9Smrg 11706b62cc08cSmrg# Set up the scripts for CONFIG_HEADERS section. 11707b62cc08cSmrg# No need to generate them if there are no CONFIG_HEADERS. 11708b62cc08cSmrg# This happens for instance with `./config.status Makefile'. 11709b62cc08cSmrgif test -n "$CONFIG_HEADERS"; then 11710b62cc08cSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 11711b62cc08cSmrgBEGIN { 11712b62cc08cSmrg_ACEOF 11713b62cc08cSmrg 11714b62cc08cSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 11715b62cc08cSmrg# here-document in config.status, that substitutes the proper values into 11716b62cc08cSmrg# config.h.in to produce config.h. 11717b62cc08cSmrg 11718b62cc08cSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 11719b62cc08cSmrg# handling of long lines. 11720b62cc08cSmrgac_delim='%!_!# ' 11721b62cc08cSmrgfor ac_last_try in false false :; do 11722b62cc08cSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11723b62cc08cSmrg if test -z "$ac_tt"; then 11724b62cc08cSmrg break 11725b62cc08cSmrg elif $ac_last_try; then 11726b62cc08cSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11727b62cc08cSmrg else 11728b62cc08cSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11729b62cc08cSmrg fi 11730b62cc08cSmrgdone 11731b62cc08cSmrg 11732b62cc08cSmrg# For the awk script, D is an array of macro values keyed by name, 11733b62cc08cSmrg# likewise P contains macro parameters if any. Preserve backslash 11734b62cc08cSmrg# newline sequences. 11735b62cc08cSmrg 11736b62cc08cSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11737b62cc08cSmrgsed -n ' 11738b62cc08cSmrgs/.\{148\}/&'"$ac_delim"'/g 11739b62cc08cSmrgt rset 11740b62cc08cSmrg:rset 11741b62cc08cSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 11742b62cc08cSmrgt def 11743b62cc08cSmrgd 11744b62cc08cSmrg:def 11745b62cc08cSmrgs/\\$// 11746b62cc08cSmrgt bsnl 11747b62cc08cSmrgs/["\\]/\\&/g 11748b62cc08cSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11749b62cc08cSmrgD["\1"]=" \3"/p 11750b62cc08cSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11751b62cc08cSmrgd 11752b62cc08cSmrg:bsnl 11753b62cc08cSmrgs/["\\]/\\&/g 11754b62cc08cSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11755b62cc08cSmrgD["\1"]=" \3\\\\\\n"\\/p 11756b62cc08cSmrgt cont 11757b62cc08cSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11758b62cc08cSmrgt cont 11759b62cc08cSmrgd 11760b62cc08cSmrg:cont 11761b62cc08cSmrgn 11762b62cc08cSmrgs/.\{148\}/&'"$ac_delim"'/g 11763b62cc08cSmrgt clear 11764b62cc08cSmrg:clear 11765b62cc08cSmrgs/\\$// 11766b62cc08cSmrgt bsnlc 11767b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 11768b62cc08cSmrgd 11769b62cc08cSmrg:bsnlc 11770b62cc08cSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11771b62cc08cSmrgb cont 11772b62cc08cSmrg' <confdefs.h | sed ' 11773b62cc08cSmrgs/'"$ac_delim"'/"\\\ 11774b62cc08cSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 11775b62cc08cSmrg 11776b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11777b62cc08cSmrg for (key in D) D_is_set[key] = 1 11778b62cc08cSmrg FS = "" 11779b62cc08cSmrg} 11780b62cc08cSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11781b62cc08cSmrg line = \$ 0 11782b62cc08cSmrg split(line, arg, " ") 11783b62cc08cSmrg if (arg[1] == "#") { 11784b62cc08cSmrg defundef = arg[2] 11785b62cc08cSmrg mac1 = arg[3] 11786b62cc08cSmrg } else { 11787b62cc08cSmrg defundef = substr(arg[1], 2) 11788b62cc08cSmrg mac1 = arg[2] 11789b62cc08cSmrg } 11790b62cc08cSmrg split(mac1, mac2, "(") #) 11791b62cc08cSmrg macro = mac2[1] 11792b62cc08cSmrg prefix = substr(line, 1, index(line, defundef) - 1) 11793b62cc08cSmrg if (D_is_set[macro]) { 11794b62cc08cSmrg # Preserve the white space surrounding the "#". 11795b62cc08cSmrg print prefix "define", macro P[macro] D[macro] 11796b62cc08cSmrg next 11797b62cc08cSmrg } else { 11798b62cc08cSmrg # Replace #undef with comments. This is necessary, for example, 11799b62cc08cSmrg # in the case of _POSIX_SOURCE, which is predefined and required 11800b62cc08cSmrg # on some systems where configure will not decide to define it. 11801b62cc08cSmrg if (defundef == "undef") { 11802b62cc08cSmrg print "/*", prefix defundef, macro, "*/" 11803b62cc08cSmrg next 11804b62cc08cSmrg } 11805b62cc08cSmrg } 11806b62cc08cSmrg} 11807b62cc08cSmrg{ print } 11808b62cc08cSmrg_ACAWK 11809b62cc08cSmrg_ACEOF 11810b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11811b62cc08cSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11812b62cc08cSmrgfi # test -n "$CONFIG_HEADERS" 11813b62cc08cSmrg 118149fe995a9Smrg 11815b62cc08cSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11816b62cc08cSmrgshift 11817b62cc08cSmrgfor ac_tag 118189fe995a9Smrgdo 118199fe995a9Smrg case $ac_tag in 118209fe995a9Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 118219fe995a9Smrg esac 118229fe995a9Smrg case $ac_mode$ac_tag in 118239fe995a9Smrg :[FHL]*:*);; 11824b62cc08cSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 118259fe995a9Smrg :[FH]-) ac_tag=-:-;; 118269fe995a9Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 118279fe995a9Smrg esac 118289fe995a9Smrg ac_save_IFS=$IFS 118299fe995a9Smrg IFS=: 118309fe995a9Smrg set x $ac_tag 118319fe995a9Smrg IFS=$ac_save_IFS 118329fe995a9Smrg shift 118339fe995a9Smrg ac_file=$1 118349fe995a9Smrg shift 118359fe995a9Smrg 118369fe995a9Smrg case $ac_mode in 118379fe995a9Smrg :L) ac_source=$1;; 118389fe995a9Smrg :[FH]) 118399fe995a9Smrg ac_file_inputs= 118409fe995a9Smrg for ac_f 118419fe995a9Smrg do 118429fe995a9Smrg case $ac_f in 11843b62cc08cSmrg -) ac_f="$ac_tmp/stdin";; 118449fe995a9Smrg *) # Look for the file first in the build tree, then in the source tree 118459fe995a9Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 118469fe995a9Smrg # because $ac_f cannot contain `:'. 118479fe995a9Smrg test -f "$ac_f" || 118489fe995a9Smrg case $ac_f in 118499fe995a9Smrg [\\/$]*) false;; 118509fe995a9Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 118519fe995a9Smrg esac || 11852b62cc08cSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 118539fe995a9Smrg esac 11854b62cc08cSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11855b62cc08cSmrg as_fn_append ac_file_inputs " '$ac_f'" 118569fe995a9Smrg done 118579fe995a9Smrg 118589fe995a9Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 118599fe995a9Smrg # use $as_me), people would be surprised to read: 118609fe995a9Smrg # /* config.h. Generated by config.status. */ 11861b62cc08cSmrg configure_input='Generated from '` 11862b62cc08cSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11863b62cc08cSmrg `' by configure.' 118649fe995a9Smrg if test x"$ac_file" != x-; then 118659fe995a9Smrg configure_input="$ac_file. $configure_input" 11866b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11867b62cc08cSmrg$as_echo "$as_me: creating $ac_file" >&6;} 118689fe995a9Smrg fi 11869b62cc08cSmrg # Neutralize special characters interpreted by sed in replacement strings. 11870b62cc08cSmrg case $configure_input in #( 11871b62cc08cSmrg *\&* | *\|* | *\\* ) 11872b62cc08cSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 11873b62cc08cSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 11874b62cc08cSmrg *) ac_sed_conf_input=$configure_input;; 11875b62cc08cSmrg esac 118769fe995a9Smrg 118779fe995a9Smrg case $ac_tag in 11878b62cc08cSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11879b62cc08cSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 118809fe995a9Smrg esac 118819fe995a9Smrg ;; 118829fe995a9Smrg esac 118839fe995a9Smrg 118849fe995a9Smrg ac_dir=`$as_dirname -- "$ac_file" || 118859fe995a9Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 118869fe995a9Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 118879fe995a9Smrg X"$ac_file" : 'X\(//\)$' \| \ 118889fe995a9Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11889b62cc08cSmrg$as_echo X"$ac_file" | 118909fe995a9Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 118919fe995a9Smrg s//\1/ 118929fe995a9Smrg q 118939fe995a9Smrg } 118949fe995a9Smrg /^X\(\/\/\)[^/].*/{ 118959fe995a9Smrg s//\1/ 118969fe995a9Smrg q 118979fe995a9Smrg } 118989fe995a9Smrg /^X\(\/\/\)$/{ 118999fe995a9Smrg s//\1/ 119009fe995a9Smrg q 119019fe995a9Smrg } 119029fe995a9Smrg /^X\(\/\).*/{ 119039fe995a9Smrg s//\1/ 119049fe995a9Smrg q 119059fe995a9Smrg } 119069fe995a9Smrg s/.*/./; q'` 11907b62cc08cSmrg as_dir="$ac_dir"; as_fn_mkdir_p 119089fe995a9Smrg ac_builddir=. 119099fe995a9Smrg 119109fe995a9Smrgcase "$ac_dir" in 119119fe995a9Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 119129fe995a9Smrg*) 11913b62cc08cSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 119149fe995a9Smrg # A ".." for each directory in $ac_dir_suffix. 11915b62cc08cSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 119169fe995a9Smrg case $ac_top_builddir_sub in 119179fe995a9Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 119189fe995a9Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 119199fe995a9Smrg esac ;; 119209fe995a9Smrgesac 119219fe995a9Smrgac_abs_top_builddir=$ac_pwd 119229fe995a9Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 119239fe995a9Smrg# for backward compatibility: 119249fe995a9Smrgac_top_builddir=$ac_top_build_prefix 119259fe995a9Smrg 119269fe995a9Smrgcase $srcdir in 119279fe995a9Smrg .) # We are building in place. 119289fe995a9Smrg ac_srcdir=. 119299fe995a9Smrg ac_top_srcdir=$ac_top_builddir_sub 119309fe995a9Smrg ac_abs_top_srcdir=$ac_pwd ;; 119319fe995a9Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 119329fe995a9Smrg ac_srcdir=$srcdir$ac_dir_suffix; 119339fe995a9Smrg ac_top_srcdir=$srcdir 119349fe995a9Smrg ac_abs_top_srcdir=$srcdir ;; 119359fe995a9Smrg *) # Relative name. 119369fe995a9Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 119379fe995a9Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 119389fe995a9Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 119399fe995a9Smrgesac 119409fe995a9Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 119419fe995a9Smrg 119429fe995a9Smrg 119439fe995a9Smrg case $ac_mode in 119449fe995a9Smrg :F) 119459fe995a9Smrg # 119469fe995a9Smrg # CONFIG_FILE 119479fe995a9Smrg # 119489fe995a9Smrg 119499fe995a9Smrg case $INSTALL in 119509fe995a9Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 119519fe995a9Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 119529fe995a9Smrg esac 119539fe995a9Smrg ac_MKDIR_P=$MKDIR_P 119549fe995a9Smrg case $MKDIR_P in 119559fe995a9Smrg [\\/$]* | ?:[\\/]* ) ;; 119569fe995a9Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 119579fe995a9Smrg esac 119589fe995a9Smrg_ACEOF 119599fe995a9Smrg 11960b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 119619fe995a9Smrg# If the template does not know about datarootdir, expand it. 119629fe995a9Smrg# FIXME: This hack should be removed a few years after 2.60. 119639fe995a9Smrgac_datarootdir_hack=; ac_datarootdir_seen= 11964b62cc08cSmrgac_sed_dataroot=' 11965b62cc08cSmrg/datarootdir/ { 119669fe995a9Smrg p 119679fe995a9Smrg q 119689fe995a9Smrg} 119699fe995a9Smrg/@datadir@/p 119709fe995a9Smrg/@docdir@/p 119719fe995a9Smrg/@infodir@/p 119729fe995a9Smrg/@localedir@/p 11973b62cc08cSmrg/@mandir@/p' 11974b62cc08cSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 119759fe995a9Smrg*datarootdir*) ac_datarootdir_seen=yes;; 119769fe995a9Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11977b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11978b62cc08cSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 119799fe995a9Smrg_ACEOF 11980b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 119819fe995a9Smrg ac_datarootdir_hack=' 119829fe995a9Smrg s&@datadir@&$datadir&g 119839fe995a9Smrg s&@docdir@&$docdir&g 119849fe995a9Smrg s&@infodir@&$infodir&g 119859fe995a9Smrg s&@localedir@&$localedir&g 119869fe995a9Smrg s&@mandir@&$mandir&g 11987b62cc08cSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 119889fe995a9Smrgesac 119899fe995a9Smrg_ACEOF 119909fe995a9Smrg 119919fe995a9Smrg# Neutralize VPATH when `$srcdir' = `.'. 119929fe995a9Smrg# Shell code in configure.ac might set extrasub. 119939fe995a9Smrg# FIXME: do we really want to maintain this feature? 11994b62cc08cSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11995b62cc08cSmrgac_sed_extra="$ac_vpsub 119969fe995a9Smrg$extrasub 119979fe995a9Smrg_ACEOF 11998b62cc08cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 119999fe995a9Smrg:t 120009fe995a9Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12001b62cc08cSmrgs|@configure_input@|$ac_sed_conf_input|;t t 120029fe995a9Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 12003b62cc08cSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 120049fe995a9Smrgs&@srcdir@&$ac_srcdir&;t t 120059fe995a9Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 120069fe995a9Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 120079fe995a9Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 120089fe995a9Smrgs&@builddir@&$ac_builddir&;t t 120099fe995a9Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 120109fe995a9Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 120119fe995a9Smrgs&@INSTALL@&$ac_INSTALL&;t t 120129fe995a9Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 120139fe995a9Smrg$ac_datarootdir_hack 12014b62cc08cSmrg" 12015b62cc08cSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12016b62cc08cSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 120179fe995a9Smrg 120189fe995a9Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12019b62cc08cSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12020b62cc08cSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12021b62cc08cSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 12022b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12023b62cc08cSmrgwhich seems to be undefined. Please make sure it is defined" >&5 12024b62cc08cSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12025b62cc08cSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 12026b62cc08cSmrg 12027b62cc08cSmrg rm -f "$ac_tmp/stdin" 120289fe995a9Smrg case $ac_file in 12029b62cc08cSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12030b62cc08cSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12031b62cc08cSmrg esac \ 12032b62cc08cSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 120339fe995a9Smrg ;; 120349fe995a9Smrg :H) 120359fe995a9Smrg # 120369fe995a9Smrg # CONFIG_HEADER 120379fe995a9Smrg # 120389fe995a9Smrg if test x"$ac_file" != x-; then 12039b62cc08cSmrg { 12040b62cc08cSmrg $as_echo "/* $configure_input */" \ 12041b62cc08cSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12042b62cc08cSmrg } >"$ac_tmp/config.h" \ 12043b62cc08cSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12044b62cc08cSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12045b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12046b62cc08cSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 120479fe995a9Smrg else 12048b62cc08cSmrg rm -f "$ac_file" 12049b62cc08cSmrg mv "$ac_tmp/config.h" "$ac_file" \ 12050b62cc08cSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 120519fe995a9Smrg fi 120529fe995a9Smrg else 12053b62cc08cSmrg $as_echo "/* $configure_input */" \ 12054b62cc08cSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12055b62cc08cSmrg || as_fn_error $? "could not create -" "$LINENO" 5 120569fe995a9Smrg fi 12057b62cc08cSmrg# Compute "$ac_file"'s index in $config_headers. 12058b62cc08cSmrg_am_arg="$ac_file" 120599fe995a9Smrg_am_stamp_count=1 120609fe995a9Smrgfor _am_header in $config_headers :; do 120619fe995a9Smrg case $_am_header in 12062b62cc08cSmrg $_am_arg | $_am_arg:* ) 120639fe995a9Smrg break ;; 120649fe995a9Smrg * ) 120659fe995a9Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 120669fe995a9Smrg esac 120679fe995a9Smrgdone 12068b62cc08cSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12069b62cc08cSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12070b62cc08cSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 12071b62cc08cSmrg X"$_am_arg" : 'X\(//\)$' \| \ 12072b62cc08cSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12073b62cc08cSmrg$as_echo X"$_am_arg" | 120749fe995a9Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 120759fe995a9Smrg s//\1/ 120769fe995a9Smrg q 120779fe995a9Smrg } 120789fe995a9Smrg /^X\(\/\/\)[^/].*/{ 120799fe995a9Smrg s//\1/ 120809fe995a9Smrg q 120819fe995a9Smrg } 120829fe995a9Smrg /^X\(\/\/\)$/{ 120839fe995a9Smrg s//\1/ 120849fe995a9Smrg q 120859fe995a9Smrg } 120869fe995a9Smrg /^X\(\/\).*/{ 120879fe995a9Smrg s//\1/ 120889fe995a9Smrg q 120899fe995a9Smrg } 120909fe995a9Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 120919fe995a9Smrg ;; 120929fe995a9Smrg 12093b62cc08cSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12094b62cc08cSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 120959fe995a9Smrg ;; 120969fe995a9Smrg esac 120979fe995a9Smrg 120989fe995a9Smrg 120999fe995a9Smrg case $ac_file$ac_mode in 12100b62cc08cSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 121019d794632Smrg # Older Autoconf quotes --file arguments for eval, but not when files 12102b62cc08cSmrg # are listed without --file. Let's play safe and only enable the eval 12103b62cc08cSmrg # if we detect the quoting. 12104b62cc08cSmrg case $CONFIG_FILES in 12105b62cc08cSmrg *\'*) eval set x "$CONFIG_FILES" ;; 12106b62cc08cSmrg *) set x $CONFIG_FILES ;; 12107b62cc08cSmrg esac 12108b62cc08cSmrg shift 12109b62cc08cSmrg for mf 12110b62cc08cSmrg do 12111b62cc08cSmrg # Strip MF so we end up with the name of the file. 12112b62cc08cSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 12113b62cc08cSmrg # Check whether this is an Automake generated Makefile or not. 121149d794632Smrg # We used to match only the files named 'Makefile.in', but 12115b62cc08cSmrg # some people rename them; so instead we look at the file content. 12116b62cc08cSmrg # Grep'ing the first line is not enough: some people post-process 12117b62cc08cSmrg # each Makefile.in and add a new line on top of each file to say so. 12118b62cc08cSmrg # Grep'ing the whole file is not good either: AIX grep has a line 12119b62cc08cSmrg # limit of 2048, but all sed's we know have understand at least 4000. 12120b62cc08cSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12121b62cc08cSmrg dirpart=`$as_dirname -- "$mf" || 121229fe995a9Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 121239fe995a9Smrg X"$mf" : 'X\(//\)[^/]' \| \ 121249fe995a9Smrg X"$mf" : 'X\(//\)$' \| \ 121259fe995a9Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12126b62cc08cSmrg$as_echo X"$mf" | 121279fe995a9Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 121289fe995a9Smrg s//\1/ 121299fe995a9Smrg q 121309fe995a9Smrg } 121319fe995a9Smrg /^X\(\/\/\)[^/].*/{ 121329fe995a9Smrg s//\1/ 121339fe995a9Smrg q 121349fe995a9Smrg } 121359fe995a9Smrg /^X\(\/\/\)$/{ 121369fe995a9Smrg s//\1/ 121379fe995a9Smrg q 121389fe995a9Smrg } 121399fe995a9Smrg /^X\(\/\).*/{ 121409fe995a9Smrg s//\1/ 121419fe995a9Smrg q 121429fe995a9Smrg } 121439fe995a9Smrg s/.*/./; q'` 12144b62cc08cSmrg else 12145b62cc08cSmrg continue 12146b62cc08cSmrg fi 12147b62cc08cSmrg # Extract the definition of DEPDIR, am__include, and am__quote 121489d794632Smrg # from the Makefile without running 'make'. 12149b62cc08cSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12150b62cc08cSmrg test -z "$DEPDIR" && continue 12151b62cc08cSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 121529d794632Smrg test -z "$am__include" && continue 12153b62cc08cSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12154b62cc08cSmrg # Find all dependency output files, they are included files with 12155b62cc08cSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 12156b62cc08cSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 12157b62cc08cSmrg # expansion. 12158b62cc08cSmrg for file in `sed -n " 12159b62cc08cSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 121609d794632Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12161b62cc08cSmrg # Make sure the directory exists. 12162b62cc08cSmrg test -f "$dirpart/$file" && continue 12163b62cc08cSmrg fdir=`$as_dirname -- "$file" || 121649fe995a9Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 121659fe995a9Smrg X"$file" : 'X\(//\)[^/]' \| \ 121669fe995a9Smrg X"$file" : 'X\(//\)$' \| \ 121679fe995a9Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 12168b62cc08cSmrg$as_echo X"$file" | 121699fe995a9Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 121709fe995a9Smrg s//\1/ 121719fe995a9Smrg q 121729fe995a9Smrg } 121739fe995a9Smrg /^X\(\/\/\)[^/].*/{ 121749fe995a9Smrg s//\1/ 121759fe995a9Smrg q 121769fe995a9Smrg } 121779fe995a9Smrg /^X\(\/\/\)$/{ 121789fe995a9Smrg s//\1/ 121799fe995a9Smrg q 121809fe995a9Smrg } 121819fe995a9Smrg /^X\(\/\).*/{ 121829fe995a9Smrg s//\1/ 121839fe995a9Smrg q 121849fe995a9Smrg } 121859fe995a9Smrg s/.*/./; q'` 12186b62cc08cSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 12187b62cc08cSmrg # echo "creating $dirpart/$file" 12188b62cc08cSmrg echo '# dummy' > "$dirpart/$file" 121899fe995a9Smrg done 121909fe995a9Smrg done 12191b62cc08cSmrg} 121929fe995a9Smrg ;; 121939fe995a9Smrg 121949fe995a9Smrg esac 121959fe995a9Smrgdone # for ac_tag 121969fe995a9Smrg 121979fe995a9Smrg 12198b62cc08cSmrgas_fn_exit 0 121999fe995a9Smrg_ACEOF 122009fe995a9Smrgac_clean_files=$ac_clean_files_save 122019fe995a9Smrg 12202b62cc08cSmrgtest $ac_write_fail = 0 || 12203b62cc08cSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12204b62cc08cSmrg 122059fe995a9Smrg 122069fe995a9Smrg# configure is writing to config.log, and then calls config.status. 122079fe995a9Smrg# config.status does its own redirection, appending to config.log. 122089fe995a9Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 122099fe995a9Smrg# by configure, so config.status won't be able to write to it; its 122109fe995a9Smrg# output is simply discarded. So we exec the FD to /dev/null, 122119fe995a9Smrg# effectively closing config.log, so it can be properly (re)opened and 122129fe995a9Smrg# appended to by config.status. When coming back to configure, we 122139fe995a9Smrg# need to make the FD available again. 122149fe995a9Smrgif test "$no_create" != yes; then 122159fe995a9Smrg ac_cs_success=: 122169fe995a9Smrg ac_config_status_args= 122179fe995a9Smrg test "$silent" = yes && 122189fe995a9Smrg ac_config_status_args="$ac_config_status_args --quiet" 122199fe995a9Smrg exec 5>/dev/null 122209fe995a9Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 122219fe995a9Smrg exec 5>>config.log 122229fe995a9Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 122239fe995a9Smrg # would make configure fail if this is the last instruction. 12224b62cc08cSmrg $ac_cs_success || as_fn_exit 1 12225b62cc08cSmrgfi 12226b62cc08cSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12227b62cc08cSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12228b62cc08cSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 122299fe995a9Smrgfi 122309fe995a9Smrg 12231