configure revision 76028eb6
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xfs 1.2.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfs/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: https://gitlab.freedesktop.org/xorg/app/xfs/issues 272$0: about your system, including any error possibly output 273$0: before this message. Then install a modern shell, or 274$0: manually run the script under such a shell if you do 275$0: have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299 300# as_fn_set_status STATUS 301# ----------------------- 302# Set $? to STATUS, without forking. 303as_fn_set_status () 304{ 305 return $1 306} # as_fn_set_status 307 308# as_fn_exit STATUS 309# ----------------- 310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311as_fn_exit () 312{ 313 set +e 314 as_fn_set_status $1 315 exit $1 316} # as_fn_exit 317# as_fn_nop 318# --------- 319# Do nothing but, unlike ":", preserve the value of $?. 320as_fn_nop () 321{ 322 return $? 323} 324as_nop=as_fn_nop 325 326# as_fn_mkdir_p 327# ------------- 328# Create "$as_dir" as a directory, including parents if necessary. 329as_fn_mkdir_p () 330{ 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372} # as_fn_mkdir_p 373 374# as_fn_executable_p FILE 375# ----------------------- 376# Test if FILE is an executable regular file. 377as_fn_executable_p () 378{ 379 test -f "$1" && test -x "$1" 380} # as_fn_executable_p 381# as_fn_append VAR VALUE 382# ---------------------- 383# Append the text in VALUE to the end of the definition contained in VAR. Take 384# advantage of any shell optimizations that allow amortized linear growth over 385# repeated appends, instead of the typical quadratic growth present in naive 386# implementations. 387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398fi # as_fn_append 399 400# as_fn_arith ARG... 401# ------------------ 402# Perform arithmetic evaluation on the ARGs, and store the result in the 403# global $as_val. Take advantage of shells that can avoid forks. The arguments 404# must be portable across $(()) and expr. 405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416fi # as_fn_arith 417 418# as_fn_nop 419# --------- 420# Do nothing but, unlike ":", preserve the value of $?. 421as_fn_nop () 422{ 423 return $? 424} 425as_nop=as_fn_nop 426 427# as_fn_error STATUS ERROR [LINENO LOG_FD] 428# ---------------------------------------- 429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431# script with STATUS, using 1 if that was 0. 432as_fn_error () 433{ 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441} # as_fn_error 442 443if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446else 447 as_expr=false 448fi 449 450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452else 453 as_basename=false 454fi 455 456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458else 459 as_dirname=false 460fi 461 462as_me=`$as_basename -- "$0" || 463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481# Avoid depending upon Character Ranges. 482as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485as_cr_digits='0123456789' 486as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547 548rm -f conf$$ conf$$.exe conf$$.file 549if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554fi 555if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569else 570 as_ln_s='cp -pR' 571fi 572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573rmdir conf$$.dir 2>/dev/null 574 575if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580fi 581 582as_test_x='test -x' 583as_executable_p=as_fn_executable_p 584 585# Sed expression to map a string onto a valid CPP name. 586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588# Sed expression to map a string onto a valid variable name. 589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591as_awk_strverscmp=' 592 # Use only awk features that work with 7th edition Unix awk (1978). 593 # My, what an old awk you have, Mr. Solaris! 594 END { 595 while (length(v1) && length(v2)) { 596 # Set d1 to be the next thing to compare from v1, and likewise for d2. 597 # Normally this is a single character, but if v1 and v2 contain digits, 598 # compare them as integers and fractions as strverscmp does. 599 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 600 # Split v1 and v2 into their leading digit string components d1 and d2, 601 # and advance v1 and v2 past the leading digit strings. 602 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 603 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 604 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 605 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 606 if (d1 ~ /^0/) { 607 if (d2 ~ /^0/) { 608 # Compare two fractions. 609 while (d1 ~ /^0/ && d2 ~ /^0/) { 610 d1 = substr(d1, 2); len1-- 611 d2 = substr(d2, 2); len2-- 612 } 613 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 614 # The two components differ in length, and the common prefix 615 # contains only leading zeros. Consider the longer to be less. 616 d1 = -len1 617 d2 = -len2 618 } else { 619 # Otherwise, compare as strings. 620 d1 = "x" d1 621 d2 = "x" d2 622 } 623 } else { 624 # A fraction is less than an integer. 625 exit 1 626 } 627 } else { 628 if (d2 ~ /^0/) { 629 # An integer is greater than a fraction. 630 exit 2 631 } else { 632 # Compare two integers. 633 d1 += 0 634 d2 += 0 635 } 636 } 637 } else { 638 # The normal case, without worrying about digits. 639 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 640 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 641 } 642 if (d1 < d2) exit 1 643 if (d1 > d2) exit 2 644 } 645 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 646 # which mishandles some comparisons of empty strings to integers. 647 if (length(v2)) exit 1 648 if (length(v1)) exit 2 649 } 650' 651 652test -n "$DJDIR" || exec 7<&0 </dev/null 653exec 6>&1 654 655# Name of the host. 656# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 657# so uname gets run too. 658ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 659 660# 661# Initializations. 662# 663ac_default_prefix=/usr/local 664ac_clean_files= 665ac_config_libobj_dir=. 666LIBOBJS= 667cross_compiling=no 668subdirs= 669MFLAGS= 670MAKEFLAGS= 671 672# Identity of this package. 673PACKAGE_NAME='xfs' 674PACKAGE_TARNAME='xfs' 675PACKAGE_VERSION='1.2.1' 676PACKAGE_STRING='xfs 1.2.1' 677PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xfs/issues' 678PACKAGE_URL='' 679 680# Factoring default headers for most tests. 681ac_includes_default="\ 682#include <stddef.h> 683#ifdef HAVE_STDIO_H 684# include <stdio.h> 685#endif 686#ifdef HAVE_STDLIB_H 687# include <stdlib.h> 688#endif 689#ifdef HAVE_STRING_H 690# include <string.h> 691#endif 692#ifdef HAVE_INTTYPES_H 693# include <inttypes.h> 694#endif 695#ifdef HAVE_STDINT_H 696# include <stdint.h> 697#endif 698#ifdef HAVE_STRINGS_H 699# include <strings.h> 700#endif 701#ifdef HAVE_SYS_TYPES_H 702# include <sys/types.h> 703#endif 704#ifdef HAVE_SYS_STAT_H 705# include <sys/stat.h> 706#endif 707#ifdef HAVE_UNISTD_H 708# include <unistd.h> 709#endif" 710 711ac_header_c_list= 712ac_subst_vars='am__EXEEXT_FALSE 713am__EXEEXT_TRUE 714LTLIBOBJS 715LIBOBJS 716XFS_LIBS 717XFS_CFLAGS 718FONTPATH 719FONT100DPIDIR 720FONT75DPIDIR 721FONTTYPE1DIR 722FONTTTFDIR 723FONTOTFDIR 724FONTMISCDIR 725FONTROOTDIR 726CONFIG_FILE_PATH 727CONFIG_FILE_DESC 728DEFAULT_CONFIG_FILE 729LINT_FALSE 730LINT_TRUE 731LINT_FLAGS 732LINT 733HAVE_STYLESHEETS_FALSE 734HAVE_STYLESHEETS_TRUE 735XSL_STYLESHEET 736STYLESHEET_SRCDIR 737XORG_SGML_PATH 738HAVE_FOP_FALSE 739HAVE_FOP_TRUE 740FOP 741HAVE_XMLTO_FALSE 742HAVE_XMLTO_TRUE 743HAVE_XMLTO_TEXT_FALSE 744HAVE_XMLTO_TEXT_TRUE 745XMLTO 746ENABLE_DEVEL_DOCS_FALSE 747ENABLE_DEVEL_DOCS_TRUE 748MAN_SUBSTS 749XORG_MAN_PAGE 750ADMIN_MAN_DIR 751DRIVER_MAN_DIR 752MISC_MAN_DIR 753FILE_MAN_DIR 754LIB_MAN_DIR 755APP_MAN_DIR 756ADMIN_MAN_SUFFIX 757DRIVER_MAN_SUFFIX 758MISC_MAN_SUFFIX 759FILE_MAN_SUFFIX 760LIB_MAN_SUFFIX 761APP_MAN_SUFFIX 762SED 763host_os 764host_vendor 765host_cpu 766host 767build_os 768build_vendor 769build_cpu 770build 771INSTALL_CMD 772PKG_CONFIG_LIBDIR 773PKG_CONFIG_PATH 774PKG_CONFIG 775CHANGELOG_CMD 776STRICT_CFLAGS 777CWARNFLAGS 778BASE_CFLAGS 779AM_BACKSLASH 780AM_DEFAULT_VERBOSITY 781AM_DEFAULT_V 782AM_V 783CSCOPE 784ETAGS 785CTAGS 786am__fastdepCC_FALSE 787am__fastdepCC_TRUE 788CCDEPMODE 789am__nodep 790AMDEPBACKSLASH 791AMDEP_FALSE 792AMDEP_TRUE 793am__include 794DEPDIR 795am__untar 796am__tar 797AMTAR 798am__leading_dot 799SET_MAKE 800AWK 801mkdir_p 802MKDIR_P 803INSTALL_STRIP_PROGRAM 804STRIP 805install_sh 806MAKEINFO 807AUTOHEADER 808AUTOMAKE 809AUTOCONF 810ACLOCAL 811VERSION 812PACKAGE 813CYGPATH_W 814am__isrc 815INSTALL_DATA 816INSTALL_SCRIPT 817INSTALL_PROGRAM 818OBJEXT 819EXEEXT 820ac_ct_CC 821CPPFLAGS 822LDFLAGS 823CFLAGS 824CC 825target_alias 826host_alias 827build_alias 828LIBS 829ECHO_T 830ECHO_N 831ECHO_C 832DEFS 833mandir 834localedir 835libdir 836psdir 837pdfdir 838dvidir 839htmldir 840infodir 841docdir 842oldincludedir 843includedir 844runstatedir 845localstatedir 846sharedstatedir 847sysconfdir 848datadir 849datarootdir 850libexecdir 851sbindir 852bindir 853program_transform_name 854prefix 855exec_prefix 856PACKAGE_URL 857PACKAGE_BUGREPORT 858PACKAGE_STRING 859PACKAGE_VERSION 860PACKAGE_TARNAME 861PACKAGE_NAME 862PATH_SEPARATOR 863SHELL 864am__quote' 865ac_subst_files='' 866ac_user_opts=' 867enable_option_checking 868enable_dependency_tracking 869enable_silent_rules 870enable_selective_werror 871enable_strict_compilation 872enable_devel_docs 873with_xmlto 874with_fop 875with_lint 876with_default_config_file 877with_fontrootdir 878with_fontmiscdir 879with_fontotfdir 880with_fontttfdir 881with_fonttype1dir 882with_font75dpidir 883with_font100dpidir 884with_default_font_path 885enable_inetd 886enable_syslog 887enable_unix_transport 888enable_tcp_transport 889enable_ipv6 890enable_local_transport 891' 892 ac_precious_vars='build_alias 893host_alias 894target_alias 895CC 896CFLAGS 897LDFLAGS 898LIBS 899CPPFLAGS 900PKG_CONFIG 901PKG_CONFIG_PATH 902PKG_CONFIG_LIBDIR 903XMLTO 904FOP 905LINT 906LINT_FLAGS 907XFS_CFLAGS 908XFS_LIBS' 909 910 911# Initialize some variables set by options. 912ac_init_help= 913ac_init_version=false 914ac_unrecognized_opts= 915ac_unrecognized_sep= 916# The variables have the same names as the options, with 917# dashes changed to underlines. 918cache_file=/dev/null 919exec_prefix=NONE 920no_create= 921no_recursion= 922prefix=NONE 923program_prefix=NONE 924program_suffix=NONE 925program_transform_name=s,x,x, 926silent= 927site= 928srcdir= 929verbose= 930x_includes=NONE 931x_libraries=NONE 932 933# Installation directory options. 934# These are left unexpanded so users can "make install exec_prefix=/foo" 935# and all the variables that are supposed to be based on exec_prefix 936# by default will actually change. 937# Use braces instead of parens because sh, perl, etc. also accept them. 938# (The list follows the same order as the GNU Coding Standards.) 939bindir='${exec_prefix}/bin' 940sbindir='${exec_prefix}/sbin' 941libexecdir='${exec_prefix}/libexec' 942datarootdir='${prefix}/share' 943datadir='${datarootdir}' 944sysconfdir='${prefix}/etc' 945sharedstatedir='${prefix}/com' 946localstatedir='${prefix}/var' 947runstatedir='${localstatedir}/run' 948includedir='${prefix}/include' 949oldincludedir='/usr/include' 950docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 951infodir='${datarootdir}/info' 952htmldir='${docdir}' 953dvidir='${docdir}' 954pdfdir='${docdir}' 955psdir='${docdir}' 956libdir='${exec_prefix}/lib' 957localedir='${datarootdir}/locale' 958mandir='${datarootdir}/man' 959 960ac_prev= 961ac_dashdash= 962for ac_option 963do 964 # If the previous option needs an argument, assign it. 965 if test -n "$ac_prev"; then 966 eval $ac_prev=\$ac_option 967 ac_prev= 968 continue 969 fi 970 971 case $ac_option in 972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 973 *=) ac_optarg= ;; 974 *) ac_optarg=yes ;; 975 esac 976 977 case $ac_dashdash$ac_option in 978 --) 979 ac_dashdash=yes ;; 980 981 -bindir | --bindir | --bindi | --bind | --bin | --bi) 982 ac_prev=bindir ;; 983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 984 bindir=$ac_optarg ;; 985 986 -build | --build | --buil | --bui | --bu) 987 ac_prev=build_alias ;; 988 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 989 build_alias=$ac_optarg ;; 990 991 -cache-file | --cache-file | --cache-fil | --cache-fi \ 992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 993 ac_prev=cache_file ;; 994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 996 cache_file=$ac_optarg ;; 997 998 --config-cache | -C) 999 cache_file=config.cache ;; 1000 1001 -datadir | --datadir | --datadi | --datad) 1002 ac_prev=datadir ;; 1003 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1004 datadir=$ac_optarg ;; 1005 1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1007 | --dataroo | --dataro | --datar) 1008 ac_prev=datarootdir ;; 1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1011 datarootdir=$ac_optarg ;; 1012 1013 -disable-* | --disable-*) 1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1015 # Reject names that are not valid shell variable names. 1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1017 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1018 ac_useropt_orig=$ac_useropt 1019 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1020 case $ac_user_opts in 1021 *" 1022"enable_$ac_useropt" 1023"*) ;; 1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1025 ac_unrecognized_sep=', ';; 1026 esac 1027 eval enable_$ac_useropt=no ;; 1028 1029 -docdir | --docdir | --docdi | --doc | --do) 1030 ac_prev=docdir ;; 1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1032 docdir=$ac_optarg ;; 1033 1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1035 ac_prev=dvidir ;; 1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1037 dvidir=$ac_optarg ;; 1038 1039 -enable-* | --enable-*) 1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1041 # Reject names that are not valid shell variable names. 1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1043 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1044 ac_useropt_orig=$ac_useropt 1045 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1046 case $ac_user_opts in 1047 *" 1048"enable_$ac_useropt" 1049"*) ;; 1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1051 ac_unrecognized_sep=', ';; 1052 esac 1053 eval enable_$ac_useropt=\$ac_optarg ;; 1054 1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1057 | --exec | --exe | --ex) 1058 ac_prev=exec_prefix ;; 1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1061 | --exec=* | --exe=* | --ex=*) 1062 exec_prefix=$ac_optarg ;; 1063 1064 -gas | --gas | --ga | --g) 1065 # Obsolete; use --with-gas. 1066 with_gas=yes ;; 1067 1068 -help | --help | --hel | --he | -h) 1069 ac_init_help=long ;; 1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1071 ac_init_help=recursive ;; 1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1073 ac_init_help=short ;; 1074 1075 -host | --host | --hos | --ho) 1076 ac_prev=host_alias ;; 1077 -host=* | --host=* | --hos=* | --ho=*) 1078 host_alias=$ac_optarg ;; 1079 1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1081 ac_prev=htmldir ;; 1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1083 | --ht=*) 1084 htmldir=$ac_optarg ;; 1085 1086 -includedir | --includedir | --includedi | --included | --include \ 1087 | --includ | --inclu | --incl | --inc) 1088 ac_prev=includedir ;; 1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1090 | --includ=* | --inclu=* | --incl=* | --inc=*) 1091 includedir=$ac_optarg ;; 1092 1093 -infodir | --infodir | --infodi | --infod | --info | --inf) 1094 ac_prev=infodir ;; 1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1096 infodir=$ac_optarg ;; 1097 1098 -libdir | --libdir | --libdi | --libd) 1099 ac_prev=libdir ;; 1100 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1101 libdir=$ac_optarg ;; 1102 1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1104 | --libexe | --libex | --libe) 1105 ac_prev=libexecdir ;; 1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1107 | --libexe=* | --libex=* | --libe=*) 1108 libexecdir=$ac_optarg ;; 1109 1110 -localedir | --localedir | --localedi | --localed | --locale) 1111 ac_prev=localedir ;; 1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1113 localedir=$ac_optarg ;; 1114 1115 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1116 | --localstate | --localstat | --localsta | --localst | --locals) 1117 ac_prev=localstatedir ;; 1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1120 localstatedir=$ac_optarg ;; 1121 1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1123 ac_prev=mandir ;; 1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1125 mandir=$ac_optarg ;; 1126 1127 -nfp | --nfp | --nf) 1128 # Obsolete; use --without-fp. 1129 with_fp=no ;; 1130 1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1132 | --no-cr | --no-c | -n) 1133 no_create=yes ;; 1134 1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1137 no_recursion=yes ;; 1138 1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1141 | --oldin | --oldi | --old | --ol | --o) 1142 ac_prev=oldincludedir ;; 1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1146 oldincludedir=$ac_optarg ;; 1147 1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1149 ac_prev=prefix ;; 1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1151 prefix=$ac_optarg ;; 1152 1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1154 | --program-pre | --program-pr | --program-p) 1155 ac_prev=program_prefix ;; 1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1158 program_prefix=$ac_optarg ;; 1159 1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1161 | --program-suf | --program-su | --program-s) 1162 ac_prev=program_suffix ;; 1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1165 program_suffix=$ac_optarg ;; 1166 1167 -program-transform-name | --program-transform-name \ 1168 | --program-transform-nam | --program-transform-na \ 1169 | --program-transform-n | --program-transform- \ 1170 | --program-transform | --program-transfor \ 1171 | --program-transfo | --program-transf \ 1172 | --program-trans | --program-tran \ 1173 | --progr-tra | --program-tr | --program-t) 1174 ac_prev=program_transform_name ;; 1175 -program-transform-name=* | --program-transform-name=* \ 1176 | --program-transform-nam=* | --program-transform-na=* \ 1177 | --program-transform-n=* | --program-transform-=* \ 1178 | --program-transform=* | --program-transfor=* \ 1179 | --program-transfo=* | --program-transf=* \ 1180 | --program-trans=* | --program-tran=* \ 1181 | --progr-tra=* | --program-tr=* | --program-t=*) 1182 program_transform_name=$ac_optarg ;; 1183 1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1185 ac_prev=pdfdir ;; 1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1187 pdfdir=$ac_optarg ;; 1188 1189 -psdir | --psdir | --psdi | --psd | --ps) 1190 ac_prev=psdir ;; 1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1192 psdir=$ac_optarg ;; 1193 1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1195 | -silent | --silent | --silen | --sile | --sil) 1196 silent=yes ;; 1197 1198 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1199 | --runstate | --runstat | --runsta | --runst | --runs \ 1200 | --run | --ru | --r) 1201 ac_prev=runstatedir ;; 1202 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1203 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1204 | --run=* | --ru=* | --r=*) 1205 runstatedir=$ac_optarg ;; 1206 1207 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1208 ac_prev=sbindir ;; 1209 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1210 | --sbi=* | --sb=*) 1211 sbindir=$ac_optarg ;; 1212 1213 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1214 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1215 | --sharedst | --shareds | --shared | --share | --shar \ 1216 | --sha | --sh) 1217 ac_prev=sharedstatedir ;; 1218 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1219 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1220 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1221 | --sha=* | --sh=*) 1222 sharedstatedir=$ac_optarg ;; 1223 1224 -site | --site | --sit) 1225 ac_prev=site ;; 1226 -site=* | --site=* | --sit=*) 1227 site=$ac_optarg ;; 1228 1229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1230 ac_prev=srcdir ;; 1231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1232 srcdir=$ac_optarg ;; 1233 1234 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1235 | --syscon | --sysco | --sysc | --sys | --sy) 1236 ac_prev=sysconfdir ;; 1237 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1238 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1239 sysconfdir=$ac_optarg ;; 1240 1241 -target | --target | --targe | --targ | --tar | --ta | --t) 1242 ac_prev=target_alias ;; 1243 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1244 target_alias=$ac_optarg ;; 1245 1246 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1247 verbose=yes ;; 1248 1249 -version | --version | --versio | --versi | --vers | -V) 1250 ac_init_version=: ;; 1251 1252 -with-* | --with-*) 1253 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1254 # Reject names that are not valid shell variable names. 1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1256 as_fn_error $? "invalid package name: \`$ac_useropt'" 1257 ac_useropt_orig=$ac_useropt 1258 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1259 case $ac_user_opts in 1260 *" 1261"with_$ac_useropt" 1262"*) ;; 1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1264 ac_unrecognized_sep=', ';; 1265 esac 1266 eval with_$ac_useropt=\$ac_optarg ;; 1267 1268 -without-* | --without-*) 1269 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1270 # Reject names that are not valid shell variable names. 1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1272 as_fn_error $? "invalid package name: \`$ac_useropt'" 1273 ac_useropt_orig=$ac_useropt 1274 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1275 case $ac_user_opts in 1276 *" 1277"with_$ac_useropt" 1278"*) ;; 1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1280 ac_unrecognized_sep=', ';; 1281 esac 1282 eval with_$ac_useropt=no ;; 1283 1284 --x) 1285 # Obsolete; use --with-x. 1286 with_x=yes ;; 1287 1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1289 | --x-incl | --x-inc | --x-in | --x-i) 1290 ac_prev=x_includes ;; 1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1293 x_includes=$ac_optarg ;; 1294 1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1297 ac_prev=x_libraries ;; 1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1300 x_libraries=$ac_optarg ;; 1301 1302 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1303Try \`$0 --help' for more information" 1304 ;; 1305 1306 *=*) 1307 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1308 # Reject names that are not valid shell variable names. 1309 case $ac_envvar in #( 1310 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1311 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1312 esac 1313 eval $ac_envvar=\$ac_optarg 1314 export $ac_envvar ;; 1315 1316 *) 1317 # FIXME: should be removed in autoconf 3.0. 1318 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1320 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1321 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1322 ;; 1323 1324 esac 1325done 1326 1327if test -n "$ac_prev"; then 1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1329 as_fn_error $? "missing argument to $ac_option" 1330fi 1331 1332if test -n "$ac_unrecognized_opts"; then 1333 case $enable_option_checking in 1334 no) ;; 1335 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1336 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1337 esac 1338fi 1339 1340# Check all directory arguments for consistency. 1341for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1342 datadir sysconfdir sharedstatedir localstatedir includedir \ 1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1344 libdir localedir mandir runstatedir 1345do 1346 eval ac_val=\$$ac_var 1347 # Remove trailing slashes. 1348 case $ac_val in 1349 */ ) 1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1351 eval $ac_var=\$ac_val;; 1352 esac 1353 # Be sure to have absolute directory names. 1354 case $ac_val in 1355 [\\/$]* | ?:[\\/]* ) continue;; 1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1357 esac 1358 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1359done 1360 1361# There might be people who depend on the old broken behavior: `$host' 1362# used to hold the argument of --host etc. 1363# FIXME: To remove some day. 1364build=$build_alias 1365host=$host_alias 1366target=$target_alias 1367 1368# FIXME: To remove some day. 1369if test "x$host_alias" != x; then 1370 if test "x$build_alias" = x; then 1371 cross_compiling=maybe 1372 elif test "x$build_alias" != "x$host_alias"; then 1373 cross_compiling=yes 1374 fi 1375fi 1376 1377ac_tool_prefix= 1378test -n "$host_alias" && ac_tool_prefix=$host_alias- 1379 1380test "$silent" = yes && exec 6>/dev/null 1381 1382 1383ac_pwd=`pwd` && test -n "$ac_pwd" && 1384ac_ls_di=`ls -di .` && 1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1386 as_fn_error $? "working directory cannot be determined" 1387test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1388 as_fn_error $? "pwd does not report name of working directory" 1389 1390 1391# Find the source files, if location was not specified. 1392if test -z "$srcdir"; then 1393 ac_srcdir_defaulted=yes 1394 # Try the directory containing this script, then the parent directory. 1395 ac_confdir=`$as_dirname -- "$as_myself" || 1396$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1397 X"$as_myself" : 'X\(//\)[^/]' \| \ 1398 X"$as_myself" : 'X\(//\)$' \| \ 1399 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1400printf "%s\n" X"$as_myself" | 1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1402 s//\1/ 1403 q 1404 } 1405 /^X\(\/\/\)[^/].*/{ 1406 s//\1/ 1407 q 1408 } 1409 /^X\(\/\/\)$/{ 1410 s//\1/ 1411 q 1412 } 1413 /^X\(\/\).*/{ 1414 s//\1/ 1415 q 1416 } 1417 s/.*/./; q'` 1418 srcdir=$ac_confdir 1419 if test ! -r "$srcdir/$ac_unique_file"; then 1420 srcdir=.. 1421 fi 1422else 1423 ac_srcdir_defaulted=no 1424fi 1425if test ! -r "$srcdir/$ac_unique_file"; then 1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1427 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1428fi 1429ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1430ac_abs_confdir=`( 1431 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1432 pwd)` 1433# When building in place, set srcdir=. 1434if test "$ac_abs_confdir" = "$ac_pwd"; then 1435 srcdir=. 1436fi 1437# Remove unnecessary trailing slashes from srcdir. 1438# Double slashes in file names in object file debugging info 1439# mess up M-x gdb in Emacs. 1440case $srcdir in 1441*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1442esac 1443for ac_var in $ac_precious_vars; do 1444 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1445 eval ac_env_${ac_var}_value=\$${ac_var} 1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1447 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1448done 1449 1450# 1451# Report the --help message. 1452# 1453if test "$ac_init_help" = "long"; then 1454 # Omit some internal or obsolete options to make the list less imposing. 1455 # This message is too long to be a string in the A/UX 3.1 sh. 1456 cat <<_ACEOF 1457\`configure' configures xfs 1.2.1 to adapt to many kinds of systems. 1458 1459Usage: $0 [OPTION]... [VAR=VALUE]... 1460 1461To assign environment variables (e.g., CC, CFLAGS...), specify them as 1462VAR=VALUE. See below for descriptions of some of the useful variables. 1463 1464Defaults for the options are specified in brackets. 1465 1466Configuration: 1467 -h, --help display this help and exit 1468 --help=short display options specific to this package 1469 --help=recursive display the short help of all the included packages 1470 -V, --version display version information and exit 1471 -q, --quiet, --silent do not print \`checking ...' messages 1472 --cache-file=FILE cache test results in FILE [disabled] 1473 -C, --config-cache alias for \`--cache-file=config.cache' 1474 -n, --no-create do not create output files 1475 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1476 1477Installation directories: 1478 --prefix=PREFIX install architecture-independent files in PREFIX 1479 [$ac_default_prefix] 1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1481 [PREFIX] 1482 1483By default, \`make install' will install all the files in 1484\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1485an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1486for instance \`--prefix=\$HOME'. 1487 1488For better control, use the options below. 1489 1490Fine tuning of the installation directories: 1491 --bindir=DIR user executables [EPREFIX/bin] 1492 --sbindir=DIR system admin executables [EPREFIX/sbin] 1493 --libexecdir=DIR program executables [EPREFIX/libexec] 1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1497 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1498 --libdir=DIR object code libraries [EPREFIX/lib] 1499 --includedir=DIR C header files [PREFIX/include] 1500 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1503 --infodir=DIR info documentation [DATAROOTDIR/info] 1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1505 --mandir=DIR man documentation [DATAROOTDIR/man] 1506 --docdir=DIR documentation root [DATAROOTDIR/doc/xfs] 1507 --htmldir=DIR html documentation [DOCDIR] 1508 --dvidir=DIR dvi documentation [DOCDIR] 1509 --pdfdir=DIR pdf documentation [DOCDIR] 1510 --psdir=DIR ps documentation [DOCDIR] 1511_ACEOF 1512 1513 cat <<\_ACEOF 1514 1515Program names: 1516 --program-prefix=PREFIX prepend PREFIX to installed program names 1517 --program-suffix=SUFFIX append SUFFIX to installed program names 1518 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1519 1520System types: 1521 --build=BUILD configure for building on BUILD [guessed] 1522 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1523_ACEOF 1524fi 1525 1526if test -n "$ac_init_help"; then 1527 case $ac_init_help in 1528 short | recursive ) echo "Configuration of xfs 1.2.1:";; 1529 esac 1530 cat <<\_ACEOF 1531 1532Optional Features: 1533 --disable-option-checking ignore unrecognized --enable/--with options 1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1536 --enable-dependency-tracking 1537 do not reject slow dependency extractors 1538 --disable-dependency-tracking 1539 speeds up one-time build 1540 --enable-silent-rules less verbose build output (undo: "make V=1") 1541 --disable-silent-rules verbose build output (undo: "make V=0") 1542 --disable-selective-werror 1543 Turn off selective compiler errors. (default: 1544 enabled) 1545 --enable-strict-compilation 1546 Enable all warnings from compiler and make them 1547 errors (default: disabled) 1548 --enable-devel-docs Enable building the developer documentation 1549 (default: yes) 1550 --enable-inetd Support -inetd flag for starting from inetd 1551 (default: enabled) 1552 --enable-syslog Support option for logging via syslog (default: 1553 enabled) 1554 --enable-unix-transport Enable UNIX domain socket transport 1555 --enable-tcp-transport Enable TCP socket transport 1556 --enable-ipv6 Enable IPv6 support 1557 --enable-local-transport 1558 Enable os-specific local transport 1559 1560Optional Packages: 1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1563 --with-xmlto Use xmlto to regenerate documentation (default: 1564 auto) 1565 --with-fop Use fop to regenerate documentation (default: auto) 1566 --with-lint Use a lint-style source code checker (default: 1567 disabled) 1568 --with-default-config-file=PATH 1569 comma-separated list of paths to look for config 1570 file when not specified (default: 1571 ${sysconfdir}/X11/fs/config) 1572 --with-fontrootdir=DIR Path to root directory for font files 1573 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc] 1574 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF] 1575 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF] 1576 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1] 1577 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi] 1578 --with-font100dpidir=DIR 1579 Path to 100dpi files [FONTROOTDIR/100dpi] 1580 --with-default-font-path=PATH 1581 Comma separated list of font dirs 1582 1583Some influential environment variables: 1584 CC C compiler command 1585 CFLAGS C compiler flags 1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1587 nonstandard directory <lib dir> 1588 LIBS libraries to pass to the linker, e.g. -l<library> 1589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1590 you have headers in a nonstandard directory <include dir> 1591 PKG_CONFIG path to pkg-config utility 1592 PKG_CONFIG_PATH 1593 directories to add to pkg-config's search path 1594 PKG_CONFIG_LIBDIR 1595 path overriding pkg-config's built-in search path 1596 XMLTO Path to xmlto command 1597 FOP Path to fop command 1598 LINT Path to a lint-style command 1599 LINT_FLAGS Flags for the lint-style command 1600 XFS_CFLAGS C compiler flags for XFS, overriding pkg-config 1601 XFS_LIBS linker flags for XFS, overriding pkg-config 1602 1603Use these variables to override the choices made by `configure' or to help 1604it to find libraries and programs with nonstandard names/locations. 1605 1606Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfs/issues>. 1607_ACEOF 1608ac_status=$? 1609fi 1610 1611if test "$ac_init_help" = "recursive"; then 1612 # If there are subdirs, report their specific --help. 1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1614 test -d "$ac_dir" || 1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1616 continue 1617 ac_builddir=. 1618 1619case "$ac_dir" in 1620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1621*) 1622 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1623 # A ".." for each directory in $ac_dir_suffix. 1624 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1625 case $ac_top_builddir_sub in 1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1628 esac ;; 1629esac 1630ac_abs_top_builddir=$ac_pwd 1631ac_abs_builddir=$ac_pwd$ac_dir_suffix 1632# for backward compatibility: 1633ac_top_builddir=$ac_top_build_prefix 1634 1635case $srcdir in 1636 .) # We are building in place. 1637 ac_srcdir=. 1638 ac_top_srcdir=$ac_top_builddir_sub 1639 ac_abs_top_srcdir=$ac_pwd ;; 1640 [\\/]* | ?:[\\/]* ) # Absolute name. 1641 ac_srcdir=$srcdir$ac_dir_suffix; 1642 ac_top_srcdir=$srcdir 1643 ac_abs_top_srcdir=$srcdir ;; 1644 *) # Relative name. 1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1646 ac_top_srcdir=$ac_top_build_prefix$srcdir 1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1648esac 1649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1650 1651 cd "$ac_dir" || { ac_status=$?; continue; } 1652 # Check for configure.gnu first; this name is used for a wrapper for 1653 # Metaconfig's "Configure" on case-insensitive file systems. 1654 if test -f "$ac_srcdir/configure.gnu"; then 1655 echo && 1656 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1657 elif test -f "$ac_srcdir/configure"; then 1658 echo && 1659 $SHELL "$ac_srcdir/configure" --help=recursive 1660 else 1661 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1662 fi || ac_status=$? 1663 cd "$ac_pwd" || { ac_status=$?; break; } 1664 done 1665fi 1666 1667test -n "$ac_init_help" && exit $ac_status 1668if $ac_init_version; then 1669 cat <<\_ACEOF 1670xfs configure 1.2.1 1671generated by GNU Autoconf 2.71 1672 1673Copyright (C) 2021 Free Software Foundation, Inc. 1674This configure script is free software; the Free Software Foundation 1675gives unlimited permission to copy, distribute and modify it. 1676_ACEOF 1677 exit 1678fi 1679 1680## ------------------------ ## 1681## Autoconf initialization. ## 1682## ------------------------ ## 1683 1684# ac_fn_c_try_compile LINENO 1685# -------------------------- 1686# Try to compile conftest.$ac_ext, and return whether this succeeded. 1687ac_fn_c_try_compile () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 rm -f conftest.$ac_objext conftest.beam 1691 if { { ac_try="$ac_compile" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697printf "%s\n" "$ac_try_echo"; } >&5 1698 (eval "$ac_compile") 2>conftest.err 1699 ac_status=$? 1700 if test -s conftest.err; then 1701 grep -v '^ *+' conftest.err >conftest.er1 1702 cat conftest.er1 >&5 1703 mv -f conftest.er1 conftest.err 1704 fi 1705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } && { 1707 test -z "$ac_c_werror_flag" || 1708 test ! -s conftest.err 1709 } && test -s conftest.$ac_objext 1710then : 1711 ac_retval=0 1712else $as_nop 1713 printf "%s\n" "$as_me: failed program was:" >&5 1714sed 's/^/| /' conftest.$ac_ext >&5 1715 1716 ac_retval=1 1717fi 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_compile 1722 1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1724# ------------------------------------------------------- 1725# Tests whether HEADER exists and can be compiled using the include files in 1726# INCLUDES, setting the cache variable VAR accordingly. 1727ac_fn_c_check_header_compile () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1731printf %s "checking for $2... " >&6; } 1732if eval test \${$3+y} 1733then : 1734 printf %s "(cached) " >&6 1735else $as_nop 1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1737/* end confdefs.h. */ 1738$4 1739#include <$2> 1740_ACEOF 1741if ac_fn_c_try_compile "$LINENO" 1742then : 1743 eval "$3=yes" 1744else $as_nop 1745 eval "$3=no" 1746fi 1747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1748fi 1749eval ac_res=\$$3 1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751printf "%s\n" "$ac_res" >&6; } 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 1754} # ac_fn_c_check_header_compile 1755 1756# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1757# ------------------------------------------------------------------ 1758# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1759# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1760ac_fn_check_decl () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 as_decl_name=`echo $2|sed 's/ *(.*//'` 1764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1765printf %s "checking whether $as_decl_name is declared... " >&6; } 1766if eval test \${$3+y} 1767then : 1768 printf %s "(cached) " >&6 1769else $as_nop 1770 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1771 eval ac_save_FLAGS=\$$6 1772 as_fn_append $6 " $5" 1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1774/* end confdefs.h. */ 1775$4 1776int 1777main (void) 1778{ 1779#ifndef $as_decl_name 1780#ifdef __cplusplus 1781 (void) $as_decl_use; 1782#else 1783 (void) $as_decl_name; 1784#endif 1785#endif 1786 1787 ; 1788 return 0; 1789} 1790_ACEOF 1791if ac_fn_c_try_compile "$LINENO" 1792then : 1793 eval "$3=yes" 1794else $as_nop 1795 eval "$3=no" 1796fi 1797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1798 eval $6=\$ac_save_FLAGS 1799 1800fi 1801eval ac_res=\$$3 1802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1803printf "%s\n" "$ac_res" >&6; } 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1805 1806} # ac_fn_check_decl 1807 1808# ac_fn_c_try_link LINENO 1809# ----------------------- 1810# Try to link conftest.$ac_ext, and return whether this succeeded. 1811ac_fn_c_try_link () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1815 if { { ac_try="$ac_link" 1816case "(($ac_try" in 1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1818 *) ac_try_echo=$ac_try;; 1819esac 1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1821printf "%s\n" "$ac_try_echo"; } >&5 1822 (eval "$ac_link") 2>conftest.err 1823 ac_status=$? 1824 if test -s conftest.err; then 1825 grep -v '^ *+' conftest.err >conftest.er1 1826 cat conftest.er1 >&5 1827 mv -f conftest.er1 conftest.err 1828 fi 1829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1830 test $ac_status = 0; } && { 1831 test -z "$ac_c_werror_flag" || 1832 test ! -s conftest.err 1833 } && test -s conftest$ac_exeext && { 1834 test "$cross_compiling" = yes || 1835 test -x conftest$ac_exeext 1836 } 1837then : 1838 ac_retval=0 1839else $as_nop 1840 printf "%s\n" "$as_me: failed program was:" >&5 1841sed 's/^/| /' conftest.$ac_ext >&5 1842 1843 ac_retval=1 1844fi 1845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1847 # interfere with the next link command; also delete a directory that is 1848 # left behind by Apple's compiler. We do this before executing the actions. 1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 as_fn_set_status $ac_retval 1852 1853} # ac_fn_c_try_link 1854 1855# ac_fn_c_check_func LINENO FUNC VAR 1856# ---------------------------------- 1857# Tests whether FUNC exists, setting the cache variable VAR accordingly 1858ac_fn_c_check_func () 1859{ 1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1862printf %s "checking for $2... " >&6; } 1863if eval test \${$3+y} 1864then : 1865 printf %s "(cached) " >&6 1866else $as_nop 1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1868/* end confdefs.h. */ 1869/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1870 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1871#define $2 innocuous_$2 1872 1873/* System header to define __stub macros and hopefully few prototypes, 1874 which can conflict with char $2 (); below. */ 1875 1876#include <limits.h> 1877#undef $2 1878 1879/* Override any GCC internal prototype to avoid an error. 1880 Use char because int might match the return type of a GCC 1881 builtin and then its argument prototype would still apply. */ 1882#ifdef __cplusplus 1883extern "C" 1884#endif 1885char $2 (); 1886/* The GNU C library defines this for functions which it implements 1887 to always fail with ENOSYS. Some functions are actually named 1888 something starting with __ and the normal name is an alias. */ 1889#if defined __stub_$2 || defined __stub___$2 1890choke me 1891#endif 1892 1893int 1894main (void) 1895{ 1896return $2 (); 1897 ; 1898 return 0; 1899} 1900_ACEOF 1901if ac_fn_c_try_link "$LINENO" 1902then : 1903 eval "$3=yes" 1904else $as_nop 1905 eval "$3=no" 1906fi 1907rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1908 conftest$ac_exeext conftest.$ac_ext 1909fi 1910eval ac_res=\$$3 1911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1912printf "%s\n" "$ac_res" >&6; } 1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1914 1915} # ac_fn_c_check_func 1916 1917# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1918# ---------------------------------------------------- 1919# Tries to find if the field MEMBER exists in type AGGR, after including 1920# INCLUDES, setting cache variable VAR accordingly. 1921ac_fn_c_check_member () 1922{ 1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1925printf %s "checking for $2.$3... " >&6; } 1926if eval test \${$4+y} 1927then : 1928 printf %s "(cached) " >&6 1929else $as_nop 1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1931/* end confdefs.h. */ 1932$5 1933int 1934main (void) 1935{ 1936static $2 ac_aggr; 1937if (ac_aggr.$3) 1938return 0; 1939 ; 1940 return 0; 1941} 1942_ACEOF 1943if ac_fn_c_try_compile "$LINENO" 1944then : 1945 eval "$4=yes" 1946else $as_nop 1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1948/* end confdefs.h. */ 1949$5 1950int 1951main (void) 1952{ 1953static $2 ac_aggr; 1954if (sizeof ac_aggr.$3) 1955return 0; 1956 ; 1957 return 0; 1958} 1959_ACEOF 1960if ac_fn_c_try_compile "$LINENO" 1961then : 1962 eval "$4=yes" 1963else $as_nop 1964 eval "$4=no" 1965fi 1966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1967fi 1968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1969fi 1970eval ac_res=\$$4 1971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1972printf "%s\n" "$ac_res" >&6; } 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1974 1975} # ac_fn_c_check_member 1976 1977# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1978# ------------------------------------------- 1979# Tests whether TYPE exists after having included INCLUDES, setting cache 1980# variable VAR accordingly. 1981ac_fn_c_check_type () 1982{ 1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1985printf %s "checking for $2... " >&6; } 1986if eval test \${$3+y} 1987then : 1988 printf %s "(cached) " >&6 1989else $as_nop 1990 eval "$3=no" 1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1992/* end confdefs.h. */ 1993$4 1994int 1995main (void) 1996{ 1997if (sizeof ($2)) 1998 return 0; 1999 ; 2000 return 0; 2001} 2002_ACEOF 2003if ac_fn_c_try_compile "$LINENO" 2004then : 2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2006/* end confdefs.h. */ 2007$4 2008int 2009main (void) 2010{ 2011if (sizeof (($2))) 2012 return 0; 2013 ; 2014 return 0; 2015} 2016_ACEOF 2017if ac_fn_c_try_compile "$LINENO" 2018then : 2019 2020else $as_nop 2021 eval "$3=yes" 2022fi 2023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2024fi 2025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2026fi 2027eval ac_res=\$$3 2028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2029printf "%s\n" "$ac_res" >&6; } 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2031 2032} # ac_fn_c_check_type 2033ac_configure_args_raw= 2034for ac_arg 2035do 2036 case $ac_arg in 2037 *\'*) 2038 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2039 esac 2040 as_fn_append ac_configure_args_raw " '$ac_arg'" 2041done 2042 2043case $ac_configure_args_raw in 2044 *$as_nl*) 2045 ac_safe_unquote= ;; 2046 *) 2047 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2048 ac_unsafe_a="$ac_unsafe_z#~" 2049 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2050 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2051esac 2052 2053cat >config.log <<_ACEOF 2054This file contains any messages produced by compilers while 2055running configure, to aid debugging if configure makes a mistake. 2056 2057It was created by xfs $as_me 1.2.1, which was 2058generated by GNU Autoconf 2.71. Invocation command line was 2059 2060 $ $0$ac_configure_args_raw 2061 2062_ACEOF 2063exec 5>>config.log 2064{ 2065cat <<_ASUNAME 2066## --------- ## 2067## Platform. ## 2068## --------- ## 2069 2070hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2071uname -m = `(uname -m) 2>/dev/null || echo unknown` 2072uname -r = `(uname -r) 2>/dev/null || echo unknown` 2073uname -s = `(uname -s) 2>/dev/null || echo unknown` 2074uname -v = `(uname -v) 2>/dev/null || echo unknown` 2075 2076/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2077/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2078 2079/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2080/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2081/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2082/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2083/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2084/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2085/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2086 2087_ASUNAME 2088 2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2090for as_dir in $PATH 2091do 2092 IFS=$as_save_IFS 2093 case $as_dir in #((( 2094 '') as_dir=./ ;; 2095 */) ;; 2096 *) as_dir=$as_dir/ ;; 2097 esac 2098 printf "%s\n" "PATH: $as_dir" 2099 done 2100IFS=$as_save_IFS 2101 2102} >&5 2103 2104cat >&5 <<_ACEOF 2105 2106 2107## ----------- ## 2108## Core tests. ## 2109## ----------- ## 2110 2111_ACEOF 2112 2113 2114# Keep a trace of the command line. 2115# Strip out --no-create and --no-recursion so they do not pile up. 2116# Strip out --silent because we don't want to record it for future runs. 2117# Also quote any args containing shell meta-characters. 2118# Make two passes to allow for proper duplicate-argument suppression. 2119ac_configure_args= 2120ac_configure_args0= 2121ac_configure_args1= 2122ac_must_keep_next=false 2123for ac_pass in 1 2 2124do 2125 for ac_arg 2126 do 2127 case $ac_arg in 2128 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2130 | -silent | --silent | --silen | --sile | --sil) 2131 continue ;; 2132 *\'*) 2133 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2134 esac 2135 case $ac_pass in 2136 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2137 2) 2138 as_fn_append ac_configure_args1 " '$ac_arg'" 2139 if test $ac_must_keep_next = true; then 2140 ac_must_keep_next=false # Got value, back to normal. 2141 else 2142 case $ac_arg in 2143 *=* | --config-cache | -C | -disable-* | --disable-* \ 2144 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2145 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2146 | -with-* | --with-* | -without-* | --without-* | --x) 2147 case "$ac_configure_args0 " in 2148 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2149 esac 2150 ;; 2151 -* ) ac_must_keep_next=true ;; 2152 esac 2153 fi 2154 as_fn_append ac_configure_args " '$ac_arg'" 2155 ;; 2156 esac 2157 done 2158done 2159{ ac_configure_args0=; unset ac_configure_args0;} 2160{ ac_configure_args1=; unset ac_configure_args1;} 2161 2162# When interrupted or exit'd, cleanup temporary files, and complete 2163# config.log. We remove comments because anyway the quotes in there 2164# would cause problems or look ugly. 2165# WARNING: Use '\'' to represent an apostrophe within the trap. 2166# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2167trap 'exit_status=$? 2168 # Sanitize IFS. 2169 IFS=" "" $as_nl" 2170 # Save into config.log some information that might help in debugging. 2171 { 2172 echo 2173 2174 printf "%s\n" "## ---------------- ## 2175## Cache variables. ## 2176## ---------------- ##" 2177 echo 2178 # The following way of writing the cache mishandles newlines in values, 2179( 2180 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2181 eval ac_val=\$$ac_var 2182 case $ac_val in #( 2183 *${as_nl}*) 2184 case $ac_var in #( 2185 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2186printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2187 esac 2188 case $ac_var in #( 2189 _ | IFS | as_nl) ;; #( 2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2191 *) { eval $ac_var=; unset $ac_var;} ;; 2192 esac ;; 2193 esac 2194 done 2195 (set) 2>&1 | 2196 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2197 *${as_nl}ac_space=\ *) 2198 sed -n \ 2199 "s/'\''/'\''\\\\'\'''\''/g; 2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2201 ;; #( 2202 *) 2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2204 ;; 2205 esac | 2206 sort 2207) 2208 echo 2209 2210 printf "%s\n" "## ----------------- ## 2211## Output variables. ## 2212## ----------------- ##" 2213 echo 2214 for ac_var in $ac_subst_vars 2215 do 2216 eval ac_val=\$$ac_var 2217 case $ac_val in 2218 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2219 esac 2220 printf "%s\n" "$ac_var='\''$ac_val'\''" 2221 done | sort 2222 echo 2223 2224 if test -n "$ac_subst_files"; then 2225 printf "%s\n" "## ------------------- ## 2226## File substitutions. ## 2227## ------------------- ##" 2228 echo 2229 for ac_var in $ac_subst_files 2230 do 2231 eval ac_val=\$$ac_var 2232 case $ac_val in 2233 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2234 esac 2235 printf "%s\n" "$ac_var='\''$ac_val'\''" 2236 done | sort 2237 echo 2238 fi 2239 2240 if test -s confdefs.h; then 2241 printf "%s\n" "## ----------- ## 2242## confdefs.h. ## 2243## ----------- ##" 2244 echo 2245 cat confdefs.h 2246 echo 2247 fi 2248 test "$ac_signal" != 0 && 2249 printf "%s\n" "$as_me: caught signal $ac_signal" 2250 printf "%s\n" "$as_me: exit $exit_status" 2251 } >&5 2252 rm -f core *.core core.conftest.* && 2253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2254 exit $exit_status 2255' 0 2256for ac_signal in 1 2 13 15; do 2257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2258done 2259ac_signal=0 2260 2261# confdefs.h avoids OS command line length limits that DEFS can exceed. 2262rm -f -r conftest* confdefs.h 2263 2264printf "%s\n" "/* confdefs.h */" > confdefs.h 2265 2266# Predefined preprocessor variables. 2267 2268printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2269 2270printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2271 2272printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2273 2274printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2275 2276printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2277 2278printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2279 2280 2281# Let the site file select an alternate cache file if it wants to. 2282# Prefer an explicitly selected file to automatically selected ones. 2283if test -n "$CONFIG_SITE"; then 2284 ac_site_files="$CONFIG_SITE" 2285elif test "x$prefix" != xNONE; then 2286 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2287else 2288 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2289fi 2290 2291for ac_site_file in $ac_site_files 2292do 2293 case $ac_site_file in #( 2294 */*) : 2295 ;; #( 2296 *) : 2297 ac_site_file=./$ac_site_file ;; 2298esac 2299 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2301printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2302 sed 's/^/| /' "$ac_site_file" >&5 2303 . "$ac_site_file" \ 2304 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2305printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2306as_fn_error $? "failed to load site script $ac_site_file 2307See \`config.log' for more details" "$LINENO" 5; } 2308 fi 2309done 2310 2311if test -r "$cache_file"; then 2312 # Some versions of bash will fail to source /dev/null (special files 2313 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2314 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2316printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2317 case $cache_file in 2318 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2319 *) . "./$cache_file";; 2320 esac 2321 fi 2322else 2323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2324printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2325 >$cache_file 2326fi 2327 2328as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2329# Test code for whether the C compiler supports C89 (global declarations) 2330ac_c_conftest_c89_globals=' 2331/* Does the compiler advertise C89 conformance? 2332 Do not test the value of __STDC__, because some compilers set it to 0 2333 while being otherwise adequately conformant. */ 2334#if !defined __STDC__ 2335# error "Compiler does not advertise C89 conformance" 2336#endif 2337 2338#include <stddef.h> 2339#include <stdarg.h> 2340struct stat; 2341/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2342struct buf { int x; }; 2343struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2344static char *e (p, i) 2345 char **p; 2346 int i; 2347{ 2348 return p[i]; 2349} 2350static char *f (char * (*g) (char **, int), char **p, ...) 2351{ 2352 char *s; 2353 va_list v; 2354 va_start (v,p); 2355 s = g (p, va_arg (v,int)); 2356 va_end (v); 2357 return s; 2358} 2359 2360/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2361 function prototypes and stuff, but not \xHH hex character constants. 2362 These do not provoke an error unfortunately, instead are silently treated 2363 as an "x". The following induces an error, until -std is added to get 2364 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2365 array size at least. It is necessary to write \x00 == 0 to get something 2366 that is true only with -std. */ 2367int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2368 2369/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2370 inside strings and character constants. */ 2371#define FOO(x) '\''x'\'' 2372int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2373 2374int test (int i, double x); 2375struct s1 {int (*f) (int a);}; 2376struct s2 {int (*f) (double a);}; 2377int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2378 int, int);' 2379 2380# Test code for whether the C compiler supports C89 (body of main). 2381ac_c_conftest_c89_main=' 2382ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2383' 2384 2385# Test code for whether the C compiler supports C99 (global declarations) 2386ac_c_conftest_c99_globals=' 2387// Does the compiler advertise C99 conformance? 2388#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2389# error "Compiler does not advertise C99 conformance" 2390#endif 2391 2392#include <stdbool.h> 2393extern int puts (const char *); 2394extern int printf (const char *, ...); 2395extern int dprintf (int, const char *, ...); 2396extern void *malloc (size_t); 2397 2398// Check varargs macros. These examples are taken from C99 6.10.3.5. 2399// dprintf is used instead of fprintf to avoid needing to declare 2400// FILE and stderr. 2401#define debug(...) dprintf (2, __VA_ARGS__) 2402#define showlist(...) puts (#__VA_ARGS__) 2403#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2404static void 2405test_varargs_macros (void) 2406{ 2407 int x = 1234; 2408 int y = 5678; 2409 debug ("Flag"); 2410 debug ("X = %d\n", x); 2411 showlist (The first, second, and third items.); 2412 report (x>y, "x is %d but y is %d", x, y); 2413} 2414 2415// Check long long types. 2416#define BIG64 18446744073709551615ull 2417#define BIG32 4294967295ul 2418#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2419#if !BIG_OK 2420 #error "your preprocessor is broken" 2421#endif 2422#if BIG_OK 2423#else 2424 #error "your preprocessor is broken" 2425#endif 2426static long long int bignum = -9223372036854775807LL; 2427static unsigned long long int ubignum = BIG64; 2428 2429struct incomplete_array 2430{ 2431 int datasize; 2432 double data[]; 2433}; 2434 2435struct named_init { 2436 int number; 2437 const wchar_t *name; 2438 double average; 2439}; 2440 2441typedef const char *ccp; 2442 2443static inline int 2444test_restrict (ccp restrict text) 2445{ 2446 // See if C++-style comments work. 2447 // Iterate through items via the restricted pointer. 2448 // Also check for declarations in for loops. 2449 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2450 continue; 2451 return 0; 2452} 2453 2454// Check varargs and va_copy. 2455static bool 2456test_varargs (const char *format, ...) 2457{ 2458 va_list args; 2459 va_start (args, format); 2460 va_list args_copy; 2461 va_copy (args_copy, args); 2462 2463 const char *str = ""; 2464 int number = 0; 2465 float fnumber = 0; 2466 2467 while (*format) 2468 { 2469 switch (*format++) 2470 { 2471 case '\''s'\'': // string 2472 str = va_arg (args_copy, const char *); 2473 break; 2474 case '\''d'\'': // int 2475 number = va_arg (args_copy, int); 2476 break; 2477 case '\''f'\'': // float 2478 fnumber = va_arg (args_copy, double); 2479 break; 2480 default: 2481 break; 2482 } 2483 } 2484 va_end (args_copy); 2485 va_end (args); 2486 2487 return *str && number && fnumber; 2488} 2489' 2490 2491# Test code for whether the C compiler supports C99 (body of main). 2492ac_c_conftest_c99_main=' 2493 // Check bool. 2494 _Bool success = false; 2495 success |= (argc != 0); 2496 2497 // Check restrict. 2498 if (test_restrict ("String literal") == 0) 2499 success = true; 2500 char *restrict newvar = "Another string"; 2501 2502 // Check varargs. 2503 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2504 test_varargs_macros (); 2505 2506 // Check flexible array members. 2507 struct incomplete_array *ia = 2508 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2509 ia->datasize = 10; 2510 for (int i = 0; i < ia->datasize; ++i) 2511 ia->data[i] = i * 1.234; 2512 2513 // Check named initializers. 2514 struct named_init ni = { 2515 .number = 34, 2516 .name = L"Test wide string", 2517 .average = 543.34343, 2518 }; 2519 2520 ni.number = 58; 2521 2522 int dynamic_array[ni.number]; 2523 dynamic_array[0] = argv[0][0]; 2524 dynamic_array[ni.number - 1] = 543; 2525 2526 // work around unused variable warnings 2527 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2528 || dynamic_array[ni.number - 1] != 543); 2529' 2530 2531# Test code for whether the C compiler supports C11 (global declarations) 2532ac_c_conftest_c11_globals=' 2533// Does the compiler advertise C11 conformance? 2534#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2535# error "Compiler does not advertise C11 conformance" 2536#endif 2537 2538// Check _Alignas. 2539char _Alignas (double) aligned_as_double; 2540char _Alignas (0) no_special_alignment; 2541extern char aligned_as_int; 2542char _Alignas (0) _Alignas (int) aligned_as_int; 2543 2544// Check _Alignof. 2545enum 2546{ 2547 int_alignment = _Alignof (int), 2548 int_array_alignment = _Alignof (int[100]), 2549 char_alignment = _Alignof (char) 2550}; 2551_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2552 2553// Check _Noreturn. 2554int _Noreturn does_not_return (void) { for (;;) continue; } 2555 2556// Check _Static_assert. 2557struct test_static_assert 2558{ 2559 int x; 2560 _Static_assert (sizeof (int) <= sizeof (long int), 2561 "_Static_assert does not work in struct"); 2562 long int y; 2563}; 2564 2565// Check UTF-8 literals. 2566#define u8 syntax error! 2567char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2568 2569// Check duplicate typedefs. 2570typedef long *long_ptr; 2571typedef long int *long_ptr; 2572typedef long_ptr long_ptr; 2573 2574// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2575struct anonymous 2576{ 2577 union { 2578 struct { int i; int j; }; 2579 struct { int k; long int l; } w; 2580 }; 2581 int m; 2582} v1; 2583' 2584 2585# Test code for whether the C compiler supports C11 (body of main). 2586ac_c_conftest_c11_main=' 2587 _Static_assert ((offsetof (struct anonymous, i) 2588 == offsetof (struct anonymous, w.k)), 2589 "Anonymous union alignment botch"); 2590 v1.i = 2; 2591 v1.w.k = 5; 2592 ok |= v1.i != 5; 2593' 2594 2595# Test code for whether the C compiler supports C11 (complete). 2596ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2597${ac_c_conftest_c99_globals} 2598${ac_c_conftest_c11_globals} 2599 2600int 2601main (int argc, char **argv) 2602{ 2603 int ok = 0; 2604 ${ac_c_conftest_c89_main} 2605 ${ac_c_conftest_c99_main} 2606 ${ac_c_conftest_c11_main} 2607 return ok; 2608} 2609" 2610 2611# Test code for whether the C compiler supports C99 (complete). 2612ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2613${ac_c_conftest_c99_globals} 2614 2615int 2616main (int argc, char **argv) 2617{ 2618 int ok = 0; 2619 ${ac_c_conftest_c89_main} 2620 ${ac_c_conftest_c99_main} 2621 return ok; 2622} 2623" 2624 2625# Test code for whether the C compiler supports C89 (complete). 2626ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2627 2628int 2629main (int argc, char **argv) 2630{ 2631 int ok = 0; 2632 ${ac_c_conftest_c89_main} 2633 return ok; 2634} 2635" 2636 2637as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2638as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2639as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2640as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2641as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2642as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2643as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2644as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2645as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2646as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2647 2648# Auxiliary files required by this configure script. 2649ac_aux_files="config.guess config.sub missing install-sh compile" 2650 2651# Locations in which to look for auxiliary files. 2652ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2653 2654# Search for a directory containing all of the required auxiliary files, 2655# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2656# If we don't find one directory that contains all the files we need, 2657# we report the set of missing files from the *first* directory in 2658# $ac_aux_dir_candidates and give up. 2659ac_missing_aux_files="" 2660ac_first_candidate=: 2661printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663as_found=false 2664for as_dir in $ac_aux_dir_candidates 2665do 2666 IFS=$as_save_IFS 2667 case $as_dir in #((( 2668 '') as_dir=./ ;; 2669 */) ;; 2670 *) as_dir=$as_dir/ ;; 2671 esac 2672 as_found=: 2673 2674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2675 ac_aux_dir_found=yes 2676 ac_install_sh= 2677 for ac_aux in $ac_aux_files 2678 do 2679 # As a special case, if "install-sh" is required, that requirement 2680 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2681 # and $ac_install_sh is set appropriately for whichever one is found. 2682 if test x"$ac_aux" = x"install-sh" 2683 then 2684 if test -f "${as_dir}install-sh"; then 2685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2686 ac_install_sh="${as_dir}install-sh -c" 2687 elif test -f "${as_dir}install.sh"; then 2688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2689 ac_install_sh="${as_dir}install.sh -c" 2690 elif test -f "${as_dir}shtool"; then 2691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2692 ac_install_sh="${as_dir}shtool install -c" 2693 else 2694 ac_aux_dir_found=no 2695 if $ac_first_candidate; then 2696 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2697 else 2698 break 2699 fi 2700 fi 2701 else 2702 if test -f "${as_dir}${ac_aux}"; then 2703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2704 else 2705 ac_aux_dir_found=no 2706 if $ac_first_candidate; then 2707 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2708 else 2709 break 2710 fi 2711 fi 2712 fi 2713 done 2714 if test "$ac_aux_dir_found" = yes; then 2715 ac_aux_dir="$as_dir" 2716 break 2717 fi 2718 ac_first_candidate=false 2719 2720 as_found=false 2721done 2722IFS=$as_save_IFS 2723if $as_found 2724then : 2725 2726else $as_nop 2727 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2728fi 2729 2730 2731# These three variables are undocumented and unsupported, 2732# and are intended to be withdrawn in a future Autoconf release. 2733# They can cause serious problems if a builder's source tree is in a directory 2734# whose full name contains unusual characters. 2735if test -f "${ac_aux_dir}config.guess"; then 2736 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2737fi 2738if test -f "${ac_aux_dir}config.sub"; then 2739 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2740fi 2741if test -f "$ac_aux_dir/configure"; then 2742 ac_configure="$SHELL ${ac_aux_dir}configure" 2743fi 2744 2745# Check that the precious variables saved in the cache have kept the same 2746# value. 2747ac_cache_corrupted=false 2748for ac_var in $ac_precious_vars; do 2749 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2750 eval ac_new_set=\$ac_env_${ac_var}_set 2751 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2752 eval ac_new_val=\$ac_env_${ac_var}_value 2753 case $ac_old_set,$ac_new_set in 2754 set,) 2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2756printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2757 ac_cache_corrupted=: ;; 2758 ,set) 2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2760printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2761 ac_cache_corrupted=: ;; 2762 ,);; 2763 *) 2764 if test "x$ac_old_val" != "x$ac_new_val"; then 2765 # differences in whitespace do not lead to failure. 2766 ac_old_val_w=`echo x $ac_old_val` 2767 ac_new_val_w=`echo x $ac_new_val` 2768 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2770printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2771 ac_cache_corrupted=: 2772 else 2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2774printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2775 eval $ac_var=\$ac_old_val 2776 fi 2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2778printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2780printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2781 fi;; 2782 esac 2783 # Pass precious variables to config.status. 2784 if test "$ac_new_set" = set; then 2785 case $ac_new_val in 2786 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2787 *) ac_arg=$ac_var=$ac_new_val ;; 2788 esac 2789 case " $ac_configure_args " in 2790 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2791 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2792 esac 2793 fi 2794done 2795if $ac_cache_corrupted; then 2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2797printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2799printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2800 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2801 and start over" "$LINENO" 5 2802fi 2803## -------------------- ## 2804## Main body of script. ## 2805## -------------------- ## 2806 2807ac_ext=c 2808ac_cpp='$CPP $CPPFLAGS' 2809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2811ac_compiler_gnu=$ac_cv_c_compiler_gnu 2812 2813 2814# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2815# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827# Expand $ac_aux_dir to an absolute path. 2828am_aux_dir=`cd "$ac_aux_dir" && pwd` 2829 2830ac_ext=c 2831ac_cpp='$CPP $CPPFLAGS' 2832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2834ac_compiler_gnu=$ac_cv_c_compiler_gnu 2835if test -n "$ac_tool_prefix"; then 2836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2837set dummy ${ac_tool_prefix}gcc; ac_word=$2 2838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2839printf %s "checking for $ac_word... " >&6; } 2840if test ${ac_cv_prog_CC+y} 2841then : 2842 printf %s "(cached) " >&6 2843else $as_nop 2844 if test -n "$CC"; then 2845 ac_cv_prog_CC="$CC" # Let the user override the test. 2846else 2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2848for as_dir in $PATH 2849do 2850 IFS=$as_save_IFS 2851 case $as_dir in #((( 2852 '') as_dir=./ ;; 2853 */) ;; 2854 *) as_dir=$as_dir/ ;; 2855 esac 2856 for ac_exec_ext in '' $ac_executable_extensions; do 2857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2858 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2860 break 2 2861 fi 2862done 2863 done 2864IFS=$as_save_IFS 2865 2866fi 2867fi 2868CC=$ac_cv_prog_CC 2869if test -n "$CC"; then 2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2871printf "%s\n" "$CC" >&6; } 2872else 2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2874printf "%s\n" "no" >&6; } 2875fi 2876 2877 2878fi 2879if test -z "$ac_cv_prog_CC"; then 2880 ac_ct_CC=$CC 2881 # Extract the first word of "gcc", so it can be a program name with args. 2882set dummy gcc; ac_word=$2 2883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2884printf %s "checking for $ac_word... " >&6; } 2885if test ${ac_cv_prog_ac_ct_CC+y} 2886then : 2887 printf %s "(cached) " >&6 2888else $as_nop 2889 if test -n "$ac_ct_CC"; then 2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2891else 2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893for as_dir in $PATH 2894do 2895 IFS=$as_save_IFS 2896 case $as_dir in #((( 2897 '') as_dir=./ ;; 2898 */) ;; 2899 *) as_dir=$as_dir/ ;; 2900 esac 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2903 ac_cv_prog_ac_ct_CC="gcc" 2904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi 2912fi 2913ac_ct_CC=$ac_cv_prog_ac_ct_CC 2914if test -n "$ac_ct_CC"; then 2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2916printf "%s\n" "$ac_ct_CC" >&6; } 2917else 2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919printf "%s\n" "no" >&6; } 2920fi 2921 2922 if test "x$ac_ct_CC" = x; then 2923 CC="" 2924 else 2925 case $cross_compiling:$ac_tool_warned in 2926yes:) 2927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2928printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2929ac_tool_warned=yes ;; 2930esac 2931 CC=$ac_ct_CC 2932 fi 2933else 2934 CC="$ac_cv_prog_CC" 2935fi 2936 2937if test -z "$CC"; then 2938 if test -n "$ac_tool_prefix"; then 2939 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2940set dummy ${ac_tool_prefix}cc; ac_word=$2 2941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2942printf %s "checking for $ac_word... " >&6; } 2943if test ${ac_cv_prog_CC+y} 2944then : 2945 printf %s "(cached) " >&6 2946else $as_nop 2947 if test -n "$CC"; then 2948 ac_cv_prog_CC="$CC" # Let the user override the test. 2949else 2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 case $as_dir in #((( 2955 '') as_dir=./ ;; 2956 */) ;; 2957 *) as_dir=$as_dir/ ;; 2958 esac 2959 for ac_exec_ext in '' $ac_executable_extensions; do 2960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2961 ac_cv_prog_CC="${ac_tool_prefix}cc" 2962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2963 break 2 2964 fi 2965done 2966 done 2967IFS=$as_save_IFS 2968 2969fi 2970fi 2971CC=$ac_cv_prog_CC 2972if test -n "$CC"; then 2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2974printf "%s\n" "$CC" >&6; } 2975else 2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2977printf "%s\n" "no" >&6; } 2978fi 2979 2980 2981 fi 2982fi 2983if test -z "$CC"; then 2984 # Extract the first word of "cc", so it can be a program name with args. 2985set dummy cc; ac_word=$2 2986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2987printf %s "checking for $ac_word... " >&6; } 2988if test ${ac_cv_prog_CC+y} 2989then : 2990 printf %s "(cached) " >&6 2991else $as_nop 2992 if test -n "$CC"; then 2993 ac_cv_prog_CC="$CC" # Let the user override the test. 2994else 2995 ac_prog_rejected=no 2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2997for as_dir in $PATH 2998do 2999 IFS=$as_save_IFS 3000 case $as_dir in #((( 3001 '') as_dir=./ ;; 3002 */) ;; 3003 *) as_dir=$as_dir/ ;; 3004 esac 3005 for ac_exec_ext in '' $ac_executable_extensions; do 3006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3007 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3008 ac_prog_rejected=yes 3009 continue 3010 fi 3011 ac_cv_prog_CC="cc" 3012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3013 break 2 3014 fi 3015done 3016 done 3017IFS=$as_save_IFS 3018 3019if test $ac_prog_rejected = yes; then 3020 # We found a bogon in the path, so make sure we never use it. 3021 set dummy $ac_cv_prog_CC 3022 shift 3023 if test $# != 0; then 3024 # We chose a different compiler from the bogus one. 3025 # However, it has the same basename, so the bogon will be chosen 3026 # first if we set CC to just the basename; use the full file name. 3027 shift 3028 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3029 fi 3030fi 3031fi 3032fi 3033CC=$ac_cv_prog_CC 3034if test -n "$CC"; then 3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3036printf "%s\n" "$CC" >&6; } 3037else 3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3039printf "%s\n" "no" >&6; } 3040fi 3041 3042 3043fi 3044if test -z "$CC"; then 3045 if test -n "$ac_tool_prefix"; then 3046 for ac_prog in cl.exe 3047 do 3048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3049set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3051printf %s "checking for $ac_word... " >&6; } 3052if test ${ac_cv_prog_CC+y} 3053then : 3054 printf %s "(cached) " >&6 3055else $as_nop 3056 if test -n "$CC"; then 3057 ac_cv_prog_CC="$CC" # Let the user override the test. 3058else 3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3060for as_dir in $PATH 3061do 3062 IFS=$as_save_IFS 3063 case $as_dir in #((( 3064 '') as_dir=./ ;; 3065 */) ;; 3066 *) as_dir=$as_dir/ ;; 3067 esac 3068 for ac_exec_ext in '' $ac_executable_extensions; do 3069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3072 break 2 3073 fi 3074done 3075 done 3076IFS=$as_save_IFS 3077 3078fi 3079fi 3080CC=$ac_cv_prog_CC 3081if test -n "$CC"; then 3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3083printf "%s\n" "$CC" >&6; } 3084else 3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3086printf "%s\n" "no" >&6; } 3087fi 3088 3089 3090 test -n "$CC" && break 3091 done 3092fi 3093if test -z "$CC"; then 3094 ac_ct_CC=$CC 3095 for ac_prog in cl.exe 3096do 3097 # Extract the first word of "$ac_prog", so it can be a program name with args. 3098set dummy $ac_prog; ac_word=$2 3099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3100printf %s "checking for $ac_word... " >&6; } 3101if test ${ac_cv_prog_ac_ct_CC+y} 3102then : 3103 printf %s "(cached) " >&6 3104else $as_nop 3105 if test -n "$ac_ct_CC"; then 3106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3107else 3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109for as_dir in $PATH 3110do 3111 IFS=$as_save_IFS 3112 case $as_dir in #((( 3113 '') as_dir=./ ;; 3114 */) ;; 3115 *) as_dir=$as_dir/ ;; 3116 esac 3117 for ac_exec_ext in '' $ac_executable_extensions; do 3118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3119 ac_cv_prog_ac_ct_CC="$ac_prog" 3120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3121 break 2 3122 fi 3123done 3124 done 3125IFS=$as_save_IFS 3126 3127fi 3128fi 3129ac_ct_CC=$ac_cv_prog_ac_ct_CC 3130if test -n "$ac_ct_CC"; then 3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3132printf "%s\n" "$ac_ct_CC" >&6; } 3133else 3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3135printf "%s\n" "no" >&6; } 3136fi 3137 3138 3139 test -n "$ac_ct_CC" && break 3140done 3141 3142 if test "x$ac_ct_CC" = x; then 3143 CC="" 3144 else 3145 case $cross_compiling:$ac_tool_warned in 3146yes:) 3147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3148printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3149ac_tool_warned=yes ;; 3150esac 3151 CC=$ac_ct_CC 3152 fi 3153fi 3154 3155fi 3156if test -z "$CC"; then 3157 if test -n "$ac_tool_prefix"; then 3158 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3159set dummy ${ac_tool_prefix}clang; ac_word=$2 3160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3161printf %s "checking for $ac_word... " >&6; } 3162if test ${ac_cv_prog_CC+y} 3163then : 3164 printf %s "(cached) " >&6 3165else $as_nop 3166 if test -n "$CC"; then 3167 ac_cv_prog_CC="$CC" # Let the user override the test. 3168else 3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3170for as_dir in $PATH 3171do 3172 IFS=$as_save_IFS 3173 case $as_dir in #((( 3174 '') as_dir=./ ;; 3175 */) ;; 3176 *) as_dir=$as_dir/ ;; 3177 esac 3178 for ac_exec_ext in '' $ac_executable_extensions; do 3179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3180 ac_cv_prog_CC="${ac_tool_prefix}clang" 3181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3182 break 2 3183 fi 3184done 3185 done 3186IFS=$as_save_IFS 3187 3188fi 3189fi 3190CC=$ac_cv_prog_CC 3191if test -n "$CC"; then 3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3193printf "%s\n" "$CC" >&6; } 3194else 3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196printf "%s\n" "no" >&6; } 3197fi 3198 3199 3200fi 3201if test -z "$ac_cv_prog_CC"; then 3202 ac_ct_CC=$CC 3203 # Extract the first word of "clang", so it can be a program name with args. 3204set dummy clang; ac_word=$2 3205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3206printf %s "checking for $ac_word... " >&6; } 3207if test ${ac_cv_prog_ac_ct_CC+y} 3208then : 3209 printf %s "(cached) " >&6 3210else $as_nop 3211 if test -n "$ac_ct_CC"; then 3212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3213else 3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3215for as_dir in $PATH 3216do 3217 IFS=$as_save_IFS 3218 case $as_dir in #((( 3219 '') as_dir=./ ;; 3220 */) ;; 3221 *) as_dir=$as_dir/ ;; 3222 esac 3223 for ac_exec_ext in '' $ac_executable_extensions; do 3224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3225 ac_cv_prog_ac_ct_CC="clang" 3226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3227 break 2 3228 fi 3229done 3230 done 3231IFS=$as_save_IFS 3232 3233fi 3234fi 3235ac_ct_CC=$ac_cv_prog_ac_ct_CC 3236if test -n "$ac_ct_CC"; then 3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3238printf "%s\n" "$ac_ct_CC" >&6; } 3239else 3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3241printf "%s\n" "no" >&6; } 3242fi 3243 3244 if test "x$ac_ct_CC" = x; then 3245 CC="" 3246 else 3247 case $cross_compiling:$ac_tool_warned in 3248yes:) 3249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3250printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3251ac_tool_warned=yes ;; 3252esac 3253 CC=$ac_ct_CC 3254 fi 3255else 3256 CC="$ac_cv_prog_CC" 3257fi 3258 3259fi 3260 3261 3262test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3263printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3264as_fn_error $? "no acceptable C compiler found in \$PATH 3265See \`config.log' for more details" "$LINENO" 5; } 3266 3267# Provide some information about the compiler. 3268printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3269set X $ac_compile 3270ac_compiler=$2 3271for ac_option in --version -v -V -qversion -version; do 3272 { { ac_try="$ac_compiler $ac_option >&5" 3273case "(($ac_try" in 3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3275 *) ac_try_echo=$ac_try;; 3276esac 3277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3278printf "%s\n" "$ac_try_echo"; } >&5 3279 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3280 ac_status=$? 3281 if test -s conftest.err; then 3282 sed '10a\ 3283... rest of stderr output deleted ... 3284 10q' conftest.err >conftest.er1 3285 cat conftest.er1 >&5 3286 fi 3287 rm -f conftest.er1 conftest.err 3288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3289 test $ac_status = 0; } 3290done 3291 3292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3293/* end confdefs.h. */ 3294 3295int 3296main (void) 3297{ 3298 3299 ; 3300 return 0; 3301} 3302_ACEOF 3303ac_clean_files_save=$ac_clean_files 3304ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3305# Try to create an executable without -o first, disregard a.out. 3306# It will help us diagnose broken compilers, and finding out an intuition 3307# of exeext. 3308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3309printf %s "checking whether the C compiler works... " >&6; } 3310ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3311 3312# The possible output files: 3313ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3314 3315ac_rmfiles= 3316for ac_file in $ac_files 3317do 3318 case $ac_file in 3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3320 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3321 esac 3322done 3323rm -f $ac_rmfiles 3324 3325if { { ac_try="$ac_link_default" 3326case "(($ac_try" in 3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3328 *) ac_try_echo=$ac_try;; 3329esac 3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3331printf "%s\n" "$ac_try_echo"; } >&5 3332 (eval "$ac_link_default") 2>&5 3333 ac_status=$? 3334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3335 test $ac_status = 0; } 3336then : 3337 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3338# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3339# in a Makefile. We should not override ac_cv_exeext if it was cached, 3340# so that the user can short-circuit this test for compilers unknown to 3341# Autoconf. 3342for ac_file in $ac_files '' 3343do 3344 test -f "$ac_file" || continue 3345 case $ac_file in 3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3347 ;; 3348 [ab].out ) 3349 # We found the default executable, but exeext='' is most 3350 # certainly right. 3351 break;; 3352 *.* ) 3353 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3354 then :; else 3355 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3356 fi 3357 # We set ac_cv_exeext here because the later test for it is not 3358 # safe: cross compilers may not add the suffix if given an `-o' 3359 # argument, so we may need to know it at that point already. 3360 # Even if this section looks crufty: it has the advantage of 3361 # actually working. 3362 break;; 3363 * ) 3364 break;; 3365 esac 3366done 3367test "$ac_cv_exeext" = no && ac_cv_exeext= 3368 3369else $as_nop 3370 ac_file='' 3371fi 3372if test -z "$ac_file" 3373then : 3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3375printf "%s\n" "no" >&6; } 3376printf "%s\n" "$as_me: failed program was:" >&5 3377sed 's/^/| /' conftest.$ac_ext >&5 3378 3379{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3380printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3381as_fn_error 77 "C compiler cannot create executables 3382See \`config.log' for more details" "$LINENO" 5; } 3383else $as_nop 3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3385printf "%s\n" "yes" >&6; } 3386fi 3387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3388printf %s "checking for C compiler default output file name... " >&6; } 3389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3390printf "%s\n" "$ac_file" >&6; } 3391ac_exeext=$ac_cv_exeext 3392 3393rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3394ac_clean_files=$ac_clean_files_save 3395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3396printf %s "checking for suffix of executables... " >&6; } 3397if { { ac_try="$ac_link" 3398case "(($ac_try" in 3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3400 *) ac_try_echo=$ac_try;; 3401esac 3402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3403printf "%s\n" "$ac_try_echo"; } >&5 3404 (eval "$ac_link") 2>&5 3405 ac_status=$? 3406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3407 test $ac_status = 0; } 3408then : 3409 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3410# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3411# work properly (i.e., refer to `conftest.exe'), while it won't with 3412# `rm'. 3413for ac_file in conftest.exe conftest conftest.*; do 3414 test -f "$ac_file" || continue 3415 case $ac_file in 3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3417 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3418 break;; 3419 * ) break;; 3420 esac 3421done 3422else $as_nop 3423 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3424printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3425as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3426See \`config.log' for more details" "$LINENO" 5; } 3427fi 3428rm -f conftest conftest$ac_cv_exeext 3429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3430printf "%s\n" "$ac_cv_exeext" >&6; } 3431 3432rm -f conftest.$ac_ext 3433EXEEXT=$ac_cv_exeext 3434ac_exeext=$EXEEXT 3435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3436/* end confdefs.h. */ 3437#include <stdio.h> 3438int 3439main (void) 3440{ 3441FILE *f = fopen ("conftest.out", "w"); 3442 return ferror (f) || fclose (f) != 0; 3443 3444 ; 3445 return 0; 3446} 3447_ACEOF 3448ac_clean_files="$ac_clean_files conftest.out" 3449# Check that the compiler produces executables we can run. If not, either 3450# the compiler is broken, or we cross compile. 3451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3452printf %s "checking whether we are cross compiling... " >&6; } 3453if test "$cross_compiling" != yes; then 3454 { { ac_try="$ac_link" 3455case "(($ac_try" in 3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3457 *) ac_try_echo=$ac_try;; 3458esac 3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3460printf "%s\n" "$ac_try_echo"; } >&5 3461 (eval "$ac_link") 2>&5 3462 ac_status=$? 3463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3464 test $ac_status = 0; } 3465 if { ac_try='./conftest$ac_cv_exeext' 3466 { { case "(($ac_try" in 3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3468 *) ac_try_echo=$ac_try;; 3469esac 3470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3471printf "%s\n" "$ac_try_echo"; } >&5 3472 (eval "$ac_try") 2>&5 3473 ac_status=$? 3474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3475 test $ac_status = 0; }; }; then 3476 cross_compiling=no 3477 else 3478 if test "$cross_compiling" = maybe; then 3479 cross_compiling=yes 3480 else 3481 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3482printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3483as_fn_error 77 "cannot run C compiled programs. 3484If you meant to cross compile, use \`--host'. 3485See \`config.log' for more details" "$LINENO" 5; } 3486 fi 3487 fi 3488fi 3489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3490printf "%s\n" "$cross_compiling" >&6; } 3491 3492rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3493ac_clean_files=$ac_clean_files_save 3494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3495printf %s "checking for suffix of object files... " >&6; } 3496if test ${ac_cv_objext+y} 3497then : 3498 printf %s "(cached) " >&6 3499else $as_nop 3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502 3503int 3504main (void) 3505{ 3506 3507 ; 3508 return 0; 3509} 3510_ACEOF 3511rm -f conftest.o conftest.obj 3512if { { ac_try="$ac_compile" 3513case "(($ac_try" in 3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3515 *) ac_try_echo=$ac_try;; 3516esac 3517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3518printf "%s\n" "$ac_try_echo"; } >&5 3519 (eval "$ac_compile") 2>&5 3520 ac_status=$? 3521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3522 test $ac_status = 0; } 3523then : 3524 for ac_file in conftest.o conftest.obj conftest.*; do 3525 test -f "$ac_file" || continue; 3526 case $ac_file in 3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3528 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3529 break;; 3530 esac 3531done 3532else $as_nop 3533 printf "%s\n" "$as_me: failed program was:" >&5 3534sed 's/^/| /' conftest.$ac_ext >&5 3535 3536{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3537printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3538as_fn_error $? "cannot compute suffix of object files: cannot compile 3539See \`config.log' for more details" "$LINENO" 5; } 3540fi 3541rm -f conftest.$ac_cv_objext conftest.$ac_ext 3542fi 3543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3544printf "%s\n" "$ac_cv_objext" >&6; } 3545OBJEXT=$ac_cv_objext 3546ac_objext=$OBJEXT 3547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3548printf %s "checking whether the compiler supports GNU C... " >&6; } 3549if test ${ac_cv_c_compiler_gnu+y} 3550then : 3551 printf %s "(cached) " >&6 3552else $as_nop 3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3554/* end confdefs.h. */ 3555 3556int 3557main (void) 3558{ 3559#ifndef __GNUC__ 3560 choke me 3561#endif 3562 3563 ; 3564 return 0; 3565} 3566_ACEOF 3567if ac_fn_c_try_compile "$LINENO" 3568then : 3569 ac_compiler_gnu=yes 3570else $as_nop 3571 ac_compiler_gnu=no 3572fi 3573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3574ac_cv_c_compiler_gnu=$ac_compiler_gnu 3575 3576fi 3577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3578printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3579ac_compiler_gnu=$ac_cv_c_compiler_gnu 3580 3581if test $ac_compiler_gnu = yes; then 3582 GCC=yes 3583else 3584 GCC= 3585fi 3586ac_test_CFLAGS=${CFLAGS+y} 3587ac_save_CFLAGS=$CFLAGS 3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3589printf %s "checking whether $CC accepts -g... " >&6; } 3590if test ${ac_cv_prog_cc_g+y} 3591then : 3592 printf %s "(cached) " >&6 3593else $as_nop 3594 ac_save_c_werror_flag=$ac_c_werror_flag 3595 ac_c_werror_flag=yes 3596 ac_cv_prog_cc_g=no 3597 CFLAGS="-g" 3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3599/* end confdefs.h. */ 3600 3601int 3602main (void) 3603{ 3604 3605 ; 3606 return 0; 3607} 3608_ACEOF 3609if ac_fn_c_try_compile "$LINENO" 3610then : 3611 ac_cv_prog_cc_g=yes 3612else $as_nop 3613 CFLAGS="" 3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3615/* end confdefs.h. */ 3616 3617int 3618main (void) 3619{ 3620 3621 ; 3622 return 0; 3623} 3624_ACEOF 3625if ac_fn_c_try_compile "$LINENO" 3626then : 3627 3628else $as_nop 3629 ac_c_werror_flag=$ac_save_c_werror_flag 3630 CFLAGS="-g" 3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3632/* end confdefs.h. */ 3633 3634int 3635main (void) 3636{ 3637 3638 ; 3639 return 0; 3640} 3641_ACEOF 3642if ac_fn_c_try_compile "$LINENO" 3643then : 3644 ac_cv_prog_cc_g=yes 3645fi 3646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3647fi 3648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3649fi 3650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3651 ac_c_werror_flag=$ac_save_c_werror_flag 3652fi 3653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3654printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3655if test $ac_test_CFLAGS; then 3656 CFLAGS=$ac_save_CFLAGS 3657elif test $ac_cv_prog_cc_g = yes; then 3658 if test "$GCC" = yes; then 3659 CFLAGS="-g -O2" 3660 else 3661 CFLAGS="-g" 3662 fi 3663else 3664 if test "$GCC" = yes; then 3665 CFLAGS="-O2" 3666 else 3667 CFLAGS= 3668 fi 3669fi 3670ac_prog_cc_stdc=no 3671if test x$ac_prog_cc_stdc = xno 3672then : 3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3674printf %s "checking for $CC option to enable C11 features... " >&6; } 3675if test ${ac_cv_prog_cc_c11+y} 3676then : 3677 printf %s "(cached) " >&6 3678else $as_nop 3679 ac_cv_prog_cc_c11=no 3680ac_save_CC=$CC 3681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683$ac_c_conftest_c11_program 3684_ACEOF 3685for ac_arg in '' -std=gnu11 3686do 3687 CC="$ac_save_CC $ac_arg" 3688 if ac_fn_c_try_compile "$LINENO" 3689then : 3690 ac_cv_prog_cc_c11=$ac_arg 3691fi 3692rm -f core conftest.err conftest.$ac_objext conftest.beam 3693 test "x$ac_cv_prog_cc_c11" != "xno" && break 3694done 3695rm -f conftest.$ac_ext 3696CC=$ac_save_CC 3697fi 3698 3699if test "x$ac_cv_prog_cc_c11" = xno 3700then : 3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3702printf "%s\n" "unsupported" >&6; } 3703else $as_nop 3704 if test "x$ac_cv_prog_cc_c11" = x 3705then : 3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3707printf "%s\n" "none needed" >&6; } 3708else $as_nop 3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3710printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3711 CC="$CC $ac_cv_prog_cc_c11" 3712fi 3713 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3714 ac_prog_cc_stdc=c11 3715fi 3716fi 3717if test x$ac_prog_cc_stdc = xno 3718then : 3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3720printf %s "checking for $CC option to enable C99 features... " >&6; } 3721if test ${ac_cv_prog_cc_c99+y} 3722then : 3723 printf %s "(cached) " >&6 3724else $as_nop 3725 ac_cv_prog_cc_c99=no 3726ac_save_CC=$CC 3727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729$ac_c_conftest_c99_program 3730_ACEOF 3731for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3732do 3733 CC="$ac_save_CC $ac_arg" 3734 if ac_fn_c_try_compile "$LINENO" 3735then : 3736 ac_cv_prog_cc_c99=$ac_arg 3737fi 3738rm -f core conftest.err conftest.$ac_objext conftest.beam 3739 test "x$ac_cv_prog_cc_c99" != "xno" && break 3740done 3741rm -f conftest.$ac_ext 3742CC=$ac_save_CC 3743fi 3744 3745if test "x$ac_cv_prog_cc_c99" = xno 3746then : 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3748printf "%s\n" "unsupported" >&6; } 3749else $as_nop 3750 if test "x$ac_cv_prog_cc_c99" = x 3751then : 3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3753printf "%s\n" "none needed" >&6; } 3754else $as_nop 3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3756printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3757 CC="$CC $ac_cv_prog_cc_c99" 3758fi 3759 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3760 ac_prog_cc_stdc=c99 3761fi 3762fi 3763if test x$ac_prog_cc_stdc = xno 3764then : 3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3766printf %s "checking for $CC option to enable C89 features... " >&6; } 3767if test ${ac_cv_prog_cc_c89+y} 3768then : 3769 printf %s "(cached) " >&6 3770else $as_nop 3771 ac_cv_prog_cc_c89=no 3772ac_save_CC=$CC 3773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3774/* end confdefs.h. */ 3775$ac_c_conftest_c89_program 3776_ACEOF 3777for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3778do 3779 CC="$ac_save_CC $ac_arg" 3780 if ac_fn_c_try_compile "$LINENO" 3781then : 3782 ac_cv_prog_cc_c89=$ac_arg 3783fi 3784rm -f core conftest.err conftest.$ac_objext conftest.beam 3785 test "x$ac_cv_prog_cc_c89" != "xno" && break 3786done 3787rm -f conftest.$ac_ext 3788CC=$ac_save_CC 3789fi 3790 3791if test "x$ac_cv_prog_cc_c89" = xno 3792then : 3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3794printf "%s\n" "unsupported" >&6; } 3795else $as_nop 3796 if test "x$ac_cv_prog_cc_c89" = x 3797then : 3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3799printf "%s\n" "none needed" >&6; } 3800else $as_nop 3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3802printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3803 CC="$CC $ac_cv_prog_cc_c89" 3804fi 3805 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3806 ac_prog_cc_stdc=c89 3807fi 3808fi 3809 3810ac_ext=c 3811ac_cpp='$CPP $CPPFLAGS' 3812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3814ac_compiler_gnu=$ac_cv_c_compiler_gnu 3815 3816 3817 ac_ext=c 3818ac_cpp='$CPP $CPPFLAGS' 3819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3821ac_compiler_gnu=$ac_cv_c_compiler_gnu 3822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3823printf %s "checking whether $CC understands -c and -o together... " >&6; } 3824if test ${am_cv_prog_cc_c_o+y} 3825then : 3826 printf %s "(cached) " >&6 3827else $as_nop 3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3829/* end confdefs.h. */ 3830 3831int 3832main (void) 3833{ 3834 3835 ; 3836 return 0; 3837} 3838_ACEOF 3839 # Make sure it works both with $CC and with simple cc. 3840 # Following AC_PROG_CC_C_O, we do the test twice because some 3841 # compilers refuse to overwrite an existing .o file with -o, 3842 # though they will create one. 3843 am_cv_prog_cc_c_o=yes 3844 for am_i in 1 2; do 3845 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3846 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3847 ac_status=$? 3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3849 (exit $ac_status); } \ 3850 && test -f conftest2.$ac_objext; then 3851 : OK 3852 else 3853 am_cv_prog_cc_c_o=no 3854 break 3855 fi 3856 done 3857 rm -f core conftest* 3858 unset am_i 3859fi 3860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3861printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3862if test "$am_cv_prog_cc_c_o" != yes; then 3863 # Losing compiler, so override with the script. 3864 # FIXME: It is wrong to rewrite CC. 3865 # But if we don't then we get into trouble of one sort or another. 3866 # A longer-term fix would be to have automake use am__CC in this case, 3867 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3868 CC="$am_aux_dir/compile $CC" 3869fi 3870ac_ext=c 3871ac_cpp='$CPP $CPPFLAGS' 3872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3874ac_compiler_gnu=$ac_cv_c_compiler_gnu 3875 3876 3877 3878ac_header= ac_cache= 3879for ac_item in $ac_header_c_list 3880do 3881 if test $ac_cache; then 3882 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3883 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3884 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3885 fi 3886 ac_header= ac_cache= 3887 elif test $ac_header; then 3888 ac_cache=$ac_item 3889 else 3890 ac_header=$ac_item 3891 fi 3892done 3893 3894 3895 3896 3897 3898 3899 3900 3901if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3902then : 3903 3904printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3905 3906fi 3907 3908 3909 3910 3911 3912 3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3914printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3915if test ${ac_cv_safe_to_define___extensions__+y} 3916then : 3917 printf %s "(cached) " >&6 3918else $as_nop 3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920/* end confdefs.h. */ 3921 3922# define __EXTENSIONS__ 1 3923 $ac_includes_default 3924int 3925main (void) 3926{ 3927 3928 ; 3929 return 0; 3930} 3931_ACEOF 3932if ac_fn_c_try_compile "$LINENO" 3933then : 3934 ac_cv_safe_to_define___extensions__=yes 3935else $as_nop 3936 ac_cv_safe_to_define___extensions__=no 3937fi 3938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3939fi 3940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3941printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3942 3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3944printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3945if test ${ac_cv_should_define__xopen_source+y} 3946then : 3947 printf %s "(cached) " >&6 3948else $as_nop 3949 ac_cv_should_define__xopen_source=no 3950 if test $ac_cv_header_wchar_h = yes 3951then : 3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3953/* end confdefs.h. */ 3954 3955 #include <wchar.h> 3956 mbstate_t x; 3957int 3958main (void) 3959{ 3960 3961 ; 3962 return 0; 3963} 3964_ACEOF 3965if ac_fn_c_try_compile "$LINENO" 3966then : 3967 3968else $as_nop 3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3970/* end confdefs.h. */ 3971 3972 #define _XOPEN_SOURCE 500 3973 #include <wchar.h> 3974 mbstate_t x; 3975int 3976main (void) 3977{ 3978 3979 ; 3980 return 0; 3981} 3982_ACEOF 3983if ac_fn_c_try_compile "$LINENO" 3984then : 3985 ac_cv_should_define__xopen_source=yes 3986fi 3987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3988fi 3989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3990fi 3991fi 3992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3993printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3994 3995 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3996 3997 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3998 3999 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4000 4001 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4002 4003 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4004 4005 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4006 4007 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4008 4009 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4010 4011 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4012 4013 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4014 4015 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4016 4017 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4018 4019 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4020 4021 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4022 4023 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4024 4025 if test $ac_cv_header_minix_config_h = yes 4026then : 4027 MINIX=yes 4028 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4029 4030 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4031 4032 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4033 4034else $as_nop 4035 MINIX= 4036fi 4037 if test $ac_cv_safe_to_define___extensions__ = yes 4038then : 4039 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4040 4041fi 4042 if test $ac_cv_should_define__xopen_source = yes 4043then : 4044 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4045 4046fi 4047 4048ac_config_headers="$ac_config_headers config.h" 4049 4050 4051 4052# Initialize Automake 4053am__api_version='1.16' 4054 4055 4056 # Find a good install program. We prefer a C program (faster), 4057# so one script is as good as another. But avoid the broken or 4058# incompatible versions: 4059# SysV /etc/install, /usr/sbin/install 4060# SunOS /usr/etc/install 4061# IRIX /sbin/install 4062# AIX /bin/install 4063# AmigaOS /C/install, which installs bootblocks on floppy discs 4064# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4065# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4066# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4067# OS/2's system install, which has a completely different semantic 4068# ./install, which can be erroneously created by make from ./install.sh. 4069# Reject install programs that cannot install multiple files. 4070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4071printf %s "checking for a BSD-compatible install... " >&6; } 4072if test -z "$INSTALL"; then 4073if test ${ac_cv_path_install+y} 4074then : 4075 printf %s "(cached) " >&6 4076else $as_nop 4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4078for as_dir in $PATH 4079do 4080 IFS=$as_save_IFS 4081 case $as_dir in #((( 4082 '') as_dir=./ ;; 4083 */) ;; 4084 *) as_dir=$as_dir/ ;; 4085 esac 4086 # Account for fact that we put trailing slashes in our PATH walk. 4087case $as_dir in #(( 4088 ./ | /[cC]/* | \ 4089 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4090 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4091 /usr/ucb/* ) ;; 4092 *) 4093 # OSF1 and SCO ODT 3.0 have their own names for install. 4094 # Don't use installbsd from OSF since it installs stuff as root 4095 # by default. 4096 for ac_prog in ginstall scoinst install; do 4097 for ac_exec_ext in '' $ac_executable_extensions; do 4098 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4099 if test $ac_prog = install && 4100 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4101 # AIX install. It has an incompatible calling convention. 4102 : 4103 elif test $ac_prog = install && 4104 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4105 # program-specific install script used by HP pwplus--don't use. 4106 : 4107 else 4108 rm -rf conftest.one conftest.two conftest.dir 4109 echo one > conftest.one 4110 echo two > conftest.two 4111 mkdir conftest.dir 4112 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4113 test -s conftest.one && test -s conftest.two && 4114 test -s conftest.dir/conftest.one && 4115 test -s conftest.dir/conftest.two 4116 then 4117 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4118 break 3 4119 fi 4120 fi 4121 fi 4122 done 4123 done 4124 ;; 4125esac 4126 4127 done 4128IFS=$as_save_IFS 4129 4130rm -rf conftest.one conftest.two conftest.dir 4131 4132fi 4133 if test ${ac_cv_path_install+y}; then 4134 INSTALL=$ac_cv_path_install 4135 else 4136 # As a last resort, use the slow shell script. Don't cache a 4137 # value for INSTALL within a source directory, because that will 4138 # break other packages using the cache if that directory is 4139 # removed, or if the value is a relative name. 4140 INSTALL=$ac_install_sh 4141 fi 4142fi 4143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4144printf "%s\n" "$INSTALL" >&6; } 4145 4146# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4147# It thinks the first close brace ends the variable substitution. 4148test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4149 4150test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4151 4152test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4153 4154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4155printf %s "checking whether build environment is sane... " >&6; } 4156# Reject unsafe characters in $srcdir or the absolute working directory 4157# name. Accept space and tab only in the latter. 4158am_lf=' 4159' 4160case `pwd` in 4161 *[\\\"\#\$\&\'\`$am_lf]*) 4162 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4163esac 4164case $srcdir in 4165 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4166 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4167esac 4168 4169# Do 'set' in a subshell so we don't clobber the current shell's 4170# arguments. Must try -L first in case configure is actually a 4171# symlink; some systems play weird games with the mod time of symlinks 4172# (eg FreeBSD returns the mod time of the symlink's containing 4173# directory). 4174if ( 4175 am_has_slept=no 4176 for am_try in 1 2; do 4177 echo "timestamp, slept: $am_has_slept" > conftest.file 4178 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4179 if test "$*" = "X"; then 4180 # -L didn't work. 4181 set X `ls -t "$srcdir/configure" conftest.file` 4182 fi 4183 if test "$*" != "X $srcdir/configure conftest.file" \ 4184 && test "$*" != "X conftest.file $srcdir/configure"; then 4185 4186 # If neither matched, then we have a broken ls. This can happen 4187 # if, for instance, CONFIG_SHELL is bash and it inherits a 4188 # broken ls alias from the environment. This has actually 4189 # happened. Such a system could not be considered "sane". 4190 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4191 alias in your environment" "$LINENO" 5 4192 fi 4193 if test "$2" = conftest.file || test $am_try -eq 2; then 4194 break 4195 fi 4196 # Just in case. 4197 sleep 1 4198 am_has_slept=yes 4199 done 4200 test "$2" = conftest.file 4201 ) 4202then 4203 # Ok. 4204 : 4205else 4206 as_fn_error $? "newly created file is older than distributed files! 4207Check your system clock" "$LINENO" 5 4208fi 4209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4210printf "%s\n" "yes" >&6; } 4211# If we didn't sleep, we still need to ensure time stamps of config.status and 4212# generated files are strictly newer. 4213am_sleep_pid= 4214if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4215 ( sleep 1 ) & 4216 am_sleep_pid=$! 4217fi 4218 4219rm -f conftest.file 4220 4221test "$program_prefix" != NONE && 4222 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4223# Use a double $ so make ignores it. 4224test "$program_suffix" != NONE && 4225 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4226# Double any \ or $. 4227# By default was `s,x,x', remove it if useless. 4228ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4229program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4230 4231 4232 if test x"${MISSING+set}" != xset; then 4233 MISSING="\${SHELL} '$am_aux_dir/missing'" 4234fi 4235# Use eval to expand $SHELL 4236if eval "$MISSING --is-lightweight"; then 4237 am_missing_run="$MISSING " 4238else 4239 am_missing_run= 4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4241printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4242fi 4243 4244if test x"${install_sh+set}" != xset; then 4245 case $am_aux_dir in 4246 *\ * | *\ *) 4247 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4248 *) 4249 install_sh="\${SHELL} $am_aux_dir/install-sh" 4250 esac 4251fi 4252 4253# Installed binaries are usually stripped using 'strip' when the user 4254# run "make install-strip". However 'strip' might not be the right 4255# tool to use in cross-compilation environments, therefore Automake 4256# will honor the 'STRIP' environment variable to overrule this program. 4257if test "$cross_compiling" != no; then 4258 if test -n "$ac_tool_prefix"; then 4259 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4260set dummy ${ac_tool_prefix}strip; ac_word=$2 4261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4262printf %s "checking for $ac_word... " >&6; } 4263if test ${ac_cv_prog_STRIP+y} 4264then : 4265 printf %s "(cached) " >&6 4266else $as_nop 4267 if test -n "$STRIP"; then 4268 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4269else 4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4271for as_dir in $PATH 4272do 4273 IFS=$as_save_IFS 4274 case $as_dir in #((( 4275 '') as_dir=./ ;; 4276 */) ;; 4277 *) as_dir=$as_dir/ ;; 4278 esac 4279 for ac_exec_ext in '' $ac_executable_extensions; do 4280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4281 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4283 break 2 4284 fi 4285done 4286 done 4287IFS=$as_save_IFS 4288 4289fi 4290fi 4291STRIP=$ac_cv_prog_STRIP 4292if test -n "$STRIP"; then 4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4294printf "%s\n" "$STRIP" >&6; } 4295else 4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4297printf "%s\n" "no" >&6; } 4298fi 4299 4300 4301fi 4302if test -z "$ac_cv_prog_STRIP"; then 4303 ac_ct_STRIP=$STRIP 4304 # Extract the first word of "strip", so it can be a program name with args. 4305set dummy strip; ac_word=$2 4306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4307printf %s "checking for $ac_word... " >&6; } 4308if test ${ac_cv_prog_ac_ct_STRIP+y} 4309then : 4310 printf %s "(cached) " >&6 4311else $as_nop 4312 if test -n "$ac_ct_STRIP"; then 4313 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4314else 4315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4316for as_dir in $PATH 4317do 4318 IFS=$as_save_IFS 4319 case $as_dir in #((( 4320 '') as_dir=./ ;; 4321 */) ;; 4322 *) as_dir=$as_dir/ ;; 4323 esac 4324 for ac_exec_ext in '' $ac_executable_extensions; do 4325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4326 ac_cv_prog_ac_ct_STRIP="strip" 4327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4328 break 2 4329 fi 4330done 4331 done 4332IFS=$as_save_IFS 4333 4334fi 4335fi 4336ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4337if test -n "$ac_ct_STRIP"; then 4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4339printf "%s\n" "$ac_ct_STRIP" >&6; } 4340else 4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4342printf "%s\n" "no" >&6; } 4343fi 4344 4345 if test "x$ac_ct_STRIP" = x; then 4346 STRIP=":" 4347 else 4348 case $cross_compiling:$ac_tool_warned in 4349yes:) 4350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4351printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4352ac_tool_warned=yes ;; 4353esac 4354 STRIP=$ac_ct_STRIP 4355 fi 4356else 4357 STRIP="$ac_cv_prog_STRIP" 4358fi 4359 4360fi 4361INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4362 4363 4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4365printf %s "checking for a race-free mkdir -p... " >&6; } 4366if test -z "$MKDIR_P"; then 4367 if test ${ac_cv_path_mkdir+y} 4368then : 4369 printf %s "(cached) " >&6 4370else $as_nop 4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4372for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4373do 4374 IFS=$as_save_IFS 4375 case $as_dir in #((( 4376 '') as_dir=./ ;; 4377 */) ;; 4378 *) as_dir=$as_dir/ ;; 4379 esac 4380 for ac_prog in mkdir gmkdir; do 4381 for ac_exec_ext in '' $ac_executable_extensions; do 4382 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4383 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4384 'mkdir ('*'coreutils) '* | \ 4385 'BusyBox '* | \ 4386 'mkdir (fileutils) '4.1*) 4387 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4388 break 3;; 4389 esac 4390 done 4391 done 4392 done 4393IFS=$as_save_IFS 4394 4395fi 4396 4397 test -d ./--version && rmdir ./--version 4398 if test ${ac_cv_path_mkdir+y}; then 4399 MKDIR_P="$ac_cv_path_mkdir -p" 4400 else 4401 # As a last resort, use the slow shell script. Don't cache a 4402 # value for MKDIR_P within a source directory, because that will 4403 # break other packages using the cache if that directory is 4404 # removed, or if the value is a relative name. 4405 MKDIR_P="$ac_install_sh -d" 4406 fi 4407fi 4408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4409printf "%s\n" "$MKDIR_P" >&6; } 4410 4411for ac_prog in gawk mawk nawk awk 4412do 4413 # Extract the first word of "$ac_prog", so it can be a program name with args. 4414set dummy $ac_prog; ac_word=$2 4415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4416printf %s "checking for $ac_word... " >&6; } 4417if test ${ac_cv_prog_AWK+y} 4418then : 4419 printf %s "(cached) " >&6 4420else $as_nop 4421 if test -n "$AWK"; then 4422 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4423else 4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4425for as_dir in $PATH 4426do 4427 IFS=$as_save_IFS 4428 case $as_dir in #((( 4429 '') as_dir=./ ;; 4430 */) ;; 4431 *) as_dir=$as_dir/ ;; 4432 esac 4433 for ac_exec_ext in '' $ac_executable_extensions; do 4434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4435 ac_cv_prog_AWK="$ac_prog" 4436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4437 break 2 4438 fi 4439done 4440 done 4441IFS=$as_save_IFS 4442 4443fi 4444fi 4445AWK=$ac_cv_prog_AWK 4446if test -n "$AWK"; then 4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4448printf "%s\n" "$AWK" >&6; } 4449else 4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4451printf "%s\n" "no" >&6; } 4452fi 4453 4454 4455 test -n "$AWK" && break 4456done 4457 4458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4459printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4460set x ${MAKE-make} 4461ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4462if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4463then : 4464 printf %s "(cached) " >&6 4465else $as_nop 4466 cat >conftest.make <<\_ACEOF 4467SHELL = /bin/sh 4468all: 4469 @echo '@@@%%%=$(MAKE)=@@@%%%' 4470_ACEOF 4471# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4472case `${MAKE-make} -f conftest.make 2>/dev/null` in 4473 *@@@%%%=?*=@@@%%%*) 4474 eval ac_cv_prog_make_${ac_make}_set=yes;; 4475 *) 4476 eval ac_cv_prog_make_${ac_make}_set=no;; 4477esac 4478rm -f conftest.make 4479fi 4480if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4482printf "%s\n" "yes" >&6; } 4483 SET_MAKE= 4484else 4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4486printf "%s\n" "no" >&6; } 4487 SET_MAKE="MAKE=${MAKE-make}" 4488fi 4489 4490rm -rf .tst 2>/dev/null 4491mkdir .tst 2>/dev/null 4492if test -d .tst; then 4493 am__leading_dot=. 4494else 4495 am__leading_dot=_ 4496fi 4497rmdir .tst 2>/dev/null 4498 4499DEPDIR="${am__leading_dot}deps" 4500 4501ac_config_commands="$ac_config_commands depfiles" 4502 4503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4504printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4505cat > confinc.mk << 'END' 4506am__doit: 4507 @echo this is the am__doit target >confinc.out 4508.PHONY: am__doit 4509END 4510am__include="#" 4511am__quote= 4512# BSD make does it like this. 4513echo '.include "confinc.mk" # ignored' > confmf.BSD 4514# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4515echo 'include confinc.mk # ignored' > confmf.GNU 4516_am_result=no 4517for s in GNU BSD; do 4518 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4519 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4520 ac_status=$? 4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4522 (exit $ac_status); } 4523 case $?:`cat confinc.out 2>/dev/null` in #( 4524 '0:this is the am__doit target') : 4525 case $s in #( 4526 BSD) : 4527 am__include='.include' am__quote='"' ;; #( 4528 *) : 4529 am__include='include' am__quote='' ;; 4530esac ;; #( 4531 *) : 4532 ;; 4533esac 4534 if test "$am__include" != "#"; then 4535 _am_result="yes ($s style)" 4536 break 4537 fi 4538done 4539rm -f confinc.* confmf.* 4540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4541printf "%s\n" "${_am_result}" >&6; } 4542 4543# Check whether --enable-dependency-tracking was given. 4544if test ${enable_dependency_tracking+y} 4545then : 4546 enableval=$enable_dependency_tracking; 4547fi 4548 4549if test "x$enable_dependency_tracking" != xno; then 4550 am_depcomp="$ac_aux_dir/depcomp" 4551 AMDEPBACKSLASH='\' 4552 am__nodep='_no' 4553fi 4554 if test "x$enable_dependency_tracking" != xno; then 4555 AMDEP_TRUE= 4556 AMDEP_FALSE='#' 4557else 4558 AMDEP_TRUE='#' 4559 AMDEP_FALSE= 4560fi 4561 4562 4563# Check whether --enable-silent-rules was given. 4564if test ${enable_silent_rules+y} 4565then : 4566 enableval=$enable_silent_rules; 4567fi 4568 4569case $enable_silent_rules in # ((( 4570 yes) AM_DEFAULT_VERBOSITY=0;; 4571 no) AM_DEFAULT_VERBOSITY=1;; 4572 *) AM_DEFAULT_VERBOSITY=1;; 4573esac 4574am_make=${MAKE-make} 4575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4576printf %s "checking whether $am_make supports nested variables... " >&6; } 4577if test ${am_cv_make_support_nested_variables+y} 4578then : 4579 printf %s "(cached) " >&6 4580else $as_nop 4581 if printf "%s\n" 'TRUE=$(BAR$(V)) 4582BAR0=false 4583BAR1=true 4584V=1 4585am__doit: 4586 @$(TRUE) 4587.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4588 am_cv_make_support_nested_variables=yes 4589else 4590 am_cv_make_support_nested_variables=no 4591fi 4592fi 4593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4594printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4595if test $am_cv_make_support_nested_variables = yes; then 4596 AM_V='$(V)' 4597 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4598else 4599 AM_V=$AM_DEFAULT_VERBOSITY 4600 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4601fi 4602AM_BACKSLASH='\' 4603 4604if test "`cd $srcdir && pwd`" != "`pwd`"; then 4605 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4606 # is not polluted with repeated "-I." 4607 am__isrc=' -I$(srcdir)' 4608 # test to see if srcdir already configured 4609 if test -f $srcdir/config.status; then 4610 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4611 fi 4612fi 4613 4614# test whether we have cygpath 4615if test -z "$CYGPATH_W"; then 4616 if (cygpath --version) >/dev/null 2>/dev/null; then 4617 CYGPATH_W='cygpath -w' 4618 else 4619 CYGPATH_W=echo 4620 fi 4621fi 4622 4623 4624# Define the identity of the package. 4625 PACKAGE='xfs' 4626 VERSION='1.2.1' 4627 4628 4629printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4630 4631 4632printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4633 4634# Some tools Automake needs. 4635 4636ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4637 4638 4639AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4640 4641 4642AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4643 4644 4645AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4646 4647 4648MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4649 4650# For better backward compatibility. To be removed once Automake 1.9.x 4651# dies out for good. For more background, see: 4652# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4653# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4654mkdir_p='$(MKDIR_P)' 4655 4656# We need awk for the "check" target (and possibly the TAP driver). The 4657# system "awk" is bad on some platforms. 4658# Always define AMTAR for backward compatibility. Yes, it's still used 4659# in the wild :-( We should find a proper way to deprecate it ... 4660AMTAR='$${TAR-tar}' 4661 4662 4663# We'll loop over all known methods to create a tar archive until one works. 4664_am_tools='gnutar pax cpio none' 4665 4666am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4667 4668 4669 4670 4671 4672depcc="$CC" am_compiler_list= 4673 4674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4675printf %s "checking dependency style of $depcc... " >&6; } 4676if test ${am_cv_CC_dependencies_compiler_type+y} 4677then : 4678 printf %s "(cached) " >&6 4679else $as_nop 4680 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4681 # We make a subdir and do the tests there. Otherwise we can end up 4682 # making bogus files that we don't know about and never remove. For 4683 # instance it was reported that on HP-UX the gcc test will end up 4684 # making a dummy file named 'D' -- because '-MD' means "put the output 4685 # in D". 4686 rm -rf conftest.dir 4687 mkdir conftest.dir 4688 # Copy depcomp to subdir because otherwise we won't find it if we're 4689 # using a relative directory. 4690 cp "$am_depcomp" conftest.dir 4691 cd conftest.dir 4692 # We will build objects and dependencies in a subdirectory because 4693 # it helps to detect inapplicable dependency modes. For instance 4694 # both Tru64's cc and ICC support -MD to output dependencies as a 4695 # side effect of compilation, but ICC will put the dependencies in 4696 # the current directory while Tru64 will put them in the object 4697 # directory. 4698 mkdir sub 4699 4700 am_cv_CC_dependencies_compiler_type=none 4701 if test "$am_compiler_list" = ""; then 4702 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4703 fi 4704 am__universal=false 4705 case " $depcc " in #( 4706 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4707 esac 4708 4709 for depmode in $am_compiler_list; do 4710 # Setup a source with many dependencies, because some compilers 4711 # like to wrap large dependency lists on column 80 (with \), and 4712 # we should not choose a depcomp mode which is confused by this. 4713 # 4714 # We need to recreate these files for each test, as the compiler may 4715 # overwrite some of them when testing with obscure command lines. 4716 # This happens at least with the AIX C compiler. 4717 : > sub/conftest.c 4718 for i in 1 2 3 4 5 6; do 4719 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4720 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4721 # Solaris 10 /bin/sh. 4722 echo '/* dummy */' > sub/conftst$i.h 4723 done 4724 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4725 4726 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4727 # mode. It turns out that the SunPro C++ compiler does not properly 4728 # handle '-M -o', and we need to detect this. Also, some Intel 4729 # versions had trouble with output in subdirs. 4730 am__obj=sub/conftest.${OBJEXT-o} 4731 am__minus_obj="-o $am__obj" 4732 case $depmode in 4733 gcc) 4734 # This depmode causes a compiler race in universal mode. 4735 test "$am__universal" = false || continue 4736 ;; 4737 nosideeffect) 4738 # After this tag, mechanisms are not by side-effect, so they'll 4739 # only be used when explicitly requested. 4740 if test "x$enable_dependency_tracking" = xyes; then 4741 continue 4742 else 4743 break 4744 fi 4745 ;; 4746 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4747 # This compiler won't grok '-c -o', but also, the minuso test has 4748 # not run yet. These depmodes are late enough in the game, and 4749 # so weak that their functioning should not be impacted. 4750 am__obj=conftest.${OBJEXT-o} 4751 am__minus_obj= 4752 ;; 4753 none) break ;; 4754 esac 4755 if depmode=$depmode \ 4756 source=sub/conftest.c object=$am__obj \ 4757 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4758 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4759 >/dev/null 2>conftest.err && 4760 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4761 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4762 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4763 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4764 # icc doesn't choke on unknown options, it will just issue warnings 4765 # or remarks (even with -Werror). So we grep stderr for any message 4766 # that says an option was ignored or not supported. 4767 # When given -MP, icc 7.0 and 7.1 complain thusly: 4768 # icc: Command line warning: ignoring option '-M'; no argument required 4769 # The diagnosis changed in icc 8.0: 4770 # icc: Command line remark: option '-MP' not supported 4771 if (grep 'ignoring option' conftest.err || 4772 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4773 am_cv_CC_dependencies_compiler_type=$depmode 4774 break 4775 fi 4776 fi 4777 done 4778 4779 cd .. 4780 rm -rf conftest.dir 4781else 4782 am_cv_CC_dependencies_compiler_type=none 4783fi 4784 4785fi 4786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4787printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4788CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4789 4790 if 4791 test "x$enable_dependency_tracking" != xno \ 4792 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4793 am__fastdepCC_TRUE= 4794 am__fastdepCC_FALSE='#' 4795else 4796 am__fastdepCC_TRUE='#' 4797 am__fastdepCC_FALSE= 4798fi 4799 4800 4801# Variables for tags utilities; see am/tags.am 4802if test -z "$CTAGS"; then 4803 CTAGS=ctags 4804fi 4805 4806if test -z "$ETAGS"; then 4807 ETAGS=etags 4808fi 4809 4810if test -z "$CSCOPE"; then 4811 CSCOPE=cscope 4812fi 4813 4814 4815 4816# POSIX will say in a future version that running "rm -f" with no argument 4817# is OK; and we want to be able to make that assumption in our Makefile 4818# recipes. So use an aggressive probe to check that the usage we want is 4819# actually supported "in the wild" to an acceptable degree. 4820# See automake bug#10828. 4821# To make any issue more visible, cause the running configure to be aborted 4822# by default if the 'rm' program in use doesn't match our expectations; the 4823# user can still override this though. 4824if rm -f && rm -fr && rm -rf; then : OK; else 4825 cat >&2 <<'END' 4826Oops! 4827 4828Your 'rm' program seems unable to run without file operands specified 4829on the command line, even when the '-f' option is present. This is contrary 4830to the behaviour of most rm programs out there, and not conforming with 4831the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4832 4833Please tell bug-automake@gnu.org about your system, including the value 4834of your $PATH and any error possibly output before this message. This 4835can help us improve future automake versions. 4836 4837END 4838 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4839 echo 'Configuration will proceed anyway, since you have set the' >&2 4840 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4841 echo >&2 4842 else 4843 cat >&2 <<'END' 4844Aborting the configuration process, to ensure you take notice of the issue. 4845 4846You can download and install GNU coreutils to get an 'rm' implementation 4847that behaves properly: <https://www.gnu.org/software/coreutils/>. 4848 4849If you want to complete the configuration process using your problematic 4850'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4851to "yes", and re-run configure. 4852 4853END 4854 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4855 fi 4856fi 4857 4858 4859# Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4873printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4874if test ${ac_cv_c_undeclared_builtin_options+y} 4875then : 4876 printf %s "(cached) " >&6 4877else $as_nop 4878 ac_save_CFLAGS=$CFLAGS 4879 ac_cv_c_undeclared_builtin_options='cannot detect' 4880 for ac_arg in '' -fno-builtin; do 4881 CFLAGS="$ac_save_CFLAGS $ac_arg" 4882 # This test program should *not* compile successfully. 4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4884/* end confdefs.h. */ 4885 4886int 4887main (void) 4888{ 4889(void) strchr; 4890 ; 4891 return 0; 4892} 4893_ACEOF 4894if ac_fn_c_try_compile "$LINENO" 4895then : 4896 4897else $as_nop 4898 # This test program should compile successfully. 4899 # No library function is consistently available on 4900 # freestanding implementations, so test against a dummy 4901 # declaration. Include always-available headers on the 4902 # off chance that they somehow elicit warnings. 4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4904/* end confdefs.h. */ 4905#include <float.h> 4906#include <limits.h> 4907#include <stdarg.h> 4908#include <stddef.h> 4909extern void ac_decl (int, char *); 4910 4911int 4912main (void) 4913{ 4914(void) ac_decl (0, (char *) 0); 4915 (void) ac_decl; 4916 4917 ; 4918 return 0; 4919} 4920_ACEOF 4921if ac_fn_c_try_compile "$LINENO" 4922then : 4923 if test x"$ac_arg" = x 4924then : 4925 ac_cv_c_undeclared_builtin_options='none needed' 4926else $as_nop 4927 ac_cv_c_undeclared_builtin_options=$ac_arg 4928fi 4929 break 4930fi 4931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4932fi 4933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4934 done 4935 CFLAGS=$ac_save_CFLAGS 4936 4937fi 4938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4939printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4940 case $ac_cv_c_undeclared_builtin_options in #( 4941 'cannot detect') : 4942 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4943printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4944as_fn_error $? "cannot make $CC report undeclared builtins 4945See \`config.log' for more details" "$LINENO" 5; } ;; #( 4946 'none needed') : 4947 ac_c_undeclared_builtin_options='' ;; #( 4948 *) : 4949 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4950esac 4951 4952 4953 4954 4955 4956ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4957if test "x$ac_cv_have_decl___clang__" = xyes 4958then : 4959 CLANGCC="yes" 4960else $as_nop 4961 CLANGCC="no" 4962fi 4963ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4964if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4965then : 4966 INTELCC="yes" 4967else $as_nop 4968 INTELCC="no" 4969fi 4970ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4971if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4972then : 4973 SUNCC="yes" 4974else $as_nop 4975 SUNCC="no" 4976fi 4977 4978 4979 4980 4981 4982 4983 4984 4985if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4986 if test -n "$ac_tool_prefix"; then 4987 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4988set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4990printf %s "checking for $ac_word... " >&6; } 4991if test ${ac_cv_path_PKG_CONFIG+y} 4992then : 4993 printf %s "(cached) " >&6 4994else $as_nop 4995 case $PKG_CONFIG in 4996 [\\/]* | ?:[\\/]*) 4997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4998 ;; 4999 *) 5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5001for as_dir in $PATH 5002do 5003 IFS=$as_save_IFS 5004 case $as_dir in #((( 5005 '') as_dir=./ ;; 5006 */) ;; 5007 *) as_dir=$as_dir/ ;; 5008 esac 5009 for ac_exec_ext in '' $ac_executable_extensions; do 5010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5011 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5013 break 2 5014 fi 5015done 5016 done 5017IFS=$as_save_IFS 5018 5019 ;; 5020esac 5021fi 5022PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5023if test -n "$PKG_CONFIG"; then 5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5025printf "%s\n" "$PKG_CONFIG" >&6; } 5026else 5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5028printf "%s\n" "no" >&6; } 5029fi 5030 5031 5032fi 5033if test -z "$ac_cv_path_PKG_CONFIG"; then 5034 ac_pt_PKG_CONFIG=$PKG_CONFIG 5035 # Extract the first word of "pkg-config", so it can be a program name with args. 5036set dummy pkg-config; ac_word=$2 5037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5038printf %s "checking for $ac_word... " >&6; } 5039if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5040then : 5041 printf %s "(cached) " >&6 5042else $as_nop 5043 case $ac_pt_PKG_CONFIG in 5044 [\\/]* | ?:[\\/]*) 5045 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5046 ;; 5047 *) 5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5049for as_dir in $PATH 5050do 5051 IFS=$as_save_IFS 5052 case $as_dir in #((( 5053 '') as_dir=./ ;; 5054 */) ;; 5055 *) as_dir=$as_dir/ ;; 5056 esac 5057 for ac_exec_ext in '' $ac_executable_extensions; do 5058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5059 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5061 break 2 5062 fi 5063done 5064 done 5065IFS=$as_save_IFS 5066 5067 ;; 5068esac 5069fi 5070ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5071if test -n "$ac_pt_PKG_CONFIG"; then 5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5073printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5074else 5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5076printf "%s\n" "no" >&6; } 5077fi 5078 5079 if test "x$ac_pt_PKG_CONFIG" = x; then 5080 PKG_CONFIG="" 5081 else 5082 case $cross_compiling:$ac_tool_warned in 5083yes:) 5084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5085printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5086ac_tool_warned=yes ;; 5087esac 5088 PKG_CONFIG=$ac_pt_PKG_CONFIG 5089 fi 5090else 5091 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5092fi 5093 5094fi 5095if test -n "$PKG_CONFIG"; then 5096 _pkg_min_version=0.9.0 5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5098printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5099 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5101printf "%s\n" "yes" >&6; } 5102 else 5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5104printf "%s\n" "no" >&6; } 5105 PKG_CONFIG="" 5106 fi 5107fi 5108 5109 5110 # Make sure we can run config.sub. 5111$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5112 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5113 5114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5115printf %s "checking build system type... " >&6; } 5116if test ${ac_cv_build+y} 5117then : 5118 printf %s "(cached) " >&6 5119else $as_nop 5120 ac_build_alias=$build_alias 5121test "x$ac_build_alias" = x && 5122 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5123test "x$ac_build_alias" = x && 5124 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5125ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5126 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5127 5128fi 5129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5130printf "%s\n" "$ac_cv_build" >&6; } 5131case $ac_cv_build in 5132*-*-*) ;; 5133*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5134esac 5135build=$ac_cv_build 5136ac_save_IFS=$IFS; IFS='-' 5137set x $ac_cv_build 5138shift 5139build_cpu=$1 5140build_vendor=$2 5141shift; shift 5142# Remember, the first character of IFS is used to create $*, 5143# except with old shells: 5144build_os=$* 5145IFS=$ac_save_IFS 5146case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5147 5148 5149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5150printf %s "checking host system type... " >&6; } 5151if test ${ac_cv_host+y} 5152then : 5153 printf %s "(cached) " >&6 5154else $as_nop 5155 if test "x$host_alias" = x; then 5156 ac_cv_host=$ac_cv_build 5157else 5158 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5159 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5160fi 5161 5162fi 5163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5164printf "%s\n" "$ac_cv_host" >&6; } 5165case $ac_cv_host in 5166*-*-*) ;; 5167*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5168esac 5169host=$ac_cv_host 5170ac_save_IFS=$IFS; IFS='-' 5171set x $ac_cv_host 5172shift 5173host_cpu=$1 5174host_vendor=$2 5175shift; shift 5176# Remember, the first character of IFS is used to create $*, 5177# except with old shells: 5178host_os=$* 5179IFS=$ac_save_IFS 5180case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5181 5182 5183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5184printf %s "checking for a sed that does not truncate output... " >&6; } 5185if test ${ac_cv_path_SED+y} 5186then : 5187 printf %s "(cached) " >&6 5188else $as_nop 5189 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5190 for ac_i in 1 2 3 4 5 6 7; do 5191 ac_script="$ac_script$as_nl$ac_script" 5192 done 5193 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5194 { ac_script=; unset ac_script;} 5195 if test -z "$SED"; then 5196 ac_path_SED_found=false 5197 # Loop through the user's path and test for each of PROGNAME-LIST 5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5199for as_dir in $PATH 5200do 5201 IFS=$as_save_IFS 5202 case $as_dir in #((( 5203 '') as_dir=./ ;; 5204 */) ;; 5205 *) as_dir=$as_dir/ ;; 5206 esac 5207 for ac_prog in sed gsed 5208 do 5209 for ac_exec_ext in '' $ac_executable_extensions; do 5210 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5211 as_fn_executable_p "$ac_path_SED" || continue 5212# Check for GNU ac_path_SED and select it if it is found. 5213 # Check for GNU $ac_path_SED 5214case `"$ac_path_SED" --version 2>&1` in 5215*GNU*) 5216 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5217*) 5218 ac_count=0 5219 printf %s 0123456789 >"conftest.in" 5220 while : 5221 do 5222 cat "conftest.in" "conftest.in" >"conftest.tmp" 5223 mv "conftest.tmp" "conftest.in" 5224 cp "conftest.in" "conftest.nl" 5225 printf "%s\n" '' >> "conftest.nl" 5226 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5228 as_fn_arith $ac_count + 1 && ac_count=$as_val 5229 if test $ac_count -gt ${ac_path_SED_max-0}; then 5230 # Best one so far, save it but keep looking for a better one 5231 ac_cv_path_SED="$ac_path_SED" 5232 ac_path_SED_max=$ac_count 5233 fi 5234 # 10*(2^10) chars as input seems more than enough 5235 test $ac_count -gt 10 && break 5236 done 5237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5238esac 5239 5240 $ac_path_SED_found && break 3 5241 done 5242 done 5243 done 5244IFS=$as_save_IFS 5245 if test -z "$ac_cv_path_SED"; then 5246 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5247 fi 5248else 5249 ac_cv_path_SED=$SED 5250fi 5251 5252fi 5253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5254printf "%s\n" "$ac_cv_path_SED" >&6; } 5255 SED="$ac_cv_path_SED" 5256 rm -f conftest.sed 5257 5258 5259 5260 5261 5262 5263# Check whether --enable-selective-werror was given. 5264if test ${enable_selective_werror+y} 5265then : 5266 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5267else $as_nop 5268 SELECTIVE_WERROR=yes 5269fi 5270 5271 5272 5273 5274 5275# -v is too short to test reliably with XORG_TESTSET_CFLAG 5276if test "x$SUNCC" = "xyes"; then 5277 BASE_CFLAGS="-v" 5278else 5279 BASE_CFLAGS="" 5280fi 5281 5282# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296xorg_testset_save_CFLAGS="$CFLAGS" 5297 5298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5302if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5303then : 5304 printf %s "(cached) " >&6 5305else $as_nop 5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5307/* end confdefs.h. */ 5308int i; 5309_ACEOF 5310if ac_fn_c_try_compile "$LINENO" 5311then : 5312 xorg_cv_cc_flag_unknown_warning_option=yes 5313else $as_nop 5314 xorg_cv_cc_flag_unknown_warning_option=no 5315fi 5316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5317fi 5318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5321 CFLAGS="$xorg_testset_save_CFLAGS" 5322fi 5323 5324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5327 fi 5328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5331if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5332then : 5333 printf %s "(cached) " >&6 5334else $as_nop 5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5336/* end confdefs.h. */ 5337int i; 5338_ACEOF 5339if ac_fn_c_try_compile "$LINENO" 5340then : 5341 xorg_cv_cc_flag_unused_command_line_argument=yes 5342else $as_nop 5343 xorg_cv_cc_flag_unused_command_line_argument=no 5344fi 5345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5346fi 5347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5348printf "%s\n" "$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_cc_unknown_warning_option" = "xyes" ; then 5357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5358 fi 5359 5360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5362 fi 5363 5364 CFLAGS="$CFLAGS -Wall" 5365 5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5367printf %s "checking if $CC supports -Wall... " >&6; } 5368 cacheid=xorg_cv_cc_flag__Wall 5369 if eval test \${$cacheid+y} 5370then : 5371 printf %s "(cached) " >&6 5372else $as_nop 5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5374/* end confdefs.h. */ 5375int i; 5376int 5377main (void) 5378{ 5379 5380 ; 5381 return 0; 5382} 5383_ACEOF 5384if ac_fn_c_try_link "$LINENO" 5385then : 5386 eval $cacheid=yes 5387else $as_nop 5388 eval $cacheid=no 5389fi 5390rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5391 conftest$ac_exeext conftest.$ac_ext 5392fi 5393 5394 5395 CFLAGS="$xorg_testset_save_CFLAGS" 5396 5397 eval supported=\$$cacheid 5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5399printf "%s\n" "$supported" >&6; } 5400 if test "$supported" = "yes" ; then 5401 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5402 found="yes" 5403 fi 5404 fi 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420xorg_testset_save_CFLAGS="$CFLAGS" 5421 5422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5426if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5427then : 5428 printf %s "(cached) " >&6 5429else $as_nop 5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5431/* end confdefs.h. */ 5432int i; 5433_ACEOF 5434if ac_fn_c_try_compile "$LINENO" 5435then : 5436 xorg_cv_cc_flag_unknown_warning_option=yes 5437else $as_nop 5438 xorg_cv_cc_flag_unknown_warning_option=no 5439fi 5440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5441fi 5442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5445 CFLAGS="$xorg_testset_save_CFLAGS" 5446fi 5447 5448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5451 fi 5452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5455if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5456then : 5457 printf %s "(cached) " >&6 5458else $as_nop 5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5460/* end confdefs.h. */ 5461int i; 5462_ACEOF 5463if ac_fn_c_try_compile "$LINENO" 5464then : 5465 xorg_cv_cc_flag_unused_command_line_argument=yes 5466else $as_nop 5467 xorg_cv_cc_flag_unused_command_line_argument=no 5468fi 5469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5470fi 5471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5474 CFLAGS="$xorg_testset_save_CFLAGS" 5475fi 5476 5477found="no" 5478 5479 if test $found = "no" ; then 5480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5482 fi 5483 5484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5486 fi 5487 5488 CFLAGS="$CFLAGS -Wpointer-arith" 5489 5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5491printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5492 cacheid=xorg_cv_cc_flag__Wpointer_arith 5493 if eval test \${$cacheid+y} 5494then : 5495 printf %s "(cached) " >&6 5496else $as_nop 5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5498/* end confdefs.h. */ 5499int i; 5500int 5501main (void) 5502{ 5503 5504 ; 5505 return 0; 5506} 5507_ACEOF 5508if ac_fn_c_try_link "$LINENO" 5509then : 5510 eval $cacheid=yes 5511else $as_nop 5512 eval $cacheid=no 5513fi 5514rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5515 conftest$ac_exeext conftest.$ac_ext 5516fi 5517 5518 5519 CFLAGS="$xorg_testset_save_CFLAGS" 5520 5521 eval supported=\$$cacheid 5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5523printf "%s\n" "$supported" >&6; } 5524 if test "$supported" = "yes" ; then 5525 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5526 found="yes" 5527 fi 5528 fi 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544xorg_testset_save_CFLAGS="$CFLAGS" 5545 5546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5549printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5550if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5551then : 5552 printf %s "(cached) " >&6 5553else $as_nop 5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5555/* end confdefs.h. */ 5556int i; 5557_ACEOF 5558if ac_fn_c_try_compile "$LINENO" 5559then : 5560 xorg_cv_cc_flag_unknown_warning_option=yes 5561else $as_nop 5562 xorg_cv_cc_flag_unknown_warning_option=no 5563fi 5564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5565fi 5566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5567printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5569 CFLAGS="$xorg_testset_save_CFLAGS" 5570fi 5571 5572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5575 fi 5576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5578printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5579if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5580then : 5581 printf %s "(cached) " >&6 5582else $as_nop 5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5584/* end confdefs.h. */ 5585int i; 5586_ACEOF 5587if ac_fn_c_try_compile "$LINENO" 5588then : 5589 xorg_cv_cc_flag_unused_command_line_argument=yes 5590else $as_nop 5591 xorg_cv_cc_flag_unused_command_line_argument=no 5592fi 5593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5594fi 5595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5598 CFLAGS="$xorg_testset_save_CFLAGS" 5599fi 5600 5601found="no" 5602 5603 if test $found = "no" ; then 5604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5606 fi 5607 5608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5610 fi 5611 5612 CFLAGS="$CFLAGS -Wmissing-declarations" 5613 5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5615printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5616 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5617 if eval test \${$cacheid+y} 5618then : 5619 printf %s "(cached) " >&6 5620else $as_nop 5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5622/* end confdefs.h. */ 5623int i; 5624int 5625main (void) 5626{ 5627 5628 ; 5629 return 0; 5630} 5631_ACEOF 5632if ac_fn_c_try_link "$LINENO" 5633then : 5634 eval $cacheid=yes 5635else $as_nop 5636 eval $cacheid=no 5637fi 5638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5639 conftest$ac_exeext conftest.$ac_ext 5640fi 5641 5642 5643 CFLAGS="$xorg_testset_save_CFLAGS" 5644 5645 eval supported=\$$cacheid 5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5647printf "%s\n" "$supported" >&6; } 5648 if test "$supported" = "yes" ; then 5649 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5650 found="yes" 5651 fi 5652 fi 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668xorg_testset_save_CFLAGS="$CFLAGS" 5669 5670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5674if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5675then : 5676 printf %s "(cached) " >&6 5677else $as_nop 5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5679/* end confdefs.h. */ 5680int i; 5681_ACEOF 5682if ac_fn_c_try_compile "$LINENO" 5683then : 5684 xorg_cv_cc_flag_unknown_warning_option=yes 5685else $as_nop 5686 xorg_cv_cc_flag_unknown_warning_option=no 5687fi 5688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5689fi 5690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5693 CFLAGS="$xorg_testset_save_CFLAGS" 5694fi 5695 5696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5699 fi 5700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5703if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5704then : 5705 printf %s "(cached) " >&6 5706else $as_nop 5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5708/* end confdefs.h. */ 5709int i; 5710_ACEOF 5711if ac_fn_c_try_compile "$LINENO" 5712then : 5713 xorg_cv_cc_flag_unused_command_line_argument=yes 5714else $as_nop 5715 xorg_cv_cc_flag_unused_command_line_argument=no 5716fi 5717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5718fi 5719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5722 CFLAGS="$xorg_testset_save_CFLAGS" 5723fi 5724 5725found="no" 5726 5727 if test $found = "no" ; then 5728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5730 fi 5731 5732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5734 fi 5735 5736 CFLAGS="$CFLAGS -Wformat=2" 5737 5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5739printf %s "checking if $CC supports -Wformat=2... " >&6; } 5740 cacheid=xorg_cv_cc_flag__Wformat_2 5741 if eval test \${$cacheid+y} 5742then : 5743 printf %s "(cached) " >&6 5744else $as_nop 5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5746/* end confdefs.h. */ 5747int i; 5748int 5749main (void) 5750{ 5751 5752 ; 5753 return 0; 5754} 5755_ACEOF 5756if ac_fn_c_try_link "$LINENO" 5757then : 5758 eval $cacheid=yes 5759else $as_nop 5760 eval $cacheid=no 5761fi 5762rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5763 conftest$ac_exeext conftest.$ac_ext 5764fi 5765 5766 5767 CFLAGS="$xorg_testset_save_CFLAGS" 5768 5769 eval supported=\$$cacheid 5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5771printf "%s\n" "$supported" >&6; } 5772 if test "$supported" = "yes" ; then 5773 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5774 found="yes" 5775 fi 5776 fi 5777 5778 if test $found = "no" ; then 5779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5781 fi 5782 5783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5785 fi 5786 5787 CFLAGS="$CFLAGS -Wformat" 5788 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5790printf %s "checking if $CC supports -Wformat... " >&6; } 5791 cacheid=xorg_cv_cc_flag__Wformat 5792 if eval test \${$cacheid+y} 5793then : 5794 printf %s "(cached) " >&6 5795else $as_nop 5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797/* end confdefs.h. */ 5798int i; 5799int 5800main (void) 5801{ 5802 5803 ; 5804 return 0; 5805} 5806_ACEOF 5807if ac_fn_c_try_link "$LINENO" 5808then : 5809 eval $cacheid=yes 5810else $as_nop 5811 eval $cacheid=no 5812fi 5813rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5814 conftest$ac_exeext conftest.$ac_ext 5815fi 5816 5817 5818 CFLAGS="$xorg_testset_save_CFLAGS" 5819 5820 eval supported=\$$cacheid 5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5822printf "%s\n" "$supported" >&6; } 5823 if test "$supported" = "yes" ; then 5824 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5825 found="yes" 5826 fi 5827 fi 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845xorg_testset_save_CFLAGS="$CFLAGS" 5846 5847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5850printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5851if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5852then : 5853 printf %s "(cached) " >&6 5854else $as_nop 5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5856/* end confdefs.h. */ 5857int i; 5858_ACEOF 5859if ac_fn_c_try_compile "$LINENO" 5860then : 5861 xorg_cv_cc_flag_unknown_warning_option=yes 5862else $as_nop 5863 xorg_cv_cc_flag_unknown_warning_option=no 5864fi 5865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5866fi 5867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5868printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5870 CFLAGS="$xorg_testset_save_CFLAGS" 5871fi 5872 5873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5876 fi 5877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5879printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5880if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5881then : 5882 printf %s "(cached) " >&6 5883else $as_nop 5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5885/* end confdefs.h. */ 5886int i; 5887_ACEOF 5888if ac_fn_c_try_compile "$LINENO" 5889then : 5890 xorg_cv_cc_flag_unused_command_line_argument=yes 5891else $as_nop 5892 xorg_cv_cc_flag_unused_command_line_argument=no 5893fi 5894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5895fi 5896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5897printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5899 CFLAGS="$xorg_testset_save_CFLAGS" 5900fi 5901 5902found="no" 5903 5904 if test $found = "no" ; then 5905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5907 fi 5908 5909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5911 fi 5912 5913 CFLAGS="$CFLAGS -Wstrict-prototypes" 5914 5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5916printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5917 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5918 if eval test \${$cacheid+y} 5919then : 5920 printf %s "(cached) " >&6 5921else $as_nop 5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5923/* end confdefs.h. */ 5924int i; 5925int 5926main (void) 5927{ 5928 5929 ; 5930 return 0; 5931} 5932_ACEOF 5933if ac_fn_c_try_link "$LINENO" 5934then : 5935 eval $cacheid=yes 5936else $as_nop 5937 eval $cacheid=no 5938fi 5939rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5940 conftest$ac_exeext conftest.$ac_ext 5941fi 5942 5943 5944 CFLAGS="$xorg_testset_save_CFLAGS" 5945 5946 eval supported=\$$cacheid 5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5948printf "%s\n" "$supported" >&6; } 5949 if test "$supported" = "yes" ; then 5950 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5951 found="yes" 5952 fi 5953 fi 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969xorg_testset_save_CFLAGS="$CFLAGS" 5970 5971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5974printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5975if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5976then : 5977 printf %s "(cached) " >&6 5978else $as_nop 5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5980/* end confdefs.h. */ 5981int i; 5982_ACEOF 5983if ac_fn_c_try_compile "$LINENO" 5984then : 5985 xorg_cv_cc_flag_unknown_warning_option=yes 5986else $as_nop 5987 xorg_cv_cc_flag_unknown_warning_option=no 5988fi 5989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5990fi 5991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5992printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5994 CFLAGS="$xorg_testset_save_CFLAGS" 5995fi 5996 5997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6000 fi 6001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6003printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6004if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6005then : 6006 printf %s "(cached) " >&6 6007else $as_nop 6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6009/* end confdefs.h. */ 6010int i; 6011_ACEOF 6012if ac_fn_c_try_compile "$LINENO" 6013then : 6014 xorg_cv_cc_flag_unused_command_line_argument=yes 6015else $as_nop 6016 xorg_cv_cc_flag_unused_command_line_argument=no 6017fi 6018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6019fi 6020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6021printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6023 CFLAGS="$xorg_testset_save_CFLAGS" 6024fi 6025 6026found="no" 6027 6028 if test $found = "no" ; then 6029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6031 fi 6032 6033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6035 fi 6036 6037 CFLAGS="$CFLAGS -Wmissing-prototypes" 6038 6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6040printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6041 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6042 if eval test \${$cacheid+y} 6043then : 6044 printf %s "(cached) " >&6 6045else $as_nop 6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6047/* end confdefs.h. */ 6048int i; 6049int 6050main (void) 6051{ 6052 6053 ; 6054 return 0; 6055} 6056_ACEOF 6057if ac_fn_c_try_link "$LINENO" 6058then : 6059 eval $cacheid=yes 6060else $as_nop 6061 eval $cacheid=no 6062fi 6063rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6064 conftest$ac_exeext conftest.$ac_ext 6065fi 6066 6067 6068 CFLAGS="$xorg_testset_save_CFLAGS" 6069 6070 eval supported=\$$cacheid 6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6072printf "%s\n" "$supported" >&6; } 6073 if test "$supported" = "yes" ; then 6074 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6075 found="yes" 6076 fi 6077 fi 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093xorg_testset_save_CFLAGS="$CFLAGS" 6094 6095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6098printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6099if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6100then : 6101 printf %s "(cached) " >&6 6102else $as_nop 6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6104/* end confdefs.h. */ 6105int i; 6106_ACEOF 6107if ac_fn_c_try_compile "$LINENO" 6108then : 6109 xorg_cv_cc_flag_unknown_warning_option=yes 6110else $as_nop 6111 xorg_cv_cc_flag_unknown_warning_option=no 6112fi 6113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6114fi 6115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6116printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6118 CFLAGS="$xorg_testset_save_CFLAGS" 6119fi 6120 6121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6124 fi 6125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6127printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6128if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6129then : 6130 printf %s "(cached) " >&6 6131else $as_nop 6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6133/* end confdefs.h. */ 6134int i; 6135_ACEOF 6136if ac_fn_c_try_compile "$LINENO" 6137then : 6138 xorg_cv_cc_flag_unused_command_line_argument=yes 6139else $as_nop 6140 xorg_cv_cc_flag_unused_command_line_argument=no 6141fi 6142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6143fi 6144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6145printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6147 CFLAGS="$xorg_testset_save_CFLAGS" 6148fi 6149 6150found="no" 6151 6152 if test $found = "no" ; then 6153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6155 fi 6156 6157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6159 fi 6160 6161 CFLAGS="$CFLAGS -Wnested-externs" 6162 6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6164printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6165 cacheid=xorg_cv_cc_flag__Wnested_externs 6166 if eval test \${$cacheid+y} 6167then : 6168 printf %s "(cached) " >&6 6169else $as_nop 6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171/* end confdefs.h. */ 6172int i; 6173int 6174main (void) 6175{ 6176 6177 ; 6178 return 0; 6179} 6180_ACEOF 6181if ac_fn_c_try_link "$LINENO" 6182then : 6183 eval $cacheid=yes 6184else $as_nop 6185 eval $cacheid=no 6186fi 6187rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6188 conftest$ac_exeext conftest.$ac_ext 6189fi 6190 6191 6192 CFLAGS="$xorg_testset_save_CFLAGS" 6193 6194 eval supported=\$$cacheid 6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6196printf "%s\n" "$supported" >&6; } 6197 if test "$supported" = "yes" ; then 6198 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6199 found="yes" 6200 fi 6201 fi 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217xorg_testset_save_CFLAGS="$CFLAGS" 6218 6219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6222printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6223if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6224then : 6225 printf %s "(cached) " >&6 6226else $as_nop 6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6228/* end confdefs.h. */ 6229int i; 6230_ACEOF 6231if ac_fn_c_try_compile "$LINENO" 6232then : 6233 xorg_cv_cc_flag_unknown_warning_option=yes 6234else $as_nop 6235 xorg_cv_cc_flag_unknown_warning_option=no 6236fi 6237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6238fi 6239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6240printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6242 CFLAGS="$xorg_testset_save_CFLAGS" 6243fi 6244 6245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6248 fi 6249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6251printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6252if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6253then : 6254 printf %s "(cached) " >&6 6255else $as_nop 6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6257/* end confdefs.h. */ 6258int i; 6259_ACEOF 6260if ac_fn_c_try_compile "$LINENO" 6261then : 6262 xorg_cv_cc_flag_unused_command_line_argument=yes 6263else $as_nop 6264 xorg_cv_cc_flag_unused_command_line_argument=no 6265fi 6266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6267fi 6268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6269printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6271 CFLAGS="$xorg_testset_save_CFLAGS" 6272fi 6273 6274found="no" 6275 6276 if test $found = "no" ; then 6277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6279 fi 6280 6281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6283 fi 6284 6285 CFLAGS="$CFLAGS -Wbad-function-cast" 6286 6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6288printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6289 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6290 if eval test \${$cacheid+y} 6291then : 6292 printf %s "(cached) " >&6 6293else $as_nop 6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6295/* end confdefs.h. */ 6296int i; 6297int 6298main (void) 6299{ 6300 6301 ; 6302 return 0; 6303} 6304_ACEOF 6305if ac_fn_c_try_link "$LINENO" 6306then : 6307 eval $cacheid=yes 6308else $as_nop 6309 eval $cacheid=no 6310fi 6311rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6312 conftest$ac_exeext conftest.$ac_ext 6313fi 6314 6315 6316 CFLAGS="$xorg_testset_save_CFLAGS" 6317 6318 eval supported=\$$cacheid 6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6320printf "%s\n" "$supported" >&6; } 6321 if test "$supported" = "yes" ; then 6322 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6323 found="yes" 6324 fi 6325 fi 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341xorg_testset_save_CFLAGS="$CFLAGS" 6342 6343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6346printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6347if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6348then : 6349 printf %s "(cached) " >&6 6350else $as_nop 6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6352/* end confdefs.h. */ 6353int i; 6354_ACEOF 6355if ac_fn_c_try_compile "$LINENO" 6356then : 6357 xorg_cv_cc_flag_unknown_warning_option=yes 6358else $as_nop 6359 xorg_cv_cc_flag_unknown_warning_option=no 6360fi 6361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6362fi 6363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6364printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6366 CFLAGS="$xorg_testset_save_CFLAGS" 6367fi 6368 6369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6372 fi 6373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6375printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6376if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6377then : 6378 printf %s "(cached) " >&6 6379else $as_nop 6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6381/* end confdefs.h. */ 6382int i; 6383_ACEOF 6384if ac_fn_c_try_compile "$LINENO" 6385then : 6386 xorg_cv_cc_flag_unused_command_line_argument=yes 6387else $as_nop 6388 xorg_cv_cc_flag_unused_command_line_argument=no 6389fi 6390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6391fi 6392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6393printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6395 CFLAGS="$xorg_testset_save_CFLAGS" 6396fi 6397 6398found="no" 6399 6400 if test $found = "no" ; then 6401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6403 fi 6404 6405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6407 fi 6408 6409 CFLAGS="$CFLAGS -Wold-style-definition" 6410 6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6412printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6413 cacheid=xorg_cv_cc_flag__Wold_style_definition 6414 if eval test \${$cacheid+y} 6415then : 6416 printf %s "(cached) " >&6 6417else $as_nop 6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6419/* end confdefs.h. */ 6420int i; 6421int 6422main (void) 6423{ 6424 6425 ; 6426 return 0; 6427} 6428_ACEOF 6429if ac_fn_c_try_link "$LINENO" 6430then : 6431 eval $cacheid=yes 6432else $as_nop 6433 eval $cacheid=no 6434fi 6435rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6436 conftest$ac_exeext conftest.$ac_ext 6437fi 6438 6439 6440 CFLAGS="$xorg_testset_save_CFLAGS" 6441 6442 eval supported=\$$cacheid 6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6444printf "%s\n" "$supported" >&6; } 6445 if test "$supported" = "yes" ; then 6446 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6447 found="yes" 6448 fi 6449 fi 6450 6451 if test $found = "no" ; then 6452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6454 fi 6455 6456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6458 fi 6459 6460 CFLAGS="$CFLAGS -fd" 6461 6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6463printf %s "checking if $CC supports -fd... " >&6; } 6464 cacheid=xorg_cv_cc_flag__fd 6465 if eval test \${$cacheid+y} 6466then : 6467 printf %s "(cached) " >&6 6468else $as_nop 6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6470/* end confdefs.h. */ 6471int i; 6472int 6473main (void) 6474{ 6475 6476 ; 6477 return 0; 6478} 6479_ACEOF 6480if ac_fn_c_try_link "$LINENO" 6481then : 6482 eval $cacheid=yes 6483else $as_nop 6484 eval $cacheid=no 6485fi 6486rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6487 conftest$ac_exeext conftest.$ac_ext 6488fi 6489 6490 6491 CFLAGS="$xorg_testset_save_CFLAGS" 6492 6493 eval supported=\$$cacheid 6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6495printf "%s\n" "$supported" >&6; } 6496 if test "$supported" = "yes" ; then 6497 BASE_CFLAGS="$BASE_CFLAGS -fd" 6498 found="yes" 6499 fi 6500 fi 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516xorg_testset_save_CFLAGS="$CFLAGS" 6517 6518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6521printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6522if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6523then : 6524 printf %s "(cached) " >&6 6525else $as_nop 6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6527/* end confdefs.h. */ 6528int i; 6529_ACEOF 6530if ac_fn_c_try_compile "$LINENO" 6531then : 6532 xorg_cv_cc_flag_unknown_warning_option=yes 6533else $as_nop 6534 xorg_cv_cc_flag_unknown_warning_option=no 6535fi 6536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6537fi 6538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6539printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6541 CFLAGS="$xorg_testset_save_CFLAGS" 6542fi 6543 6544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6547 fi 6548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6550printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6551if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6552then : 6553 printf %s "(cached) " >&6 6554else $as_nop 6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6556/* end confdefs.h. */ 6557int i; 6558_ACEOF 6559if ac_fn_c_try_compile "$LINENO" 6560then : 6561 xorg_cv_cc_flag_unused_command_line_argument=yes 6562else $as_nop 6563 xorg_cv_cc_flag_unused_command_line_argument=no 6564fi 6565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6566fi 6567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6568printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6570 CFLAGS="$xorg_testset_save_CFLAGS" 6571fi 6572 6573found="no" 6574 6575 if test $found = "no" ; then 6576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6578 fi 6579 6580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6582 fi 6583 6584 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6585 6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6587printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6588 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6589 if eval test \${$cacheid+y} 6590then : 6591 printf %s "(cached) " >&6 6592else $as_nop 6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6594/* end confdefs.h. */ 6595int i; 6596int 6597main (void) 6598{ 6599 6600 ; 6601 return 0; 6602} 6603_ACEOF 6604if ac_fn_c_try_link "$LINENO" 6605then : 6606 eval $cacheid=yes 6607else $as_nop 6608 eval $cacheid=no 6609fi 6610rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6611 conftest$ac_exeext conftest.$ac_ext 6612fi 6613 6614 6615 CFLAGS="$xorg_testset_save_CFLAGS" 6616 6617 eval supported=\$$cacheid 6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6619printf "%s\n" "$supported" >&6; } 6620 if test "$supported" = "yes" ; then 6621 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6622 found="yes" 6623 fi 6624 fi 6625 6626 6627 6628 6629 6630# This chunk adds additional warnings that could catch undesired effects. 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644xorg_testset_save_CFLAGS="$CFLAGS" 6645 6646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6649printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6650if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6651then : 6652 printf %s "(cached) " >&6 6653else $as_nop 6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6655/* end confdefs.h. */ 6656int i; 6657_ACEOF 6658if ac_fn_c_try_compile "$LINENO" 6659then : 6660 xorg_cv_cc_flag_unknown_warning_option=yes 6661else $as_nop 6662 xorg_cv_cc_flag_unknown_warning_option=no 6663fi 6664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6665fi 6666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6667printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6669 CFLAGS="$xorg_testset_save_CFLAGS" 6670fi 6671 6672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6675 fi 6676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6678printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6679if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6680then : 6681 printf %s "(cached) " >&6 6682else $as_nop 6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6684/* end confdefs.h. */ 6685int i; 6686_ACEOF 6687if ac_fn_c_try_compile "$LINENO" 6688then : 6689 xorg_cv_cc_flag_unused_command_line_argument=yes 6690else $as_nop 6691 xorg_cv_cc_flag_unused_command_line_argument=no 6692fi 6693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6694fi 6695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6696printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6698 CFLAGS="$xorg_testset_save_CFLAGS" 6699fi 6700 6701found="no" 6702 6703 if test $found = "no" ; then 6704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6706 fi 6707 6708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6710 fi 6711 6712 CFLAGS="$CFLAGS -Wunused" 6713 6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6715printf %s "checking if $CC supports -Wunused... " >&6; } 6716 cacheid=xorg_cv_cc_flag__Wunused 6717 if eval test \${$cacheid+y} 6718then : 6719 printf %s "(cached) " >&6 6720else $as_nop 6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6722/* end confdefs.h. */ 6723int i; 6724int 6725main (void) 6726{ 6727 6728 ; 6729 return 0; 6730} 6731_ACEOF 6732if ac_fn_c_try_link "$LINENO" 6733then : 6734 eval $cacheid=yes 6735else $as_nop 6736 eval $cacheid=no 6737fi 6738rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6739 conftest$ac_exeext conftest.$ac_ext 6740fi 6741 6742 6743 CFLAGS="$xorg_testset_save_CFLAGS" 6744 6745 eval supported=\$$cacheid 6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6747printf "%s\n" "$supported" >&6; } 6748 if test "$supported" = "yes" ; then 6749 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6750 found="yes" 6751 fi 6752 fi 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768xorg_testset_save_CFLAGS="$CFLAGS" 6769 6770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6773printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6774if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6775then : 6776 printf %s "(cached) " >&6 6777else $as_nop 6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6779/* end confdefs.h. */ 6780int i; 6781_ACEOF 6782if ac_fn_c_try_compile "$LINENO" 6783then : 6784 xorg_cv_cc_flag_unknown_warning_option=yes 6785else $as_nop 6786 xorg_cv_cc_flag_unknown_warning_option=no 6787fi 6788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6789fi 6790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6791printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6793 CFLAGS="$xorg_testset_save_CFLAGS" 6794fi 6795 6796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6799 fi 6800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6802printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6803if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6804then : 6805 printf %s "(cached) " >&6 6806else $as_nop 6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6808/* end confdefs.h. */ 6809int i; 6810_ACEOF 6811if ac_fn_c_try_compile "$LINENO" 6812then : 6813 xorg_cv_cc_flag_unused_command_line_argument=yes 6814else $as_nop 6815 xorg_cv_cc_flag_unused_command_line_argument=no 6816fi 6817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6818fi 6819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6820printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6822 CFLAGS="$xorg_testset_save_CFLAGS" 6823fi 6824 6825found="no" 6826 6827 if test $found = "no" ; then 6828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6830 fi 6831 6832 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6834 fi 6835 6836 CFLAGS="$CFLAGS -Wuninitialized" 6837 6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6839printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6840 cacheid=xorg_cv_cc_flag__Wuninitialized 6841 if eval test \${$cacheid+y} 6842then : 6843 printf %s "(cached) " >&6 6844else $as_nop 6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6846/* end confdefs.h. */ 6847int i; 6848int 6849main (void) 6850{ 6851 6852 ; 6853 return 0; 6854} 6855_ACEOF 6856if ac_fn_c_try_link "$LINENO" 6857then : 6858 eval $cacheid=yes 6859else $as_nop 6860 eval $cacheid=no 6861fi 6862rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6863 conftest$ac_exeext conftest.$ac_ext 6864fi 6865 6866 6867 CFLAGS="$xorg_testset_save_CFLAGS" 6868 6869 eval supported=\$$cacheid 6870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6871printf "%s\n" "$supported" >&6; } 6872 if test "$supported" = "yes" ; then 6873 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6874 found="yes" 6875 fi 6876 fi 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892xorg_testset_save_CFLAGS="$CFLAGS" 6893 6894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6897printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6898if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6899then : 6900 printf %s "(cached) " >&6 6901else $as_nop 6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6903/* end confdefs.h. */ 6904int i; 6905_ACEOF 6906if ac_fn_c_try_compile "$LINENO" 6907then : 6908 xorg_cv_cc_flag_unknown_warning_option=yes 6909else $as_nop 6910 xorg_cv_cc_flag_unknown_warning_option=no 6911fi 6912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6913fi 6914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6915printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6917 CFLAGS="$xorg_testset_save_CFLAGS" 6918fi 6919 6920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6923 fi 6924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6926printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6927if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6928then : 6929 printf %s "(cached) " >&6 6930else $as_nop 6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932/* end confdefs.h. */ 6933int i; 6934_ACEOF 6935if ac_fn_c_try_compile "$LINENO" 6936then : 6937 xorg_cv_cc_flag_unused_command_line_argument=yes 6938else $as_nop 6939 xorg_cv_cc_flag_unused_command_line_argument=no 6940fi 6941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6942fi 6943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6944printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6946 CFLAGS="$xorg_testset_save_CFLAGS" 6947fi 6948 6949found="no" 6950 6951 if test $found = "no" ; then 6952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6954 fi 6955 6956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6958 fi 6959 6960 CFLAGS="$CFLAGS -Wshadow" 6961 6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6963printf %s "checking if $CC supports -Wshadow... " >&6; } 6964 cacheid=xorg_cv_cc_flag__Wshadow 6965 if eval test \${$cacheid+y} 6966then : 6967 printf %s "(cached) " >&6 6968else $as_nop 6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6970/* end confdefs.h. */ 6971int i; 6972int 6973main (void) 6974{ 6975 6976 ; 6977 return 0; 6978} 6979_ACEOF 6980if ac_fn_c_try_link "$LINENO" 6981then : 6982 eval $cacheid=yes 6983else $as_nop 6984 eval $cacheid=no 6985fi 6986rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6987 conftest$ac_exeext conftest.$ac_ext 6988fi 6989 6990 6991 CFLAGS="$xorg_testset_save_CFLAGS" 6992 6993 eval supported=\$$cacheid 6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6995printf "%s\n" "$supported" >&6; } 6996 if test "$supported" = "yes" ; then 6997 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6998 found="yes" 6999 fi 7000 fi 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016xorg_testset_save_CFLAGS="$CFLAGS" 7017 7018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7021printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7022if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7023then : 7024 printf %s "(cached) " >&6 7025else $as_nop 7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7027/* end confdefs.h. */ 7028int i; 7029_ACEOF 7030if ac_fn_c_try_compile "$LINENO" 7031then : 7032 xorg_cv_cc_flag_unknown_warning_option=yes 7033else $as_nop 7034 xorg_cv_cc_flag_unknown_warning_option=no 7035fi 7036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7037fi 7038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7039printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7041 CFLAGS="$xorg_testset_save_CFLAGS" 7042fi 7043 7044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7047 fi 7048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7050printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7051if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7052then : 7053 printf %s "(cached) " >&6 7054else $as_nop 7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056/* end confdefs.h. */ 7057int i; 7058_ACEOF 7059if ac_fn_c_try_compile "$LINENO" 7060then : 7061 xorg_cv_cc_flag_unused_command_line_argument=yes 7062else $as_nop 7063 xorg_cv_cc_flag_unused_command_line_argument=no 7064fi 7065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7066fi 7067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7068printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7070 CFLAGS="$xorg_testset_save_CFLAGS" 7071fi 7072 7073found="no" 7074 7075 if test $found = "no" ; then 7076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7078 fi 7079 7080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7082 fi 7083 7084 CFLAGS="$CFLAGS -Wmissing-noreturn" 7085 7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7087printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7088 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7089 if eval test \${$cacheid+y} 7090then : 7091 printf %s "(cached) " >&6 7092else $as_nop 7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7094/* end confdefs.h. */ 7095int i; 7096int 7097main (void) 7098{ 7099 7100 ; 7101 return 0; 7102} 7103_ACEOF 7104if ac_fn_c_try_link "$LINENO" 7105then : 7106 eval $cacheid=yes 7107else $as_nop 7108 eval $cacheid=no 7109fi 7110rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7111 conftest$ac_exeext conftest.$ac_ext 7112fi 7113 7114 7115 CFLAGS="$xorg_testset_save_CFLAGS" 7116 7117 eval supported=\$$cacheid 7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7119printf "%s\n" "$supported" >&6; } 7120 if test "$supported" = "yes" ; then 7121 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7122 found="yes" 7123 fi 7124 fi 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140xorg_testset_save_CFLAGS="$CFLAGS" 7141 7142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7145printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7146if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7147then : 7148 printf %s "(cached) " >&6 7149else $as_nop 7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7151/* end confdefs.h. */ 7152int i; 7153_ACEOF 7154if ac_fn_c_try_compile "$LINENO" 7155then : 7156 xorg_cv_cc_flag_unknown_warning_option=yes 7157else $as_nop 7158 xorg_cv_cc_flag_unknown_warning_option=no 7159fi 7160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7161fi 7162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7163printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7165 CFLAGS="$xorg_testset_save_CFLAGS" 7166fi 7167 7168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7171 fi 7172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7174printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7175if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7176then : 7177 printf %s "(cached) " >&6 7178else $as_nop 7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180/* end confdefs.h. */ 7181int i; 7182_ACEOF 7183if ac_fn_c_try_compile "$LINENO" 7184then : 7185 xorg_cv_cc_flag_unused_command_line_argument=yes 7186else $as_nop 7187 xorg_cv_cc_flag_unused_command_line_argument=no 7188fi 7189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7190fi 7191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7192printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7194 CFLAGS="$xorg_testset_save_CFLAGS" 7195fi 7196 7197found="no" 7198 7199 if test $found = "no" ; then 7200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7202 fi 7203 7204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7206 fi 7207 7208 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7209 7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7211printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7212 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7213 if eval test \${$cacheid+y} 7214then : 7215 printf %s "(cached) " >&6 7216else $as_nop 7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218/* end confdefs.h. */ 7219int i; 7220int 7221main (void) 7222{ 7223 7224 ; 7225 return 0; 7226} 7227_ACEOF 7228if ac_fn_c_try_link "$LINENO" 7229then : 7230 eval $cacheid=yes 7231else $as_nop 7232 eval $cacheid=no 7233fi 7234rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7235 conftest$ac_exeext conftest.$ac_ext 7236fi 7237 7238 7239 CFLAGS="$xorg_testset_save_CFLAGS" 7240 7241 eval supported=\$$cacheid 7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7243printf "%s\n" "$supported" >&6; } 7244 if test "$supported" = "yes" ; then 7245 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7246 found="yes" 7247 fi 7248 fi 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264xorg_testset_save_CFLAGS="$CFLAGS" 7265 7266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7269printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7270if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7271then : 7272 printf %s "(cached) " >&6 7273else $as_nop 7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275/* end confdefs.h. */ 7276int i; 7277_ACEOF 7278if ac_fn_c_try_compile "$LINENO" 7279then : 7280 xorg_cv_cc_flag_unknown_warning_option=yes 7281else $as_nop 7282 xorg_cv_cc_flag_unknown_warning_option=no 7283fi 7284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7285fi 7286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7287printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7289 CFLAGS="$xorg_testset_save_CFLAGS" 7290fi 7291 7292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7295 fi 7296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7298printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7299if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7300then : 7301 printf %s "(cached) " >&6 7302else $as_nop 7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7304/* end confdefs.h. */ 7305int i; 7306_ACEOF 7307if ac_fn_c_try_compile "$LINENO" 7308then : 7309 xorg_cv_cc_flag_unused_command_line_argument=yes 7310else $as_nop 7311 xorg_cv_cc_flag_unused_command_line_argument=no 7312fi 7313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7314fi 7315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7316printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7318 CFLAGS="$xorg_testset_save_CFLAGS" 7319fi 7320 7321found="no" 7322 7323 if test $found = "no" ; then 7324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7326 fi 7327 7328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7330 fi 7331 7332 CFLAGS="$CFLAGS -Wredundant-decls" 7333 7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7335printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7336 cacheid=xorg_cv_cc_flag__Wredundant_decls 7337 if eval test \${$cacheid+y} 7338then : 7339 printf %s "(cached) " >&6 7340else $as_nop 7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7342/* end confdefs.h. */ 7343int i; 7344int 7345main (void) 7346{ 7347 7348 ; 7349 return 0; 7350} 7351_ACEOF 7352if ac_fn_c_try_link "$LINENO" 7353then : 7354 eval $cacheid=yes 7355else $as_nop 7356 eval $cacheid=no 7357fi 7358rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7359 conftest$ac_exeext conftest.$ac_ext 7360fi 7361 7362 7363 CFLAGS="$xorg_testset_save_CFLAGS" 7364 7365 eval supported=\$$cacheid 7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7367printf "%s\n" "$supported" >&6; } 7368 if test "$supported" = "yes" ; then 7369 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7370 found="yes" 7371 fi 7372 fi 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388xorg_testset_save_CFLAGS="$CFLAGS" 7389 7390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7393printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7394if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7395then : 7396 printf %s "(cached) " >&6 7397else $as_nop 7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7399/* end confdefs.h. */ 7400int i; 7401_ACEOF 7402if ac_fn_c_try_compile "$LINENO" 7403then : 7404 xorg_cv_cc_flag_unknown_warning_option=yes 7405else $as_nop 7406 xorg_cv_cc_flag_unknown_warning_option=no 7407fi 7408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7409fi 7410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7411printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7413 CFLAGS="$xorg_testset_save_CFLAGS" 7414fi 7415 7416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7419 fi 7420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7422printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7423if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7424then : 7425 printf %s "(cached) " >&6 7426else $as_nop 7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7428/* end confdefs.h. */ 7429int i; 7430_ACEOF 7431if ac_fn_c_try_compile "$LINENO" 7432then : 7433 xorg_cv_cc_flag_unused_command_line_argument=yes 7434else $as_nop 7435 xorg_cv_cc_flag_unused_command_line_argument=no 7436fi 7437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7438fi 7439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7440printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7442 CFLAGS="$xorg_testset_save_CFLAGS" 7443fi 7444 7445found="no" 7446 7447 if test $found = "no" ; then 7448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7450 fi 7451 7452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7454 fi 7455 7456 CFLAGS="$CFLAGS -Wlogical-op" 7457 7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7459printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7460 cacheid=xorg_cv_cc_flag__Wlogical_op 7461 if eval test \${$cacheid+y} 7462then : 7463 printf %s "(cached) " >&6 7464else $as_nop 7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7466/* end confdefs.h. */ 7467int i; 7468int 7469main (void) 7470{ 7471 7472 ; 7473 return 0; 7474} 7475_ACEOF 7476if ac_fn_c_try_link "$LINENO" 7477then : 7478 eval $cacheid=yes 7479else $as_nop 7480 eval $cacheid=no 7481fi 7482rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7483 conftest$ac_exeext conftest.$ac_ext 7484fi 7485 7486 7487 CFLAGS="$xorg_testset_save_CFLAGS" 7488 7489 eval supported=\$$cacheid 7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7491printf "%s\n" "$supported" >&6; } 7492 if test "$supported" = "yes" ; then 7493 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7494 found="yes" 7495 fi 7496 fi 7497 7498 7499 7500# These are currently disabled because they are noisy. They will be enabled 7501# in the future once the codebase is sufficiently modernized to silence 7502# them. For now, I don't want them to drown out the other warnings. 7503# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7504# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7505# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7506 7507# Turn some warnings into errors, so we don't accidently get successful builds 7508# when there are problems that should be fixed. 7509 7510if test "x$SELECTIVE_WERROR" = "xyes" ; then 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524xorg_testset_save_CFLAGS="$CFLAGS" 7525 7526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7529printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7530if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7531then : 7532 printf %s "(cached) " >&6 7533else $as_nop 7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535/* end confdefs.h. */ 7536int i; 7537_ACEOF 7538if ac_fn_c_try_compile "$LINENO" 7539then : 7540 xorg_cv_cc_flag_unknown_warning_option=yes 7541else $as_nop 7542 xorg_cv_cc_flag_unknown_warning_option=no 7543fi 7544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7545fi 7546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7547printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7549 CFLAGS="$xorg_testset_save_CFLAGS" 7550fi 7551 7552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7555 fi 7556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7558printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7559if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7560then : 7561 printf %s "(cached) " >&6 7562else $as_nop 7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7564/* end confdefs.h. */ 7565int i; 7566_ACEOF 7567if ac_fn_c_try_compile "$LINENO" 7568then : 7569 xorg_cv_cc_flag_unused_command_line_argument=yes 7570else $as_nop 7571 xorg_cv_cc_flag_unused_command_line_argument=no 7572fi 7573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7574fi 7575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7576printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7578 CFLAGS="$xorg_testset_save_CFLAGS" 7579fi 7580 7581found="no" 7582 7583 if test $found = "no" ; then 7584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7586 fi 7587 7588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7590 fi 7591 7592 CFLAGS="$CFLAGS -Werror=implicit" 7593 7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7595printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7596 cacheid=xorg_cv_cc_flag__Werror_implicit 7597 if eval test \${$cacheid+y} 7598then : 7599 printf %s "(cached) " >&6 7600else $as_nop 7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7602/* end confdefs.h. */ 7603int i; 7604int 7605main (void) 7606{ 7607 7608 ; 7609 return 0; 7610} 7611_ACEOF 7612if ac_fn_c_try_link "$LINENO" 7613then : 7614 eval $cacheid=yes 7615else $as_nop 7616 eval $cacheid=no 7617fi 7618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7619 conftest$ac_exeext conftest.$ac_ext 7620fi 7621 7622 7623 CFLAGS="$xorg_testset_save_CFLAGS" 7624 7625 eval supported=\$$cacheid 7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7627printf "%s\n" "$supported" >&6; } 7628 if test "$supported" = "yes" ; then 7629 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7630 found="yes" 7631 fi 7632 fi 7633 7634 if test $found = "no" ; then 7635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7637 fi 7638 7639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7641 fi 7642 7643 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7644 7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7646printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7647 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7648 if eval test \${$cacheid+y} 7649then : 7650 printf %s "(cached) " >&6 7651else $as_nop 7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7653/* end confdefs.h. */ 7654int i; 7655int 7656main (void) 7657{ 7658 7659 ; 7660 return 0; 7661} 7662_ACEOF 7663if ac_fn_c_try_link "$LINENO" 7664then : 7665 eval $cacheid=yes 7666else $as_nop 7667 eval $cacheid=no 7668fi 7669rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7670 conftest$ac_exeext conftest.$ac_ext 7671fi 7672 7673 7674 CFLAGS="$xorg_testset_save_CFLAGS" 7675 7676 eval supported=\$$cacheid 7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7678printf "%s\n" "$supported" >&6; } 7679 if test "$supported" = "yes" ; then 7680 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7681 found="yes" 7682 fi 7683 fi 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699xorg_testset_save_CFLAGS="$CFLAGS" 7700 7701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7704printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7705if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7706then : 7707 printf %s "(cached) " >&6 7708else $as_nop 7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7710/* end confdefs.h. */ 7711int i; 7712_ACEOF 7713if ac_fn_c_try_compile "$LINENO" 7714then : 7715 xorg_cv_cc_flag_unknown_warning_option=yes 7716else $as_nop 7717 xorg_cv_cc_flag_unknown_warning_option=no 7718fi 7719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7720fi 7721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7724 CFLAGS="$xorg_testset_save_CFLAGS" 7725fi 7726 7727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730 fi 7731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7734if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7735then : 7736 printf %s "(cached) " >&6 7737else $as_nop 7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739/* end confdefs.h. */ 7740int i; 7741_ACEOF 7742if ac_fn_c_try_compile "$LINENO" 7743then : 7744 xorg_cv_cc_flag_unused_command_line_argument=yes 7745else $as_nop 7746 xorg_cv_cc_flag_unused_command_line_argument=no 7747fi 7748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7749fi 7750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7753 CFLAGS="$xorg_testset_save_CFLAGS" 7754fi 7755 7756found="no" 7757 7758 if test $found = "no" ; then 7759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7761 fi 7762 7763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7765 fi 7766 7767 CFLAGS="$CFLAGS -Werror=nonnull" 7768 7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7770printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7771 cacheid=xorg_cv_cc_flag__Werror_nonnull 7772 if eval test \${$cacheid+y} 7773then : 7774 printf %s "(cached) " >&6 7775else $as_nop 7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7777/* end confdefs.h. */ 7778int i; 7779int 7780main (void) 7781{ 7782 7783 ; 7784 return 0; 7785} 7786_ACEOF 7787if ac_fn_c_try_link "$LINENO" 7788then : 7789 eval $cacheid=yes 7790else $as_nop 7791 eval $cacheid=no 7792fi 7793rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7794 conftest$ac_exeext conftest.$ac_ext 7795fi 7796 7797 7798 CFLAGS="$xorg_testset_save_CFLAGS" 7799 7800 eval supported=\$$cacheid 7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7802printf "%s\n" "$supported" >&6; } 7803 if test "$supported" = "yes" ; then 7804 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7805 found="yes" 7806 fi 7807 fi 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823xorg_testset_save_CFLAGS="$CFLAGS" 7824 7825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7828printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7829if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7830then : 7831 printf %s "(cached) " >&6 7832else $as_nop 7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7834/* end confdefs.h. */ 7835int i; 7836_ACEOF 7837if ac_fn_c_try_compile "$LINENO" 7838then : 7839 xorg_cv_cc_flag_unknown_warning_option=yes 7840else $as_nop 7841 xorg_cv_cc_flag_unknown_warning_option=no 7842fi 7843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7844fi 7845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7848 CFLAGS="$xorg_testset_save_CFLAGS" 7849fi 7850 7851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7854 fi 7855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7858if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7859then : 7860 printf %s "(cached) " >&6 7861else $as_nop 7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7863/* end confdefs.h. */ 7864int i; 7865_ACEOF 7866if ac_fn_c_try_compile "$LINENO" 7867then : 7868 xorg_cv_cc_flag_unused_command_line_argument=yes 7869else $as_nop 7870 xorg_cv_cc_flag_unused_command_line_argument=no 7871fi 7872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7873fi 7874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7875printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7877 CFLAGS="$xorg_testset_save_CFLAGS" 7878fi 7879 7880found="no" 7881 7882 if test $found = "no" ; then 7883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7885 fi 7886 7887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7889 fi 7890 7891 CFLAGS="$CFLAGS -Werror=init-self" 7892 7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7894printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7895 cacheid=xorg_cv_cc_flag__Werror_init_self 7896 if eval test \${$cacheid+y} 7897then : 7898 printf %s "(cached) " >&6 7899else $as_nop 7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7901/* end confdefs.h. */ 7902int i; 7903int 7904main (void) 7905{ 7906 7907 ; 7908 return 0; 7909} 7910_ACEOF 7911if ac_fn_c_try_link "$LINENO" 7912then : 7913 eval $cacheid=yes 7914else $as_nop 7915 eval $cacheid=no 7916fi 7917rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7918 conftest$ac_exeext conftest.$ac_ext 7919fi 7920 7921 7922 CFLAGS="$xorg_testset_save_CFLAGS" 7923 7924 eval supported=\$$cacheid 7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7926printf "%s\n" "$supported" >&6; } 7927 if test "$supported" = "yes" ; then 7928 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7929 found="yes" 7930 fi 7931 fi 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947xorg_testset_save_CFLAGS="$CFLAGS" 7948 7949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7952printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7953if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7954then : 7955 printf %s "(cached) " >&6 7956else $as_nop 7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7958/* end confdefs.h. */ 7959int i; 7960_ACEOF 7961if ac_fn_c_try_compile "$LINENO" 7962then : 7963 xorg_cv_cc_flag_unknown_warning_option=yes 7964else $as_nop 7965 xorg_cv_cc_flag_unknown_warning_option=no 7966fi 7967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7968fi 7969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7972 CFLAGS="$xorg_testset_save_CFLAGS" 7973fi 7974 7975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7978 fi 7979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7982if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7983then : 7984 printf %s "(cached) " >&6 7985else $as_nop 7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7987/* end confdefs.h. */ 7988int i; 7989_ACEOF 7990if ac_fn_c_try_compile "$LINENO" 7991then : 7992 xorg_cv_cc_flag_unused_command_line_argument=yes 7993else $as_nop 7994 xorg_cv_cc_flag_unused_command_line_argument=no 7995fi 7996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7997fi 7998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8001 CFLAGS="$xorg_testset_save_CFLAGS" 8002fi 8003 8004found="no" 8005 8006 if test $found = "no" ; then 8007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8009 fi 8010 8011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8013 fi 8014 8015 CFLAGS="$CFLAGS -Werror=main" 8016 8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8018printf %s "checking if $CC supports -Werror=main... " >&6; } 8019 cacheid=xorg_cv_cc_flag__Werror_main 8020 if eval test \${$cacheid+y} 8021then : 8022 printf %s "(cached) " >&6 8023else $as_nop 8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8025/* end confdefs.h. */ 8026int i; 8027int 8028main (void) 8029{ 8030 8031 ; 8032 return 0; 8033} 8034_ACEOF 8035if ac_fn_c_try_link "$LINENO" 8036then : 8037 eval $cacheid=yes 8038else $as_nop 8039 eval $cacheid=no 8040fi 8041rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8042 conftest$ac_exeext conftest.$ac_ext 8043fi 8044 8045 8046 CFLAGS="$xorg_testset_save_CFLAGS" 8047 8048 eval supported=\$$cacheid 8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8050printf "%s\n" "$supported" >&6; } 8051 if test "$supported" = "yes" ; then 8052 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8053 found="yes" 8054 fi 8055 fi 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071xorg_testset_save_CFLAGS="$CFLAGS" 8072 8073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8076printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8077if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8078then : 8079 printf %s "(cached) " >&6 8080else $as_nop 8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8082/* end confdefs.h. */ 8083int i; 8084_ACEOF 8085if ac_fn_c_try_compile "$LINENO" 8086then : 8087 xorg_cv_cc_flag_unknown_warning_option=yes 8088else $as_nop 8089 xorg_cv_cc_flag_unknown_warning_option=no 8090fi 8091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8092fi 8093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8096 CFLAGS="$xorg_testset_save_CFLAGS" 8097fi 8098 8099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8102 fi 8103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8106if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8107then : 8108 printf %s "(cached) " >&6 8109else $as_nop 8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8111/* end confdefs.h. */ 8112int i; 8113_ACEOF 8114if ac_fn_c_try_compile "$LINENO" 8115then : 8116 xorg_cv_cc_flag_unused_command_line_argument=yes 8117else $as_nop 8118 xorg_cv_cc_flag_unused_command_line_argument=no 8119fi 8120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8121fi 8122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8123printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8125 CFLAGS="$xorg_testset_save_CFLAGS" 8126fi 8127 8128found="no" 8129 8130 if test $found = "no" ; then 8131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8133 fi 8134 8135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8137 fi 8138 8139 CFLAGS="$CFLAGS -Werror=missing-braces" 8140 8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8142printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8143 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8144 if eval test \${$cacheid+y} 8145then : 8146 printf %s "(cached) " >&6 8147else $as_nop 8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8149/* end confdefs.h. */ 8150int i; 8151int 8152main (void) 8153{ 8154 8155 ; 8156 return 0; 8157} 8158_ACEOF 8159if ac_fn_c_try_link "$LINENO" 8160then : 8161 eval $cacheid=yes 8162else $as_nop 8163 eval $cacheid=no 8164fi 8165rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8166 conftest$ac_exeext conftest.$ac_ext 8167fi 8168 8169 8170 CFLAGS="$xorg_testset_save_CFLAGS" 8171 8172 eval supported=\$$cacheid 8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8174printf "%s\n" "$supported" >&6; } 8175 if test "$supported" = "yes" ; then 8176 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8177 found="yes" 8178 fi 8179 fi 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195xorg_testset_save_CFLAGS="$CFLAGS" 8196 8197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8201if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8202then : 8203 printf %s "(cached) " >&6 8204else $as_nop 8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8206/* end confdefs.h. */ 8207int i; 8208_ACEOF 8209if ac_fn_c_try_compile "$LINENO" 8210then : 8211 xorg_cv_cc_flag_unknown_warning_option=yes 8212else $as_nop 8213 xorg_cv_cc_flag_unknown_warning_option=no 8214fi 8215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8216fi 8217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8220 CFLAGS="$xorg_testset_save_CFLAGS" 8221fi 8222 8223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8226 fi 8227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8230if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8231then : 8232 printf %s "(cached) " >&6 8233else $as_nop 8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8235/* end confdefs.h. */ 8236int i; 8237_ACEOF 8238if ac_fn_c_try_compile "$LINENO" 8239then : 8240 xorg_cv_cc_flag_unused_command_line_argument=yes 8241else $as_nop 8242 xorg_cv_cc_flag_unused_command_line_argument=no 8243fi 8244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8245fi 8246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8249 CFLAGS="$xorg_testset_save_CFLAGS" 8250fi 8251 8252found="no" 8253 8254 if test $found = "no" ; then 8255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8257 fi 8258 8259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8261 fi 8262 8263 CFLAGS="$CFLAGS -Werror=sequence-point" 8264 8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8266printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8267 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8268 if eval test \${$cacheid+y} 8269then : 8270 printf %s "(cached) " >&6 8271else $as_nop 8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8273/* end confdefs.h. */ 8274int i; 8275int 8276main (void) 8277{ 8278 8279 ; 8280 return 0; 8281} 8282_ACEOF 8283if ac_fn_c_try_link "$LINENO" 8284then : 8285 eval $cacheid=yes 8286else $as_nop 8287 eval $cacheid=no 8288fi 8289rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8290 conftest$ac_exeext conftest.$ac_ext 8291fi 8292 8293 8294 CFLAGS="$xorg_testset_save_CFLAGS" 8295 8296 eval supported=\$$cacheid 8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8298printf "%s\n" "$supported" >&6; } 8299 if test "$supported" = "yes" ; then 8300 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8301 found="yes" 8302 fi 8303 fi 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319xorg_testset_save_CFLAGS="$CFLAGS" 8320 8321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8324printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8325if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8326then : 8327 printf %s "(cached) " >&6 8328else $as_nop 8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8330/* end confdefs.h. */ 8331int i; 8332_ACEOF 8333if ac_fn_c_try_compile "$LINENO" 8334then : 8335 xorg_cv_cc_flag_unknown_warning_option=yes 8336else $as_nop 8337 xorg_cv_cc_flag_unknown_warning_option=no 8338fi 8339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8340fi 8341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8342printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8344 CFLAGS="$xorg_testset_save_CFLAGS" 8345fi 8346 8347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8350 fi 8351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8353printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8354if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8355then : 8356 printf %s "(cached) " >&6 8357else $as_nop 8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8359/* end confdefs.h. */ 8360int i; 8361_ACEOF 8362if ac_fn_c_try_compile "$LINENO" 8363then : 8364 xorg_cv_cc_flag_unused_command_line_argument=yes 8365else $as_nop 8366 xorg_cv_cc_flag_unused_command_line_argument=no 8367fi 8368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8369fi 8370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8371printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8373 CFLAGS="$xorg_testset_save_CFLAGS" 8374fi 8375 8376found="no" 8377 8378 if test $found = "no" ; then 8379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8381 fi 8382 8383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8385 fi 8386 8387 CFLAGS="$CFLAGS -Werror=return-type" 8388 8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8390printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8391 cacheid=xorg_cv_cc_flag__Werror_return_type 8392 if eval test \${$cacheid+y} 8393then : 8394 printf %s "(cached) " >&6 8395else $as_nop 8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8397/* end confdefs.h. */ 8398int i; 8399int 8400main (void) 8401{ 8402 8403 ; 8404 return 0; 8405} 8406_ACEOF 8407if ac_fn_c_try_link "$LINENO" 8408then : 8409 eval $cacheid=yes 8410else $as_nop 8411 eval $cacheid=no 8412fi 8413rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8414 conftest$ac_exeext conftest.$ac_ext 8415fi 8416 8417 8418 CFLAGS="$xorg_testset_save_CFLAGS" 8419 8420 eval supported=\$$cacheid 8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8422printf "%s\n" "$supported" >&6; } 8423 if test "$supported" = "yes" ; then 8424 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8425 found="yes" 8426 fi 8427 fi 8428 8429 if test $found = "no" ; then 8430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8432 fi 8433 8434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8436 fi 8437 8438 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8439 8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8441printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8442 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8443 if eval test \${$cacheid+y} 8444then : 8445 printf %s "(cached) " >&6 8446else $as_nop 8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8448/* end confdefs.h. */ 8449int i; 8450int 8451main (void) 8452{ 8453 8454 ; 8455 return 0; 8456} 8457_ACEOF 8458if ac_fn_c_try_link "$LINENO" 8459then : 8460 eval $cacheid=yes 8461else $as_nop 8462 eval $cacheid=no 8463fi 8464rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8465 conftest$ac_exeext conftest.$ac_ext 8466fi 8467 8468 8469 CFLAGS="$xorg_testset_save_CFLAGS" 8470 8471 eval supported=\$$cacheid 8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8473printf "%s\n" "$supported" >&6; } 8474 if test "$supported" = "yes" ; then 8475 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8476 found="yes" 8477 fi 8478 fi 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494xorg_testset_save_CFLAGS="$CFLAGS" 8495 8496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8499printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8500if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8501then : 8502 printf %s "(cached) " >&6 8503else $as_nop 8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8505/* end confdefs.h. */ 8506int i; 8507_ACEOF 8508if ac_fn_c_try_compile "$LINENO" 8509then : 8510 xorg_cv_cc_flag_unknown_warning_option=yes 8511else $as_nop 8512 xorg_cv_cc_flag_unknown_warning_option=no 8513fi 8514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8515fi 8516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8517printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8519 CFLAGS="$xorg_testset_save_CFLAGS" 8520fi 8521 8522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8525 fi 8526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8528printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8529if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8530then : 8531 printf %s "(cached) " >&6 8532else $as_nop 8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8534/* end confdefs.h. */ 8535int i; 8536_ACEOF 8537if ac_fn_c_try_compile "$LINENO" 8538then : 8539 xorg_cv_cc_flag_unused_command_line_argument=yes 8540else $as_nop 8541 xorg_cv_cc_flag_unused_command_line_argument=no 8542fi 8543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8544fi 8545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8546printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8548 CFLAGS="$xorg_testset_save_CFLAGS" 8549fi 8550 8551found="no" 8552 8553 if test $found = "no" ; then 8554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8556 fi 8557 8558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8560 fi 8561 8562 CFLAGS="$CFLAGS -Werror=trigraphs" 8563 8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8565printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8566 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8567 if eval test \${$cacheid+y} 8568then : 8569 printf %s "(cached) " >&6 8570else $as_nop 8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8572/* end confdefs.h. */ 8573int i; 8574int 8575main (void) 8576{ 8577 8578 ; 8579 return 0; 8580} 8581_ACEOF 8582if ac_fn_c_try_link "$LINENO" 8583then : 8584 eval $cacheid=yes 8585else $as_nop 8586 eval $cacheid=no 8587fi 8588rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8589 conftest$ac_exeext conftest.$ac_ext 8590fi 8591 8592 8593 CFLAGS="$xorg_testset_save_CFLAGS" 8594 8595 eval supported=\$$cacheid 8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8597printf "%s\n" "$supported" >&6; } 8598 if test "$supported" = "yes" ; then 8599 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8600 found="yes" 8601 fi 8602 fi 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618xorg_testset_save_CFLAGS="$CFLAGS" 8619 8620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8624if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8625then : 8626 printf %s "(cached) " >&6 8627else $as_nop 8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8629/* end confdefs.h. */ 8630int i; 8631_ACEOF 8632if ac_fn_c_try_compile "$LINENO" 8633then : 8634 xorg_cv_cc_flag_unknown_warning_option=yes 8635else $as_nop 8636 xorg_cv_cc_flag_unknown_warning_option=no 8637fi 8638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8639fi 8640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8641printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8643 CFLAGS="$xorg_testset_save_CFLAGS" 8644fi 8645 8646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8649 fi 8650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8652printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8653if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8654then : 8655 printf %s "(cached) " >&6 8656else $as_nop 8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8658/* end confdefs.h. */ 8659int i; 8660_ACEOF 8661if ac_fn_c_try_compile "$LINENO" 8662then : 8663 xorg_cv_cc_flag_unused_command_line_argument=yes 8664else $as_nop 8665 xorg_cv_cc_flag_unused_command_line_argument=no 8666fi 8667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8668fi 8669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8670printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8672 CFLAGS="$xorg_testset_save_CFLAGS" 8673fi 8674 8675found="no" 8676 8677 if test $found = "no" ; then 8678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8680 fi 8681 8682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8684 fi 8685 8686 CFLAGS="$CFLAGS -Werror=array-bounds" 8687 8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8689printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8690 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8691 if eval test \${$cacheid+y} 8692then : 8693 printf %s "(cached) " >&6 8694else $as_nop 8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8696/* end confdefs.h. */ 8697int i; 8698int 8699main (void) 8700{ 8701 8702 ; 8703 return 0; 8704} 8705_ACEOF 8706if ac_fn_c_try_link "$LINENO" 8707then : 8708 eval $cacheid=yes 8709else $as_nop 8710 eval $cacheid=no 8711fi 8712rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8713 conftest$ac_exeext conftest.$ac_ext 8714fi 8715 8716 8717 CFLAGS="$xorg_testset_save_CFLAGS" 8718 8719 eval supported=\$$cacheid 8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8721printf "%s\n" "$supported" >&6; } 8722 if test "$supported" = "yes" ; then 8723 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8724 found="yes" 8725 fi 8726 fi 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742xorg_testset_save_CFLAGS="$CFLAGS" 8743 8744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8748if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8749then : 8750 printf %s "(cached) " >&6 8751else $as_nop 8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8753/* end confdefs.h. */ 8754int i; 8755_ACEOF 8756if ac_fn_c_try_compile "$LINENO" 8757then : 8758 xorg_cv_cc_flag_unknown_warning_option=yes 8759else $as_nop 8760 xorg_cv_cc_flag_unknown_warning_option=no 8761fi 8762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8763fi 8764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8767 CFLAGS="$xorg_testset_save_CFLAGS" 8768fi 8769 8770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8773 fi 8774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8777if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8778then : 8779 printf %s "(cached) " >&6 8780else $as_nop 8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8782/* end confdefs.h. */ 8783int i; 8784_ACEOF 8785if ac_fn_c_try_compile "$LINENO" 8786then : 8787 xorg_cv_cc_flag_unused_command_line_argument=yes 8788else $as_nop 8789 xorg_cv_cc_flag_unused_command_line_argument=no 8790fi 8791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8792fi 8793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8796 CFLAGS="$xorg_testset_save_CFLAGS" 8797fi 8798 8799found="no" 8800 8801 if test $found = "no" ; then 8802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8804 fi 8805 8806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8808 fi 8809 8810 CFLAGS="$CFLAGS -Werror=write-strings" 8811 8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8813printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8814 cacheid=xorg_cv_cc_flag__Werror_write_strings 8815 if eval test \${$cacheid+y} 8816then : 8817 printf %s "(cached) " >&6 8818else $as_nop 8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8820/* end confdefs.h. */ 8821int i; 8822int 8823main (void) 8824{ 8825 8826 ; 8827 return 0; 8828} 8829_ACEOF 8830if ac_fn_c_try_link "$LINENO" 8831then : 8832 eval $cacheid=yes 8833else $as_nop 8834 eval $cacheid=no 8835fi 8836rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8837 conftest$ac_exeext conftest.$ac_ext 8838fi 8839 8840 8841 CFLAGS="$xorg_testset_save_CFLAGS" 8842 8843 eval supported=\$$cacheid 8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8845printf "%s\n" "$supported" >&6; } 8846 if test "$supported" = "yes" ; then 8847 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8848 found="yes" 8849 fi 8850 fi 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866xorg_testset_save_CFLAGS="$CFLAGS" 8867 8868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8871printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8872if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8873then : 8874 printf %s "(cached) " >&6 8875else $as_nop 8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8877/* end confdefs.h. */ 8878int i; 8879_ACEOF 8880if ac_fn_c_try_compile "$LINENO" 8881then : 8882 xorg_cv_cc_flag_unknown_warning_option=yes 8883else $as_nop 8884 xorg_cv_cc_flag_unknown_warning_option=no 8885fi 8886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8887fi 8888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8889printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8891 CFLAGS="$xorg_testset_save_CFLAGS" 8892fi 8893 8894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8897 fi 8898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8900printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8901if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8902then : 8903 printf %s "(cached) " >&6 8904else $as_nop 8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8906/* end confdefs.h. */ 8907int i; 8908_ACEOF 8909if ac_fn_c_try_compile "$LINENO" 8910then : 8911 xorg_cv_cc_flag_unused_command_line_argument=yes 8912else $as_nop 8913 xorg_cv_cc_flag_unused_command_line_argument=no 8914fi 8915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8916fi 8917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8918printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8920 CFLAGS="$xorg_testset_save_CFLAGS" 8921fi 8922 8923found="no" 8924 8925 if test $found = "no" ; then 8926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8928 fi 8929 8930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8932 fi 8933 8934 CFLAGS="$CFLAGS -Werror=address" 8935 8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8937printf %s "checking if $CC supports -Werror=address... " >&6; } 8938 cacheid=xorg_cv_cc_flag__Werror_address 8939 if eval test \${$cacheid+y} 8940then : 8941 printf %s "(cached) " >&6 8942else $as_nop 8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8944/* end confdefs.h. */ 8945int i; 8946int 8947main (void) 8948{ 8949 8950 ; 8951 return 0; 8952} 8953_ACEOF 8954if ac_fn_c_try_link "$LINENO" 8955then : 8956 eval $cacheid=yes 8957else $as_nop 8958 eval $cacheid=no 8959fi 8960rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8961 conftest$ac_exeext conftest.$ac_ext 8962fi 8963 8964 8965 CFLAGS="$xorg_testset_save_CFLAGS" 8966 8967 eval supported=\$$cacheid 8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8969printf "%s\n" "$supported" >&6; } 8970 if test "$supported" = "yes" ; then 8971 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8972 found="yes" 8973 fi 8974 fi 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990xorg_testset_save_CFLAGS="$CFLAGS" 8991 8992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8996if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8997then : 8998 printf %s "(cached) " >&6 8999else $as_nop 9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9001/* end confdefs.h. */ 9002int i; 9003_ACEOF 9004if ac_fn_c_try_compile "$LINENO" 9005then : 9006 xorg_cv_cc_flag_unknown_warning_option=yes 9007else $as_nop 9008 xorg_cv_cc_flag_unknown_warning_option=no 9009fi 9010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9011fi 9012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9015 CFLAGS="$xorg_testset_save_CFLAGS" 9016fi 9017 9018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9021 fi 9022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9025if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9026then : 9027 printf %s "(cached) " >&6 9028else $as_nop 9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9030/* end confdefs.h. */ 9031int i; 9032_ACEOF 9033if ac_fn_c_try_compile "$LINENO" 9034then : 9035 xorg_cv_cc_flag_unused_command_line_argument=yes 9036else $as_nop 9037 xorg_cv_cc_flag_unused_command_line_argument=no 9038fi 9039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9040fi 9041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9044 CFLAGS="$xorg_testset_save_CFLAGS" 9045fi 9046 9047found="no" 9048 9049 if test $found = "no" ; then 9050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9052 fi 9053 9054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9056 fi 9057 9058 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9059 9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9061printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9062 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9063 if eval test \${$cacheid+y} 9064then : 9065 printf %s "(cached) " >&6 9066else $as_nop 9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9068/* end confdefs.h. */ 9069int i; 9070int 9071main (void) 9072{ 9073 9074 ; 9075 return 0; 9076} 9077_ACEOF 9078if ac_fn_c_try_link "$LINENO" 9079then : 9080 eval $cacheid=yes 9081else $as_nop 9082 eval $cacheid=no 9083fi 9084rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9085 conftest$ac_exeext conftest.$ac_ext 9086fi 9087 9088 9089 CFLAGS="$xorg_testset_save_CFLAGS" 9090 9091 eval supported=\$$cacheid 9092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9093printf "%s\n" "$supported" >&6; } 9094 if test "$supported" = "yes" ; then 9095 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9096 found="yes" 9097 fi 9098 fi 9099 9100 if test $found = "no" ; then 9101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9103 fi 9104 9105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9107 fi 9108 9109 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9110 9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9112printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9113 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9114 if eval test \${$cacheid+y} 9115then : 9116 printf %s "(cached) " >&6 9117else $as_nop 9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9119/* end confdefs.h. */ 9120int i; 9121int 9122main (void) 9123{ 9124 9125 ; 9126 return 0; 9127} 9128_ACEOF 9129if ac_fn_c_try_link "$LINENO" 9130then : 9131 eval $cacheid=yes 9132else $as_nop 9133 eval $cacheid=no 9134fi 9135rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9136 conftest$ac_exeext conftest.$ac_ext 9137fi 9138 9139 9140 CFLAGS="$xorg_testset_save_CFLAGS" 9141 9142 eval supported=\$$cacheid 9143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9144printf "%s\n" "$supported" >&6; } 9145 if test "$supported" = "yes" ; then 9146 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9147 found="yes" 9148 fi 9149 fi 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165xorg_testset_save_CFLAGS="$CFLAGS" 9166 9167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9170printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9171if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9172then : 9173 printf %s "(cached) " >&6 9174else $as_nop 9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9176/* end confdefs.h. */ 9177int i; 9178_ACEOF 9179if ac_fn_c_try_compile "$LINENO" 9180then : 9181 xorg_cv_cc_flag_unknown_warning_option=yes 9182else $as_nop 9183 xorg_cv_cc_flag_unknown_warning_option=no 9184fi 9185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9186fi 9187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9188printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9190 CFLAGS="$xorg_testset_save_CFLAGS" 9191fi 9192 9193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9196 fi 9197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9199printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9200if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9201then : 9202 printf %s "(cached) " >&6 9203else $as_nop 9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9205/* end confdefs.h. */ 9206int i; 9207_ACEOF 9208if ac_fn_c_try_compile "$LINENO" 9209then : 9210 xorg_cv_cc_flag_unused_command_line_argument=yes 9211else $as_nop 9212 xorg_cv_cc_flag_unused_command_line_argument=no 9213fi 9214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9215fi 9216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9219 CFLAGS="$xorg_testset_save_CFLAGS" 9220fi 9221 9222found="no" 9223 9224 if test $found = "no" ; then 9225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9227 fi 9228 9229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9231 fi 9232 9233 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9234 9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9236printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9237 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9238 if eval test \${$cacheid+y} 9239then : 9240 printf %s "(cached) " >&6 9241else $as_nop 9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9243/* end confdefs.h. */ 9244int i; 9245int 9246main (void) 9247{ 9248 9249 ; 9250 return 0; 9251} 9252_ACEOF 9253if ac_fn_c_try_link "$LINENO" 9254then : 9255 eval $cacheid=yes 9256else $as_nop 9257 eval $cacheid=no 9258fi 9259rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9260 conftest$ac_exeext conftest.$ac_ext 9261fi 9262 9263 9264 CFLAGS="$xorg_testset_save_CFLAGS" 9265 9266 eval supported=\$$cacheid 9267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9268printf "%s\n" "$supported" >&6; } 9269 if test "$supported" = "yes" ; then 9270 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9271 found="yes" 9272 fi 9273 fi 9274 9275 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9276else 9277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 9278printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292xorg_testset_save_CFLAGS="$CFLAGS" 9293 9294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9297printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9298if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9299then : 9300 printf %s "(cached) " >&6 9301else $as_nop 9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9303/* end confdefs.h. */ 9304int i; 9305_ACEOF 9306if ac_fn_c_try_compile "$LINENO" 9307then : 9308 xorg_cv_cc_flag_unknown_warning_option=yes 9309else $as_nop 9310 xorg_cv_cc_flag_unknown_warning_option=no 9311fi 9312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9313fi 9314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9315printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9317 CFLAGS="$xorg_testset_save_CFLAGS" 9318fi 9319 9320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9323 fi 9324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9326printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9327if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9328then : 9329 printf %s "(cached) " >&6 9330else $as_nop 9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9332/* end confdefs.h. */ 9333int i; 9334_ACEOF 9335if ac_fn_c_try_compile "$LINENO" 9336then : 9337 xorg_cv_cc_flag_unused_command_line_argument=yes 9338else $as_nop 9339 xorg_cv_cc_flag_unused_command_line_argument=no 9340fi 9341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9342fi 9343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9344printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9346 CFLAGS="$xorg_testset_save_CFLAGS" 9347fi 9348 9349found="no" 9350 9351 if test $found = "no" ; then 9352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9354 fi 9355 9356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9358 fi 9359 9360 CFLAGS="$CFLAGS -Wimplicit" 9361 9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9363printf %s "checking if $CC supports -Wimplicit... " >&6; } 9364 cacheid=xorg_cv_cc_flag__Wimplicit 9365 if eval test \${$cacheid+y} 9366then : 9367 printf %s "(cached) " >&6 9368else $as_nop 9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9370/* end confdefs.h. */ 9371int i; 9372int 9373main (void) 9374{ 9375 9376 ; 9377 return 0; 9378} 9379_ACEOF 9380if ac_fn_c_try_link "$LINENO" 9381then : 9382 eval $cacheid=yes 9383else $as_nop 9384 eval $cacheid=no 9385fi 9386rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9387 conftest$ac_exeext conftest.$ac_ext 9388fi 9389 9390 9391 CFLAGS="$xorg_testset_save_CFLAGS" 9392 9393 eval supported=\$$cacheid 9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9395printf "%s\n" "$supported" >&6; } 9396 if test "$supported" = "yes" ; then 9397 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9398 found="yes" 9399 fi 9400 fi 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416xorg_testset_save_CFLAGS="$CFLAGS" 9417 9418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9421printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9422if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9423then : 9424 printf %s "(cached) " >&6 9425else $as_nop 9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9427/* end confdefs.h. */ 9428int i; 9429_ACEOF 9430if ac_fn_c_try_compile "$LINENO" 9431then : 9432 xorg_cv_cc_flag_unknown_warning_option=yes 9433else $as_nop 9434 xorg_cv_cc_flag_unknown_warning_option=no 9435fi 9436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9437fi 9438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9439printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9441 CFLAGS="$xorg_testset_save_CFLAGS" 9442fi 9443 9444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9447 fi 9448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9450printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9451if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9452then : 9453 printf %s "(cached) " >&6 9454else $as_nop 9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9456/* end confdefs.h. */ 9457int i; 9458_ACEOF 9459if ac_fn_c_try_compile "$LINENO" 9460then : 9461 xorg_cv_cc_flag_unused_command_line_argument=yes 9462else $as_nop 9463 xorg_cv_cc_flag_unused_command_line_argument=no 9464fi 9465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9466fi 9467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9468printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9470 CFLAGS="$xorg_testset_save_CFLAGS" 9471fi 9472 9473found="no" 9474 9475 if test $found = "no" ; then 9476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9478 fi 9479 9480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9482 fi 9483 9484 CFLAGS="$CFLAGS -Wnonnull" 9485 9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9487printf %s "checking if $CC supports -Wnonnull... " >&6; } 9488 cacheid=xorg_cv_cc_flag__Wnonnull 9489 if eval test \${$cacheid+y} 9490then : 9491 printf %s "(cached) " >&6 9492else $as_nop 9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9494/* end confdefs.h. */ 9495int i; 9496int 9497main (void) 9498{ 9499 9500 ; 9501 return 0; 9502} 9503_ACEOF 9504if ac_fn_c_try_link "$LINENO" 9505then : 9506 eval $cacheid=yes 9507else $as_nop 9508 eval $cacheid=no 9509fi 9510rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9511 conftest$ac_exeext conftest.$ac_ext 9512fi 9513 9514 9515 CFLAGS="$xorg_testset_save_CFLAGS" 9516 9517 eval supported=\$$cacheid 9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9519printf "%s\n" "$supported" >&6; } 9520 if test "$supported" = "yes" ; then 9521 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9522 found="yes" 9523 fi 9524 fi 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540xorg_testset_save_CFLAGS="$CFLAGS" 9541 9542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9545printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9546if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9547then : 9548 printf %s "(cached) " >&6 9549else $as_nop 9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9551/* end confdefs.h. */ 9552int i; 9553_ACEOF 9554if ac_fn_c_try_compile "$LINENO" 9555then : 9556 xorg_cv_cc_flag_unknown_warning_option=yes 9557else $as_nop 9558 xorg_cv_cc_flag_unknown_warning_option=no 9559fi 9560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9561fi 9562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9563printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9565 CFLAGS="$xorg_testset_save_CFLAGS" 9566fi 9567 9568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 fi 9572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9574printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9575if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9576then : 9577 printf %s "(cached) " >&6 9578else $as_nop 9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9580/* end confdefs.h. */ 9581int i; 9582_ACEOF 9583if ac_fn_c_try_compile "$LINENO" 9584then : 9585 xorg_cv_cc_flag_unused_command_line_argument=yes 9586else $as_nop 9587 xorg_cv_cc_flag_unused_command_line_argument=no 9588fi 9589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9590fi 9591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9592printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9594 CFLAGS="$xorg_testset_save_CFLAGS" 9595fi 9596 9597found="no" 9598 9599 if test $found = "no" ; then 9600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9602 fi 9603 9604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9606 fi 9607 9608 CFLAGS="$CFLAGS -Winit-self" 9609 9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9611printf %s "checking if $CC supports -Winit-self... " >&6; } 9612 cacheid=xorg_cv_cc_flag__Winit_self 9613 if eval test \${$cacheid+y} 9614then : 9615 printf %s "(cached) " >&6 9616else $as_nop 9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9618/* end confdefs.h. */ 9619int i; 9620int 9621main (void) 9622{ 9623 9624 ; 9625 return 0; 9626} 9627_ACEOF 9628if ac_fn_c_try_link "$LINENO" 9629then : 9630 eval $cacheid=yes 9631else $as_nop 9632 eval $cacheid=no 9633fi 9634rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9635 conftest$ac_exeext conftest.$ac_ext 9636fi 9637 9638 9639 CFLAGS="$xorg_testset_save_CFLAGS" 9640 9641 eval supported=\$$cacheid 9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9643printf "%s\n" "$supported" >&6; } 9644 if test "$supported" = "yes" ; then 9645 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9646 found="yes" 9647 fi 9648 fi 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664xorg_testset_save_CFLAGS="$CFLAGS" 9665 9666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9669printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9670if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9671then : 9672 printf %s "(cached) " >&6 9673else $as_nop 9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9675/* end confdefs.h. */ 9676int i; 9677_ACEOF 9678if ac_fn_c_try_compile "$LINENO" 9679then : 9680 xorg_cv_cc_flag_unknown_warning_option=yes 9681else $as_nop 9682 xorg_cv_cc_flag_unknown_warning_option=no 9683fi 9684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9685fi 9686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9687printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9689 CFLAGS="$xorg_testset_save_CFLAGS" 9690fi 9691 9692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9695 fi 9696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9698printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9699if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9700then : 9701 printf %s "(cached) " >&6 9702else $as_nop 9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9704/* end confdefs.h. */ 9705int i; 9706_ACEOF 9707if ac_fn_c_try_compile "$LINENO" 9708then : 9709 xorg_cv_cc_flag_unused_command_line_argument=yes 9710else $as_nop 9711 xorg_cv_cc_flag_unused_command_line_argument=no 9712fi 9713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9714fi 9715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9716printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9718 CFLAGS="$xorg_testset_save_CFLAGS" 9719fi 9720 9721found="no" 9722 9723 if test $found = "no" ; then 9724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9726 fi 9727 9728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9730 fi 9731 9732 CFLAGS="$CFLAGS -Wmain" 9733 9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9735printf %s "checking if $CC supports -Wmain... " >&6; } 9736 cacheid=xorg_cv_cc_flag__Wmain 9737 if eval test \${$cacheid+y} 9738then : 9739 printf %s "(cached) " >&6 9740else $as_nop 9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9742/* end confdefs.h. */ 9743int i; 9744int 9745main (void) 9746{ 9747 9748 ; 9749 return 0; 9750} 9751_ACEOF 9752if ac_fn_c_try_link "$LINENO" 9753then : 9754 eval $cacheid=yes 9755else $as_nop 9756 eval $cacheid=no 9757fi 9758rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9759 conftest$ac_exeext conftest.$ac_ext 9760fi 9761 9762 9763 CFLAGS="$xorg_testset_save_CFLAGS" 9764 9765 eval supported=\$$cacheid 9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9767printf "%s\n" "$supported" >&6; } 9768 if test "$supported" = "yes" ; then 9769 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9770 found="yes" 9771 fi 9772 fi 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788xorg_testset_save_CFLAGS="$CFLAGS" 9789 9790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9793printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9794if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9795then : 9796 printf %s "(cached) " >&6 9797else $as_nop 9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9799/* end confdefs.h. */ 9800int i; 9801_ACEOF 9802if ac_fn_c_try_compile "$LINENO" 9803then : 9804 xorg_cv_cc_flag_unknown_warning_option=yes 9805else $as_nop 9806 xorg_cv_cc_flag_unknown_warning_option=no 9807fi 9808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9809fi 9810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9811printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9813 CFLAGS="$xorg_testset_save_CFLAGS" 9814fi 9815 9816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9819 fi 9820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9822printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9823if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9824then : 9825 printf %s "(cached) " >&6 9826else $as_nop 9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9828/* end confdefs.h. */ 9829int i; 9830_ACEOF 9831if ac_fn_c_try_compile "$LINENO" 9832then : 9833 xorg_cv_cc_flag_unused_command_line_argument=yes 9834else $as_nop 9835 xorg_cv_cc_flag_unused_command_line_argument=no 9836fi 9837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9838fi 9839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9840printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9842 CFLAGS="$xorg_testset_save_CFLAGS" 9843fi 9844 9845found="no" 9846 9847 if test $found = "no" ; then 9848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9850 fi 9851 9852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9854 fi 9855 9856 CFLAGS="$CFLAGS -Wmissing-braces" 9857 9858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9859printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9860 cacheid=xorg_cv_cc_flag__Wmissing_braces 9861 if eval test \${$cacheid+y} 9862then : 9863 printf %s "(cached) " >&6 9864else $as_nop 9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9866/* end confdefs.h. */ 9867int i; 9868int 9869main (void) 9870{ 9871 9872 ; 9873 return 0; 9874} 9875_ACEOF 9876if ac_fn_c_try_link "$LINENO" 9877then : 9878 eval $cacheid=yes 9879else $as_nop 9880 eval $cacheid=no 9881fi 9882rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9883 conftest$ac_exeext conftest.$ac_ext 9884fi 9885 9886 9887 CFLAGS="$xorg_testset_save_CFLAGS" 9888 9889 eval supported=\$$cacheid 9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9891printf "%s\n" "$supported" >&6; } 9892 if test "$supported" = "yes" ; then 9893 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9894 found="yes" 9895 fi 9896 fi 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912xorg_testset_save_CFLAGS="$CFLAGS" 9913 9914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9917printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9918if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9919then : 9920 printf %s "(cached) " >&6 9921else $as_nop 9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9923/* end confdefs.h. */ 9924int i; 9925_ACEOF 9926if ac_fn_c_try_compile "$LINENO" 9927then : 9928 xorg_cv_cc_flag_unknown_warning_option=yes 9929else $as_nop 9930 xorg_cv_cc_flag_unknown_warning_option=no 9931fi 9932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9933fi 9934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9935printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9937 CFLAGS="$xorg_testset_save_CFLAGS" 9938fi 9939 9940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9943 fi 9944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9946printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9947if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9948then : 9949 printf %s "(cached) " >&6 9950else $as_nop 9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9952/* end confdefs.h. */ 9953int i; 9954_ACEOF 9955if ac_fn_c_try_compile "$LINENO" 9956then : 9957 xorg_cv_cc_flag_unused_command_line_argument=yes 9958else $as_nop 9959 xorg_cv_cc_flag_unused_command_line_argument=no 9960fi 9961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9962fi 9963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9964printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9966 CFLAGS="$xorg_testset_save_CFLAGS" 9967fi 9968 9969found="no" 9970 9971 if test $found = "no" ; then 9972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9974 fi 9975 9976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9978 fi 9979 9980 CFLAGS="$CFLAGS -Wsequence-point" 9981 9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9983printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9984 cacheid=xorg_cv_cc_flag__Wsequence_point 9985 if eval test \${$cacheid+y} 9986then : 9987 printf %s "(cached) " >&6 9988else $as_nop 9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9990/* end confdefs.h. */ 9991int i; 9992int 9993main (void) 9994{ 9995 9996 ; 9997 return 0; 9998} 9999_ACEOF 10000if ac_fn_c_try_link "$LINENO" 10001then : 10002 eval $cacheid=yes 10003else $as_nop 10004 eval $cacheid=no 10005fi 10006rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10007 conftest$ac_exeext conftest.$ac_ext 10008fi 10009 10010 10011 CFLAGS="$xorg_testset_save_CFLAGS" 10012 10013 eval supported=\$$cacheid 10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10015printf "%s\n" "$supported" >&6; } 10016 if test "$supported" = "yes" ; then 10017 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10018 found="yes" 10019 fi 10020 fi 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036xorg_testset_save_CFLAGS="$CFLAGS" 10037 10038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10041printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10042if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10043then : 10044 printf %s "(cached) " >&6 10045else $as_nop 10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10047/* end confdefs.h. */ 10048int i; 10049_ACEOF 10050if ac_fn_c_try_compile "$LINENO" 10051then : 10052 xorg_cv_cc_flag_unknown_warning_option=yes 10053else $as_nop 10054 xorg_cv_cc_flag_unknown_warning_option=no 10055fi 10056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10057fi 10058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10059printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10061 CFLAGS="$xorg_testset_save_CFLAGS" 10062fi 10063 10064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10067 fi 10068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10070printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10071if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10072then : 10073 printf %s "(cached) " >&6 10074else $as_nop 10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10076/* end confdefs.h. */ 10077int i; 10078_ACEOF 10079if ac_fn_c_try_compile "$LINENO" 10080then : 10081 xorg_cv_cc_flag_unused_command_line_argument=yes 10082else $as_nop 10083 xorg_cv_cc_flag_unused_command_line_argument=no 10084fi 10085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10086fi 10087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10088printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10090 CFLAGS="$xorg_testset_save_CFLAGS" 10091fi 10092 10093found="no" 10094 10095 if test $found = "no" ; then 10096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10098 fi 10099 10100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10102 fi 10103 10104 CFLAGS="$CFLAGS -Wreturn-type" 10105 10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10107printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10108 cacheid=xorg_cv_cc_flag__Wreturn_type 10109 if eval test \${$cacheid+y} 10110then : 10111 printf %s "(cached) " >&6 10112else $as_nop 10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114/* end confdefs.h. */ 10115int i; 10116int 10117main (void) 10118{ 10119 10120 ; 10121 return 0; 10122} 10123_ACEOF 10124if ac_fn_c_try_link "$LINENO" 10125then : 10126 eval $cacheid=yes 10127else $as_nop 10128 eval $cacheid=no 10129fi 10130rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10131 conftest$ac_exeext conftest.$ac_ext 10132fi 10133 10134 10135 CFLAGS="$xorg_testset_save_CFLAGS" 10136 10137 eval supported=\$$cacheid 10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10139printf "%s\n" "$supported" >&6; } 10140 if test "$supported" = "yes" ; then 10141 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10142 found="yes" 10143 fi 10144 fi 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160xorg_testset_save_CFLAGS="$CFLAGS" 10161 10162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10165printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10166if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10167then : 10168 printf %s "(cached) " >&6 10169else $as_nop 10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10171/* end confdefs.h. */ 10172int i; 10173_ACEOF 10174if ac_fn_c_try_compile "$LINENO" 10175then : 10176 xorg_cv_cc_flag_unknown_warning_option=yes 10177else $as_nop 10178 xorg_cv_cc_flag_unknown_warning_option=no 10179fi 10180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10181fi 10182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10183printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10185 CFLAGS="$xorg_testset_save_CFLAGS" 10186fi 10187 10188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191 fi 10192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10194printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10195if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10196then : 10197 printf %s "(cached) " >&6 10198else $as_nop 10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10200/* end confdefs.h. */ 10201int i; 10202_ACEOF 10203if ac_fn_c_try_compile "$LINENO" 10204then : 10205 xorg_cv_cc_flag_unused_command_line_argument=yes 10206else $as_nop 10207 xorg_cv_cc_flag_unused_command_line_argument=no 10208fi 10209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10210fi 10211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10212printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10214 CFLAGS="$xorg_testset_save_CFLAGS" 10215fi 10216 10217found="no" 10218 10219 if test $found = "no" ; then 10220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10222 fi 10223 10224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10226 fi 10227 10228 CFLAGS="$CFLAGS -Wtrigraphs" 10229 10230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10231printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10232 cacheid=xorg_cv_cc_flag__Wtrigraphs 10233 if eval test \${$cacheid+y} 10234then : 10235 printf %s "(cached) " >&6 10236else $as_nop 10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10238/* end confdefs.h. */ 10239int i; 10240int 10241main (void) 10242{ 10243 10244 ; 10245 return 0; 10246} 10247_ACEOF 10248if ac_fn_c_try_link "$LINENO" 10249then : 10250 eval $cacheid=yes 10251else $as_nop 10252 eval $cacheid=no 10253fi 10254rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10255 conftest$ac_exeext conftest.$ac_ext 10256fi 10257 10258 10259 CFLAGS="$xorg_testset_save_CFLAGS" 10260 10261 eval supported=\$$cacheid 10262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10263printf "%s\n" "$supported" >&6; } 10264 if test "$supported" = "yes" ; then 10265 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10266 found="yes" 10267 fi 10268 fi 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284xorg_testset_save_CFLAGS="$CFLAGS" 10285 10286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10289printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10290if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10291then : 10292 printf %s "(cached) " >&6 10293else $as_nop 10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10295/* end confdefs.h. */ 10296int i; 10297_ACEOF 10298if ac_fn_c_try_compile "$LINENO" 10299then : 10300 xorg_cv_cc_flag_unknown_warning_option=yes 10301else $as_nop 10302 xorg_cv_cc_flag_unknown_warning_option=no 10303fi 10304rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10305fi 10306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10307printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10309 CFLAGS="$xorg_testset_save_CFLAGS" 10310fi 10311 10312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10315 fi 10316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10318printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10319if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10320then : 10321 printf %s "(cached) " >&6 10322else $as_nop 10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10324/* end confdefs.h. */ 10325int i; 10326_ACEOF 10327if ac_fn_c_try_compile "$LINENO" 10328then : 10329 xorg_cv_cc_flag_unused_command_line_argument=yes 10330else $as_nop 10331 xorg_cv_cc_flag_unused_command_line_argument=no 10332fi 10333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10334fi 10335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10336printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10338 CFLAGS="$xorg_testset_save_CFLAGS" 10339fi 10340 10341found="no" 10342 10343 if test $found = "no" ; then 10344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10346 fi 10347 10348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10350 fi 10351 10352 CFLAGS="$CFLAGS -Warray-bounds" 10353 10354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10355printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10356 cacheid=xorg_cv_cc_flag__Warray_bounds 10357 if eval test \${$cacheid+y} 10358then : 10359 printf %s "(cached) " >&6 10360else $as_nop 10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10362/* end confdefs.h. */ 10363int i; 10364int 10365main (void) 10366{ 10367 10368 ; 10369 return 0; 10370} 10371_ACEOF 10372if ac_fn_c_try_link "$LINENO" 10373then : 10374 eval $cacheid=yes 10375else $as_nop 10376 eval $cacheid=no 10377fi 10378rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10379 conftest$ac_exeext conftest.$ac_ext 10380fi 10381 10382 10383 CFLAGS="$xorg_testset_save_CFLAGS" 10384 10385 eval supported=\$$cacheid 10386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10387printf "%s\n" "$supported" >&6; } 10388 if test "$supported" = "yes" ; then 10389 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10390 found="yes" 10391 fi 10392 fi 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408xorg_testset_save_CFLAGS="$CFLAGS" 10409 10410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10413printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10414if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10415then : 10416 printf %s "(cached) " >&6 10417else $as_nop 10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10419/* end confdefs.h. */ 10420int i; 10421_ACEOF 10422if ac_fn_c_try_compile "$LINENO" 10423then : 10424 xorg_cv_cc_flag_unknown_warning_option=yes 10425else $as_nop 10426 xorg_cv_cc_flag_unknown_warning_option=no 10427fi 10428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10429fi 10430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10431printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10433 CFLAGS="$xorg_testset_save_CFLAGS" 10434fi 10435 10436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10439 fi 10440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10442printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10443if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10444then : 10445 printf %s "(cached) " >&6 10446else $as_nop 10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10448/* end confdefs.h. */ 10449int i; 10450_ACEOF 10451if ac_fn_c_try_compile "$LINENO" 10452then : 10453 xorg_cv_cc_flag_unused_command_line_argument=yes 10454else $as_nop 10455 xorg_cv_cc_flag_unused_command_line_argument=no 10456fi 10457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10458fi 10459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10460printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10462 CFLAGS="$xorg_testset_save_CFLAGS" 10463fi 10464 10465found="no" 10466 10467 if test $found = "no" ; then 10468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10470 fi 10471 10472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10474 fi 10475 10476 CFLAGS="$CFLAGS -Wwrite-strings" 10477 10478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10479printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10480 cacheid=xorg_cv_cc_flag__Wwrite_strings 10481 if eval test \${$cacheid+y} 10482then : 10483 printf %s "(cached) " >&6 10484else $as_nop 10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10486/* end confdefs.h. */ 10487int i; 10488int 10489main (void) 10490{ 10491 10492 ; 10493 return 0; 10494} 10495_ACEOF 10496if ac_fn_c_try_link "$LINENO" 10497then : 10498 eval $cacheid=yes 10499else $as_nop 10500 eval $cacheid=no 10501fi 10502rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10503 conftest$ac_exeext conftest.$ac_ext 10504fi 10505 10506 10507 CFLAGS="$xorg_testset_save_CFLAGS" 10508 10509 eval supported=\$$cacheid 10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10511printf "%s\n" "$supported" >&6; } 10512 if test "$supported" = "yes" ; then 10513 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10514 found="yes" 10515 fi 10516 fi 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532xorg_testset_save_CFLAGS="$CFLAGS" 10533 10534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10538if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10539then : 10540 printf %s "(cached) " >&6 10541else $as_nop 10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10543/* end confdefs.h. */ 10544int i; 10545_ACEOF 10546if ac_fn_c_try_compile "$LINENO" 10547then : 10548 xorg_cv_cc_flag_unknown_warning_option=yes 10549else $as_nop 10550 xorg_cv_cc_flag_unknown_warning_option=no 10551fi 10552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10553fi 10554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10557 CFLAGS="$xorg_testset_save_CFLAGS" 10558fi 10559 10560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10563 fi 10564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10567if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10568then : 10569 printf %s "(cached) " >&6 10570else $as_nop 10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10572/* end confdefs.h. */ 10573int i; 10574_ACEOF 10575if ac_fn_c_try_compile "$LINENO" 10576then : 10577 xorg_cv_cc_flag_unused_command_line_argument=yes 10578else $as_nop 10579 xorg_cv_cc_flag_unused_command_line_argument=no 10580fi 10581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10582fi 10583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10586 CFLAGS="$xorg_testset_save_CFLAGS" 10587fi 10588 10589found="no" 10590 10591 if test $found = "no" ; then 10592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10594 fi 10595 10596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10598 fi 10599 10600 CFLAGS="$CFLAGS -Waddress" 10601 10602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10603printf %s "checking if $CC supports -Waddress... " >&6; } 10604 cacheid=xorg_cv_cc_flag__Waddress 10605 if eval test \${$cacheid+y} 10606then : 10607 printf %s "(cached) " >&6 10608else $as_nop 10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10610/* end confdefs.h. */ 10611int i; 10612int 10613main (void) 10614{ 10615 10616 ; 10617 return 0; 10618} 10619_ACEOF 10620if ac_fn_c_try_link "$LINENO" 10621then : 10622 eval $cacheid=yes 10623else $as_nop 10624 eval $cacheid=no 10625fi 10626rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10627 conftest$ac_exeext conftest.$ac_ext 10628fi 10629 10630 10631 CFLAGS="$xorg_testset_save_CFLAGS" 10632 10633 eval supported=\$$cacheid 10634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10635printf "%s\n" "$supported" >&6; } 10636 if test "$supported" = "yes" ; then 10637 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10638 found="yes" 10639 fi 10640 fi 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656xorg_testset_save_CFLAGS="$CFLAGS" 10657 10658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10661printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10662if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10663then : 10664 printf %s "(cached) " >&6 10665else $as_nop 10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10667/* end confdefs.h. */ 10668int i; 10669_ACEOF 10670if ac_fn_c_try_compile "$LINENO" 10671then : 10672 xorg_cv_cc_flag_unknown_warning_option=yes 10673else $as_nop 10674 xorg_cv_cc_flag_unknown_warning_option=no 10675fi 10676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10677fi 10678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10679printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10681 CFLAGS="$xorg_testset_save_CFLAGS" 10682fi 10683 10684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10687 fi 10688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10690printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10691if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10692then : 10693 printf %s "(cached) " >&6 10694else $as_nop 10695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10696/* end confdefs.h. */ 10697int i; 10698_ACEOF 10699if ac_fn_c_try_compile "$LINENO" 10700then : 10701 xorg_cv_cc_flag_unused_command_line_argument=yes 10702else $as_nop 10703 xorg_cv_cc_flag_unused_command_line_argument=no 10704fi 10705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10706fi 10707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10708printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10710 CFLAGS="$xorg_testset_save_CFLAGS" 10711fi 10712 10713found="no" 10714 10715 if test $found = "no" ; then 10716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10718 fi 10719 10720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10722 fi 10723 10724 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10725 10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10727printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10728 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10729 if eval test \${$cacheid+y} 10730then : 10731 printf %s "(cached) " >&6 10732else $as_nop 10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10734/* end confdefs.h. */ 10735int i; 10736int 10737main (void) 10738{ 10739 10740 ; 10741 return 0; 10742} 10743_ACEOF 10744if ac_fn_c_try_link "$LINENO" 10745then : 10746 eval $cacheid=yes 10747else $as_nop 10748 eval $cacheid=no 10749fi 10750rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10751 conftest$ac_exeext conftest.$ac_ext 10752fi 10753 10754 10755 CFLAGS="$xorg_testset_save_CFLAGS" 10756 10757 eval supported=\$$cacheid 10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10759printf "%s\n" "$supported" >&6; } 10760 if test "$supported" = "yes" ; then 10761 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10762 found="yes" 10763 fi 10764 fi 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780xorg_testset_save_CFLAGS="$CFLAGS" 10781 10782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10785printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10786if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10787then : 10788 printf %s "(cached) " >&6 10789else $as_nop 10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10791/* end confdefs.h. */ 10792int i; 10793_ACEOF 10794if ac_fn_c_try_compile "$LINENO" 10795then : 10796 xorg_cv_cc_flag_unknown_warning_option=yes 10797else $as_nop 10798 xorg_cv_cc_flag_unknown_warning_option=no 10799fi 10800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10801fi 10802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10803printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10805 CFLAGS="$xorg_testset_save_CFLAGS" 10806fi 10807 10808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10811 fi 10812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10814printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10815if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10816then : 10817 printf %s "(cached) " >&6 10818else $as_nop 10819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10820/* end confdefs.h. */ 10821int i; 10822_ACEOF 10823if ac_fn_c_try_compile "$LINENO" 10824then : 10825 xorg_cv_cc_flag_unused_command_line_argument=yes 10826else $as_nop 10827 xorg_cv_cc_flag_unused_command_line_argument=no 10828fi 10829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10830fi 10831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10832printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10834 CFLAGS="$xorg_testset_save_CFLAGS" 10835fi 10836 10837found="no" 10838 10839 if test $found = "no" ; then 10840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10842 fi 10843 10844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10846 fi 10847 10848 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10849 10850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10851printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10852 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10853 if eval test \${$cacheid+y} 10854then : 10855 printf %s "(cached) " >&6 10856else $as_nop 10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10858/* end confdefs.h. */ 10859int i; 10860int 10861main (void) 10862{ 10863 10864 ; 10865 return 0; 10866} 10867_ACEOF 10868if ac_fn_c_try_link "$LINENO" 10869then : 10870 eval $cacheid=yes 10871else $as_nop 10872 eval $cacheid=no 10873fi 10874rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10875 conftest$ac_exeext conftest.$ac_ext 10876fi 10877 10878 10879 CFLAGS="$xorg_testset_save_CFLAGS" 10880 10881 eval supported=\$$cacheid 10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10883printf "%s\n" "$supported" >&6; } 10884 if test "$supported" = "yes" ; then 10885 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10886 found="yes" 10887 fi 10888 fi 10889 10890 10891fi 10892 10893 10894 10895 10896 10897 10898 10899 CWARNFLAGS="$BASE_CFLAGS" 10900 if test "x$GCC" = xyes ; then 10901 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10902 fi 10903 10904 10905 10906 10907 10908 10909 10910 10911# Check whether --enable-strict-compilation was given. 10912if test ${enable_strict_compilation+y} 10913then : 10914 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10915else $as_nop 10916 STRICT_COMPILE=no 10917fi 10918 10919 10920 10921 10922 10923 10924STRICT_CFLAGS="" 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938xorg_testset_save_CFLAGS="$CFLAGS" 10939 10940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10944if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10945then : 10946 printf %s "(cached) " >&6 10947else $as_nop 10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10949/* end confdefs.h. */ 10950int i; 10951_ACEOF 10952if ac_fn_c_try_compile "$LINENO" 10953then : 10954 xorg_cv_cc_flag_unknown_warning_option=yes 10955else $as_nop 10956 xorg_cv_cc_flag_unknown_warning_option=no 10957fi 10958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10959fi 10960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10963 CFLAGS="$xorg_testset_save_CFLAGS" 10964fi 10965 10966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10969 fi 10970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10973if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10974then : 10975 printf %s "(cached) " >&6 10976else $as_nop 10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10978/* end confdefs.h. */ 10979int i; 10980_ACEOF 10981if ac_fn_c_try_compile "$LINENO" 10982then : 10983 xorg_cv_cc_flag_unused_command_line_argument=yes 10984else $as_nop 10985 xorg_cv_cc_flag_unused_command_line_argument=no 10986fi 10987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10988fi 10989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10992 CFLAGS="$xorg_testset_save_CFLAGS" 10993fi 10994 10995found="no" 10996 10997 if test $found = "no" ; then 10998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11000 fi 11001 11002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11004 fi 11005 11006 CFLAGS="$CFLAGS -pedantic" 11007 11008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11009printf %s "checking if $CC supports -pedantic... " >&6; } 11010 cacheid=xorg_cv_cc_flag__pedantic 11011 if eval test \${$cacheid+y} 11012then : 11013 printf %s "(cached) " >&6 11014else $as_nop 11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11016/* end confdefs.h. */ 11017int i; 11018int 11019main (void) 11020{ 11021 11022 ; 11023 return 0; 11024} 11025_ACEOF 11026if ac_fn_c_try_link "$LINENO" 11027then : 11028 eval $cacheid=yes 11029else $as_nop 11030 eval $cacheid=no 11031fi 11032rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11033 conftest$ac_exeext conftest.$ac_ext 11034fi 11035 11036 11037 CFLAGS="$xorg_testset_save_CFLAGS" 11038 11039 eval supported=\$$cacheid 11040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11041printf "%s\n" "$supported" >&6; } 11042 if test "$supported" = "yes" ; then 11043 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11044 found="yes" 11045 fi 11046 fi 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062xorg_testset_save_CFLAGS="$CFLAGS" 11063 11064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11067printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11068if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11069then : 11070 printf %s "(cached) " >&6 11071else $as_nop 11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11073/* end confdefs.h. */ 11074int i; 11075_ACEOF 11076if ac_fn_c_try_compile "$LINENO" 11077then : 11078 xorg_cv_cc_flag_unknown_warning_option=yes 11079else $as_nop 11080 xorg_cv_cc_flag_unknown_warning_option=no 11081fi 11082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11083fi 11084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11085printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11087 CFLAGS="$xorg_testset_save_CFLAGS" 11088fi 11089 11090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11093 fi 11094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11096printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11097if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11098then : 11099 printf %s "(cached) " >&6 11100else $as_nop 11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11102/* end confdefs.h. */ 11103int i; 11104_ACEOF 11105if ac_fn_c_try_compile "$LINENO" 11106then : 11107 xorg_cv_cc_flag_unused_command_line_argument=yes 11108else $as_nop 11109 xorg_cv_cc_flag_unused_command_line_argument=no 11110fi 11111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11112fi 11113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11114printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11116 CFLAGS="$xorg_testset_save_CFLAGS" 11117fi 11118 11119found="no" 11120 11121 if test $found = "no" ; then 11122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11124 fi 11125 11126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11128 fi 11129 11130 CFLAGS="$CFLAGS -Werror" 11131 11132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11133printf %s "checking if $CC supports -Werror... " >&6; } 11134 cacheid=xorg_cv_cc_flag__Werror 11135 if eval test \${$cacheid+y} 11136then : 11137 printf %s "(cached) " >&6 11138else $as_nop 11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11140/* end confdefs.h. */ 11141int i; 11142int 11143main (void) 11144{ 11145 11146 ; 11147 return 0; 11148} 11149_ACEOF 11150if ac_fn_c_try_link "$LINENO" 11151then : 11152 eval $cacheid=yes 11153else $as_nop 11154 eval $cacheid=no 11155fi 11156rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11157 conftest$ac_exeext conftest.$ac_ext 11158fi 11159 11160 11161 CFLAGS="$xorg_testset_save_CFLAGS" 11162 11163 eval supported=\$$cacheid 11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11165printf "%s\n" "$supported" >&6; } 11166 if test "$supported" = "yes" ; then 11167 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11168 found="yes" 11169 fi 11170 fi 11171 11172 if test $found = "no" ; then 11173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11175 fi 11176 11177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11179 fi 11180 11181 CFLAGS="$CFLAGS -errwarn" 11182 11183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11184printf %s "checking if $CC supports -errwarn... " >&6; } 11185 cacheid=xorg_cv_cc_flag__errwarn 11186 if eval test \${$cacheid+y} 11187then : 11188 printf %s "(cached) " >&6 11189else $as_nop 11190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11191/* end confdefs.h. */ 11192int i; 11193int 11194main (void) 11195{ 11196 11197 ; 11198 return 0; 11199} 11200_ACEOF 11201if ac_fn_c_try_link "$LINENO" 11202then : 11203 eval $cacheid=yes 11204else $as_nop 11205 eval $cacheid=no 11206fi 11207rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11208 conftest$ac_exeext conftest.$ac_ext 11209fi 11210 11211 11212 CFLAGS="$xorg_testset_save_CFLAGS" 11213 11214 eval supported=\$$cacheid 11215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11216printf "%s\n" "$supported" >&6; } 11217 if test "$supported" = "yes" ; then 11218 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11219 found="yes" 11220 fi 11221 fi 11222 11223 11224 11225# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11226# activate it with -Werror, so we add it here explicitly. 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240xorg_testset_save_CFLAGS="$CFLAGS" 11241 11242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11245printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11246if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11247then : 11248 printf %s "(cached) " >&6 11249else $as_nop 11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11251/* end confdefs.h. */ 11252int i; 11253_ACEOF 11254if ac_fn_c_try_compile "$LINENO" 11255then : 11256 xorg_cv_cc_flag_unknown_warning_option=yes 11257else $as_nop 11258 xorg_cv_cc_flag_unknown_warning_option=no 11259fi 11260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11261fi 11262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11263printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11265 CFLAGS="$xorg_testset_save_CFLAGS" 11266fi 11267 11268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11271 fi 11272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11274printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11275if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11276then : 11277 printf %s "(cached) " >&6 11278else $as_nop 11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11280/* end confdefs.h. */ 11281int i; 11282_ACEOF 11283if ac_fn_c_try_compile "$LINENO" 11284then : 11285 xorg_cv_cc_flag_unused_command_line_argument=yes 11286else $as_nop 11287 xorg_cv_cc_flag_unused_command_line_argument=no 11288fi 11289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11290fi 11291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11292printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11294 CFLAGS="$xorg_testset_save_CFLAGS" 11295fi 11296 11297found="no" 11298 11299 if test $found = "no" ; then 11300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11302 fi 11303 11304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11306 fi 11307 11308 CFLAGS="$CFLAGS -Werror=attributes" 11309 11310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11311printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11312 cacheid=xorg_cv_cc_flag__Werror_attributes 11313 if eval test \${$cacheid+y} 11314then : 11315 printf %s "(cached) " >&6 11316else $as_nop 11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11318/* end confdefs.h. */ 11319int i; 11320int 11321main (void) 11322{ 11323 11324 ; 11325 return 0; 11326} 11327_ACEOF 11328if ac_fn_c_try_link "$LINENO" 11329then : 11330 eval $cacheid=yes 11331else $as_nop 11332 eval $cacheid=no 11333fi 11334rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11335 conftest$ac_exeext conftest.$ac_ext 11336fi 11337 11338 11339 CFLAGS="$xorg_testset_save_CFLAGS" 11340 11341 eval supported=\$$cacheid 11342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11343printf "%s\n" "$supported" >&6; } 11344 if test "$supported" = "yes" ; then 11345 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11346 found="yes" 11347 fi 11348 fi 11349 11350 11351 11352if test "x$STRICT_COMPILE" = "xyes"; then 11353 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11354 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11355fi 11356 11357 11358 11359 11360 11361 11362cat >>confdefs.h <<_ACEOF 11363#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11364_ACEOF 11365 11366 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11367 if test "x$PVM" = "x"; then 11368 PVM="0" 11369 fi 11370 11371printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11372 11373 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11374 if test "x$PVP" = "x"; then 11375 PVP="0" 11376 fi 11377 11378printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11379 11380 11381 11382CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11383mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11384|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11385touch \$(top_srcdir)/ChangeLog; \ 11386echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11387 11388 11389 11390 11391macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11392INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11393mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11394|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11395touch \$(top_srcdir)/INSTALL; \ 11396echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11397 11398 11399 11400 11401 11402 11403case $host_os in 11404 solaris*) 11405 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11406 # check for a man page file found in later versions that use 11407 # traditional section numbers instead 11408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11409printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11410if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11411then : 11412 printf %s "(cached) " >&6 11413else $as_nop 11414 test "$cross_compiling" = yes && 11415 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11416if test -r "/usr/share/man/man7/attributes.7"; then 11417 ac_cv_file__usr_share_man_man7_attributes_7=yes 11418else 11419 ac_cv_file__usr_share_man_man7_attributes_7=no 11420fi 11421fi 11422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11423printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11424if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11425then : 11426 SYSV_MAN_SECTIONS=false 11427else $as_nop 11428 SYSV_MAN_SECTIONS=true 11429fi 11430 11431 ;; 11432 *) SYSV_MAN_SECTIONS=false ;; 11433esac 11434 11435if test x$APP_MAN_SUFFIX = x ; then 11436 APP_MAN_SUFFIX=1 11437fi 11438if test x$APP_MAN_DIR = x ; then 11439 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11440fi 11441 11442if test x$LIB_MAN_SUFFIX = x ; then 11443 LIB_MAN_SUFFIX=3 11444fi 11445if test x$LIB_MAN_DIR = x ; then 11446 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11447fi 11448 11449if test x$FILE_MAN_SUFFIX = x ; then 11450 case $SYSV_MAN_SECTIONS in 11451 true) FILE_MAN_SUFFIX=4 ;; 11452 *) FILE_MAN_SUFFIX=5 ;; 11453 esac 11454fi 11455if test x$FILE_MAN_DIR = x ; then 11456 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11457fi 11458 11459if test x$MISC_MAN_SUFFIX = x ; then 11460 case $SYSV_MAN_SECTIONS in 11461 true) MISC_MAN_SUFFIX=5 ;; 11462 *) MISC_MAN_SUFFIX=7 ;; 11463 esac 11464fi 11465if test x$MISC_MAN_DIR = x ; then 11466 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11467fi 11468 11469if test x$DRIVER_MAN_SUFFIX = x ; then 11470 case $SYSV_MAN_SECTIONS in 11471 true) DRIVER_MAN_SUFFIX=7 ;; 11472 *) DRIVER_MAN_SUFFIX=4 ;; 11473 esac 11474fi 11475if test x$DRIVER_MAN_DIR = x ; then 11476 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11477fi 11478 11479if test x$ADMIN_MAN_SUFFIX = x ; then 11480 case $SYSV_MAN_SECTIONS in 11481 true) ADMIN_MAN_SUFFIX=1m ;; 11482 *) ADMIN_MAN_SUFFIX=8 ;; 11483 esac 11484fi 11485if test x$ADMIN_MAN_DIR = x ; then 11486 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11487fi 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503XORG_MAN_PAGE="X Version 11" 11504 11505MAN_SUBSTS="\ 11506 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11507 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11508 -e 's|__xservername__|Xorg|g' \ 11509 -e 's|__xconfigfile__|xorg.conf|g' \ 11510 -e 's|__projectroot__|\$(prefix)|g' \ 11511 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11512 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11513 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11514 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11515 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11516 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11517 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11518 11519 11520 11521# Check whether --enable-silent-rules was given. 11522if test ${enable_silent_rules+y} 11523then : 11524 enableval=$enable_silent_rules; 11525fi 11526 11527case $enable_silent_rules in # ((( 11528 yes) AM_DEFAULT_VERBOSITY=0;; 11529 no) AM_DEFAULT_VERBOSITY=1;; 11530 *) AM_DEFAULT_VERBOSITY=0;; 11531esac 11532am_make=${MAKE-make} 11533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11534printf %s "checking whether $am_make supports nested variables... " >&6; } 11535if test ${am_cv_make_support_nested_variables+y} 11536then : 11537 printf %s "(cached) " >&6 11538else $as_nop 11539 if printf "%s\n" 'TRUE=$(BAR$(V)) 11540BAR0=false 11541BAR1=true 11542V=1 11543am__doit: 11544 @$(TRUE) 11545.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11546 am_cv_make_support_nested_variables=yes 11547else 11548 am_cv_make_support_nested_variables=no 11549fi 11550fi 11551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11552printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11553if test $am_cv_make_support_nested_variables = yes; then 11554 AM_V='$(V)' 11555 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11556else 11557 AM_V=$AM_DEFAULT_VERBOSITY 11558 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11559fi 11560AM_BACKSLASH='\' 11561 11562 11563 11564 11565# Check whether --enable-devel-docs was given. 11566if test ${enable_devel_docs+y} 11567then : 11568 enableval=$enable_devel_docs; build_devel_docs=$enableval 11569else $as_nop 11570 build_devel_docs=yes 11571fi 11572 11573 11574 if test x$build_devel_docs = xyes; then 11575 ENABLE_DEVEL_DOCS_TRUE= 11576 ENABLE_DEVEL_DOCS_FALSE='#' 11577else 11578 ENABLE_DEVEL_DOCS_TRUE='#' 11579 ENABLE_DEVEL_DOCS_FALSE= 11580fi 11581 11582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 11583printf %s "checking whether to build developer documentation... " >&6; } 11584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 11585printf "%s\n" "$build_devel_docs" >&6; } 11586 11587 11588 11589 11590 11591# Check whether --with-xmlto was given. 11592if test ${with_xmlto+y} 11593then : 11594 withval=$with_xmlto; use_xmlto=$withval 11595else $as_nop 11596 use_xmlto=auto 11597fi 11598 11599 11600 11601if test "x$use_xmlto" = x"auto"; then 11602 # Extract the first word of "xmlto", so it can be a program name with args. 11603set dummy xmlto; ac_word=$2 11604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11605printf %s "checking for $ac_word... " >&6; } 11606if test ${ac_cv_path_XMLTO+y} 11607then : 11608 printf %s "(cached) " >&6 11609else $as_nop 11610 case $XMLTO in 11611 [\\/]* | ?:[\\/]*) 11612 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11613 ;; 11614 *) 11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11616for as_dir in $PATH 11617do 11618 IFS=$as_save_IFS 11619 case $as_dir in #((( 11620 '') as_dir=./ ;; 11621 */) ;; 11622 *) as_dir=$as_dir/ ;; 11623 esac 11624 for ac_exec_ext in '' $ac_executable_extensions; do 11625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11626 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 11627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11628 break 2 11629 fi 11630done 11631 done 11632IFS=$as_save_IFS 11633 11634 ;; 11635esac 11636fi 11637XMLTO=$ac_cv_path_XMLTO 11638if test -n "$XMLTO"; then 11639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11640printf "%s\n" "$XMLTO" >&6; } 11641else 11642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11643printf "%s\n" "no" >&6; } 11644fi 11645 11646 11647 if test "x$XMLTO" = "x"; then 11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 11649printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 11650 have_xmlto=no 11651 else 11652 have_xmlto=yes 11653 fi 11654elif test "x$use_xmlto" = x"yes" ; then 11655 # Extract the first word of "xmlto", so it can be a program name with args. 11656set dummy xmlto; ac_word=$2 11657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11658printf %s "checking for $ac_word... " >&6; } 11659if test ${ac_cv_path_XMLTO+y} 11660then : 11661 printf %s "(cached) " >&6 11662else $as_nop 11663 case $XMLTO in 11664 [\\/]* | ?:[\\/]*) 11665 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11666 ;; 11667 *) 11668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11669for as_dir in $PATH 11670do 11671 IFS=$as_save_IFS 11672 case $as_dir in #((( 11673 '') as_dir=./ ;; 11674 */) ;; 11675 *) as_dir=$as_dir/ ;; 11676 esac 11677 for ac_exec_ext in '' $ac_executable_extensions; do 11678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11679 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 11680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11681 break 2 11682 fi 11683done 11684 done 11685IFS=$as_save_IFS 11686 11687 ;; 11688esac 11689fi 11690XMLTO=$ac_cv_path_XMLTO 11691if test -n "$XMLTO"; then 11692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11693printf "%s\n" "$XMLTO" >&6; } 11694else 11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11696printf "%s\n" "no" >&6; } 11697fi 11698 11699 11700 if test "x$XMLTO" = "x"; then 11701 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 11702 fi 11703 have_xmlto=yes 11704elif test "x$use_xmlto" = x"no" ; then 11705 if test "x$XMLTO" != "x"; then 11706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 11707printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 11708 fi 11709 have_xmlto=no 11710else 11711 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 11712fi 11713 11714# Test for a minimum version of xmlto, if provided. 11715if test "$have_xmlto" = yes; then 11716 # scrape the xmlto version 11717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 11718printf %s "checking the xmlto version... " >&6; } 11719 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 11720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 11721printf "%s\n" "$xmlto_version" >&6; } 11722 as_arg_v1=$xmlto_version 11723as_arg_v2=0.0.20 11724awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 11725case $? in #( 11726 1) : 11727 if test "x$use_xmlto" = xauto; then 11728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 11729printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 11730 have_xmlto=no 11731 else 11732 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 11733 fi ;; #( 11734 0) : 11735 ;; #( 11736 2) : 11737 ;; #( 11738 *) : 11739 ;; 11740esac 11741fi 11742 11743# Test for the ability of xmlto to generate a text target 11744# 11745# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 11746# following test for empty XML docbook files. 11747# For compatibility reasons use the following empty XML docbook file and if 11748# it fails try it again with a non-empty XML file. 11749have_xmlto_text=no 11750cat > conftest.xml << "EOF" 11751EOF 11752if test "$have_xmlto" = yes 11753then : 11754 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 11755then : 11756 have_xmlto_text=yes 11757else $as_nop 11758 # Try it again with a non-empty XML file. 11759 cat > conftest.xml << "EOF" 11760<x></x> 11761EOF 11762 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 11763then : 11764 have_xmlto_text=yes 11765else $as_nop 11766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 11767printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 11768fi 11769fi 11770fi 11771rm -f conftest.xml 11772 if test $have_xmlto_text = yes; then 11773 HAVE_XMLTO_TEXT_TRUE= 11774 HAVE_XMLTO_TEXT_FALSE='#' 11775else 11776 HAVE_XMLTO_TEXT_TRUE='#' 11777 HAVE_XMLTO_TEXT_FALSE= 11778fi 11779 11780 if test "$have_xmlto" = yes; then 11781 HAVE_XMLTO_TRUE= 11782 HAVE_XMLTO_FALSE='#' 11783else 11784 HAVE_XMLTO_TRUE='#' 11785 HAVE_XMLTO_FALSE= 11786fi 11787 11788 11789 11790 11791 11792 11793# Check whether --with-fop was given. 11794if test ${with_fop+y} 11795then : 11796 withval=$with_fop; use_fop=$withval 11797else $as_nop 11798 use_fop=auto 11799fi 11800 11801 11802 11803if test "x$use_fop" = x"auto"; then 11804 # Extract the first word of "fop", so it can be a program name with args. 11805set dummy fop; ac_word=$2 11806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11807printf %s "checking for $ac_word... " >&6; } 11808if test ${ac_cv_path_FOP+y} 11809then : 11810 printf %s "(cached) " >&6 11811else $as_nop 11812 case $FOP in 11813 [\\/]* | ?:[\\/]*) 11814 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 11815 ;; 11816 *) 11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11818for as_dir in $PATH 11819do 11820 IFS=$as_save_IFS 11821 case $as_dir in #((( 11822 '') as_dir=./ ;; 11823 */) ;; 11824 *) as_dir=$as_dir/ ;; 11825 esac 11826 for ac_exec_ext in '' $ac_executable_extensions; do 11827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11828 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 11829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11830 break 2 11831 fi 11832done 11833 done 11834IFS=$as_save_IFS 11835 11836 ;; 11837esac 11838fi 11839FOP=$ac_cv_path_FOP 11840if test -n "$FOP"; then 11841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 11842printf "%s\n" "$FOP" >&6; } 11843else 11844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11845printf "%s\n" "no" >&6; } 11846fi 11847 11848 11849 if test "x$FOP" = "x"; then 11850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 11851printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 11852 have_fop=no 11853 else 11854 have_fop=yes 11855 fi 11856elif test "x$use_fop" = x"yes" ; then 11857 # Extract the first word of "fop", so it can be a program name with args. 11858set dummy fop; ac_word=$2 11859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11860printf %s "checking for $ac_word... " >&6; } 11861if test ${ac_cv_path_FOP+y} 11862then : 11863 printf %s "(cached) " >&6 11864else $as_nop 11865 case $FOP in 11866 [\\/]* | ?:[\\/]*) 11867 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 11868 ;; 11869 *) 11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11871for as_dir in $PATH 11872do 11873 IFS=$as_save_IFS 11874 case $as_dir in #((( 11875 '') as_dir=./ ;; 11876 */) ;; 11877 *) as_dir=$as_dir/ ;; 11878 esac 11879 for ac_exec_ext in '' $ac_executable_extensions; do 11880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11881 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 11882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11883 break 2 11884 fi 11885done 11886 done 11887IFS=$as_save_IFS 11888 11889 ;; 11890esac 11891fi 11892FOP=$ac_cv_path_FOP 11893if test -n "$FOP"; then 11894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 11895printf "%s\n" "$FOP" >&6; } 11896else 11897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11898printf "%s\n" "no" >&6; } 11899fi 11900 11901 11902 if test "x$FOP" = "x"; then 11903 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 11904 fi 11905 have_fop=yes 11906elif test "x$use_fop" = x"no" ; then 11907 if test "x$FOP" != "x"; then 11908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 11909printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 11910 fi 11911 have_fop=no 11912else 11913 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 11914fi 11915 11916# Test for a minimum version of fop, if provided. 11917 11918 if test "$have_fop" = yes; then 11919 HAVE_FOP_TRUE= 11920 HAVE_FOP_FALSE='#' 11921else 11922 HAVE_FOP_TRUE='#' 11923 HAVE_FOP_FALSE= 11924fi 11925 11926 11927 11928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5 11929printf %s "checking for X.Org SGML entities >= 1.5... " >&6; } 11930XORG_SGML_PATH= 11931if test -n "$PKG_CONFIG" && \ 11932 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5 11933 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5 11934 ac_status=$? 11935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11936 test $ac_status = 0; }; then 11937 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 11938else 11939 : 11940 11941fi 11942 11943# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 11944# the path and the name of the doc stylesheet 11945if test "x$XORG_SGML_PATH" != "x" ; then 11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 11947printf "%s\n" "$XORG_SGML_PATH" >&6; } 11948 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 11949 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 11950else 11951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11952printf "%s\n" "no" >&6; } 11953fi 11954 11955 11956 11957 11958 if test "x$XSL_STYLESHEET" != "x"; then 11959 HAVE_STYLESHEETS_TRUE= 11960 HAVE_STYLESHEETS_FALSE='#' 11961else 11962 HAVE_STYLESHEETS_TRUE='#' 11963 HAVE_STYLESHEETS_FALSE= 11964fi 11965 11966 11967 11968 11969 11970 11971 11972# Check whether --with-lint was given. 11973if test ${with_lint+y} 11974then : 11975 withval=$with_lint; use_lint=$withval 11976else $as_nop 11977 use_lint=no 11978fi 11979 11980 11981# Obtain platform specific info like program name and options 11982# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11983case $host_os in 11984 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11985 lint_name=splint 11986 lint_options="-badflag" 11987 ;; 11988 *freebsd* | *netbsd*) 11989 lint_name=lint 11990 lint_options="-u -b" 11991 ;; 11992 *solaris*) 11993 lint_name=lint 11994 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11995 ;; 11996esac 11997 11998# Test for the presence of the program (either guessed by the code or spelled out by the user) 11999if test "x$use_lint" = x"yes" ; then 12000 # Extract the first word of "$lint_name", so it can be a program name with args. 12001set dummy $lint_name; ac_word=$2 12002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12003printf %s "checking for $ac_word... " >&6; } 12004if test ${ac_cv_path_LINT+y} 12005then : 12006 printf %s "(cached) " >&6 12007else $as_nop 12008 case $LINT in 12009 [\\/]* | ?:[\\/]*) 12010 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 12011 ;; 12012 *) 12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12014for as_dir in $PATH 12015do 12016 IFS=$as_save_IFS 12017 case $as_dir in #((( 12018 '') as_dir=./ ;; 12019 */) ;; 12020 *) as_dir=$as_dir/ ;; 12021 esac 12022 for ac_exec_ext in '' $ac_executable_extensions; do 12023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12024 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 12025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12026 break 2 12027 fi 12028done 12029 done 12030IFS=$as_save_IFS 12031 12032 ;; 12033esac 12034fi 12035LINT=$ac_cv_path_LINT 12036if test -n "$LINT"; then 12037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 12038printf "%s\n" "$LINT" >&6; } 12039else 12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12041printf "%s\n" "no" >&6; } 12042fi 12043 12044 12045 if test "x$LINT" = "x"; then 12046 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 12047 fi 12048elif test "x$use_lint" = x"no" ; then 12049 if test "x$LINT" != "x"; then 12050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 12051printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 12052 fi 12053else 12054 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 12055fi 12056 12057# User supplied flags override default flags 12058if test "x$LINT_FLAGS" != "x"; then 12059 lint_options=$LINT_FLAGS 12060fi 12061 12062LINT_FLAGS=$lint_options 12063 12064 if test "x$LINT" != x; then 12065 LINT_TRUE= 12066 LINT_FALSE='#' 12067else 12068 LINT_TRUE='#' 12069 LINT_FALSE= 12070fi 12071 12072 12073 12074 12075ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 12076if test "x$ac_cv_header_stdint_h" = xyes 12077then : 12078 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 12079 12080fi 12081 12082 12083 12084# Check whether --with-default-config-file was given. 12085if test ${with_default_config_file+y} 12086then : 12087 withval=$with_default_config_file; CONFIG_FILE="$withval" 12088else $as_nop 12089 CONFIG_FILE="${sysconfdir}/X11/fs/config" 12090fi 12091 12092 12093DEFAULT_CONFIG_FILE=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\\\\",\\\\\\\\\\\"/'g` 12094 12095 prefix_NONE= 12096 exec_prefix_NONE= 12097 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 12098 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 12099 eval ax_define_dir="\"$DEFAULT_CONFIG_FILE\"" 12100 eval ax_define_dir="\"$ax_define_dir\"" 12101 DEFAULT_CONFIG_FILE="$ax_define_dir" 12102 12103 12104printf "%s\n" "#define DEFAULT_CONFIG_FILE \"$ax_define_dir\"" >>confdefs.h 12105 12106 test "$prefix_NONE" && prefix=NONE 12107 test "$exec_prefix_NONE" && exec_prefix=NONE 12108 12109 12110# generate text for the man page 12111case $CONFIG_FILE in 12112 *,*) 12113 CONFIG_FILE_DESC="the first file found from the list:" 12114 CONFIG_FILE_PATH=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\fR, \\\\\\\\fI/g'` 12115 ;; 12116 *) 12117 CONFIG_FILE_DESC="the default file," 12118 CONFIG_FILE_PATH="${CONFIG_FILE}" 12119 ;; 12120esac 12121 12122 12123 12124# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 12141printf %s "checking for root directory for font files... " >&6; } 12142 12143# Check whether --with-fontrootdir was given. 12144if test ${with_fontrootdir+y} 12145then : 12146 withval=$with_fontrootdir; FONTROOTDIR="$withval" 12147fi 12148 12149 # if --with-fontrootdir not specified... 12150 if test "x${FONTROOTDIR}" = "x"; then 12151 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 12152 fi 12153 # ...and if pkg-config didn't find fontdir in fontutil.pc... 12154 if test "x${FONTROOTDIR}" = "x"; then 12155 FONTROOTDIR="${datadir}/fonts/X11" 12156 fi 12157 12158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 12159printf "%s\n" "${FONTROOTDIR}" >&6; } 12160 12161 12162 12163 12164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5 12165printf %s "checking for directory for misc files... " >&6; } 12166 12167# Check whether --with-fontmiscdir was given. 12168if test ${with_fontmiscdir+y} 12169then : 12170 withval=$with_fontmiscdir; FONTMISCDIR="${withval}" 12171else $as_nop 12172 FONTMISCDIR='${FONTROOTDIR}/misc' 12173fi 12174 12175 12176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5 12177printf "%s\n" "${FONTMISCDIR}" >&6; } 12178 12179 12180 12181 12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5 12183printf %s "checking for directory for OTF files... " >&6; } 12184 12185# Check whether --with-fontotfdir was given. 12186if test ${with_fontotfdir+y} 12187then : 12188 withval=$with_fontotfdir; FONTOTFDIR="${withval}" 12189else $as_nop 12190 FONTOTFDIR='${FONTROOTDIR}/OTF' 12191fi 12192 12193 12194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5 12195printf "%s\n" "${FONTOTFDIR}" >&6; } 12196 12197 12198 12199 12200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5 12201printf %s "checking for directory for TTF files... " >&6; } 12202 12203# Check whether --with-fontttfdir was given. 12204if test ${with_fontttfdir+y} 12205then : 12206 withval=$with_fontttfdir; FONTTTFDIR="${withval}" 12207else $as_nop 12208 FONTTTFDIR='${FONTROOTDIR}/TTF' 12209fi 12210 12211 12212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5 12213printf "%s\n" "${FONTTTFDIR}" >&6; } 12214 12215 12216 12217 12218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5 12219printf %s "checking for directory for Type1 files... " >&6; } 12220 12221# Check whether --with-fonttype1dir was given. 12222if test ${with_fonttype1dir+y} 12223then : 12224 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}" 12225else $as_nop 12226 FONTTYPE1DIR='${FONTROOTDIR}/Type1' 12227fi 12228 12229 12230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5 12231printf "%s\n" "${FONTTYPE1DIR}" >&6; } 12232 12233 12234 12235 12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5 12237printf %s "checking for directory for 75dpi files... " >&6; } 12238 12239# Check whether --with-font75dpidir was given. 12240if test ${with_font75dpidir+y} 12241then : 12242 withval=$with_font75dpidir; FONT75DPIDIR="${withval}" 12243else $as_nop 12244 FONT75DPIDIR='${FONTROOTDIR}/75dpi' 12245fi 12246 12247 12248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5 12249printf "%s\n" "${FONT75DPIDIR}" >&6; } 12250 12251 12252 12253 12254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5 12255printf %s "checking for directory for 100dpi files... " >&6; } 12256 12257# Check whether --with-font100dpidir was given. 12258if test ${with_font100dpidir+y} 12259then : 12260 withval=$with_font100dpidir; FONT100DPIDIR="${withval}" 12261else $as_nop 12262 FONT100DPIDIR='${FONTROOTDIR}/100dpi' 12263fi 12264 12265 12266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5 12267printf "%s\n" "${FONT100DPIDIR}" >&6; } 12268 12269 12270# Determine font path to put in config file 12271# Uses --default-font-path if set, otherwise checks for /etc/X11/fontpath.d, 12272# otherwise uses standard subdirectories of FONTROOTDIR. When cross 12273# compiling, assume default font path uses standard FONTROOTDIR directories. 12274DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" 12275if test "$cross_compiling" != yes; then 12276 as_ac_File=`printf "%s\n" "ac_cv_file_${sysconfdir}/X11/fontpath.d" | $as_tr_sh` 12277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sysconfdir}/X11/fontpath.d" >&5 12278printf %s "checking for ${sysconfdir}/X11/fontpath.d... " >&6; } 12279if eval test \${$as_ac_File+y} 12280then : 12281 printf %s "(cached) " >&6 12282else $as_nop 12283 test "$cross_compiling" = yes && 12284 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 12285if test -r "${sysconfdir}/X11/fontpath.d"; then 12286 eval "$as_ac_File=yes" 12287else 12288 eval "$as_ac_File=no" 12289fi 12290fi 12291eval ac_res=\$$as_ac_File 12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12293printf "%s\n" "$ac_res" >&6; } 12294if eval test \"x\$"$as_ac_File"\" = x"yes" 12295then : 12296 DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d' 12297else $as_nop 12298 case $host_os in 12299 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; 12300 esac 12301fi 12302 12303fi 12304 12305# Check whether --with-default-font-path was given. 12306if test ${with_default_font_path+y} 12307then : 12308 withval=$with_default_font_path; FONTPATH="$withval" 12309else $as_nop 12310 FONTPATH="${DEFAULT_FONT_PATH}" 12311fi 12312 12313 12314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5 12315printf %s "checking for default font path... " >&6; } 12316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5 12317printf "%s\n" "$FONTPATH" >&6; } 12318 12319 12320 12321# Option to enable support for starting from inetd 12322# Check whether --enable-inetd was given. 12323if test ${enable_inetd+y} 12324then : 12325 enableval=$enable_inetd; INETD=$enableval 12326else $as_nop 12327 INETD=yes 12328fi 12329 12330if test "x$INETD" = xyes; then 12331 12332printf "%s\n" "#define XFS_INETD 1" >>confdefs.h 12333 12334fi 12335 12336# Option to enable support for logging to syslog 12337# Check whether --enable-syslog was given. 12338if test ${enable_syslog+y} 12339then : 12340 enableval=$enable_syslog; SYSLOG=$enableval 12341else $as_nop 12342 SYSLOG=yes 12343fi 12344 12345if test "x$SYSLOG" = xyes; then 12346 12347printf "%s\n" "#define USE_SYSLOG 1" >>confdefs.h 12348 12349fi 12350 12351 12352# Checks for system functions / libraries 12353ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 12354if test "x$ac_cv_func_daemon" = xyes 12355then : 12356 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h 12357 12358fi 12359 12360 12361# Checks for pkg-config packages 12362# - xproto >= 7.0.17 required for _X_NORETURN in <X11/Xfuncproto.h> 12363# - xfont >= 2.0.1 for new server API 12364 12365pkg_failed=no 12366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFS" >&5 12367printf %s "checking for XFS... " >&6; } 12368 12369if test -n "$XFS_CFLAGS"; then 12370 pkg_cv_XFS_CFLAGS="$XFS_CFLAGS" 12371 elif test -n "$PKG_CONFIG"; then 12372 if test -n "$PKG_CONFIG" && \ 12373 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans\""; } >&5 12374 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans") 2>&5 12375 ac_status=$? 12376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12377 test $ac_status = 0; }; then 12378 pkg_cv_XFS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans" 2>/dev/null` 12379 test "x$?" != "x0" && pkg_failed=yes 12380else 12381 pkg_failed=yes 12382fi 12383 else 12384 pkg_failed=untried 12385fi 12386if test -n "$XFS_LIBS"; then 12387 pkg_cv_XFS_LIBS="$XFS_LIBS" 12388 elif test -n "$PKG_CONFIG"; then 12389 if test -n "$PKG_CONFIG" && \ 12390 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans\""; } >&5 12391 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans") 2>&5 12392 ac_status=$? 12393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12394 test $ac_status = 0; }; then 12395 pkg_cv_XFS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans" 2>/dev/null` 12396 test "x$?" != "x0" && pkg_failed=yes 12397else 12398 pkg_failed=yes 12399fi 12400 else 12401 pkg_failed=untried 12402fi 12403 12404 12405 12406if test $pkg_failed = yes; then 12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12408printf "%s\n" "no" >&6; } 12409 12410if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12411 _pkg_short_errors_supported=yes 12412else 12413 _pkg_short_errors_supported=no 12414fi 12415 if test $_pkg_short_errors_supported = yes; then 12416 XFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans" 2>&1` 12417 else 12418 XFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans" 2>&1` 12419 fi 12420 # Put the nasty error message in config.log where it belongs 12421 echo "$XFS_PKG_ERRORS" >&5 12422 12423 as_fn_error $? "Package requirements (xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans) were not met: 12424 12425$XFS_PKG_ERRORS 12426 12427Consider adjusting the PKG_CONFIG_PATH environment variable if you 12428installed software in a non-standard prefix. 12429 12430Alternatively, you may set the environment variables XFS_CFLAGS 12431and XFS_LIBS to avoid the need to call pkg-config. 12432See the pkg-config man page for more details." "$LINENO" 5 12433elif test $pkg_failed = untried; then 12434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12435printf "%s\n" "no" >&6; } 12436 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12437printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12438as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12439is in your PATH or set the PKG_CONFIG environment variable to the full 12440path to pkg-config. 12441 12442Alternatively, you may set the environment variables XFS_CFLAGS 12443and XFS_LIBS to avoid the need to call pkg-config. 12444See the pkg-config man page for more details. 12445 12446To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12447See \`config.log' for more details" "$LINENO" 5; } 12448else 12449 XFS_CFLAGS=$pkg_cv_XFS_CFLAGS 12450 XFS_LIBS=$pkg_cv_XFS_LIBS 12451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12452printf "%s\n" "yes" >&6; } 12453 12454fi 12455 12456case "$host_os" in 12457 cygwin*|mingw*) 12458 CFLAGS="$CFLAGS -DFD_SETSIZE=256" 12459 LDFLAGS="$LDFLAGS -Wl,--export-all" ;; 12460esac 12461 12462# Transport selection macro from xtrans.m4 12463 12464 12465 case $host_os in 12466 mingw*) unixdef="no" ;; 12467 *) unixdef="yes" ;; 12468 esac 12469 # Check whether --enable-unix-transport was given. 12470if test ${enable_unix_transport+y} 12471then : 12472 enableval=$enable_unix_transport; UNIXCONN=$enableval 12473else $as_nop 12474 UNIXCONN=$unixdef 12475fi 12476 12477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 12478printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 12479 if test "$UNIXCONN" = "yes"; then 12480 12481printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 12482 12483 fi 12484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 12485printf "%s\n" "$UNIXCONN" >&6; } 12486 # Check whether --enable-tcp-transport was given. 12487if test ${enable_tcp_transport+y} 12488then : 12489 enableval=$enable_tcp_transport; TCPCONN=$enableval 12490else $as_nop 12491 TCPCONN=yes 12492fi 12493 12494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 12495printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 12496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 12497printf "%s\n" "$TCPCONN" >&6; } 12498 if test "$TCPCONN" = "yes"; then 12499 12500printf "%s\n" "#define TCPCONN 1" >>confdefs.h 12501 12502 12503 # SVR4 hides these in libraries other than libc 12504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 12505printf %s "checking for library containing socket... " >&6; } 12506if test ${ac_cv_search_socket+y} 12507then : 12508 printf %s "(cached) " >&6 12509else $as_nop 12510 ac_func_search_save_LIBS=$LIBS 12511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12512/* end confdefs.h. */ 12513 12514/* Override any GCC internal prototype to avoid an error. 12515 Use char because int might match the return type of a GCC 12516 builtin and then its argument prototype would still apply. */ 12517char socket (); 12518int 12519main (void) 12520{ 12521return socket (); 12522 ; 12523 return 0; 12524} 12525_ACEOF 12526for ac_lib in '' socket 12527do 12528 if test -z "$ac_lib"; then 12529 ac_res="none required" 12530 else 12531 ac_res=-l$ac_lib 12532 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12533 fi 12534 if ac_fn_c_try_link "$LINENO" 12535then : 12536 ac_cv_search_socket=$ac_res 12537fi 12538rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12539 conftest$ac_exeext 12540 if test ${ac_cv_search_socket+y} 12541then : 12542 break 12543fi 12544done 12545if test ${ac_cv_search_socket+y} 12546then : 12547 12548else $as_nop 12549 ac_cv_search_socket=no 12550fi 12551rm conftest.$ac_ext 12552LIBS=$ac_func_search_save_LIBS 12553fi 12554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 12555printf "%s\n" "$ac_cv_search_socket" >&6; } 12556ac_res=$ac_cv_search_socket 12557if test "$ac_res" != no 12558then : 12559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12560 12561fi 12562 12563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 12564printf %s "checking for library containing gethostbyname... " >&6; } 12565if test ${ac_cv_search_gethostbyname+y} 12566then : 12567 printf %s "(cached) " >&6 12568else $as_nop 12569 ac_func_search_save_LIBS=$LIBS 12570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12571/* end confdefs.h. */ 12572 12573/* Override any GCC internal prototype to avoid an error. 12574 Use char because int might match the return type of a GCC 12575 builtin and then its argument prototype would still apply. */ 12576char gethostbyname (); 12577int 12578main (void) 12579{ 12580return gethostbyname (); 12581 ; 12582 return 0; 12583} 12584_ACEOF 12585for ac_lib in '' nsl 12586do 12587 if test -z "$ac_lib"; then 12588 ac_res="none required" 12589 else 12590 ac_res=-l$ac_lib 12591 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12592 fi 12593 if ac_fn_c_try_link "$LINENO" 12594then : 12595 ac_cv_search_gethostbyname=$ac_res 12596fi 12597rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12598 conftest$ac_exeext 12599 if test ${ac_cv_search_gethostbyname+y} 12600then : 12601 break 12602fi 12603done 12604if test ${ac_cv_search_gethostbyname+y} 12605then : 12606 12607else $as_nop 12608 ac_cv_search_gethostbyname=no 12609fi 12610rm conftest.$ac_ext 12611LIBS=$ac_func_search_save_LIBS 12612fi 12613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 12614printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 12615ac_res=$ac_cv_search_gethostbyname 12616if test "$ac_res" != no 12617then : 12618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12619 12620fi 12621 12622 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 12623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 12624printf %s "checking for main in -lws2_32... " >&6; } 12625if test ${ac_cv_lib_ws2_32_main+y} 12626then : 12627 printf %s "(cached) " >&6 12628else $as_nop 12629 ac_check_lib_save_LIBS=$LIBS 12630LIBS="-lws2_32 $LIBS" 12631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12632/* end confdefs.h. */ 12633 12634 12635int 12636main (void) 12637{ 12638return main (); 12639 ; 12640 return 0; 12641} 12642_ACEOF 12643if ac_fn_c_try_link "$LINENO" 12644then : 12645 ac_cv_lib_ws2_32_main=yes 12646else $as_nop 12647 ac_cv_lib_ws2_32_main=no 12648fi 12649rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12650 conftest$ac_exeext conftest.$ac_ext 12651LIBS=$ac_check_lib_save_LIBS 12652fi 12653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 12654printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 12655if test "x$ac_cv_lib_ws2_32_main" = xyes 12656then : 12657 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 12658 12659 LIBS="-lws2_32 $LIBS" 12660 12661fi 12662 12663 fi 12664 12665 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 12666 # Check whether --enable-ipv6 was given. 12667if test ${enable_ipv6+y} 12668then : 12669 enableval=$enable_ipv6; IPV6CONN=$enableval 12670else $as_nop 12671 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 12672if test "x$ac_cv_func_getaddrinfo" = xyes 12673then : 12674 IPV6CONN=yes 12675else $as_nop 12676 IPV6CONN=no 12677fi 12678 12679fi 12680 12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 12682printf %s "checking if IPv6 support should be built... " >&6; } 12683 if test "$IPV6CONN" = "yes"; then 12684 12685printf "%s\n" "#define IPv6 1" >>confdefs.h 12686 12687 fi 12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 12689printf "%s\n" "$IPV6CONN" >&6; } 12690 12691 # 4.3BSD-Reno added a new member to struct sockaddr_in 12692 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 12693#include <sys/types.h> 12694#include <sys/socket.h> 12695#include <netinet/in.h> 12696 12697" 12698if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 12699then : 12700 12701printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 12702 12703fi 12704 12705 12706 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 12707 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 12708$ac_includes_default 12709#include <sys/socket.h> 12710" 12711if test "x$ac_cv_type_socklen_t" = xyes 12712then : 12713 12714printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 12715 12716 12717fi 12718 12719 12720 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 12721 # _XOPEN_SOURCE to get it (such as on Solaris) 12722 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 12723$ac_includes_default 12724#include <sys/socket.h> 12725 12726" 12727if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 12728then : 12729 12730fi 12731 12732 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 12733 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 12734 unset ac_cv_member_struct_msghdr_msg_control 12735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 12736printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 12737 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 12738#define _XOPEN_SOURCE 600 12739$ac_includes_default 12740#include <sys/socket.h> 12741 12742" 12743if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 12744then : 12745 12746printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 12747 12748 12749fi 12750 12751 fi 12752 # If that didn't work, fall back to XPG5/UNIX98 with C89 12753 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 12754 unset ac_cv_member_struct_msghdr_msg_control 12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 12756printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 12757 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 12758#define _XOPEN_SOURCE 500 12759$ac_includes_default 12760#include <sys/socket.h> 12761 12762" 12763if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 12764then : 12765 12766printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 12767 12768 12769fi 12770 12771 fi 12772 12773 12774 12775 fi 12776 case $host_os in 12777 solaris*) localdef="yes" ;; 12778 *) localdef="no" ;; 12779 esac 12780 # Check whether --enable-local-transport was given. 12781if test ${enable_local_transport+y} 12782then : 12783 enableval=$enable_local_transport; LOCALCONN=$enableval 12784else $as_nop 12785 LOCALCONN=$localdef 12786fi 12787 12788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 12789printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 12790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 12791printf "%s\n" "$LOCALCONN" >&6; } 12792 if test "$LOCALCONN" = "yes"; then 12793 12794printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 12795 12796 fi 12797 12798 # Other functions Xtrans may need 12799 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 12800if test "x$ac_cv_func_strcasecmp" = xyes 12801then : 12802 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 12803 12804fi 12805ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 12806if test "x$ac_cv_func_strlcpy" = xyes 12807then : 12808 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 12809 12810fi 12811 12812 12813 12814 12815ac_config_files="$ac_config_files Makefile config/Makefile doc/Makefile man/Makefile" 12816 12817cat >confcache <<\_ACEOF 12818# This file is a shell script that caches the results of configure 12819# tests run on this system so they can be shared between configure 12820# scripts and configure runs, see configure's option --config-cache. 12821# It is not useful on other systems. If it contains results you don't 12822# want to keep, you may remove or edit it. 12823# 12824# config.status only pays attention to the cache file if you give it 12825# the --recheck option to rerun configure. 12826# 12827# `ac_cv_env_foo' variables (set or unset) will be overridden when 12828# loading this file, other *unset* `ac_cv_foo' will be assigned the 12829# following values. 12830 12831_ACEOF 12832 12833# The following way of writing the cache mishandles newlines in values, 12834# but we know of no workaround that is simple, portable, and efficient. 12835# So, we kill variables containing newlines. 12836# Ultrix sh set writes to stderr and can't be redirected directly, 12837# and sets the high bit in the cache file unless we assign to the vars. 12838( 12839 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12840 eval ac_val=\$$ac_var 12841 case $ac_val in #( 12842 *${as_nl}*) 12843 case $ac_var in #( 12844 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12845printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12846 esac 12847 case $ac_var in #( 12848 _ | IFS | as_nl) ;; #( 12849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12850 *) { eval $ac_var=; unset $ac_var;} ;; 12851 esac ;; 12852 esac 12853 done 12854 12855 (set) 2>&1 | 12856 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12857 *${as_nl}ac_space=\ *) 12858 # `set' does not quote correctly, so add quotes: double-quote 12859 # substitution turns \\\\ into \\, and sed turns \\ into \. 12860 sed -n \ 12861 "s/'/'\\\\''/g; 12862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12863 ;; #( 12864 *) 12865 # `set' quotes correctly as required by POSIX, so do not add quotes. 12866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12867 ;; 12868 esac | 12869 sort 12870) | 12871 sed ' 12872 /^ac_cv_env_/b end 12873 t clear 12874 :clear 12875 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12876 t end 12877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12878 :end' >>confcache 12879if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12880 if test -w "$cache_file"; then 12881 if test "x$cache_file" != "x/dev/null"; then 12882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12883printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12884 if test ! -f "$cache_file" || test -h "$cache_file"; then 12885 cat confcache >"$cache_file" 12886 else 12887 case $cache_file in #( 12888 */* | ?:*) 12889 mv -f confcache "$cache_file"$$ && 12890 mv -f "$cache_file"$$ "$cache_file" ;; #( 12891 *) 12892 mv -f confcache "$cache_file" ;; 12893 esac 12894 fi 12895 fi 12896 else 12897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12898printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12899 fi 12900fi 12901rm -f confcache 12902 12903test "x$prefix" = xNONE && prefix=$ac_default_prefix 12904# Let make expand exec_prefix. 12905test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12906 12907DEFS=-DHAVE_CONFIG_H 12908 12909ac_libobjs= 12910ac_ltlibobjs= 12911U= 12912for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12913 # 1. Remove the extension, and $U if already installed. 12914 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12915 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12916 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12917 # will be set to the directory where LIBOBJS objects are built. 12918 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12919 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12920done 12921LIBOBJS=$ac_libobjs 12922 12923LTLIBOBJS=$ac_ltlibobjs 12924 12925 12926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12927printf %s "checking that generated files are newer than configure... " >&6; } 12928 if test -n "$am_sleep_pid"; then 12929 # Hide warnings about reused PIDs. 12930 wait $am_sleep_pid 2>/dev/null 12931 fi 12932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12933printf "%s\n" "done" >&6; } 12934if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12935 as_fn_error $? "conditional \"AMDEP\" was never defined. 12936Usually this means the macro was only invoked conditionally." "$LINENO" 5 12937fi 12938if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12939 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12940Usually this means the macro was only invoked conditionally." "$LINENO" 5 12941fi 12942 if test -n "$EXEEXT"; then 12943 am__EXEEXT_TRUE= 12944 am__EXEEXT_FALSE='#' 12945else 12946 am__EXEEXT_TRUE='#' 12947 am__EXEEXT_FALSE= 12948fi 12949 12950if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 12951 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 12952Usually this means the macro was only invoked conditionally." "$LINENO" 5 12953fi 12954if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 12955 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 12956Usually this means the macro was only invoked conditionally." "$LINENO" 5 12957fi 12958if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 12959 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 12960Usually this means the macro was only invoked conditionally." "$LINENO" 5 12961fi 12962if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 12963 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 12964Usually this means the macro was only invoked conditionally." "$LINENO" 5 12965fi 12966if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 12967 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 12968Usually this means the macro was only invoked conditionally." "$LINENO" 5 12969fi 12970if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12971 as_fn_error $? "conditional \"LINT\" was never defined. 12972Usually this means the macro was only invoked conditionally." "$LINENO" 5 12973fi 12974 12975: "${CONFIG_STATUS=./config.status}" 12976ac_write_fail=0 12977ac_clean_files_save=$ac_clean_files 12978ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12980printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12981as_write_fail=0 12982cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12983#! $SHELL 12984# Generated by $as_me. 12985# Run this file to recreate the current configuration. 12986# Compiler output produced by configure, useful for debugging 12987# configure, is in config.log if it exists. 12988 12989debug=false 12990ac_cs_recheck=false 12991ac_cs_silent=false 12992 12993SHELL=\${CONFIG_SHELL-$SHELL} 12994export SHELL 12995_ASEOF 12996cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12997## -------------------- ## 12998## M4sh Initialization. ## 12999## -------------------- ## 13000 13001# Be more Bourne compatible 13002DUALCASE=1; export DUALCASE # for MKS sh 13003as_nop=: 13004if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 13005then : 13006 emulate sh 13007 NULLCMD=: 13008 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13009 # is contrary to our usage. Disable this feature. 13010 alias -g '${1+"$@"}'='"$@"' 13011 setopt NO_GLOB_SUBST 13012else $as_nop 13013 case `(set -o) 2>/dev/null` in #( 13014 *posix*) : 13015 set -o posix ;; #( 13016 *) : 13017 ;; 13018esac 13019fi 13020 13021 13022 13023# Reset variables that may have inherited troublesome values from 13024# the environment. 13025 13026# IFS needs to be set, to space, tab, and newline, in precisely that order. 13027# (If _AS_PATH_WALK were called with IFS unset, it would have the 13028# side effect of setting IFS to empty, thus disabling word splitting.) 13029# Quoting is to prevent editors from complaining about space-tab. 13030as_nl=' 13031' 13032export as_nl 13033IFS=" "" $as_nl" 13034 13035PS1='$ ' 13036PS2='> ' 13037PS4='+ ' 13038 13039# Ensure predictable behavior from utilities with locale-dependent output. 13040LC_ALL=C 13041export LC_ALL 13042LANGUAGE=C 13043export LANGUAGE 13044 13045# We cannot yet rely on "unset" to work, but we need these variables 13046# to be unset--not just set to an empty or harmless value--now, to 13047# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 13048# also avoids known problems related to "unset" and subshell syntax 13049# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 13050for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 13051do eval test \${$as_var+y} \ 13052 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13053done 13054 13055# Ensure that fds 0, 1, and 2 are open. 13056if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 13057if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 13058if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 13059 13060# The user is always right. 13061if ${PATH_SEPARATOR+false} :; then 13062 PATH_SEPARATOR=: 13063 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13064 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13065 PATH_SEPARATOR=';' 13066 } 13067fi 13068 13069 13070# Find who we are. Look in the path if we contain no directory separator. 13071as_myself= 13072case $0 in #(( 13073 *[\\/]* ) as_myself=$0 ;; 13074 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13075for as_dir in $PATH 13076do 13077 IFS=$as_save_IFS 13078 case $as_dir in #((( 13079 '') as_dir=./ ;; 13080 */) ;; 13081 *) as_dir=$as_dir/ ;; 13082 esac 13083 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 13084 done 13085IFS=$as_save_IFS 13086 13087 ;; 13088esac 13089# We did not find ourselves, most probably we were run as `sh COMMAND' 13090# in which case we are not to be found in the path. 13091if test "x$as_myself" = x; then 13092 as_myself=$0 13093fi 13094if test ! -f "$as_myself"; then 13095 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13096 exit 1 13097fi 13098 13099 13100 13101# as_fn_error STATUS ERROR [LINENO LOG_FD] 13102# ---------------------------------------- 13103# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13104# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13105# script with STATUS, using 1 if that was 0. 13106as_fn_error () 13107{ 13108 as_status=$1; test $as_status -eq 0 && as_status=1 13109 if test "$4"; then 13110 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13112 fi 13113 printf "%s\n" "$as_me: error: $2" >&2 13114 as_fn_exit $as_status 13115} # as_fn_error 13116 13117 13118 13119# as_fn_set_status STATUS 13120# ----------------------- 13121# Set $? to STATUS, without forking. 13122as_fn_set_status () 13123{ 13124 return $1 13125} # as_fn_set_status 13126 13127# as_fn_exit STATUS 13128# ----------------- 13129# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13130as_fn_exit () 13131{ 13132 set +e 13133 as_fn_set_status $1 13134 exit $1 13135} # as_fn_exit 13136 13137# as_fn_unset VAR 13138# --------------- 13139# Portably unset VAR. 13140as_fn_unset () 13141{ 13142 { eval $1=; unset $1;} 13143} 13144as_unset=as_fn_unset 13145 13146# as_fn_append VAR VALUE 13147# ---------------------- 13148# Append the text in VALUE to the end of the definition contained in VAR. Take 13149# advantage of any shell optimizations that allow amortized linear growth over 13150# repeated appends, instead of the typical quadratic growth present in naive 13151# implementations. 13152if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 13153then : 13154 eval 'as_fn_append () 13155 { 13156 eval $1+=\$2 13157 }' 13158else $as_nop 13159 as_fn_append () 13160 { 13161 eval $1=\$$1\$2 13162 } 13163fi # as_fn_append 13164 13165# as_fn_arith ARG... 13166# ------------------ 13167# Perform arithmetic evaluation on the ARGs, and store the result in the 13168# global $as_val. Take advantage of shells that can avoid forks. The arguments 13169# must be portable across $(()) and expr. 13170if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 13171then : 13172 eval 'as_fn_arith () 13173 { 13174 as_val=$(( $* )) 13175 }' 13176else $as_nop 13177 as_fn_arith () 13178 { 13179 as_val=`expr "$@" || test $? -eq 1` 13180 } 13181fi # as_fn_arith 13182 13183 13184if expr a : '\(a\)' >/dev/null 2>&1 && 13185 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13186 as_expr=expr 13187else 13188 as_expr=false 13189fi 13190 13191if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13192 as_basename=basename 13193else 13194 as_basename=false 13195fi 13196 13197if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13198 as_dirname=dirname 13199else 13200 as_dirname=false 13201fi 13202 13203as_me=`$as_basename -- "$0" || 13204$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13205 X"$0" : 'X\(//\)$' \| \ 13206 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13207printf "%s\n" X/"$0" | 13208 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13209 s//\1/ 13210 q 13211 } 13212 /^X\/\(\/\/\)$/{ 13213 s//\1/ 13214 q 13215 } 13216 /^X\/\(\/\).*/{ 13217 s//\1/ 13218 q 13219 } 13220 s/.*/./; q'` 13221 13222# Avoid depending upon Character Ranges. 13223as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13224as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13225as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13226as_cr_digits='0123456789' 13227as_cr_alnum=$as_cr_Letters$as_cr_digits 13228 13229 13230# Determine whether it's possible to make 'echo' print without a newline. 13231# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 13232# for compatibility with existing Makefiles. 13233ECHO_C= ECHO_N= ECHO_T= 13234case `echo -n x` in #((((( 13235-n*) 13236 case `echo 'xy\c'` in 13237 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13238 xy) ECHO_C='\c';; 13239 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13240 ECHO_T=' ';; 13241 esac;; 13242*) 13243 ECHO_N='-n';; 13244esac 13245 13246# For backward compatibility with old third-party macros, we provide 13247# the shell variables $as_echo and $as_echo_n. New code should use 13248# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 13249as_echo='printf %s\n' 13250as_echo_n='printf %s' 13251 13252rm -f conf$$ conf$$.exe conf$$.file 13253if test -d conf$$.dir; then 13254 rm -f conf$$.dir/conf$$.file 13255else 13256 rm -f conf$$.dir 13257 mkdir conf$$.dir 2>/dev/null 13258fi 13259if (echo >conf$$.file) 2>/dev/null; then 13260 if ln -s conf$$.file conf$$ 2>/dev/null; then 13261 as_ln_s='ln -s' 13262 # ... but there are two gotchas: 13263 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13264 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13265 # In both cases, we have to default to `cp -pR'. 13266 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13267 as_ln_s='cp -pR' 13268 elif ln conf$$.file conf$$ 2>/dev/null; then 13269 as_ln_s=ln 13270 else 13271 as_ln_s='cp -pR' 13272 fi 13273else 13274 as_ln_s='cp -pR' 13275fi 13276rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13277rmdir conf$$.dir 2>/dev/null 13278 13279 13280# as_fn_mkdir_p 13281# ------------- 13282# Create "$as_dir" as a directory, including parents if necessary. 13283as_fn_mkdir_p () 13284{ 13285 13286 case $as_dir in #( 13287 -*) as_dir=./$as_dir;; 13288 esac 13289 test -d "$as_dir" || eval $as_mkdir_p || { 13290 as_dirs= 13291 while :; do 13292 case $as_dir in #( 13293 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13294 *) as_qdir=$as_dir;; 13295 esac 13296 as_dirs="'$as_qdir' $as_dirs" 13297 as_dir=`$as_dirname -- "$as_dir" || 13298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13299 X"$as_dir" : 'X\(//\)[^/]' \| \ 13300 X"$as_dir" : 'X\(//\)$' \| \ 13301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13302printf "%s\n" X"$as_dir" | 13303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13304 s//\1/ 13305 q 13306 } 13307 /^X\(\/\/\)[^/].*/{ 13308 s//\1/ 13309 q 13310 } 13311 /^X\(\/\/\)$/{ 13312 s//\1/ 13313 q 13314 } 13315 /^X\(\/\).*/{ 13316 s//\1/ 13317 q 13318 } 13319 s/.*/./; q'` 13320 test -d "$as_dir" && break 13321 done 13322 test -z "$as_dirs" || eval "mkdir $as_dirs" 13323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13324 13325 13326} # as_fn_mkdir_p 13327if mkdir -p . 2>/dev/null; then 13328 as_mkdir_p='mkdir -p "$as_dir"' 13329else 13330 test -d ./-p && rmdir ./-p 13331 as_mkdir_p=false 13332fi 13333 13334 13335# as_fn_executable_p FILE 13336# ----------------------- 13337# Test if FILE is an executable regular file. 13338as_fn_executable_p () 13339{ 13340 test -f "$1" && test -x "$1" 13341} # as_fn_executable_p 13342as_test_x='test -x' 13343as_executable_p=as_fn_executable_p 13344 13345# Sed expression to map a string onto a valid CPP name. 13346as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13347 13348# Sed expression to map a string onto a valid variable name. 13349as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13350 13351 13352exec 6>&1 13353## ----------------------------------- ## 13354## Main body of $CONFIG_STATUS script. ## 13355## ----------------------------------- ## 13356_ASEOF 13357test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13358 13359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13360# Save the log message, to keep $0 and so on meaningful, and to 13361# report actual input values of CONFIG_FILES etc. instead of their 13362# values after options handling. 13363ac_log=" 13364This file was extended by xfs $as_me 1.2.1, which was 13365generated by GNU Autoconf 2.71. Invocation command line was 13366 13367 CONFIG_FILES = $CONFIG_FILES 13368 CONFIG_HEADERS = $CONFIG_HEADERS 13369 CONFIG_LINKS = $CONFIG_LINKS 13370 CONFIG_COMMANDS = $CONFIG_COMMANDS 13371 $ $0 $@ 13372 13373on `(hostname || uname -n) 2>/dev/null | sed 1q` 13374" 13375 13376_ACEOF 13377 13378case $ac_config_files in *" 13379"*) set x $ac_config_files; shift; ac_config_files=$*;; 13380esac 13381 13382case $ac_config_headers in *" 13383"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13384esac 13385 13386 13387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13388# Files that config.status was made for. 13389config_files="$ac_config_files" 13390config_headers="$ac_config_headers" 13391config_commands="$ac_config_commands" 13392 13393_ACEOF 13394 13395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13396ac_cs_usage="\ 13397\`$as_me' instantiates files and other configuration actions 13398from templates according to the current configuration. Unless the files 13399and actions are specified as TAGs, all are instantiated by default. 13400 13401Usage: $0 [OPTION]... [TAG]... 13402 13403 -h, --help print this help, then exit 13404 -V, --version print version number and configuration settings, then exit 13405 --config print configuration, then exit 13406 -q, --quiet, --silent 13407 do not print progress messages 13408 -d, --debug don't remove temporary files 13409 --recheck update $as_me by reconfiguring in the same conditions 13410 --file=FILE[:TEMPLATE] 13411 instantiate the configuration file FILE 13412 --header=FILE[:TEMPLATE] 13413 instantiate the configuration header FILE 13414 13415Configuration files: 13416$config_files 13417 13418Configuration headers: 13419$config_headers 13420 13421Configuration commands: 13422$config_commands 13423 13424Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfs/issues>." 13425 13426_ACEOF 13427ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 13428ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 13429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13430ac_cs_config='$ac_cs_config_escaped' 13431ac_cs_version="\\ 13432xfs config.status 1.2.1 13433configured by $0, generated by GNU Autoconf 2.71, 13434 with options \\"\$ac_cs_config\\" 13435 13436Copyright (C) 2021 Free Software Foundation, Inc. 13437This config.status script is free software; the Free Software Foundation 13438gives unlimited permission to copy, distribute and modify it." 13439 13440ac_pwd='$ac_pwd' 13441srcdir='$srcdir' 13442INSTALL='$INSTALL' 13443MKDIR_P='$MKDIR_P' 13444AWK='$AWK' 13445test -n "\$AWK" || AWK=awk 13446_ACEOF 13447 13448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13449# The default lists apply if the user does not specify any file. 13450ac_need_defaults=: 13451while test $# != 0 13452do 13453 case $1 in 13454 --*=?*) 13455 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13456 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13457 ac_shift=: 13458 ;; 13459 --*=) 13460 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13461 ac_optarg= 13462 ac_shift=: 13463 ;; 13464 *) 13465 ac_option=$1 13466 ac_optarg=$2 13467 ac_shift=shift 13468 ;; 13469 esac 13470 13471 case $ac_option in 13472 # Handling of the options. 13473 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13474 ac_cs_recheck=: ;; 13475 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13476 printf "%s\n" "$ac_cs_version"; exit ;; 13477 --config | --confi | --conf | --con | --co | --c ) 13478 printf "%s\n" "$ac_cs_config"; exit ;; 13479 --debug | --debu | --deb | --de | --d | -d ) 13480 debug=: ;; 13481 --file | --fil | --fi | --f ) 13482 $ac_shift 13483 case $ac_optarg in 13484 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13485 '') as_fn_error $? "missing file argument" ;; 13486 esac 13487 as_fn_append CONFIG_FILES " '$ac_optarg'" 13488 ac_need_defaults=false;; 13489 --header | --heade | --head | --hea ) 13490 $ac_shift 13491 case $ac_optarg in 13492 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13493 esac 13494 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13495 ac_need_defaults=false;; 13496 --he | --h) 13497 # Conflict between --help and --header 13498 as_fn_error $? "ambiguous option: \`$1' 13499Try \`$0 --help' for more information.";; 13500 --help | --hel | -h ) 13501 printf "%s\n" "$ac_cs_usage"; exit ;; 13502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13503 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13504 ac_cs_silent=: ;; 13505 13506 # This is an error. 13507 -*) as_fn_error $? "unrecognized option: \`$1' 13508Try \`$0 --help' for more information." ;; 13509 13510 *) as_fn_append ac_config_targets " $1" 13511 ac_need_defaults=false ;; 13512 13513 esac 13514 shift 13515done 13516 13517ac_configure_extra_args= 13518 13519if $ac_cs_silent; then 13520 exec 6>/dev/null 13521 ac_configure_extra_args="$ac_configure_extra_args --silent" 13522fi 13523 13524_ACEOF 13525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13526if \$ac_cs_recheck; then 13527 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13528 shift 13529 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 13530 CONFIG_SHELL='$SHELL' 13531 export CONFIG_SHELL 13532 exec "\$@" 13533fi 13534 13535_ACEOF 13536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13537exec 5>>config.log 13538{ 13539 echo 13540 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13541## Running $as_me. ## 13542_ASBOX 13543 printf "%s\n" "$ac_log" 13544} >&5 13545 13546_ACEOF 13547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13548# 13549# INIT-COMMANDS 13550# 13551AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13552 13553_ACEOF 13554 13555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13556 13557# Handling of arguments. 13558for ac_config_target in $ac_config_targets 13559do 13560 case $ac_config_target in 13561 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13562 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13563 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13564 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 13565 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13566 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13567 13568 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13569 esac 13570done 13571 13572 13573# If the user did not use the arguments to specify the items to instantiate, 13574# then the envvar interface is used. Set only those that are not. 13575# We use the long form for the default assignment because of an extremely 13576# bizarre bug on SunOS 4.1.3. 13577if $ac_need_defaults; then 13578 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 13579 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 13580 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 13581fi 13582 13583# Have a temporary directory for convenience. Make it in the build tree 13584# simply because there is no reason against having it here, and in addition, 13585# creating and moving files from /tmp can sometimes cause problems. 13586# Hook for its removal unless debugging. 13587# Note that there is a small window in which the directory will not be cleaned: 13588# after its creation but before its name has been assigned to `$tmp'. 13589$debug || 13590{ 13591 tmp= ac_tmp= 13592 trap 'exit_status=$? 13593 : "${ac_tmp:=$tmp}" 13594 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13595' 0 13596 trap 'as_fn_exit 1' 1 2 13 15 13597} 13598# Create a (secure) tmp directory for tmp files. 13599 13600{ 13601 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13602 test -d "$tmp" 13603} || 13604{ 13605 tmp=./conf$$-$RANDOM 13606 (umask 077 && mkdir "$tmp") 13607} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13608ac_tmp=$tmp 13609 13610# Set up the scripts for CONFIG_FILES section. 13611# No need to generate them if there are no CONFIG_FILES. 13612# This happens for instance with `./config.status config.h'. 13613if test -n "$CONFIG_FILES"; then 13614 13615 13616ac_cr=`echo X | tr X '\015'` 13617# On cygwin, bash can eat \r inside `` if the user requested igncr. 13618# But we know of no other shell where ac_cr would be empty at this 13619# point, so we can use a bashism as a fallback. 13620if test "x$ac_cr" = x; then 13621 eval ac_cr=\$\'\\r\' 13622fi 13623ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13624if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13625 ac_cs_awk_cr='\\r' 13626else 13627 ac_cs_awk_cr=$ac_cr 13628fi 13629 13630echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13631_ACEOF 13632 13633 13634{ 13635 echo "cat >conf$$subs.awk <<_ACEOF" && 13636 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13637 echo "_ACEOF" 13638} >conf$$subs.sh || 13639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13640ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13641ac_delim='%!_!# ' 13642for ac_last_try in false false false false false :; do 13643 . ./conf$$subs.sh || 13644 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13645 13646 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13647 if test $ac_delim_n = $ac_delim_num; then 13648 break 13649 elif $ac_last_try; then 13650 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13651 else 13652 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13653 fi 13654done 13655rm -f conf$$subs.sh 13656 13657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13658cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13659_ACEOF 13660sed -n ' 13661h 13662s/^/S["/; s/!.*/"]=/ 13663p 13664g 13665s/^[^!]*!// 13666:repl 13667t repl 13668s/'"$ac_delim"'$// 13669t delim 13670:nl 13671h 13672s/\(.\{148\}\)..*/\1/ 13673t more1 13674s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13675p 13676n 13677b repl 13678:more1 13679s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13680p 13681g 13682s/.\{148\}// 13683t nl 13684:delim 13685h 13686s/\(.\{148\}\)..*/\1/ 13687t more2 13688s/["\\]/\\&/g; s/^/"/; s/$/"/ 13689p 13690b 13691:more2 13692s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13693p 13694g 13695s/.\{148\}// 13696t delim 13697' <conf$$subs.awk | sed ' 13698/^[^""]/{ 13699 N 13700 s/\n// 13701} 13702' >>$CONFIG_STATUS || ac_write_fail=1 13703rm -f conf$$subs.awk 13704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13705_ACAWK 13706cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13707 for (key in S) S_is_set[key] = 1 13708 FS = "" 13709 13710} 13711{ 13712 line = $ 0 13713 nfields = split(line, field, "@") 13714 substed = 0 13715 len = length(field[1]) 13716 for (i = 2; i < nfields; i++) { 13717 key = field[i] 13718 keylen = length(key) 13719 if (S_is_set[key]) { 13720 value = S[key] 13721 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13722 len += length(value) + length(field[++i]) 13723 substed = 1 13724 } else 13725 len += 1 + keylen 13726 } 13727 13728 print line 13729} 13730 13731_ACAWK 13732_ACEOF 13733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13734if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13735 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13736else 13737 cat 13738fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13739 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13740_ACEOF 13741 13742# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13743# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13744# trailing colons and then remove the whole line if VPATH becomes empty 13745# (actually we leave an empty line to preserve line numbers). 13746if test "x$srcdir" = x.; then 13747 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13748h 13749s/// 13750s/^/:/ 13751s/[ ]*$/:/ 13752s/:\$(srcdir):/:/g 13753s/:\${srcdir}:/:/g 13754s/:@srcdir@:/:/g 13755s/^:*// 13756s/:*$// 13757x 13758s/\(=[ ]*\).*/\1/ 13759G 13760s/\n// 13761s/^[^=]*=[ ]*$// 13762}' 13763fi 13764 13765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13766fi # test -n "$CONFIG_FILES" 13767 13768# Set up the scripts for CONFIG_HEADERS section. 13769# No need to generate them if there are no CONFIG_HEADERS. 13770# This happens for instance with `./config.status Makefile'. 13771if test -n "$CONFIG_HEADERS"; then 13772cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13773BEGIN { 13774_ACEOF 13775 13776# Transform confdefs.h into an awk script `defines.awk', embedded as 13777# here-document in config.status, that substitutes the proper values into 13778# config.h.in to produce config.h. 13779 13780# Create a delimiter string that does not exist in confdefs.h, to ease 13781# handling of long lines. 13782ac_delim='%!_!# ' 13783for ac_last_try in false false :; do 13784 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13785 if test -z "$ac_tt"; then 13786 break 13787 elif $ac_last_try; then 13788 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13789 else 13790 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13791 fi 13792done 13793 13794# For the awk script, D is an array of macro values keyed by name, 13795# likewise P contains macro parameters if any. Preserve backslash 13796# newline sequences. 13797 13798ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13799sed -n ' 13800s/.\{148\}/&'"$ac_delim"'/g 13801t rset 13802:rset 13803s/^[ ]*#[ ]*define[ ][ ]*/ / 13804t def 13805d 13806:def 13807s/\\$// 13808t bsnl 13809s/["\\]/\\&/g 13810s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13811D["\1"]=" \3"/p 13812s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13813d 13814:bsnl 13815s/["\\]/\\&/g 13816s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13817D["\1"]=" \3\\\\\\n"\\/p 13818t cont 13819s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13820t cont 13821d 13822:cont 13823n 13824s/.\{148\}/&'"$ac_delim"'/g 13825t clear 13826:clear 13827s/\\$// 13828t bsnlc 13829s/["\\]/\\&/g; s/^/"/; s/$/"/p 13830d 13831:bsnlc 13832s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13833b cont 13834' <confdefs.h | sed ' 13835s/'"$ac_delim"'/"\\\ 13836"/g' >>$CONFIG_STATUS || ac_write_fail=1 13837 13838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13839 for (key in D) D_is_set[key] = 1 13840 FS = "" 13841} 13842/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13843 line = \$ 0 13844 split(line, arg, " ") 13845 if (arg[1] == "#") { 13846 defundef = arg[2] 13847 mac1 = arg[3] 13848 } else { 13849 defundef = substr(arg[1], 2) 13850 mac1 = arg[2] 13851 } 13852 split(mac1, mac2, "(") #) 13853 macro = mac2[1] 13854 prefix = substr(line, 1, index(line, defundef) - 1) 13855 if (D_is_set[macro]) { 13856 # Preserve the white space surrounding the "#". 13857 print prefix "define", macro P[macro] D[macro] 13858 next 13859 } else { 13860 # Replace #undef with comments. This is necessary, for example, 13861 # in the case of _POSIX_SOURCE, which is predefined and required 13862 # on some systems where configure will not decide to define it. 13863 if (defundef == "undef") { 13864 print "/*", prefix defundef, macro, "*/" 13865 next 13866 } 13867 } 13868} 13869{ print } 13870_ACAWK 13871_ACEOF 13872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13873 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13874fi # test -n "$CONFIG_HEADERS" 13875 13876 13877eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13878shift 13879for ac_tag 13880do 13881 case $ac_tag in 13882 :[FHLC]) ac_mode=$ac_tag; continue;; 13883 esac 13884 case $ac_mode$ac_tag in 13885 :[FHL]*:*);; 13886 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13887 :[FH]-) ac_tag=-:-;; 13888 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13889 esac 13890 ac_save_IFS=$IFS 13891 IFS=: 13892 set x $ac_tag 13893 IFS=$ac_save_IFS 13894 shift 13895 ac_file=$1 13896 shift 13897 13898 case $ac_mode in 13899 :L) ac_source=$1;; 13900 :[FH]) 13901 ac_file_inputs= 13902 for ac_f 13903 do 13904 case $ac_f in 13905 -) ac_f="$ac_tmp/stdin";; 13906 *) # Look for the file first in the build tree, then in the source tree 13907 # (if the path is not absolute). The absolute path cannot be DOS-style, 13908 # because $ac_f cannot contain `:'. 13909 test -f "$ac_f" || 13910 case $ac_f in 13911 [\\/$]*) false;; 13912 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13913 esac || 13914 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13915 esac 13916 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13917 as_fn_append ac_file_inputs " '$ac_f'" 13918 done 13919 13920 # Let's still pretend it is `configure' which instantiates (i.e., don't 13921 # use $as_me), people would be surprised to read: 13922 # /* config.h. Generated by config.status. */ 13923 configure_input='Generated from '` 13924 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13925 `' by configure.' 13926 if test x"$ac_file" != x-; then 13927 configure_input="$ac_file. $configure_input" 13928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13929printf "%s\n" "$as_me: creating $ac_file" >&6;} 13930 fi 13931 # Neutralize special characters interpreted by sed in replacement strings. 13932 case $configure_input in #( 13933 *\&* | *\|* | *\\* ) 13934 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13935 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13936 *) ac_sed_conf_input=$configure_input;; 13937 esac 13938 13939 case $ac_tag in 13940 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13942 esac 13943 ;; 13944 esac 13945 13946 ac_dir=`$as_dirname -- "$ac_file" || 13947$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13948 X"$ac_file" : 'X\(//\)[^/]' \| \ 13949 X"$ac_file" : 'X\(//\)$' \| \ 13950 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13951printf "%s\n" X"$ac_file" | 13952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13953 s//\1/ 13954 q 13955 } 13956 /^X\(\/\/\)[^/].*/{ 13957 s//\1/ 13958 q 13959 } 13960 /^X\(\/\/\)$/{ 13961 s//\1/ 13962 q 13963 } 13964 /^X\(\/\).*/{ 13965 s//\1/ 13966 q 13967 } 13968 s/.*/./; q'` 13969 as_dir="$ac_dir"; as_fn_mkdir_p 13970 ac_builddir=. 13971 13972case "$ac_dir" in 13973.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13974*) 13975 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13976 # A ".." for each directory in $ac_dir_suffix. 13977 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13978 case $ac_top_builddir_sub in 13979 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13980 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13981 esac ;; 13982esac 13983ac_abs_top_builddir=$ac_pwd 13984ac_abs_builddir=$ac_pwd$ac_dir_suffix 13985# for backward compatibility: 13986ac_top_builddir=$ac_top_build_prefix 13987 13988case $srcdir in 13989 .) # We are building in place. 13990 ac_srcdir=. 13991 ac_top_srcdir=$ac_top_builddir_sub 13992 ac_abs_top_srcdir=$ac_pwd ;; 13993 [\\/]* | ?:[\\/]* ) # Absolute name. 13994 ac_srcdir=$srcdir$ac_dir_suffix; 13995 ac_top_srcdir=$srcdir 13996 ac_abs_top_srcdir=$srcdir ;; 13997 *) # Relative name. 13998 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13999 ac_top_srcdir=$ac_top_build_prefix$srcdir 14000 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14001esac 14002ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14003 14004 14005 case $ac_mode in 14006 :F) 14007 # 14008 # CONFIG_FILE 14009 # 14010 14011 case $INSTALL in 14012 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14013 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14014 esac 14015 ac_MKDIR_P=$MKDIR_P 14016 case $MKDIR_P in 14017 [\\/$]* | ?:[\\/]* ) ;; 14018 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14019 esac 14020_ACEOF 14021 14022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14023# If the template does not know about datarootdir, expand it. 14024# FIXME: This hack should be removed a few years after 2.60. 14025ac_datarootdir_hack=; ac_datarootdir_seen= 14026ac_sed_dataroot=' 14027/datarootdir/ { 14028 p 14029 q 14030} 14031/@datadir@/p 14032/@docdir@/p 14033/@infodir@/p 14034/@localedir@/p 14035/@mandir@/p' 14036case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14037*datarootdir*) ac_datarootdir_seen=yes;; 14038*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14040printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14041_ACEOF 14042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14043 ac_datarootdir_hack=' 14044 s&@datadir@&$datadir&g 14045 s&@docdir@&$docdir&g 14046 s&@infodir@&$infodir&g 14047 s&@localedir@&$localedir&g 14048 s&@mandir@&$mandir&g 14049 s&\\\${datarootdir}&$datarootdir&g' ;; 14050esac 14051_ACEOF 14052 14053# Neutralize VPATH when `$srcdir' = `.'. 14054# Shell code in configure.ac might set extrasub. 14055# FIXME: do we really want to maintain this feature? 14056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14057ac_sed_extra="$ac_vpsub 14058$extrasub 14059_ACEOF 14060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14061:t 14062/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14063s|@configure_input@|$ac_sed_conf_input|;t t 14064s&@top_builddir@&$ac_top_builddir_sub&;t t 14065s&@top_build_prefix@&$ac_top_build_prefix&;t t 14066s&@srcdir@&$ac_srcdir&;t t 14067s&@abs_srcdir@&$ac_abs_srcdir&;t t 14068s&@top_srcdir@&$ac_top_srcdir&;t t 14069s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14070s&@builddir@&$ac_builddir&;t t 14071s&@abs_builddir@&$ac_abs_builddir&;t t 14072s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14073s&@INSTALL@&$ac_INSTALL&;t t 14074s&@MKDIR_P@&$ac_MKDIR_P&;t t 14075$ac_datarootdir_hack 14076" 14077eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14078 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14079 14080test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14081 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14082 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14083 "$ac_tmp/out"`; test -z "$ac_out"; } && 14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14085which seems to be undefined. Please make sure it is defined" >&5 14086printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14087which seems to be undefined. Please make sure it is defined" >&2;} 14088 14089 rm -f "$ac_tmp/stdin" 14090 case $ac_file in 14091 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14092 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14093 esac \ 14094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14095 ;; 14096 :H) 14097 # 14098 # CONFIG_HEADER 14099 # 14100 if test x"$ac_file" != x-; then 14101 { 14102 printf "%s\n" "/* $configure_input */" >&1 \ 14103 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14104 } >"$ac_tmp/config.h" \ 14105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14106 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14108printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 14109 else 14110 rm -f "$ac_file" 14111 mv "$ac_tmp/config.h" "$ac_file" \ 14112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14113 fi 14114 else 14115 printf "%s\n" "/* $configure_input */" >&1 \ 14116 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14117 || as_fn_error $? "could not create -" "$LINENO" 5 14118 fi 14119# Compute "$ac_file"'s index in $config_headers. 14120_am_arg="$ac_file" 14121_am_stamp_count=1 14122for _am_header in $config_headers :; do 14123 case $_am_header in 14124 $_am_arg | $_am_arg:* ) 14125 break ;; 14126 * ) 14127 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14128 esac 14129done 14130echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14131$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14132 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14133 X"$_am_arg" : 'X\(//\)$' \| \ 14134 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14135printf "%s\n" X"$_am_arg" | 14136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14137 s//\1/ 14138 q 14139 } 14140 /^X\(\/\/\)[^/].*/{ 14141 s//\1/ 14142 q 14143 } 14144 /^X\(\/\/\)$/{ 14145 s//\1/ 14146 q 14147 } 14148 /^X\(\/\).*/{ 14149 s//\1/ 14150 q 14151 } 14152 s/.*/./; q'`/stamp-h$_am_stamp_count 14153 ;; 14154 14155 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14156printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 14157 ;; 14158 esac 14159 14160 14161 case $ac_file$ac_mode in 14162 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14163 # Older Autoconf quotes --file arguments for eval, but not when files 14164 # are listed without --file. Let's play safe and only enable the eval 14165 # if we detect the quoting. 14166 # TODO: see whether this extra hack can be removed once we start 14167 # requiring Autoconf 2.70 or later. 14168 case $CONFIG_FILES in #( 14169 *\'*) : 14170 eval set x "$CONFIG_FILES" ;; #( 14171 *) : 14172 set x $CONFIG_FILES ;; #( 14173 *) : 14174 ;; 14175esac 14176 shift 14177 # Used to flag and report bootstrapping failures. 14178 am_rc=0 14179 for am_mf 14180 do 14181 # Strip MF so we end up with the name of the file. 14182 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 14183 # Check whether this is an Automake generated Makefile which includes 14184 # dependency-tracking related rules and includes. 14185 # Grep'ing the whole file directly is not great: AIX grep has a line 14186 # limit of 2048, but all sed's we know have understand at least 4000. 14187 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14188 || continue 14189 am_dirpart=`$as_dirname -- "$am_mf" || 14190$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14191 X"$am_mf" : 'X\(//\)[^/]' \| \ 14192 X"$am_mf" : 'X\(//\)$' \| \ 14193 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14194printf "%s\n" X"$am_mf" | 14195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14196 s//\1/ 14197 q 14198 } 14199 /^X\(\/\/\)[^/].*/{ 14200 s//\1/ 14201 q 14202 } 14203 /^X\(\/\/\)$/{ 14204 s//\1/ 14205 q 14206 } 14207 /^X\(\/\).*/{ 14208 s//\1/ 14209 q 14210 } 14211 s/.*/./; q'` 14212 am_filepart=`$as_basename -- "$am_mf" || 14213$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14214 X"$am_mf" : 'X\(//\)$' \| \ 14215 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14216printf "%s\n" X/"$am_mf" | 14217 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14218 s//\1/ 14219 q 14220 } 14221 /^X\/\(\/\/\)$/{ 14222 s//\1/ 14223 q 14224 } 14225 /^X\/\(\/\).*/{ 14226 s//\1/ 14227 q 14228 } 14229 s/.*/./; q'` 14230 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14231 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14232 | $MAKE -f - am--depfiles" >&5 14233 (cd "$am_dirpart" \ 14234 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14235 | $MAKE -f - am--depfiles) >&5 2>&5 14236 ac_status=$? 14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14238 (exit $ac_status); } || am_rc=$? 14239 done 14240 if test $am_rc -ne 0; then 14241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14242printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 14243as_fn_error $? "Something went wrong bootstrapping makefile fragments 14244 for automatic dependency tracking. If GNU make was not used, consider 14245 re-running the configure script with MAKE=\"gmake\" (or whatever is 14246 necessary). You can also try re-running configure with the 14247 '--disable-dependency-tracking' option to at least be able to build 14248 the package (albeit without support for automatic dependency tracking). 14249See \`config.log' for more details" "$LINENO" 5; } 14250 fi 14251 { am_dirpart=; unset am_dirpart;} 14252 { am_filepart=; unset am_filepart;} 14253 { am_mf=; unset am_mf;} 14254 { am_rc=; unset am_rc;} 14255 rm -f conftest-deps.mk 14256} 14257 ;; 14258 14259 esac 14260done # for ac_tag 14261 14262 14263as_fn_exit 0 14264_ACEOF 14265ac_clean_files=$ac_clean_files_save 14266 14267test $ac_write_fail = 0 || 14268 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14269 14270 14271# configure is writing to config.log, and then calls config.status. 14272# config.status does its own redirection, appending to config.log. 14273# Unfortunately, on DOS this fails, as config.log is still kept open 14274# by configure, so config.status won't be able to write to it; its 14275# output is simply discarded. So we exec the FD to /dev/null, 14276# effectively closing config.log, so it can be properly (re)opened and 14277# appended to by config.status. When coming back to configure, we 14278# need to make the FD available again. 14279if test "$no_create" != yes; then 14280 ac_cs_success=: 14281 ac_config_status_args= 14282 test "$silent" = yes && 14283 ac_config_status_args="$ac_config_status_args --quiet" 14284 exec 5>/dev/null 14285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14286 exec 5>>config.log 14287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14288 # would make configure fail if this is the last instruction. 14289 $ac_cs_success || as_fn_exit 1 14290fi 14291if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14293printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14294fi 14295 14296 14297