configure revision 74a3f230
11.12Schs#! /bin/sh 21.1Sjmcneill# Guess values for system-dependent variables and create Makefiles. 31.1Sjmcneill# Generated by GNU Autoconf 2.68 for xwd 1.0.6. 41.6Sjmcneill# 51.1Sjmcneill# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 61.1Sjmcneill# 71.1Sjmcneill# 81.1Sjmcneill# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 91.1Sjmcneill# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 101.1Sjmcneill# Foundation, Inc. 111.1Sjmcneill# 121.1Sjmcneill# 131.1Sjmcneill# This configure script is free software; the Free Software Foundation 141.1Sjmcneill# gives unlimited permission to copy, distribute and modify it. 151.1Sjmcneill## -------------------- ## 161.1Sjmcneill## M4sh Initialization. ## 171.1Sjmcneill## -------------------- ## 181.1Sjmcneill 191.1Sjmcneill# Be more Bourne compatible 201.1SjmcneillDUALCASE=1; export DUALCASE # for MKS sh 211.1Sjmcneillif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 221.1Sjmcneill emulate sh 231.1Sjmcneill NULLCMD=: 241.1Sjmcneill # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 251.1Sjmcneill # is contrary to our usage. Disable this feature. 261.1Sjmcneill alias -g '${1+"$@"}'='"$@"' 271.1Sjmcneill setopt NO_GLOB_SUBST 281.1Sjmcneillelse 291.1Sjmcneill case `(set -o) 2>/dev/null` in #( 301.5Skent *posix*) : 311.1Sjmcneill set -o posix ;; #( 321.1Sjmcneill *) : 331.1Sjmcneill ;; 341.1Sjmcneillesac 351.4Sjmcneillfi 361.4Sjmcneill 371.4Sjmcneill 381.4Sjmcneillas_nl=' 391.4Sjmcneill' 401.4Sjmcneillexport as_nl 411.4Sjmcneill# Printing a long string crashes Solaris 7 /usr/bin/printf. 421.4Sjmcneillas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 431.4Sjmcneillas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 441.4Sjmcneillas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 451.4Sjmcneill# Prefer a ksh shell builtin over an external printf program on Solaris, 461.4Sjmcneill# but without wasting forks for bash or zsh. 471.4Sjmcneillif test -z "$BASH_VERSION$ZSH_VERSION" \ 481.4Sjmcneill && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 491.1Sjmcneill as_echo='print -r --' 501.1Sjmcneill as_echo_n='print -rn --' 511.1Sjmcneillelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 521.1Sjmcneill as_echo='printf %s\n' 531.1Sjmcneill as_echo_n='printf %s' 541.1Sjmcneillelse 551.4Sjmcneill if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 561.4Sjmcneill as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 571.4Sjmcneill as_echo_n='/usr/ucb/echo -n' 581.4Sjmcneill else 591.4Sjmcneill as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 601.4Sjmcneill as_echo_n_body='eval 611.4Sjmcneill arg=$1; 621.1Sjmcneill case $arg in #( 631.1Sjmcneill *"$as_nl"*) 641.8Schristos expr "X$arg" : "X\\(.*\\)$as_nl"; 651.1Sjmcneill arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 661.1Sjmcneill esac; 671.1Sjmcneill expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 681.1Sjmcneill ' 691.1Sjmcneill export as_echo_n_body 701.1Sjmcneill as_echo_n='sh -c $as_echo_n_body as_echo' 711.1Sjmcneill fi 721.1Sjmcneill export as_echo_body 731.2Sjmcneill as_echo='sh -c $as_echo_body as_echo' 741.4Sjmcneillfi 751.1Sjmcneill 761.1Sjmcneill# The user is always right. 771.1Sjmcneillif test "${PATH_SEPARATOR+set}" != set; then 781.1Sjmcneill PATH_SEPARATOR=: 791.5Skent (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 801.5Skent (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 811.4Sjmcneill PATH_SEPARATOR=';' 821.4Sjmcneill } 831.4Sjmcneillfi 841.5Skent 851.2Sjmcneill 861.2Sjmcneill# IFS 871.1Sjmcneill# We need space, tab and new line, in precisely that order. Quoting is 881.1Sjmcneill# there to prevent editors from complaining about space-tab. 891.4Sjmcneill# (If _AS_PATH_WALK were called with IFS unset, it would disable word 901.10Sjmcneill# splitting by setting IFS to empty value.) 911.4SjmcneillIFS=" "" $as_nl" 921.4Sjmcneill 931.4Sjmcneill# Find who we are. Look in the path if we contain no directory separator. 941.4Sjmcneillas_myself= 951.4Sjmcneillcase $0 in #(( 961.4Sjmcneill *[\\/]* ) as_myself=$0 ;; 971.4Sjmcneill *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 981.1Sjmcneillfor as_dir in $PATH 991.1Sjmcneilldo 1001.10Sjmcneill IFS=$as_save_IFS 1011.1Sjmcneill test -z "$as_dir" && as_dir=. 1021.1Sjmcneill test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1031.1Sjmcneill done 1041.1SjmcneillIFS=$as_save_IFS 1051.11Sjmcneill 1061.11Sjmcneill ;; 1071.1Sjmcneillesac 1081.1Sjmcneill# We did not find ourselves, most probably we were run as `sh COMMAND' 1091.1Sjmcneill# in which case we are not to be found in the path. 1101.1Sjmcneillif test "x$as_myself" = x; then 1111.1Sjmcneill as_myself=$0 1121.1Sjmcneillfi 1131.1Sjmcneillif test ! -f "$as_myself"; then 1141.1Sjmcneill $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1151.1Sjmcneill exit 1 1161.1Sjmcneillfi 1171.1Sjmcneill 1181.1Sjmcneill# Unset variables that we do not need and which cause bugs (e.g. in 1191.12Schs# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1201.1Sjmcneill# suppresses any "Segmentation fault" message there. '((' could 1211.4Sjmcneill# trigger a bug in pdksh 5.2.14. 1221.1Sjmcneillfor as_var in BASH_ENV ENV MAIL MAILPATH 1231.4Sjmcneilldo eval test x\${$as_var+set} = xset \ 1241.4Sjmcneill && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1251.4Sjmcneilldone 1261.4SjmcneillPS1='$ ' 1271.4SjmcneillPS2='> ' 1281.4SjmcneillPS4='+ ' 1291.4Sjmcneill 1301.4Sjmcneill# NLS nuisances. 1311.4SjmcneillLC_ALL=C 1321.4Sjmcneillexport LC_ALL 1331.1SjmcneillLANGUAGE=C 1341.1Sjmcneillexport LANGUAGE 1351.1Sjmcneill 1361.3Spooka# CDPATH. 1371.5Skent(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1381.11Sjmcneill 1391.1Sjmcneillif test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='xwd' 563PACKAGE_TARNAME='xwd' 564PACKAGE_VERSION='1.0.6' 565PACKAGE_STRING='xwd 1.0.6' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610XWD_LIBS 611XWD_CFLAGS 612MAN_SUBSTS 613XORG_MAN_PAGE 614ADMIN_MAN_DIR 615DRIVER_MAN_DIR 616MISC_MAN_DIR 617FILE_MAN_DIR 618LIB_MAN_DIR 619APP_MAN_DIR 620ADMIN_MAN_SUFFIX 621DRIVER_MAN_SUFFIX 622MISC_MAN_SUFFIX 623FILE_MAN_SUFFIX 624LIB_MAN_SUFFIX 625APP_MAN_SUFFIX 626SED 627host_os 628host_vendor 629host_cpu 630host 631build_os 632build_vendor 633build_cpu 634build 635INSTALL_CMD 636PKG_CONFIG 637CHANGELOG_CMD 638STRICT_CFLAGS 639CWARNFLAGS 640BASE_CFLAGS 641EGREP 642GREP 643CPP 644am__fastdepCC_FALSE 645am__fastdepCC_TRUE 646CCDEPMODE 647am__nodep 648AMDEPBACKSLASH 649AMDEP_FALSE 650AMDEP_TRUE 651am__quote 652am__include 653DEPDIR 654OBJEXT 655EXEEXT 656ac_ct_CC 657CPPFLAGS 658LDFLAGS 659CFLAGS 660CC 661MAINT 662MAINTAINER_MODE_FALSE 663MAINTAINER_MODE_TRUE 664AM_BACKSLASH 665AM_DEFAULT_VERBOSITY 666AM_DEFAULT_V 667AM_V 668am__untar 669am__tar 670AMTAR 671am__leading_dot 672SET_MAKE 673AWK 674mkdir_p 675MKDIR_P 676INSTALL_STRIP_PROGRAM 677STRIP 678install_sh 679MAKEINFO 680AUTOHEADER 681AUTOMAKE 682AUTOCONF 683ACLOCAL 684VERSION 685PACKAGE 686CYGPATH_W 687am__isrc 688INSTALL_DATA 689INSTALL_SCRIPT 690INSTALL_PROGRAM 691target_alias 692host_alias 693build_alias 694LIBS 695ECHO_T 696ECHO_N 697ECHO_C 698DEFS 699mandir 700localedir 701libdir 702psdir 703pdfdir 704dvidir 705htmldir 706infodir 707docdir 708oldincludedir 709includedir 710localstatedir 711sharedstatedir 712sysconfdir 713datadir 714datarootdir 715libexecdir 716sbindir 717bindir 718program_transform_name 719prefix 720exec_prefix 721PACKAGE_URL 722PACKAGE_BUGREPORT 723PACKAGE_STRING 724PACKAGE_VERSION 725PACKAGE_TARNAME 726PACKAGE_NAME 727PATH_SEPARATOR 728SHELL' 729ac_subst_files='' 730ac_user_opts=' 731enable_option_checking 732enable_silent_rules 733enable_maintainer_mode 734enable_dependency_tracking 735enable_selective_werror 736enable_strict_compilation 737with_xkb 738' 739 ac_precious_vars='build_alias 740host_alias 741target_alias 742CC 743CFLAGS 744LDFLAGS 745LIBS 746CPPFLAGS 747CPP 748PKG_CONFIG 749XWD_CFLAGS 750XWD_LIBS' 751 752 753# Initialize some variables set by options. 754ac_init_help= 755ac_init_version=false 756ac_unrecognized_opts= 757ac_unrecognized_sep= 758# The variables have the same names as the options, with 759# dashes changed to underlines. 760cache_file=/dev/null 761exec_prefix=NONE 762no_create= 763no_recursion= 764prefix=NONE 765program_prefix=NONE 766program_suffix=NONE 767program_transform_name=s,x,x, 768silent= 769site= 770srcdir= 771verbose= 772x_includes=NONE 773x_libraries=NONE 774 775# Installation directory options. 776# These are left unexpanded so users can "make install exec_prefix=/foo" 777# and all the variables that are supposed to be based on exec_prefix 778# by default will actually change. 779# Use braces instead of parens because sh, perl, etc. also accept them. 780# (The list follows the same order as the GNU Coding Standards.) 781bindir='${exec_prefix}/bin' 782sbindir='${exec_prefix}/sbin' 783libexecdir='${exec_prefix}/libexec' 784datarootdir='${prefix}/share' 785datadir='${datarootdir}' 786sysconfdir='${prefix}/etc' 787sharedstatedir='${prefix}/com' 788localstatedir='${prefix}/var' 789includedir='${prefix}/include' 790oldincludedir='/usr/include' 791docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 792infodir='${datarootdir}/info' 793htmldir='${docdir}' 794dvidir='${docdir}' 795pdfdir='${docdir}' 796psdir='${docdir}' 797libdir='${exec_prefix}/lib' 798localedir='${datarootdir}/locale' 799mandir='${datarootdir}/man' 800 801ac_prev= 802ac_dashdash= 803for ac_option 804do 805 # If the previous option needs an argument, assign it. 806 if test -n "$ac_prev"; then 807 eval $ac_prev=\$ac_option 808 ac_prev= 809 continue 810 fi 811 812 case $ac_option in 813 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 814 *=) ac_optarg= ;; 815 *) ac_optarg=yes ;; 816 esac 817 818 # Accept the important Cygnus configure options, so we can diagnose typos. 819 820 case $ac_dashdash$ac_option in 821 --) 822 ac_dashdash=yes ;; 823 824 -bindir | --bindir | --bindi | --bind | --bin | --bi) 825 ac_prev=bindir ;; 826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 827 bindir=$ac_optarg ;; 828 829 -build | --build | --buil | --bui | --bu) 830 ac_prev=build_alias ;; 831 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 832 build_alias=$ac_optarg ;; 833 834 -cache-file | --cache-file | --cache-fil | --cache-fi \ 835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 836 ac_prev=cache_file ;; 837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 839 cache_file=$ac_optarg ;; 840 841 --config-cache | -C) 842 cache_file=config.cache ;; 843 844 -datadir | --datadir | --datadi | --datad) 845 ac_prev=datadir ;; 846 -datadir=* | --datadir=* | --datadi=* | --datad=*) 847 datadir=$ac_optarg ;; 848 849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 850 | --dataroo | --dataro | --datar) 851 ac_prev=datarootdir ;; 852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 854 datarootdir=$ac_optarg ;; 855 856 -disable-* | --disable-*) 857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 858 # Reject names that are not valid shell variable names. 859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 860 as_fn_error $? "invalid feature name: $ac_useropt" 861 ac_useropt_orig=$ac_useropt 862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 863 case $ac_user_opts in 864 *" 865"enable_$ac_useropt" 866"*) ;; 867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 868 ac_unrecognized_sep=', ';; 869 esac 870 eval enable_$ac_useropt=no ;; 871 872 -docdir | --docdir | --docdi | --doc | --do) 873 ac_prev=docdir ;; 874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 875 docdir=$ac_optarg ;; 876 877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 878 ac_prev=dvidir ;; 879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 880 dvidir=$ac_optarg ;; 881 882 -enable-* | --enable-*) 883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 884 # Reject names that are not valid shell variable names. 885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 886 as_fn_error $? "invalid feature name: $ac_useropt" 887 ac_useropt_orig=$ac_useropt 888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 889 case $ac_user_opts in 890 *" 891"enable_$ac_useropt" 892"*) ;; 893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 894 ac_unrecognized_sep=', ';; 895 esac 896 eval enable_$ac_useropt=\$ac_optarg ;; 897 898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 900 | --exec | --exe | --ex) 901 ac_prev=exec_prefix ;; 902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 904 | --exec=* | --exe=* | --ex=*) 905 exec_prefix=$ac_optarg ;; 906 907 -gas | --gas | --ga | --g) 908 # Obsolete; use --with-gas. 909 with_gas=yes ;; 910 911 -help | --help | --hel | --he | -h) 912 ac_init_help=long ;; 913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 914 ac_init_help=recursive ;; 915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 916 ac_init_help=short ;; 917 918 -host | --host | --hos | --ho) 919 ac_prev=host_alias ;; 920 -host=* | --host=* | --hos=* | --ho=*) 921 host_alias=$ac_optarg ;; 922 923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 924 ac_prev=htmldir ;; 925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 926 | --ht=*) 927 htmldir=$ac_optarg ;; 928 929 -includedir | --includedir | --includedi | --included | --include \ 930 | --includ | --inclu | --incl | --inc) 931 ac_prev=includedir ;; 932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 933 | --includ=* | --inclu=* | --incl=* | --inc=*) 934 includedir=$ac_optarg ;; 935 936 -infodir | --infodir | --infodi | --infod | --info | --inf) 937 ac_prev=infodir ;; 938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 939 infodir=$ac_optarg ;; 940 941 -libdir | --libdir | --libdi | --libd) 942 ac_prev=libdir ;; 943 -libdir=* | --libdir=* | --libdi=* | --libd=*) 944 libdir=$ac_optarg ;; 945 946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 947 | --libexe | --libex | --libe) 948 ac_prev=libexecdir ;; 949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 950 | --libexe=* | --libex=* | --libe=*) 951 libexecdir=$ac_optarg ;; 952 953 -localedir | --localedir | --localedi | --localed | --locale) 954 ac_prev=localedir ;; 955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 956 localedir=$ac_optarg ;; 957 958 -localstatedir | --localstatedir | --localstatedi | --localstated \ 959 | --localstate | --localstat | --localsta | --localst | --locals) 960 ac_prev=localstatedir ;; 961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 963 localstatedir=$ac_optarg ;; 964 965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 966 ac_prev=mandir ;; 967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 968 mandir=$ac_optarg ;; 969 970 -nfp | --nfp | --nf) 971 # Obsolete; use --without-fp. 972 with_fp=no ;; 973 974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 975 | --no-cr | --no-c | -n) 976 no_create=yes ;; 977 978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 980 no_recursion=yes ;; 981 982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 984 | --oldin | --oldi | --old | --ol | --o) 985 ac_prev=oldincludedir ;; 986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 989 oldincludedir=$ac_optarg ;; 990 991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 992 ac_prev=prefix ;; 993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 994 prefix=$ac_optarg ;; 995 996 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 997 | --program-pre | --program-pr | --program-p) 998 ac_prev=program_prefix ;; 999 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1001 program_prefix=$ac_optarg ;; 1002 1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1004 | --program-suf | --program-su | --program-s) 1005 ac_prev=program_suffix ;; 1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1008 program_suffix=$ac_optarg ;; 1009 1010 -program-transform-name | --program-transform-name \ 1011 | --program-transform-nam | --program-transform-na \ 1012 | --program-transform-n | --program-transform- \ 1013 | --program-transform | --program-transfor \ 1014 | --program-transfo | --program-transf \ 1015 | --program-trans | --program-tran \ 1016 | --progr-tra | --program-tr | --program-t) 1017 ac_prev=program_transform_name ;; 1018 -program-transform-name=* | --program-transform-name=* \ 1019 | --program-transform-nam=* | --program-transform-na=* \ 1020 | --program-transform-n=* | --program-transform-=* \ 1021 | --program-transform=* | --program-transfor=* \ 1022 | --program-transfo=* | --program-transf=* \ 1023 | --program-trans=* | --program-tran=* \ 1024 | --progr-tra=* | --program-tr=* | --program-t=*) 1025 program_transform_name=$ac_optarg ;; 1026 1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1028 ac_prev=pdfdir ;; 1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1030 pdfdir=$ac_optarg ;; 1031 1032 -psdir | --psdir | --psdi | --psd | --ps) 1033 ac_prev=psdir ;; 1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1035 psdir=$ac_optarg ;; 1036 1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1038 | -silent | --silent | --silen | --sile | --sil) 1039 silent=yes ;; 1040 1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1042 ac_prev=sbindir ;; 1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1044 | --sbi=* | --sb=*) 1045 sbindir=$ac_optarg ;; 1046 1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1049 | --sharedst | --shareds | --shared | --share | --shar \ 1050 | --sha | --sh) 1051 ac_prev=sharedstatedir ;; 1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1055 | --sha=* | --sh=*) 1056 sharedstatedir=$ac_optarg ;; 1057 1058 -site | --site | --sit) 1059 ac_prev=site ;; 1060 -site=* | --site=* | --sit=*) 1061 site=$ac_optarg ;; 1062 1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1064 ac_prev=srcdir ;; 1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1066 srcdir=$ac_optarg ;; 1067 1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1069 | --syscon | --sysco | --sysc | --sys | --sy) 1070 ac_prev=sysconfdir ;; 1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1073 sysconfdir=$ac_optarg ;; 1074 1075 -target | --target | --targe | --targ | --tar | --ta | --t) 1076 ac_prev=target_alias ;; 1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1078 target_alias=$ac_optarg ;; 1079 1080 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1081 verbose=yes ;; 1082 1083 -version | --version | --versio | --versi | --vers | -V) 1084 ac_init_version=: ;; 1085 1086 -with-* | --with-*) 1087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1088 # Reject names that are not valid shell variable names. 1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1090 as_fn_error $? "invalid package name: $ac_useropt" 1091 ac_useropt_orig=$ac_useropt 1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1093 case $ac_user_opts in 1094 *" 1095"with_$ac_useropt" 1096"*) ;; 1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1098 ac_unrecognized_sep=', ';; 1099 esac 1100 eval with_$ac_useropt=\$ac_optarg ;; 1101 1102 -without-* | --without-*) 1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1104 # Reject names that are not valid shell variable names. 1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1106 as_fn_error $? "invalid package name: $ac_useropt" 1107 ac_useropt_orig=$ac_useropt 1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1109 case $ac_user_opts in 1110 *" 1111"with_$ac_useropt" 1112"*) ;; 1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1114 ac_unrecognized_sep=', ';; 1115 esac 1116 eval with_$ac_useropt=no ;; 1117 1118 --x) 1119 # Obsolete; use --with-x. 1120 with_x=yes ;; 1121 1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1123 | --x-incl | --x-inc | --x-in | --x-i) 1124 ac_prev=x_includes ;; 1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1127 x_includes=$ac_optarg ;; 1128 1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1131 ac_prev=x_libraries ;; 1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1134 x_libraries=$ac_optarg ;; 1135 1136 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1137Try \`$0 --help' for more information" 1138 ;; 1139 1140 *=*) 1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1142 # Reject names that are not valid shell variable names. 1143 case $ac_envvar in #( 1144 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1145 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1146 esac 1147 eval $ac_envvar=\$ac_optarg 1148 export $ac_envvar ;; 1149 1150 *) 1151 # FIXME: should be removed in autoconf 3.0. 1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1155 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1156 ;; 1157 1158 esac 1159done 1160 1161if test -n "$ac_prev"; then 1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1163 as_fn_error $? "missing argument to $ac_option" 1164fi 1165 1166if test -n "$ac_unrecognized_opts"; then 1167 case $enable_option_checking in 1168 no) ;; 1169 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1171 esac 1172fi 1173 1174# Check all directory arguments for consistency. 1175for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1176 datadir sysconfdir sharedstatedir localstatedir includedir \ 1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1178 libdir localedir mandir 1179do 1180 eval ac_val=\$$ac_var 1181 # Remove trailing slashes. 1182 case $ac_val in 1183 */ ) 1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1185 eval $ac_var=\$ac_val;; 1186 esac 1187 # Be sure to have absolute directory names. 1188 case $ac_val in 1189 [\\/$]* | ?:[\\/]* ) continue;; 1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1191 esac 1192 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1193done 1194 1195# There might be people who depend on the old broken behavior: `$host' 1196# used to hold the argument of --host etc. 1197# FIXME: To remove some day. 1198build=$build_alias 1199host=$host_alias 1200target=$target_alias 1201 1202# FIXME: To remove some day. 1203if test "x$host_alias" != x; then 1204 if test "x$build_alias" = x; then 1205 cross_compiling=maybe 1206 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1207 If a cross compiler is detected then cross compile mode will be used" >&2 1208 elif test "x$build_alias" != "x$host_alias"; then 1209 cross_compiling=yes 1210 fi 1211fi 1212 1213ac_tool_prefix= 1214test -n "$host_alias" && ac_tool_prefix=$host_alias- 1215 1216test "$silent" = yes && exec 6>/dev/null 1217 1218 1219ac_pwd=`pwd` && test -n "$ac_pwd" && 1220ac_ls_di=`ls -di .` && 1221ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1222 as_fn_error $? "working directory cannot be determined" 1223test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1224 as_fn_error $? "pwd does not report name of working directory" 1225 1226 1227# Find the source files, if location was not specified. 1228if test -z "$srcdir"; then 1229 ac_srcdir_defaulted=yes 1230 # Try the directory containing this script, then the parent directory. 1231 ac_confdir=`$as_dirname -- "$as_myself" || 1232$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1233 X"$as_myself" : 'X\(//\)[^/]' \| \ 1234 X"$as_myself" : 'X\(//\)$' \| \ 1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1236$as_echo X"$as_myself" | 1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1238 s//\1/ 1239 q 1240 } 1241 /^X\(\/\/\)[^/].*/{ 1242 s//\1/ 1243 q 1244 } 1245 /^X\(\/\/\)$/{ 1246 s//\1/ 1247 q 1248 } 1249 /^X\(\/\).*/{ 1250 s//\1/ 1251 q 1252 } 1253 s/.*/./; q'` 1254 srcdir=$ac_confdir 1255 if test ! -r "$srcdir/$ac_unique_file"; then 1256 srcdir=.. 1257 fi 1258else 1259 ac_srcdir_defaulted=no 1260fi 1261if test ! -r "$srcdir/$ac_unique_file"; then 1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1263 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1264fi 1265ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1266ac_abs_confdir=`( 1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1268 pwd)` 1269# When building in place, set srcdir=. 1270if test "$ac_abs_confdir" = "$ac_pwd"; then 1271 srcdir=. 1272fi 1273# Remove unnecessary trailing slashes from srcdir. 1274# Double slashes in file names in object file debugging info 1275# mess up M-x gdb in Emacs. 1276case $srcdir in 1277*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1278esac 1279for ac_var in $ac_precious_vars; do 1280 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1281 eval ac_env_${ac_var}_value=\$${ac_var} 1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1283 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1284done 1285 1286# 1287# Report the --help message. 1288# 1289if test "$ac_init_help" = "long"; then 1290 # Omit some internal or obsolete options to make the list less imposing. 1291 # This message is too long to be a string in the A/UX 3.1 sh. 1292 cat <<_ACEOF 1293\`configure' configures xwd 1.0.6 to adapt to many kinds of systems. 1294 1295Usage: $0 [OPTION]... [VAR=VALUE]... 1296 1297To assign environment variables (e.g., CC, CFLAGS...), specify them as 1298VAR=VALUE. See below for descriptions of some of the useful variables. 1299 1300Defaults for the options are specified in brackets. 1301 1302Configuration: 1303 -h, --help display this help and exit 1304 --help=short display options specific to this package 1305 --help=recursive display the short help of all the included packages 1306 -V, --version display version information and exit 1307 -q, --quiet, --silent do not print \`checking ...' messages 1308 --cache-file=FILE cache test results in FILE [disabled] 1309 -C, --config-cache alias for \`--cache-file=config.cache' 1310 -n, --no-create do not create output files 1311 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1312 1313Installation directories: 1314 --prefix=PREFIX install architecture-independent files in PREFIX 1315 [$ac_default_prefix] 1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1317 [PREFIX] 1318 1319By default, \`make install' will install all the files in 1320\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1321an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1322for instance \`--prefix=\$HOME'. 1323 1324For better control, use the options below. 1325 1326Fine tuning of the installation directories: 1327 --bindir=DIR user executables [EPREFIX/bin] 1328 --sbindir=DIR system admin executables [EPREFIX/sbin] 1329 --libexecdir=DIR program executables [EPREFIX/libexec] 1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1333 --libdir=DIR object code libraries [EPREFIX/lib] 1334 --includedir=DIR C header files [PREFIX/include] 1335 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1338 --infodir=DIR info documentation [DATAROOTDIR/info] 1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1340 --mandir=DIR man documentation [DATAROOTDIR/man] 1341 --docdir=DIR documentation root [DATAROOTDIR/doc/xwd] 1342 --htmldir=DIR html documentation [DOCDIR] 1343 --dvidir=DIR dvi documentation [DOCDIR] 1344 --pdfdir=DIR pdf documentation [DOCDIR] 1345 --psdir=DIR ps documentation [DOCDIR] 1346_ACEOF 1347 1348 cat <<\_ACEOF 1349 1350Program names: 1351 --program-prefix=PREFIX prepend PREFIX to installed program names 1352 --program-suffix=SUFFIX append SUFFIX to installed program names 1353 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1354 1355System types: 1356 --build=BUILD configure for building on BUILD [guessed] 1357 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1358_ACEOF 1359fi 1360 1361if test -n "$ac_init_help"; then 1362 case $ac_init_help in 1363 short | recursive ) echo "Configuration of xwd 1.0.6:";; 1364 esac 1365 cat <<\_ACEOF 1366 1367Optional Features: 1368 --disable-option-checking ignore unrecognized --enable/--with options 1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1371 --enable-silent-rules less verbose build output (undo: "make V=1") 1372 --disable-silent-rules verbose build output (undo: "make V=0") 1373 --enable-maintainer-mode 1374 enable make rules and dependencies not useful (and 1375 sometimes confusing) to the casual installer 1376 --enable-dependency-tracking 1377 do not reject slow dependency extractors 1378 --disable-dependency-tracking 1379 speeds up one-time build 1380 --disable-selective-werror 1381 Turn off selective compiler errors. (default: 1382 enabled) 1383 --enable-strict-compilation 1384 Enable all warnings from compiler and make them 1385 errors (default: disabled) 1386 1387Optional Packages: 1388 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1389 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1390 --without-xkb Disable use of XKB to sound bells (Default is 1391 with-xkb) 1392 1393Some influential environment variables: 1394 CC C compiler command 1395 CFLAGS C compiler flags 1396 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1397 nonstandard directory <lib dir> 1398 LIBS libraries to pass to the linker, e.g. -l<library> 1399 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1400 you have headers in a nonstandard directory <include dir> 1401 CPP C preprocessor 1402 PKG_CONFIG path to pkg-config utility 1403 XWD_CFLAGS C compiler flags for XWD, overriding pkg-config 1404 XWD_LIBS linker flags for XWD, overriding pkg-config 1405 1406Use these variables to override the choices made by `configure' or to help 1407it to find libraries and programs with nonstandard names/locations. 1408 1409Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1410_ACEOF 1411ac_status=$? 1412fi 1413 1414if test "$ac_init_help" = "recursive"; then 1415 # If there are subdirs, report their specific --help. 1416 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1417 test -d "$ac_dir" || 1418 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1419 continue 1420 ac_builddir=. 1421 1422case "$ac_dir" in 1423.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1424*) 1425 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1426 # A ".." for each directory in $ac_dir_suffix. 1427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1428 case $ac_top_builddir_sub in 1429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1431 esac ;; 1432esac 1433ac_abs_top_builddir=$ac_pwd 1434ac_abs_builddir=$ac_pwd$ac_dir_suffix 1435# for backward compatibility: 1436ac_top_builddir=$ac_top_build_prefix 1437 1438case $srcdir in 1439 .) # We are building in place. 1440 ac_srcdir=. 1441 ac_top_srcdir=$ac_top_builddir_sub 1442 ac_abs_top_srcdir=$ac_pwd ;; 1443 [\\/]* | ?:[\\/]* ) # Absolute name. 1444 ac_srcdir=$srcdir$ac_dir_suffix; 1445 ac_top_srcdir=$srcdir 1446 ac_abs_top_srcdir=$srcdir ;; 1447 *) # Relative name. 1448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1449 ac_top_srcdir=$ac_top_build_prefix$srcdir 1450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1451esac 1452ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1453 1454 cd "$ac_dir" || { ac_status=$?; continue; } 1455 # Check for guested configure. 1456 if test -f "$ac_srcdir/configure.gnu"; then 1457 echo && 1458 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1459 elif test -f "$ac_srcdir/configure"; then 1460 echo && 1461 $SHELL "$ac_srcdir/configure" --help=recursive 1462 else 1463 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1464 fi || ac_status=$? 1465 cd "$ac_pwd" || { ac_status=$?; break; } 1466 done 1467fi 1468 1469test -n "$ac_init_help" && exit $ac_status 1470if $ac_init_version; then 1471 cat <<\_ACEOF 1472xwd configure 1.0.6 1473generated by GNU Autoconf 2.68 1474 1475Copyright (C) 2010 Free Software Foundation, Inc. 1476This configure script is free software; the Free Software Foundation 1477gives unlimited permission to copy, distribute and modify it. 1478_ACEOF 1479 exit 1480fi 1481 1482## ------------------------ ## 1483## Autoconf initialization. ## 1484## ------------------------ ## 1485 1486# ac_fn_c_try_compile LINENO 1487# -------------------------- 1488# Try to compile conftest.$ac_ext, and return whether this succeeded. 1489ac_fn_c_try_compile () 1490{ 1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1492 rm -f conftest.$ac_objext 1493 if { { ac_try="$ac_compile" 1494case "(($ac_try" in 1495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1496 *) ac_try_echo=$ac_try;; 1497esac 1498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1499$as_echo "$ac_try_echo"; } >&5 1500 (eval "$ac_compile") 2>conftest.err 1501 ac_status=$? 1502 if test -s conftest.err; then 1503 grep -v '^ *+' conftest.err >conftest.er1 1504 cat conftest.er1 >&5 1505 mv -f conftest.er1 conftest.err 1506 fi 1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1508 test $ac_status = 0; } && { 1509 test -z "$ac_c_werror_flag" || 1510 test ! -s conftest.err 1511 } && test -s conftest.$ac_objext; then : 1512 ac_retval=0 1513else 1514 $as_echo "$as_me: failed program was:" >&5 1515sed 's/^/| /' conftest.$ac_ext >&5 1516 1517 ac_retval=1 1518fi 1519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1520 as_fn_set_status $ac_retval 1521 1522} # ac_fn_c_try_compile 1523 1524# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1525# --------------------------------------------- 1526# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1527# accordingly. 1528ac_fn_c_check_decl () 1529{ 1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1531 as_decl_name=`echo $2|sed 's/ *(.*//'` 1532 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1534$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1535if eval \${$3+:} false; then : 1536 $as_echo_n "(cached) " >&6 1537else 1538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1539/* end confdefs.h. */ 1540$4 1541int 1542main () 1543{ 1544#ifndef $as_decl_name 1545#ifdef __cplusplus 1546 (void) $as_decl_use; 1547#else 1548 (void) $as_decl_name; 1549#endif 1550#endif 1551 1552 ; 1553 return 0; 1554} 1555_ACEOF 1556if ac_fn_c_try_compile "$LINENO"; then : 1557 eval "$3=yes" 1558else 1559 eval "$3=no" 1560fi 1561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1562fi 1563eval ac_res=\$$3 1564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1565$as_echo "$ac_res" >&6; } 1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1567 1568} # ac_fn_c_check_decl 1569 1570# ac_fn_c_try_cpp LINENO 1571# ---------------------- 1572# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1573ac_fn_c_try_cpp () 1574{ 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1576 if { { ac_try="$ac_cpp conftest.$ac_ext" 1577case "(($ac_try" in 1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1579 *) ac_try_echo=$ac_try;; 1580esac 1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1582$as_echo "$ac_try_echo"; } >&5 1583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1584 ac_status=$? 1585 if test -s conftest.err; then 1586 grep -v '^ *+' conftest.err >conftest.er1 1587 cat conftest.er1 >&5 1588 mv -f conftest.er1 conftest.err 1589 fi 1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1591 test $ac_status = 0; } > conftest.i && { 1592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1593 test ! -s conftest.err 1594 }; then : 1595 ac_retval=0 1596else 1597 $as_echo "$as_me: failed program was:" >&5 1598sed 's/^/| /' conftest.$ac_ext >&5 1599 1600 ac_retval=1 1601fi 1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1603 as_fn_set_status $ac_retval 1604 1605} # ac_fn_c_try_cpp 1606 1607# ac_fn_c_try_run LINENO 1608# ---------------------- 1609# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1610# that executables *can* be run. 1611ac_fn_c_try_run () 1612{ 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 if { { ac_try="$ac_link" 1615case "(($ac_try" in 1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1617 *) ac_try_echo=$ac_try;; 1618esac 1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1620$as_echo "$ac_try_echo"; } >&5 1621 (eval "$ac_link") 2>&5 1622 ac_status=$? 1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1624 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1625 { { case "(($ac_try" in 1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1627 *) ac_try_echo=$ac_try;; 1628esac 1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1630$as_echo "$ac_try_echo"; } >&5 1631 (eval "$ac_try") 2>&5 1632 ac_status=$? 1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1634 test $ac_status = 0; }; }; then : 1635 ac_retval=0 1636else 1637 $as_echo "$as_me: program exited with status $ac_status" >&5 1638 $as_echo "$as_me: failed program was:" >&5 1639sed 's/^/| /' conftest.$ac_ext >&5 1640 1641 ac_retval=$ac_status 1642fi 1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1645 as_fn_set_status $ac_retval 1646 1647} # ac_fn_c_try_run 1648 1649# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1650# ------------------------------------------------------- 1651# Tests whether HEADER exists and can be compiled using the include files in 1652# INCLUDES, setting the cache variable VAR accordingly. 1653ac_fn_c_check_header_compile () 1654{ 1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1657$as_echo_n "checking for $2... " >&6; } 1658if eval \${$3+:} false; then : 1659 $as_echo_n "(cached) " >&6 1660else 1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1662/* end confdefs.h. */ 1663$4 1664#include <$2> 1665_ACEOF 1666if ac_fn_c_try_compile "$LINENO"; then : 1667 eval "$3=yes" 1668else 1669 eval "$3=no" 1670fi 1671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1672fi 1673eval ac_res=\$$3 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1675$as_echo "$ac_res" >&6; } 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 1678} # ac_fn_c_check_header_compile 1679 1680# ac_fn_c_try_link LINENO 1681# ----------------------- 1682# Try to link conftest.$ac_ext, and return whether this succeeded. 1683ac_fn_c_try_link () 1684{ 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 rm -f conftest.$ac_objext conftest$ac_exeext 1687 if { { ac_try="$ac_link" 1688case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693$as_echo "$ac_try_echo"; } >&5 1694 (eval "$ac_link") 2>conftest.err 1695 ac_status=$? 1696 if test -s conftest.err; then 1697 grep -v '^ *+' conftest.err >conftest.er1 1698 cat conftest.er1 >&5 1699 mv -f conftest.er1 conftest.err 1700 fi 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } && { 1703 test -z "$ac_c_werror_flag" || 1704 test ! -s conftest.err 1705 } && test -s conftest$ac_exeext && { 1706 test "$cross_compiling" = yes || 1707 $as_test_x conftest$ac_exeext 1708 }; then : 1709 ac_retval=0 1710else 1711 $as_echo "$as_me: failed program was:" >&5 1712sed 's/^/| /' conftest.$ac_ext >&5 1713 1714 ac_retval=1 1715fi 1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1718 # interfere with the next link command; also delete a directory that is 1719 # left behind by Apple's compiler. We do this before executing the actions. 1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 as_fn_set_status $ac_retval 1723 1724} # ac_fn_c_try_link 1725cat >config.log <<_ACEOF 1726This file contains any messages produced by compilers while 1727running configure, to aid debugging if configure makes a mistake. 1728 1729It was created by xwd $as_me 1.0.6, which was 1730generated by GNU Autoconf 2.68. Invocation command line was 1731 1732 $ $0 $@ 1733 1734_ACEOF 1735exec 5>>config.log 1736{ 1737cat <<_ASUNAME 1738## --------- ## 1739## Platform. ## 1740## --------- ## 1741 1742hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1743uname -m = `(uname -m) 2>/dev/null || echo unknown` 1744uname -r = `(uname -r) 2>/dev/null || echo unknown` 1745uname -s = `(uname -s) 2>/dev/null || echo unknown` 1746uname -v = `(uname -v) 2>/dev/null || echo unknown` 1747 1748/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1749/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1750 1751/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1752/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1753/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1754/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1755/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1756/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1757/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1758 1759_ASUNAME 1760 1761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1762for as_dir in $PATH 1763do 1764 IFS=$as_save_IFS 1765 test -z "$as_dir" && as_dir=. 1766 $as_echo "PATH: $as_dir" 1767 done 1768IFS=$as_save_IFS 1769 1770} >&5 1771 1772cat >&5 <<_ACEOF 1773 1774 1775## ----------- ## 1776## Core tests. ## 1777## ----------- ## 1778 1779_ACEOF 1780 1781 1782# Keep a trace of the command line. 1783# Strip out --no-create and --no-recursion so they do not pile up. 1784# Strip out --silent because we don't want to record it for future runs. 1785# Also quote any args containing shell meta-characters. 1786# Make two passes to allow for proper duplicate-argument suppression. 1787ac_configure_args= 1788ac_configure_args0= 1789ac_configure_args1= 1790ac_must_keep_next=false 1791for ac_pass in 1 2 1792do 1793 for ac_arg 1794 do 1795 case $ac_arg in 1796 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1797 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1798 | -silent | --silent | --silen | --sile | --sil) 1799 continue ;; 1800 *\'*) 1801 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1802 esac 1803 case $ac_pass in 1804 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1805 2) 1806 as_fn_append ac_configure_args1 " '$ac_arg'" 1807 if test $ac_must_keep_next = true; then 1808 ac_must_keep_next=false # Got value, back to normal. 1809 else 1810 case $ac_arg in 1811 *=* | --config-cache | -C | -disable-* | --disable-* \ 1812 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1813 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1814 | -with-* | --with-* | -without-* | --without-* | --x) 1815 case "$ac_configure_args0 " in 1816 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1817 esac 1818 ;; 1819 -* ) ac_must_keep_next=true ;; 1820 esac 1821 fi 1822 as_fn_append ac_configure_args " '$ac_arg'" 1823 ;; 1824 esac 1825 done 1826done 1827{ ac_configure_args0=; unset ac_configure_args0;} 1828{ ac_configure_args1=; unset ac_configure_args1;} 1829 1830# When interrupted or exit'd, cleanup temporary files, and complete 1831# config.log. We remove comments because anyway the quotes in there 1832# would cause problems or look ugly. 1833# WARNING: Use '\'' to represent an apostrophe within the trap. 1834# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1835trap 'exit_status=$? 1836 # Save into config.log some information that might help in debugging. 1837 { 1838 echo 1839 1840 $as_echo "## ---------------- ## 1841## Cache variables. ## 1842## ---------------- ##" 1843 echo 1844 # The following way of writing the cache mishandles newlines in values, 1845( 1846 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1847 eval ac_val=\$$ac_var 1848 case $ac_val in #( 1849 *${as_nl}*) 1850 case $ac_var in #( 1851 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1852$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1853 esac 1854 case $ac_var in #( 1855 _ | IFS | as_nl) ;; #( 1856 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1857 *) { eval $ac_var=; unset $ac_var;} ;; 1858 esac ;; 1859 esac 1860 done 1861 (set) 2>&1 | 1862 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1863 *${as_nl}ac_space=\ *) 1864 sed -n \ 1865 "s/'\''/'\''\\\\'\'''\''/g; 1866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1867 ;; #( 1868 *) 1869 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1870 ;; 1871 esac | 1872 sort 1873) 1874 echo 1875 1876 $as_echo "## ----------------- ## 1877## Output variables. ## 1878## ----------------- ##" 1879 echo 1880 for ac_var in $ac_subst_vars 1881 do 1882 eval ac_val=\$$ac_var 1883 case $ac_val in 1884 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1885 esac 1886 $as_echo "$ac_var='\''$ac_val'\''" 1887 done | sort 1888 echo 1889 1890 if test -n "$ac_subst_files"; then 1891 $as_echo "## ------------------- ## 1892## File substitutions. ## 1893## ------------------- ##" 1894 echo 1895 for ac_var in $ac_subst_files 1896 do 1897 eval ac_val=\$$ac_var 1898 case $ac_val in 1899 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1900 esac 1901 $as_echo "$ac_var='\''$ac_val'\''" 1902 done | sort 1903 echo 1904 fi 1905 1906 if test -s confdefs.h; then 1907 $as_echo "## ----------- ## 1908## confdefs.h. ## 1909## ----------- ##" 1910 echo 1911 cat confdefs.h 1912 echo 1913 fi 1914 test "$ac_signal" != 0 && 1915 $as_echo "$as_me: caught signal $ac_signal" 1916 $as_echo "$as_me: exit $exit_status" 1917 } >&5 1918 rm -f core *.core core.conftest.* && 1919 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1920 exit $exit_status 1921' 0 1922for ac_signal in 1 2 13 15; do 1923 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1924done 1925ac_signal=0 1926 1927# confdefs.h avoids OS command line length limits that DEFS can exceed. 1928rm -f -r conftest* confdefs.h 1929 1930$as_echo "/* confdefs.h */" > confdefs.h 1931 1932# Predefined preprocessor variables. 1933 1934cat >>confdefs.h <<_ACEOF 1935#define PACKAGE_NAME "$PACKAGE_NAME" 1936_ACEOF 1937 1938cat >>confdefs.h <<_ACEOF 1939#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1940_ACEOF 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_VERSION "$PACKAGE_VERSION" 1944_ACEOF 1945 1946cat >>confdefs.h <<_ACEOF 1947#define PACKAGE_STRING "$PACKAGE_STRING" 1948_ACEOF 1949 1950cat >>confdefs.h <<_ACEOF 1951#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1952_ACEOF 1953 1954cat >>confdefs.h <<_ACEOF 1955#define PACKAGE_URL "$PACKAGE_URL" 1956_ACEOF 1957 1958 1959# Let the site file select an alternate cache file if it wants to. 1960# Prefer an explicitly selected file to automatically selected ones. 1961ac_site_file1=NONE 1962ac_site_file2=NONE 1963if test -n "$CONFIG_SITE"; then 1964 # We do not want a PATH search for config.site. 1965 case $CONFIG_SITE in #(( 1966 -*) ac_site_file1=./$CONFIG_SITE;; 1967 */*) ac_site_file1=$CONFIG_SITE;; 1968 *) ac_site_file1=./$CONFIG_SITE;; 1969 esac 1970elif test "x$prefix" != xNONE; then 1971 ac_site_file1=$prefix/share/config.site 1972 ac_site_file2=$prefix/etc/config.site 1973else 1974 ac_site_file1=$ac_default_prefix/share/config.site 1975 ac_site_file2=$ac_default_prefix/etc/config.site 1976fi 1977for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1978do 1979 test "x$ac_site_file" = xNONE && continue 1980 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1982$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1983 sed 's/^/| /' "$ac_site_file" >&5 1984 . "$ac_site_file" \ 1985 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1987as_fn_error $? "failed to load site script $ac_site_file 1988See \`config.log' for more details" "$LINENO" 5; } 1989 fi 1990done 1991 1992if test -r "$cache_file"; then 1993 # Some versions of bash will fail to source /dev/null (special files 1994 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1995 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1997$as_echo "$as_me: loading cache $cache_file" >&6;} 1998 case $cache_file in 1999 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2000 *) . "./$cache_file";; 2001 esac 2002 fi 2003else 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2005$as_echo "$as_me: creating cache $cache_file" >&6;} 2006 >$cache_file 2007fi 2008 2009# Check that the precious variables saved in the cache have kept the same 2010# value. 2011ac_cache_corrupted=false 2012for ac_var in $ac_precious_vars; do 2013 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2014 eval ac_new_set=\$ac_env_${ac_var}_set 2015 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2016 eval ac_new_val=\$ac_env_${ac_var}_value 2017 case $ac_old_set,$ac_new_set in 2018 set,) 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2020$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2021 ac_cache_corrupted=: ;; 2022 ,set) 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2024$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2025 ac_cache_corrupted=: ;; 2026 ,);; 2027 *) 2028 if test "x$ac_old_val" != "x$ac_new_val"; then 2029 # differences in whitespace do not lead to failure. 2030 ac_old_val_w=`echo x $ac_old_val` 2031 ac_new_val_w=`echo x $ac_new_val` 2032 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2033 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2034$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2035 ac_cache_corrupted=: 2036 else 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2038$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2039 eval $ac_var=\$ac_old_val 2040 fi 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2042$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2044$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2045 fi;; 2046 esac 2047 # Pass precious variables to config.status. 2048 if test "$ac_new_set" = set; then 2049 case $ac_new_val in 2050 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2051 *) ac_arg=$ac_var=$ac_new_val ;; 2052 esac 2053 case " $ac_configure_args " in 2054 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2055 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2056 esac 2057 fi 2058done 2059if $ac_cache_corrupted; then 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2063$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2064 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2065fi 2066## -------------------- ## 2067## Main body of script. ## 2068## -------------------- ## 2069 2070ac_ext=c 2071ac_cpp='$CPP $CPPFLAGS' 2072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2074ac_compiler_gnu=$ac_cv_c_compiler_gnu 2075 2076 2077 2078ac_config_headers="$ac_config_headers config.h" 2079 2080 2081# Initialize Automake 2082am__api_version='1.14' 2083 2084ac_aux_dir= 2085for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2086 if test -f "$ac_dir/install-sh"; then 2087 ac_aux_dir=$ac_dir 2088 ac_install_sh="$ac_aux_dir/install-sh -c" 2089 break 2090 elif test -f "$ac_dir/install.sh"; then 2091 ac_aux_dir=$ac_dir 2092 ac_install_sh="$ac_aux_dir/install.sh -c" 2093 break 2094 elif test -f "$ac_dir/shtool"; then 2095 ac_aux_dir=$ac_dir 2096 ac_install_sh="$ac_aux_dir/shtool install -c" 2097 break 2098 fi 2099done 2100if test -z "$ac_aux_dir"; then 2101 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2102fi 2103 2104# These three variables are undocumented and unsupported, 2105# and are intended to be withdrawn in a future Autoconf release. 2106# They can cause serious problems if a builder's source tree is in a directory 2107# whose full name contains unusual characters. 2108ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2109ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2110ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2111 2112 2113# Find a good install program. We prefer a C program (faster), 2114# so one script is as good as another. But avoid the broken or 2115# incompatible versions: 2116# SysV /etc/install, /usr/sbin/install 2117# SunOS /usr/etc/install 2118# IRIX /sbin/install 2119# AIX /bin/install 2120# AmigaOS /C/install, which installs bootblocks on floppy discs 2121# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2122# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2123# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2124# OS/2's system install, which has a completely different semantic 2125# ./install, which can be erroneously created by make from ./install.sh. 2126# Reject install programs that cannot install multiple files. 2127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2128$as_echo_n "checking for a BSD-compatible install... " >&6; } 2129if test -z "$INSTALL"; then 2130if ${ac_cv_path_install+:} false; then : 2131 $as_echo_n "(cached) " >&6 2132else 2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2134for as_dir in $PATH 2135do 2136 IFS=$as_save_IFS 2137 test -z "$as_dir" && as_dir=. 2138 # Account for people who put trailing slashes in PATH elements. 2139case $as_dir/ in #(( 2140 ./ | .// | /[cC]/* | \ 2141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2142 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2143 /usr/ucb/* ) ;; 2144 *) 2145 # OSF1 and SCO ODT 3.0 have their own names for install. 2146 # Don't use installbsd from OSF since it installs stuff as root 2147 # by default. 2148 for ac_prog in ginstall scoinst install; do 2149 for ac_exec_ext in '' $ac_executable_extensions; do 2150 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2151 if test $ac_prog = install && 2152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2153 # AIX install. It has an incompatible calling convention. 2154 : 2155 elif test $ac_prog = install && 2156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2157 # program-specific install script used by HP pwplus--don't use. 2158 : 2159 else 2160 rm -rf conftest.one conftest.two conftest.dir 2161 echo one > conftest.one 2162 echo two > conftest.two 2163 mkdir conftest.dir 2164 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2165 test -s conftest.one && test -s conftest.two && 2166 test -s conftest.dir/conftest.one && 2167 test -s conftest.dir/conftest.two 2168 then 2169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2170 break 3 2171 fi 2172 fi 2173 fi 2174 done 2175 done 2176 ;; 2177esac 2178 2179 done 2180IFS=$as_save_IFS 2181 2182rm -rf conftest.one conftest.two conftest.dir 2183 2184fi 2185 if test "${ac_cv_path_install+set}" = set; then 2186 INSTALL=$ac_cv_path_install 2187 else 2188 # As a last resort, use the slow shell script. Don't cache a 2189 # value for INSTALL within a source directory, because that will 2190 # break other packages using the cache if that directory is 2191 # removed, or if the value is a relative name. 2192 INSTALL=$ac_install_sh 2193 fi 2194fi 2195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2196$as_echo "$INSTALL" >&6; } 2197 2198# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2199# It thinks the first close brace ends the variable substitution. 2200test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2201 2202test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2203 2204test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2205 2206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2207$as_echo_n "checking whether build environment is sane... " >&6; } 2208# Reject unsafe characters in $srcdir or the absolute working directory 2209# name. Accept space and tab only in the latter. 2210am_lf=' 2211' 2212case `pwd` in 2213 *[\\\"\#\$\&\'\`$am_lf]*) 2214 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2215esac 2216case $srcdir in 2217 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2218 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2219esac 2220 2221# Do 'set' in a subshell so we don't clobber the current shell's 2222# arguments. Must try -L first in case configure is actually a 2223# symlink; some systems play weird games with the mod time of symlinks 2224# (eg FreeBSD returns the mod time of the symlink's containing 2225# directory). 2226if ( 2227 am_has_slept=no 2228 for am_try in 1 2; do 2229 echo "timestamp, slept: $am_has_slept" > conftest.file 2230 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2231 if test "$*" = "X"; then 2232 # -L didn't work. 2233 set X `ls -t "$srcdir/configure" conftest.file` 2234 fi 2235 if test "$*" != "X $srcdir/configure conftest.file" \ 2236 && test "$*" != "X conftest.file $srcdir/configure"; then 2237 2238 # If neither matched, then we have a broken ls. This can happen 2239 # if, for instance, CONFIG_SHELL is bash and it inherits a 2240 # broken ls alias from the environment. This has actually 2241 # happened. Such a system could not be considered "sane". 2242 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2243 alias in your environment" "$LINENO" 5 2244 fi 2245 if test "$2" = conftest.file || test $am_try -eq 2; then 2246 break 2247 fi 2248 # Just in case. 2249 sleep 1 2250 am_has_slept=yes 2251 done 2252 test "$2" = conftest.file 2253 ) 2254then 2255 # Ok. 2256 : 2257else 2258 as_fn_error $? "newly created file is older than distributed files! 2259Check your system clock" "$LINENO" 5 2260fi 2261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2262$as_echo "yes" >&6; } 2263# If we didn't sleep, we still need to ensure time stamps of config.status and 2264# generated files are strictly newer. 2265am_sleep_pid= 2266if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2267 ( sleep 1 ) & 2268 am_sleep_pid=$! 2269fi 2270 2271rm -f conftest.file 2272 2273test "$program_prefix" != NONE && 2274 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2275# Use a double $ so make ignores it. 2276test "$program_suffix" != NONE && 2277 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2278# Double any \ or $. 2279# By default was `s,x,x', remove it if useless. 2280ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2281program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2282 2283# expand $ac_aux_dir to an absolute path 2284am_aux_dir=`cd $ac_aux_dir && pwd` 2285 2286if test x"${MISSING+set}" != xset; then 2287 case $am_aux_dir in 2288 *\ * | *\ *) 2289 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2290 *) 2291 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2292 esac 2293fi 2294# Use eval to expand $SHELL 2295if eval "$MISSING --is-lightweight"; then 2296 am_missing_run="$MISSING " 2297else 2298 am_missing_run= 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2300$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2301fi 2302 2303if test x"${install_sh}" != xset; then 2304 case $am_aux_dir in 2305 *\ * | *\ *) 2306 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2307 *) 2308 install_sh="\${SHELL} $am_aux_dir/install-sh" 2309 esac 2310fi 2311 2312# Installed binaries are usually stripped using 'strip' when the user 2313# run "make install-strip". However 'strip' might not be the right 2314# tool to use in cross-compilation environments, therefore Automake 2315# will honor the 'STRIP' environment variable to overrule this program. 2316if test "$cross_compiling" != no; then 2317 if test -n "$ac_tool_prefix"; then 2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2319set dummy ${ac_tool_prefix}strip; ac_word=$2 2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2321$as_echo_n "checking for $ac_word... " >&6; } 2322if ${ac_cv_prog_STRIP+:} false; then : 2323 $as_echo_n "(cached) " >&6 2324else 2325 if test -n "$STRIP"; then 2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2327else 2328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2329for as_dir in $PATH 2330do 2331 IFS=$as_save_IFS 2332 test -z "$as_dir" && as_dir=. 2333 for ac_exec_ext in '' $ac_executable_extensions; do 2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2337 break 2 2338 fi 2339done 2340 done 2341IFS=$as_save_IFS 2342 2343fi 2344fi 2345STRIP=$ac_cv_prog_STRIP 2346if test -n "$STRIP"; then 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2348$as_echo "$STRIP" >&6; } 2349else 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2351$as_echo "no" >&6; } 2352fi 2353 2354 2355fi 2356if test -z "$ac_cv_prog_STRIP"; then 2357 ac_ct_STRIP=$STRIP 2358 # Extract the first word of "strip", so it can be a program name with args. 2359set dummy strip; ac_word=$2 2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2361$as_echo_n "checking for $ac_word... " >&6; } 2362if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2363 $as_echo_n "(cached) " >&6 2364else 2365 if test -n "$ac_ct_STRIP"; then 2366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2367else 2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2369for as_dir in $PATH 2370do 2371 IFS=$as_save_IFS 2372 test -z "$as_dir" && as_dir=. 2373 for ac_exec_ext in '' $ac_executable_extensions; do 2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2375 ac_cv_prog_ac_ct_STRIP="strip" 2376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2377 break 2 2378 fi 2379done 2380 done 2381IFS=$as_save_IFS 2382 2383fi 2384fi 2385ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2386if test -n "$ac_ct_STRIP"; then 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2388$as_echo "$ac_ct_STRIP" >&6; } 2389else 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2391$as_echo "no" >&6; } 2392fi 2393 2394 if test "x$ac_ct_STRIP" = x; then 2395 STRIP=":" 2396 else 2397 case $cross_compiling:$ac_tool_warned in 2398yes:) 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2401ac_tool_warned=yes ;; 2402esac 2403 STRIP=$ac_ct_STRIP 2404 fi 2405else 2406 STRIP="$ac_cv_prog_STRIP" 2407fi 2408 2409fi 2410INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2411 2412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2413$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2414if test -z "$MKDIR_P"; then 2415 if ${ac_cv_path_mkdir+:} false; then : 2416 $as_echo_n "(cached) " >&6 2417else 2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2419for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2420do 2421 IFS=$as_save_IFS 2422 test -z "$as_dir" && as_dir=. 2423 for ac_prog in mkdir gmkdir; do 2424 for ac_exec_ext in '' $ac_executable_extensions; do 2425 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2426 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2427 'mkdir (GNU coreutils) '* | \ 2428 'mkdir (coreutils) '* | \ 2429 'mkdir (fileutils) '4.1*) 2430 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2431 break 3;; 2432 esac 2433 done 2434 done 2435 done 2436IFS=$as_save_IFS 2437 2438fi 2439 2440 test -d ./--version && rmdir ./--version 2441 if test "${ac_cv_path_mkdir+set}" = set; then 2442 MKDIR_P="$ac_cv_path_mkdir -p" 2443 else 2444 # As a last resort, use the slow shell script. Don't cache a 2445 # value for MKDIR_P within a source directory, because that will 2446 # break other packages using the cache if that directory is 2447 # removed, or if the value is a relative name. 2448 MKDIR_P="$ac_install_sh -d" 2449 fi 2450fi 2451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2452$as_echo "$MKDIR_P" >&6; } 2453 2454for ac_prog in gawk mawk nawk awk 2455do 2456 # Extract the first word of "$ac_prog", so it can be a program name with args. 2457set dummy $ac_prog; ac_word=$2 2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2459$as_echo_n "checking for $ac_word... " >&6; } 2460if ${ac_cv_prog_AWK+:} false; then : 2461 $as_echo_n "(cached) " >&6 2462else 2463 if test -n "$AWK"; then 2464 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2465else 2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2467for as_dir in $PATH 2468do 2469 IFS=$as_save_IFS 2470 test -z "$as_dir" && as_dir=. 2471 for ac_exec_ext in '' $ac_executable_extensions; do 2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2473 ac_cv_prog_AWK="$ac_prog" 2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2475 break 2 2476 fi 2477done 2478 done 2479IFS=$as_save_IFS 2480 2481fi 2482fi 2483AWK=$ac_cv_prog_AWK 2484if test -n "$AWK"; then 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2486$as_echo "$AWK" >&6; } 2487else 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2489$as_echo "no" >&6; } 2490fi 2491 2492 2493 test -n "$AWK" && break 2494done 2495 2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2497$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2498set x ${MAKE-make} 2499ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2500if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2501 $as_echo_n "(cached) " >&6 2502else 2503 cat >conftest.make <<\_ACEOF 2504SHELL = /bin/sh 2505all: 2506 @echo '@@@%%%=$(MAKE)=@@@%%%' 2507_ACEOF 2508# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2509case `${MAKE-make} -f conftest.make 2>/dev/null` in 2510 *@@@%%%=?*=@@@%%%*) 2511 eval ac_cv_prog_make_${ac_make}_set=yes;; 2512 *) 2513 eval ac_cv_prog_make_${ac_make}_set=no;; 2514esac 2515rm -f conftest.make 2516fi 2517if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2519$as_echo "yes" >&6; } 2520 SET_MAKE= 2521else 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2523$as_echo "no" >&6; } 2524 SET_MAKE="MAKE=${MAKE-make}" 2525fi 2526 2527rm -rf .tst 2>/dev/null 2528mkdir .tst 2>/dev/null 2529if test -d .tst; then 2530 am__leading_dot=. 2531else 2532 am__leading_dot=_ 2533fi 2534rmdir .tst 2>/dev/null 2535 2536# Check whether --enable-silent-rules was given. 2537if test "${enable_silent_rules+set}" = set; then : 2538 enableval=$enable_silent_rules; 2539fi 2540 2541case $enable_silent_rules in # ((( 2542 yes) AM_DEFAULT_VERBOSITY=0;; 2543 no) AM_DEFAULT_VERBOSITY=1;; 2544 *) AM_DEFAULT_VERBOSITY=1;; 2545esac 2546am_make=${MAKE-make} 2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2548$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2549if ${am_cv_make_support_nested_variables+:} false; then : 2550 $as_echo_n "(cached) " >&6 2551else 2552 if $as_echo 'TRUE=$(BAR$(V)) 2553BAR0=false 2554BAR1=true 2555V=1 2556am__doit: 2557 @$(TRUE) 2558.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2559 am_cv_make_support_nested_variables=yes 2560else 2561 am_cv_make_support_nested_variables=no 2562fi 2563fi 2564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2565$as_echo "$am_cv_make_support_nested_variables" >&6; } 2566if test $am_cv_make_support_nested_variables = yes; then 2567 AM_V='$(V)' 2568 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2569else 2570 AM_V=$AM_DEFAULT_VERBOSITY 2571 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2572fi 2573AM_BACKSLASH='\' 2574 2575if test "`cd $srcdir && pwd`" != "`pwd`"; then 2576 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2577 # is not polluted with repeated "-I." 2578 am__isrc=' -I$(srcdir)' 2579 # test to see if srcdir already configured 2580 if test -f $srcdir/config.status; then 2581 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2582 fi 2583fi 2584 2585# test whether we have cygpath 2586if test -z "$CYGPATH_W"; then 2587 if (cygpath --version) >/dev/null 2>/dev/null; then 2588 CYGPATH_W='cygpath -w' 2589 else 2590 CYGPATH_W=echo 2591 fi 2592fi 2593 2594 2595# Define the identity of the package. 2596 PACKAGE='xwd' 2597 VERSION='1.0.6' 2598 2599 2600cat >>confdefs.h <<_ACEOF 2601#define PACKAGE "$PACKAGE" 2602_ACEOF 2603 2604 2605cat >>confdefs.h <<_ACEOF 2606#define VERSION "$VERSION" 2607_ACEOF 2608 2609# Some tools Automake needs. 2610 2611ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2612 2613 2614AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2615 2616 2617AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2618 2619 2620AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2621 2622 2623MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2624 2625# For better backward compatibility. To be removed once Automake 1.9.x 2626# dies out for good. For more background, see: 2627# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2628# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2629mkdir_p='$(MKDIR_P)' 2630 2631# We need awk for the "check" target. The system "awk" is bad on 2632# some platforms. 2633# Always define AMTAR for backward compatibility. Yes, it's still used 2634# in the wild :-( We should find a proper way to deprecate it ... 2635AMTAR='$${TAR-tar}' 2636 2637 2638# We'll loop over all known methods to create a tar archive until one works. 2639_am_tools='gnutar pax cpio none' 2640 2641am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2642 2643 2644 2645 2646 2647 2648# POSIX will say in a future version that running "rm -f" with no argument 2649# is OK; and we want to be able to make that assumption in our Makefile 2650# recipes. So use an aggressive probe to check that the usage we want is 2651# actually supported "in the wild" to an acceptable degree. 2652# See automake bug#10828. 2653# To make any issue more visible, cause the running configure to be aborted 2654# by default if the 'rm' program in use doesn't match our expectations; the 2655# user can still override this though. 2656if rm -f && rm -fr && rm -rf; then : OK; else 2657 cat >&2 <<'END' 2658Oops! 2659 2660Your 'rm' program seems unable to run without file operands specified 2661on the command line, even when the '-f' option is present. This is contrary 2662to the behaviour of most rm programs out there, and not conforming with 2663the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2664 2665Please tell bug-automake@gnu.org about your system, including the value 2666of your $PATH and any error possibly output before this message. This 2667can help us improve future automake versions. 2668 2669END 2670 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2671 echo 'Configuration will proceed anyway, since you have set the' >&2 2672 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2673 echo >&2 2674 else 2675 cat >&2 <<'END' 2676Aborting the configuration process, to ensure you take notice of the issue. 2677 2678You can download and install GNU coreutils to get an 'rm' implementation 2679that behaves properly: <http://www.gnu.org/software/coreutils/>. 2680 2681If you want to complete the configuration process using your problematic 2682'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2683to "yes", and re-run configure. 2684 2685END 2686 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2687 fi 2688fi 2689 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2691$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2692 # Check whether --enable-maintainer-mode was given. 2693if test "${enable_maintainer_mode+set}" = set; then : 2694 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2695else 2696 USE_MAINTAINER_MODE=no 2697fi 2698 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2700$as_echo "$USE_MAINTAINER_MODE" >&6; } 2701 if test $USE_MAINTAINER_MODE = yes; then 2702 MAINTAINER_MODE_TRUE= 2703 MAINTAINER_MODE_FALSE='#' 2704else 2705 MAINTAINER_MODE_TRUE='#' 2706 MAINTAINER_MODE_FALSE= 2707fi 2708 2709 MAINT=$MAINTAINER_MODE_TRUE 2710 2711 2712 2713# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725DEPDIR="${am__leading_dot}deps" 2726 2727ac_config_commands="$ac_config_commands depfiles" 2728 2729 2730am_make=${MAKE-make} 2731cat > confinc << 'END' 2732am__doit: 2733 @echo this is the am__doit target 2734.PHONY: am__doit 2735END 2736# If we don't find an include directive, just comment out the code. 2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2738$as_echo_n "checking for style of include used by $am_make... " >&6; } 2739am__include="#" 2740am__quote= 2741_am_result=none 2742# First try GNU make style include. 2743echo "include confinc" > confmf 2744# Ignore all kinds of additional output from 'make'. 2745case `$am_make -s -f confmf 2> /dev/null` in #( 2746*the\ am__doit\ target*) 2747 am__include=include 2748 am__quote= 2749 _am_result=GNU 2750 ;; 2751esac 2752# Now try BSD make style include. 2753if test "$am__include" = "#"; then 2754 echo '.include "confinc"' > confmf 2755 case `$am_make -s -f confmf 2> /dev/null` in #( 2756 *the\ am__doit\ target*) 2757 am__include=.include 2758 am__quote="\"" 2759 _am_result=BSD 2760 ;; 2761 esac 2762fi 2763 2764 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2766$as_echo "$_am_result" >&6; } 2767rm -f confinc confmf 2768 2769# Check whether --enable-dependency-tracking was given. 2770if test "${enable_dependency_tracking+set}" = set; then : 2771 enableval=$enable_dependency_tracking; 2772fi 2773 2774if test "x$enable_dependency_tracking" != xno; then 2775 am_depcomp="$ac_aux_dir/depcomp" 2776 AMDEPBACKSLASH='\' 2777 am__nodep='_no' 2778fi 2779 if test "x$enable_dependency_tracking" != xno; then 2780 AMDEP_TRUE= 2781 AMDEP_FALSE='#' 2782else 2783 AMDEP_TRUE='#' 2784 AMDEP_FALSE= 2785fi 2786 2787 2788ac_ext=c 2789ac_cpp='$CPP $CPPFLAGS' 2790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2792ac_compiler_gnu=$ac_cv_c_compiler_gnu 2793if test -n "$ac_tool_prefix"; then 2794 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2795set dummy ${ac_tool_prefix}gcc; ac_word=$2 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2797$as_echo_n "checking for $ac_word... " >&6; } 2798if ${ac_cv_prog_CC+:} false; then : 2799 $as_echo_n "(cached) " >&6 2800else 2801 if test -n "$CC"; then 2802 ac_cv_prog_CC="$CC" # Let the user override the test. 2803else 2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2805for as_dir in $PATH 2806do 2807 IFS=$as_save_IFS 2808 test -z "$as_dir" && as_dir=. 2809 for ac_exec_ext in '' $ac_executable_extensions; do 2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2811 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2813 break 2 2814 fi 2815done 2816 done 2817IFS=$as_save_IFS 2818 2819fi 2820fi 2821CC=$ac_cv_prog_CC 2822if test -n "$CC"; then 2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2824$as_echo "$CC" >&6; } 2825else 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2827$as_echo "no" >&6; } 2828fi 2829 2830 2831fi 2832if test -z "$ac_cv_prog_CC"; then 2833 ac_ct_CC=$CC 2834 # Extract the first word of "gcc", so it can be a program name with args. 2835set dummy gcc; ac_word=$2 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2837$as_echo_n "checking for $ac_word... " >&6; } 2838if ${ac_cv_prog_ac_ct_CC+:} false; then : 2839 $as_echo_n "(cached) " >&6 2840else 2841 if test -n "$ac_ct_CC"; then 2842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2843else 2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845for as_dir in $PATH 2846do 2847 IFS=$as_save_IFS 2848 test -z "$as_dir" && as_dir=. 2849 for ac_exec_ext in '' $ac_executable_extensions; do 2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2851 ac_cv_prog_ac_ct_CC="gcc" 2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2853 break 2 2854 fi 2855done 2856 done 2857IFS=$as_save_IFS 2858 2859fi 2860fi 2861ac_ct_CC=$ac_cv_prog_ac_ct_CC 2862if test -n "$ac_ct_CC"; then 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2864$as_echo "$ac_ct_CC" >&6; } 2865else 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2867$as_echo "no" >&6; } 2868fi 2869 2870 if test "x$ac_ct_CC" = x; then 2871 CC="" 2872 else 2873 case $cross_compiling:$ac_tool_warned in 2874yes:) 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2877ac_tool_warned=yes ;; 2878esac 2879 CC=$ac_ct_CC 2880 fi 2881else 2882 CC="$ac_cv_prog_CC" 2883fi 2884 2885if test -z "$CC"; then 2886 if test -n "$ac_tool_prefix"; then 2887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2888set dummy ${ac_tool_prefix}cc; ac_word=$2 2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2890$as_echo_n "checking for $ac_word... " >&6; } 2891if ${ac_cv_prog_CC+:} false; then : 2892 $as_echo_n "(cached) " >&6 2893else 2894 if test -n "$CC"; then 2895 ac_cv_prog_CC="$CC" # Let the user override the test. 2896else 2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2898for as_dir in $PATH 2899do 2900 IFS=$as_save_IFS 2901 test -z "$as_dir" && as_dir=. 2902 for ac_exec_ext in '' $ac_executable_extensions; do 2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2904 ac_cv_prog_CC="${ac_tool_prefix}cc" 2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2906 break 2 2907 fi 2908done 2909 done 2910IFS=$as_save_IFS 2911 2912fi 2913fi 2914CC=$ac_cv_prog_CC 2915if test -n "$CC"; then 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2917$as_echo "$CC" >&6; } 2918else 2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2920$as_echo "no" >&6; } 2921fi 2922 2923 2924 fi 2925fi 2926if test -z "$CC"; then 2927 # Extract the first word of "cc", so it can be a program name with args. 2928set dummy cc; ac_word=$2 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2930$as_echo_n "checking for $ac_word... " >&6; } 2931if ${ac_cv_prog_CC+:} false; then : 2932 $as_echo_n "(cached) " >&6 2933else 2934 if test -n "$CC"; then 2935 ac_cv_prog_CC="$CC" # Let the user override the test. 2936else 2937 ac_prog_rejected=no 2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 test -z "$as_dir" && as_dir=. 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2946 ac_prog_rejected=yes 2947 continue 2948 fi 2949 ac_cv_prog_CC="cc" 2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2951 break 2 2952 fi 2953done 2954 done 2955IFS=$as_save_IFS 2956 2957if test $ac_prog_rejected = yes; then 2958 # We found a bogon in the path, so make sure we never use it. 2959 set dummy $ac_cv_prog_CC 2960 shift 2961 if test $# != 0; then 2962 # We chose a different compiler from the bogus one. 2963 # However, it has the same basename, so the bogon will be chosen 2964 # first if we set CC to just the basename; use the full file name. 2965 shift 2966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2967 fi 2968fi 2969fi 2970fi 2971CC=$ac_cv_prog_CC 2972if test -n "$CC"; then 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2974$as_echo "$CC" >&6; } 2975else 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2977$as_echo "no" >&6; } 2978fi 2979 2980 2981fi 2982if test -z "$CC"; then 2983 if test -n "$ac_tool_prefix"; then 2984 for ac_prog in cl.exe 2985 do 2986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2987set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2989$as_echo_n "checking for $ac_word... " >&6; } 2990if ${ac_cv_prog_CC+:} false; then : 2991 $as_echo_n "(cached) " >&6 2992else 2993 if test -n "$CC"; then 2994 ac_cv_prog_CC="$CC" # Let the user override the test. 2995else 2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2997for as_dir in $PATH 2998do 2999 IFS=$as_save_IFS 3000 test -z "$as_dir" && as_dir=. 3001 for ac_exec_ext in '' $ac_executable_extensions; do 3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3005 break 2 3006 fi 3007done 3008 done 3009IFS=$as_save_IFS 3010 3011fi 3012fi 3013CC=$ac_cv_prog_CC 3014if test -n "$CC"; then 3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3016$as_echo "$CC" >&6; } 3017else 3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3019$as_echo "no" >&6; } 3020fi 3021 3022 3023 test -n "$CC" && break 3024 done 3025fi 3026if test -z "$CC"; then 3027 ac_ct_CC=$CC 3028 for ac_prog in cl.exe 3029do 3030 # Extract the first word of "$ac_prog", so it can be a program name with args. 3031set dummy $ac_prog; ac_word=$2 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3033$as_echo_n "checking for $ac_word... " >&6; } 3034if ${ac_cv_prog_ac_ct_CC+:} false; then : 3035 $as_echo_n "(cached) " >&6 3036else 3037 if test -n "$ac_ct_CC"; then 3038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3039else 3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3041for as_dir in $PATH 3042do 3043 IFS=$as_save_IFS 3044 test -z "$as_dir" && as_dir=. 3045 for ac_exec_ext in '' $ac_executable_extensions; do 3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3047 ac_cv_prog_ac_ct_CC="$ac_prog" 3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3049 break 2 3050 fi 3051done 3052 done 3053IFS=$as_save_IFS 3054 3055fi 3056fi 3057ac_ct_CC=$ac_cv_prog_ac_ct_CC 3058if test -n "$ac_ct_CC"; then 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3060$as_echo "$ac_ct_CC" >&6; } 3061else 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3063$as_echo "no" >&6; } 3064fi 3065 3066 3067 test -n "$ac_ct_CC" && break 3068done 3069 3070 if test "x$ac_ct_CC" = x; then 3071 CC="" 3072 else 3073 case $cross_compiling:$ac_tool_warned in 3074yes:) 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3077ac_tool_warned=yes ;; 3078esac 3079 CC=$ac_ct_CC 3080 fi 3081fi 3082 3083fi 3084 3085 3086test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3088as_fn_error $? "no acceptable C compiler found in \$PATH 3089See \`config.log' for more details" "$LINENO" 5; } 3090 3091# Provide some information about the compiler. 3092$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3093set X $ac_compile 3094ac_compiler=$2 3095for ac_option in --version -v -V -qversion; do 3096 { { ac_try="$ac_compiler $ac_option >&5" 3097case "(($ac_try" in 3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3099 *) ac_try_echo=$ac_try;; 3100esac 3101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3102$as_echo "$ac_try_echo"; } >&5 3103 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3104 ac_status=$? 3105 if test -s conftest.err; then 3106 sed '10a\ 3107... rest of stderr output deleted ... 3108 10q' conftest.err >conftest.er1 3109 cat conftest.er1 >&5 3110 fi 3111 rm -f conftest.er1 conftest.err 3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3113 test $ac_status = 0; } 3114done 3115 3116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3117/* end confdefs.h. */ 3118 3119int 3120main () 3121{ 3122 3123 ; 3124 return 0; 3125} 3126_ACEOF 3127ac_clean_files_save=$ac_clean_files 3128ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3129# Try to create an executable without -o first, disregard a.out. 3130# It will help us diagnose broken compilers, and finding out an intuition 3131# of exeext. 3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3133$as_echo_n "checking whether the C compiler works... " >&6; } 3134ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3135 3136# The possible output files: 3137ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3138 3139ac_rmfiles= 3140for ac_file in $ac_files 3141do 3142 case $ac_file in 3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3144 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3145 esac 3146done 3147rm -f $ac_rmfiles 3148 3149if { { ac_try="$ac_link_default" 3150case "(($ac_try" in 3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3152 *) ac_try_echo=$ac_try;; 3153esac 3154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3155$as_echo "$ac_try_echo"; } >&5 3156 (eval "$ac_link_default") 2>&5 3157 ac_status=$? 3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3159 test $ac_status = 0; }; then : 3160 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3161# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3162# in a Makefile. We should not override ac_cv_exeext if it was cached, 3163# so that the user can short-circuit this test for compilers unknown to 3164# Autoconf. 3165for ac_file in $ac_files '' 3166do 3167 test -f "$ac_file" || continue 3168 case $ac_file in 3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3170 ;; 3171 [ab].out ) 3172 # We found the default executable, but exeext='' is most 3173 # certainly right. 3174 break;; 3175 *.* ) 3176 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3177 then :; else 3178 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3179 fi 3180 # We set ac_cv_exeext here because the later test for it is not 3181 # safe: cross compilers may not add the suffix if given an `-o' 3182 # argument, so we may need to know it at that point already. 3183 # Even if this section looks crufty: it has the advantage of 3184 # actually working. 3185 break;; 3186 * ) 3187 break;; 3188 esac 3189done 3190test "$ac_cv_exeext" = no && ac_cv_exeext= 3191 3192else 3193 ac_file='' 3194fi 3195if test -z "$ac_file"; then : 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3197$as_echo "no" >&6; } 3198$as_echo "$as_me: failed program was:" >&5 3199sed 's/^/| /' conftest.$ac_ext >&5 3200 3201{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3203as_fn_error 77 "C compiler cannot create executables 3204See \`config.log' for more details" "$LINENO" 5; } 3205else 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3207$as_echo "yes" >&6; } 3208fi 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3210$as_echo_n "checking for C compiler default output file name... " >&6; } 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3212$as_echo "$ac_file" >&6; } 3213ac_exeext=$ac_cv_exeext 3214 3215rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3216ac_clean_files=$ac_clean_files_save 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3218$as_echo_n "checking for suffix of executables... " >&6; } 3219if { { ac_try="$ac_link" 3220case "(($ac_try" in 3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3222 *) ac_try_echo=$ac_try;; 3223esac 3224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3225$as_echo "$ac_try_echo"; } >&5 3226 (eval "$ac_link") 2>&5 3227 ac_status=$? 3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3229 test $ac_status = 0; }; then : 3230 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3231# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3232# work properly (i.e., refer to `conftest.exe'), while it won't with 3233# `rm'. 3234for ac_file in conftest.exe conftest conftest.*; do 3235 test -f "$ac_file" || continue 3236 case $ac_file in 3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3239 break;; 3240 * ) break;; 3241 esac 3242done 3243else 3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3246as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3247See \`config.log' for more details" "$LINENO" 5; } 3248fi 3249rm -f conftest conftest$ac_cv_exeext 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3251$as_echo "$ac_cv_exeext" >&6; } 3252 3253rm -f conftest.$ac_ext 3254EXEEXT=$ac_cv_exeext 3255ac_exeext=$EXEEXT 3256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3257/* end confdefs.h. */ 3258#include <stdio.h> 3259int 3260main () 3261{ 3262FILE *f = fopen ("conftest.out", "w"); 3263 return ferror (f) || fclose (f) != 0; 3264 3265 ; 3266 return 0; 3267} 3268_ACEOF 3269ac_clean_files="$ac_clean_files conftest.out" 3270# Check that the compiler produces executables we can run. If not, either 3271# the compiler is broken, or we cross compile. 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3273$as_echo_n "checking whether we are cross compiling... " >&6; } 3274if test "$cross_compiling" != yes; then 3275 { { ac_try="$ac_link" 3276case "(($ac_try" in 3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3278 *) ac_try_echo=$ac_try;; 3279esac 3280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3281$as_echo "$ac_try_echo"; } >&5 3282 (eval "$ac_link") 2>&5 3283 ac_status=$? 3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3285 test $ac_status = 0; } 3286 if { ac_try='./conftest$ac_cv_exeext' 3287 { { case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290esac 3291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3292$as_echo "$ac_try_echo"; } >&5 3293 (eval "$ac_try") 2>&5 3294 ac_status=$? 3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3296 test $ac_status = 0; }; }; then 3297 cross_compiling=no 3298 else 3299 if test "$cross_compiling" = maybe; then 3300 cross_compiling=yes 3301 else 3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3304as_fn_error $? "cannot run C compiled programs. 3305If you meant to cross compile, use \`--host'. 3306See \`config.log' for more details" "$LINENO" 5; } 3307 fi 3308 fi 3309fi 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3311$as_echo "$cross_compiling" >&6; } 3312 3313rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3314ac_clean_files=$ac_clean_files_save 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3316$as_echo_n "checking for suffix of object files... " >&6; } 3317if ${ac_cv_objext+:} false; then : 3318 $as_echo_n "(cached) " >&6 3319else 3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3321/* end confdefs.h. */ 3322 3323int 3324main () 3325{ 3326 3327 ; 3328 return 0; 3329} 3330_ACEOF 3331rm -f conftest.o conftest.obj 3332if { { ac_try="$ac_compile" 3333case "(($ac_try" in 3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3335 *) ac_try_echo=$ac_try;; 3336esac 3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3338$as_echo "$ac_try_echo"; } >&5 3339 (eval "$ac_compile") 2>&5 3340 ac_status=$? 3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3342 test $ac_status = 0; }; then : 3343 for ac_file in conftest.o conftest.obj conftest.*; do 3344 test -f "$ac_file" || continue; 3345 case $ac_file in 3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3348 break;; 3349 esac 3350done 3351else 3352 $as_echo "$as_me: failed program was:" >&5 3353sed 's/^/| /' conftest.$ac_ext >&5 3354 3355{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3357as_fn_error $? "cannot compute suffix of object files: cannot compile 3358See \`config.log' for more details" "$LINENO" 5; } 3359fi 3360rm -f conftest.$ac_cv_objext conftest.$ac_ext 3361fi 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3363$as_echo "$ac_cv_objext" >&6; } 3364OBJEXT=$ac_cv_objext 3365ac_objext=$OBJEXT 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3367$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3368if ${ac_cv_c_compiler_gnu+:} false; then : 3369 $as_echo_n "(cached) " >&6 3370else 3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3372/* end confdefs.h. */ 3373 3374int 3375main () 3376{ 3377#ifndef __GNUC__ 3378 choke me 3379#endif 3380 3381 ; 3382 return 0; 3383} 3384_ACEOF 3385if ac_fn_c_try_compile "$LINENO"; then : 3386 ac_compiler_gnu=yes 3387else 3388 ac_compiler_gnu=no 3389fi 3390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3391ac_cv_c_compiler_gnu=$ac_compiler_gnu 3392 3393fi 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3395$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3396if test $ac_compiler_gnu = yes; then 3397 GCC=yes 3398else 3399 GCC= 3400fi 3401ac_test_CFLAGS=${CFLAGS+set} 3402ac_save_CFLAGS=$CFLAGS 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3404$as_echo_n "checking whether $CC accepts -g... " >&6; } 3405if ${ac_cv_prog_cc_g+:} false; then : 3406 $as_echo_n "(cached) " >&6 3407else 3408 ac_save_c_werror_flag=$ac_c_werror_flag 3409 ac_c_werror_flag=yes 3410 ac_cv_prog_cc_g=no 3411 CFLAGS="-g" 3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3413/* end confdefs.h. */ 3414 3415int 3416main () 3417{ 3418 3419 ; 3420 return 0; 3421} 3422_ACEOF 3423if ac_fn_c_try_compile "$LINENO"; then : 3424 ac_cv_prog_cc_g=yes 3425else 3426 CFLAGS="" 3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3428/* end confdefs.h. */ 3429 3430int 3431main () 3432{ 3433 3434 ; 3435 return 0; 3436} 3437_ACEOF 3438if ac_fn_c_try_compile "$LINENO"; then : 3439 3440else 3441 ac_c_werror_flag=$ac_save_c_werror_flag 3442 CFLAGS="-g" 3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3444/* end confdefs.h. */ 3445 3446int 3447main () 3448{ 3449 3450 ; 3451 return 0; 3452} 3453_ACEOF 3454if ac_fn_c_try_compile "$LINENO"; then : 3455 ac_cv_prog_cc_g=yes 3456fi 3457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3458fi 3459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3460fi 3461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3462 ac_c_werror_flag=$ac_save_c_werror_flag 3463fi 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3465$as_echo "$ac_cv_prog_cc_g" >&6; } 3466if test "$ac_test_CFLAGS" = set; then 3467 CFLAGS=$ac_save_CFLAGS 3468elif test $ac_cv_prog_cc_g = yes; then 3469 if test "$GCC" = yes; then 3470 CFLAGS="-g -O2" 3471 else 3472 CFLAGS="-g" 3473 fi 3474else 3475 if test "$GCC" = yes; then 3476 CFLAGS="-O2" 3477 else 3478 CFLAGS= 3479 fi 3480fi 3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3482$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3483if ${ac_cv_prog_cc_c89+:} false; then : 3484 $as_echo_n "(cached) " >&6 3485else 3486 ac_cv_prog_cc_c89=no 3487ac_save_CC=$CC 3488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3489/* end confdefs.h. */ 3490#include <stdarg.h> 3491#include <stdio.h> 3492#include <sys/types.h> 3493#include <sys/stat.h> 3494/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3495struct buf { int x; }; 3496FILE * (*rcsopen) (struct buf *, struct stat *, int); 3497static char *e (p, i) 3498 char **p; 3499 int i; 3500{ 3501 return p[i]; 3502} 3503static char *f (char * (*g) (char **, int), char **p, ...) 3504{ 3505 char *s; 3506 va_list v; 3507 va_start (v,p); 3508 s = g (p, va_arg (v,int)); 3509 va_end (v); 3510 return s; 3511} 3512 3513/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3514 function prototypes and stuff, but not '\xHH' hex character constants. 3515 These don't provoke an error unfortunately, instead are silently treated 3516 as 'x'. The following induces an error, until -std is added to get 3517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3518 array size at least. It's necessary to write '\x00'==0 to get something 3519 that's true only with -std. */ 3520int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3521 3522/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3523 inside strings and character constants. */ 3524#define FOO(x) 'x' 3525int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3526 3527int test (int i, double x); 3528struct s1 {int (*f) (int a);}; 3529struct s2 {int (*f) (double a);}; 3530int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3531int argc; 3532char **argv; 3533int 3534main () 3535{ 3536return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3537 ; 3538 return 0; 3539} 3540_ACEOF 3541for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3542 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3543do 3544 CC="$ac_save_CC $ac_arg" 3545 if ac_fn_c_try_compile "$LINENO"; then : 3546 ac_cv_prog_cc_c89=$ac_arg 3547fi 3548rm -f core conftest.err conftest.$ac_objext 3549 test "x$ac_cv_prog_cc_c89" != "xno" && break 3550done 3551rm -f conftest.$ac_ext 3552CC=$ac_save_CC 3553 3554fi 3555# AC_CACHE_VAL 3556case "x$ac_cv_prog_cc_c89" in 3557 x) 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3559$as_echo "none needed" >&6; } ;; 3560 xno) 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3562$as_echo "unsupported" >&6; } ;; 3563 *) 3564 CC="$CC $ac_cv_prog_cc_c89" 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3566$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3567esac 3568if test "x$ac_cv_prog_cc_c89" != xno; then : 3569 3570fi 3571 3572ac_ext=c 3573ac_cpp='$CPP $CPPFLAGS' 3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3576ac_compiler_gnu=$ac_cv_c_compiler_gnu 3577 3578ac_ext=c 3579ac_cpp='$CPP $CPPFLAGS' 3580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3582ac_compiler_gnu=$ac_cv_c_compiler_gnu 3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3584$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3585if ${am_cv_prog_cc_c_o+:} false; then : 3586 $as_echo_n "(cached) " >&6 3587else 3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3589/* end confdefs.h. */ 3590 3591int 3592main () 3593{ 3594 3595 ; 3596 return 0; 3597} 3598_ACEOF 3599 # Make sure it works both with $CC and with simple cc. 3600 # Following AC_PROG_CC_C_O, we do the test twice because some 3601 # compilers refuse to overwrite an existing .o file with -o, 3602 # though they will create one. 3603 am_cv_prog_cc_c_o=yes 3604 for am_i in 1 2; do 3605 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3606 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3607 ac_status=$? 3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3609 (exit $ac_status); } \ 3610 && test -f conftest2.$ac_objext; then 3611 : OK 3612 else 3613 am_cv_prog_cc_c_o=no 3614 break 3615 fi 3616 done 3617 rm -f core conftest* 3618 unset am_i 3619fi 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3621$as_echo "$am_cv_prog_cc_c_o" >&6; } 3622if test "$am_cv_prog_cc_c_o" != yes; then 3623 # Losing compiler, so override with the script. 3624 # FIXME: It is wrong to rewrite CC. 3625 # But if we don't then we get into trouble of one sort or another. 3626 # A longer-term fix would be to have automake use am__CC in this case, 3627 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3628 CC="$am_aux_dir/compile $CC" 3629fi 3630ac_ext=c 3631ac_cpp='$CPP $CPPFLAGS' 3632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3634ac_compiler_gnu=$ac_cv_c_compiler_gnu 3635 3636 3637depcc="$CC" am_compiler_list= 3638 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3640$as_echo_n "checking dependency style of $depcc... " >&6; } 3641if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3642 $as_echo_n "(cached) " >&6 3643else 3644 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3645 # We make a subdir and do the tests there. Otherwise we can end up 3646 # making bogus files that we don't know about and never remove. For 3647 # instance it was reported that on HP-UX the gcc test will end up 3648 # making a dummy file named 'D' -- because '-MD' means "put the output 3649 # in D". 3650 rm -rf conftest.dir 3651 mkdir conftest.dir 3652 # Copy depcomp to subdir because otherwise we won't find it if we're 3653 # using a relative directory. 3654 cp "$am_depcomp" conftest.dir 3655 cd conftest.dir 3656 # We will build objects and dependencies in a subdirectory because 3657 # it helps to detect inapplicable dependency modes. For instance 3658 # both Tru64's cc and ICC support -MD to output dependencies as a 3659 # side effect of compilation, but ICC will put the dependencies in 3660 # the current directory while Tru64 will put them in the object 3661 # directory. 3662 mkdir sub 3663 3664 am_cv_CC_dependencies_compiler_type=none 3665 if test "$am_compiler_list" = ""; then 3666 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3667 fi 3668 am__universal=false 3669 case " $depcc " in #( 3670 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3671 esac 3672 3673 for depmode in $am_compiler_list; do 3674 # Setup a source with many dependencies, because some compilers 3675 # like to wrap large dependency lists on column 80 (with \), and 3676 # we should not choose a depcomp mode which is confused by this. 3677 # 3678 # We need to recreate these files for each test, as the compiler may 3679 # overwrite some of them when testing with obscure command lines. 3680 # This happens at least with the AIX C compiler. 3681 : > sub/conftest.c 3682 for i in 1 2 3 4 5 6; do 3683 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3684 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3685 # Solaris 10 /bin/sh. 3686 echo '/* dummy */' > sub/conftst$i.h 3687 done 3688 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3689 3690 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3691 # mode. It turns out that the SunPro C++ compiler does not properly 3692 # handle '-M -o', and we need to detect this. Also, some Intel 3693 # versions had trouble with output in subdirs. 3694 am__obj=sub/conftest.${OBJEXT-o} 3695 am__minus_obj="-o $am__obj" 3696 case $depmode in 3697 gcc) 3698 # This depmode causes a compiler race in universal mode. 3699 test "$am__universal" = false || continue 3700 ;; 3701 nosideeffect) 3702 # After this tag, mechanisms are not by side-effect, so they'll 3703 # only be used when explicitly requested. 3704 if test "x$enable_dependency_tracking" = xyes; then 3705 continue 3706 else 3707 break 3708 fi 3709 ;; 3710 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3711 # This compiler won't grok '-c -o', but also, the minuso test has 3712 # not run yet. These depmodes are late enough in the game, and 3713 # so weak that their functioning should not be impacted. 3714 am__obj=conftest.${OBJEXT-o} 3715 am__minus_obj= 3716 ;; 3717 none) break ;; 3718 esac 3719 if depmode=$depmode \ 3720 source=sub/conftest.c object=$am__obj \ 3721 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3722 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3723 >/dev/null 2>conftest.err && 3724 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3725 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3726 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3727 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3728 # icc doesn't choke on unknown options, it will just issue warnings 3729 # or remarks (even with -Werror). So we grep stderr for any message 3730 # that says an option was ignored or not supported. 3731 # When given -MP, icc 7.0 and 7.1 complain thusly: 3732 # icc: Command line warning: ignoring option '-M'; no argument required 3733 # The diagnosis changed in icc 8.0: 3734 # icc: Command line remark: option '-MP' not supported 3735 if (grep 'ignoring option' conftest.err || 3736 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3737 am_cv_CC_dependencies_compiler_type=$depmode 3738 break 3739 fi 3740 fi 3741 done 3742 3743 cd .. 3744 rm -rf conftest.dir 3745else 3746 am_cv_CC_dependencies_compiler_type=none 3747fi 3748 3749fi 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3751$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3752CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3753 3754 if 3755 test "x$enable_dependency_tracking" != xno \ 3756 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3757 am__fastdepCC_TRUE= 3758 am__fastdepCC_FALSE='#' 3759else 3760 am__fastdepCC_TRUE='#' 3761 am__fastdepCC_FALSE= 3762fi 3763 3764 3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3766$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3767if ${ac_cv_prog_cc_c99+:} false; then : 3768 $as_echo_n "(cached) " >&6 3769else 3770 ac_cv_prog_cc_c99=no 3771ac_save_CC=$CC 3772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3773/* end confdefs.h. */ 3774#include <stdarg.h> 3775#include <stdbool.h> 3776#include <stdlib.h> 3777#include <wchar.h> 3778#include <stdio.h> 3779 3780// Check varargs macros. These examples are taken from C99 6.10.3.5. 3781#define debug(...) fprintf (stderr, __VA_ARGS__) 3782#define showlist(...) puts (#__VA_ARGS__) 3783#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3784static void 3785test_varargs_macros (void) 3786{ 3787 int x = 1234; 3788 int y = 5678; 3789 debug ("Flag"); 3790 debug ("X = %d\n", x); 3791 showlist (The first, second, and third items.); 3792 report (x>y, "x is %d but y is %d", x, y); 3793} 3794 3795// Check long long types. 3796#define BIG64 18446744073709551615ull 3797#define BIG32 4294967295ul 3798#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3799#if !BIG_OK 3800 your preprocessor is broken; 3801#endif 3802#if BIG_OK 3803#else 3804 your preprocessor is broken; 3805#endif 3806static long long int bignum = -9223372036854775807LL; 3807static unsigned long long int ubignum = BIG64; 3808 3809struct incomplete_array 3810{ 3811 int datasize; 3812 double data[]; 3813}; 3814 3815struct named_init { 3816 int number; 3817 const wchar_t *name; 3818 double average; 3819}; 3820 3821typedef const char *ccp; 3822 3823static inline int 3824test_restrict (ccp restrict text) 3825{ 3826 // See if C++-style comments work. 3827 // Iterate through items via the restricted pointer. 3828 // Also check for declarations in for loops. 3829 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3830 continue; 3831 return 0; 3832} 3833 3834// Check varargs and va_copy. 3835static void 3836test_varargs (const char *format, ...) 3837{ 3838 va_list args; 3839 va_start (args, format); 3840 va_list args_copy; 3841 va_copy (args_copy, args); 3842 3843 const char *str; 3844 int number; 3845 float fnumber; 3846 3847 while (*format) 3848 { 3849 switch (*format++) 3850 { 3851 case 's': // string 3852 str = va_arg (args_copy, const char *); 3853 break; 3854 case 'd': // int 3855 number = va_arg (args_copy, int); 3856 break; 3857 case 'f': // float 3858 fnumber = va_arg (args_copy, double); 3859 break; 3860 default: 3861 break; 3862 } 3863 } 3864 va_end (args_copy); 3865 va_end (args); 3866} 3867 3868int 3869main () 3870{ 3871 3872 // Check bool. 3873 _Bool success = false; 3874 3875 // Check restrict. 3876 if (test_restrict ("String literal") == 0) 3877 success = true; 3878 char *restrict newvar = "Another string"; 3879 3880 // Check varargs. 3881 test_varargs ("s, d' f .", "string", 65, 34.234); 3882 test_varargs_macros (); 3883 3884 // Check flexible array members. 3885 struct incomplete_array *ia = 3886 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3887 ia->datasize = 10; 3888 for (int i = 0; i < ia->datasize; ++i) 3889 ia->data[i] = i * 1.234; 3890 3891 // Check named initializers. 3892 struct named_init ni = { 3893 .number = 34, 3894 .name = L"Test wide string", 3895 .average = 543.34343, 3896 }; 3897 3898 ni.number = 58; 3899 3900 int dynamic_array[ni.number]; 3901 dynamic_array[ni.number - 1] = 543; 3902 3903 // work around unused variable warnings 3904 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3905 || dynamic_array[ni.number - 1] != 543); 3906 3907 ; 3908 return 0; 3909} 3910_ACEOF 3911for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3912do 3913 CC="$ac_save_CC $ac_arg" 3914 if ac_fn_c_try_compile "$LINENO"; then : 3915 ac_cv_prog_cc_c99=$ac_arg 3916fi 3917rm -f core conftest.err conftest.$ac_objext 3918 test "x$ac_cv_prog_cc_c99" != "xno" && break 3919done 3920rm -f conftest.$ac_ext 3921CC=$ac_save_CC 3922 3923fi 3924# AC_CACHE_VAL 3925case "x$ac_cv_prog_cc_c99" in 3926 x) 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3928$as_echo "none needed" >&6; } ;; 3929 xno) 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3931$as_echo "unsupported" >&6; } ;; 3932 *) 3933 CC="$CC $ac_cv_prog_cc_c99" 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3935$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3936esac 3937if test "x$ac_cv_prog_cc_c99" != xno; then : 3938 3939fi 3940 3941 3942 3943ac_ext=c 3944ac_cpp='$CPP $CPPFLAGS' 3945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3947ac_compiler_gnu=$ac_cv_c_compiler_gnu 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3949$as_echo_n "checking how to run the C preprocessor... " >&6; } 3950# On Suns, sometimes $CPP names a directory. 3951if test -n "$CPP" && test -d "$CPP"; then 3952 CPP= 3953fi 3954if test -z "$CPP"; then 3955 if ${ac_cv_prog_CPP+:} false; then : 3956 $as_echo_n "(cached) " >&6 3957else 3958 # Double quotes because CPP needs to be expanded 3959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3960 do 3961 ac_preproc_ok=false 3962for ac_c_preproc_warn_flag in '' yes 3963do 3964 # Use a header file that comes with gcc, so configuring glibc 3965 # with a fresh cross-compiler works. 3966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3967 # <limits.h> exists even on freestanding compilers. 3968 # On the NeXT, cc -E runs the code through the compiler's parser, 3969 # not just through cpp. "Syntax error" is here to catch this case. 3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3971/* end confdefs.h. */ 3972#ifdef __STDC__ 3973# include <limits.h> 3974#else 3975# include <assert.h> 3976#endif 3977 Syntax error 3978_ACEOF 3979if ac_fn_c_try_cpp "$LINENO"; then : 3980 3981else 3982 # Broken: fails on valid input. 3983continue 3984fi 3985rm -f conftest.err conftest.i conftest.$ac_ext 3986 3987 # OK, works on sane cases. Now check whether nonexistent headers 3988 # can be detected and how. 3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3990/* end confdefs.h. */ 3991#include <ac_nonexistent.h> 3992_ACEOF 3993if ac_fn_c_try_cpp "$LINENO"; then : 3994 # Broken: success on invalid input. 3995continue 3996else 3997 # Passes both tests. 3998ac_preproc_ok=: 3999break 4000fi 4001rm -f conftest.err conftest.i conftest.$ac_ext 4002 4003done 4004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4005rm -f conftest.i conftest.err conftest.$ac_ext 4006if $ac_preproc_ok; then : 4007 break 4008fi 4009 4010 done 4011 ac_cv_prog_CPP=$CPP 4012 4013fi 4014 CPP=$ac_cv_prog_CPP 4015else 4016 ac_cv_prog_CPP=$CPP 4017fi 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4019$as_echo "$CPP" >&6; } 4020ac_preproc_ok=false 4021for ac_c_preproc_warn_flag in '' yes 4022do 4023 # Use a header file that comes with gcc, so configuring glibc 4024 # with a fresh cross-compiler works. 4025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4026 # <limits.h> exists even on freestanding compilers. 4027 # On the NeXT, cc -E runs the code through the compiler's parser, 4028 # not just through cpp. "Syntax error" is here to catch this case. 4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4030/* end confdefs.h. */ 4031#ifdef __STDC__ 4032# include <limits.h> 4033#else 4034# include <assert.h> 4035#endif 4036 Syntax error 4037_ACEOF 4038if ac_fn_c_try_cpp "$LINENO"; then : 4039 4040else 4041 # Broken: fails on valid input. 4042continue 4043fi 4044rm -f conftest.err conftest.i conftest.$ac_ext 4045 4046 # OK, works on sane cases. Now check whether nonexistent headers 4047 # can be detected and how. 4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4049/* end confdefs.h. */ 4050#include <ac_nonexistent.h> 4051_ACEOF 4052if ac_fn_c_try_cpp "$LINENO"; then : 4053 # Broken: success on invalid input. 4054continue 4055else 4056 # Passes both tests. 4057ac_preproc_ok=: 4058break 4059fi 4060rm -f conftest.err conftest.i conftest.$ac_ext 4061 4062done 4063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4064rm -f conftest.i conftest.err conftest.$ac_ext 4065if $ac_preproc_ok; then : 4066 4067else 4068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4070as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4071See \`config.log' for more details" "$LINENO" 5; } 4072fi 4073 4074ac_ext=c 4075ac_cpp='$CPP $CPPFLAGS' 4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4078ac_compiler_gnu=$ac_cv_c_compiler_gnu 4079 4080 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4082$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4083if ${ac_cv_path_GREP+:} false; then : 4084 $as_echo_n "(cached) " >&6 4085else 4086 if test -z "$GREP"; then 4087 ac_path_GREP_found=false 4088 # Loop through the user's path and test for each of PROGNAME-LIST 4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4090for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4091do 4092 IFS=$as_save_IFS 4093 test -z "$as_dir" && as_dir=. 4094 for ac_prog in grep ggrep; do 4095 for ac_exec_ext in '' $ac_executable_extensions; do 4096 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4097 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4098# Check for GNU ac_path_GREP and select it if it is found. 4099 # Check for GNU $ac_path_GREP 4100case `"$ac_path_GREP" --version 2>&1` in 4101*GNU*) 4102 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4103*) 4104 ac_count=0 4105 $as_echo_n 0123456789 >"conftest.in" 4106 while : 4107 do 4108 cat "conftest.in" "conftest.in" >"conftest.tmp" 4109 mv "conftest.tmp" "conftest.in" 4110 cp "conftest.in" "conftest.nl" 4111 $as_echo 'GREP' >> "conftest.nl" 4112 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4114 as_fn_arith $ac_count + 1 && ac_count=$as_val 4115 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4116 # Best one so far, save it but keep looking for a better one 4117 ac_cv_path_GREP="$ac_path_GREP" 4118 ac_path_GREP_max=$ac_count 4119 fi 4120 # 10*(2^10) chars as input seems more than enough 4121 test $ac_count -gt 10 && break 4122 done 4123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4124esac 4125 4126 $ac_path_GREP_found && break 3 4127 done 4128 done 4129 done 4130IFS=$as_save_IFS 4131 if test -z "$ac_cv_path_GREP"; then 4132 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4133 fi 4134else 4135 ac_cv_path_GREP=$GREP 4136fi 4137 4138fi 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4140$as_echo "$ac_cv_path_GREP" >&6; } 4141 GREP="$ac_cv_path_GREP" 4142 4143 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4145$as_echo_n "checking for egrep... " >&6; } 4146if ${ac_cv_path_EGREP+:} false; then : 4147 $as_echo_n "(cached) " >&6 4148else 4149 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4150 then ac_cv_path_EGREP="$GREP -E" 4151 else 4152 if test -z "$EGREP"; then 4153 ac_path_EGREP_found=false 4154 # Loop through the user's path and test for each of PROGNAME-LIST 4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4156for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4157do 4158 IFS=$as_save_IFS 4159 test -z "$as_dir" && as_dir=. 4160 for ac_prog in egrep; do 4161 for ac_exec_ext in '' $ac_executable_extensions; do 4162 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4163 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4164# Check for GNU ac_path_EGREP and select it if it is found. 4165 # Check for GNU $ac_path_EGREP 4166case `"$ac_path_EGREP" --version 2>&1` in 4167*GNU*) 4168 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4169*) 4170 ac_count=0 4171 $as_echo_n 0123456789 >"conftest.in" 4172 while : 4173 do 4174 cat "conftest.in" "conftest.in" >"conftest.tmp" 4175 mv "conftest.tmp" "conftest.in" 4176 cp "conftest.in" "conftest.nl" 4177 $as_echo 'EGREP' >> "conftest.nl" 4178 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4180 as_fn_arith $ac_count + 1 && ac_count=$as_val 4181 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4182 # Best one so far, save it but keep looking for a better one 4183 ac_cv_path_EGREP="$ac_path_EGREP" 4184 ac_path_EGREP_max=$ac_count 4185 fi 4186 # 10*(2^10) chars as input seems more than enough 4187 test $ac_count -gt 10 && break 4188 done 4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4190esac 4191 4192 $ac_path_EGREP_found && break 3 4193 done 4194 done 4195 done 4196IFS=$as_save_IFS 4197 if test -z "$ac_cv_path_EGREP"; then 4198 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4199 fi 4200else 4201 ac_cv_path_EGREP=$EGREP 4202fi 4203 4204 fi 4205fi 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4207$as_echo "$ac_cv_path_EGREP" >&6; } 4208 EGREP="$ac_cv_path_EGREP" 4209 4210 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4212$as_echo_n "checking for ANSI C header files... " >&6; } 4213if ${ac_cv_header_stdc+:} false; then : 4214 $as_echo_n "(cached) " >&6 4215else 4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4217/* end confdefs.h. */ 4218#include <stdlib.h> 4219#include <stdarg.h> 4220#include <string.h> 4221#include <float.h> 4222 4223int 4224main () 4225{ 4226 4227 ; 4228 return 0; 4229} 4230_ACEOF 4231if ac_fn_c_try_compile "$LINENO"; then : 4232 ac_cv_header_stdc=yes 4233else 4234 ac_cv_header_stdc=no 4235fi 4236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4237 4238if test $ac_cv_header_stdc = yes; then 4239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241/* end confdefs.h. */ 4242#include <string.h> 4243 4244_ACEOF 4245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4246 $EGREP "memchr" >/dev/null 2>&1; then : 4247 4248else 4249 ac_cv_header_stdc=no 4250fi 4251rm -f conftest* 4252 4253fi 4254 4255if test $ac_cv_header_stdc = yes; then 4256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4258/* end confdefs.h. */ 4259#include <stdlib.h> 4260 4261_ACEOF 4262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4263 $EGREP "free" >/dev/null 2>&1; then : 4264 4265else 4266 ac_cv_header_stdc=no 4267fi 4268rm -f conftest* 4269 4270fi 4271 4272if test $ac_cv_header_stdc = yes; then 4273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4274 if test "$cross_compiling" = yes; then : 4275 : 4276else 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279#include <ctype.h> 4280#include <stdlib.h> 4281#if ((' ' & 0x0FF) == 0x020) 4282# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4283# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4284#else 4285# define ISLOWER(c) \ 4286 (('a' <= (c) && (c) <= 'i') \ 4287 || ('j' <= (c) && (c) <= 'r') \ 4288 || ('s' <= (c) && (c) <= 'z')) 4289# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4290#endif 4291 4292#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4293int 4294main () 4295{ 4296 int i; 4297 for (i = 0; i < 256; i++) 4298 if (XOR (islower (i), ISLOWER (i)) 4299 || toupper (i) != TOUPPER (i)) 4300 return 2; 4301 return 0; 4302} 4303_ACEOF 4304if ac_fn_c_try_run "$LINENO"; then : 4305 4306else 4307 ac_cv_header_stdc=no 4308fi 4309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4310 conftest.$ac_objext conftest.beam conftest.$ac_ext 4311fi 4312 4313fi 4314fi 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4316$as_echo "$ac_cv_header_stdc" >&6; } 4317if test $ac_cv_header_stdc = yes; then 4318 4319$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4320 4321fi 4322 4323# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4324for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4325 inttypes.h stdint.h unistd.h 4326do : 4327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4328ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4329" 4330if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4331 cat >>confdefs.h <<_ACEOF 4332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4333_ACEOF 4334 4335fi 4336 4337done 4338 4339 4340 4341 4342 4343 4344ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4345if test "x$ac_cv_have_decl___clang__" = xyes; then : 4346 CLANGCC="yes" 4347else 4348 CLANGCC="no" 4349fi 4350 4351ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4352if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4353 INTELCC="yes" 4354else 4355 INTELCC="no" 4356fi 4357 4358ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4359if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4360 SUNCC="yes" 4361else 4362 SUNCC="no" 4363fi 4364 4365 4366 4367 4368if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4369 if test -n "$ac_tool_prefix"; then 4370 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4371set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4373$as_echo_n "checking for $ac_word... " >&6; } 4374if ${ac_cv_path_PKG_CONFIG+:} false; then : 4375 $as_echo_n "(cached) " >&6 4376else 4377 case $PKG_CONFIG in 4378 [\\/]* | ?:[\\/]*) 4379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4380 ;; 4381 *) 4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4383for as_dir in $PATH 4384do 4385 IFS=$as_save_IFS 4386 test -z "$as_dir" && as_dir=. 4387 for ac_exec_ext in '' $ac_executable_extensions; do 4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4391 break 2 4392 fi 4393done 4394 done 4395IFS=$as_save_IFS 4396 4397 ;; 4398esac 4399fi 4400PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4401if test -n "$PKG_CONFIG"; then 4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4403$as_echo "$PKG_CONFIG" >&6; } 4404else 4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4406$as_echo "no" >&6; } 4407fi 4408 4409 4410fi 4411if test -z "$ac_cv_path_PKG_CONFIG"; then 4412 ac_pt_PKG_CONFIG=$PKG_CONFIG 4413 # Extract the first word of "pkg-config", so it can be a program name with args. 4414set dummy pkg-config; ac_word=$2 4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4416$as_echo_n "checking for $ac_word... " >&6; } 4417if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4418 $as_echo_n "(cached) " >&6 4419else 4420 case $ac_pt_PKG_CONFIG in 4421 [\\/]* | ?:[\\/]*) 4422 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4423 ;; 4424 *) 4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426for as_dir in $PATH 4427do 4428 IFS=$as_save_IFS 4429 test -z "$as_dir" && as_dir=. 4430 for ac_exec_ext in '' $ac_executable_extensions; do 4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4432 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4434 break 2 4435 fi 4436done 4437 done 4438IFS=$as_save_IFS 4439 4440 ;; 4441esac 4442fi 4443ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4444if test -n "$ac_pt_PKG_CONFIG"; then 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4446$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4447else 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4449$as_echo "no" >&6; } 4450fi 4451 4452 if test "x$ac_pt_PKG_CONFIG" = x; then 4453 PKG_CONFIG="" 4454 else 4455 case $cross_compiling:$ac_tool_warned in 4456yes:) 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4459ac_tool_warned=yes ;; 4460esac 4461 PKG_CONFIG=$ac_pt_PKG_CONFIG 4462 fi 4463else 4464 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4465fi 4466 4467fi 4468if test -n "$PKG_CONFIG"; then 4469 _pkg_min_version=0.9.0 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4471$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4472 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4474$as_echo "yes" >&6; } 4475 else 4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4477$as_echo "no" >&6; } 4478 PKG_CONFIG="" 4479 fi 4480 4481fi 4482# Make sure we can run config.sub. 4483$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4484 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4485 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4487$as_echo_n "checking build system type... " >&6; } 4488if ${ac_cv_build+:} false; then : 4489 $as_echo_n "(cached) " >&6 4490else 4491 ac_build_alias=$build_alias 4492test "x$ac_build_alias" = x && 4493 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4494test "x$ac_build_alias" = x && 4495 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4496ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4498 4499fi 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4501$as_echo "$ac_cv_build" >&6; } 4502case $ac_cv_build in 4503*-*-*) ;; 4504*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4505esac 4506build=$ac_cv_build 4507ac_save_IFS=$IFS; IFS='-' 4508set x $ac_cv_build 4509shift 4510build_cpu=$1 4511build_vendor=$2 4512shift; shift 4513# Remember, the first character of IFS is used to create $*, 4514# except with old shells: 4515build_os=$* 4516IFS=$ac_save_IFS 4517case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4518 4519 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4521$as_echo_n "checking host system type... " >&6; } 4522if ${ac_cv_host+:} false; then : 4523 $as_echo_n "(cached) " >&6 4524else 4525 if test "x$host_alias" = x; then 4526 ac_cv_host=$ac_cv_build 4527else 4528 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4529 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4530fi 4531 4532fi 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4534$as_echo "$ac_cv_host" >&6; } 4535case $ac_cv_host in 4536*-*-*) ;; 4537*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4538esac 4539host=$ac_cv_host 4540ac_save_IFS=$IFS; IFS='-' 4541set x $ac_cv_host 4542shift 4543host_cpu=$1 4544host_vendor=$2 4545shift; shift 4546# Remember, the first character of IFS is used to create $*, 4547# except with old shells: 4548host_os=$* 4549IFS=$ac_save_IFS 4550case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4551 4552 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4554$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4555if ${ac_cv_path_SED+:} false; then : 4556 $as_echo_n "(cached) " >&6 4557else 4558 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4559 for ac_i in 1 2 3 4 5 6 7; do 4560 ac_script="$ac_script$as_nl$ac_script" 4561 done 4562 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4563 { ac_script=; unset ac_script;} 4564 if test -z "$SED"; then 4565 ac_path_SED_found=false 4566 # Loop through the user's path and test for each of PROGNAME-LIST 4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4568for as_dir in $PATH 4569do 4570 IFS=$as_save_IFS 4571 test -z "$as_dir" && as_dir=. 4572 for ac_prog in sed gsed; do 4573 for ac_exec_ext in '' $ac_executable_extensions; do 4574 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4575 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4576# Check for GNU ac_path_SED and select it if it is found. 4577 # Check for GNU $ac_path_SED 4578case `"$ac_path_SED" --version 2>&1` in 4579*GNU*) 4580 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4581*) 4582 ac_count=0 4583 $as_echo_n 0123456789 >"conftest.in" 4584 while : 4585 do 4586 cat "conftest.in" "conftest.in" >"conftest.tmp" 4587 mv "conftest.tmp" "conftest.in" 4588 cp "conftest.in" "conftest.nl" 4589 $as_echo '' >> "conftest.nl" 4590 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4592 as_fn_arith $ac_count + 1 && ac_count=$as_val 4593 if test $ac_count -gt ${ac_path_SED_max-0}; then 4594 # Best one so far, save it but keep looking for a better one 4595 ac_cv_path_SED="$ac_path_SED" 4596 ac_path_SED_max=$ac_count 4597 fi 4598 # 10*(2^10) chars as input seems more than enough 4599 test $ac_count -gt 10 && break 4600 done 4601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4602esac 4603 4604 $ac_path_SED_found && break 3 4605 done 4606 done 4607 done 4608IFS=$as_save_IFS 4609 if test -z "$ac_cv_path_SED"; then 4610 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4611 fi 4612else 4613 ac_cv_path_SED=$SED 4614fi 4615 4616fi 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4618$as_echo "$ac_cv_path_SED" >&6; } 4619 SED="$ac_cv_path_SED" 4620 rm -f conftest.sed 4621 4622 4623 4624 4625 4626 4627# Check whether --enable-selective-werror was given. 4628if test "${enable_selective_werror+set}" = set; then : 4629 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4630else 4631 SELECTIVE_WERROR=yes 4632fi 4633 4634 4635 4636 4637 4638# -v is too short to test reliably with XORG_TESTSET_CFLAG 4639if test "x$SUNCC" = "xyes"; then 4640 BASE_CFLAGS="-v" 4641else 4642 BASE_CFLAGS="" 4643fi 4644 4645# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659xorg_testset_save_CFLAGS="$CFLAGS" 4660 4661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4666 $as_echo_n "(cached) " >&6 4667else 4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4669/* end confdefs.h. */ 4670int i; 4671_ACEOF 4672if ac_fn_c_try_compile "$LINENO"; then : 4673 xorg_cv_cc_flag_unknown_warning_option=yes 4674else 4675 xorg_cv_cc_flag_unknown_warning_option=no 4676fi 4677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4678fi 4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4682 CFLAGS="$xorg_testset_save_CFLAGS" 4683fi 4684 4685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4688 fi 4689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4693 $as_echo_n "(cached) " >&6 4694else 4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4696/* end confdefs.h. */ 4697int i; 4698_ACEOF 4699if ac_fn_c_try_compile "$LINENO"; then : 4700 xorg_cv_cc_flag_unused_command_line_argument=yes 4701else 4702 xorg_cv_cc_flag_unused_command_line_argument=no 4703fi 4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4705fi 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4709 CFLAGS="$xorg_testset_save_CFLAGS" 4710fi 4711 4712found="no" 4713 4714 if test $found = "no" ; then 4715 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4717 fi 4718 4719 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4721 fi 4722 4723 CFLAGS="$CFLAGS -Wall" 4724 4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4726$as_echo_n "checking if $CC supports -Wall... " >&6; } 4727 cacheid=xorg_cv_cc_flag__Wall 4728 if eval \${$cacheid+:} false; then : 4729 $as_echo_n "(cached) " >&6 4730else 4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4732/* end confdefs.h. */ 4733int i; 4734int 4735main () 4736{ 4737 4738 ; 4739 return 0; 4740} 4741_ACEOF 4742if ac_fn_c_try_link "$LINENO"; then : 4743 eval $cacheid=yes 4744else 4745 eval $cacheid=no 4746fi 4747rm -f core conftest.err conftest.$ac_objext \ 4748 conftest$ac_exeext conftest.$ac_ext 4749fi 4750 4751 4752 CFLAGS="$xorg_testset_save_CFLAGS" 4753 4754 eval supported=\$$cacheid 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4756$as_echo "$supported" >&6; } 4757 if test "$supported" = "yes" ; then 4758 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4759 found="yes" 4760 fi 4761 fi 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777xorg_testset_save_CFLAGS="$CFLAGS" 4778 4779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4784 $as_echo_n "(cached) " >&6 4785else 4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4787/* end confdefs.h. */ 4788int i; 4789_ACEOF 4790if ac_fn_c_try_compile "$LINENO"; then : 4791 xorg_cv_cc_flag_unknown_warning_option=yes 4792else 4793 xorg_cv_cc_flag_unknown_warning_option=no 4794fi 4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4796fi 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4800 CFLAGS="$xorg_testset_save_CFLAGS" 4801fi 4802 4803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4806 fi 4807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4811 $as_echo_n "(cached) " >&6 4812else 4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4814/* end confdefs.h. */ 4815int i; 4816_ACEOF 4817if ac_fn_c_try_compile "$LINENO"; then : 4818 xorg_cv_cc_flag_unused_command_line_argument=yes 4819else 4820 xorg_cv_cc_flag_unused_command_line_argument=no 4821fi 4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4823fi 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4827 CFLAGS="$xorg_testset_save_CFLAGS" 4828fi 4829 4830found="no" 4831 4832 if test $found = "no" ; then 4833 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4835 fi 4836 4837 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4839 fi 4840 4841 CFLAGS="$CFLAGS -Wpointer-arith" 4842 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4844$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4845 cacheid=xorg_cv_cc_flag__Wpointer_arith 4846 if eval \${$cacheid+:} false; then : 4847 $as_echo_n "(cached) " >&6 4848else 4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4850/* end confdefs.h. */ 4851int i; 4852int 4853main () 4854{ 4855 4856 ; 4857 return 0; 4858} 4859_ACEOF 4860if ac_fn_c_try_link "$LINENO"; then : 4861 eval $cacheid=yes 4862else 4863 eval $cacheid=no 4864fi 4865rm -f core conftest.err conftest.$ac_objext \ 4866 conftest$ac_exeext conftest.$ac_ext 4867fi 4868 4869 4870 CFLAGS="$xorg_testset_save_CFLAGS" 4871 4872 eval supported=\$$cacheid 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4874$as_echo "$supported" >&6; } 4875 if test "$supported" = "yes" ; then 4876 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4877 found="yes" 4878 fi 4879 fi 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895xorg_testset_save_CFLAGS="$CFLAGS" 4896 4897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4902 $as_echo_n "(cached) " >&6 4903else 4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4905/* end confdefs.h. */ 4906int i; 4907_ACEOF 4908if ac_fn_c_try_compile "$LINENO"; then : 4909 xorg_cv_cc_flag_unknown_warning_option=yes 4910else 4911 xorg_cv_cc_flag_unknown_warning_option=no 4912fi 4913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4914fi 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4918 CFLAGS="$xorg_testset_save_CFLAGS" 4919fi 4920 4921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4924 fi 4925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4929 $as_echo_n "(cached) " >&6 4930else 4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4932/* end confdefs.h. */ 4933int i; 4934_ACEOF 4935if ac_fn_c_try_compile "$LINENO"; then : 4936 xorg_cv_cc_flag_unused_command_line_argument=yes 4937else 4938 xorg_cv_cc_flag_unused_command_line_argument=no 4939fi 4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4941fi 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4945 CFLAGS="$xorg_testset_save_CFLAGS" 4946fi 4947 4948found="no" 4949 4950 if test $found = "no" ; then 4951 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4953 fi 4954 4955 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4957 fi 4958 4959 CFLAGS="$CFLAGS -Wmissing-declarations" 4960 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4962$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4963 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4964 if eval \${$cacheid+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4968/* end confdefs.h. */ 4969int i; 4970int 4971main () 4972{ 4973 4974 ; 4975 return 0; 4976} 4977_ACEOF 4978if ac_fn_c_try_link "$LINENO"; then : 4979 eval $cacheid=yes 4980else 4981 eval $cacheid=no 4982fi 4983rm -f core conftest.err conftest.$ac_objext \ 4984 conftest$ac_exeext conftest.$ac_ext 4985fi 4986 4987 4988 CFLAGS="$xorg_testset_save_CFLAGS" 4989 4990 eval supported=\$$cacheid 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4992$as_echo "$supported" >&6; } 4993 if test "$supported" = "yes" ; then 4994 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4995 found="yes" 4996 fi 4997 fi 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013xorg_testset_save_CFLAGS="$CFLAGS" 5014 5015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5020 $as_echo_n "(cached) " >&6 5021else 5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5023/* end confdefs.h. */ 5024int i; 5025_ACEOF 5026if ac_fn_c_try_compile "$LINENO"; then : 5027 xorg_cv_cc_flag_unknown_warning_option=yes 5028else 5029 xorg_cv_cc_flag_unknown_warning_option=no 5030fi 5031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5032fi 5033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5036 CFLAGS="$xorg_testset_save_CFLAGS" 5037fi 5038 5039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5042 fi 5043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5047 $as_echo_n "(cached) " >&6 5048else 5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5050/* end confdefs.h. */ 5051int i; 5052_ACEOF 5053if ac_fn_c_try_compile "$LINENO"; then : 5054 xorg_cv_cc_flag_unused_command_line_argument=yes 5055else 5056 xorg_cv_cc_flag_unused_command_line_argument=no 5057fi 5058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5059fi 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5063 CFLAGS="$xorg_testset_save_CFLAGS" 5064fi 5065 5066found="no" 5067 5068 if test $found = "no" ; then 5069 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5071 fi 5072 5073 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5075 fi 5076 5077 CFLAGS="$CFLAGS -Wformat=2" 5078 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5080$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5081 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5082 if eval \${$cacheid+:} false; then : 5083 $as_echo_n "(cached) " >&6 5084else 5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5086/* end confdefs.h. */ 5087int i; 5088int 5089main () 5090{ 5091 5092 ; 5093 return 0; 5094} 5095_ACEOF 5096if ac_fn_c_try_link "$LINENO"; then : 5097 eval $cacheid=yes 5098else 5099 eval $cacheid=no 5100fi 5101rm -f core conftest.err conftest.$ac_objext \ 5102 conftest$ac_exeext conftest.$ac_ext 5103fi 5104 5105 5106 CFLAGS="$xorg_testset_save_CFLAGS" 5107 5108 eval supported=\$$cacheid 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5110$as_echo "$supported" >&6; } 5111 if test "$supported" = "yes" ; then 5112 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5113 found="yes" 5114 fi 5115 fi 5116 5117 if test $found = "no" ; then 5118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5120 fi 5121 5122 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5124 fi 5125 5126 CFLAGS="$CFLAGS -Wformat" 5127 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5129$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5130 cacheid=xorg_cv_cc_flag__Wformat 5131 if eval \${$cacheid+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136int i; 5137int 5138main () 5139{ 5140 5141 ; 5142 return 0; 5143} 5144_ACEOF 5145if ac_fn_c_try_link "$LINENO"; then : 5146 eval $cacheid=yes 5147else 5148 eval $cacheid=no 5149fi 5150rm -f core conftest.err conftest.$ac_objext \ 5151 conftest$ac_exeext conftest.$ac_ext 5152fi 5153 5154 5155 CFLAGS="$xorg_testset_save_CFLAGS" 5156 5157 eval supported=\$$cacheid 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5159$as_echo "$supported" >&6; } 5160 if test "$supported" = "yes" ; then 5161 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5162 found="yes" 5163 fi 5164 fi 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182xorg_testset_save_CFLAGS="$CFLAGS" 5183 5184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5189 $as_echo_n "(cached) " >&6 5190else 5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5192/* end confdefs.h. */ 5193int i; 5194_ACEOF 5195if ac_fn_c_try_compile "$LINENO"; then : 5196 xorg_cv_cc_flag_unknown_warning_option=yes 5197else 5198 xorg_cv_cc_flag_unknown_warning_option=no 5199fi 5200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5201fi 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5205 CFLAGS="$xorg_testset_save_CFLAGS" 5206fi 5207 5208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5211 fi 5212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5216 $as_echo_n "(cached) " >&6 5217else 5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5219/* end confdefs.h. */ 5220int i; 5221_ACEOF 5222if ac_fn_c_try_compile "$LINENO"; then : 5223 xorg_cv_cc_flag_unused_command_line_argument=yes 5224else 5225 xorg_cv_cc_flag_unused_command_line_argument=no 5226fi 5227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5228fi 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5232 CFLAGS="$xorg_testset_save_CFLAGS" 5233fi 5234 5235found="no" 5236 5237 if test $found = "no" ; then 5238 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5240 fi 5241 5242 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5244 fi 5245 5246 CFLAGS="$CFLAGS -Wstrict-prototypes" 5247 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5249$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5250 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5251 if eval \${$cacheid+:} false; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5255/* end confdefs.h. */ 5256int i; 5257int 5258main () 5259{ 5260 5261 ; 5262 return 0; 5263} 5264_ACEOF 5265if ac_fn_c_try_link "$LINENO"; then : 5266 eval $cacheid=yes 5267else 5268 eval $cacheid=no 5269fi 5270rm -f core conftest.err conftest.$ac_objext \ 5271 conftest$ac_exeext conftest.$ac_ext 5272fi 5273 5274 5275 CFLAGS="$xorg_testset_save_CFLAGS" 5276 5277 eval supported=\$$cacheid 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5279$as_echo "$supported" >&6; } 5280 if test "$supported" = "yes" ; then 5281 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5282 found="yes" 5283 fi 5284 fi 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300xorg_testset_save_CFLAGS="$CFLAGS" 5301 5302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5307 $as_echo_n "(cached) " >&6 5308else 5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5310/* end confdefs.h. */ 5311int i; 5312_ACEOF 5313if ac_fn_c_try_compile "$LINENO"; then : 5314 xorg_cv_cc_flag_unknown_warning_option=yes 5315else 5316 xorg_cv_cc_flag_unknown_warning_option=no 5317fi 5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5319fi 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5323 CFLAGS="$xorg_testset_save_CFLAGS" 5324fi 5325 5326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5329 fi 5330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5334 $as_echo_n "(cached) " >&6 5335else 5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5337/* end confdefs.h. */ 5338int i; 5339_ACEOF 5340if ac_fn_c_try_compile "$LINENO"; then : 5341 xorg_cv_cc_flag_unused_command_line_argument=yes 5342else 5343 xorg_cv_cc_flag_unused_command_line_argument=no 5344fi 5345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5346fi 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5350 CFLAGS="$xorg_testset_save_CFLAGS" 5351fi 5352 5353found="no" 5354 5355 if test $found = "no" ; then 5356 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5358 fi 5359 5360 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5362 fi 5363 5364 CFLAGS="$CFLAGS -Wmissing-prototypes" 5365 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5367$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5368 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5369 if eval \${$cacheid+:} false; then : 5370 $as_echo_n "(cached) " >&6 5371else 5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5373/* end confdefs.h. */ 5374int i; 5375int 5376main () 5377{ 5378 5379 ; 5380 return 0; 5381} 5382_ACEOF 5383if ac_fn_c_try_link "$LINENO"; then : 5384 eval $cacheid=yes 5385else 5386 eval $cacheid=no 5387fi 5388rm -f core conftest.err conftest.$ac_objext \ 5389 conftest$ac_exeext conftest.$ac_ext 5390fi 5391 5392 5393 CFLAGS="$xorg_testset_save_CFLAGS" 5394 5395 eval supported=\$$cacheid 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5397$as_echo "$supported" >&6; } 5398 if test "$supported" = "yes" ; then 5399 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5400 found="yes" 5401 fi 5402 fi 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418xorg_testset_save_CFLAGS="$CFLAGS" 5419 5420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5428/* end confdefs.h. */ 5429int i; 5430_ACEOF 5431if ac_fn_c_try_compile "$LINENO"; then : 5432 xorg_cv_cc_flag_unknown_warning_option=yes 5433else 5434 xorg_cv_cc_flag_unknown_warning_option=no 5435fi 5436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5437fi 5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5441 CFLAGS="$xorg_testset_save_CFLAGS" 5442fi 5443 5444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5447 fi 5448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5455/* end confdefs.h. */ 5456int i; 5457_ACEOF 5458if ac_fn_c_try_compile "$LINENO"; then : 5459 xorg_cv_cc_flag_unused_command_line_argument=yes 5460else 5461 xorg_cv_cc_flag_unused_command_line_argument=no 5462fi 5463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5464fi 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5468 CFLAGS="$xorg_testset_save_CFLAGS" 5469fi 5470 5471found="no" 5472 5473 if test $found = "no" ; then 5474 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5476 fi 5477 5478 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5480 fi 5481 5482 CFLAGS="$CFLAGS -Wnested-externs" 5483 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5485$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5486 cacheid=xorg_cv_cc_flag__Wnested_externs 5487 if eval \${$cacheid+:} false; then : 5488 $as_echo_n "(cached) " >&6 5489else 5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5491/* end confdefs.h. */ 5492int i; 5493int 5494main () 5495{ 5496 5497 ; 5498 return 0; 5499} 5500_ACEOF 5501if ac_fn_c_try_link "$LINENO"; then : 5502 eval $cacheid=yes 5503else 5504 eval $cacheid=no 5505fi 5506rm -f core conftest.err conftest.$ac_objext \ 5507 conftest$ac_exeext conftest.$ac_ext 5508fi 5509 5510 5511 CFLAGS="$xorg_testset_save_CFLAGS" 5512 5513 eval supported=\$$cacheid 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5515$as_echo "$supported" >&6; } 5516 if test "$supported" = "yes" ; then 5517 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5518 found="yes" 5519 fi 5520 fi 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536xorg_testset_save_CFLAGS="$CFLAGS" 5537 5538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5546/* end confdefs.h. */ 5547int i; 5548_ACEOF 5549if ac_fn_c_try_compile "$LINENO"; then : 5550 xorg_cv_cc_flag_unknown_warning_option=yes 5551else 5552 xorg_cv_cc_flag_unknown_warning_option=no 5553fi 5554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5555fi 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5559 CFLAGS="$xorg_testset_save_CFLAGS" 5560fi 5561 5562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5565 fi 5566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5570 $as_echo_n "(cached) " >&6 5571else 5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5573/* end confdefs.h. */ 5574int i; 5575_ACEOF 5576if ac_fn_c_try_compile "$LINENO"; then : 5577 xorg_cv_cc_flag_unused_command_line_argument=yes 5578else 5579 xorg_cv_cc_flag_unused_command_line_argument=no 5580fi 5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5582fi 5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5586 CFLAGS="$xorg_testset_save_CFLAGS" 5587fi 5588 5589found="no" 5590 5591 if test $found = "no" ; then 5592 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5594 fi 5595 5596 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5598 fi 5599 5600 CFLAGS="$CFLAGS -Wbad-function-cast" 5601 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5603$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5604 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5605 if eval \${$cacheid+:} false; then : 5606 $as_echo_n "(cached) " >&6 5607else 5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5609/* end confdefs.h. */ 5610int i; 5611int 5612main () 5613{ 5614 5615 ; 5616 return 0; 5617} 5618_ACEOF 5619if ac_fn_c_try_link "$LINENO"; then : 5620 eval $cacheid=yes 5621else 5622 eval $cacheid=no 5623fi 5624rm -f core conftest.err conftest.$ac_objext \ 5625 conftest$ac_exeext conftest.$ac_ext 5626fi 5627 5628 5629 CFLAGS="$xorg_testset_save_CFLAGS" 5630 5631 eval supported=\$$cacheid 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5633$as_echo "$supported" >&6; } 5634 if test "$supported" = "yes" ; then 5635 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5636 found="yes" 5637 fi 5638 fi 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654xorg_testset_save_CFLAGS="$CFLAGS" 5655 5656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5661 $as_echo_n "(cached) " >&6 5662else 5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5664/* end confdefs.h. */ 5665int i; 5666_ACEOF 5667if ac_fn_c_try_compile "$LINENO"; then : 5668 xorg_cv_cc_flag_unknown_warning_option=yes 5669else 5670 xorg_cv_cc_flag_unknown_warning_option=no 5671fi 5672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5673fi 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5677 CFLAGS="$xorg_testset_save_CFLAGS" 5678fi 5679 5680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5683 fi 5684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5688 $as_echo_n "(cached) " >&6 5689else 5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5691/* end confdefs.h. */ 5692int i; 5693_ACEOF 5694if ac_fn_c_try_compile "$LINENO"; then : 5695 xorg_cv_cc_flag_unused_command_line_argument=yes 5696else 5697 xorg_cv_cc_flag_unused_command_line_argument=no 5698fi 5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5700fi 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5704 CFLAGS="$xorg_testset_save_CFLAGS" 5705fi 5706 5707found="no" 5708 5709 if test $found = "no" ; then 5710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5712 fi 5713 5714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5716 fi 5717 5718 CFLAGS="$CFLAGS -Wold-style-definition" 5719 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5721$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5722 cacheid=xorg_cv_cc_flag__Wold_style_definition 5723 if eval \${$cacheid+:} false; then : 5724 $as_echo_n "(cached) " >&6 5725else 5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5727/* end confdefs.h. */ 5728int i; 5729int 5730main () 5731{ 5732 5733 ; 5734 return 0; 5735} 5736_ACEOF 5737if ac_fn_c_try_link "$LINENO"; then : 5738 eval $cacheid=yes 5739else 5740 eval $cacheid=no 5741fi 5742rm -f core conftest.err conftest.$ac_objext \ 5743 conftest$ac_exeext conftest.$ac_ext 5744fi 5745 5746 5747 CFLAGS="$xorg_testset_save_CFLAGS" 5748 5749 eval supported=\$$cacheid 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5751$as_echo "$supported" >&6; } 5752 if test "$supported" = "yes" ; then 5753 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5754 found="yes" 5755 fi 5756 fi 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772xorg_testset_save_CFLAGS="$CFLAGS" 5773 5774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5779 $as_echo_n "(cached) " >&6 5780else 5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5782/* end confdefs.h. */ 5783int i; 5784_ACEOF 5785if ac_fn_c_try_compile "$LINENO"; then : 5786 xorg_cv_cc_flag_unknown_warning_option=yes 5787else 5788 xorg_cv_cc_flag_unknown_warning_option=no 5789fi 5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5791fi 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5795 CFLAGS="$xorg_testset_save_CFLAGS" 5796fi 5797 5798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5801 fi 5802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5806 $as_echo_n "(cached) " >&6 5807else 5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5809/* end confdefs.h. */ 5810int i; 5811_ACEOF 5812if ac_fn_c_try_compile "$LINENO"; then : 5813 xorg_cv_cc_flag_unused_command_line_argument=yes 5814else 5815 xorg_cv_cc_flag_unused_command_line_argument=no 5816fi 5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5818fi 5819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5822 CFLAGS="$xorg_testset_save_CFLAGS" 5823fi 5824 5825found="no" 5826 5827 if test $found = "no" ; then 5828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5830 fi 5831 5832 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5834 fi 5835 5836 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5837 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5839$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5840 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5841 if eval \${$cacheid+:} false; then : 5842 $as_echo_n "(cached) " >&6 5843else 5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5845/* end confdefs.h. */ 5846int i; 5847int 5848main () 5849{ 5850 5851 ; 5852 return 0; 5853} 5854_ACEOF 5855if ac_fn_c_try_link "$LINENO"; then : 5856 eval $cacheid=yes 5857else 5858 eval $cacheid=no 5859fi 5860rm -f core conftest.err conftest.$ac_objext \ 5861 conftest$ac_exeext conftest.$ac_ext 5862fi 5863 5864 5865 CFLAGS="$xorg_testset_save_CFLAGS" 5866 5867 eval supported=\$$cacheid 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5869$as_echo "$supported" >&6; } 5870 if test "$supported" = "yes" ; then 5871 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5872 found="yes" 5873 fi 5874 fi 5875 5876 5877 5878 5879 5880# This chunk adds additional warnings that could catch undesired effects. 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894xorg_testset_save_CFLAGS="$CFLAGS" 5895 5896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5899$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5900if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5901 $as_echo_n "(cached) " >&6 5902else 5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5904/* end confdefs.h. */ 5905int i; 5906_ACEOF 5907if ac_fn_c_try_compile "$LINENO"; then : 5908 xorg_cv_cc_flag_unknown_warning_option=yes 5909else 5910 xorg_cv_cc_flag_unknown_warning_option=no 5911fi 5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5913fi 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5915$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5917 CFLAGS="$xorg_testset_save_CFLAGS" 5918fi 5919 5920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5923 fi 5924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5926$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5927if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5928 $as_echo_n "(cached) " >&6 5929else 5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5931/* end confdefs.h. */ 5932int i; 5933_ACEOF 5934if ac_fn_c_try_compile "$LINENO"; then : 5935 xorg_cv_cc_flag_unused_command_line_argument=yes 5936else 5937 xorg_cv_cc_flag_unused_command_line_argument=no 5938fi 5939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5940fi 5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5942$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5944 CFLAGS="$xorg_testset_save_CFLAGS" 5945fi 5946 5947found="no" 5948 5949 if test $found = "no" ; then 5950 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5952 fi 5953 5954 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5956 fi 5957 5958 CFLAGS="$CFLAGS -Wunused" 5959 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5961$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5962 cacheid=xorg_cv_cc_flag__Wunused 5963 if eval \${$cacheid+:} false; then : 5964 $as_echo_n "(cached) " >&6 5965else 5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5967/* end confdefs.h. */ 5968int i; 5969int 5970main () 5971{ 5972 5973 ; 5974 return 0; 5975} 5976_ACEOF 5977if ac_fn_c_try_link "$LINENO"; then : 5978 eval $cacheid=yes 5979else 5980 eval $cacheid=no 5981fi 5982rm -f core conftest.err conftest.$ac_objext \ 5983 conftest$ac_exeext conftest.$ac_ext 5984fi 5985 5986 5987 CFLAGS="$xorg_testset_save_CFLAGS" 5988 5989 eval supported=\$$cacheid 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5991$as_echo "$supported" >&6; } 5992 if test "$supported" = "yes" ; then 5993 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5994 found="yes" 5995 fi 5996 fi 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012xorg_testset_save_CFLAGS="$CFLAGS" 6013 6014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6018if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6019 $as_echo_n "(cached) " >&6 6020else 6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6022/* end confdefs.h. */ 6023int i; 6024_ACEOF 6025if ac_fn_c_try_compile "$LINENO"; then : 6026 xorg_cv_cc_flag_unknown_warning_option=yes 6027else 6028 xorg_cv_cc_flag_unknown_warning_option=no 6029fi 6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6031fi 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6033$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6035 CFLAGS="$xorg_testset_save_CFLAGS" 6036fi 6037 6038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6041 fi 6042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6044$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6045if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6046 $as_echo_n "(cached) " >&6 6047else 6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6049/* end confdefs.h. */ 6050int i; 6051_ACEOF 6052if ac_fn_c_try_compile "$LINENO"; then : 6053 xorg_cv_cc_flag_unused_command_line_argument=yes 6054else 6055 xorg_cv_cc_flag_unused_command_line_argument=no 6056fi 6057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6058fi 6059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6060$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6062 CFLAGS="$xorg_testset_save_CFLAGS" 6063fi 6064 6065found="no" 6066 6067 if test $found = "no" ; then 6068 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6070 fi 6071 6072 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6074 fi 6075 6076 CFLAGS="$CFLAGS -Wuninitialized" 6077 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6079$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6080 cacheid=xorg_cv_cc_flag__Wuninitialized 6081 if eval \${$cacheid+:} false; then : 6082 $as_echo_n "(cached) " >&6 6083else 6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6085/* end confdefs.h. */ 6086int i; 6087int 6088main () 6089{ 6090 6091 ; 6092 return 0; 6093} 6094_ACEOF 6095if ac_fn_c_try_link "$LINENO"; then : 6096 eval $cacheid=yes 6097else 6098 eval $cacheid=no 6099fi 6100rm -f core conftest.err conftest.$ac_objext \ 6101 conftest$ac_exeext conftest.$ac_ext 6102fi 6103 6104 6105 CFLAGS="$xorg_testset_save_CFLAGS" 6106 6107 eval supported=\$$cacheid 6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6109$as_echo "$supported" >&6; } 6110 if test "$supported" = "yes" ; then 6111 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6112 found="yes" 6113 fi 6114 fi 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130xorg_testset_save_CFLAGS="$CFLAGS" 6131 6132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6137 $as_echo_n "(cached) " >&6 6138else 6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6140/* end confdefs.h. */ 6141int i; 6142_ACEOF 6143if ac_fn_c_try_compile "$LINENO"; then : 6144 xorg_cv_cc_flag_unknown_warning_option=yes 6145else 6146 xorg_cv_cc_flag_unknown_warning_option=no 6147fi 6148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6149fi 6150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6153 CFLAGS="$xorg_testset_save_CFLAGS" 6154fi 6155 6156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6159 fi 6160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6164 $as_echo_n "(cached) " >&6 6165else 6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6167/* end confdefs.h. */ 6168int i; 6169_ACEOF 6170if ac_fn_c_try_compile "$LINENO"; then : 6171 xorg_cv_cc_flag_unused_command_line_argument=yes 6172else 6173 xorg_cv_cc_flag_unused_command_line_argument=no 6174fi 6175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6176fi 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6180 CFLAGS="$xorg_testset_save_CFLAGS" 6181fi 6182 6183found="no" 6184 6185 if test $found = "no" ; then 6186 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6188 fi 6189 6190 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6192 fi 6193 6194 CFLAGS="$CFLAGS -Wshadow" 6195 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6197$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6198 cacheid=xorg_cv_cc_flag__Wshadow 6199 if eval \${$cacheid+:} false; then : 6200 $as_echo_n "(cached) " >&6 6201else 6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6203/* end confdefs.h. */ 6204int i; 6205int 6206main () 6207{ 6208 6209 ; 6210 return 0; 6211} 6212_ACEOF 6213if ac_fn_c_try_link "$LINENO"; then : 6214 eval $cacheid=yes 6215else 6216 eval $cacheid=no 6217fi 6218rm -f core conftest.err conftest.$ac_objext \ 6219 conftest$ac_exeext conftest.$ac_ext 6220fi 6221 6222 6223 CFLAGS="$xorg_testset_save_CFLAGS" 6224 6225 eval supported=\$$cacheid 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6227$as_echo "$supported" >&6; } 6228 if test "$supported" = "yes" ; then 6229 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6230 found="yes" 6231 fi 6232 fi 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248xorg_testset_save_CFLAGS="$CFLAGS" 6249 6250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6253$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6254if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6255 $as_echo_n "(cached) " >&6 6256else 6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6258/* end confdefs.h. */ 6259int i; 6260_ACEOF 6261if ac_fn_c_try_compile "$LINENO"; then : 6262 xorg_cv_cc_flag_unknown_warning_option=yes 6263else 6264 xorg_cv_cc_flag_unknown_warning_option=no 6265fi 6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6267fi 6268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6269$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6271 CFLAGS="$xorg_testset_save_CFLAGS" 6272fi 6273 6274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6277 fi 6278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6280$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6281if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6282 $as_echo_n "(cached) " >&6 6283else 6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6285/* end confdefs.h. */ 6286int i; 6287_ACEOF 6288if ac_fn_c_try_compile "$LINENO"; then : 6289 xorg_cv_cc_flag_unused_command_line_argument=yes 6290else 6291 xorg_cv_cc_flag_unused_command_line_argument=no 6292fi 6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6294fi 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6296$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6298 CFLAGS="$xorg_testset_save_CFLAGS" 6299fi 6300 6301found="no" 6302 6303 if test $found = "no" ; then 6304 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6306 fi 6307 6308 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6310 fi 6311 6312 CFLAGS="$CFLAGS -Wcast-qual" 6313 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6315$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6316 cacheid=xorg_cv_cc_flag__Wcast_qual 6317 if eval \${$cacheid+:} false; then : 6318 $as_echo_n "(cached) " >&6 6319else 6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6321/* end confdefs.h. */ 6322int i; 6323int 6324main () 6325{ 6326 6327 ; 6328 return 0; 6329} 6330_ACEOF 6331if ac_fn_c_try_link "$LINENO"; then : 6332 eval $cacheid=yes 6333else 6334 eval $cacheid=no 6335fi 6336rm -f core conftest.err conftest.$ac_objext \ 6337 conftest$ac_exeext conftest.$ac_ext 6338fi 6339 6340 6341 CFLAGS="$xorg_testset_save_CFLAGS" 6342 6343 eval supported=\$$cacheid 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6345$as_echo "$supported" >&6; } 6346 if test "$supported" = "yes" ; then 6347 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6348 found="yes" 6349 fi 6350 fi 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366xorg_testset_save_CFLAGS="$CFLAGS" 6367 6368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6371$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6372if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6373 $as_echo_n "(cached) " >&6 6374else 6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6376/* end confdefs.h. */ 6377int i; 6378_ACEOF 6379if ac_fn_c_try_compile "$LINENO"; then : 6380 xorg_cv_cc_flag_unknown_warning_option=yes 6381else 6382 xorg_cv_cc_flag_unknown_warning_option=no 6383fi 6384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6385fi 6386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6387$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6389 CFLAGS="$xorg_testset_save_CFLAGS" 6390fi 6391 6392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6395 fi 6396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6398$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6399if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6400 $as_echo_n "(cached) " >&6 6401else 6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6403/* end confdefs.h. */ 6404int i; 6405_ACEOF 6406if ac_fn_c_try_compile "$LINENO"; then : 6407 xorg_cv_cc_flag_unused_command_line_argument=yes 6408else 6409 xorg_cv_cc_flag_unused_command_line_argument=no 6410fi 6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6412fi 6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6414$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6416 CFLAGS="$xorg_testset_save_CFLAGS" 6417fi 6418 6419found="no" 6420 6421 if test $found = "no" ; then 6422 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6424 fi 6425 6426 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6428 fi 6429 6430 CFLAGS="$CFLAGS -Wmissing-noreturn" 6431 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6433$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6434 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6435 if eval \${$cacheid+:} false; then : 6436 $as_echo_n "(cached) " >&6 6437else 6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6439/* end confdefs.h. */ 6440int i; 6441int 6442main () 6443{ 6444 6445 ; 6446 return 0; 6447} 6448_ACEOF 6449if ac_fn_c_try_link "$LINENO"; then : 6450 eval $cacheid=yes 6451else 6452 eval $cacheid=no 6453fi 6454rm -f core conftest.err conftest.$ac_objext \ 6455 conftest$ac_exeext conftest.$ac_ext 6456fi 6457 6458 6459 CFLAGS="$xorg_testset_save_CFLAGS" 6460 6461 eval supported=\$$cacheid 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6463$as_echo "$supported" >&6; } 6464 if test "$supported" = "yes" ; then 6465 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6466 found="yes" 6467 fi 6468 fi 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484xorg_testset_save_CFLAGS="$CFLAGS" 6485 6486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6491 $as_echo_n "(cached) " >&6 6492else 6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6494/* end confdefs.h. */ 6495int i; 6496_ACEOF 6497if ac_fn_c_try_compile "$LINENO"; then : 6498 xorg_cv_cc_flag_unknown_warning_option=yes 6499else 6500 xorg_cv_cc_flag_unknown_warning_option=no 6501fi 6502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6503fi 6504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6507 CFLAGS="$xorg_testset_save_CFLAGS" 6508fi 6509 6510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6513 fi 6514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6518 $as_echo_n "(cached) " >&6 6519else 6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6521/* end confdefs.h. */ 6522int i; 6523_ACEOF 6524if ac_fn_c_try_compile "$LINENO"; then : 6525 xorg_cv_cc_flag_unused_command_line_argument=yes 6526else 6527 xorg_cv_cc_flag_unused_command_line_argument=no 6528fi 6529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6530fi 6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6534 CFLAGS="$xorg_testset_save_CFLAGS" 6535fi 6536 6537found="no" 6538 6539 if test $found = "no" ; then 6540 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6542 fi 6543 6544 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6546 fi 6547 6548 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6549 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6551$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6552 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6553 if eval \${$cacheid+:} false; then : 6554 $as_echo_n "(cached) " >&6 6555else 6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6557/* end confdefs.h. */ 6558int i; 6559int 6560main () 6561{ 6562 6563 ; 6564 return 0; 6565} 6566_ACEOF 6567if ac_fn_c_try_link "$LINENO"; then : 6568 eval $cacheid=yes 6569else 6570 eval $cacheid=no 6571fi 6572rm -f core conftest.err conftest.$ac_objext \ 6573 conftest$ac_exeext conftest.$ac_ext 6574fi 6575 6576 6577 CFLAGS="$xorg_testset_save_CFLAGS" 6578 6579 eval supported=\$$cacheid 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6581$as_echo "$supported" >&6; } 6582 if test "$supported" = "yes" ; then 6583 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6584 found="yes" 6585 fi 6586 fi 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602xorg_testset_save_CFLAGS="$CFLAGS" 6603 6604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6609 $as_echo_n "(cached) " >&6 6610else 6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612/* end confdefs.h. */ 6613int i; 6614_ACEOF 6615if ac_fn_c_try_compile "$LINENO"; then : 6616 xorg_cv_cc_flag_unknown_warning_option=yes 6617else 6618 xorg_cv_cc_flag_unknown_warning_option=no 6619fi 6620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6621fi 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6625 CFLAGS="$xorg_testset_save_CFLAGS" 6626fi 6627 6628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6631 fi 6632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6636 $as_echo_n "(cached) " >&6 6637else 6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6639/* end confdefs.h. */ 6640int i; 6641_ACEOF 6642if ac_fn_c_try_compile "$LINENO"; then : 6643 xorg_cv_cc_flag_unused_command_line_argument=yes 6644else 6645 xorg_cv_cc_flag_unused_command_line_argument=no 6646fi 6647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6648fi 6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6652 CFLAGS="$xorg_testset_save_CFLAGS" 6653fi 6654 6655found="no" 6656 6657 if test $found = "no" ; then 6658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6660 fi 6661 6662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6664 fi 6665 6666 CFLAGS="$CFLAGS -Wredundant-decls" 6667 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6669$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6670 cacheid=xorg_cv_cc_flag__Wredundant_decls 6671 if eval \${$cacheid+:} false; then : 6672 $as_echo_n "(cached) " >&6 6673else 6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6675/* end confdefs.h. */ 6676int i; 6677int 6678main () 6679{ 6680 6681 ; 6682 return 0; 6683} 6684_ACEOF 6685if ac_fn_c_try_link "$LINENO"; then : 6686 eval $cacheid=yes 6687else 6688 eval $cacheid=no 6689fi 6690rm -f core conftest.err conftest.$ac_objext \ 6691 conftest$ac_exeext conftest.$ac_ext 6692fi 6693 6694 6695 CFLAGS="$xorg_testset_save_CFLAGS" 6696 6697 eval supported=\$$cacheid 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6699$as_echo "$supported" >&6; } 6700 if test "$supported" = "yes" ; then 6701 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6702 found="yes" 6703 fi 6704 fi 6705 6706 6707 6708# These are currently disabled because they are noisy. They will be enabled 6709# in the future once the codebase is sufficiently modernized to silence 6710# them. For now, I don't want them to drown out the other warnings. 6711# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6712# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6713# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6714 6715# Turn some warnings into errors, so we don't accidently get successful builds 6716# when there are problems that should be fixed. 6717 6718if test "x$SELECTIVE_WERROR" = "xyes" ; then 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732xorg_testset_save_CFLAGS="$CFLAGS" 6733 6734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6739 $as_echo_n "(cached) " >&6 6740else 6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6742/* end confdefs.h. */ 6743int i; 6744_ACEOF 6745if ac_fn_c_try_compile "$LINENO"; then : 6746 xorg_cv_cc_flag_unknown_warning_option=yes 6747else 6748 xorg_cv_cc_flag_unknown_warning_option=no 6749fi 6750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6751fi 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6755 CFLAGS="$xorg_testset_save_CFLAGS" 6756fi 6757 6758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6761 fi 6762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6769/* end confdefs.h. */ 6770int i; 6771_ACEOF 6772if ac_fn_c_try_compile "$LINENO"; then : 6773 xorg_cv_cc_flag_unused_command_line_argument=yes 6774else 6775 xorg_cv_cc_flag_unused_command_line_argument=no 6776fi 6777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6778fi 6779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6782 CFLAGS="$xorg_testset_save_CFLAGS" 6783fi 6784 6785found="no" 6786 6787 if test $found = "no" ; then 6788 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6790 fi 6791 6792 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6794 fi 6795 6796 CFLAGS="$CFLAGS -Werror=implicit" 6797 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6799$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6800 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6801 if eval \${$cacheid+:} false; then : 6802 $as_echo_n "(cached) " >&6 6803else 6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6805/* end confdefs.h. */ 6806int i; 6807int 6808main () 6809{ 6810 6811 ; 6812 return 0; 6813} 6814_ACEOF 6815if ac_fn_c_try_link "$LINENO"; then : 6816 eval $cacheid=yes 6817else 6818 eval $cacheid=no 6819fi 6820rm -f core conftest.err conftest.$ac_objext \ 6821 conftest$ac_exeext conftest.$ac_ext 6822fi 6823 6824 6825 CFLAGS="$xorg_testset_save_CFLAGS" 6826 6827 eval supported=\$$cacheid 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6829$as_echo "$supported" >&6; } 6830 if test "$supported" = "yes" ; then 6831 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6832 found="yes" 6833 fi 6834 fi 6835 6836 if test $found = "no" ; then 6837 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6839 fi 6840 6841 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6843 fi 6844 6845 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6846 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6848$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6849 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6850 if eval \${$cacheid+:} false; then : 6851 $as_echo_n "(cached) " >&6 6852else 6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6854/* end confdefs.h. */ 6855int i; 6856int 6857main () 6858{ 6859 6860 ; 6861 return 0; 6862} 6863_ACEOF 6864if ac_fn_c_try_link "$LINENO"; then : 6865 eval $cacheid=yes 6866else 6867 eval $cacheid=no 6868fi 6869rm -f core conftest.err conftest.$ac_objext \ 6870 conftest$ac_exeext conftest.$ac_ext 6871fi 6872 6873 6874 CFLAGS="$xorg_testset_save_CFLAGS" 6875 6876 eval supported=\$$cacheid 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6878$as_echo "$supported" >&6; } 6879 if test "$supported" = "yes" ; then 6880 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6881 found="yes" 6882 fi 6883 fi 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899xorg_testset_save_CFLAGS="$CFLAGS" 6900 6901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6906 $as_echo_n "(cached) " >&6 6907else 6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6909/* end confdefs.h. */ 6910int i; 6911_ACEOF 6912if ac_fn_c_try_compile "$LINENO"; then : 6913 xorg_cv_cc_flag_unknown_warning_option=yes 6914else 6915 xorg_cv_cc_flag_unknown_warning_option=no 6916fi 6917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6918fi 6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6922 CFLAGS="$xorg_testset_save_CFLAGS" 6923fi 6924 6925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6928 fi 6929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6933 $as_echo_n "(cached) " >&6 6934else 6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6936/* end confdefs.h. */ 6937int i; 6938_ACEOF 6939if ac_fn_c_try_compile "$LINENO"; then : 6940 xorg_cv_cc_flag_unused_command_line_argument=yes 6941else 6942 xorg_cv_cc_flag_unused_command_line_argument=no 6943fi 6944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6945fi 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6949 CFLAGS="$xorg_testset_save_CFLAGS" 6950fi 6951 6952found="no" 6953 6954 if test $found = "no" ; then 6955 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6957 fi 6958 6959 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6961 fi 6962 6963 CFLAGS="$CFLAGS -Werror=nonnull" 6964 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6966$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6967 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6968 if eval \${$cacheid+:} false; then : 6969 $as_echo_n "(cached) " >&6 6970else 6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6972/* end confdefs.h. */ 6973int i; 6974int 6975main () 6976{ 6977 6978 ; 6979 return 0; 6980} 6981_ACEOF 6982if ac_fn_c_try_link "$LINENO"; then : 6983 eval $cacheid=yes 6984else 6985 eval $cacheid=no 6986fi 6987rm -f core conftest.err conftest.$ac_objext \ 6988 conftest$ac_exeext conftest.$ac_ext 6989fi 6990 6991 6992 CFLAGS="$xorg_testset_save_CFLAGS" 6993 6994 eval supported=\$$cacheid 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6996$as_echo "$supported" >&6; } 6997 if test "$supported" = "yes" ; then 6998 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6999 found="yes" 7000 fi 7001 fi 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017xorg_testset_save_CFLAGS="$CFLAGS" 7018 7019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7024 $as_echo_n "(cached) " >&6 7025else 7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7027/* end confdefs.h. */ 7028int i; 7029_ACEOF 7030if ac_fn_c_try_compile "$LINENO"; then : 7031 xorg_cv_cc_flag_unknown_warning_option=yes 7032else 7033 xorg_cv_cc_flag_unknown_warning_option=no 7034fi 7035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7036fi 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7040 CFLAGS="$xorg_testset_save_CFLAGS" 7041fi 7042 7043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7046 fi 7047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052else 7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7054/* end confdefs.h. */ 7055int i; 7056_ACEOF 7057if ac_fn_c_try_compile "$LINENO"; then : 7058 xorg_cv_cc_flag_unused_command_line_argument=yes 7059else 7060 xorg_cv_cc_flag_unused_command_line_argument=no 7061fi 7062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7063fi 7064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7067 CFLAGS="$xorg_testset_save_CFLAGS" 7068fi 7069 7070found="no" 7071 7072 if test $found = "no" ; then 7073 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7075 fi 7076 7077 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7079 fi 7080 7081 CFLAGS="$CFLAGS -Werror=init-self" 7082 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7084$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7085 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7086 if eval \${$cacheid+:} false; then : 7087 $as_echo_n "(cached) " >&6 7088else 7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7090/* end confdefs.h. */ 7091int i; 7092int 7093main () 7094{ 7095 7096 ; 7097 return 0; 7098} 7099_ACEOF 7100if ac_fn_c_try_link "$LINENO"; then : 7101 eval $cacheid=yes 7102else 7103 eval $cacheid=no 7104fi 7105rm -f core conftest.err conftest.$ac_objext \ 7106 conftest$ac_exeext conftest.$ac_ext 7107fi 7108 7109 7110 CFLAGS="$xorg_testset_save_CFLAGS" 7111 7112 eval supported=\$$cacheid 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7114$as_echo "$supported" >&6; } 7115 if test "$supported" = "yes" ; then 7116 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7117 found="yes" 7118 fi 7119 fi 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135xorg_testset_save_CFLAGS="$CFLAGS" 7136 7137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7142 $as_echo_n "(cached) " >&6 7143else 7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7145/* end confdefs.h. */ 7146int i; 7147_ACEOF 7148if ac_fn_c_try_compile "$LINENO"; then : 7149 xorg_cv_cc_flag_unknown_warning_option=yes 7150else 7151 xorg_cv_cc_flag_unknown_warning_option=no 7152fi 7153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7154fi 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7158 CFLAGS="$xorg_testset_save_CFLAGS" 7159fi 7160 7161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7164 fi 7165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7169 $as_echo_n "(cached) " >&6 7170else 7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7172/* end confdefs.h. */ 7173int i; 7174_ACEOF 7175if ac_fn_c_try_compile "$LINENO"; then : 7176 xorg_cv_cc_flag_unused_command_line_argument=yes 7177else 7178 xorg_cv_cc_flag_unused_command_line_argument=no 7179fi 7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7181fi 7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7185 CFLAGS="$xorg_testset_save_CFLAGS" 7186fi 7187 7188found="no" 7189 7190 if test $found = "no" ; then 7191 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7193 fi 7194 7195 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7197 fi 7198 7199 CFLAGS="$CFLAGS -Werror=main" 7200 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7202$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7203 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7204 if eval \${$cacheid+:} false; then : 7205 $as_echo_n "(cached) " >&6 7206else 7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7208/* end confdefs.h. */ 7209int i; 7210int 7211main () 7212{ 7213 7214 ; 7215 return 0; 7216} 7217_ACEOF 7218if ac_fn_c_try_link "$LINENO"; then : 7219 eval $cacheid=yes 7220else 7221 eval $cacheid=no 7222fi 7223rm -f core conftest.err conftest.$ac_objext \ 7224 conftest$ac_exeext conftest.$ac_ext 7225fi 7226 7227 7228 CFLAGS="$xorg_testset_save_CFLAGS" 7229 7230 eval supported=\$$cacheid 7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7232$as_echo "$supported" >&6; } 7233 if test "$supported" = "yes" ; then 7234 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7235 found="yes" 7236 fi 7237 fi 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253xorg_testset_save_CFLAGS="$CFLAGS" 7254 7255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7258$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7259if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7260 $as_echo_n "(cached) " >&6 7261else 7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7263/* end confdefs.h. */ 7264int i; 7265_ACEOF 7266if ac_fn_c_try_compile "$LINENO"; then : 7267 xorg_cv_cc_flag_unknown_warning_option=yes 7268else 7269 xorg_cv_cc_flag_unknown_warning_option=no 7270fi 7271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7272fi 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7274$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7276 CFLAGS="$xorg_testset_save_CFLAGS" 7277fi 7278 7279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7282 fi 7283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7285$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7286if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7287 $as_echo_n "(cached) " >&6 7288else 7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7290/* end confdefs.h. */ 7291int i; 7292_ACEOF 7293if ac_fn_c_try_compile "$LINENO"; then : 7294 xorg_cv_cc_flag_unused_command_line_argument=yes 7295else 7296 xorg_cv_cc_flag_unused_command_line_argument=no 7297fi 7298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7299fi 7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7301$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7303 CFLAGS="$xorg_testset_save_CFLAGS" 7304fi 7305 7306found="no" 7307 7308 if test $found = "no" ; then 7309 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7311 fi 7312 7313 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7315 fi 7316 7317 CFLAGS="$CFLAGS -Werror=missing-braces" 7318 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7320$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7321 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7322 if eval \${$cacheid+:} false; then : 7323 $as_echo_n "(cached) " >&6 7324else 7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7326/* end confdefs.h. */ 7327int i; 7328int 7329main () 7330{ 7331 7332 ; 7333 return 0; 7334} 7335_ACEOF 7336if ac_fn_c_try_link "$LINENO"; then : 7337 eval $cacheid=yes 7338else 7339 eval $cacheid=no 7340fi 7341rm -f core conftest.err conftest.$ac_objext \ 7342 conftest$ac_exeext conftest.$ac_ext 7343fi 7344 7345 7346 CFLAGS="$xorg_testset_save_CFLAGS" 7347 7348 eval supported=\$$cacheid 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7350$as_echo "$supported" >&6; } 7351 if test "$supported" = "yes" ; then 7352 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7353 found="yes" 7354 fi 7355 fi 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371xorg_testset_save_CFLAGS="$CFLAGS" 7372 7373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7376$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7377if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7378 $as_echo_n "(cached) " >&6 7379else 7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7381/* end confdefs.h. */ 7382int i; 7383_ACEOF 7384if ac_fn_c_try_compile "$LINENO"; then : 7385 xorg_cv_cc_flag_unknown_warning_option=yes 7386else 7387 xorg_cv_cc_flag_unknown_warning_option=no 7388fi 7389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7390fi 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7392$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7394 CFLAGS="$xorg_testset_save_CFLAGS" 7395fi 7396 7397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7400 fi 7401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7404if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7405 $as_echo_n "(cached) " >&6 7406else 7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7408/* end confdefs.h. */ 7409int i; 7410_ACEOF 7411if ac_fn_c_try_compile "$LINENO"; then : 7412 xorg_cv_cc_flag_unused_command_line_argument=yes 7413else 7414 xorg_cv_cc_flag_unused_command_line_argument=no 7415fi 7416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7417fi 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7419$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7421 CFLAGS="$xorg_testset_save_CFLAGS" 7422fi 7423 7424found="no" 7425 7426 if test $found = "no" ; then 7427 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7429 fi 7430 7431 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7433 fi 7434 7435 CFLAGS="$CFLAGS -Werror=sequence-point" 7436 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7438$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7439 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7440 if eval \${$cacheid+:} false; then : 7441 $as_echo_n "(cached) " >&6 7442else 7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7444/* end confdefs.h. */ 7445int i; 7446int 7447main () 7448{ 7449 7450 ; 7451 return 0; 7452} 7453_ACEOF 7454if ac_fn_c_try_link "$LINENO"; then : 7455 eval $cacheid=yes 7456else 7457 eval $cacheid=no 7458fi 7459rm -f core conftest.err conftest.$ac_objext \ 7460 conftest$ac_exeext conftest.$ac_ext 7461fi 7462 7463 7464 CFLAGS="$xorg_testset_save_CFLAGS" 7465 7466 eval supported=\$$cacheid 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7468$as_echo "$supported" >&6; } 7469 if test "$supported" = "yes" ; then 7470 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7471 found="yes" 7472 fi 7473 fi 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489xorg_testset_save_CFLAGS="$CFLAGS" 7490 7491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7496 $as_echo_n "(cached) " >&6 7497else 7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7499/* end confdefs.h. */ 7500int i; 7501_ACEOF 7502if ac_fn_c_try_compile "$LINENO"; then : 7503 xorg_cv_cc_flag_unknown_warning_option=yes 7504else 7505 xorg_cv_cc_flag_unknown_warning_option=no 7506fi 7507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7508fi 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7512 CFLAGS="$xorg_testset_save_CFLAGS" 7513fi 7514 7515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7518 fi 7519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7523 $as_echo_n "(cached) " >&6 7524else 7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7526/* end confdefs.h. */ 7527int i; 7528_ACEOF 7529if ac_fn_c_try_compile "$LINENO"; then : 7530 xorg_cv_cc_flag_unused_command_line_argument=yes 7531else 7532 xorg_cv_cc_flag_unused_command_line_argument=no 7533fi 7534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7535fi 7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7539 CFLAGS="$xorg_testset_save_CFLAGS" 7540fi 7541 7542found="no" 7543 7544 if test $found = "no" ; then 7545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7547 fi 7548 7549 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7551 fi 7552 7553 CFLAGS="$CFLAGS -Werror=return-type" 7554 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7556$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7557 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7558 if eval \${$cacheid+:} false; then : 7559 $as_echo_n "(cached) " >&6 7560else 7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7562/* end confdefs.h. */ 7563int i; 7564int 7565main () 7566{ 7567 7568 ; 7569 return 0; 7570} 7571_ACEOF 7572if ac_fn_c_try_link "$LINENO"; then : 7573 eval $cacheid=yes 7574else 7575 eval $cacheid=no 7576fi 7577rm -f core conftest.err conftest.$ac_objext \ 7578 conftest$ac_exeext conftest.$ac_ext 7579fi 7580 7581 7582 CFLAGS="$xorg_testset_save_CFLAGS" 7583 7584 eval supported=\$$cacheid 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7586$as_echo "$supported" >&6; } 7587 if test "$supported" = "yes" ; then 7588 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7589 found="yes" 7590 fi 7591 fi 7592 7593 if test $found = "no" ; then 7594 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7596 fi 7597 7598 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7600 fi 7601 7602 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7603 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7605$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7606 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7607 if eval \${$cacheid+:} false; then : 7608 $as_echo_n "(cached) " >&6 7609else 7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7611/* end confdefs.h. */ 7612int i; 7613int 7614main () 7615{ 7616 7617 ; 7618 return 0; 7619} 7620_ACEOF 7621if ac_fn_c_try_link "$LINENO"; then : 7622 eval $cacheid=yes 7623else 7624 eval $cacheid=no 7625fi 7626rm -f core conftest.err conftest.$ac_objext \ 7627 conftest$ac_exeext conftest.$ac_ext 7628fi 7629 7630 7631 CFLAGS="$xorg_testset_save_CFLAGS" 7632 7633 eval supported=\$$cacheid 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7635$as_echo "$supported" >&6; } 7636 if test "$supported" = "yes" ; then 7637 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7638 found="yes" 7639 fi 7640 fi 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656xorg_testset_save_CFLAGS="$CFLAGS" 7657 7658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7661$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7662if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7663 $as_echo_n "(cached) " >&6 7664else 7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7666/* end confdefs.h. */ 7667int i; 7668_ACEOF 7669if ac_fn_c_try_compile "$LINENO"; then : 7670 xorg_cv_cc_flag_unknown_warning_option=yes 7671else 7672 xorg_cv_cc_flag_unknown_warning_option=no 7673fi 7674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7675fi 7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7677$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7679 CFLAGS="$xorg_testset_save_CFLAGS" 7680fi 7681 7682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7685 fi 7686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7688$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7689if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7690 $as_echo_n "(cached) " >&6 7691else 7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7693/* end confdefs.h. */ 7694int i; 7695_ACEOF 7696if ac_fn_c_try_compile "$LINENO"; then : 7697 xorg_cv_cc_flag_unused_command_line_argument=yes 7698else 7699 xorg_cv_cc_flag_unused_command_line_argument=no 7700fi 7701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7702fi 7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7704$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7706 CFLAGS="$xorg_testset_save_CFLAGS" 7707fi 7708 7709found="no" 7710 7711 if test $found = "no" ; then 7712 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7714 fi 7715 7716 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7718 fi 7719 7720 CFLAGS="$CFLAGS -Werror=trigraphs" 7721 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7723$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7724 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7725 if eval \${$cacheid+:} false; then : 7726 $as_echo_n "(cached) " >&6 7727else 7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7729/* end confdefs.h. */ 7730int i; 7731int 7732main () 7733{ 7734 7735 ; 7736 return 0; 7737} 7738_ACEOF 7739if ac_fn_c_try_link "$LINENO"; then : 7740 eval $cacheid=yes 7741else 7742 eval $cacheid=no 7743fi 7744rm -f core conftest.err conftest.$ac_objext \ 7745 conftest$ac_exeext conftest.$ac_ext 7746fi 7747 7748 7749 CFLAGS="$xorg_testset_save_CFLAGS" 7750 7751 eval supported=\$$cacheid 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7753$as_echo "$supported" >&6; } 7754 if test "$supported" = "yes" ; then 7755 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7756 found="yes" 7757 fi 7758 fi 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774xorg_testset_save_CFLAGS="$CFLAGS" 7775 7776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7779$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7780if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7781 $as_echo_n "(cached) " >&6 7782else 7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7784/* end confdefs.h. */ 7785int i; 7786_ACEOF 7787if ac_fn_c_try_compile "$LINENO"; then : 7788 xorg_cv_cc_flag_unknown_warning_option=yes 7789else 7790 xorg_cv_cc_flag_unknown_warning_option=no 7791fi 7792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7793fi 7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7795$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7797 CFLAGS="$xorg_testset_save_CFLAGS" 7798fi 7799 7800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7803 fi 7804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7806$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7807if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7808 $as_echo_n "(cached) " >&6 7809else 7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7811/* end confdefs.h. */ 7812int i; 7813_ACEOF 7814if ac_fn_c_try_compile "$LINENO"; then : 7815 xorg_cv_cc_flag_unused_command_line_argument=yes 7816else 7817 xorg_cv_cc_flag_unused_command_line_argument=no 7818fi 7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7820fi 7821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7822$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7824 CFLAGS="$xorg_testset_save_CFLAGS" 7825fi 7826 7827found="no" 7828 7829 if test $found = "no" ; then 7830 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7832 fi 7833 7834 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7836 fi 7837 7838 CFLAGS="$CFLAGS -Werror=array-bounds" 7839 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7841$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7842 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7843 if eval \${$cacheid+:} false; then : 7844 $as_echo_n "(cached) " >&6 7845else 7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7847/* end confdefs.h. */ 7848int i; 7849int 7850main () 7851{ 7852 7853 ; 7854 return 0; 7855} 7856_ACEOF 7857if ac_fn_c_try_link "$LINENO"; then : 7858 eval $cacheid=yes 7859else 7860 eval $cacheid=no 7861fi 7862rm -f core conftest.err conftest.$ac_objext \ 7863 conftest$ac_exeext conftest.$ac_ext 7864fi 7865 7866 7867 CFLAGS="$xorg_testset_save_CFLAGS" 7868 7869 eval supported=\$$cacheid 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7871$as_echo "$supported" >&6; } 7872 if test "$supported" = "yes" ; then 7873 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7874 found="yes" 7875 fi 7876 fi 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892xorg_testset_save_CFLAGS="$CFLAGS" 7893 7894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7897$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7898if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7899 $as_echo_n "(cached) " >&6 7900else 7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7902/* end confdefs.h. */ 7903int i; 7904_ACEOF 7905if ac_fn_c_try_compile "$LINENO"; then : 7906 xorg_cv_cc_flag_unknown_warning_option=yes 7907else 7908 xorg_cv_cc_flag_unknown_warning_option=no 7909fi 7910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7911fi 7912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7913$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7915 CFLAGS="$xorg_testset_save_CFLAGS" 7916fi 7917 7918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7921 fi 7922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7924$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7925if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7926 $as_echo_n "(cached) " >&6 7927else 7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7929/* end confdefs.h. */ 7930int i; 7931_ACEOF 7932if ac_fn_c_try_compile "$LINENO"; then : 7933 xorg_cv_cc_flag_unused_command_line_argument=yes 7934else 7935 xorg_cv_cc_flag_unused_command_line_argument=no 7936fi 7937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7938fi 7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7940$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7942 CFLAGS="$xorg_testset_save_CFLAGS" 7943fi 7944 7945found="no" 7946 7947 if test $found = "no" ; then 7948 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7950 fi 7951 7952 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7954 fi 7955 7956 CFLAGS="$CFLAGS -Werror=write-strings" 7957 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7959$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7960 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7961 if eval \${$cacheid+:} false; then : 7962 $as_echo_n "(cached) " >&6 7963else 7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7965/* end confdefs.h. */ 7966int i; 7967int 7968main () 7969{ 7970 7971 ; 7972 return 0; 7973} 7974_ACEOF 7975if ac_fn_c_try_link "$LINENO"; then : 7976 eval $cacheid=yes 7977else 7978 eval $cacheid=no 7979fi 7980rm -f core conftest.err conftest.$ac_objext \ 7981 conftest$ac_exeext conftest.$ac_ext 7982fi 7983 7984 7985 CFLAGS="$xorg_testset_save_CFLAGS" 7986 7987 eval supported=\$$cacheid 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7989$as_echo "$supported" >&6; } 7990 if test "$supported" = "yes" ; then 7991 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7992 found="yes" 7993 fi 7994 fi 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010xorg_testset_save_CFLAGS="$CFLAGS" 8011 8012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8015$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8016if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8017 $as_echo_n "(cached) " >&6 8018else 8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8020/* end confdefs.h. */ 8021int i; 8022_ACEOF 8023if ac_fn_c_try_compile "$LINENO"; then : 8024 xorg_cv_cc_flag_unknown_warning_option=yes 8025else 8026 xorg_cv_cc_flag_unknown_warning_option=no 8027fi 8028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8029fi 8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8031$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8033 CFLAGS="$xorg_testset_save_CFLAGS" 8034fi 8035 8036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8039 fi 8040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8042$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8043if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8044 $as_echo_n "(cached) " >&6 8045else 8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8047/* end confdefs.h. */ 8048int i; 8049_ACEOF 8050if ac_fn_c_try_compile "$LINENO"; then : 8051 xorg_cv_cc_flag_unused_command_line_argument=yes 8052else 8053 xorg_cv_cc_flag_unused_command_line_argument=no 8054fi 8055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8056fi 8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8058$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8060 CFLAGS="$xorg_testset_save_CFLAGS" 8061fi 8062 8063found="no" 8064 8065 if test $found = "no" ; then 8066 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8068 fi 8069 8070 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8072 fi 8073 8074 CFLAGS="$CFLAGS -Werror=address" 8075 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8077$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8078 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8079 if eval \${$cacheid+:} false; then : 8080 $as_echo_n "(cached) " >&6 8081else 8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8083/* end confdefs.h. */ 8084int i; 8085int 8086main () 8087{ 8088 8089 ; 8090 return 0; 8091} 8092_ACEOF 8093if ac_fn_c_try_link "$LINENO"; then : 8094 eval $cacheid=yes 8095else 8096 eval $cacheid=no 8097fi 8098rm -f core conftest.err conftest.$ac_objext \ 8099 conftest$ac_exeext conftest.$ac_ext 8100fi 8101 8102 8103 CFLAGS="$xorg_testset_save_CFLAGS" 8104 8105 eval supported=\$$cacheid 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8107$as_echo "$supported" >&6; } 8108 if test "$supported" = "yes" ; then 8109 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8110 found="yes" 8111 fi 8112 fi 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128xorg_testset_save_CFLAGS="$CFLAGS" 8129 8130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8133$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8134if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8135 $as_echo_n "(cached) " >&6 8136else 8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8138/* end confdefs.h. */ 8139int i; 8140_ACEOF 8141if ac_fn_c_try_compile "$LINENO"; then : 8142 xorg_cv_cc_flag_unknown_warning_option=yes 8143else 8144 xorg_cv_cc_flag_unknown_warning_option=no 8145fi 8146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8147fi 8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8149$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8151 CFLAGS="$xorg_testset_save_CFLAGS" 8152fi 8153 8154if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8157 fi 8158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8160$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8161if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8162 $as_echo_n "(cached) " >&6 8163else 8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8165/* end confdefs.h. */ 8166int i; 8167_ACEOF 8168if ac_fn_c_try_compile "$LINENO"; then : 8169 xorg_cv_cc_flag_unused_command_line_argument=yes 8170else 8171 xorg_cv_cc_flag_unused_command_line_argument=no 8172fi 8173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8174fi 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8176$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8178 CFLAGS="$xorg_testset_save_CFLAGS" 8179fi 8180 8181found="no" 8182 8183 if test $found = "no" ; then 8184 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8186 fi 8187 8188 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8190 fi 8191 8192 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8193 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8195$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8196 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8197 if eval \${$cacheid+:} false; then : 8198 $as_echo_n "(cached) " >&6 8199else 8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8201/* end confdefs.h. */ 8202int i; 8203int 8204main () 8205{ 8206 8207 ; 8208 return 0; 8209} 8210_ACEOF 8211if ac_fn_c_try_link "$LINENO"; then : 8212 eval $cacheid=yes 8213else 8214 eval $cacheid=no 8215fi 8216rm -f core conftest.err conftest.$ac_objext \ 8217 conftest$ac_exeext conftest.$ac_ext 8218fi 8219 8220 8221 CFLAGS="$xorg_testset_save_CFLAGS" 8222 8223 eval supported=\$$cacheid 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8225$as_echo "$supported" >&6; } 8226 if test "$supported" = "yes" ; then 8227 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8228 found="yes" 8229 fi 8230 fi 8231 8232 if test $found = "no" ; then 8233 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8235 fi 8236 8237 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8239 fi 8240 8241 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8242 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8244$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8245 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8246 if eval \${$cacheid+:} false; then : 8247 $as_echo_n "(cached) " >&6 8248else 8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8250/* end confdefs.h. */ 8251int i; 8252int 8253main () 8254{ 8255 8256 ; 8257 return 0; 8258} 8259_ACEOF 8260if ac_fn_c_try_link "$LINENO"; then : 8261 eval $cacheid=yes 8262else 8263 eval $cacheid=no 8264fi 8265rm -f core conftest.err conftest.$ac_objext \ 8266 conftest$ac_exeext conftest.$ac_ext 8267fi 8268 8269 8270 CFLAGS="$xorg_testset_save_CFLAGS" 8271 8272 eval supported=\$$cacheid 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8274$as_echo "$supported" >&6; } 8275 if test "$supported" = "yes" ; then 8276 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8277 found="yes" 8278 fi 8279 fi 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295xorg_testset_save_CFLAGS="$CFLAGS" 8296 8297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8302 $as_echo_n "(cached) " >&6 8303else 8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8305/* end confdefs.h. */ 8306int i; 8307_ACEOF 8308if ac_fn_c_try_compile "$LINENO"; then : 8309 xorg_cv_cc_flag_unknown_warning_option=yes 8310else 8311 xorg_cv_cc_flag_unknown_warning_option=no 8312fi 8313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8314fi 8315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8318 CFLAGS="$xorg_testset_save_CFLAGS" 8319fi 8320 8321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8324 fi 8325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8329 $as_echo_n "(cached) " >&6 8330else 8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332/* end confdefs.h. */ 8333int i; 8334_ACEOF 8335if ac_fn_c_try_compile "$LINENO"; then : 8336 xorg_cv_cc_flag_unused_command_line_argument=yes 8337else 8338 xorg_cv_cc_flag_unused_command_line_argument=no 8339fi 8340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8341fi 8342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8345 CFLAGS="$xorg_testset_save_CFLAGS" 8346fi 8347 8348found="no" 8349 8350 if test $found = "no" ; then 8351 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8353 fi 8354 8355 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8357 fi 8358 8359 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8360 8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8362$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8363 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8364 if eval \${$cacheid+:} false; then : 8365 $as_echo_n "(cached) " >&6 8366else 8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8368/* end confdefs.h. */ 8369int i; 8370int 8371main () 8372{ 8373 8374 ; 8375 return 0; 8376} 8377_ACEOF 8378if ac_fn_c_try_link "$LINENO"; then : 8379 eval $cacheid=yes 8380else 8381 eval $cacheid=no 8382fi 8383rm -f core conftest.err conftest.$ac_objext \ 8384 conftest$ac_exeext conftest.$ac_ext 8385fi 8386 8387 8388 CFLAGS="$xorg_testset_save_CFLAGS" 8389 8390 eval supported=\$$cacheid 8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8392$as_echo "$supported" >&6; } 8393 if test "$supported" = "yes" ; then 8394 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8395 found="yes" 8396 fi 8397 fi 8398 8399 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8400else 8401{ $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 8402$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;} 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416xorg_testset_save_CFLAGS="$CFLAGS" 8417 8418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8423 $as_echo_n "(cached) " >&6 8424else 8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8426/* end confdefs.h. */ 8427int i; 8428_ACEOF 8429if ac_fn_c_try_compile "$LINENO"; then : 8430 xorg_cv_cc_flag_unknown_warning_option=yes 8431else 8432 xorg_cv_cc_flag_unknown_warning_option=no 8433fi 8434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8435fi 8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8439 CFLAGS="$xorg_testset_save_CFLAGS" 8440fi 8441 8442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8445 fi 8446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8450 $as_echo_n "(cached) " >&6 8451else 8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8453/* end confdefs.h. */ 8454int i; 8455_ACEOF 8456if ac_fn_c_try_compile "$LINENO"; then : 8457 xorg_cv_cc_flag_unused_command_line_argument=yes 8458else 8459 xorg_cv_cc_flag_unused_command_line_argument=no 8460fi 8461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8462fi 8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8466 CFLAGS="$xorg_testset_save_CFLAGS" 8467fi 8468 8469found="no" 8470 8471 if test $found = "no" ; then 8472 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8474 fi 8475 8476 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8478 fi 8479 8480 CFLAGS="$CFLAGS -Wimplicit" 8481 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8483$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8484 cacheid=xorg_cv_cc_flag__Wimplicit 8485 if eval \${$cacheid+:} false; then : 8486 $as_echo_n "(cached) " >&6 8487else 8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8489/* end confdefs.h. */ 8490int i; 8491int 8492main () 8493{ 8494 8495 ; 8496 return 0; 8497} 8498_ACEOF 8499if ac_fn_c_try_link "$LINENO"; then : 8500 eval $cacheid=yes 8501else 8502 eval $cacheid=no 8503fi 8504rm -f core conftest.err conftest.$ac_objext \ 8505 conftest$ac_exeext conftest.$ac_ext 8506fi 8507 8508 8509 CFLAGS="$xorg_testset_save_CFLAGS" 8510 8511 eval supported=\$$cacheid 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8513$as_echo "$supported" >&6; } 8514 if test "$supported" = "yes" ; then 8515 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8516 found="yes" 8517 fi 8518 fi 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534xorg_testset_save_CFLAGS="$CFLAGS" 8535 8536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8541 $as_echo_n "(cached) " >&6 8542else 8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544/* end confdefs.h. */ 8545int i; 8546_ACEOF 8547if ac_fn_c_try_compile "$LINENO"; then : 8548 xorg_cv_cc_flag_unknown_warning_option=yes 8549else 8550 xorg_cv_cc_flag_unknown_warning_option=no 8551fi 8552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8553fi 8554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8557 CFLAGS="$xorg_testset_save_CFLAGS" 8558fi 8559 8560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8563 fi 8564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8568 $as_echo_n "(cached) " >&6 8569else 8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8571/* end confdefs.h. */ 8572int i; 8573_ACEOF 8574if ac_fn_c_try_compile "$LINENO"; then : 8575 xorg_cv_cc_flag_unused_command_line_argument=yes 8576else 8577 xorg_cv_cc_flag_unused_command_line_argument=no 8578fi 8579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8580fi 8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8584 CFLAGS="$xorg_testset_save_CFLAGS" 8585fi 8586 8587found="no" 8588 8589 if test $found = "no" ; then 8590 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8592 fi 8593 8594 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8596 fi 8597 8598 CFLAGS="$CFLAGS -Wnonnull" 8599 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8601$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8602 cacheid=xorg_cv_cc_flag__Wnonnull 8603 if eval \${$cacheid+:} false; then : 8604 $as_echo_n "(cached) " >&6 8605else 8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8607/* end confdefs.h. */ 8608int i; 8609int 8610main () 8611{ 8612 8613 ; 8614 return 0; 8615} 8616_ACEOF 8617if ac_fn_c_try_link "$LINENO"; then : 8618 eval $cacheid=yes 8619else 8620 eval $cacheid=no 8621fi 8622rm -f core conftest.err conftest.$ac_objext \ 8623 conftest$ac_exeext conftest.$ac_ext 8624fi 8625 8626 8627 CFLAGS="$xorg_testset_save_CFLAGS" 8628 8629 eval supported=\$$cacheid 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8631$as_echo "$supported" >&6; } 8632 if test "$supported" = "yes" ; then 8633 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8634 found="yes" 8635 fi 8636 fi 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652xorg_testset_save_CFLAGS="$CFLAGS" 8653 8654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8659 $as_echo_n "(cached) " >&6 8660else 8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8662/* end confdefs.h. */ 8663int i; 8664_ACEOF 8665if ac_fn_c_try_compile "$LINENO"; then : 8666 xorg_cv_cc_flag_unknown_warning_option=yes 8667else 8668 xorg_cv_cc_flag_unknown_warning_option=no 8669fi 8670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8671fi 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8675 CFLAGS="$xorg_testset_save_CFLAGS" 8676fi 8677 8678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8681 fi 8682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8686 $as_echo_n "(cached) " >&6 8687else 8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8689/* end confdefs.h. */ 8690int i; 8691_ACEOF 8692if ac_fn_c_try_compile "$LINENO"; then : 8693 xorg_cv_cc_flag_unused_command_line_argument=yes 8694else 8695 xorg_cv_cc_flag_unused_command_line_argument=no 8696fi 8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8698fi 8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8702 CFLAGS="$xorg_testset_save_CFLAGS" 8703fi 8704 8705found="no" 8706 8707 if test $found = "no" ; then 8708 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8710 fi 8711 8712 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8714 fi 8715 8716 CFLAGS="$CFLAGS -Winit-self" 8717 8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8719$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8720 cacheid=xorg_cv_cc_flag__Winit_self 8721 if eval \${$cacheid+:} false; then : 8722 $as_echo_n "(cached) " >&6 8723else 8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8725/* end confdefs.h. */ 8726int i; 8727int 8728main () 8729{ 8730 8731 ; 8732 return 0; 8733} 8734_ACEOF 8735if ac_fn_c_try_link "$LINENO"; then : 8736 eval $cacheid=yes 8737else 8738 eval $cacheid=no 8739fi 8740rm -f core conftest.err conftest.$ac_objext \ 8741 conftest$ac_exeext conftest.$ac_ext 8742fi 8743 8744 8745 CFLAGS="$xorg_testset_save_CFLAGS" 8746 8747 eval supported=\$$cacheid 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8749$as_echo "$supported" >&6; } 8750 if test "$supported" = "yes" ; then 8751 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8752 found="yes" 8753 fi 8754 fi 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770xorg_testset_save_CFLAGS="$CFLAGS" 8771 8772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8777 $as_echo_n "(cached) " >&6 8778else 8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8780/* end confdefs.h. */ 8781int i; 8782_ACEOF 8783if ac_fn_c_try_compile "$LINENO"; then : 8784 xorg_cv_cc_flag_unknown_warning_option=yes 8785else 8786 xorg_cv_cc_flag_unknown_warning_option=no 8787fi 8788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8789fi 8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8793 CFLAGS="$xorg_testset_save_CFLAGS" 8794fi 8795 8796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8799 fi 8800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8804 $as_echo_n "(cached) " >&6 8805else 8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8807/* end confdefs.h. */ 8808int i; 8809_ACEOF 8810if ac_fn_c_try_compile "$LINENO"; then : 8811 xorg_cv_cc_flag_unused_command_line_argument=yes 8812else 8813 xorg_cv_cc_flag_unused_command_line_argument=no 8814fi 8815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8816fi 8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8820 CFLAGS="$xorg_testset_save_CFLAGS" 8821fi 8822 8823found="no" 8824 8825 if test $found = "no" ; then 8826 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8828 fi 8829 8830 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8832 fi 8833 8834 CFLAGS="$CFLAGS -Wmain" 8835 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8837$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8838 cacheid=xorg_cv_cc_flag__Wmain 8839 if eval \${$cacheid+:} false; then : 8840 $as_echo_n "(cached) " >&6 8841else 8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8843/* end confdefs.h. */ 8844int i; 8845int 8846main () 8847{ 8848 8849 ; 8850 return 0; 8851} 8852_ACEOF 8853if ac_fn_c_try_link "$LINENO"; then : 8854 eval $cacheid=yes 8855else 8856 eval $cacheid=no 8857fi 8858rm -f core conftest.err conftest.$ac_objext \ 8859 conftest$ac_exeext conftest.$ac_ext 8860fi 8861 8862 8863 CFLAGS="$xorg_testset_save_CFLAGS" 8864 8865 eval supported=\$$cacheid 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8867$as_echo "$supported" >&6; } 8868 if test "$supported" = "yes" ; then 8869 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8870 found="yes" 8871 fi 8872 fi 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888xorg_testset_save_CFLAGS="$CFLAGS" 8889 8890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8895 $as_echo_n "(cached) " >&6 8896else 8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898/* end confdefs.h. */ 8899int i; 8900_ACEOF 8901if ac_fn_c_try_compile "$LINENO"; then : 8902 xorg_cv_cc_flag_unknown_warning_option=yes 8903else 8904 xorg_cv_cc_flag_unknown_warning_option=no 8905fi 8906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8907fi 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8911 CFLAGS="$xorg_testset_save_CFLAGS" 8912fi 8913 8914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8917 fi 8918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8922 $as_echo_n "(cached) " >&6 8923else 8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8925/* end confdefs.h. */ 8926int i; 8927_ACEOF 8928if ac_fn_c_try_compile "$LINENO"; then : 8929 xorg_cv_cc_flag_unused_command_line_argument=yes 8930else 8931 xorg_cv_cc_flag_unused_command_line_argument=no 8932fi 8933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8934fi 8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8938 CFLAGS="$xorg_testset_save_CFLAGS" 8939fi 8940 8941found="no" 8942 8943 if test $found = "no" ; then 8944 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8946 fi 8947 8948 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8950 fi 8951 8952 CFLAGS="$CFLAGS -Wmissing-braces" 8953 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8955$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8956 cacheid=xorg_cv_cc_flag__Wmissing_braces 8957 if eval \${$cacheid+:} false; then : 8958 $as_echo_n "(cached) " >&6 8959else 8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8961/* end confdefs.h. */ 8962int i; 8963int 8964main () 8965{ 8966 8967 ; 8968 return 0; 8969} 8970_ACEOF 8971if ac_fn_c_try_link "$LINENO"; then : 8972 eval $cacheid=yes 8973else 8974 eval $cacheid=no 8975fi 8976rm -f core conftest.err conftest.$ac_objext \ 8977 conftest$ac_exeext conftest.$ac_ext 8978fi 8979 8980 8981 CFLAGS="$xorg_testset_save_CFLAGS" 8982 8983 eval supported=\$$cacheid 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8985$as_echo "$supported" >&6; } 8986 if test "$supported" = "yes" ; then 8987 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8988 found="yes" 8989 fi 8990 fi 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006xorg_testset_save_CFLAGS="$CFLAGS" 9007 9008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9013 $as_echo_n "(cached) " >&6 9014else 9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9016/* end confdefs.h. */ 9017int i; 9018_ACEOF 9019if ac_fn_c_try_compile "$LINENO"; then : 9020 xorg_cv_cc_flag_unknown_warning_option=yes 9021else 9022 xorg_cv_cc_flag_unknown_warning_option=no 9023fi 9024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9025fi 9026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9029 CFLAGS="$xorg_testset_save_CFLAGS" 9030fi 9031 9032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9035 fi 9036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9040 $as_echo_n "(cached) " >&6 9041else 9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043/* end confdefs.h. */ 9044int i; 9045_ACEOF 9046if ac_fn_c_try_compile "$LINENO"; then : 9047 xorg_cv_cc_flag_unused_command_line_argument=yes 9048else 9049 xorg_cv_cc_flag_unused_command_line_argument=no 9050fi 9051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9052fi 9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9056 CFLAGS="$xorg_testset_save_CFLAGS" 9057fi 9058 9059found="no" 9060 9061 if test $found = "no" ; then 9062 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9064 fi 9065 9066 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9068 fi 9069 9070 CFLAGS="$CFLAGS -Wsequence-point" 9071 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9073$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9074 cacheid=xorg_cv_cc_flag__Wsequence_point 9075 if eval \${$cacheid+:} false; then : 9076 $as_echo_n "(cached) " >&6 9077else 9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9079/* end confdefs.h. */ 9080int i; 9081int 9082main () 9083{ 9084 9085 ; 9086 return 0; 9087} 9088_ACEOF 9089if ac_fn_c_try_link "$LINENO"; then : 9090 eval $cacheid=yes 9091else 9092 eval $cacheid=no 9093fi 9094rm -f core conftest.err conftest.$ac_objext \ 9095 conftest$ac_exeext conftest.$ac_ext 9096fi 9097 9098 9099 CFLAGS="$xorg_testset_save_CFLAGS" 9100 9101 eval supported=\$$cacheid 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9103$as_echo "$supported" >&6; } 9104 if test "$supported" = "yes" ; then 9105 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9106 found="yes" 9107 fi 9108 fi 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124xorg_testset_save_CFLAGS="$CFLAGS" 9125 9126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9131 $as_echo_n "(cached) " >&6 9132else 9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9134/* end confdefs.h. */ 9135int i; 9136_ACEOF 9137if ac_fn_c_try_compile "$LINENO"; then : 9138 xorg_cv_cc_flag_unknown_warning_option=yes 9139else 9140 xorg_cv_cc_flag_unknown_warning_option=no 9141fi 9142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9143fi 9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9147 CFLAGS="$xorg_testset_save_CFLAGS" 9148fi 9149 9150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9153 fi 9154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9158 $as_echo_n "(cached) " >&6 9159else 9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9161/* end confdefs.h. */ 9162int i; 9163_ACEOF 9164if ac_fn_c_try_compile "$LINENO"; then : 9165 xorg_cv_cc_flag_unused_command_line_argument=yes 9166else 9167 xorg_cv_cc_flag_unused_command_line_argument=no 9168fi 9169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9170fi 9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9174 CFLAGS="$xorg_testset_save_CFLAGS" 9175fi 9176 9177found="no" 9178 9179 if test $found = "no" ; then 9180 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9182 fi 9183 9184 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9186 fi 9187 9188 CFLAGS="$CFLAGS -Wreturn-type" 9189 9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9191$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9192 cacheid=xorg_cv_cc_flag__Wreturn_type 9193 if eval \${$cacheid+:} false; then : 9194 $as_echo_n "(cached) " >&6 9195else 9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9197/* end confdefs.h. */ 9198int i; 9199int 9200main () 9201{ 9202 9203 ; 9204 return 0; 9205} 9206_ACEOF 9207if ac_fn_c_try_link "$LINENO"; then : 9208 eval $cacheid=yes 9209else 9210 eval $cacheid=no 9211fi 9212rm -f core conftest.err conftest.$ac_objext \ 9213 conftest$ac_exeext conftest.$ac_ext 9214fi 9215 9216 9217 CFLAGS="$xorg_testset_save_CFLAGS" 9218 9219 eval supported=\$$cacheid 9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9221$as_echo "$supported" >&6; } 9222 if test "$supported" = "yes" ; then 9223 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9224 found="yes" 9225 fi 9226 fi 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242xorg_testset_save_CFLAGS="$CFLAGS" 9243 9244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9249 $as_echo_n "(cached) " >&6 9250else 9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9252/* end confdefs.h. */ 9253int i; 9254_ACEOF 9255if ac_fn_c_try_compile "$LINENO"; then : 9256 xorg_cv_cc_flag_unknown_warning_option=yes 9257else 9258 xorg_cv_cc_flag_unknown_warning_option=no 9259fi 9260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9261fi 9262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9265 CFLAGS="$xorg_testset_save_CFLAGS" 9266fi 9267 9268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9271 fi 9272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9276 $as_echo_n "(cached) " >&6 9277else 9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9279/* end confdefs.h. */ 9280int i; 9281_ACEOF 9282if ac_fn_c_try_compile "$LINENO"; then : 9283 xorg_cv_cc_flag_unused_command_line_argument=yes 9284else 9285 xorg_cv_cc_flag_unused_command_line_argument=no 9286fi 9287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9288fi 9289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9292 CFLAGS="$xorg_testset_save_CFLAGS" 9293fi 9294 9295found="no" 9296 9297 if test $found = "no" ; then 9298 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9300 fi 9301 9302 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9304 fi 9305 9306 CFLAGS="$CFLAGS -Wtrigraphs" 9307 9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9309$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9310 cacheid=xorg_cv_cc_flag__Wtrigraphs 9311 if eval \${$cacheid+:} false; then : 9312 $as_echo_n "(cached) " >&6 9313else 9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9315/* end confdefs.h. */ 9316int i; 9317int 9318main () 9319{ 9320 9321 ; 9322 return 0; 9323} 9324_ACEOF 9325if ac_fn_c_try_link "$LINENO"; then : 9326 eval $cacheid=yes 9327else 9328 eval $cacheid=no 9329fi 9330rm -f core conftest.err conftest.$ac_objext \ 9331 conftest$ac_exeext conftest.$ac_ext 9332fi 9333 9334 9335 CFLAGS="$xorg_testset_save_CFLAGS" 9336 9337 eval supported=\$$cacheid 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9339$as_echo "$supported" >&6; } 9340 if test "$supported" = "yes" ; then 9341 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9342 found="yes" 9343 fi 9344 fi 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360xorg_testset_save_CFLAGS="$CFLAGS" 9361 9362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9367 $as_echo_n "(cached) " >&6 9368else 9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9370/* end confdefs.h. */ 9371int i; 9372_ACEOF 9373if ac_fn_c_try_compile "$LINENO"; then : 9374 xorg_cv_cc_flag_unknown_warning_option=yes 9375else 9376 xorg_cv_cc_flag_unknown_warning_option=no 9377fi 9378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9379fi 9380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9383 CFLAGS="$xorg_testset_save_CFLAGS" 9384fi 9385 9386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9389 fi 9390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9394 $as_echo_n "(cached) " >&6 9395else 9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9397/* end confdefs.h. */ 9398int i; 9399_ACEOF 9400if ac_fn_c_try_compile "$LINENO"; then : 9401 xorg_cv_cc_flag_unused_command_line_argument=yes 9402else 9403 xorg_cv_cc_flag_unused_command_line_argument=no 9404fi 9405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9406fi 9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9410 CFLAGS="$xorg_testset_save_CFLAGS" 9411fi 9412 9413found="no" 9414 9415 if test $found = "no" ; then 9416 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9418 fi 9419 9420 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9422 fi 9423 9424 CFLAGS="$CFLAGS -Warray-bounds" 9425 9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9427$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9428 cacheid=xorg_cv_cc_flag__Warray_bounds 9429 if eval \${$cacheid+:} false; then : 9430 $as_echo_n "(cached) " >&6 9431else 9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9433/* end confdefs.h. */ 9434int i; 9435int 9436main () 9437{ 9438 9439 ; 9440 return 0; 9441} 9442_ACEOF 9443if ac_fn_c_try_link "$LINENO"; then : 9444 eval $cacheid=yes 9445else 9446 eval $cacheid=no 9447fi 9448rm -f core conftest.err conftest.$ac_objext \ 9449 conftest$ac_exeext conftest.$ac_ext 9450fi 9451 9452 9453 CFLAGS="$xorg_testset_save_CFLAGS" 9454 9455 eval supported=\$$cacheid 9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9457$as_echo "$supported" >&6; } 9458 if test "$supported" = "yes" ; then 9459 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9460 found="yes" 9461 fi 9462 fi 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478xorg_testset_save_CFLAGS="$CFLAGS" 9479 9480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9483$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9484if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9485 $as_echo_n "(cached) " >&6 9486else 9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9488/* end confdefs.h. */ 9489int i; 9490_ACEOF 9491if ac_fn_c_try_compile "$LINENO"; then : 9492 xorg_cv_cc_flag_unknown_warning_option=yes 9493else 9494 xorg_cv_cc_flag_unknown_warning_option=no 9495fi 9496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9497fi 9498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9499$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9501 CFLAGS="$xorg_testset_save_CFLAGS" 9502fi 9503 9504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9507 fi 9508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9510$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9511if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9512 $as_echo_n "(cached) " >&6 9513else 9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9515/* end confdefs.h. */ 9516int i; 9517_ACEOF 9518if ac_fn_c_try_compile "$LINENO"; then : 9519 xorg_cv_cc_flag_unused_command_line_argument=yes 9520else 9521 xorg_cv_cc_flag_unused_command_line_argument=no 9522fi 9523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9524fi 9525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9526$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9528 CFLAGS="$xorg_testset_save_CFLAGS" 9529fi 9530 9531found="no" 9532 9533 if test $found = "no" ; then 9534 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9536 fi 9537 9538 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9540 fi 9541 9542 CFLAGS="$CFLAGS -Wwrite-strings" 9543 9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9545$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9546 cacheid=xorg_cv_cc_flag__Wwrite_strings 9547 if eval \${$cacheid+:} false; then : 9548 $as_echo_n "(cached) " >&6 9549else 9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9551/* end confdefs.h. */ 9552int i; 9553int 9554main () 9555{ 9556 9557 ; 9558 return 0; 9559} 9560_ACEOF 9561if ac_fn_c_try_link "$LINENO"; then : 9562 eval $cacheid=yes 9563else 9564 eval $cacheid=no 9565fi 9566rm -f core conftest.err conftest.$ac_objext \ 9567 conftest$ac_exeext conftest.$ac_ext 9568fi 9569 9570 9571 CFLAGS="$xorg_testset_save_CFLAGS" 9572 9573 eval supported=\$$cacheid 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9575$as_echo "$supported" >&6; } 9576 if test "$supported" = "yes" ; then 9577 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9578 found="yes" 9579 fi 9580 fi 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596xorg_testset_save_CFLAGS="$CFLAGS" 9597 9598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9601$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9602if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9603 $as_echo_n "(cached) " >&6 9604else 9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9606/* end confdefs.h. */ 9607int i; 9608_ACEOF 9609if ac_fn_c_try_compile "$LINENO"; then : 9610 xorg_cv_cc_flag_unknown_warning_option=yes 9611else 9612 xorg_cv_cc_flag_unknown_warning_option=no 9613fi 9614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9615fi 9616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9617$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9619 CFLAGS="$xorg_testset_save_CFLAGS" 9620fi 9621 9622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9625 fi 9626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9628$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9629if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9630 $as_echo_n "(cached) " >&6 9631else 9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9633/* end confdefs.h. */ 9634int i; 9635_ACEOF 9636if ac_fn_c_try_compile "$LINENO"; then : 9637 xorg_cv_cc_flag_unused_command_line_argument=yes 9638else 9639 xorg_cv_cc_flag_unused_command_line_argument=no 9640fi 9641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9642fi 9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9644$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9646 CFLAGS="$xorg_testset_save_CFLAGS" 9647fi 9648 9649found="no" 9650 9651 if test $found = "no" ; then 9652 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9654 fi 9655 9656 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9658 fi 9659 9660 CFLAGS="$CFLAGS -Waddress" 9661 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9663$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9664 cacheid=xorg_cv_cc_flag__Waddress 9665 if eval \${$cacheid+:} false; then : 9666 $as_echo_n "(cached) " >&6 9667else 9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9669/* end confdefs.h. */ 9670int i; 9671int 9672main () 9673{ 9674 9675 ; 9676 return 0; 9677} 9678_ACEOF 9679if ac_fn_c_try_link "$LINENO"; then : 9680 eval $cacheid=yes 9681else 9682 eval $cacheid=no 9683fi 9684rm -f core conftest.err conftest.$ac_objext \ 9685 conftest$ac_exeext conftest.$ac_ext 9686fi 9687 9688 9689 CFLAGS="$xorg_testset_save_CFLAGS" 9690 9691 eval supported=\$$cacheid 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9693$as_echo "$supported" >&6; } 9694 if test "$supported" = "yes" ; then 9695 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9696 found="yes" 9697 fi 9698 fi 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714xorg_testset_save_CFLAGS="$CFLAGS" 9715 9716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9719$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9720if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9721 $as_echo_n "(cached) " >&6 9722else 9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9724/* end confdefs.h. */ 9725int i; 9726_ACEOF 9727if ac_fn_c_try_compile "$LINENO"; then : 9728 xorg_cv_cc_flag_unknown_warning_option=yes 9729else 9730 xorg_cv_cc_flag_unknown_warning_option=no 9731fi 9732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9733fi 9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9735$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9737 CFLAGS="$xorg_testset_save_CFLAGS" 9738fi 9739 9740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9743 fi 9744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9746$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9747if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9748 $as_echo_n "(cached) " >&6 9749else 9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9751/* end confdefs.h. */ 9752int i; 9753_ACEOF 9754if ac_fn_c_try_compile "$LINENO"; then : 9755 xorg_cv_cc_flag_unused_command_line_argument=yes 9756else 9757 xorg_cv_cc_flag_unused_command_line_argument=no 9758fi 9759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9760fi 9761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9762$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9764 CFLAGS="$xorg_testset_save_CFLAGS" 9765fi 9766 9767found="no" 9768 9769 if test $found = "no" ; then 9770 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9772 fi 9773 9774 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9776 fi 9777 9778 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9779 9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9781$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9782 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9783 if eval \${$cacheid+:} false; then : 9784 $as_echo_n "(cached) " >&6 9785else 9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9787/* end confdefs.h. */ 9788int i; 9789int 9790main () 9791{ 9792 9793 ; 9794 return 0; 9795} 9796_ACEOF 9797if ac_fn_c_try_link "$LINENO"; then : 9798 eval $cacheid=yes 9799else 9800 eval $cacheid=no 9801fi 9802rm -f core conftest.err conftest.$ac_objext \ 9803 conftest$ac_exeext conftest.$ac_ext 9804fi 9805 9806 9807 CFLAGS="$xorg_testset_save_CFLAGS" 9808 9809 eval supported=\$$cacheid 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9811$as_echo "$supported" >&6; } 9812 if test "$supported" = "yes" ; then 9813 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9814 found="yes" 9815 fi 9816 fi 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832xorg_testset_save_CFLAGS="$CFLAGS" 9833 9834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9837$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9838if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9839 $as_echo_n "(cached) " >&6 9840else 9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9842/* end confdefs.h. */ 9843int i; 9844_ACEOF 9845if ac_fn_c_try_compile "$LINENO"; then : 9846 xorg_cv_cc_flag_unknown_warning_option=yes 9847else 9848 xorg_cv_cc_flag_unknown_warning_option=no 9849fi 9850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9851fi 9852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9853$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9855 CFLAGS="$xorg_testset_save_CFLAGS" 9856fi 9857 9858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9861 fi 9862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9864$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9865if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9866 $as_echo_n "(cached) " >&6 9867else 9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9869/* end confdefs.h. */ 9870int i; 9871_ACEOF 9872if ac_fn_c_try_compile "$LINENO"; then : 9873 xorg_cv_cc_flag_unused_command_line_argument=yes 9874else 9875 xorg_cv_cc_flag_unused_command_line_argument=no 9876fi 9877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9878fi 9879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9880$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9882 CFLAGS="$xorg_testset_save_CFLAGS" 9883fi 9884 9885found="no" 9886 9887 if test $found = "no" ; then 9888 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9890 fi 9891 9892 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9894 fi 9895 9896 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9897 9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9899$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9900 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9901 if eval \${$cacheid+:} false; then : 9902 $as_echo_n "(cached) " >&6 9903else 9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9905/* end confdefs.h. */ 9906int i; 9907int 9908main () 9909{ 9910 9911 ; 9912 return 0; 9913} 9914_ACEOF 9915if ac_fn_c_try_link "$LINENO"; then : 9916 eval $cacheid=yes 9917else 9918 eval $cacheid=no 9919fi 9920rm -f core conftest.err conftest.$ac_objext \ 9921 conftest$ac_exeext conftest.$ac_ext 9922fi 9923 9924 9925 CFLAGS="$xorg_testset_save_CFLAGS" 9926 9927 eval supported=\$$cacheid 9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9929$as_echo "$supported" >&6; } 9930 if test "$supported" = "yes" ; then 9931 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9932 found="yes" 9933 fi 9934 fi 9935 9936 9937fi 9938 9939 9940 9941 9942 9943 9944 9945 CWARNFLAGS="$BASE_CFLAGS" 9946 if test "x$GCC" = xyes ; then 9947 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9948 fi 9949 9950 9951 9952 9953 9954 9955 9956 9957# Check whether --enable-strict-compilation was given. 9958if test "${enable_strict_compilation+set}" = set; then : 9959 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9960else 9961 STRICT_COMPILE=no 9962fi 9963 9964 9965 9966 9967 9968 9969STRICT_CFLAGS="" 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983xorg_testset_save_CFLAGS="$CFLAGS" 9984 9985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9990 $as_echo_n "(cached) " >&6 9991else 9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9993/* end confdefs.h. */ 9994int i; 9995_ACEOF 9996if ac_fn_c_try_compile "$LINENO"; then : 9997 xorg_cv_cc_flag_unknown_warning_option=yes 9998else 9999 xorg_cv_cc_flag_unknown_warning_option=no 10000fi 10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10002fi 10003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10006 CFLAGS="$xorg_testset_save_CFLAGS" 10007fi 10008 10009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10012 fi 10013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10017 $as_echo_n "(cached) " >&6 10018else 10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10020/* end confdefs.h. */ 10021int i; 10022_ACEOF 10023if ac_fn_c_try_compile "$LINENO"; then : 10024 xorg_cv_cc_flag_unused_command_line_argument=yes 10025else 10026 xorg_cv_cc_flag_unused_command_line_argument=no 10027fi 10028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10029fi 10030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10033 CFLAGS="$xorg_testset_save_CFLAGS" 10034fi 10035 10036found="no" 10037 10038 if test $found = "no" ; then 10039 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10041 fi 10042 10043 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10045 fi 10046 10047 CFLAGS="$CFLAGS -pedantic" 10048 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10050$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10051 cacheid=xorg_cv_cc_flag__pedantic 10052 if eval \${$cacheid+:} false; then : 10053 $as_echo_n "(cached) " >&6 10054else 10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10056/* end confdefs.h. */ 10057int i; 10058int 10059main () 10060{ 10061 10062 ; 10063 return 0; 10064} 10065_ACEOF 10066if ac_fn_c_try_link "$LINENO"; then : 10067 eval $cacheid=yes 10068else 10069 eval $cacheid=no 10070fi 10071rm -f core conftest.err conftest.$ac_objext \ 10072 conftest$ac_exeext conftest.$ac_ext 10073fi 10074 10075 10076 CFLAGS="$xorg_testset_save_CFLAGS" 10077 10078 eval supported=\$$cacheid 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10080$as_echo "$supported" >&6; } 10081 if test "$supported" = "yes" ; then 10082 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10083 found="yes" 10084 fi 10085 fi 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101xorg_testset_save_CFLAGS="$CFLAGS" 10102 10103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10106$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10107if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10108 $as_echo_n "(cached) " >&6 10109else 10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10111/* end confdefs.h. */ 10112int i; 10113_ACEOF 10114if ac_fn_c_try_compile "$LINENO"; then : 10115 xorg_cv_cc_flag_unknown_warning_option=yes 10116else 10117 xorg_cv_cc_flag_unknown_warning_option=no 10118fi 10119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10120fi 10121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10122$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10124 CFLAGS="$xorg_testset_save_CFLAGS" 10125fi 10126 10127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10130 fi 10131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10133$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10134if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10135 $as_echo_n "(cached) " >&6 10136else 10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10138/* end confdefs.h. */ 10139int i; 10140_ACEOF 10141if ac_fn_c_try_compile "$LINENO"; then : 10142 xorg_cv_cc_flag_unused_command_line_argument=yes 10143else 10144 xorg_cv_cc_flag_unused_command_line_argument=no 10145fi 10146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10147fi 10148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10149$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10151 CFLAGS="$xorg_testset_save_CFLAGS" 10152fi 10153 10154found="no" 10155 10156 if test $found = "no" ; then 10157 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10159 fi 10160 10161 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10163 fi 10164 10165 CFLAGS="$CFLAGS -Werror" 10166 10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10168$as_echo_n "checking if $CC supports -Werror... " >&6; } 10169 cacheid=xorg_cv_cc_flag__Werror 10170 if eval \${$cacheid+:} false; then : 10171 $as_echo_n "(cached) " >&6 10172else 10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10174/* end confdefs.h. */ 10175int i; 10176int 10177main () 10178{ 10179 10180 ; 10181 return 0; 10182} 10183_ACEOF 10184if ac_fn_c_try_link "$LINENO"; then : 10185 eval $cacheid=yes 10186else 10187 eval $cacheid=no 10188fi 10189rm -f core conftest.err conftest.$ac_objext \ 10190 conftest$ac_exeext conftest.$ac_ext 10191fi 10192 10193 10194 CFLAGS="$xorg_testset_save_CFLAGS" 10195 10196 eval supported=\$$cacheid 10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10198$as_echo "$supported" >&6; } 10199 if test "$supported" = "yes" ; then 10200 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10201 found="yes" 10202 fi 10203 fi 10204 10205 if test $found = "no" ; then 10206 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10208 fi 10209 10210 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10212 fi 10213 10214 CFLAGS="$CFLAGS -errwarn" 10215 10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10217$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10218 cacheid=xorg_cv_cc_flag__errwarn 10219 if eval \${$cacheid+:} false; then : 10220 $as_echo_n "(cached) " >&6 10221else 10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10223/* end confdefs.h. */ 10224int i; 10225int 10226main () 10227{ 10228 10229 ; 10230 return 0; 10231} 10232_ACEOF 10233if ac_fn_c_try_link "$LINENO"; then : 10234 eval $cacheid=yes 10235else 10236 eval $cacheid=no 10237fi 10238rm -f core conftest.err conftest.$ac_objext \ 10239 conftest$ac_exeext conftest.$ac_ext 10240fi 10241 10242 10243 CFLAGS="$xorg_testset_save_CFLAGS" 10244 10245 eval supported=\$$cacheid 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10247$as_echo "$supported" >&6; } 10248 if test "$supported" = "yes" ; then 10249 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10250 found="yes" 10251 fi 10252 fi 10253 10254 10255 10256# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10257# activate it with -Werror, so we add it here explicitly. 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271xorg_testset_save_CFLAGS="$CFLAGS" 10272 10273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10278 $as_echo_n "(cached) " >&6 10279else 10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10281/* end confdefs.h. */ 10282int i; 10283_ACEOF 10284if ac_fn_c_try_compile "$LINENO"; then : 10285 xorg_cv_cc_flag_unknown_warning_option=yes 10286else 10287 xorg_cv_cc_flag_unknown_warning_option=no 10288fi 10289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10290fi 10291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10294 CFLAGS="$xorg_testset_save_CFLAGS" 10295fi 10296 10297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10300 fi 10301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10305 $as_echo_n "(cached) " >&6 10306else 10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10308/* end confdefs.h. */ 10309int i; 10310_ACEOF 10311if ac_fn_c_try_compile "$LINENO"; then : 10312 xorg_cv_cc_flag_unused_command_line_argument=yes 10313else 10314 xorg_cv_cc_flag_unused_command_line_argument=no 10315fi 10316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10317fi 10318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10321 CFLAGS="$xorg_testset_save_CFLAGS" 10322fi 10323 10324found="no" 10325 10326 if test $found = "no" ; then 10327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10329 fi 10330 10331 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10333 fi 10334 10335 CFLAGS="$CFLAGS -Werror=attributes" 10336 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10338$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10339 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10340 if eval \${$cacheid+:} false; then : 10341 $as_echo_n "(cached) " >&6 10342else 10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10344/* end confdefs.h. */ 10345int i; 10346int 10347main () 10348{ 10349 10350 ; 10351 return 0; 10352} 10353_ACEOF 10354if ac_fn_c_try_link "$LINENO"; then : 10355 eval $cacheid=yes 10356else 10357 eval $cacheid=no 10358fi 10359rm -f core conftest.err conftest.$ac_objext \ 10360 conftest$ac_exeext conftest.$ac_ext 10361fi 10362 10363 10364 CFLAGS="$xorg_testset_save_CFLAGS" 10365 10366 eval supported=\$$cacheid 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10368$as_echo "$supported" >&6; } 10369 if test "$supported" = "yes" ; then 10370 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10371 found="yes" 10372 fi 10373 fi 10374 10375 10376 10377if test "x$STRICT_COMPILE" = "xyes"; then 10378 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10379 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10380fi 10381 10382 10383 10384 10385 10386 10387cat >>confdefs.h <<_ACEOF 10388#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10389_ACEOF 10390 10391 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10392 if test "x$PVM" = "x"; then 10393 PVM="0" 10394 fi 10395 10396cat >>confdefs.h <<_ACEOF 10397#define PACKAGE_VERSION_MINOR $PVM 10398_ACEOF 10399 10400 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10401 if test "x$PVP" = "x"; then 10402 PVP="0" 10403 fi 10404 10405cat >>confdefs.h <<_ACEOF 10406#define PACKAGE_VERSION_PATCHLEVEL $PVP 10407_ACEOF 10408 10409 10410 10411CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10412mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10413|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10414echo 'git directory not found: installing possibly empty changelog.' >&2)" 10415 10416 10417 10418 10419macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10420INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10421mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10422|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10423echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10424 10425 10426 10427 10428 10429 10430if test x$APP_MAN_SUFFIX = x ; then 10431 APP_MAN_SUFFIX=1 10432fi 10433if test x$APP_MAN_DIR = x ; then 10434 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10435fi 10436 10437if test x$LIB_MAN_SUFFIX = x ; then 10438 LIB_MAN_SUFFIX=3 10439fi 10440if test x$LIB_MAN_DIR = x ; then 10441 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10442fi 10443 10444if test x$FILE_MAN_SUFFIX = x ; then 10445 case $host_os in 10446 solaris*) FILE_MAN_SUFFIX=4 ;; 10447 *) FILE_MAN_SUFFIX=5 ;; 10448 esac 10449fi 10450if test x$FILE_MAN_DIR = x ; then 10451 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10452fi 10453 10454if test x$MISC_MAN_SUFFIX = x ; then 10455 case $host_os in 10456 solaris*) MISC_MAN_SUFFIX=5 ;; 10457 *) MISC_MAN_SUFFIX=7 ;; 10458 esac 10459fi 10460if test x$MISC_MAN_DIR = x ; then 10461 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10462fi 10463 10464if test x$DRIVER_MAN_SUFFIX = x ; then 10465 case $host_os in 10466 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10467 *) DRIVER_MAN_SUFFIX=4 ;; 10468 esac 10469fi 10470if test x$DRIVER_MAN_DIR = x ; then 10471 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10472fi 10473 10474if test x$ADMIN_MAN_SUFFIX = x ; then 10475 case $host_os in 10476 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10477 *) ADMIN_MAN_SUFFIX=8 ;; 10478 esac 10479fi 10480if test x$ADMIN_MAN_DIR = x ; then 10481 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10482fi 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498XORG_MAN_PAGE="X Version 11" 10499 10500MAN_SUBSTS="\ 10501 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10502 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10503 -e 's|__xservername__|Xorg|g' \ 10504 -e 's|__xconfigfile__|xorg.conf|g' \ 10505 -e 's|__projectroot__|\$(prefix)|g' \ 10506 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10507 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10508 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10509 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10510 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10511 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10512 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10513 10514 10515 10516# Check whether --enable-silent-rules was given. 10517if test "${enable_silent_rules+set}" = set; then : 10518 enableval=$enable_silent_rules; 10519fi 10520 10521case $enable_silent_rules in # ((( 10522 yes) AM_DEFAULT_VERBOSITY=0;; 10523 no) AM_DEFAULT_VERBOSITY=1;; 10524 *) AM_DEFAULT_VERBOSITY=0;; 10525esac 10526am_make=${MAKE-make} 10527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10528$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10529if ${am_cv_make_support_nested_variables+:} false; then : 10530 $as_echo_n "(cached) " >&6 10531else 10532 if $as_echo 'TRUE=$(BAR$(V)) 10533BAR0=false 10534BAR1=true 10535V=1 10536am__doit: 10537 @$(TRUE) 10538.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10539 am_cv_make_support_nested_variables=yes 10540else 10541 am_cv_make_support_nested_variables=no 10542fi 10543fi 10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10545$as_echo "$am_cv_make_support_nested_variables" >&6; } 10546if test $am_cv_make_support_nested_variables = yes; then 10547 AM_V='$(V)' 10548 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10549else 10550 AM_V=$AM_DEFAULT_VERBOSITY 10551 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10552fi 10553AM_BACKSLASH='\' 10554 10555 10556 10557# Optional dependencies 10558 10559# Check whether --with-xkb was given. 10560if test "${with_xkb+set}" = set; then : 10561 withval=$with_xkb; use_xkb="$withval" 10562else 10563 use_xkb="yes" 10564fi 10565 10566if test x$use_xkb != xno ; then 10567 XKBMODULE="xkbfile" 10568 10569$as_echo "#define XKB 1" >>confdefs.h 10570 10571fi 10572 10573# Checks for pkg-config packages 10574 10575pkg_failed=no 10576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWD" >&5 10577$as_echo_n "checking for XWD... " >&6; } 10578 10579if test -n "$XWD_CFLAGS"; then 10580 pkg_cv_XWD_CFLAGS="$XWD_CFLAGS" 10581 elif test -n "$PKG_CONFIG"; then 10582 if test -n "$PKG_CONFIG" && \ 10583 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17 \${XKBMODULE}\""; } >&5 10584 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17 ${XKBMODULE}") 2>&5 10585 ac_status=$? 10586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10587 test $ac_status = 0; }; then 10588 pkg_cv_XWD_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null` 10589else 10590 pkg_failed=yes 10591fi 10592 else 10593 pkg_failed=untried 10594fi 10595if test -n "$XWD_LIBS"; then 10596 pkg_cv_XWD_LIBS="$XWD_LIBS" 10597 elif test -n "$PKG_CONFIG"; then 10598 if test -n "$PKG_CONFIG" && \ 10599 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17 \${XKBMODULE}\""; } >&5 10600 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17 ${XKBMODULE}") 2>&5 10601 ac_status=$? 10602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10603 test $ac_status = 0; }; then 10604 pkg_cv_XWD_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null` 10605else 10606 pkg_failed=yes 10607fi 10608 else 10609 pkg_failed=untried 10610fi 10611 10612 10613 10614if test $pkg_failed = yes; then 10615 10616if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10617 _pkg_short_errors_supported=yes 10618else 10619 _pkg_short_errors_supported=no 10620fi 10621 if test $_pkg_short_errors_supported = yes; then 10622 XWD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17 ${XKBMODULE}" 2>&1` 10623 else 10624 XWD_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17 ${XKBMODULE}" 2>&1` 10625 fi 10626 # Put the nasty error message in config.log where it belongs 10627 echo "$XWD_PKG_ERRORS" >&5 10628 10629 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17 ${XKBMODULE}) were not met: 10630 10631$XWD_PKG_ERRORS 10632 10633Consider adjusting the PKG_CONFIG_PATH environment variable if you 10634installed software in a non-standard prefix. 10635 10636Alternatively, you may set the environment variables XWD_CFLAGS 10637and XWD_LIBS to avoid the need to call pkg-config. 10638See the pkg-config man page for more details. 10639" "$LINENO" 5 10640elif test $pkg_failed = untried; then 10641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10643as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10644is in your PATH or set the PKG_CONFIG environment variable to the full 10645path to pkg-config. 10646 10647Alternatively, you may set the environment variables XWD_CFLAGS 10648and XWD_LIBS to avoid the need to call pkg-config. 10649See the pkg-config man page for more details. 10650 10651To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10652See \`config.log' for more details" "$LINENO" 5; } 10653else 10654 XWD_CFLAGS=$pkg_cv_XWD_CFLAGS 10655 XWD_LIBS=$pkg_cv_XWD_LIBS 10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10657$as_echo "yes" >&6; } 10658 : 10659fi 10660 10661ac_config_files="$ac_config_files Makefile man/Makefile" 10662 10663cat >confcache <<\_ACEOF 10664# This file is a shell script that caches the results of configure 10665# tests run on this system so they can be shared between configure 10666# scripts and configure runs, see configure's option --config-cache. 10667# It is not useful on other systems. If it contains results you don't 10668# want to keep, you may remove or edit it. 10669# 10670# config.status only pays attention to the cache file if you give it 10671# the --recheck option to rerun configure. 10672# 10673# `ac_cv_env_foo' variables (set or unset) will be overridden when 10674# loading this file, other *unset* `ac_cv_foo' will be assigned the 10675# following values. 10676 10677_ACEOF 10678 10679# The following way of writing the cache mishandles newlines in values, 10680# but we know of no workaround that is simple, portable, and efficient. 10681# So, we kill variables containing newlines. 10682# Ultrix sh set writes to stderr and can't be redirected directly, 10683# and sets the high bit in the cache file unless we assign to the vars. 10684( 10685 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10686 eval ac_val=\$$ac_var 10687 case $ac_val in #( 10688 *${as_nl}*) 10689 case $ac_var in #( 10690 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10691$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10692 esac 10693 case $ac_var in #( 10694 _ | IFS | as_nl) ;; #( 10695 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10696 *) { eval $ac_var=; unset $ac_var;} ;; 10697 esac ;; 10698 esac 10699 done 10700 10701 (set) 2>&1 | 10702 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10703 *${as_nl}ac_space=\ *) 10704 # `set' does not quote correctly, so add quotes: double-quote 10705 # substitution turns \\\\ into \\, and sed turns \\ into \. 10706 sed -n \ 10707 "s/'/'\\\\''/g; 10708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10709 ;; #( 10710 *) 10711 # `set' quotes correctly as required by POSIX, so do not add quotes. 10712 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10713 ;; 10714 esac | 10715 sort 10716) | 10717 sed ' 10718 /^ac_cv_env_/b end 10719 t clear 10720 :clear 10721 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10722 t end 10723 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10724 :end' >>confcache 10725if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10726 if test -w "$cache_file"; then 10727 if test "x$cache_file" != "x/dev/null"; then 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10729$as_echo "$as_me: updating cache $cache_file" >&6;} 10730 if test ! -f "$cache_file" || test -h "$cache_file"; then 10731 cat confcache >"$cache_file" 10732 else 10733 case $cache_file in #( 10734 */* | ?:*) 10735 mv -f confcache "$cache_file"$$ && 10736 mv -f "$cache_file"$$ "$cache_file" ;; #( 10737 *) 10738 mv -f confcache "$cache_file" ;; 10739 esac 10740 fi 10741 fi 10742 else 10743 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10744$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10745 fi 10746fi 10747rm -f confcache 10748 10749test "x$prefix" = xNONE && prefix=$ac_default_prefix 10750# Let make expand exec_prefix. 10751test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10752 10753DEFS=-DHAVE_CONFIG_H 10754 10755ac_libobjs= 10756ac_ltlibobjs= 10757U= 10758for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10759 # 1. Remove the extension, and $U if already installed. 10760 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10761 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10762 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10763 # will be set to the directory where LIBOBJS objects are built. 10764 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10765 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10766done 10767LIBOBJS=$ac_libobjs 10768 10769LTLIBOBJS=$ac_ltlibobjs 10770 10771 10772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10773$as_echo_n "checking that generated files are newer than configure... " >&6; } 10774 if test -n "$am_sleep_pid"; then 10775 # Hide warnings about reused PIDs. 10776 wait $am_sleep_pid 2>/dev/null 10777 fi 10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10779$as_echo "done" >&6; } 10780 if test -n "$EXEEXT"; then 10781 am__EXEEXT_TRUE= 10782 am__EXEEXT_FALSE='#' 10783else 10784 am__EXEEXT_TRUE='#' 10785 am__EXEEXT_FALSE= 10786fi 10787 10788if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10789 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10790Usually this means the macro was only invoked conditionally." "$LINENO" 5 10791fi 10792if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10793 as_fn_error $? "conditional \"AMDEP\" was never defined. 10794Usually this means the macro was only invoked conditionally." "$LINENO" 5 10795fi 10796if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10797 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10798Usually this means the macro was only invoked conditionally." "$LINENO" 5 10799fi 10800 10801: "${CONFIG_STATUS=./config.status}" 10802ac_write_fail=0 10803ac_clean_files_save=$ac_clean_files 10804ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10805{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10806$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10807as_write_fail=0 10808cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10809#! $SHELL 10810# Generated by $as_me. 10811# Run this file to recreate the current configuration. 10812# Compiler output produced by configure, useful for debugging 10813# configure, is in config.log if it exists. 10814 10815debug=false 10816ac_cs_recheck=false 10817ac_cs_silent=false 10818 10819SHELL=\${CONFIG_SHELL-$SHELL} 10820export SHELL 10821_ASEOF 10822cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10823## -------------------- ## 10824## M4sh Initialization. ## 10825## -------------------- ## 10826 10827# Be more Bourne compatible 10828DUALCASE=1; export DUALCASE # for MKS sh 10829if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10830 emulate sh 10831 NULLCMD=: 10832 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10833 # is contrary to our usage. Disable this feature. 10834 alias -g '${1+"$@"}'='"$@"' 10835 setopt NO_GLOB_SUBST 10836else 10837 case `(set -o) 2>/dev/null` in #( 10838 *posix*) : 10839 set -o posix ;; #( 10840 *) : 10841 ;; 10842esac 10843fi 10844 10845 10846as_nl=' 10847' 10848export as_nl 10849# Printing a long string crashes Solaris 7 /usr/bin/printf. 10850as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10851as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10852as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10853# Prefer a ksh shell builtin over an external printf program on Solaris, 10854# but without wasting forks for bash or zsh. 10855if test -z "$BASH_VERSION$ZSH_VERSION" \ 10856 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10857 as_echo='print -r --' 10858 as_echo_n='print -rn --' 10859elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10860 as_echo='printf %s\n' 10861 as_echo_n='printf %s' 10862else 10863 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10864 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10865 as_echo_n='/usr/ucb/echo -n' 10866 else 10867 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10868 as_echo_n_body='eval 10869 arg=$1; 10870 case $arg in #( 10871 *"$as_nl"*) 10872 expr "X$arg" : "X\\(.*\\)$as_nl"; 10873 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10874 esac; 10875 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10876 ' 10877 export as_echo_n_body 10878 as_echo_n='sh -c $as_echo_n_body as_echo' 10879 fi 10880 export as_echo_body 10881 as_echo='sh -c $as_echo_body as_echo' 10882fi 10883 10884# The user is always right. 10885if test "${PATH_SEPARATOR+set}" != set; then 10886 PATH_SEPARATOR=: 10887 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10888 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10889 PATH_SEPARATOR=';' 10890 } 10891fi 10892 10893 10894# IFS 10895# We need space, tab and new line, in precisely that order. Quoting is 10896# there to prevent editors from complaining about space-tab. 10897# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10898# splitting by setting IFS to empty value.) 10899IFS=" "" $as_nl" 10900 10901# Find who we are. Look in the path if we contain no directory separator. 10902as_myself= 10903case $0 in #(( 10904 *[\\/]* ) as_myself=$0 ;; 10905 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10906for as_dir in $PATH 10907do 10908 IFS=$as_save_IFS 10909 test -z "$as_dir" && as_dir=. 10910 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10911 done 10912IFS=$as_save_IFS 10913 10914 ;; 10915esac 10916# We did not find ourselves, most probably we were run as `sh COMMAND' 10917# in which case we are not to be found in the path. 10918if test "x$as_myself" = x; then 10919 as_myself=$0 10920fi 10921if test ! -f "$as_myself"; then 10922 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10923 exit 1 10924fi 10925 10926# Unset variables that we do not need and which cause bugs (e.g. in 10927# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10928# suppresses any "Segmentation fault" message there. '((' could 10929# trigger a bug in pdksh 5.2.14. 10930for as_var in BASH_ENV ENV MAIL MAILPATH 10931do eval test x\${$as_var+set} = xset \ 10932 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10933done 10934PS1='$ ' 10935PS2='> ' 10936PS4='+ ' 10937 10938# NLS nuisances. 10939LC_ALL=C 10940export LC_ALL 10941LANGUAGE=C 10942export LANGUAGE 10943 10944# CDPATH. 10945(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10946 10947 10948# as_fn_error STATUS ERROR [LINENO LOG_FD] 10949# ---------------------------------------- 10950# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10951# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10952# script with STATUS, using 1 if that was 0. 10953as_fn_error () 10954{ 10955 as_status=$1; test $as_status -eq 0 && as_status=1 10956 if test "$4"; then 10957 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10958 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10959 fi 10960 $as_echo "$as_me: error: $2" >&2 10961 as_fn_exit $as_status 10962} # as_fn_error 10963 10964 10965# as_fn_set_status STATUS 10966# ----------------------- 10967# Set $? to STATUS, without forking. 10968as_fn_set_status () 10969{ 10970 return $1 10971} # as_fn_set_status 10972 10973# as_fn_exit STATUS 10974# ----------------- 10975# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10976as_fn_exit () 10977{ 10978 set +e 10979 as_fn_set_status $1 10980 exit $1 10981} # as_fn_exit 10982 10983# as_fn_unset VAR 10984# --------------- 10985# Portably unset VAR. 10986as_fn_unset () 10987{ 10988 { eval $1=; unset $1;} 10989} 10990as_unset=as_fn_unset 10991# as_fn_append VAR VALUE 10992# ---------------------- 10993# Append the text in VALUE to the end of the definition contained in VAR. Take 10994# advantage of any shell optimizations that allow amortized linear growth over 10995# repeated appends, instead of the typical quadratic growth present in naive 10996# implementations. 10997if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10998 eval 'as_fn_append () 10999 { 11000 eval $1+=\$2 11001 }' 11002else 11003 as_fn_append () 11004 { 11005 eval $1=\$$1\$2 11006 } 11007fi # as_fn_append 11008 11009# as_fn_arith ARG... 11010# ------------------ 11011# Perform arithmetic evaluation on the ARGs, and store the result in the 11012# global $as_val. Take advantage of shells that can avoid forks. The arguments 11013# must be portable across $(()) and expr. 11014if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11015 eval 'as_fn_arith () 11016 { 11017 as_val=$(( $* )) 11018 }' 11019else 11020 as_fn_arith () 11021 { 11022 as_val=`expr "$@" || test $? -eq 1` 11023 } 11024fi # as_fn_arith 11025 11026 11027if expr a : '\(a\)' >/dev/null 2>&1 && 11028 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11029 as_expr=expr 11030else 11031 as_expr=false 11032fi 11033 11034if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11035 as_basename=basename 11036else 11037 as_basename=false 11038fi 11039 11040if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11041 as_dirname=dirname 11042else 11043 as_dirname=false 11044fi 11045 11046as_me=`$as_basename -- "$0" || 11047$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11048 X"$0" : 'X\(//\)$' \| \ 11049 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11050$as_echo X/"$0" | 11051 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11052 s//\1/ 11053 q 11054 } 11055 /^X\/\(\/\/\)$/{ 11056 s//\1/ 11057 q 11058 } 11059 /^X\/\(\/\).*/{ 11060 s//\1/ 11061 q 11062 } 11063 s/.*/./; q'` 11064 11065# Avoid depending upon Character Ranges. 11066as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11067as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11068as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11069as_cr_digits='0123456789' 11070as_cr_alnum=$as_cr_Letters$as_cr_digits 11071 11072ECHO_C= ECHO_N= ECHO_T= 11073case `echo -n x` in #((((( 11074-n*) 11075 case `echo 'xy\c'` in 11076 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11077 xy) ECHO_C='\c';; 11078 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11079 ECHO_T=' ';; 11080 esac;; 11081*) 11082 ECHO_N='-n';; 11083esac 11084 11085rm -f conf$$ conf$$.exe conf$$.file 11086if test -d conf$$.dir; then 11087 rm -f conf$$.dir/conf$$.file 11088else 11089 rm -f conf$$.dir 11090 mkdir conf$$.dir 2>/dev/null 11091fi 11092if (echo >conf$$.file) 2>/dev/null; then 11093 if ln -s conf$$.file conf$$ 2>/dev/null; then 11094 as_ln_s='ln -s' 11095 # ... but there are two gotchas: 11096 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11097 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11098 # In both cases, we have to default to `cp -p'. 11099 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11100 as_ln_s='cp -p' 11101 elif ln conf$$.file conf$$ 2>/dev/null; then 11102 as_ln_s=ln 11103 else 11104 as_ln_s='cp -p' 11105 fi 11106else 11107 as_ln_s='cp -p' 11108fi 11109rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11110rmdir conf$$.dir 2>/dev/null 11111 11112 11113# as_fn_mkdir_p 11114# ------------- 11115# Create "$as_dir" as a directory, including parents if necessary. 11116as_fn_mkdir_p () 11117{ 11118 11119 case $as_dir in #( 11120 -*) as_dir=./$as_dir;; 11121 esac 11122 test -d "$as_dir" || eval $as_mkdir_p || { 11123 as_dirs= 11124 while :; do 11125 case $as_dir in #( 11126 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11127 *) as_qdir=$as_dir;; 11128 esac 11129 as_dirs="'$as_qdir' $as_dirs" 11130 as_dir=`$as_dirname -- "$as_dir" || 11131$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11132 X"$as_dir" : 'X\(//\)[^/]' \| \ 11133 X"$as_dir" : 'X\(//\)$' \| \ 11134 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11135$as_echo X"$as_dir" | 11136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11137 s//\1/ 11138 q 11139 } 11140 /^X\(\/\/\)[^/].*/{ 11141 s//\1/ 11142 q 11143 } 11144 /^X\(\/\/\)$/{ 11145 s//\1/ 11146 q 11147 } 11148 /^X\(\/\).*/{ 11149 s//\1/ 11150 q 11151 } 11152 s/.*/./; q'` 11153 test -d "$as_dir" && break 11154 done 11155 test -z "$as_dirs" || eval "mkdir $as_dirs" 11156 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11157 11158 11159} # as_fn_mkdir_p 11160if mkdir -p . 2>/dev/null; then 11161 as_mkdir_p='mkdir -p "$as_dir"' 11162else 11163 test -d ./-p && rmdir ./-p 11164 as_mkdir_p=false 11165fi 11166 11167if test -x / >/dev/null 2>&1; then 11168 as_test_x='test -x' 11169else 11170 if ls -dL / >/dev/null 2>&1; then 11171 as_ls_L_option=L 11172 else 11173 as_ls_L_option= 11174 fi 11175 as_test_x=' 11176 eval sh -c '\'' 11177 if test -d "$1"; then 11178 test -d "$1/."; 11179 else 11180 case $1 in #( 11181 -*)set "./$1";; 11182 esac; 11183 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11184 ???[sx]*):;;*)false;;esac;fi 11185 '\'' sh 11186 ' 11187fi 11188as_executable_p=$as_test_x 11189 11190# Sed expression to map a string onto a valid CPP name. 11191as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11192 11193# Sed expression to map a string onto a valid variable name. 11194as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11195 11196 11197exec 6>&1 11198## ----------------------------------- ## 11199## Main body of $CONFIG_STATUS script. ## 11200## ----------------------------------- ## 11201_ASEOF 11202test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11203 11204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11205# Save the log message, to keep $0 and so on meaningful, and to 11206# report actual input values of CONFIG_FILES etc. instead of their 11207# values after options handling. 11208ac_log=" 11209This file was extended by xwd $as_me 1.0.6, which was 11210generated by GNU Autoconf 2.68. Invocation command line was 11211 11212 CONFIG_FILES = $CONFIG_FILES 11213 CONFIG_HEADERS = $CONFIG_HEADERS 11214 CONFIG_LINKS = $CONFIG_LINKS 11215 CONFIG_COMMANDS = $CONFIG_COMMANDS 11216 $ $0 $@ 11217 11218on `(hostname || uname -n) 2>/dev/null | sed 1q` 11219" 11220 11221_ACEOF 11222 11223case $ac_config_files in *" 11224"*) set x $ac_config_files; shift; ac_config_files=$*;; 11225esac 11226 11227case $ac_config_headers in *" 11228"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11229esac 11230 11231 11232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11233# Files that config.status was made for. 11234config_files="$ac_config_files" 11235config_headers="$ac_config_headers" 11236config_commands="$ac_config_commands" 11237 11238_ACEOF 11239 11240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11241ac_cs_usage="\ 11242\`$as_me' instantiates files and other configuration actions 11243from templates according to the current configuration. Unless the files 11244and actions are specified as TAGs, all are instantiated by default. 11245 11246Usage: $0 [OPTION]... [TAG]... 11247 11248 -h, --help print this help, then exit 11249 -V, --version print version number and configuration settings, then exit 11250 --config print configuration, then exit 11251 -q, --quiet, --silent 11252 do not print progress messages 11253 -d, --debug don't remove temporary files 11254 --recheck update $as_me by reconfiguring in the same conditions 11255 --file=FILE[:TEMPLATE] 11256 instantiate the configuration file FILE 11257 --header=FILE[:TEMPLATE] 11258 instantiate the configuration header FILE 11259 11260Configuration files: 11261$config_files 11262 11263Configuration headers: 11264$config_headers 11265 11266Configuration commands: 11267$config_commands 11268 11269Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11270 11271_ACEOF 11272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11273ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11274ac_cs_version="\\ 11275xwd config.status 1.0.6 11276configured by $0, generated by GNU Autoconf 2.68, 11277 with options \\"\$ac_cs_config\\" 11278 11279Copyright (C) 2010 Free Software Foundation, Inc. 11280This config.status script is free software; the Free Software Foundation 11281gives unlimited permission to copy, distribute and modify it." 11282 11283ac_pwd='$ac_pwd' 11284srcdir='$srcdir' 11285INSTALL='$INSTALL' 11286MKDIR_P='$MKDIR_P' 11287AWK='$AWK' 11288test -n "\$AWK" || AWK=awk 11289_ACEOF 11290 11291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11292# The default lists apply if the user does not specify any file. 11293ac_need_defaults=: 11294while test $# != 0 11295do 11296 case $1 in 11297 --*=?*) 11298 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11300 ac_shift=: 11301 ;; 11302 --*=) 11303 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11304 ac_optarg= 11305 ac_shift=: 11306 ;; 11307 *) 11308 ac_option=$1 11309 ac_optarg=$2 11310 ac_shift=shift 11311 ;; 11312 esac 11313 11314 case $ac_option in 11315 # Handling of the options. 11316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11317 ac_cs_recheck=: ;; 11318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11319 $as_echo "$ac_cs_version"; exit ;; 11320 --config | --confi | --conf | --con | --co | --c ) 11321 $as_echo "$ac_cs_config"; exit ;; 11322 --debug | --debu | --deb | --de | --d | -d ) 11323 debug=: ;; 11324 --file | --fil | --fi | --f ) 11325 $ac_shift 11326 case $ac_optarg in 11327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11328 '') as_fn_error $? "missing file argument" ;; 11329 esac 11330 as_fn_append CONFIG_FILES " '$ac_optarg'" 11331 ac_need_defaults=false;; 11332 --header | --heade | --head | --hea ) 11333 $ac_shift 11334 case $ac_optarg in 11335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11336 esac 11337 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11338 ac_need_defaults=false;; 11339 --he | --h) 11340 # Conflict between --help and --header 11341 as_fn_error $? "ambiguous option: \`$1' 11342Try \`$0 --help' for more information.";; 11343 --help | --hel | -h ) 11344 $as_echo "$ac_cs_usage"; exit ;; 11345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11346 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11347 ac_cs_silent=: ;; 11348 11349 # This is an error. 11350 -*) as_fn_error $? "unrecognized option: \`$1' 11351Try \`$0 --help' for more information." ;; 11352 11353 *) as_fn_append ac_config_targets " $1" 11354 ac_need_defaults=false ;; 11355 11356 esac 11357 shift 11358done 11359 11360ac_configure_extra_args= 11361 11362if $ac_cs_silent; then 11363 exec 6>/dev/null 11364 ac_configure_extra_args="$ac_configure_extra_args --silent" 11365fi 11366 11367_ACEOF 11368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11369if \$ac_cs_recheck; then 11370 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11371 shift 11372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11373 CONFIG_SHELL='$SHELL' 11374 export CONFIG_SHELL 11375 exec "\$@" 11376fi 11377 11378_ACEOF 11379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11380exec 5>>config.log 11381{ 11382 echo 11383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11384## Running $as_me. ## 11385_ASBOX 11386 $as_echo "$ac_log" 11387} >&5 11388 11389_ACEOF 11390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11391# 11392# INIT-COMMANDS 11393# 11394AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11395 11396_ACEOF 11397 11398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11399 11400# Handling of arguments. 11401for ac_config_target in $ac_config_targets 11402do 11403 case $ac_config_target in 11404 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11405 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11406 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11407 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11408 11409 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11410 esac 11411done 11412 11413 11414# If the user did not use the arguments to specify the items to instantiate, 11415# then the envvar interface is used. Set only those that are not. 11416# We use the long form for the default assignment because of an extremely 11417# bizarre bug on SunOS 4.1.3. 11418if $ac_need_defaults; then 11419 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11420 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11421 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11422fi 11423 11424# Have a temporary directory for convenience. Make it in the build tree 11425# simply because there is no reason against having it here, and in addition, 11426# creating and moving files from /tmp can sometimes cause problems. 11427# Hook for its removal unless debugging. 11428# Note that there is a small window in which the directory will not be cleaned: 11429# after its creation but before its name has been assigned to `$tmp'. 11430$debug || 11431{ 11432 tmp= ac_tmp= 11433 trap 'exit_status=$? 11434 : "${ac_tmp:=$tmp}" 11435 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11436' 0 11437 trap 'as_fn_exit 1' 1 2 13 15 11438} 11439# Create a (secure) tmp directory for tmp files. 11440 11441{ 11442 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11443 test -d "$tmp" 11444} || 11445{ 11446 tmp=./conf$$-$RANDOM 11447 (umask 077 && mkdir "$tmp") 11448} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11449ac_tmp=$tmp 11450 11451# Set up the scripts for CONFIG_FILES section. 11452# No need to generate them if there are no CONFIG_FILES. 11453# This happens for instance with `./config.status config.h'. 11454if test -n "$CONFIG_FILES"; then 11455 11456 11457ac_cr=`echo X | tr X '\015'` 11458# On cygwin, bash can eat \r inside `` if the user requested igncr. 11459# But we know of no other shell where ac_cr would be empty at this 11460# point, so we can use a bashism as a fallback. 11461if test "x$ac_cr" = x; then 11462 eval ac_cr=\$\'\\r\' 11463fi 11464ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11465if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11466 ac_cs_awk_cr='\\r' 11467else 11468 ac_cs_awk_cr=$ac_cr 11469fi 11470 11471echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11472_ACEOF 11473 11474 11475{ 11476 echo "cat >conf$$subs.awk <<_ACEOF" && 11477 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11478 echo "_ACEOF" 11479} >conf$$subs.sh || 11480 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11481ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11482ac_delim='%!_!# ' 11483for ac_last_try in false false false false false :; do 11484 . ./conf$$subs.sh || 11485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11486 11487 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11488 if test $ac_delim_n = $ac_delim_num; then 11489 break 11490 elif $ac_last_try; then 11491 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11492 else 11493 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11494 fi 11495done 11496rm -f conf$$subs.sh 11497 11498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11499cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11500_ACEOF 11501sed -n ' 11502h 11503s/^/S["/; s/!.*/"]=/ 11504p 11505g 11506s/^[^!]*!// 11507:repl 11508t repl 11509s/'"$ac_delim"'$// 11510t delim 11511:nl 11512h 11513s/\(.\{148\}\)..*/\1/ 11514t more1 11515s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11516p 11517n 11518b repl 11519:more1 11520s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11521p 11522g 11523s/.\{148\}// 11524t nl 11525:delim 11526h 11527s/\(.\{148\}\)..*/\1/ 11528t more2 11529s/["\\]/\\&/g; s/^/"/; s/$/"/ 11530p 11531b 11532:more2 11533s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11534p 11535g 11536s/.\{148\}// 11537t delim 11538' <conf$$subs.awk | sed ' 11539/^[^""]/{ 11540 N 11541 s/\n// 11542} 11543' >>$CONFIG_STATUS || ac_write_fail=1 11544rm -f conf$$subs.awk 11545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11546_ACAWK 11547cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11548 for (key in S) S_is_set[key] = 1 11549 FS = "" 11550 11551} 11552{ 11553 line = $ 0 11554 nfields = split(line, field, "@") 11555 substed = 0 11556 len = length(field[1]) 11557 for (i = 2; i < nfields; i++) { 11558 key = field[i] 11559 keylen = length(key) 11560 if (S_is_set[key]) { 11561 value = S[key] 11562 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11563 len += length(value) + length(field[++i]) 11564 substed = 1 11565 } else 11566 len += 1 + keylen 11567 } 11568 11569 print line 11570} 11571 11572_ACAWK 11573_ACEOF 11574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11575if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11576 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11577else 11578 cat 11579fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11580 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11581_ACEOF 11582 11583# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11584# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11585# trailing colons and then remove the whole line if VPATH becomes empty 11586# (actually we leave an empty line to preserve line numbers). 11587if test "x$srcdir" = x.; then 11588 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11589h 11590s/// 11591s/^/:/ 11592s/[ ]*$/:/ 11593s/:\$(srcdir):/:/g 11594s/:\${srcdir}:/:/g 11595s/:@srcdir@:/:/g 11596s/^:*// 11597s/:*$// 11598x 11599s/\(=[ ]*\).*/\1/ 11600G 11601s/\n// 11602s/^[^=]*=[ ]*$// 11603}' 11604fi 11605 11606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11607fi # test -n "$CONFIG_FILES" 11608 11609# Set up the scripts for CONFIG_HEADERS section. 11610# No need to generate them if there are no CONFIG_HEADERS. 11611# This happens for instance with `./config.status Makefile'. 11612if test -n "$CONFIG_HEADERS"; then 11613cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11614BEGIN { 11615_ACEOF 11616 11617# Transform confdefs.h into an awk script `defines.awk', embedded as 11618# here-document in config.status, that substitutes the proper values into 11619# config.h.in to produce config.h. 11620 11621# Create a delimiter string that does not exist in confdefs.h, to ease 11622# handling of long lines. 11623ac_delim='%!_!# ' 11624for ac_last_try in false false :; do 11625 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11626 if test -z "$ac_tt"; then 11627 break 11628 elif $ac_last_try; then 11629 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11630 else 11631 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11632 fi 11633done 11634 11635# For the awk script, D is an array of macro values keyed by name, 11636# likewise P contains macro parameters if any. Preserve backslash 11637# newline sequences. 11638 11639ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11640sed -n ' 11641s/.\{148\}/&'"$ac_delim"'/g 11642t rset 11643:rset 11644s/^[ ]*#[ ]*define[ ][ ]*/ / 11645t def 11646d 11647:def 11648s/\\$// 11649t bsnl 11650s/["\\]/\\&/g 11651s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11652D["\1"]=" \3"/p 11653s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11654d 11655:bsnl 11656s/["\\]/\\&/g 11657s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11658D["\1"]=" \3\\\\\\n"\\/p 11659t cont 11660s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11661t cont 11662d 11663:cont 11664n 11665s/.\{148\}/&'"$ac_delim"'/g 11666t clear 11667:clear 11668s/\\$// 11669t bsnlc 11670s/["\\]/\\&/g; s/^/"/; s/$/"/p 11671d 11672:bsnlc 11673s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11674b cont 11675' <confdefs.h | sed ' 11676s/'"$ac_delim"'/"\\\ 11677"/g' >>$CONFIG_STATUS || ac_write_fail=1 11678 11679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11680 for (key in D) D_is_set[key] = 1 11681 FS = "" 11682} 11683/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11684 line = \$ 0 11685 split(line, arg, " ") 11686 if (arg[1] == "#") { 11687 defundef = arg[2] 11688 mac1 = arg[3] 11689 } else { 11690 defundef = substr(arg[1], 2) 11691 mac1 = arg[2] 11692 } 11693 split(mac1, mac2, "(") #) 11694 macro = mac2[1] 11695 prefix = substr(line, 1, index(line, defundef) - 1) 11696 if (D_is_set[macro]) { 11697 # Preserve the white space surrounding the "#". 11698 print prefix "define", macro P[macro] D[macro] 11699 next 11700 } else { 11701 # Replace #undef with comments. This is necessary, for example, 11702 # in the case of _POSIX_SOURCE, which is predefined and required 11703 # on some systems where configure will not decide to define it. 11704 if (defundef == "undef") { 11705 print "/*", prefix defundef, macro, "*/" 11706 next 11707 } 11708 } 11709} 11710{ print } 11711_ACAWK 11712_ACEOF 11713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11714 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11715fi # test -n "$CONFIG_HEADERS" 11716 11717 11718eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11719shift 11720for ac_tag 11721do 11722 case $ac_tag in 11723 :[FHLC]) ac_mode=$ac_tag; continue;; 11724 esac 11725 case $ac_mode$ac_tag in 11726 :[FHL]*:*);; 11727 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11728 :[FH]-) ac_tag=-:-;; 11729 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11730 esac 11731 ac_save_IFS=$IFS 11732 IFS=: 11733 set x $ac_tag 11734 IFS=$ac_save_IFS 11735 shift 11736 ac_file=$1 11737 shift 11738 11739 case $ac_mode in 11740 :L) ac_source=$1;; 11741 :[FH]) 11742 ac_file_inputs= 11743 for ac_f 11744 do 11745 case $ac_f in 11746 -) ac_f="$ac_tmp/stdin";; 11747 *) # Look for the file first in the build tree, then in the source tree 11748 # (if the path is not absolute). The absolute path cannot be DOS-style, 11749 # because $ac_f cannot contain `:'. 11750 test -f "$ac_f" || 11751 case $ac_f in 11752 [\\/$]*) false;; 11753 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11754 esac || 11755 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11756 esac 11757 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11758 as_fn_append ac_file_inputs " '$ac_f'" 11759 done 11760 11761 # Let's still pretend it is `configure' which instantiates (i.e., don't 11762 # use $as_me), people would be surprised to read: 11763 # /* config.h. Generated by config.status. */ 11764 configure_input='Generated from '` 11765 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11766 `' by configure.' 11767 if test x"$ac_file" != x-; then 11768 configure_input="$ac_file. $configure_input" 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11770$as_echo "$as_me: creating $ac_file" >&6;} 11771 fi 11772 # Neutralize special characters interpreted by sed in replacement strings. 11773 case $configure_input in #( 11774 *\&* | *\|* | *\\* ) 11775 ac_sed_conf_input=`$as_echo "$configure_input" | 11776 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11777 *) ac_sed_conf_input=$configure_input;; 11778 esac 11779 11780 case $ac_tag in 11781 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11783 esac 11784 ;; 11785 esac 11786 11787 ac_dir=`$as_dirname -- "$ac_file" || 11788$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11789 X"$ac_file" : 'X\(//\)[^/]' \| \ 11790 X"$ac_file" : 'X\(//\)$' \| \ 11791 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11792$as_echo X"$ac_file" | 11793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11794 s//\1/ 11795 q 11796 } 11797 /^X\(\/\/\)[^/].*/{ 11798 s//\1/ 11799 q 11800 } 11801 /^X\(\/\/\)$/{ 11802 s//\1/ 11803 q 11804 } 11805 /^X\(\/\).*/{ 11806 s//\1/ 11807 q 11808 } 11809 s/.*/./; q'` 11810 as_dir="$ac_dir"; as_fn_mkdir_p 11811 ac_builddir=. 11812 11813case "$ac_dir" in 11814.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11815*) 11816 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11817 # A ".." for each directory in $ac_dir_suffix. 11818 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11819 case $ac_top_builddir_sub in 11820 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11821 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11822 esac ;; 11823esac 11824ac_abs_top_builddir=$ac_pwd 11825ac_abs_builddir=$ac_pwd$ac_dir_suffix 11826# for backward compatibility: 11827ac_top_builddir=$ac_top_build_prefix 11828 11829case $srcdir in 11830 .) # We are building in place. 11831 ac_srcdir=. 11832 ac_top_srcdir=$ac_top_builddir_sub 11833 ac_abs_top_srcdir=$ac_pwd ;; 11834 [\\/]* | ?:[\\/]* ) # Absolute name. 11835 ac_srcdir=$srcdir$ac_dir_suffix; 11836 ac_top_srcdir=$srcdir 11837 ac_abs_top_srcdir=$srcdir ;; 11838 *) # Relative name. 11839 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11840 ac_top_srcdir=$ac_top_build_prefix$srcdir 11841 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11842esac 11843ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11844 11845 11846 case $ac_mode in 11847 :F) 11848 # 11849 # CONFIG_FILE 11850 # 11851 11852 case $INSTALL in 11853 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11854 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11855 esac 11856 ac_MKDIR_P=$MKDIR_P 11857 case $MKDIR_P in 11858 [\\/$]* | ?:[\\/]* ) ;; 11859 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11860 esac 11861_ACEOF 11862 11863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11864# If the template does not know about datarootdir, expand it. 11865# FIXME: This hack should be removed a few years after 2.60. 11866ac_datarootdir_hack=; ac_datarootdir_seen= 11867ac_sed_dataroot=' 11868/datarootdir/ { 11869 p 11870 q 11871} 11872/@datadir@/p 11873/@docdir@/p 11874/@infodir@/p 11875/@localedir@/p 11876/@mandir@/p' 11877case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11878*datarootdir*) ac_datarootdir_seen=yes;; 11879*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11881$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11882_ACEOF 11883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11884 ac_datarootdir_hack=' 11885 s&@datadir@&$datadir&g 11886 s&@docdir@&$docdir&g 11887 s&@infodir@&$infodir&g 11888 s&@localedir@&$localedir&g 11889 s&@mandir@&$mandir&g 11890 s&\\\${datarootdir}&$datarootdir&g' ;; 11891esac 11892_ACEOF 11893 11894# Neutralize VPATH when `$srcdir' = `.'. 11895# Shell code in configure.ac might set extrasub. 11896# FIXME: do we really want to maintain this feature? 11897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11898ac_sed_extra="$ac_vpsub 11899$extrasub 11900_ACEOF 11901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11902:t 11903/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11904s|@configure_input@|$ac_sed_conf_input|;t t 11905s&@top_builddir@&$ac_top_builddir_sub&;t t 11906s&@top_build_prefix@&$ac_top_build_prefix&;t t 11907s&@srcdir@&$ac_srcdir&;t t 11908s&@abs_srcdir@&$ac_abs_srcdir&;t t 11909s&@top_srcdir@&$ac_top_srcdir&;t t 11910s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11911s&@builddir@&$ac_builddir&;t t 11912s&@abs_builddir@&$ac_abs_builddir&;t t 11913s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11914s&@INSTALL@&$ac_INSTALL&;t t 11915s&@MKDIR_P@&$ac_MKDIR_P&;t t 11916$ac_datarootdir_hack 11917" 11918eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11919 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11920 11921test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11922 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11923 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11924 "$ac_tmp/out"`; test -z "$ac_out"; } && 11925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11926which seems to be undefined. Please make sure it is defined" >&5 11927$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11928which seems to be undefined. Please make sure it is defined" >&2;} 11929 11930 rm -f "$ac_tmp/stdin" 11931 case $ac_file in 11932 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11933 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11934 esac \ 11935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11936 ;; 11937 :H) 11938 # 11939 # CONFIG_HEADER 11940 # 11941 if test x"$ac_file" != x-; then 11942 { 11943 $as_echo "/* $configure_input */" \ 11944 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11945 } >"$ac_tmp/config.h" \ 11946 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11947 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11949$as_echo "$as_me: $ac_file is unchanged" >&6;} 11950 else 11951 rm -f "$ac_file" 11952 mv "$ac_tmp/config.h" "$ac_file" \ 11953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11954 fi 11955 else 11956 $as_echo "/* $configure_input */" \ 11957 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11958 || as_fn_error $? "could not create -" "$LINENO" 5 11959 fi 11960# Compute "$ac_file"'s index in $config_headers. 11961_am_arg="$ac_file" 11962_am_stamp_count=1 11963for _am_header in $config_headers :; do 11964 case $_am_header in 11965 $_am_arg | $_am_arg:* ) 11966 break ;; 11967 * ) 11968 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11969 esac 11970done 11971echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11972$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11973 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11974 X"$_am_arg" : 'X\(//\)$' \| \ 11975 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11976$as_echo X"$_am_arg" | 11977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11978 s//\1/ 11979 q 11980 } 11981 /^X\(\/\/\)[^/].*/{ 11982 s//\1/ 11983 q 11984 } 11985 /^X\(\/\/\)$/{ 11986 s//\1/ 11987 q 11988 } 11989 /^X\(\/\).*/{ 11990 s//\1/ 11991 q 11992 } 11993 s/.*/./; q'`/stamp-h$_am_stamp_count 11994 ;; 11995 11996 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11997$as_echo "$as_me: executing $ac_file commands" >&6;} 11998 ;; 11999 esac 12000 12001 12002 case $ac_file$ac_mode in 12003 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12004 # Older Autoconf quotes --file arguments for eval, but not when files 12005 # are listed without --file. Let's play safe and only enable the eval 12006 # if we detect the quoting. 12007 case $CONFIG_FILES in 12008 *\'*) eval set x "$CONFIG_FILES" ;; 12009 *) set x $CONFIG_FILES ;; 12010 esac 12011 shift 12012 for mf 12013 do 12014 # Strip MF so we end up with the name of the file. 12015 mf=`echo "$mf" | sed -e 's/:.*$//'` 12016 # Check whether this is an Automake generated Makefile or not. 12017 # We used to match only the files named 'Makefile.in', but 12018 # some people rename them; so instead we look at the file content. 12019 # Grep'ing the first line is not enough: some people post-process 12020 # each Makefile.in and add a new line on top of each file to say so. 12021 # Grep'ing the whole file is not good either: AIX grep has a line 12022 # limit of 2048, but all sed's we know have understand at least 4000. 12023 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12024 dirpart=`$as_dirname -- "$mf" || 12025$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12026 X"$mf" : 'X\(//\)[^/]' \| \ 12027 X"$mf" : 'X\(//\)$' \| \ 12028 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12029$as_echo X"$mf" | 12030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12031 s//\1/ 12032 q 12033 } 12034 /^X\(\/\/\)[^/].*/{ 12035 s//\1/ 12036 q 12037 } 12038 /^X\(\/\/\)$/{ 12039 s//\1/ 12040 q 12041 } 12042 /^X\(\/\).*/{ 12043 s//\1/ 12044 q 12045 } 12046 s/.*/./; q'` 12047 else 12048 continue 12049 fi 12050 # Extract the definition of DEPDIR, am__include, and am__quote 12051 # from the Makefile without running 'make'. 12052 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12053 test -z "$DEPDIR" && continue 12054 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12055 test -z "$am__include" && continue 12056 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12057 # Find all dependency output files, they are included files with 12058 # $(DEPDIR) in their names. We invoke sed twice because it is the 12059 # simplest approach to changing $(DEPDIR) to its actual value in the 12060 # expansion. 12061 for file in `sed -n " 12062 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12063 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12064 # Make sure the directory exists. 12065 test -f "$dirpart/$file" && continue 12066 fdir=`$as_dirname -- "$file" || 12067$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12068 X"$file" : 'X\(//\)[^/]' \| \ 12069 X"$file" : 'X\(//\)$' \| \ 12070 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12071$as_echo X"$file" | 12072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12073 s//\1/ 12074 q 12075 } 12076 /^X\(\/\/\)[^/].*/{ 12077 s//\1/ 12078 q 12079 } 12080 /^X\(\/\/\)$/{ 12081 s//\1/ 12082 q 12083 } 12084 /^X\(\/\).*/{ 12085 s//\1/ 12086 q 12087 } 12088 s/.*/./; q'` 12089 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12090 # echo "creating $dirpart/$file" 12091 echo '# dummy' > "$dirpart/$file" 12092 done 12093 done 12094} 12095 ;; 12096 12097 esac 12098done # for ac_tag 12099 12100 12101as_fn_exit 0 12102_ACEOF 12103ac_clean_files=$ac_clean_files_save 12104 12105test $ac_write_fail = 0 || 12106 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12107 12108 12109# configure is writing to config.log, and then calls config.status. 12110# config.status does its own redirection, appending to config.log. 12111# Unfortunately, on DOS this fails, as config.log is still kept open 12112# by configure, so config.status won't be able to write to it; its 12113# output is simply discarded. So we exec the FD to /dev/null, 12114# effectively closing config.log, so it can be properly (re)opened and 12115# appended to by config.status. When coming back to configure, we 12116# need to make the FD available again. 12117if test "$no_create" != yes; then 12118 ac_cs_success=: 12119 ac_config_status_args= 12120 test "$silent" = yes && 12121 ac_config_status_args="$ac_config_status_args --quiet" 12122 exec 5>/dev/null 12123 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12124 exec 5>>config.log 12125 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12126 # would make configure fail if this is the last instruction. 12127 $ac_cs_success || as_fn_exit 1 12128fi 12129if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12131$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12132fi 12133 12134