1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for xsetroot 1.1.3. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xsetroot/-/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 19 DUALCASE=1; export DUALCASE # for MKS sh 20 as_nop=: 21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 then : 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 29 else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 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. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export 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). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${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 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 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 102 IFS=$as_save_IFS 103 104 ;; 105 esac 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. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if 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 114 fi 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. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $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'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 then : 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 152 else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177 fi 178 test x\$exitcode = x0 || exit 1 179 blah=\$(echo \$(echo blah)) 180 test x\"\$blah\" = xblah || exit 1 181 test -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 186 test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188 then : 189 as_have_required=yes 190 else $as_nop 191 as_have_required=no 192 fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194 then : 195 196 else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198 as_found=false 199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200 do 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 215 then : 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 218 then : 219 break 2 220 fi 221 fi 222 done;; 223 esac 224 as_found=false 225 done 226 IFS=$as_save_IFS 227 if $as_found 228 then : 229 230 else $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 233 then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235 fi 236 fi 237 238 239 if test "x$CONFIG_SHELL" != x 240 then : 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. 246 BASH_ENV=/dev/null 247 ENV=/dev/null 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249 case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254 esac 255 exec $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'. 258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259 exit 255 260 fi 261 262 if test x$as_have_required = xno 263 then : 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 (at] gnu.org and 271 $0: https://gitlab.freedesktop.org/xorg/app/xsetroot/-/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 278 fi 279 fi 280 fi 281 SHELL=${CONFIG_SHELL-/bin/sh} 282 export SHELL 283 # Unset more variables known to interfere with behavior of common tools. 284 CLICOLOR_FORCE= GREP_OPTIONS= 285 unset CLICOLOR_FORCE GREP_OPTIONS 286 287 ## --------------------- ## 288 ## M4sh Shell Functions. ## 289 ## --------------------- ## 290 # as_fn_unset VAR 291 # --------------- 292 # Portably unset VAR. 293 as_fn_unset () 294 { 295 { eval $1=; unset $1;} 296 } 297 as_unset=as_fn_unset 298 299 300 # as_fn_set_status STATUS 301 # ----------------------- 302 # Set $? to STATUS, without forking. 303 as_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. 311 as_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 $?. 320 as_fn_nop () 321 { 322 return $? 323 } 324 as_nop=as_fn_nop 325 326 # as_fn_mkdir_p 327 # ------------- 328 # Create "$as_dir" as a directory, including parents if necessary. 329 as_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 || 348 printf "%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. 377 as_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. 387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388 then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393 else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398 fi # 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. 405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406 then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411 else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416 fi # as_fn_arith 417 418 # as_fn_nop 419 # --------- 420 # Do nothing but, unlike ":", preserve the value of $?. 421 as_fn_nop () 422 { 423 return $? 424 } 425 as_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. 432 as_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 443 if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446 else 447 as_expr=false 448 fi 449 450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452 else 453 as_basename=false 454 fi 455 456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458 else 459 as_dirname=false 460 fi 461 462 as_me=`$as_basename -- "$0" || 463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466 printf "%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. 482 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485 as_cr_digits='0123456789' 486 as_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. 528 ECHO_C= ECHO_N= ECHO_T= 529 case `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';; 539 esac 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. 544 as_echo='printf %s\n' 545 as_echo_n='printf %s' 546 547 548 rm -f conf$$ conf$$.exe conf$$.file 549 if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551 else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554 fi 555 if (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 569 else 570 as_ln_s='cp -pR' 571 fi 572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573 rmdir conf$$.dir 2>/dev/null 574 575 if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577 else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580 fi 581 582 as_test_x='test -x' 583 as_executable_p=as_fn_executable_p 584 585 # Sed expression to map a string onto a valid CPP name. 586 as_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. 589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591 592 test -n "$DJDIR" || exec 7<&0 </dev/null 593 exec 6>&1 594 595 # Name of the host. 596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597 # so uname gets run too. 598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599 600 # 601 # Initializations. 602 # 603 ac_default_prefix=/usr/local 604 ac_clean_files= 605 ac_config_libobj_dir=. 606 LIBOBJS= 607 cross_compiling=no 608 subdirs= 609 MFLAGS= 610 MAKEFLAGS= 611 612 # Identity of this package. 613 PACKAGE_NAME='xsetroot' 614 PACKAGE_TARNAME='xsetroot' 615 PACKAGE_VERSION='1.1.3' 616 PACKAGE_STRING='xsetroot 1.1.3' 617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xsetroot/-/issues' 618 PACKAGE_URL='' 619 620 ac_unique_file="Makefile.am" 621 # Factoring default headers for most tests. 622 ac_includes_default="\ 623 #include <stddef.h> 624 #ifdef HAVE_STDIO_H 625 # include <stdio.h> 626 #endif 627 #ifdef HAVE_STDLIB_H 628 # include <stdlib.h> 629 #endif 630 #ifdef HAVE_STRING_H 631 # include <string.h> 632 #endif 633 #ifdef HAVE_INTTYPES_H 634 # include <inttypes.h> 635 #endif 636 #ifdef HAVE_STDINT_H 637 # include <stdint.h> 638 #endif 639 #ifdef HAVE_STRINGS_H 640 # include <strings.h> 641 #endif 642 #ifdef HAVE_SYS_TYPES_H 643 # include <sys/types.h> 644 #endif 645 #ifdef HAVE_SYS_STAT_H 646 # include <sys/stat.h> 647 #endif 648 #ifdef HAVE_UNISTD_H 649 # include <unistd.h> 650 #endif" 651 652 ac_header_c_list= 653 ac_subst_vars='am__EXEEXT_FALSE 654 am__EXEEXT_TRUE 655 LTLIBOBJS 656 LIBOBJS 657 LINT_FALSE 658 LINT_TRUE 659 LINT_FLAGS 660 LINT 661 XSETROOT_LIBS 662 XSETROOT_CFLAGS 663 MAN_SUBSTS 664 XORG_MAN_PAGE 665 ADMIN_MAN_DIR 666 DRIVER_MAN_DIR 667 MISC_MAN_DIR 668 FILE_MAN_DIR 669 LIB_MAN_DIR 670 APP_MAN_DIR 671 ADMIN_MAN_SUFFIX 672 DRIVER_MAN_SUFFIX 673 MISC_MAN_SUFFIX 674 FILE_MAN_SUFFIX 675 LIB_MAN_SUFFIX 676 APP_MAN_SUFFIX 677 SED 678 host_os 679 host_vendor 680 host_cpu 681 host 682 build_os 683 build_vendor 684 build_cpu 685 build 686 INSTALL_CMD 687 PKG_CONFIG_LIBDIR 688 PKG_CONFIG_PATH 689 PKG_CONFIG 690 CHANGELOG_CMD 691 STRICT_CFLAGS 692 CWARNFLAGS 693 BASE_CFLAGS 694 am__fastdepCC_FALSE 695 am__fastdepCC_TRUE 696 CCDEPMODE 697 am__nodep 698 AMDEPBACKSLASH 699 AMDEP_FALSE 700 AMDEP_TRUE 701 am__include 702 DEPDIR 703 OBJEXT 704 EXEEXT 705 ac_ct_CC 706 CPPFLAGS 707 LDFLAGS 708 CFLAGS 709 CC 710 AM_BACKSLASH 711 AM_DEFAULT_VERBOSITY 712 AM_DEFAULT_V 713 AM_V 714 CSCOPE 715 ETAGS 716 CTAGS 717 am__untar 718 am__tar 719 AMTAR 720 am__leading_dot 721 SET_MAKE 722 AWK 723 mkdir_p 724 MKDIR_P 725 INSTALL_STRIP_PROGRAM 726 STRIP 727 install_sh 728 MAKEINFO 729 AUTOHEADER 730 AUTOMAKE 731 AUTOCONF 732 ACLOCAL 733 VERSION 734 PACKAGE 735 CYGPATH_W 736 am__isrc 737 INSTALL_DATA 738 INSTALL_SCRIPT 739 INSTALL_PROGRAM 740 target_alias 741 host_alias 742 build_alias 743 LIBS 744 ECHO_T 745 ECHO_N 746 ECHO_C 747 DEFS 748 mandir 749 localedir 750 libdir 751 psdir 752 pdfdir 753 dvidir 754 htmldir 755 infodir 756 docdir 757 oldincludedir 758 includedir 759 runstatedir 760 localstatedir 761 sharedstatedir 762 sysconfdir 763 datadir 764 datarootdir 765 libexecdir 766 sbindir 767 bindir 768 program_transform_name 769 prefix 770 exec_prefix 771 PACKAGE_URL 772 PACKAGE_BUGREPORT 773 PACKAGE_STRING 774 PACKAGE_VERSION 775 PACKAGE_TARNAME 776 PACKAGE_NAME 777 PATH_SEPARATOR 778 SHELL 779 am__quote' 780 ac_subst_files='' 781 ac_user_opts=' 782 enable_option_checking 783 enable_silent_rules 784 enable_dependency_tracking 785 enable_selective_werror 786 enable_strict_compilation 787 with_lint 788 ' 789 ac_precious_vars='build_alias 790 host_alias 791 target_alias 792 CC 793 CFLAGS 794 LDFLAGS 795 LIBS 796 CPPFLAGS 797 PKG_CONFIG 798 PKG_CONFIG_PATH 799 PKG_CONFIG_LIBDIR 800 XSETROOT_CFLAGS 801 XSETROOT_LIBS 802 LINT 803 LINT_FLAGS' 804 805 806 # Initialize some variables set by options. 807 ac_init_help= 808 ac_init_version=false 809 ac_unrecognized_opts= 810 ac_unrecognized_sep= 811 # The variables have the same names as the options, with 812 # dashes changed to underlines. 813 cache_file=/dev/null 814 exec_prefix=NONE 815 no_create= 816 no_recursion= 817 prefix=NONE 818 program_prefix=NONE 819 program_suffix=NONE 820 program_transform_name=s,x,x, 821 silent= 822 site= 823 srcdir= 824 verbose= 825 x_includes=NONE 826 x_libraries=NONE 827 828 # Installation directory options. 829 # These are left unexpanded so users can "make install exec_prefix=/foo" 830 # and all the variables that are supposed to be based on exec_prefix 831 # by default will actually change. 832 # Use braces instead of parens because sh, perl, etc. also accept them. 833 # (The list follows the same order as the GNU Coding Standards.) 834 bindir='${exec_prefix}/bin' 835 sbindir='${exec_prefix}/sbin' 836 libexecdir='${exec_prefix}/libexec' 837 datarootdir='${prefix}/share' 838 datadir='${datarootdir}' 839 sysconfdir='${prefix}/etc' 840 sharedstatedir='${prefix}/com' 841 localstatedir='${prefix}/var' 842 runstatedir='${localstatedir}/run' 843 includedir='${prefix}/include' 844 oldincludedir='/usr/include' 845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 846 infodir='${datarootdir}/info' 847 htmldir='${docdir}' 848 dvidir='${docdir}' 849 pdfdir='${docdir}' 850 psdir='${docdir}' 851 libdir='${exec_prefix}/lib' 852 localedir='${datarootdir}/locale' 853 mandir='${datarootdir}/man' 854 855 ac_prev= 856 ac_dashdash= 857 for ac_option 858 do 859 # If the previous option needs an argument, assign it. 860 if test -n "$ac_prev"; then 861 eval $ac_prev=\$ac_option 862 ac_prev= 863 continue 864 fi 865 866 case $ac_option in 867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 868 *=) ac_optarg= ;; 869 *) ac_optarg=yes ;; 870 esac 871 872 case $ac_dashdash$ac_option in 873 --) 874 ac_dashdash=yes ;; 875 876 -bindir | --bindir | --bindi | --bind | --bin | --bi) 877 ac_prev=bindir ;; 878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 879 bindir=$ac_optarg ;; 880 881 -build | --build | --buil | --bui | --bu) 882 ac_prev=build_alias ;; 883 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 884 build_alias=$ac_optarg ;; 885 886 -cache-file | --cache-file | --cache-fil | --cache-fi \ 887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 888 ac_prev=cache_file ;; 889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 891 cache_file=$ac_optarg ;; 892 893 --config-cache | -C) 894 cache_file=config.cache ;; 895 896 -datadir | --datadir | --datadi | --datad) 897 ac_prev=datadir ;; 898 -datadir=* | --datadir=* | --datadi=* | --datad=*) 899 datadir=$ac_optarg ;; 900 901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 902 | --dataroo | --dataro | --datar) 903 ac_prev=datarootdir ;; 904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 906 datarootdir=$ac_optarg ;; 907 908 -disable-* | --disable-*) 909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 910 # Reject names that are not valid shell variable names. 911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 912 as_fn_error $? "invalid feature name: \`$ac_useropt'" 913 ac_useropt_orig=$ac_useropt 914 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 915 case $ac_user_opts in 916 *" 917 "enable_$ac_useropt" 918 "*) ;; 919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 920 ac_unrecognized_sep=', ';; 921 esac 922 eval enable_$ac_useropt=no ;; 923 924 -docdir | --docdir | --docdi | --doc | --do) 925 ac_prev=docdir ;; 926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 927 docdir=$ac_optarg ;; 928 929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 930 ac_prev=dvidir ;; 931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 932 dvidir=$ac_optarg ;; 933 934 -enable-* | --enable-*) 935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 936 # Reject names that are not valid shell variable names. 937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 938 as_fn_error $? "invalid feature name: \`$ac_useropt'" 939 ac_useropt_orig=$ac_useropt 940 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 941 case $ac_user_opts in 942 *" 943 "enable_$ac_useropt" 944 "*) ;; 945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 946 ac_unrecognized_sep=', ';; 947 esac 948 eval enable_$ac_useropt=\$ac_optarg ;; 949 950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 952 | --exec | --exe | --ex) 953 ac_prev=exec_prefix ;; 954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 956 | --exec=* | --exe=* | --ex=*) 957 exec_prefix=$ac_optarg ;; 958 959 -gas | --gas | --ga | --g) 960 # Obsolete; use --with-gas. 961 with_gas=yes ;; 962 963 -help | --help | --hel | --he | -h) 964 ac_init_help=long ;; 965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 966 ac_init_help=recursive ;; 967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 968 ac_init_help=short ;; 969 970 -host | --host | --hos | --ho) 971 ac_prev=host_alias ;; 972 -host=* | --host=* | --hos=* | --ho=*) 973 host_alias=$ac_optarg ;; 974 975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 976 ac_prev=htmldir ;; 977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 978 | --ht=*) 979 htmldir=$ac_optarg ;; 980 981 -includedir | --includedir | --includedi | --included | --include \ 982 | --includ | --inclu | --incl | --inc) 983 ac_prev=includedir ;; 984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 985 | --includ=* | --inclu=* | --incl=* | --inc=*) 986 includedir=$ac_optarg ;; 987 988 -infodir | --infodir | --infodi | --infod | --info | --inf) 989 ac_prev=infodir ;; 990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 991 infodir=$ac_optarg ;; 992 993 -libdir | --libdir | --libdi | --libd) 994 ac_prev=libdir ;; 995 -libdir=* | --libdir=* | --libdi=* | --libd=*) 996 libdir=$ac_optarg ;; 997 998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 999 | --libexe | --libex | --libe) 1000 ac_prev=libexecdir ;; 1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1002 | --libexe=* | --libex=* | --libe=*) 1003 libexecdir=$ac_optarg ;; 1004 1005 -localedir | --localedir | --localedi | --localed | --locale) 1006 ac_prev=localedir ;; 1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1008 localedir=$ac_optarg ;; 1009 1010 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1011 | --localstate | --localstat | --localsta | --localst | --locals) 1012 ac_prev=localstatedir ;; 1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1015 localstatedir=$ac_optarg ;; 1016 1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1018 ac_prev=mandir ;; 1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1020 mandir=$ac_optarg ;; 1021 1022 -nfp | --nfp | --nf) 1023 # Obsolete; use --without-fp. 1024 with_fp=no ;; 1025 1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1027 | --no-cr | --no-c | -n) 1028 no_create=yes ;; 1029 1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1032 no_recursion=yes ;; 1033 1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1036 | --oldin | --oldi | --old | --ol | --o) 1037 ac_prev=oldincludedir ;; 1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1041 oldincludedir=$ac_optarg ;; 1042 1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1044 ac_prev=prefix ;; 1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1046 prefix=$ac_optarg ;; 1047 1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1049 | --program-pre | --program-pr | --program-p) 1050 ac_prev=program_prefix ;; 1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1053 program_prefix=$ac_optarg ;; 1054 1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1056 | --program-suf | --program-su | --program-s) 1057 ac_prev=program_suffix ;; 1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1060 program_suffix=$ac_optarg ;; 1061 1062 -program-transform-name | --program-transform-name \ 1063 | --program-transform-nam | --program-transform-na \ 1064 | --program-transform-n | --program-transform- \ 1065 | --program-transform | --program-transfor \ 1066 | --program-transfo | --program-transf \ 1067 | --program-trans | --program-tran \ 1068 | --progr-tra | --program-tr | --program-t) 1069 ac_prev=program_transform_name ;; 1070 -program-transform-name=* | --program-transform-name=* \ 1071 | --program-transform-nam=* | --program-transform-na=* \ 1072 | --program-transform-n=* | --program-transform-=* \ 1073 | --program-transform=* | --program-transfor=* \ 1074 | --program-transfo=* | --program-transf=* \ 1075 | --program-trans=* | --program-tran=* \ 1076 | --progr-tra=* | --program-tr=* | --program-t=*) 1077 program_transform_name=$ac_optarg ;; 1078 1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1080 ac_prev=pdfdir ;; 1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1082 pdfdir=$ac_optarg ;; 1083 1084 -psdir | --psdir | --psdi | --psd | --ps) 1085 ac_prev=psdir ;; 1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1087 psdir=$ac_optarg ;; 1088 1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1090 | -silent | --silent | --silen | --sile | --sil) 1091 silent=yes ;; 1092 1093 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1094 | --runstate | --runstat | --runsta | --runst | --runs \ 1095 | --run | --ru | --r) 1096 ac_prev=runstatedir ;; 1097 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1098 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1099 | --run=* | --ru=* | --r=*) 1100 runstatedir=$ac_optarg ;; 1101 1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1103 ac_prev=sbindir ;; 1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1105 | --sbi=* | --sb=*) 1106 sbindir=$ac_optarg ;; 1107 1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1110 | --sharedst | --shareds | --shared | --share | --shar \ 1111 | --sha | --sh) 1112 ac_prev=sharedstatedir ;; 1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1116 | --sha=* | --sh=*) 1117 sharedstatedir=$ac_optarg ;; 1118 1119 -site | --site | --sit) 1120 ac_prev=site ;; 1121 -site=* | --site=* | --sit=*) 1122 site=$ac_optarg ;; 1123 1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1125 ac_prev=srcdir ;; 1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1127 srcdir=$ac_optarg ;; 1128 1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1130 | --syscon | --sysco | --sysc | --sys | --sy) 1131 ac_prev=sysconfdir ;; 1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1134 sysconfdir=$ac_optarg ;; 1135 1136 -target | --target | --targe | --targ | --tar | --ta | --t) 1137 ac_prev=target_alias ;; 1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1139 target_alias=$ac_optarg ;; 1140 1141 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1142 verbose=yes ;; 1143 1144 -version | --version | --versio | --versi | --vers | -V) 1145 ac_init_version=: ;; 1146 1147 -with-* | --with-*) 1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1149 # Reject names that are not valid shell variable names. 1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1151 as_fn_error $? "invalid package name: \`$ac_useropt'" 1152 ac_useropt_orig=$ac_useropt 1153 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1154 case $ac_user_opts in 1155 *" 1156 "with_$ac_useropt" 1157 "*) ;; 1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1159 ac_unrecognized_sep=', ';; 1160 esac 1161 eval with_$ac_useropt=\$ac_optarg ;; 1162 1163 -without-* | --without-*) 1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1165 # Reject names that are not valid shell variable names. 1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1167 as_fn_error $? "invalid package name: \`$ac_useropt'" 1168 ac_useropt_orig=$ac_useropt 1169 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1170 case $ac_user_opts in 1171 *" 1172 "with_$ac_useropt" 1173 "*) ;; 1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1175 ac_unrecognized_sep=', ';; 1176 esac 1177 eval with_$ac_useropt=no ;; 1178 1179 --x) 1180 # Obsolete; use --with-x. 1181 with_x=yes ;; 1182 1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1184 | --x-incl | --x-inc | --x-in | --x-i) 1185 ac_prev=x_includes ;; 1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1188 x_includes=$ac_optarg ;; 1189 1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1192 ac_prev=x_libraries ;; 1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1195 x_libraries=$ac_optarg ;; 1196 1197 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1198 Try \`$0 --help' for more information" 1199 ;; 1200 1201 *=*) 1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1203 # Reject names that are not valid shell variable names. 1204 case $ac_envvar in #( 1205 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1207 esac 1208 eval $ac_envvar=\$ac_optarg 1209 export $ac_envvar ;; 1210 1211 *) 1212 # FIXME: should be removed in autoconf 3.0. 1213 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1215 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1217 ;; 1218 1219 esac 1220 done 1221 1222 if test -n "$ac_prev"; then 1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1224 as_fn_error $? "missing argument to $ac_option" 1225 fi 1226 1227 if test -n "$ac_unrecognized_opts"; then 1228 case $enable_option_checking in 1229 no) ;; 1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1231 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1232 esac 1233 fi 1234 1235 # Check all directory arguments for consistency. 1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1237 datadir sysconfdir sharedstatedir localstatedir includedir \ 1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1239 libdir localedir mandir runstatedir 1240 do 1241 eval ac_val=\$$ac_var 1242 # Remove trailing slashes. 1243 case $ac_val in 1244 */ ) 1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1246 eval $ac_var=\$ac_val;; 1247 esac 1248 # Be sure to have absolute directory names. 1249 case $ac_val in 1250 [\\/$]* | ?:[\\/]* ) continue;; 1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1252 esac 1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1254 done 1255 1256 # There might be people who depend on the old broken behavior: `$host' 1257 # used to hold the argument of --host etc. 1258 # FIXME: To remove some day. 1259 build=$build_alias 1260 host=$host_alias 1261 target=$target_alias 1262 1263 # FIXME: To remove some day. 1264 if test "x$host_alias" != x; then 1265 if test "x$build_alias" = x; then 1266 cross_compiling=maybe 1267 elif test "x$build_alias" != "x$host_alias"; then 1268 cross_compiling=yes 1269 fi 1270 fi 1271 1272 ac_tool_prefix= 1273 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1274 1275 test "$silent" = yes && exec 6>/dev/null 1276 1277 1278 ac_pwd=`pwd` && test -n "$ac_pwd" && 1279 ac_ls_di=`ls -di .` && 1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1281 as_fn_error $? "working directory cannot be determined" 1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1283 as_fn_error $? "pwd does not report name of working directory" 1284 1285 1286 # Find the source files, if location was not specified. 1287 if test -z "$srcdir"; then 1288 ac_srcdir_defaulted=yes 1289 # Try the directory containing this script, then the parent directory. 1290 ac_confdir=`$as_dirname -- "$as_myself" || 1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1292 X"$as_myself" : 'X\(//\)[^/]' \| \ 1293 X"$as_myself" : 'X\(//\)$' \| \ 1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1295 printf "%s\n" X"$as_myself" | 1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)[^/].*/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\/\)$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\).*/{ 1309 s//\1/ 1310 q 1311 } 1312 s/.*/./; q'` 1313 srcdir=$ac_confdir 1314 if test ! -r "$srcdir/$ac_unique_file"; then 1315 srcdir=.. 1316 fi 1317 else 1318 ac_srcdir_defaulted=no 1319 fi 1320 if test ! -r "$srcdir/$ac_unique_file"; then 1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1323 fi 1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1325 ac_abs_confdir=`( 1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1327 pwd)` 1328 # When building in place, set srcdir=. 1329 if test "$ac_abs_confdir" = "$ac_pwd"; then 1330 srcdir=. 1331 fi 1332 # Remove unnecessary trailing slashes from srcdir. 1333 # Double slashes in file names in object file debugging info 1334 # mess up M-x gdb in Emacs. 1335 case $srcdir in 1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1337 esac 1338 for ac_var in $ac_precious_vars; do 1339 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_env_${ac_var}_value=\$${ac_var} 1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1343 done 1344 1345 # 1346 # Report the --help message. 1347 # 1348 if test "$ac_init_help" = "long"; then 1349 # Omit some internal or obsolete options to make the list less imposing. 1350 # This message is too long to be a string in the A/UX 3.1 sh. 1351 cat <<_ACEOF 1352 \`configure' configures xsetroot 1.1.3 to adapt to many kinds of systems. 1353 1354 Usage: $0 [OPTION]... [VAR=VALUE]... 1355 1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1357 VAR=VALUE. See below for descriptions of some of the useful variables. 1358 1359 Defaults for the options are specified in brackets. 1360 1361 Configuration: 1362 -h, --help display this help and exit 1363 --help=short display options specific to this package 1364 --help=recursive display the short help of all the included packages 1365 -V, --version display version information and exit 1366 -q, --quiet, --silent do not print \`checking ...' messages 1367 --cache-file=FILE cache test results in FILE [disabled] 1368 -C, --config-cache alias for \`--cache-file=config.cache' 1369 -n, --no-create do not create output files 1370 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1371 1372 Installation directories: 1373 --prefix=PREFIX install architecture-independent files in PREFIX 1374 [$ac_default_prefix] 1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1376 [PREFIX] 1377 1378 By default, \`make install' will install all the files in 1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1381 for instance \`--prefix=\$HOME'. 1382 1383 For better control, use the options below. 1384 1385 Fine tuning of the installation directories: 1386 --bindir=DIR user executables [EPREFIX/bin] 1387 --sbindir=DIR system admin executables [EPREFIX/sbin] 1388 --libexecdir=DIR program executables [EPREFIX/libexec] 1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1392 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1393 --libdir=DIR object code libraries [EPREFIX/lib] 1394 --includedir=DIR C header files [PREFIX/include] 1395 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1398 --infodir=DIR info documentation [DATAROOTDIR/info] 1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1400 --mandir=DIR man documentation [DATAROOTDIR/man] 1401 --docdir=DIR documentation root [DATAROOTDIR/doc/xsetroot] 1402 --htmldir=DIR html documentation [DOCDIR] 1403 --dvidir=DIR dvi documentation [DOCDIR] 1404 --pdfdir=DIR pdf documentation [DOCDIR] 1405 --psdir=DIR ps documentation [DOCDIR] 1406 _ACEOF 1407 1408 cat <<\_ACEOF 1409 1410 Program names: 1411 --program-prefix=PREFIX prepend PREFIX to installed program names 1412 --program-suffix=SUFFIX append SUFFIX to installed program names 1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1414 1415 System types: 1416 --build=BUILD configure for building on BUILD [guessed] 1417 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1418 _ACEOF 1419 fi 1420 1421 if test -n "$ac_init_help"; then 1422 case $ac_init_help in 1423 short | recursive ) echo "Configuration of xsetroot 1.1.3:";; 1424 esac 1425 cat <<\_ACEOF 1426 1427 Optional Features: 1428 --disable-option-checking ignore unrecognized --enable/--with options 1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1431 --enable-silent-rules less verbose build output (undo: "make V=1") 1432 --disable-silent-rules verbose build output (undo: "make V=0") 1433 --enable-dependency-tracking 1434 do not reject slow dependency extractors 1435 --disable-dependency-tracking 1436 speeds up one-time build 1437 --disable-selective-werror 1438 Turn off selective compiler errors. (default: 1439 enabled) 1440 --enable-strict-compilation 1441 Enable all warnings from compiler and make them 1442 errors (default: disabled) 1443 1444 Optional Packages: 1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1447 --with-lint Use a lint-style source code checker (default: 1448 disabled) 1449 1450 Some influential environment variables: 1451 CC C compiler command 1452 CFLAGS C compiler flags 1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1454 nonstandard directory <lib dir> 1455 LIBS libraries to pass to the linker, e.g. -l<library> 1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1457 you have headers in a nonstandard directory <include dir> 1458 PKG_CONFIG path to pkg-config utility 1459 PKG_CONFIG_PATH 1460 directories to add to pkg-config's search path 1461 PKG_CONFIG_LIBDIR 1462 path overriding pkg-config's built-in search path 1463 XSETROOT_CFLAGS 1464 C compiler flags for XSETROOT, overriding pkg-config 1465 XSETROOT_LIBS 1466 linker flags for XSETROOT, overriding pkg-config 1467 LINT Path to a lint-style command 1468 LINT_FLAGS Flags for the lint-style command 1469 1470 Use these variables to override the choices made by `configure' or to help 1471 it to find libraries and programs with nonstandard names/locations. 1472 1473 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xsetroot/-/issues>. 1474 _ACEOF 1475 ac_status=$? 1476 fi 1477 1478 if test "$ac_init_help" = "recursive"; then 1479 # If there are subdirs, report their specific --help. 1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1481 test -d "$ac_dir" || 1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1483 continue 1484 ac_builddir=. 1485 1486 case "$ac_dir" in 1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488 *) 1489 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1490 # A ".." for each directory in $ac_dir_suffix. 1491 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1492 case $ac_top_builddir_sub in 1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1495 esac ;; 1496 esac 1497 ac_abs_top_builddir=$ac_pwd 1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1499 # for backward compatibility: 1500 ac_top_builddir=$ac_top_build_prefix 1501 1502 case $srcdir in 1503 .) # We are building in place. 1504 ac_srcdir=. 1505 ac_top_srcdir=$ac_top_builddir_sub 1506 ac_abs_top_srcdir=$ac_pwd ;; 1507 [\\/]* | ?:[\\/]* ) # Absolute name. 1508 ac_srcdir=$srcdir$ac_dir_suffix; 1509 ac_top_srcdir=$srcdir 1510 ac_abs_top_srcdir=$srcdir ;; 1511 *) # Relative name. 1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1513 ac_top_srcdir=$ac_top_build_prefix$srcdir 1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1515 esac 1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1517 1518 cd "$ac_dir" || { ac_status=$?; continue; } 1519 # Check for configure.gnu first; this name is used for a wrapper for 1520 # Metaconfig's "Configure" on case-insensitive file systems. 1521 if test -f "$ac_srcdir/configure.gnu"; then 1522 echo && 1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1524 elif test -f "$ac_srcdir/configure"; then 1525 echo && 1526 $SHELL "$ac_srcdir/configure" --help=recursive 1527 else 1528 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1529 fi || ac_status=$? 1530 cd "$ac_pwd" || { ac_status=$?; break; } 1531 done 1532 fi 1533 1534 test -n "$ac_init_help" && exit $ac_status 1535 if $ac_init_version; then 1536 cat <<\_ACEOF 1537 xsetroot configure 1.1.3 1538 generated by GNU Autoconf 2.71 1539 1540 Copyright (C) 2021 Free Software Foundation, Inc. 1541 This configure script is free software; the Free Software Foundation 1542 gives unlimited permission to copy, distribute and modify it. 1543 _ACEOF 1544 exit 1545 fi 1546 1547 ## ------------------------ ## 1548 ## Autoconf initialization. ## 1549 ## ------------------------ ## 1550 1551 # ac_fn_c_try_compile LINENO 1552 # -------------------------- 1553 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1554 ac_fn_c_try_compile () 1555 { 1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1557 rm -f conftest.$ac_objext conftest.beam 1558 if { { ac_try="$ac_compile" 1559 case "(($ac_try" in 1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1561 *) ac_try_echo=$ac_try;; 1562 esac 1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1564 printf "%s\n" "$ac_try_echo"; } >&5 1565 (eval "$ac_compile") 2>conftest.err 1566 ac_status=$? 1567 if test -s conftest.err; then 1568 grep -v '^ *+' conftest.err >conftest.er1 1569 cat conftest.er1 >&5 1570 mv -f conftest.er1 conftest.err 1571 fi 1572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1573 test $ac_status = 0; } && { 1574 test -z "$ac_c_werror_flag" || 1575 test ! -s conftest.err 1576 } && test -s conftest.$ac_objext 1577 then : 1578 ac_retval=0 1579 else $as_nop 1580 printf "%s\n" "$as_me: failed program was:" >&5 1581 sed 's/^/| /' conftest.$ac_ext >&5 1582 1583 ac_retval=1 1584 fi 1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1586 as_fn_set_status $ac_retval 1587 1588 } # ac_fn_c_try_compile 1589 1590 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1591 # ------------------------------------------------------------------ 1592 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1593 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1594 ac_fn_check_decl () 1595 { 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 as_decl_name=`echo $2|sed 's/ *(.*//'` 1598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1599 printf %s "checking whether $as_decl_name is declared... " >&6; } 1600 if eval test \${$3+y} 1601 then : 1602 printf %s "(cached) " >&6 1603 else $as_nop 1604 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1605 eval ac_save_FLAGS=\$$6 1606 as_fn_append $6 " $5" 1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1608 /* end confdefs.h. */ 1609 $4 1610 int 1611 main (void) 1612 { 1613 #ifndef $as_decl_name 1614 #ifdef __cplusplus 1615 (void) $as_decl_use; 1616 #else 1617 (void) $as_decl_name; 1618 #endif 1619 #endif 1620 1621 ; 1622 return 0; 1623 } 1624 _ACEOF 1625 if ac_fn_c_try_compile "$LINENO" 1626 then : 1627 eval "$3=yes" 1628 else $as_nop 1629 eval "$3=no" 1630 fi 1631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1632 eval $6=\$ac_save_FLAGS 1633 1634 fi 1635 eval ac_res=\$$3 1636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1637 printf "%s\n" "$ac_res" >&6; } 1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1639 1640 } # ac_fn_check_decl 1641 1642 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1643 # ------------------------------------------------------- 1644 # Tests whether HEADER exists and can be compiled using the include files in 1645 # INCLUDES, setting the cache variable VAR accordingly. 1646 ac_fn_c_check_header_compile () 1647 { 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1650 printf %s "checking for $2... " >&6; } 1651 if eval test \${$3+y} 1652 then : 1653 printf %s "(cached) " >&6 1654 else $as_nop 1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1656 /* end confdefs.h. */ 1657 $4 1658 #include <$2> 1659 _ACEOF 1660 if ac_fn_c_try_compile "$LINENO" 1661 then : 1662 eval "$3=yes" 1663 else $as_nop 1664 eval "$3=no" 1665 fi 1666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1667 fi 1668 eval ac_res=\$$3 1669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1670 printf "%s\n" "$ac_res" >&6; } 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 1673 } # ac_fn_c_check_header_compile 1674 1675 # ac_fn_c_try_link LINENO 1676 # ----------------------- 1677 # Try to link conftest.$ac_ext, and return whether this succeeded. 1678 ac_fn_c_try_link () 1679 { 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1682 if { { ac_try="$ac_link" 1683 case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686 esac 1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688 printf "%s\n" "$ac_try_echo"; } >&5 1689 (eval "$ac_link") 2>conftest.err 1690 ac_status=$? 1691 if test -s conftest.err; then 1692 grep -v '^ *+' conftest.err >conftest.er1 1693 cat conftest.er1 >&5 1694 mv -f conftest.er1 conftest.err 1695 fi 1696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } && { 1698 test -z "$ac_c_werror_flag" || 1699 test ! -s conftest.err 1700 } && test -s conftest$ac_exeext && { 1701 test "$cross_compiling" = yes || 1702 test -x conftest$ac_exeext 1703 } 1704 then : 1705 ac_retval=0 1706 else $as_nop 1707 printf "%s\n" "$as_me: failed program was:" >&5 1708 sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 1711 fi 1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1714 # interfere with the next link command; also delete a directory that is 1715 # left behind by Apple's compiler. We do this before executing the actions. 1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720 } # ac_fn_c_try_link 1721 ac_configure_args_raw= 1722 for ac_arg 1723 do 1724 case $ac_arg in 1725 *\'*) 1726 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1727 esac 1728 as_fn_append ac_configure_args_raw " '$ac_arg'" 1729 done 1730 1731 case $ac_configure_args_raw in 1732 *$as_nl*) 1733 ac_safe_unquote= ;; 1734 *) 1735 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1736 ac_unsafe_a="$ac_unsafe_z#~" 1737 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1738 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1739 esac 1740 1741 cat >config.log <<_ACEOF 1742 This file contains any messages produced by compilers while 1743 running configure, to aid debugging if configure makes a mistake. 1744 1745 It was created by xsetroot $as_me 1.1.3, which was 1746 generated by GNU Autoconf 2.71. Invocation command line was 1747 1748 $ $0$ac_configure_args_raw 1749 1750 _ACEOF 1751 exec 5>>config.log 1752 { 1753 cat <<_ASUNAME 1754 ## --------- ## 1755 ## Platform. ## 1756 ## --------- ## 1757 1758 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1759 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1760 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1761 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1762 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1763 1764 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1765 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1766 1767 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1768 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1769 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1770 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1771 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1772 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1773 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1774 1775 _ASUNAME 1776 1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1778 for as_dir in $PATH 1779 do 1780 IFS=$as_save_IFS 1781 case $as_dir in #((( 1782 '') as_dir=./ ;; 1783 */) ;; 1784 *) as_dir=$as_dir/ ;; 1785 esac 1786 printf "%s\n" "PATH: $as_dir" 1787 done 1788 IFS=$as_save_IFS 1789 1790 } >&5 1791 1792 cat >&5 <<_ACEOF 1793 1794 1795 ## ----------- ## 1796 ## Core tests. ## 1797 ## ----------- ## 1798 1799 _ACEOF 1800 1801 1802 # Keep a trace of the command line. 1803 # Strip out --no-create and --no-recursion so they do not pile up. 1804 # Strip out --silent because we don't want to record it for future runs. 1805 # Also quote any args containing shell meta-characters. 1806 # Make two passes to allow for proper duplicate-argument suppression. 1807 ac_configure_args= 1808 ac_configure_args0= 1809 ac_configure_args1= 1810 ac_must_keep_next=false 1811 for ac_pass in 1 2 1812 do 1813 for ac_arg 1814 do 1815 case $ac_arg in 1816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1818 | -silent | --silent | --silen | --sile | --sil) 1819 continue ;; 1820 *\'*) 1821 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1822 esac 1823 case $ac_pass in 1824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1825 2) 1826 as_fn_append ac_configure_args1 " '$ac_arg'" 1827 if test $ac_must_keep_next = true; then 1828 ac_must_keep_next=false # Got value, back to normal. 1829 else 1830 case $ac_arg in 1831 *=* | --config-cache | -C | -disable-* | --disable-* \ 1832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1834 | -with-* | --with-* | -without-* | --without-* | --x) 1835 case "$ac_configure_args0 " in 1836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1837 esac 1838 ;; 1839 -* ) ac_must_keep_next=true ;; 1840 esac 1841 fi 1842 as_fn_append ac_configure_args " '$ac_arg'" 1843 ;; 1844 esac 1845 done 1846 done 1847 { ac_configure_args0=; unset ac_configure_args0;} 1848 { ac_configure_args1=; unset ac_configure_args1;} 1849 1850 # When interrupted or exit'd, cleanup temporary files, and complete 1851 # config.log. We remove comments because anyway the quotes in there 1852 # would cause problems or look ugly. 1853 # WARNING: Use '\'' to represent an apostrophe within the trap. 1854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1855 trap 'exit_status=$? 1856 # Sanitize IFS. 1857 IFS=" "" $as_nl" 1858 # Save into config.log some information that might help in debugging. 1859 { 1860 echo 1861 1862 printf "%s\n" "## ---------------- ## 1863 ## Cache variables. ## 1864 ## ---------------- ##" 1865 echo 1866 # The following way of writing the cache mishandles newlines in values, 1867 ( 1868 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1869 eval ac_val=\$$ac_var 1870 case $ac_val in #( 1871 *${as_nl}*) 1872 case $ac_var in #( 1873 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1874 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1875 esac 1876 case $ac_var in #( 1877 _ | IFS | as_nl) ;; #( 1878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1879 *) { eval $ac_var=; unset $ac_var;} ;; 1880 esac ;; 1881 esac 1882 done 1883 (set) 2>&1 | 1884 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1885 *${as_nl}ac_space=\ *) 1886 sed -n \ 1887 "s/'\''/'\''\\\\'\'''\''/g; 1888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1889 ;; #( 1890 *) 1891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1892 ;; 1893 esac | 1894 sort 1895 ) 1896 echo 1897 1898 printf "%s\n" "## ----------------- ## 1899 ## Output variables. ## 1900 ## ----------------- ##" 1901 echo 1902 for ac_var in $ac_subst_vars 1903 do 1904 eval ac_val=\$$ac_var 1905 case $ac_val in 1906 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1907 esac 1908 printf "%s\n" "$ac_var='\''$ac_val'\''" 1909 done | sort 1910 echo 1911 1912 if test -n "$ac_subst_files"; then 1913 printf "%s\n" "## ------------------- ## 1914 ## File substitutions. ## 1915 ## ------------------- ##" 1916 echo 1917 for ac_var in $ac_subst_files 1918 do 1919 eval ac_val=\$$ac_var 1920 case $ac_val in 1921 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1922 esac 1923 printf "%s\n" "$ac_var='\''$ac_val'\''" 1924 done | sort 1925 echo 1926 fi 1927 1928 if test -s confdefs.h; then 1929 printf "%s\n" "## ----------- ## 1930 ## confdefs.h. ## 1931 ## ----------- ##" 1932 echo 1933 cat confdefs.h 1934 echo 1935 fi 1936 test "$ac_signal" != 0 && 1937 printf "%s\n" "$as_me: caught signal $ac_signal" 1938 printf "%s\n" "$as_me: exit $exit_status" 1939 } >&5 1940 rm -f core *.core core.conftest.* && 1941 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1942 exit $exit_status 1943 ' 0 1944 for ac_signal in 1 2 13 15; do 1945 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1946 done 1947 ac_signal=0 1948 1949 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1950 rm -f -r conftest* confdefs.h 1951 1952 printf "%s\n" "/* confdefs.h */" > confdefs.h 1953 1954 # Predefined preprocessor variables. 1955 1956 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1957 1958 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1959 1960 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1961 1962 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1963 1964 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1965 1966 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1967 1968 1969 # Let the site file select an alternate cache file if it wants to. 1970 # Prefer an explicitly selected file to automatically selected ones. 1971 if test -n "$CONFIG_SITE"; then 1972 ac_site_files="$CONFIG_SITE" 1973 elif test "x$prefix" != xNONE; then 1974 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1975 else 1976 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1977 fi 1978 1979 for ac_site_file in $ac_site_files 1980 do 1981 case $ac_site_file in #( 1982 */*) : 1983 ;; #( 1984 *) : 1985 ac_site_file=./$ac_site_file ;; 1986 esac 1987 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1989 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1990 sed 's/^/| /' "$ac_site_file" >&5 1991 . "$ac_site_file" \ 1992 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1993 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1994 as_fn_error $? "failed to load site script $ac_site_file 1995 See \`config.log' for more details" "$LINENO" 5; } 1996 fi 1997 done 1998 1999 if test -r "$cache_file"; then 2000 # Some versions of bash will fail to source /dev/null (special files 2001 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2002 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2004 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2005 case $cache_file in 2006 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2007 *) . "./$cache_file";; 2008 esac 2009 fi 2010 else 2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2012 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2013 >$cache_file 2014 fi 2015 2016 # Test code for whether the C compiler supports C89 (global declarations) 2017 ac_c_conftest_c89_globals=' 2018 /* Does the compiler advertise C89 conformance? 2019 Do not test the value of __STDC__, because some compilers set it to 0 2020 while being otherwise adequately conformant. */ 2021 #if !defined __STDC__ 2022 # error "Compiler does not advertise C89 conformance" 2023 #endif 2024 2025 #include <stddef.h> 2026 #include <stdarg.h> 2027 struct stat; 2028 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2029 struct buf { int x; }; 2030 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2031 static char *e (p, i) 2032 char **p; 2033 int i; 2034 { 2035 return p[i]; 2036 } 2037 static char *f (char * (*g) (char **, int), char **p, ...) 2038 { 2039 char *s; 2040 va_list v; 2041 va_start (v,p); 2042 s = g (p, va_arg (v,int)); 2043 va_end (v); 2044 return s; 2045 } 2046 2047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2048 function prototypes and stuff, but not \xHH hex character constants. 2049 These do not provoke an error unfortunately, instead are silently treated 2050 as an "x". The following induces an error, until -std is added to get 2051 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2052 array size at least. It is necessary to write \x00 == 0 to get something 2053 that is true only with -std. */ 2054 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2055 2056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2057 inside strings and character constants. */ 2058 #define FOO(x) '\''x'\'' 2059 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2060 2061 int test (int i, double x); 2062 struct s1 {int (*f) (int a);}; 2063 struct s2 {int (*f) (double a);}; 2064 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2065 int, int);' 2066 2067 # Test code for whether the C compiler supports C89 (body of main). 2068 ac_c_conftest_c89_main=' 2069 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2070 ' 2071 2072 # Test code for whether the C compiler supports C99 (global declarations) 2073 ac_c_conftest_c99_globals=' 2074 // Does the compiler advertise C99 conformance? 2075 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2076 # error "Compiler does not advertise C99 conformance" 2077 #endif 2078 2079 #include <stdbool.h> 2080 extern int puts (const char *); 2081 extern int printf (const char *, ...); 2082 extern int dprintf (int, const char *, ...); 2083 extern void *malloc (size_t); 2084 2085 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2086 // dprintf is used instead of fprintf to avoid needing to declare 2087 // FILE and stderr. 2088 #define debug(...) dprintf (2, __VA_ARGS__) 2089 #define showlist(...) puts (#__VA_ARGS__) 2090 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2091 static void 2092 test_varargs_macros (void) 2093 { 2094 int x = 1234; 2095 int y = 5678; 2096 debug ("Flag"); 2097 debug ("X = %d\n", x); 2098 showlist (The first, second, and third items.); 2099 report (x>y, "x is %d but y is %d", x, y); 2100 } 2101 2102 // Check long long types. 2103 #define BIG64 18446744073709551615ull 2104 #define BIG32 4294967295ul 2105 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2106 #if !BIG_OK 2107 #error "your preprocessor is broken" 2108 #endif 2109 #if BIG_OK 2110 #else 2111 #error "your preprocessor is broken" 2112 #endif 2113 static long long int bignum = -9223372036854775807LL; 2114 static unsigned long long int ubignum = BIG64; 2115 2116 struct incomplete_array 2117 { 2118 int datasize; 2119 double data[]; 2120 }; 2121 2122 struct named_init { 2123 int number; 2124 const wchar_t *name; 2125 double average; 2126 }; 2127 2128 typedef const char *ccp; 2129 2130 static inline int 2131 test_restrict (ccp restrict text) 2132 { 2133 // See if C++-style comments work. 2134 // Iterate through items via the restricted pointer. 2135 // Also check for declarations in for loops. 2136 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2137 continue; 2138 return 0; 2139 } 2140 2141 // Check varargs and va_copy. 2142 static bool 2143 test_varargs (const char *format, ...) 2144 { 2145 va_list args; 2146 va_start (args, format); 2147 va_list args_copy; 2148 va_copy (args_copy, args); 2149 2150 const char *str = ""; 2151 int number = 0; 2152 float fnumber = 0; 2153 2154 while (*format) 2155 { 2156 switch (*format++) 2157 { 2158 case '\''s'\'': // string 2159 str = va_arg (args_copy, const char *); 2160 break; 2161 case '\''d'\'': // int 2162 number = va_arg (args_copy, int); 2163 break; 2164 case '\''f'\'': // float 2165 fnumber = va_arg (args_copy, double); 2166 break; 2167 default: 2168 break; 2169 } 2170 } 2171 va_end (args_copy); 2172 va_end (args); 2173 2174 return *str && number && fnumber; 2175 } 2176 ' 2177 2178 # Test code for whether the C compiler supports C99 (body of main). 2179 ac_c_conftest_c99_main=' 2180 // Check bool. 2181 _Bool success = false; 2182 success |= (argc != 0); 2183 2184 // Check restrict. 2185 if (test_restrict ("String literal") == 0) 2186 success = true; 2187 char *restrict newvar = "Another string"; 2188 2189 // Check varargs. 2190 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2191 test_varargs_macros (); 2192 2193 // Check flexible array members. 2194 struct incomplete_array *ia = 2195 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2196 ia->datasize = 10; 2197 for (int i = 0; i < ia->datasize; ++i) 2198 ia->data[i] = i * 1.234; 2199 2200 // Check named initializers. 2201 struct named_init ni = { 2202 .number = 34, 2203 .name = L"Test wide string", 2204 .average = 543.34343, 2205 }; 2206 2207 ni.number = 58; 2208 2209 int dynamic_array[ni.number]; 2210 dynamic_array[0] = argv[0][0]; 2211 dynamic_array[ni.number - 1] = 543; 2212 2213 // work around unused variable warnings 2214 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2215 || dynamic_array[ni.number - 1] != 543); 2216 ' 2217 2218 # Test code for whether the C compiler supports C11 (global declarations) 2219 ac_c_conftest_c11_globals=' 2220 // Does the compiler advertise C11 conformance? 2221 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2222 # error "Compiler does not advertise C11 conformance" 2223 #endif 2224 2225 // Check _Alignas. 2226 char _Alignas (double) aligned_as_double; 2227 char _Alignas (0) no_special_alignment; 2228 extern char aligned_as_int; 2229 char _Alignas (0) _Alignas (int) aligned_as_int; 2230 2231 // Check _Alignof. 2232 enum 2233 { 2234 int_alignment = _Alignof (int), 2235 int_array_alignment = _Alignof (int[100]), 2236 char_alignment = _Alignof (char) 2237 }; 2238 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2239 2240 // Check _Noreturn. 2241 int _Noreturn does_not_return (void) { for (;;) continue; } 2242 2243 // Check _Static_assert. 2244 struct test_static_assert 2245 { 2246 int x; 2247 _Static_assert (sizeof (int) <= sizeof (long int), 2248 "_Static_assert does not work in struct"); 2249 long int y; 2250 }; 2251 2252 // Check UTF-8 literals. 2253 #define u8 syntax error! 2254 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2255 2256 // Check duplicate typedefs. 2257 typedef long *long_ptr; 2258 typedef long int *long_ptr; 2259 typedef long_ptr long_ptr; 2260 2261 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2262 struct anonymous 2263 { 2264 union { 2265 struct { int i; int j; }; 2266 struct { int k; long int l; } w; 2267 }; 2268 int m; 2269 } v1; 2270 ' 2271 2272 # Test code for whether the C compiler supports C11 (body of main). 2273 ac_c_conftest_c11_main=' 2274 _Static_assert ((offsetof (struct anonymous, i) 2275 == offsetof (struct anonymous, w.k)), 2276 "Anonymous union alignment botch"); 2277 v1.i = 2; 2278 v1.w.k = 5; 2279 ok |= v1.i != 5; 2280 ' 2281 2282 # Test code for whether the C compiler supports C11 (complete). 2283 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2284 ${ac_c_conftest_c99_globals} 2285 ${ac_c_conftest_c11_globals} 2286 2287 int 2288 main (int argc, char **argv) 2289 { 2290 int ok = 0; 2291 ${ac_c_conftest_c89_main} 2292 ${ac_c_conftest_c99_main} 2293 ${ac_c_conftest_c11_main} 2294 return ok; 2295 } 2296 " 2297 2298 # Test code for whether the C compiler supports C99 (complete). 2299 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2300 ${ac_c_conftest_c99_globals} 2301 2302 int 2303 main (int argc, char **argv) 2304 { 2305 int ok = 0; 2306 ${ac_c_conftest_c89_main} 2307 ${ac_c_conftest_c99_main} 2308 return ok; 2309 } 2310 " 2311 2312 # Test code for whether the C compiler supports C89 (complete). 2313 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2314 2315 int 2316 main (int argc, char **argv) 2317 { 2318 int ok = 0; 2319 ${ac_c_conftest_c89_main} 2320 return ok; 2321 } 2322 " 2323 2324 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2325 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2326 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2327 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2328 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2329 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2330 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2331 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2332 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2333 2334 # Auxiliary files required by this configure script. 2335 ac_aux_files="config.guess config.sub compile missing install-sh" 2336 2337 # Locations in which to look for auxiliary files. 2338 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2339 2340 # Search for a directory containing all of the required auxiliary files, 2341 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2342 # If we don't find one directory that contains all the files we need, 2343 # we report the set of missing files from the *first* directory in 2344 # $ac_aux_dir_candidates and give up. 2345 ac_missing_aux_files="" 2346 ac_first_candidate=: 2347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2349 as_found=false 2350 for as_dir in $ac_aux_dir_candidates 2351 do 2352 IFS=$as_save_IFS 2353 case $as_dir in #((( 2354 '') as_dir=./ ;; 2355 */) ;; 2356 *) as_dir=$as_dir/ ;; 2357 esac 2358 as_found=: 2359 2360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2361 ac_aux_dir_found=yes 2362 ac_install_sh= 2363 for ac_aux in $ac_aux_files 2364 do 2365 # As a special case, if "install-sh" is required, that requirement 2366 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2367 # and $ac_install_sh is set appropriately for whichever one is found. 2368 if test x"$ac_aux" = x"install-sh" 2369 then 2370 if test -f "${as_dir}install-sh"; then 2371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2372 ac_install_sh="${as_dir}install-sh -c" 2373 elif test -f "${as_dir}install.sh"; then 2374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2375 ac_install_sh="${as_dir}install.sh -c" 2376 elif test -f "${as_dir}shtool"; then 2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2378 ac_install_sh="${as_dir}shtool install -c" 2379 else 2380 ac_aux_dir_found=no 2381 if $ac_first_candidate; then 2382 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2383 else 2384 break 2385 fi 2386 fi 2387 else 2388 if test -f "${as_dir}${ac_aux}"; then 2389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2390 else 2391 ac_aux_dir_found=no 2392 if $ac_first_candidate; then 2393 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2394 else 2395 break 2396 fi 2397 fi 2398 fi 2399 done 2400 if test "$ac_aux_dir_found" = yes; then 2401 ac_aux_dir="$as_dir" 2402 break 2403 fi 2404 ac_first_candidate=false 2405 2406 as_found=false 2407 done 2408 IFS=$as_save_IFS 2409 if $as_found 2410 then : 2411 2412 else $as_nop 2413 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2414 fi 2415 2416 2417 # These three variables are undocumented and unsupported, 2418 # and are intended to be withdrawn in a future Autoconf release. 2419 # They can cause serious problems if a builder's source tree is in a directory 2420 # whose full name contains unusual characters. 2421 if test -f "${ac_aux_dir}config.guess"; then 2422 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2423 fi 2424 if test -f "${ac_aux_dir}config.sub"; then 2425 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2426 fi 2427 if test -f "$ac_aux_dir/configure"; then 2428 ac_configure="$SHELL ${ac_aux_dir}configure" 2429 fi 2430 2431 # Check that the precious variables saved in the cache have kept the same 2432 # value. 2433 ac_cache_corrupted=false 2434 for ac_var in $ac_precious_vars; do 2435 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2436 eval ac_new_set=\$ac_env_${ac_var}_set 2437 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2438 eval ac_new_val=\$ac_env_${ac_var}_value 2439 case $ac_old_set,$ac_new_set in 2440 set,) 2441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2442 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2443 ac_cache_corrupted=: ;; 2444 ,set) 2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2446 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2447 ac_cache_corrupted=: ;; 2448 ,);; 2449 *) 2450 if test "x$ac_old_val" != "x$ac_new_val"; then 2451 # differences in whitespace do not lead to failure. 2452 ac_old_val_w=`echo x $ac_old_val` 2453 ac_new_val_w=`echo x $ac_new_val` 2454 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2456 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2457 ac_cache_corrupted=: 2458 else 2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2460 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2461 eval $ac_var=\$ac_old_val 2462 fi 2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2464 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2466 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2467 fi;; 2468 esac 2469 # Pass precious variables to config.status. 2470 if test "$ac_new_set" = set; then 2471 case $ac_new_val in 2472 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2473 *) ac_arg=$ac_var=$ac_new_val ;; 2474 esac 2475 case " $ac_configure_args " in 2476 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2477 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2478 esac 2479 fi 2480 done 2481 if $ac_cache_corrupted; then 2482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2483 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2485 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2486 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2487 and start over" "$LINENO" 5 2488 fi 2489 ## -------------------- ## 2490 ## Main body of script. ## 2491 ## -------------------- ## 2492 2493 ac_ext=c 2494 ac_cpp='$CPP $CPPFLAGS' 2495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2497 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2498 2499 2500 2501 ac_config_headers="$ac_config_headers config.h" 2502 2503 2504 # Initialize Automake 2505 am__api_version='1.16' 2506 2507 2508 2509 # Find a good install program. We prefer a C program (faster), 2510 # so one script is as good as another. But avoid the broken or 2511 # incompatible versions: 2512 # SysV /etc/install, /usr/sbin/install 2513 # SunOS /usr/etc/install 2514 # IRIX /sbin/install 2515 # AIX /bin/install 2516 # AmigaOS /C/install, which installs bootblocks on floppy discs 2517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2520 # OS/2's system install, which has a completely different semantic 2521 # ./install, which can be erroneously created by make from ./install.sh. 2522 # Reject install programs that cannot install multiple files. 2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2524 printf %s "checking for a BSD-compatible install... " >&6; } 2525 if test -z "$INSTALL"; then 2526 if test ${ac_cv_path_install+y} 2527 then : 2528 printf %s "(cached) " >&6 2529 else $as_nop 2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2531 for as_dir in $PATH 2532 do 2533 IFS=$as_save_IFS 2534 case $as_dir in #((( 2535 '') as_dir=./ ;; 2536 */) ;; 2537 *) as_dir=$as_dir/ ;; 2538 esac 2539 # Account for fact that we put trailing slashes in our PATH walk. 2540 case $as_dir in #(( 2541 ./ | /[cC]/* | \ 2542 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2543 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2544 /usr/ucb/* ) ;; 2545 *) 2546 # OSF1 and SCO ODT 3.0 have their own names for install. 2547 # Don't use installbsd from OSF since it installs stuff as root 2548 # by default. 2549 for ac_prog in ginstall scoinst install; do 2550 for ac_exec_ext in '' $ac_executable_extensions; do 2551 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2552 if test $ac_prog = install && 2553 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2554 # AIX install. It has an incompatible calling convention. 2555 : 2556 elif test $ac_prog = install && 2557 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2558 # program-specific install script used by HP pwplus--don't use. 2559 : 2560 else 2561 rm -rf conftest.one conftest.two conftest.dir 2562 echo one > conftest.one 2563 echo two > conftest.two 2564 mkdir conftest.dir 2565 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2566 test -s conftest.one && test -s conftest.two && 2567 test -s conftest.dir/conftest.one && 2568 test -s conftest.dir/conftest.two 2569 then 2570 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2571 break 3 2572 fi 2573 fi 2574 fi 2575 done 2576 done 2577 ;; 2578 esac 2579 2580 done 2581 IFS=$as_save_IFS 2582 2583 rm -rf conftest.one conftest.two conftest.dir 2584 2585 fi 2586 if test ${ac_cv_path_install+y}; then 2587 INSTALL=$ac_cv_path_install 2588 else 2589 # As a last resort, use the slow shell script. Don't cache a 2590 # value for INSTALL within a source directory, because that will 2591 # break other packages using the cache if that directory is 2592 # removed, or if the value is a relative name. 2593 INSTALL=$ac_install_sh 2594 fi 2595 fi 2596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2597 printf "%s\n" "$INSTALL" >&6; } 2598 2599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2600 # It thinks the first close brace ends the variable substitution. 2601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2602 2603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2604 2605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2606 2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2608 printf %s "checking whether build environment is sane... " >&6; } 2609 # Reject unsafe characters in $srcdir or the absolute working directory 2610 # name. Accept space and tab only in the latter. 2611 am_lf=' 2612 ' 2613 case `pwd` in 2614 *[\\\"\#\$\&\'\`$am_lf]*) 2615 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2616 esac 2617 case $srcdir in 2618 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2619 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2620 esac 2621 2622 # Do 'set' in a subshell so we don't clobber the current shell's 2623 # arguments. Must try -L first in case configure is actually a 2624 # symlink; some systems play weird games with the mod time of symlinks 2625 # (eg FreeBSD returns the mod time of the symlink's containing 2626 # directory). 2627 if ( 2628 am_has_slept=no 2629 for am_try in 1 2; do 2630 echo "timestamp, slept: $am_has_slept" > conftest.file 2631 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2632 if test "$*" = "X"; then 2633 # -L didn't work. 2634 set X `ls -t "$srcdir/configure" conftest.file` 2635 fi 2636 if test "$*" != "X $srcdir/configure conftest.file" \ 2637 && test "$*" != "X conftest.file $srcdir/configure"; then 2638 2639 # If neither matched, then we have a broken ls. This can happen 2640 # if, for instance, CONFIG_SHELL is bash and it inherits a 2641 # broken ls alias from the environment. This has actually 2642 # happened. Such a system could not be considered "sane". 2643 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2644 alias in your environment" "$LINENO" 5 2645 fi 2646 if test "$2" = conftest.file || test $am_try -eq 2; then 2647 break 2648 fi 2649 # Just in case. 2650 sleep 1 2651 am_has_slept=yes 2652 done 2653 test "$2" = conftest.file 2654 ) 2655 then 2656 # Ok. 2657 : 2658 else 2659 as_fn_error $? "newly created file is older than distributed files! 2660 Check your system clock" "$LINENO" 5 2661 fi 2662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2663 printf "%s\n" "yes" >&6; } 2664 # If we didn't sleep, we still need to ensure time stamps of config.status and 2665 # generated files are strictly newer. 2666 am_sleep_pid= 2667 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2668 ( sleep 1 ) & 2669 am_sleep_pid=$! 2670 fi 2671 2672 rm -f conftest.file 2673 2674 test "$program_prefix" != NONE && 2675 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2676 # Use a double $ so make ignores it. 2677 test "$program_suffix" != NONE && 2678 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2679 # Double any \ or $. 2680 # By default was `s,x,x', remove it if useless. 2681 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2682 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2683 2684 2685 # Expand $ac_aux_dir to an absolute path. 2686 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2687 2688 2689 if test x"${MISSING+set}" != xset; then 2690 MISSING="\${SHELL} '$am_aux_dir/missing'" 2691 fi 2692 # Use eval to expand $SHELL 2693 if eval "$MISSING --is-lightweight"; then 2694 am_missing_run="$MISSING " 2695 else 2696 am_missing_run= 2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2698 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2699 fi 2700 2701 if test x"${install_sh+set}" != xset; then 2702 case $am_aux_dir in 2703 *\ * | *\ *) 2704 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2705 *) 2706 install_sh="\${SHELL} $am_aux_dir/install-sh" 2707 esac 2708 fi 2709 2710 # Installed binaries are usually stripped using 'strip' when the user 2711 # run "make install-strip". However 'strip' might not be the right 2712 # tool to use in cross-compilation environments, therefore Automake 2713 # will honor the 'STRIP' environment variable to overrule this program. 2714 if test "$cross_compiling" != no; then 2715 if test -n "$ac_tool_prefix"; then 2716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2717 set dummy ${ac_tool_prefix}strip; ac_word=$2 2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2719 printf %s "checking for $ac_word... " >&6; } 2720 if test ${ac_cv_prog_STRIP+y} 2721 then : 2722 printf %s "(cached) " >&6 2723 else $as_nop 2724 if test -n "$STRIP"; then 2725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2726 else 2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728 for as_dir in $PATH 2729 do 2730 IFS=$as_save_IFS 2731 case $as_dir in #((( 2732 '') as_dir=./ ;; 2733 */) ;; 2734 *) as_dir=$as_dir/ ;; 2735 esac 2736 for ac_exec_ext in '' $ac_executable_extensions; do 2737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2738 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2740 break 2 2741 fi 2742 done 2743 done 2744 IFS=$as_save_IFS 2745 2746 fi 2747 fi 2748 STRIP=$ac_cv_prog_STRIP 2749 if test -n "$STRIP"; then 2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2751 printf "%s\n" "$STRIP" >&6; } 2752 else 2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2754 printf "%s\n" "no" >&6; } 2755 fi 2756 2757 2758 fi 2759 if test -z "$ac_cv_prog_STRIP"; then 2760 ac_ct_STRIP=$STRIP 2761 # Extract the first word of "strip", so it can be a program name with args. 2762 set dummy strip; ac_word=$2 2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2764 printf %s "checking for $ac_word... " >&6; } 2765 if test ${ac_cv_prog_ac_ct_STRIP+y} 2766 then : 2767 printf %s "(cached) " >&6 2768 else $as_nop 2769 if test -n "$ac_ct_STRIP"; then 2770 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2771 else 2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2773 for as_dir in $PATH 2774 do 2775 IFS=$as_save_IFS 2776 case $as_dir in #((( 2777 '') as_dir=./ ;; 2778 */) ;; 2779 *) as_dir=$as_dir/ ;; 2780 esac 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2783 ac_cv_prog_ac_ct_STRIP="strip" 2784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787 done 2788 done 2789 IFS=$as_save_IFS 2790 2791 fi 2792 fi 2793 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2794 if test -n "$ac_ct_STRIP"; then 2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2796 printf "%s\n" "$ac_ct_STRIP" >&6; } 2797 else 2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2799 printf "%s\n" "no" >&6; } 2800 fi 2801 2802 if test "x$ac_ct_STRIP" = x; then 2803 STRIP=":" 2804 else 2805 case $cross_compiling:$ac_tool_warned in 2806 yes:) 2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2808 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2809 ac_tool_warned=yes ;; 2810 esac 2811 STRIP=$ac_ct_STRIP 2812 fi 2813 else 2814 STRIP="$ac_cv_prog_STRIP" 2815 fi 2816 2817 fi 2818 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2819 2820 2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2822 printf %s "checking for a race-free mkdir -p... " >&6; } 2823 if test -z "$MKDIR_P"; then 2824 if test ${ac_cv_path_mkdir+y} 2825 then : 2826 printf %s "(cached) " >&6 2827 else $as_nop 2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2829 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2830 do 2831 IFS=$as_save_IFS 2832 case $as_dir in #((( 2833 '') as_dir=./ ;; 2834 */) ;; 2835 *) as_dir=$as_dir/ ;; 2836 esac 2837 for ac_prog in mkdir gmkdir; do 2838 for ac_exec_ext in '' $ac_executable_extensions; do 2839 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2840 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2841 'mkdir ('*'coreutils) '* | \ 2842 'BusyBox '* | \ 2843 'mkdir (fileutils) '4.1*) 2844 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2845 break 3;; 2846 esac 2847 done 2848 done 2849 done 2850 IFS=$as_save_IFS 2851 2852 fi 2853 2854 test -d ./--version && rmdir ./--version 2855 if test ${ac_cv_path_mkdir+y}; then 2856 MKDIR_P="$ac_cv_path_mkdir -p" 2857 else 2858 # As a last resort, use the slow shell script. Don't cache a 2859 # value for MKDIR_P within a source directory, because that will 2860 # break other packages using the cache if that directory is 2861 # removed, or if the value is a relative name. 2862 MKDIR_P="$ac_install_sh -d" 2863 fi 2864 fi 2865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2866 printf "%s\n" "$MKDIR_P" >&6; } 2867 2868 for ac_prog in gawk mawk nawk awk 2869 do 2870 # Extract the first word of "$ac_prog", so it can be a program name with args. 2871 set dummy $ac_prog; ac_word=$2 2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2873 printf %s "checking for $ac_word... " >&6; } 2874 if test ${ac_cv_prog_AWK+y} 2875 then : 2876 printf %s "(cached) " >&6 2877 else $as_nop 2878 if test -n "$AWK"; then 2879 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2880 else 2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882 for as_dir in $PATH 2883 do 2884 IFS=$as_save_IFS 2885 case $as_dir in #((( 2886 '') as_dir=./ ;; 2887 */) ;; 2888 *) as_dir=$as_dir/ ;; 2889 esac 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2892 ac_cv_prog_AWK="$ac_prog" 2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896 done 2897 done 2898 IFS=$as_save_IFS 2899 2900 fi 2901 fi 2902 AWK=$ac_cv_prog_AWK 2903 if test -n "$AWK"; then 2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2905 printf "%s\n" "$AWK" >&6; } 2906 else 2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2908 printf "%s\n" "no" >&6; } 2909 fi 2910 2911 2912 test -n "$AWK" && break 2913 done 2914 2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2916 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2917 set x ${MAKE-make} 2918 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2919 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2920 then : 2921 printf %s "(cached) " >&6 2922 else $as_nop 2923 cat >conftest.make <<\_ACEOF 2924 SHELL = /bin/sh 2925 all: 2926 @echo '@@@%%%=$(MAKE)=@@@%%%' 2927 _ACEOF 2928 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2929 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2930 *@@@%%%=?*=@@@%%%*) 2931 eval ac_cv_prog_make_${ac_make}_set=yes;; 2932 *) 2933 eval ac_cv_prog_make_${ac_make}_set=no;; 2934 esac 2935 rm -f conftest.make 2936 fi 2937 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2939 printf "%s\n" "yes" >&6; } 2940 SET_MAKE= 2941 else 2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2943 printf "%s\n" "no" >&6; } 2944 SET_MAKE="MAKE=${MAKE-make}" 2945 fi 2946 2947 rm -rf .tst 2>/dev/null 2948 mkdir .tst 2>/dev/null 2949 if test -d .tst; then 2950 am__leading_dot=. 2951 else 2952 am__leading_dot=_ 2953 fi 2954 rmdir .tst 2>/dev/null 2955 2956 # Check whether --enable-silent-rules was given. 2957 if test ${enable_silent_rules+y} 2958 then : 2959 enableval=$enable_silent_rules; 2960 fi 2961 2962 case $enable_silent_rules in # ((( 2963 yes) AM_DEFAULT_VERBOSITY=0;; 2964 no) AM_DEFAULT_VERBOSITY=1;; 2965 *) AM_DEFAULT_VERBOSITY=1;; 2966 esac 2967 am_make=${MAKE-make} 2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2969 printf %s "checking whether $am_make supports nested variables... " >&6; } 2970 if test ${am_cv_make_support_nested_variables+y} 2971 then : 2972 printf %s "(cached) " >&6 2973 else $as_nop 2974 if printf "%s\n" 'TRUE=$(BAR$(V)) 2975 BAR0=false 2976 BAR1=true 2977 V=1 2978 am__doit: 2979 @$(TRUE) 2980 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2981 am_cv_make_support_nested_variables=yes 2982 else 2983 am_cv_make_support_nested_variables=no 2984 fi 2985 fi 2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2987 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2988 if test $am_cv_make_support_nested_variables = yes; then 2989 AM_V='$(V)' 2990 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2991 else 2992 AM_V=$AM_DEFAULT_VERBOSITY 2993 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2994 fi 2995 AM_BACKSLASH='\' 2996 2997 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2998 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2999 # is not polluted with repeated "-I." 3000 am__isrc=' -I$(srcdir)' 3001 # test to see if srcdir already configured 3002 if test -f $srcdir/config.status; then 3003 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3004 fi 3005 fi 3006 3007 # test whether we have cygpath 3008 if test -z "$CYGPATH_W"; then 3009 if (cygpath --version) >/dev/null 2>/dev/null; then 3010 CYGPATH_W='cygpath -w' 3011 else 3012 CYGPATH_W=echo 3013 fi 3014 fi 3015 3016 3017 # Define the identity of the package. 3018 PACKAGE='xsetroot' 3019 VERSION='1.1.3' 3020 3021 3022 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3023 3024 3025 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3026 3027 # Some tools Automake needs. 3028 3029 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3030 3031 3032 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3033 3034 3035 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3036 3037 3038 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3039 3040 3041 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3042 3043 # For better backward compatibility. To be removed once Automake 1.9.x 3044 # dies out for good. For more background, see: 3045 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3046 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3047 mkdir_p='$(MKDIR_P)' 3048 3049 # We need awk for the "check" target (and possibly the TAP driver). The 3050 # system "awk" is bad on some platforms. 3051 # Always define AMTAR for backward compatibility. Yes, it's still used 3052 # in the wild :-( We should find a proper way to deprecate it ... 3053 AMTAR='$${TAR-tar}' 3054 3055 3056 # We'll loop over all known methods to create a tar archive until one works. 3057 _am_tools='gnutar pax cpio none' 3058 3059 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3060 3061 3062 3063 3064 3065 # Variables for tags utilities; see am/tags.am 3066 if test -z "$CTAGS"; then 3067 CTAGS=ctags 3068 fi 3069 3070 if test -z "$ETAGS"; then 3071 ETAGS=etags 3072 fi 3073 3074 if test -z "$CSCOPE"; then 3075 CSCOPE=cscope 3076 fi 3077 3078 3079 3080 # POSIX will say in a future version that running "rm -f" with no argument 3081 # is OK; and we want to be able to make that assumption in our Makefile 3082 # recipes. So use an aggressive probe to check that the usage we want is 3083 # actually supported "in the wild" to an acceptable degree. 3084 # See automake bug#10828. 3085 # To make any issue more visible, cause the running configure to be aborted 3086 # by default if the 'rm' program in use doesn't match our expectations; the 3087 # user can still override this though. 3088 if rm -f && rm -fr && rm -rf; then : OK; else 3089 cat >&2 <<'END' 3090 Oops! 3091 3092 Your 'rm' program seems unable to run without file operands specified 3093 on the command line, even when the '-f' option is present. This is contrary 3094 to the behaviour of most rm programs out there, and not conforming with 3095 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3096 3097 Please tell bug-automake@gnu.org about your system, including the value 3098 of your $PATH and any error possibly output before this message. This 3099 can help us improve future automake versions. 3100 3101 END 3102 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3103 echo 'Configuration will proceed anyway, since you have set the' >&2 3104 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3105 echo >&2 3106 else 3107 cat >&2 <<'END' 3108 Aborting the configuration process, to ensure you take notice of the issue. 3109 3110 You can download and install GNU coreutils to get an 'rm' implementation 3111 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3112 3113 If you want to complete the configuration process using your problematic 3114 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3115 to "yes", and re-run configure. 3116 3117 END 3118 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3119 fi 3120 fi 3121 3122 3123 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 DEPDIR="${am__leading_dot}deps" 3145 3146 ac_config_commands="$ac_config_commands depfiles" 3147 3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3149 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3150 cat > confinc.mk << 'END' 3151 am__doit: 3152 @echo this is the am__doit target >confinc.out 3153 .PHONY: am__doit 3154 END 3155 am__include="#" 3156 am__quote= 3157 # BSD make does it like this. 3158 echo '.include "confinc.mk" # ignored' > confmf.BSD 3159 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3160 echo 'include confinc.mk # ignored' > confmf.GNU 3161 _am_result=no 3162 for s in GNU BSD; do 3163 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3164 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3165 ac_status=$? 3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3167 (exit $ac_status); } 3168 case $?:`cat confinc.out 2>/dev/null` in #( 3169 '0:this is the am__doit target') : 3170 case $s in #( 3171 BSD) : 3172 am__include='.include' am__quote='"' ;; #( 3173 *) : 3174 am__include='include' am__quote='' ;; 3175 esac ;; #( 3176 *) : 3177 ;; 3178 esac 3179 if test "$am__include" != "#"; then 3180 _am_result="yes ($s style)" 3181 break 3182 fi 3183 done 3184 rm -f confinc.* confmf.* 3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3186 printf "%s\n" "${_am_result}" >&6; } 3187 3188 # Check whether --enable-dependency-tracking was given. 3189 if test ${enable_dependency_tracking+y} 3190 then : 3191 enableval=$enable_dependency_tracking; 3192 fi 3193 3194 if test "x$enable_dependency_tracking" != xno; then 3195 am_depcomp="$ac_aux_dir/depcomp" 3196 AMDEPBACKSLASH='\' 3197 am__nodep='_no' 3198 fi 3199 if test "x$enable_dependency_tracking" != xno; then 3200 AMDEP_TRUE= 3201 AMDEP_FALSE='#' 3202 else 3203 AMDEP_TRUE='#' 3204 AMDEP_FALSE= 3205 fi 3206 3207 3208 ac_ext=c 3209 ac_cpp='$CPP $CPPFLAGS' 3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3213 if test -n "$ac_tool_prefix"; then 3214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3215 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3217 printf %s "checking for $ac_word... " >&6; } 3218 if test ${ac_cv_prog_CC+y} 3219 then : 3220 printf %s "(cached) " >&6 3221 else $as_nop 3222 if test -n "$CC"; then 3223 ac_cv_prog_CC="$CC" # Let the user override the test. 3224 else 3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3226 for as_dir in $PATH 3227 do 3228 IFS=$as_save_IFS 3229 case $as_dir in #((( 3230 '') as_dir=./ ;; 3231 */) ;; 3232 *) as_dir=$as_dir/ ;; 3233 esac 3234 for ac_exec_ext in '' $ac_executable_extensions; do 3235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3236 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3238 break 2 3239 fi 3240 done 3241 done 3242 IFS=$as_save_IFS 3243 3244 fi 3245 fi 3246 CC=$ac_cv_prog_CC 3247 if test -n "$CC"; then 3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3249 printf "%s\n" "$CC" >&6; } 3250 else 3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3252 printf "%s\n" "no" >&6; } 3253 fi 3254 3255 3256 fi 3257 if test -z "$ac_cv_prog_CC"; then 3258 ac_ct_CC=$CC 3259 # Extract the first word of "gcc", so it can be a program name with args. 3260 set dummy gcc; ac_word=$2 3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3262 printf %s "checking for $ac_word... " >&6; } 3263 if test ${ac_cv_prog_ac_ct_CC+y} 3264 then : 3265 printf %s "(cached) " >&6 3266 else $as_nop 3267 if test -n "$ac_ct_CC"; then 3268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3269 else 3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3271 for as_dir in $PATH 3272 do 3273 IFS=$as_save_IFS 3274 case $as_dir in #((( 3275 '') as_dir=./ ;; 3276 */) ;; 3277 *) as_dir=$as_dir/ ;; 3278 esac 3279 for ac_exec_ext in '' $ac_executable_extensions; do 3280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3281 ac_cv_prog_ac_ct_CC="gcc" 3282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3283 break 2 3284 fi 3285 done 3286 done 3287 IFS=$as_save_IFS 3288 3289 fi 3290 fi 3291 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3292 if test -n "$ac_ct_CC"; then 3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3294 printf "%s\n" "$ac_ct_CC" >&6; } 3295 else 3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3297 printf "%s\n" "no" >&6; } 3298 fi 3299 3300 if test "x$ac_ct_CC" = x; then 3301 CC="" 3302 else 3303 case $cross_compiling:$ac_tool_warned in 3304 yes:) 3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3306 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3307 ac_tool_warned=yes ;; 3308 esac 3309 CC=$ac_ct_CC 3310 fi 3311 else 3312 CC="$ac_cv_prog_CC" 3313 fi 3314 3315 if test -z "$CC"; then 3316 if test -n "$ac_tool_prefix"; then 3317 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3318 set dummy ${ac_tool_prefix}cc; ac_word=$2 3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3320 printf %s "checking for $ac_word... " >&6; } 3321 if test ${ac_cv_prog_CC+y} 3322 then : 3323 printf %s "(cached) " >&6 3324 else $as_nop 3325 if test -n "$CC"; then 3326 ac_cv_prog_CC="$CC" # Let the user override the test. 3327 else 3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3329 for as_dir in $PATH 3330 do 3331 IFS=$as_save_IFS 3332 case $as_dir in #((( 3333 '') as_dir=./ ;; 3334 */) ;; 3335 *) as_dir=$as_dir/ ;; 3336 esac 3337 for ac_exec_ext in '' $ac_executable_extensions; do 3338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3339 ac_cv_prog_CC="${ac_tool_prefix}cc" 3340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3341 break 2 3342 fi 3343 done 3344 done 3345 IFS=$as_save_IFS 3346 3347 fi 3348 fi 3349 CC=$ac_cv_prog_CC 3350 if test -n "$CC"; then 3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3352 printf "%s\n" "$CC" >&6; } 3353 else 3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3355 printf "%s\n" "no" >&6; } 3356 fi 3357 3358 3359 fi 3360 fi 3361 if test -z "$CC"; then 3362 # Extract the first word of "cc", so it can be a program name with args. 3363 set dummy cc; ac_word=$2 3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3365 printf %s "checking for $ac_word... " >&6; } 3366 if test ${ac_cv_prog_CC+y} 3367 then : 3368 printf %s "(cached) " >&6 3369 else $as_nop 3370 if test -n "$CC"; then 3371 ac_cv_prog_CC="$CC" # Let the user override the test. 3372 else 3373 ac_prog_rejected=no 3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3375 for as_dir in $PATH 3376 do 3377 IFS=$as_save_IFS 3378 case $as_dir in #((( 3379 '') as_dir=./ ;; 3380 */) ;; 3381 *) as_dir=$as_dir/ ;; 3382 esac 3383 for ac_exec_ext in '' $ac_executable_extensions; do 3384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3385 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3386 ac_prog_rejected=yes 3387 continue 3388 fi 3389 ac_cv_prog_CC="cc" 3390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3391 break 2 3392 fi 3393 done 3394 done 3395 IFS=$as_save_IFS 3396 3397 if test $ac_prog_rejected = yes; then 3398 # We found a bogon in the path, so make sure we never use it. 3399 set dummy $ac_cv_prog_CC 3400 shift 3401 if test $# != 0; then 3402 # We chose a different compiler from the bogus one. 3403 # However, it has the same basename, so the bogon will be chosen 3404 # first if we set CC to just the basename; use the full file name. 3405 shift 3406 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3407 fi 3408 fi 3409 fi 3410 fi 3411 CC=$ac_cv_prog_CC 3412 if test -n "$CC"; then 3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3414 printf "%s\n" "$CC" >&6; } 3415 else 3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3417 printf "%s\n" "no" >&6; } 3418 fi 3419 3420 3421 fi 3422 if test -z "$CC"; then 3423 if test -n "$ac_tool_prefix"; then 3424 for ac_prog in cl.exe 3425 do 3426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3429 printf %s "checking for $ac_word... " >&6; } 3430 if test ${ac_cv_prog_CC+y} 3431 then : 3432 printf %s "(cached) " >&6 3433 else $as_nop 3434 if test -n "$CC"; then 3435 ac_cv_prog_CC="$CC" # Let the user override the test. 3436 else 3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438 for as_dir in $PATH 3439 do 3440 IFS=$as_save_IFS 3441 case $as_dir in #((( 3442 '') as_dir=./ ;; 3443 */) ;; 3444 *) as_dir=$as_dir/ ;; 3445 esac 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3450 break 2 3451 fi 3452 done 3453 done 3454 IFS=$as_save_IFS 3455 3456 fi 3457 fi 3458 CC=$ac_cv_prog_CC 3459 if test -n "$CC"; then 3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3461 printf "%s\n" "$CC" >&6; } 3462 else 3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3464 printf "%s\n" "no" >&6; } 3465 fi 3466 3467 3468 test -n "$CC" && break 3469 done 3470 fi 3471 if test -z "$CC"; then 3472 ac_ct_CC=$CC 3473 for ac_prog in cl.exe 3474 do 3475 # Extract the first word of "$ac_prog", so it can be a program name with args. 3476 set dummy $ac_prog; ac_word=$2 3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478 printf %s "checking for $ac_word... " >&6; } 3479 if test ${ac_cv_prog_ac_ct_CC+y} 3480 then : 3481 printf %s "(cached) " >&6 3482 else $as_nop 3483 if test -n "$ac_ct_CC"; then 3484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3485 else 3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487 for as_dir in $PATH 3488 do 3489 IFS=$as_save_IFS 3490 case $as_dir in #((( 3491 '') as_dir=./ ;; 3492 */) ;; 3493 *) as_dir=$as_dir/ ;; 3494 esac 3495 for ac_exec_ext in '' $ac_executable_extensions; do 3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3497 ac_cv_prog_ac_ct_CC="$ac_prog" 3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3499 break 2 3500 fi 3501 done 3502 done 3503 IFS=$as_save_IFS 3504 3505 fi 3506 fi 3507 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3508 if test -n "$ac_ct_CC"; then 3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3510 printf "%s\n" "$ac_ct_CC" >&6; } 3511 else 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3513 printf "%s\n" "no" >&6; } 3514 fi 3515 3516 3517 test -n "$ac_ct_CC" && break 3518 done 3519 3520 if test "x$ac_ct_CC" = x; then 3521 CC="" 3522 else 3523 case $cross_compiling:$ac_tool_warned in 3524 yes:) 3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3526 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3527 ac_tool_warned=yes ;; 3528 esac 3529 CC=$ac_ct_CC 3530 fi 3531 fi 3532 3533 fi 3534 if test -z "$CC"; then 3535 if test -n "$ac_tool_prefix"; then 3536 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3537 set dummy ${ac_tool_prefix}clang; ac_word=$2 3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3539 printf %s "checking for $ac_word... " >&6; } 3540 if test ${ac_cv_prog_CC+y} 3541 then : 3542 printf %s "(cached) " >&6 3543 else $as_nop 3544 if test -n "$CC"; then 3545 ac_cv_prog_CC="$CC" # Let the user override the test. 3546 else 3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3548 for as_dir in $PATH 3549 do 3550 IFS=$as_save_IFS 3551 case $as_dir in #((( 3552 '') as_dir=./ ;; 3553 */) ;; 3554 *) as_dir=$as_dir/ ;; 3555 esac 3556 for ac_exec_ext in '' $ac_executable_extensions; do 3557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3558 ac_cv_prog_CC="${ac_tool_prefix}clang" 3559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3560 break 2 3561 fi 3562 done 3563 done 3564 IFS=$as_save_IFS 3565 3566 fi 3567 fi 3568 CC=$ac_cv_prog_CC 3569 if test -n "$CC"; then 3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3571 printf "%s\n" "$CC" >&6; } 3572 else 3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3574 printf "%s\n" "no" >&6; } 3575 fi 3576 3577 3578 fi 3579 if test -z "$ac_cv_prog_CC"; then 3580 ac_ct_CC=$CC 3581 # Extract the first word of "clang", so it can be a program name with args. 3582 set dummy clang; ac_word=$2 3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3584 printf %s "checking for $ac_word... " >&6; } 3585 if test ${ac_cv_prog_ac_ct_CC+y} 3586 then : 3587 printf %s "(cached) " >&6 3588 else $as_nop 3589 if test -n "$ac_ct_CC"; then 3590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3591 else 3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3593 for as_dir in $PATH 3594 do 3595 IFS=$as_save_IFS 3596 case $as_dir in #((( 3597 '') as_dir=./ ;; 3598 */) ;; 3599 *) as_dir=$as_dir/ ;; 3600 esac 3601 for ac_exec_ext in '' $ac_executable_extensions; do 3602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3603 ac_cv_prog_ac_ct_CC="clang" 3604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3605 break 2 3606 fi 3607 done 3608 done 3609 IFS=$as_save_IFS 3610 3611 fi 3612 fi 3613 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3614 if test -n "$ac_ct_CC"; then 3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3616 printf "%s\n" "$ac_ct_CC" >&6; } 3617 else 3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3619 printf "%s\n" "no" >&6; } 3620 fi 3621 3622 if test "x$ac_ct_CC" = x; then 3623 CC="" 3624 else 3625 case $cross_compiling:$ac_tool_warned in 3626 yes:) 3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3628 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3629 ac_tool_warned=yes ;; 3630 esac 3631 CC=$ac_ct_CC 3632 fi 3633 else 3634 CC="$ac_cv_prog_CC" 3635 fi 3636 3637 fi 3638 3639 3640 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3641 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3642 as_fn_error $? "no acceptable C compiler found in \$PATH 3643 See \`config.log' for more details" "$LINENO" 5; } 3644 3645 # Provide some information about the compiler. 3646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3647 set X $ac_compile 3648 ac_compiler=$2 3649 for ac_option in --version -v -V -qversion -version; do 3650 { { ac_try="$ac_compiler $ac_option >&5" 3651 case "(($ac_try" in 3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3653 *) ac_try_echo=$ac_try;; 3654 esac 3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3656 printf "%s\n" "$ac_try_echo"; } >&5 3657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3658 ac_status=$? 3659 if test -s conftest.err; then 3660 sed '10a\ 3661 ... rest of stderr output deleted ... 3662 10q' conftest.err >conftest.er1 3663 cat conftest.er1 >&5 3664 fi 3665 rm -f conftest.er1 conftest.err 3666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3667 test $ac_status = 0; } 3668 done 3669 3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3671 /* end confdefs.h. */ 3672 3673 int 3674 main (void) 3675 { 3676 3677 ; 3678 return 0; 3679 } 3680 _ACEOF 3681 ac_clean_files_save=$ac_clean_files 3682 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3683 # Try to create an executable without -o first, disregard a.out. 3684 # It will help us diagnose broken compilers, and finding out an intuition 3685 # of exeext. 3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3687 printf %s "checking whether the C compiler works... " >&6; } 3688 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3689 3690 # The possible output files: 3691 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3692 3693 ac_rmfiles= 3694 for ac_file in $ac_files 3695 do 3696 case $ac_file in 3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3698 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3699 esac 3700 done 3701 rm -f $ac_rmfiles 3702 3703 if { { ac_try="$ac_link_default" 3704 case "(($ac_try" in 3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3706 *) ac_try_echo=$ac_try;; 3707 esac 3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3709 printf "%s\n" "$ac_try_echo"; } >&5 3710 (eval "$ac_link_default") 2>&5 3711 ac_status=$? 3712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3713 test $ac_status = 0; } 3714 then : 3715 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3716 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3717 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3718 # so that the user can short-circuit this test for compilers unknown to 3719 # Autoconf. 3720 for ac_file in $ac_files '' 3721 do 3722 test -f "$ac_file" || continue 3723 case $ac_file in 3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3725 ;; 3726 [ab].out ) 3727 # We found the default executable, but exeext='' is most 3728 # certainly right. 3729 break;; 3730 *.* ) 3731 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3732 then :; else 3733 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3734 fi 3735 # We set ac_cv_exeext here because the later test for it is not 3736 # safe: cross compilers may not add the suffix if given an `-o' 3737 # argument, so we may need to know it at that point already. 3738 # Even if this section looks crufty: it has the advantage of 3739 # actually working. 3740 break;; 3741 * ) 3742 break;; 3743 esac 3744 done 3745 test "$ac_cv_exeext" = no && ac_cv_exeext= 3746 3747 else $as_nop 3748 ac_file='' 3749 fi 3750 if test -z "$ac_file" 3751 then : 3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3753 printf "%s\n" "no" >&6; } 3754 printf "%s\n" "$as_me: failed program was:" >&5 3755 sed 's/^/| /' conftest.$ac_ext >&5 3756 3757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3758 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3759 as_fn_error 77 "C compiler cannot create executables 3760 See \`config.log' for more details" "$LINENO" 5; } 3761 else $as_nop 3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3763 printf "%s\n" "yes" >&6; } 3764 fi 3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3766 printf %s "checking for C compiler default output file name... " >&6; } 3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3768 printf "%s\n" "$ac_file" >&6; } 3769 ac_exeext=$ac_cv_exeext 3770 3771 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3772 ac_clean_files=$ac_clean_files_save 3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3774 printf %s "checking for suffix of executables... " >&6; } 3775 if { { ac_try="$ac_link" 3776 case "(($ac_try" in 3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3778 *) ac_try_echo=$ac_try;; 3779 esac 3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3781 printf "%s\n" "$ac_try_echo"; } >&5 3782 (eval "$ac_link") 2>&5 3783 ac_status=$? 3784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3785 test $ac_status = 0; } 3786 then : 3787 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3788 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3789 # work properly (i.e., refer to `conftest.exe'), while it won't with 3790 # `rm'. 3791 for ac_file in conftest.exe conftest conftest.*; do 3792 test -f "$ac_file" || continue 3793 case $ac_file in 3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3795 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3796 break;; 3797 * ) break;; 3798 esac 3799 done 3800 else $as_nop 3801 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3802 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3803 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3804 See \`config.log' for more details" "$LINENO" 5; } 3805 fi 3806 rm -f conftest conftest$ac_cv_exeext 3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3808 printf "%s\n" "$ac_cv_exeext" >&6; } 3809 3810 rm -f conftest.$ac_ext 3811 EXEEXT=$ac_cv_exeext 3812 ac_exeext=$EXEEXT 3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3814 /* end confdefs.h. */ 3815 #include <stdio.h> 3816 int 3817 main (void) 3818 { 3819 FILE *f = fopen ("conftest.out", "w"); 3820 return ferror (f) || fclose (f) != 0; 3821 3822 ; 3823 return 0; 3824 } 3825 _ACEOF 3826 ac_clean_files="$ac_clean_files conftest.out" 3827 # Check that the compiler produces executables we can run. If not, either 3828 # the compiler is broken, or we cross compile. 3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3830 printf %s "checking whether we are cross compiling... " >&6; } 3831 if test "$cross_compiling" != yes; then 3832 { { ac_try="$ac_link" 3833 case "(($ac_try" in 3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3835 *) ac_try_echo=$ac_try;; 3836 esac 3837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3838 printf "%s\n" "$ac_try_echo"; } >&5 3839 (eval "$ac_link") 2>&5 3840 ac_status=$? 3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3842 test $ac_status = 0; } 3843 if { ac_try='./conftest$ac_cv_exeext' 3844 { { case "(($ac_try" in 3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3846 *) ac_try_echo=$ac_try;; 3847 esac 3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3849 printf "%s\n" "$ac_try_echo"; } >&5 3850 (eval "$ac_try") 2>&5 3851 ac_status=$? 3852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3853 test $ac_status = 0; }; }; then 3854 cross_compiling=no 3855 else 3856 if test "$cross_compiling" = maybe; then 3857 cross_compiling=yes 3858 else 3859 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3860 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3861 as_fn_error 77 "cannot run C compiled programs. 3862 If you meant to cross compile, use \`--host'. 3863 See \`config.log' for more details" "$LINENO" 5; } 3864 fi 3865 fi 3866 fi 3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3868 printf "%s\n" "$cross_compiling" >&6; } 3869 3870 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3871 ac_clean_files=$ac_clean_files_save 3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3873 printf %s "checking for suffix of object files... " >&6; } 3874 if test ${ac_cv_objext+y} 3875 then : 3876 printf %s "(cached) " >&6 3877 else $as_nop 3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3879 /* end confdefs.h. */ 3880 3881 int 3882 main (void) 3883 { 3884 3885 ; 3886 return 0; 3887 } 3888 _ACEOF 3889 rm -f conftest.o conftest.obj 3890 if { { ac_try="$ac_compile" 3891 case "(($ac_try" in 3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3893 *) ac_try_echo=$ac_try;; 3894 esac 3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3896 printf "%s\n" "$ac_try_echo"; } >&5 3897 (eval "$ac_compile") 2>&5 3898 ac_status=$? 3899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3900 test $ac_status = 0; } 3901 then : 3902 for ac_file in conftest.o conftest.obj conftest.*; do 3903 test -f "$ac_file" || continue; 3904 case $ac_file in 3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3906 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3907 break;; 3908 esac 3909 done 3910 else $as_nop 3911 printf "%s\n" "$as_me: failed program was:" >&5 3912 sed 's/^/| /' conftest.$ac_ext >&5 3913 3914 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3915 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3916 as_fn_error $? "cannot compute suffix of object files: cannot compile 3917 See \`config.log' for more details" "$LINENO" 5; } 3918 fi 3919 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3920 fi 3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3922 printf "%s\n" "$ac_cv_objext" >&6; } 3923 OBJEXT=$ac_cv_objext 3924 ac_objext=$OBJEXT 3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3926 printf %s "checking whether the compiler supports GNU C... " >&6; } 3927 if test ${ac_cv_c_compiler_gnu+y} 3928 then : 3929 printf %s "(cached) " >&6 3930 else $as_nop 3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3932 /* end confdefs.h. */ 3933 3934 int 3935 main (void) 3936 { 3937 #ifndef __GNUC__ 3938 choke me 3939 #endif 3940 3941 ; 3942 return 0; 3943 } 3944 _ACEOF 3945 if ac_fn_c_try_compile "$LINENO" 3946 then : 3947 ac_compiler_gnu=yes 3948 else $as_nop 3949 ac_compiler_gnu=no 3950 fi 3951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3952 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3953 3954 fi 3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3956 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3958 3959 if test $ac_compiler_gnu = yes; then 3960 GCC=yes 3961 else 3962 GCC= 3963 fi 3964 ac_test_CFLAGS=${CFLAGS+y} 3965 ac_save_CFLAGS=$CFLAGS 3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3967 printf %s "checking whether $CC accepts -g... " >&6; } 3968 if test ${ac_cv_prog_cc_g+y} 3969 then : 3970 printf %s "(cached) " >&6 3971 else $as_nop 3972 ac_save_c_werror_flag=$ac_c_werror_flag 3973 ac_c_werror_flag=yes 3974 ac_cv_prog_cc_g=no 3975 CFLAGS="-g" 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3977 /* end confdefs.h. */ 3978 3979 int 3980 main (void) 3981 { 3982 3983 ; 3984 return 0; 3985 } 3986 _ACEOF 3987 if ac_fn_c_try_compile "$LINENO" 3988 then : 3989 ac_cv_prog_cc_g=yes 3990 else $as_nop 3991 CFLAGS="" 3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3993 /* end confdefs.h. */ 3994 3995 int 3996 main (void) 3997 { 3998 3999 ; 4000 return 0; 4001 } 4002 _ACEOF 4003 if ac_fn_c_try_compile "$LINENO" 4004 then : 4005 4006 else $as_nop 4007 ac_c_werror_flag=$ac_save_c_werror_flag 4008 CFLAGS="-g" 4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4010 /* end confdefs.h. */ 4011 4012 int 4013 main (void) 4014 { 4015 4016 ; 4017 return 0; 4018 } 4019 _ACEOF 4020 if ac_fn_c_try_compile "$LINENO" 4021 then : 4022 ac_cv_prog_cc_g=yes 4023 fi 4024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4025 fi 4026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4027 fi 4028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4029 ac_c_werror_flag=$ac_save_c_werror_flag 4030 fi 4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4032 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4033 if test $ac_test_CFLAGS; then 4034 CFLAGS=$ac_save_CFLAGS 4035 elif test $ac_cv_prog_cc_g = yes; then 4036 if test "$GCC" = yes; then 4037 CFLAGS="-g -O2" 4038 else 4039 CFLAGS="-g" 4040 fi 4041 else 4042 if test "$GCC" = yes; then 4043 CFLAGS="-O2" 4044 else 4045 CFLAGS= 4046 fi 4047 fi 4048 ac_prog_cc_stdc=no 4049 if test x$ac_prog_cc_stdc = xno 4050 then : 4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4052 printf %s "checking for $CC option to enable C11 features... " >&6; } 4053 if test ${ac_cv_prog_cc_c11+y} 4054 then : 4055 printf %s "(cached) " >&6 4056 else $as_nop 4057 ac_cv_prog_cc_c11=no 4058 ac_save_CC=$CC 4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4060 /* end confdefs.h. */ 4061 $ac_c_conftest_c11_program 4062 _ACEOF 4063 for ac_arg in '' -std=gnu11 4064 do 4065 CC="$ac_save_CC $ac_arg" 4066 if ac_fn_c_try_compile "$LINENO" 4067 then : 4068 ac_cv_prog_cc_c11=$ac_arg 4069 fi 4070 rm -f core conftest.err conftest.$ac_objext conftest.beam 4071 test "x$ac_cv_prog_cc_c11" != "xno" && break 4072 done 4073 rm -f conftest.$ac_ext 4074 CC=$ac_save_CC 4075 fi 4076 4077 if test "x$ac_cv_prog_cc_c11" = xno 4078 then : 4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4080 printf "%s\n" "unsupported" >&6; } 4081 else $as_nop 4082 if test "x$ac_cv_prog_cc_c11" = x 4083 then : 4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4085 printf "%s\n" "none needed" >&6; } 4086 else $as_nop 4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4088 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4089 CC="$CC $ac_cv_prog_cc_c11" 4090 fi 4091 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4092 ac_prog_cc_stdc=c11 4093 fi 4094 fi 4095 if test x$ac_prog_cc_stdc = xno 4096 then : 4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4098 printf %s "checking for $CC option to enable C99 features... " >&6; } 4099 if test ${ac_cv_prog_cc_c99+y} 4100 then : 4101 printf %s "(cached) " >&6 4102 else $as_nop 4103 ac_cv_prog_cc_c99=no 4104 ac_save_CC=$CC 4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4106 /* end confdefs.h. */ 4107 $ac_c_conftest_c99_program 4108 _ACEOF 4109 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4110 do 4111 CC="$ac_save_CC $ac_arg" 4112 if ac_fn_c_try_compile "$LINENO" 4113 then : 4114 ac_cv_prog_cc_c99=$ac_arg 4115 fi 4116 rm -f core conftest.err conftest.$ac_objext conftest.beam 4117 test "x$ac_cv_prog_cc_c99" != "xno" && break 4118 done 4119 rm -f conftest.$ac_ext 4120 CC=$ac_save_CC 4121 fi 4122 4123 if test "x$ac_cv_prog_cc_c99" = xno 4124 then : 4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4126 printf "%s\n" "unsupported" >&6; } 4127 else $as_nop 4128 if test "x$ac_cv_prog_cc_c99" = x 4129 then : 4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4131 printf "%s\n" "none needed" >&6; } 4132 else $as_nop 4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4134 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4135 CC="$CC $ac_cv_prog_cc_c99" 4136 fi 4137 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4138 ac_prog_cc_stdc=c99 4139 fi 4140 fi 4141 if test x$ac_prog_cc_stdc = xno 4142 then : 4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4144 printf %s "checking for $CC option to enable C89 features... " >&6; } 4145 if test ${ac_cv_prog_cc_c89+y} 4146 then : 4147 printf %s "(cached) " >&6 4148 else $as_nop 4149 ac_cv_prog_cc_c89=no 4150 ac_save_CC=$CC 4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4152 /* end confdefs.h. */ 4153 $ac_c_conftest_c89_program 4154 _ACEOF 4155 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4156 do 4157 CC="$ac_save_CC $ac_arg" 4158 if ac_fn_c_try_compile "$LINENO" 4159 then : 4160 ac_cv_prog_cc_c89=$ac_arg 4161 fi 4162 rm -f core conftest.err conftest.$ac_objext conftest.beam 4163 test "x$ac_cv_prog_cc_c89" != "xno" && break 4164 done 4165 rm -f conftest.$ac_ext 4166 CC=$ac_save_CC 4167 fi 4168 4169 if test "x$ac_cv_prog_cc_c89" = xno 4170 then : 4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4172 printf "%s\n" "unsupported" >&6; } 4173 else $as_nop 4174 if test "x$ac_cv_prog_cc_c89" = x 4175 then : 4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4177 printf "%s\n" "none needed" >&6; } 4178 else $as_nop 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4180 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4181 CC="$CC $ac_cv_prog_cc_c89" 4182 fi 4183 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4184 ac_prog_cc_stdc=c89 4185 fi 4186 fi 4187 4188 ac_ext=c 4189 ac_cpp='$CPP $CPPFLAGS' 4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4193 4194 4195 ac_ext=c 4196 ac_cpp='$CPP $CPPFLAGS' 4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4201 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4202 if test ${am_cv_prog_cc_c_o+y} 4203 then : 4204 printf %s "(cached) " >&6 4205 else $as_nop 4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4207 /* end confdefs.h. */ 4208 4209 int 4210 main (void) 4211 { 4212 4213 ; 4214 return 0; 4215 } 4216 _ACEOF 4217 # Make sure it works both with $CC and with simple cc. 4218 # Following AC_PROG_CC_C_O, we do the test twice because some 4219 # compilers refuse to overwrite an existing .o file with -o, 4220 # though they will create one. 4221 am_cv_prog_cc_c_o=yes 4222 for am_i in 1 2; do 4223 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4224 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4225 ac_status=$? 4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4227 (exit $ac_status); } \ 4228 && test -f conftest2.$ac_objext; then 4229 : OK 4230 else 4231 am_cv_prog_cc_c_o=no 4232 break 4233 fi 4234 done 4235 rm -f core conftest* 4236 unset am_i 4237 fi 4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4239 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4240 if test "$am_cv_prog_cc_c_o" != yes; then 4241 # Losing compiler, so override with the script. 4242 # FIXME: It is wrong to rewrite CC. 4243 # But if we don't then we get into trouble of one sort or another. 4244 # A longer-term fix would be to have automake use am__CC in this case, 4245 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4246 CC="$am_aux_dir/compile $CC" 4247 fi 4248 ac_ext=c 4249 ac_cpp='$CPP $CPPFLAGS' 4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4253 4254 4255 depcc="$CC" am_compiler_list= 4256 4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4258 printf %s "checking dependency style of $depcc... " >&6; } 4259 if test ${am_cv_CC_dependencies_compiler_type+y} 4260 then : 4261 printf %s "(cached) " >&6 4262 else $as_nop 4263 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4264 # We make a subdir and do the tests there. Otherwise we can end up 4265 # making bogus files that we don't know about and never remove. For 4266 # instance it was reported that on HP-UX the gcc test will end up 4267 # making a dummy file named 'D' -- because '-MD' means "put the output 4268 # in D". 4269 rm -rf conftest.dir 4270 mkdir conftest.dir 4271 # Copy depcomp to subdir because otherwise we won't find it if we're 4272 # using a relative directory. 4273 cp "$am_depcomp" conftest.dir 4274 cd conftest.dir 4275 # We will build objects and dependencies in a subdirectory because 4276 # it helps to detect inapplicable dependency modes. For instance 4277 # both Tru64's cc and ICC support -MD to output dependencies as a 4278 # side effect of compilation, but ICC will put the dependencies in 4279 # the current directory while Tru64 will put them in the object 4280 # directory. 4281 mkdir sub 4282 4283 am_cv_CC_dependencies_compiler_type=none 4284 if test "$am_compiler_list" = ""; then 4285 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4286 fi 4287 am__universal=false 4288 case " $depcc " in #( 4289 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4290 esac 4291 4292 for depmode in $am_compiler_list; do 4293 # Setup a source with many dependencies, because some compilers 4294 # like to wrap large dependency lists on column 80 (with \), and 4295 # we should not choose a depcomp mode which is confused by this. 4296 # 4297 # We need to recreate these files for each test, as the compiler may 4298 # overwrite some of them when testing with obscure command lines. 4299 # This happens at least with the AIX C compiler. 4300 : > sub/conftest.c 4301 for i in 1 2 3 4 5 6; do 4302 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4303 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4304 # Solaris 10 /bin/sh. 4305 echo '/* dummy */' > sub/conftst$i.h 4306 done 4307 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4308 4309 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4310 # mode. It turns out that the SunPro C++ compiler does not properly 4311 # handle '-M -o', and we need to detect this. Also, some Intel 4312 # versions had trouble with output in subdirs. 4313 am__obj=sub/conftest.${OBJEXT-o} 4314 am__minus_obj="-o $am__obj" 4315 case $depmode in 4316 gcc) 4317 # This depmode causes a compiler race in universal mode. 4318 test "$am__universal" = false || continue 4319 ;; 4320 nosideeffect) 4321 # After this tag, mechanisms are not by side-effect, so they'll 4322 # only be used when explicitly requested. 4323 if test "x$enable_dependency_tracking" = xyes; then 4324 continue 4325 else 4326 break 4327 fi 4328 ;; 4329 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4330 # This compiler won't grok '-c -o', but also, the minuso test has 4331 # not run yet. These depmodes are late enough in the game, and 4332 # so weak that their functioning should not be impacted. 4333 am__obj=conftest.${OBJEXT-o} 4334 am__minus_obj= 4335 ;; 4336 none) break ;; 4337 esac 4338 if depmode=$depmode \ 4339 source=sub/conftest.c object=$am__obj \ 4340 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4341 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4342 >/dev/null 2>conftest.err && 4343 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4344 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4345 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4346 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4347 # icc doesn't choke on unknown options, it will just issue warnings 4348 # or remarks (even with -Werror). So we grep stderr for any message 4349 # that says an option was ignored or not supported. 4350 # When given -MP, icc 7.0 and 7.1 complain thusly: 4351 # icc: Command line warning: ignoring option '-M'; no argument required 4352 # The diagnosis changed in icc 8.0: 4353 # icc: Command line remark: option '-MP' not supported 4354 if (grep 'ignoring option' conftest.err || 4355 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4356 am_cv_CC_dependencies_compiler_type=$depmode 4357 break 4358 fi 4359 fi 4360 done 4361 4362 cd .. 4363 rm -rf conftest.dir 4364 else 4365 am_cv_CC_dependencies_compiler_type=none 4366 fi 4367 4368 fi 4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4370 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4371 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4372 4373 if 4374 test "x$enable_dependency_tracking" != xno \ 4375 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4376 am__fastdepCC_TRUE= 4377 am__fastdepCC_FALSE='#' 4378 else 4379 am__fastdepCC_TRUE='#' 4380 am__fastdepCC_FALSE= 4381 fi 4382 4383 4384 4385 4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4387 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4388 if test ${ac_cv_c_undeclared_builtin_options+y} 4389 then : 4390 printf %s "(cached) " >&6 4391 else $as_nop 4392 ac_save_CFLAGS=$CFLAGS 4393 ac_cv_c_undeclared_builtin_options='cannot detect' 4394 for ac_arg in '' -fno-builtin; do 4395 CFLAGS="$ac_save_CFLAGS $ac_arg" 4396 # This test program should *not* compile successfully. 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398 /* end confdefs.h. */ 4399 4400 int 4401 main (void) 4402 { 4403 (void) strchr; 4404 ; 4405 return 0; 4406 } 4407 _ACEOF 4408 if ac_fn_c_try_compile "$LINENO" 4409 then : 4410 4411 else $as_nop 4412 # This test program should compile successfully. 4413 # No library function is consistently available on 4414 # freestanding implementations, so test against a dummy 4415 # declaration. Include always-available headers on the 4416 # off chance that they somehow elicit warnings. 4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4418 /* end confdefs.h. */ 4419 #include <float.h> 4420 #include <limits.h> 4421 #include <stdarg.h> 4422 #include <stddef.h> 4423 extern void ac_decl (int, char *); 4424 4425 int 4426 main (void) 4427 { 4428 (void) ac_decl (0, (char *) 0); 4429 (void) ac_decl; 4430 4431 ; 4432 return 0; 4433 } 4434 _ACEOF 4435 if ac_fn_c_try_compile "$LINENO" 4436 then : 4437 if test x"$ac_arg" = x 4438 then : 4439 ac_cv_c_undeclared_builtin_options='none needed' 4440 else $as_nop 4441 ac_cv_c_undeclared_builtin_options=$ac_arg 4442 fi 4443 break 4444 fi 4445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4446 fi 4447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4448 done 4449 CFLAGS=$ac_save_CFLAGS 4450 4451 fi 4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4453 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4454 case $ac_cv_c_undeclared_builtin_options in #( 4455 'cannot detect') : 4456 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4457 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4458 as_fn_error $? "cannot make $CC report undeclared builtins 4459 See \`config.log' for more details" "$LINENO" 5; } ;; #( 4460 'none needed') : 4461 ac_c_undeclared_builtin_options='' ;; #( 4462 *) : 4463 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4464 esac 4465 4466 ac_header= ac_cache= 4467 for ac_item in $ac_header_c_list 4468 do 4469 if test $ac_cache; then 4470 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4471 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4472 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4473 fi 4474 ac_header= ac_cache= 4475 elif test $ac_header; then 4476 ac_cache=$ac_item 4477 else 4478 ac_header=$ac_item 4479 fi 4480 done 4481 4482 4483 4484 4485 4486 4487 4488 4489 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4490 then : 4491 4492 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4493 4494 fi 4495 4496 4497 4498 4499 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4500 if test "x$ac_cv_have_decl___clang__" = xyes 4501 then : 4502 CLANGCC="yes" 4503 else $as_nop 4504 CLANGCC="no" 4505 fi 4506 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4507 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4508 then : 4509 INTELCC="yes" 4510 else $as_nop 4511 INTELCC="no" 4512 fi 4513 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4514 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4515 then : 4516 SUNCC="yes" 4517 else $as_nop 4518 SUNCC="no" 4519 fi 4520 4521 4522 4523 4524 4525 4526 4527 4528 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4529 if test -n "$ac_tool_prefix"; then 4530 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4531 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4533 printf %s "checking for $ac_word... " >&6; } 4534 if test ${ac_cv_path_PKG_CONFIG+y} 4535 then : 4536 printf %s "(cached) " >&6 4537 else $as_nop 4538 case $PKG_CONFIG in 4539 [\\/]* | ?:[\\/]*) 4540 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4541 ;; 4542 *) 4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4544 for as_dir in $PATH 4545 do 4546 IFS=$as_save_IFS 4547 case $as_dir in #((( 4548 '') as_dir=./ ;; 4549 */) ;; 4550 *) as_dir=$as_dir/ ;; 4551 esac 4552 for ac_exec_ext in '' $ac_executable_extensions; do 4553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4554 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4556 break 2 4557 fi 4558 done 4559 done 4560 IFS=$as_save_IFS 4561 4562 ;; 4563 esac 4564 fi 4565 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4566 if test -n "$PKG_CONFIG"; then 4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4568 printf "%s\n" "$PKG_CONFIG" >&6; } 4569 else 4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4571 printf "%s\n" "no" >&6; } 4572 fi 4573 4574 4575 fi 4576 if test -z "$ac_cv_path_PKG_CONFIG"; then 4577 ac_pt_PKG_CONFIG=$PKG_CONFIG 4578 # Extract the first word of "pkg-config", so it can be a program name with args. 4579 set dummy pkg-config; ac_word=$2 4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4581 printf %s "checking for $ac_word... " >&6; } 4582 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4583 then : 4584 printf %s "(cached) " >&6 4585 else $as_nop 4586 case $ac_pt_PKG_CONFIG in 4587 [\\/]* | ?:[\\/]*) 4588 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4589 ;; 4590 *) 4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4592 for as_dir in $PATH 4593 do 4594 IFS=$as_save_IFS 4595 case $as_dir in #((( 4596 '') as_dir=./ ;; 4597 */) ;; 4598 *) as_dir=$as_dir/ ;; 4599 esac 4600 for ac_exec_ext in '' $ac_executable_extensions; do 4601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4602 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4604 break 2 4605 fi 4606 done 4607 done 4608 IFS=$as_save_IFS 4609 4610 ;; 4611 esac 4612 fi 4613 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4614 if test -n "$ac_pt_PKG_CONFIG"; then 4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4616 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4617 else 4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4619 printf "%s\n" "no" >&6; } 4620 fi 4621 4622 if test "x$ac_pt_PKG_CONFIG" = x; then 4623 PKG_CONFIG="" 4624 else 4625 case $cross_compiling:$ac_tool_warned in 4626 yes:) 4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4628 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4629 ac_tool_warned=yes ;; 4630 esac 4631 PKG_CONFIG=$ac_pt_PKG_CONFIG 4632 fi 4633 else 4634 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4635 fi 4636 4637 fi 4638 if test -n "$PKG_CONFIG"; then 4639 _pkg_min_version=0.9.0 4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4641 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4642 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4644 printf "%s\n" "yes" >&6; } 4645 else 4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647 printf "%s\n" "no" >&6; } 4648 PKG_CONFIG="" 4649 fi 4650 fi 4651 4652 4653 # Make sure we can run config.sub. 4654 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4655 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4656 4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4658 printf %s "checking build system type... " >&6; } 4659 if test ${ac_cv_build+y} 4660 then : 4661 printf %s "(cached) " >&6 4662 else $as_nop 4663 ac_build_alias=$build_alias 4664 test "x$ac_build_alias" = x && 4665 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4666 test "x$ac_build_alias" = x && 4667 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4668 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4669 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4670 4671 fi 4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4673 printf "%s\n" "$ac_cv_build" >&6; } 4674 case $ac_cv_build in 4675 *-*-*) ;; 4676 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4677 esac 4678 build=$ac_cv_build 4679 ac_save_IFS=$IFS; IFS='-' 4680 set x $ac_cv_build 4681 shift 4682 build_cpu=$1 4683 build_vendor=$2 4684 shift; shift 4685 # Remember, the first character of IFS is used to create $*, 4686 # except with old shells: 4687 build_os=$* 4688 IFS=$ac_save_IFS 4689 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4690 4691 4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4693 printf %s "checking host system type... " >&6; } 4694 if test ${ac_cv_host+y} 4695 then : 4696 printf %s "(cached) " >&6 4697 else $as_nop 4698 if test "x$host_alias" = x; then 4699 ac_cv_host=$ac_cv_build 4700 else 4701 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4702 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4703 fi 4704 4705 fi 4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4707 printf "%s\n" "$ac_cv_host" >&6; } 4708 case $ac_cv_host in 4709 *-*-*) ;; 4710 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4711 esac 4712 host=$ac_cv_host 4713 ac_save_IFS=$IFS; IFS='-' 4714 set x $ac_cv_host 4715 shift 4716 host_cpu=$1 4717 host_vendor=$2 4718 shift; shift 4719 # Remember, the first character of IFS is used to create $*, 4720 # except with old shells: 4721 host_os=$* 4722 IFS=$ac_save_IFS 4723 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4724 4725 4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4727 printf %s "checking for a sed that does not truncate output... " >&6; } 4728 if test ${ac_cv_path_SED+y} 4729 then : 4730 printf %s "(cached) " >&6 4731 else $as_nop 4732 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4733 for ac_i in 1 2 3 4 5 6 7; do 4734 ac_script="$ac_script$as_nl$ac_script" 4735 done 4736 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4737 { ac_script=; unset ac_script;} 4738 if test -z "$SED"; then 4739 ac_path_SED_found=false 4740 # Loop through the user's path and test for each of PROGNAME-LIST 4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4742 for as_dir in $PATH 4743 do 4744 IFS=$as_save_IFS 4745 case $as_dir in #((( 4746 '') as_dir=./ ;; 4747 */) ;; 4748 *) as_dir=$as_dir/ ;; 4749 esac 4750 for ac_prog in sed gsed 4751 do 4752 for ac_exec_ext in '' $ac_executable_extensions; do 4753 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4754 as_fn_executable_p "$ac_path_SED" || continue 4755 # Check for GNU ac_path_SED and select it if it is found. 4756 # Check for GNU $ac_path_SED 4757 case `"$ac_path_SED" --version 2>&1` in 4758 *GNU*) 4759 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4760 *) 4761 ac_count=0 4762 printf %s 0123456789 >"conftest.in" 4763 while : 4764 do 4765 cat "conftest.in" "conftest.in" >"conftest.tmp" 4766 mv "conftest.tmp" "conftest.in" 4767 cp "conftest.in" "conftest.nl" 4768 printf "%s\n" '' >> "conftest.nl" 4769 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4771 as_fn_arith $ac_count + 1 && ac_count=$as_val 4772 if test $ac_count -gt ${ac_path_SED_max-0}; then 4773 # Best one so far, save it but keep looking for a better one 4774 ac_cv_path_SED="$ac_path_SED" 4775 ac_path_SED_max=$ac_count 4776 fi 4777 # 10*(2^10) chars as input seems more than enough 4778 test $ac_count -gt 10 && break 4779 done 4780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4781 esac 4782 4783 $ac_path_SED_found && break 3 4784 done 4785 done 4786 done 4787 IFS=$as_save_IFS 4788 if test -z "$ac_cv_path_SED"; then 4789 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4790 fi 4791 else 4792 ac_cv_path_SED=$SED 4793 fi 4794 4795 fi 4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4797 printf "%s\n" "$ac_cv_path_SED" >&6; } 4798 SED="$ac_cv_path_SED" 4799 rm -f conftest.sed 4800 4801 4802 4803 4804 4805 4806 # Check whether --enable-selective-werror was given. 4807 if test ${enable_selective_werror+y} 4808 then : 4809 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4810 else $as_nop 4811 SELECTIVE_WERROR=yes 4812 fi 4813 4814 4815 4816 4817 4818 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4819 if test "x$SUNCC" = "xyes"; then 4820 BASE_CFLAGS="-v" 4821 else 4822 BASE_CFLAGS="" 4823 fi 4824 4825 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 xorg_testset_save_CFLAGS="$CFLAGS" 4840 4841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4844 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4845 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4846 then : 4847 printf %s "(cached) " >&6 4848 else $as_nop 4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4850 /* end confdefs.h. */ 4851 int i; 4852 _ACEOF 4853 if ac_fn_c_try_compile "$LINENO" 4854 then : 4855 xorg_cv_cc_flag_unknown_warning_option=yes 4856 else $as_nop 4857 xorg_cv_cc_flag_unknown_warning_option=no 4858 fi 4859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4860 fi 4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4862 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4864 CFLAGS="$xorg_testset_save_CFLAGS" 4865 fi 4866 4867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4870 fi 4871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4873 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4874 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4875 then : 4876 printf %s "(cached) " >&6 4877 else $as_nop 4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4879 /* end confdefs.h. */ 4880 int i; 4881 _ACEOF 4882 if ac_fn_c_try_compile "$LINENO" 4883 then : 4884 xorg_cv_cc_flag_unused_command_line_argument=yes 4885 else $as_nop 4886 xorg_cv_cc_flag_unused_command_line_argument=no 4887 fi 4888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4889 fi 4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4891 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4893 CFLAGS="$xorg_testset_save_CFLAGS" 4894 fi 4895 4896 found="no" 4897 4898 if test $found = "no" ; then 4899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4901 fi 4902 4903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4905 fi 4906 4907 CFLAGS="$CFLAGS -Wall" 4908 4909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4910 printf %s "checking if $CC supports -Wall... " >&6; } 4911 cacheid=xorg_cv_cc_flag__Wall 4912 if eval test \${$cacheid+y} 4913 then : 4914 printf %s "(cached) " >&6 4915 else $as_nop 4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4917 /* end confdefs.h. */ 4918 int i; 4919 int 4920 main (void) 4921 { 4922 4923 ; 4924 return 0; 4925 } 4926 _ACEOF 4927 if ac_fn_c_try_link "$LINENO" 4928 then : 4929 eval $cacheid=yes 4930 else $as_nop 4931 eval $cacheid=no 4932 fi 4933 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4934 conftest$ac_exeext conftest.$ac_ext 4935 fi 4936 4937 4938 CFLAGS="$xorg_testset_save_CFLAGS" 4939 4940 eval supported=\$$cacheid 4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4942 printf "%s\n" "$supported" >&6; } 4943 if test "$supported" = "yes" ; then 4944 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4945 found="yes" 4946 fi 4947 fi 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 xorg_testset_save_CFLAGS="$CFLAGS" 4964 4965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4968 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4969 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4970 then : 4971 printf %s "(cached) " >&6 4972 else $as_nop 4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4974 /* end confdefs.h. */ 4975 int i; 4976 _ACEOF 4977 if ac_fn_c_try_compile "$LINENO" 4978 then : 4979 xorg_cv_cc_flag_unknown_warning_option=yes 4980 else $as_nop 4981 xorg_cv_cc_flag_unknown_warning_option=no 4982 fi 4983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4984 fi 4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4986 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4988 CFLAGS="$xorg_testset_save_CFLAGS" 4989 fi 4990 4991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4994 fi 4995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4997 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4998 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4999 then : 5000 printf %s "(cached) " >&6 5001 else $as_nop 5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5003 /* end confdefs.h. */ 5004 int i; 5005 _ACEOF 5006 if ac_fn_c_try_compile "$LINENO" 5007 then : 5008 xorg_cv_cc_flag_unused_command_line_argument=yes 5009 else $as_nop 5010 xorg_cv_cc_flag_unused_command_line_argument=no 5011 fi 5012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5013 fi 5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5015 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5017 CFLAGS="$xorg_testset_save_CFLAGS" 5018 fi 5019 5020 found="no" 5021 5022 if test $found = "no" ; then 5023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5025 fi 5026 5027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5029 fi 5030 5031 CFLAGS="$CFLAGS -Wpointer-arith" 5032 5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5034 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5035 cacheid=xorg_cv_cc_flag__Wpointer_arith 5036 if eval test \${$cacheid+y} 5037 then : 5038 printf %s "(cached) " >&6 5039 else $as_nop 5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5041 /* end confdefs.h. */ 5042 int i; 5043 int 5044 main (void) 5045 { 5046 5047 ; 5048 return 0; 5049 } 5050 _ACEOF 5051 if ac_fn_c_try_link "$LINENO" 5052 then : 5053 eval $cacheid=yes 5054 else $as_nop 5055 eval $cacheid=no 5056 fi 5057 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5058 conftest$ac_exeext conftest.$ac_ext 5059 fi 5060 5061 5062 CFLAGS="$xorg_testset_save_CFLAGS" 5063 5064 eval supported=\$$cacheid 5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5066 printf "%s\n" "$supported" >&6; } 5067 if test "$supported" = "yes" ; then 5068 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5069 found="yes" 5070 fi 5071 fi 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 xorg_testset_save_CFLAGS="$CFLAGS" 5088 5089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5092 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5093 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5094 then : 5095 printf %s "(cached) " >&6 5096 else $as_nop 5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5098 /* end confdefs.h. */ 5099 int i; 5100 _ACEOF 5101 if ac_fn_c_try_compile "$LINENO" 5102 then : 5103 xorg_cv_cc_flag_unknown_warning_option=yes 5104 else $as_nop 5105 xorg_cv_cc_flag_unknown_warning_option=no 5106 fi 5107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5108 fi 5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5110 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5112 CFLAGS="$xorg_testset_save_CFLAGS" 5113 fi 5114 5115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5118 fi 5119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5121 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5122 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5123 then : 5124 printf %s "(cached) " >&6 5125 else $as_nop 5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5127 /* end confdefs.h. */ 5128 int i; 5129 _ACEOF 5130 if ac_fn_c_try_compile "$LINENO" 5131 then : 5132 xorg_cv_cc_flag_unused_command_line_argument=yes 5133 else $as_nop 5134 xorg_cv_cc_flag_unused_command_line_argument=no 5135 fi 5136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5137 fi 5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5139 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5141 CFLAGS="$xorg_testset_save_CFLAGS" 5142 fi 5143 5144 found="no" 5145 5146 if test $found = "no" ; then 5147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5149 fi 5150 5151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5153 fi 5154 5155 CFLAGS="$CFLAGS -Wmissing-declarations" 5156 5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5158 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5159 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5160 if eval test \${$cacheid+y} 5161 then : 5162 printf %s "(cached) " >&6 5163 else $as_nop 5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5165 /* end confdefs.h. */ 5166 int i; 5167 int 5168 main (void) 5169 { 5170 5171 ; 5172 return 0; 5173 } 5174 _ACEOF 5175 if ac_fn_c_try_link "$LINENO" 5176 then : 5177 eval $cacheid=yes 5178 else $as_nop 5179 eval $cacheid=no 5180 fi 5181 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5182 conftest$ac_exeext conftest.$ac_ext 5183 fi 5184 5185 5186 CFLAGS="$xorg_testset_save_CFLAGS" 5187 5188 eval supported=\$$cacheid 5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5190 printf "%s\n" "$supported" >&6; } 5191 if test "$supported" = "yes" ; then 5192 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5193 found="yes" 5194 fi 5195 fi 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 xorg_testset_save_CFLAGS="$CFLAGS" 5212 5213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5216 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5217 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5218 then : 5219 printf %s "(cached) " >&6 5220 else $as_nop 5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5222 /* end confdefs.h. */ 5223 int i; 5224 _ACEOF 5225 if ac_fn_c_try_compile "$LINENO" 5226 then : 5227 xorg_cv_cc_flag_unknown_warning_option=yes 5228 else $as_nop 5229 xorg_cv_cc_flag_unknown_warning_option=no 5230 fi 5231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5232 fi 5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5234 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5236 CFLAGS="$xorg_testset_save_CFLAGS" 5237 fi 5238 5239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5242 fi 5243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5245 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5246 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5247 then : 5248 printf %s "(cached) " >&6 5249 else $as_nop 5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5251 /* end confdefs.h. */ 5252 int i; 5253 _ACEOF 5254 if ac_fn_c_try_compile "$LINENO" 5255 then : 5256 xorg_cv_cc_flag_unused_command_line_argument=yes 5257 else $as_nop 5258 xorg_cv_cc_flag_unused_command_line_argument=no 5259 fi 5260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5261 fi 5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5263 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5265 CFLAGS="$xorg_testset_save_CFLAGS" 5266 fi 5267 5268 found="no" 5269 5270 if test $found = "no" ; then 5271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5273 fi 5274 5275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5277 fi 5278 5279 CFLAGS="$CFLAGS -Wformat=2" 5280 5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5282 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5283 cacheid=xorg_cv_cc_flag__Wformat_2 5284 if eval test \${$cacheid+y} 5285 then : 5286 printf %s "(cached) " >&6 5287 else $as_nop 5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5289 /* end confdefs.h. */ 5290 int i; 5291 int 5292 main (void) 5293 { 5294 5295 ; 5296 return 0; 5297 } 5298 _ACEOF 5299 if ac_fn_c_try_link "$LINENO" 5300 then : 5301 eval $cacheid=yes 5302 else $as_nop 5303 eval $cacheid=no 5304 fi 5305 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5306 conftest$ac_exeext conftest.$ac_ext 5307 fi 5308 5309 5310 CFLAGS="$xorg_testset_save_CFLAGS" 5311 5312 eval supported=\$$cacheid 5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5314 printf "%s\n" "$supported" >&6; } 5315 if test "$supported" = "yes" ; then 5316 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5317 found="yes" 5318 fi 5319 fi 5320 5321 if test $found = "no" ; then 5322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5324 fi 5325 5326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5328 fi 5329 5330 CFLAGS="$CFLAGS -Wformat" 5331 5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5333 printf %s "checking if $CC supports -Wformat... " >&6; } 5334 cacheid=xorg_cv_cc_flag__Wformat 5335 if eval test \${$cacheid+y} 5336 then : 5337 printf %s "(cached) " >&6 5338 else $as_nop 5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5340 /* end confdefs.h. */ 5341 int i; 5342 int 5343 main (void) 5344 { 5345 5346 ; 5347 return 0; 5348 } 5349 _ACEOF 5350 if ac_fn_c_try_link "$LINENO" 5351 then : 5352 eval $cacheid=yes 5353 else $as_nop 5354 eval $cacheid=no 5355 fi 5356 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5357 conftest$ac_exeext conftest.$ac_ext 5358 fi 5359 5360 5361 CFLAGS="$xorg_testset_save_CFLAGS" 5362 5363 eval supported=\$$cacheid 5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5365 printf "%s\n" "$supported" >&6; } 5366 if test "$supported" = "yes" ; then 5367 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5368 found="yes" 5369 fi 5370 fi 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 xorg_testset_save_CFLAGS="$CFLAGS" 5389 5390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5393 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5394 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5395 then : 5396 printf %s "(cached) " >&6 5397 else $as_nop 5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5399 /* end confdefs.h. */ 5400 int i; 5401 _ACEOF 5402 if ac_fn_c_try_compile "$LINENO" 5403 then : 5404 xorg_cv_cc_flag_unknown_warning_option=yes 5405 else $as_nop 5406 xorg_cv_cc_flag_unknown_warning_option=no 5407 fi 5408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5409 fi 5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5411 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5413 CFLAGS="$xorg_testset_save_CFLAGS" 5414 fi 5415 5416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5419 fi 5420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5422 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5423 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5424 then : 5425 printf %s "(cached) " >&6 5426 else $as_nop 5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5428 /* end confdefs.h. */ 5429 int i; 5430 _ACEOF 5431 if ac_fn_c_try_compile "$LINENO" 5432 then : 5433 xorg_cv_cc_flag_unused_command_line_argument=yes 5434 else $as_nop 5435 xorg_cv_cc_flag_unused_command_line_argument=no 5436 fi 5437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5438 fi 5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5440 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5442 CFLAGS="$xorg_testset_save_CFLAGS" 5443 fi 5444 5445 found="no" 5446 5447 if test $found = "no" ; then 5448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5450 fi 5451 5452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5454 fi 5455 5456 CFLAGS="$CFLAGS -Wstrict-prototypes" 5457 5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5459 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5460 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5461 if eval test \${$cacheid+y} 5462 then : 5463 printf %s "(cached) " >&6 5464 else $as_nop 5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5466 /* end confdefs.h. */ 5467 int i; 5468 int 5469 main (void) 5470 { 5471 5472 ; 5473 return 0; 5474 } 5475 _ACEOF 5476 if ac_fn_c_try_link "$LINENO" 5477 then : 5478 eval $cacheid=yes 5479 else $as_nop 5480 eval $cacheid=no 5481 fi 5482 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5483 conftest$ac_exeext conftest.$ac_ext 5484 fi 5485 5486 5487 CFLAGS="$xorg_testset_save_CFLAGS" 5488 5489 eval supported=\$$cacheid 5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5491 printf "%s\n" "$supported" >&6; } 5492 if test "$supported" = "yes" ; then 5493 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5494 found="yes" 5495 fi 5496 fi 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 xorg_testset_save_CFLAGS="$CFLAGS" 5513 5514 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5517 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5518 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5519 then : 5520 printf %s "(cached) " >&6 5521 else $as_nop 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5523 /* end confdefs.h. */ 5524 int i; 5525 _ACEOF 5526 if ac_fn_c_try_compile "$LINENO" 5527 then : 5528 xorg_cv_cc_flag_unknown_warning_option=yes 5529 else $as_nop 5530 xorg_cv_cc_flag_unknown_warning_option=no 5531 fi 5532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5533 fi 5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5535 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5537 CFLAGS="$xorg_testset_save_CFLAGS" 5538 fi 5539 5540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5543 fi 5544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5546 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5547 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5548 then : 5549 printf %s "(cached) " >&6 5550 else $as_nop 5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5552 /* end confdefs.h. */ 5553 int i; 5554 _ACEOF 5555 if ac_fn_c_try_compile "$LINENO" 5556 then : 5557 xorg_cv_cc_flag_unused_command_line_argument=yes 5558 else $as_nop 5559 xorg_cv_cc_flag_unused_command_line_argument=no 5560 fi 5561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5562 fi 5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5564 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5566 CFLAGS="$xorg_testset_save_CFLAGS" 5567 fi 5568 5569 found="no" 5570 5571 if test $found = "no" ; then 5572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5574 fi 5575 5576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5578 fi 5579 5580 CFLAGS="$CFLAGS -Wmissing-prototypes" 5581 5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5583 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5584 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5585 if eval test \${$cacheid+y} 5586 then : 5587 printf %s "(cached) " >&6 5588 else $as_nop 5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5590 /* end confdefs.h. */ 5591 int i; 5592 int 5593 main (void) 5594 { 5595 5596 ; 5597 return 0; 5598 } 5599 _ACEOF 5600 if ac_fn_c_try_link "$LINENO" 5601 then : 5602 eval $cacheid=yes 5603 else $as_nop 5604 eval $cacheid=no 5605 fi 5606 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5607 conftest$ac_exeext conftest.$ac_ext 5608 fi 5609 5610 5611 CFLAGS="$xorg_testset_save_CFLAGS" 5612 5613 eval supported=\$$cacheid 5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5615 printf "%s\n" "$supported" >&6; } 5616 if test "$supported" = "yes" ; then 5617 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5618 found="yes" 5619 fi 5620 fi 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 xorg_testset_save_CFLAGS="$CFLAGS" 5637 5638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5641 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5642 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5643 then : 5644 printf %s "(cached) " >&6 5645 else $as_nop 5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647 /* end confdefs.h. */ 5648 int i; 5649 _ACEOF 5650 if ac_fn_c_try_compile "$LINENO" 5651 then : 5652 xorg_cv_cc_flag_unknown_warning_option=yes 5653 else $as_nop 5654 xorg_cv_cc_flag_unknown_warning_option=no 5655 fi 5656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5657 fi 5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5659 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5661 CFLAGS="$xorg_testset_save_CFLAGS" 5662 fi 5663 5664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5667 fi 5668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5670 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5671 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5672 then : 5673 printf %s "(cached) " >&6 5674 else $as_nop 5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5676 /* end confdefs.h. */ 5677 int i; 5678 _ACEOF 5679 if ac_fn_c_try_compile "$LINENO" 5680 then : 5681 xorg_cv_cc_flag_unused_command_line_argument=yes 5682 else $as_nop 5683 xorg_cv_cc_flag_unused_command_line_argument=no 5684 fi 5685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5686 fi 5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5688 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5690 CFLAGS="$xorg_testset_save_CFLAGS" 5691 fi 5692 5693 found="no" 5694 5695 if test $found = "no" ; then 5696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5698 fi 5699 5700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5702 fi 5703 5704 CFLAGS="$CFLAGS -Wnested-externs" 5705 5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5707 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5708 cacheid=xorg_cv_cc_flag__Wnested_externs 5709 if eval test \${$cacheid+y} 5710 then : 5711 printf %s "(cached) " >&6 5712 else $as_nop 5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5714 /* end confdefs.h. */ 5715 int i; 5716 int 5717 main (void) 5718 { 5719 5720 ; 5721 return 0; 5722 } 5723 _ACEOF 5724 if ac_fn_c_try_link "$LINENO" 5725 then : 5726 eval $cacheid=yes 5727 else $as_nop 5728 eval $cacheid=no 5729 fi 5730 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5731 conftest$ac_exeext conftest.$ac_ext 5732 fi 5733 5734 5735 CFLAGS="$xorg_testset_save_CFLAGS" 5736 5737 eval supported=\$$cacheid 5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5739 printf "%s\n" "$supported" >&6; } 5740 if test "$supported" = "yes" ; then 5741 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5742 found="yes" 5743 fi 5744 fi 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 xorg_testset_save_CFLAGS="$CFLAGS" 5761 5762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5765 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5766 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5767 then : 5768 printf %s "(cached) " >&6 5769 else $as_nop 5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5771 /* end confdefs.h. */ 5772 int i; 5773 _ACEOF 5774 if ac_fn_c_try_compile "$LINENO" 5775 then : 5776 xorg_cv_cc_flag_unknown_warning_option=yes 5777 else $as_nop 5778 xorg_cv_cc_flag_unknown_warning_option=no 5779 fi 5780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5781 fi 5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5783 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5785 CFLAGS="$xorg_testset_save_CFLAGS" 5786 fi 5787 5788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5791 fi 5792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5794 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5795 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5796 then : 5797 printf %s "(cached) " >&6 5798 else $as_nop 5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5800 /* end confdefs.h. */ 5801 int i; 5802 _ACEOF 5803 if ac_fn_c_try_compile "$LINENO" 5804 then : 5805 xorg_cv_cc_flag_unused_command_line_argument=yes 5806 else $as_nop 5807 xorg_cv_cc_flag_unused_command_line_argument=no 5808 fi 5809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5810 fi 5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5812 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5814 CFLAGS="$xorg_testset_save_CFLAGS" 5815 fi 5816 5817 found="no" 5818 5819 if test $found = "no" ; then 5820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5822 fi 5823 5824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5826 fi 5827 5828 CFLAGS="$CFLAGS -Wbad-function-cast" 5829 5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5831 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5832 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5833 if eval test \${$cacheid+y} 5834 then : 5835 printf %s "(cached) " >&6 5836 else $as_nop 5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5838 /* end confdefs.h. */ 5839 int i; 5840 int 5841 main (void) 5842 { 5843 5844 ; 5845 return 0; 5846 } 5847 _ACEOF 5848 if ac_fn_c_try_link "$LINENO" 5849 then : 5850 eval $cacheid=yes 5851 else $as_nop 5852 eval $cacheid=no 5853 fi 5854 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5855 conftest$ac_exeext conftest.$ac_ext 5856 fi 5857 5858 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5860 5861 eval supported=\$$cacheid 5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5863 printf "%s\n" "$supported" >&6; } 5864 if test "$supported" = "yes" ; then 5865 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5866 found="yes" 5867 fi 5868 fi 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 xorg_testset_save_CFLAGS="$CFLAGS" 5885 5886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5889 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5890 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5891 then : 5892 printf %s "(cached) " >&6 5893 else $as_nop 5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5895 /* end confdefs.h. */ 5896 int i; 5897 _ACEOF 5898 if ac_fn_c_try_compile "$LINENO" 5899 then : 5900 xorg_cv_cc_flag_unknown_warning_option=yes 5901 else $as_nop 5902 xorg_cv_cc_flag_unknown_warning_option=no 5903 fi 5904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5905 fi 5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5907 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5909 CFLAGS="$xorg_testset_save_CFLAGS" 5910 fi 5911 5912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5915 fi 5916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5918 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5919 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5920 then : 5921 printf %s "(cached) " >&6 5922 else $as_nop 5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5924 /* end confdefs.h. */ 5925 int i; 5926 _ACEOF 5927 if ac_fn_c_try_compile "$LINENO" 5928 then : 5929 xorg_cv_cc_flag_unused_command_line_argument=yes 5930 else $as_nop 5931 xorg_cv_cc_flag_unused_command_line_argument=no 5932 fi 5933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5934 fi 5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5936 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5938 CFLAGS="$xorg_testset_save_CFLAGS" 5939 fi 5940 5941 found="no" 5942 5943 if test $found = "no" ; then 5944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5946 fi 5947 5948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5950 fi 5951 5952 CFLAGS="$CFLAGS -Wold-style-definition" 5953 5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5955 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5956 cacheid=xorg_cv_cc_flag__Wold_style_definition 5957 if eval test \${$cacheid+y} 5958 then : 5959 printf %s "(cached) " >&6 5960 else $as_nop 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962 /* end confdefs.h. */ 5963 int i; 5964 int 5965 main (void) 5966 { 5967 5968 ; 5969 return 0; 5970 } 5971 _ACEOF 5972 if ac_fn_c_try_link "$LINENO" 5973 then : 5974 eval $cacheid=yes 5975 else $as_nop 5976 eval $cacheid=no 5977 fi 5978 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5979 conftest$ac_exeext conftest.$ac_ext 5980 fi 5981 5982 5983 CFLAGS="$xorg_testset_save_CFLAGS" 5984 5985 eval supported=\$$cacheid 5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5987 printf "%s\n" "$supported" >&6; } 5988 if test "$supported" = "yes" ; then 5989 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5990 found="yes" 5991 fi 5992 fi 5993 5994 if test $found = "no" ; then 5995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5997 fi 5998 5999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6001 fi 6002 6003 CFLAGS="$CFLAGS -fd" 6004 6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6006 printf %s "checking if $CC supports -fd... " >&6; } 6007 cacheid=xorg_cv_cc_flag__fd 6008 if eval test \${$cacheid+y} 6009 then : 6010 printf %s "(cached) " >&6 6011 else $as_nop 6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6013 /* end confdefs.h. */ 6014 int i; 6015 int 6016 main (void) 6017 { 6018 6019 ; 6020 return 0; 6021 } 6022 _ACEOF 6023 if ac_fn_c_try_link "$LINENO" 6024 then : 6025 eval $cacheid=yes 6026 else $as_nop 6027 eval $cacheid=no 6028 fi 6029 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6030 conftest$ac_exeext conftest.$ac_ext 6031 fi 6032 6033 6034 CFLAGS="$xorg_testset_save_CFLAGS" 6035 6036 eval supported=\$$cacheid 6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6038 printf "%s\n" "$supported" >&6; } 6039 if test "$supported" = "yes" ; then 6040 BASE_CFLAGS="$BASE_CFLAGS -fd" 6041 found="yes" 6042 fi 6043 fi 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 xorg_testset_save_CFLAGS="$CFLAGS" 6060 6061 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6064 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6065 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6066 then : 6067 printf %s "(cached) " >&6 6068 else $as_nop 6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6070 /* end confdefs.h. */ 6071 int i; 6072 _ACEOF 6073 if ac_fn_c_try_compile "$LINENO" 6074 then : 6075 xorg_cv_cc_flag_unknown_warning_option=yes 6076 else $as_nop 6077 xorg_cv_cc_flag_unknown_warning_option=no 6078 fi 6079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6080 fi 6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6082 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6084 CFLAGS="$xorg_testset_save_CFLAGS" 6085 fi 6086 6087 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6090 fi 6091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6093 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6094 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6095 then : 6096 printf %s "(cached) " >&6 6097 else $as_nop 6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6099 /* end confdefs.h. */ 6100 int i; 6101 _ACEOF 6102 if ac_fn_c_try_compile "$LINENO" 6103 then : 6104 xorg_cv_cc_flag_unused_command_line_argument=yes 6105 else $as_nop 6106 xorg_cv_cc_flag_unused_command_line_argument=no 6107 fi 6108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6109 fi 6110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6111 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6113 CFLAGS="$xorg_testset_save_CFLAGS" 6114 fi 6115 6116 found="no" 6117 6118 if test $found = "no" ; then 6119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6121 fi 6122 6123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6125 fi 6126 6127 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6128 6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6130 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6131 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6132 if eval test \${$cacheid+y} 6133 then : 6134 printf %s "(cached) " >&6 6135 else $as_nop 6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6137 /* end confdefs.h. */ 6138 int i; 6139 int 6140 main (void) 6141 { 6142 6143 ; 6144 return 0; 6145 } 6146 _ACEOF 6147 if ac_fn_c_try_link "$LINENO" 6148 then : 6149 eval $cacheid=yes 6150 else $as_nop 6151 eval $cacheid=no 6152 fi 6153 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6154 conftest$ac_exeext conftest.$ac_ext 6155 fi 6156 6157 6158 CFLAGS="$xorg_testset_save_CFLAGS" 6159 6160 eval supported=\$$cacheid 6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6162 printf "%s\n" "$supported" >&6; } 6163 if test "$supported" = "yes" ; then 6164 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6165 found="yes" 6166 fi 6167 fi 6168 6169 6170 6171 6172 6173 # This chunk adds additional warnings that could catch undesired effects. 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 xorg_testset_save_CFLAGS="$CFLAGS" 6188 6189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6192 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6193 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6194 then : 6195 printf %s "(cached) " >&6 6196 else $as_nop 6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6198 /* end confdefs.h. */ 6199 int i; 6200 _ACEOF 6201 if ac_fn_c_try_compile "$LINENO" 6202 then : 6203 xorg_cv_cc_flag_unknown_warning_option=yes 6204 else $as_nop 6205 xorg_cv_cc_flag_unknown_warning_option=no 6206 fi 6207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6208 fi 6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6210 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6212 CFLAGS="$xorg_testset_save_CFLAGS" 6213 fi 6214 6215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6218 fi 6219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6221 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6222 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6223 then : 6224 printf %s "(cached) " >&6 6225 else $as_nop 6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6227 /* end confdefs.h. */ 6228 int i; 6229 _ACEOF 6230 if ac_fn_c_try_compile "$LINENO" 6231 then : 6232 xorg_cv_cc_flag_unused_command_line_argument=yes 6233 else $as_nop 6234 xorg_cv_cc_flag_unused_command_line_argument=no 6235 fi 6236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6237 fi 6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6239 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6241 CFLAGS="$xorg_testset_save_CFLAGS" 6242 fi 6243 6244 found="no" 6245 6246 if test $found = "no" ; then 6247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6249 fi 6250 6251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6253 fi 6254 6255 CFLAGS="$CFLAGS -Wunused" 6256 6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6258 printf %s "checking if $CC supports -Wunused... " >&6; } 6259 cacheid=xorg_cv_cc_flag__Wunused 6260 if eval test \${$cacheid+y} 6261 then : 6262 printf %s "(cached) " >&6 6263 else $as_nop 6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265 /* end confdefs.h. */ 6266 int i; 6267 int 6268 main (void) 6269 { 6270 6271 ; 6272 return 0; 6273 } 6274 _ACEOF 6275 if ac_fn_c_try_link "$LINENO" 6276 then : 6277 eval $cacheid=yes 6278 else $as_nop 6279 eval $cacheid=no 6280 fi 6281 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6282 conftest$ac_exeext conftest.$ac_ext 6283 fi 6284 6285 6286 CFLAGS="$xorg_testset_save_CFLAGS" 6287 6288 eval supported=\$$cacheid 6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6290 printf "%s\n" "$supported" >&6; } 6291 if test "$supported" = "yes" ; then 6292 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6293 found="yes" 6294 fi 6295 fi 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 xorg_testset_save_CFLAGS="$CFLAGS" 6312 6313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6317 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6318 then : 6319 printf %s "(cached) " >&6 6320 else $as_nop 6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6322 /* end confdefs.h. */ 6323 int i; 6324 _ACEOF 6325 if ac_fn_c_try_compile "$LINENO" 6326 then : 6327 xorg_cv_cc_flag_unknown_warning_option=yes 6328 else $as_nop 6329 xorg_cv_cc_flag_unknown_warning_option=no 6330 fi 6331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6332 fi 6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6334 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6336 CFLAGS="$xorg_testset_save_CFLAGS" 6337 fi 6338 6339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6342 fi 6343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6347 then : 6348 printf %s "(cached) " >&6 6349 else $as_nop 6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6351 /* end confdefs.h. */ 6352 int i; 6353 _ACEOF 6354 if ac_fn_c_try_compile "$LINENO" 6355 then : 6356 xorg_cv_cc_flag_unused_command_line_argument=yes 6357 else $as_nop 6358 xorg_cv_cc_flag_unused_command_line_argument=no 6359 fi 6360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6361 fi 6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6365 CFLAGS="$xorg_testset_save_CFLAGS" 6366 fi 6367 6368 found="no" 6369 6370 if test $found = "no" ; then 6371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6373 fi 6374 6375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6377 fi 6378 6379 CFLAGS="$CFLAGS -Wuninitialized" 6380 6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6382 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6383 cacheid=xorg_cv_cc_flag__Wuninitialized 6384 if eval test \${$cacheid+y} 6385 then : 6386 printf %s "(cached) " >&6 6387 else $as_nop 6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6389 /* end confdefs.h. */ 6390 int i; 6391 int 6392 main (void) 6393 { 6394 6395 ; 6396 return 0; 6397 } 6398 _ACEOF 6399 if ac_fn_c_try_link "$LINENO" 6400 then : 6401 eval $cacheid=yes 6402 else $as_nop 6403 eval $cacheid=no 6404 fi 6405 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6406 conftest$ac_exeext conftest.$ac_ext 6407 fi 6408 6409 6410 CFLAGS="$xorg_testset_save_CFLAGS" 6411 6412 eval supported=\$$cacheid 6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6414 printf "%s\n" "$supported" >&6; } 6415 if test "$supported" = "yes" ; then 6416 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6417 found="yes" 6418 fi 6419 fi 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 xorg_testset_save_CFLAGS="$CFLAGS" 6436 6437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6440 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6441 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6442 then : 6443 printf %s "(cached) " >&6 6444 else $as_nop 6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6446 /* end confdefs.h. */ 6447 int i; 6448 _ACEOF 6449 if ac_fn_c_try_compile "$LINENO" 6450 then : 6451 xorg_cv_cc_flag_unknown_warning_option=yes 6452 else $as_nop 6453 xorg_cv_cc_flag_unknown_warning_option=no 6454 fi 6455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6456 fi 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6458 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6460 CFLAGS="$xorg_testset_save_CFLAGS" 6461 fi 6462 6463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6466 fi 6467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6469 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6470 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6471 then : 6472 printf %s "(cached) " >&6 6473 else $as_nop 6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6475 /* end confdefs.h. */ 6476 int i; 6477 _ACEOF 6478 if ac_fn_c_try_compile "$LINENO" 6479 then : 6480 xorg_cv_cc_flag_unused_command_line_argument=yes 6481 else $as_nop 6482 xorg_cv_cc_flag_unused_command_line_argument=no 6483 fi 6484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6485 fi 6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6487 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6490 fi 6491 6492 found="no" 6493 6494 if test $found = "no" ; then 6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6497 fi 6498 6499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6501 fi 6502 6503 CFLAGS="$CFLAGS -Wshadow" 6504 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6506 printf %s "checking if $CC supports -Wshadow... " >&6; } 6507 cacheid=xorg_cv_cc_flag__Wshadow 6508 if eval test \${$cacheid+y} 6509 then : 6510 printf %s "(cached) " >&6 6511 else $as_nop 6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6513 /* end confdefs.h. */ 6514 int i; 6515 int 6516 main (void) 6517 { 6518 6519 ; 6520 return 0; 6521 } 6522 _ACEOF 6523 if ac_fn_c_try_link "$LINENO" 6524 then : 6525 eval $cacheid=yes 6526 else $as_nop 6527 eval $cacheid=no 6528 fi 6529 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6530 conftest$ac_exeext conftest.$ac_ext 6531 fi 6532 6533 6534 CFLAGS="$xorg_testset_save_CFLAGS" 6535 6536 eval supported=\$$cacheid 6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6538 printf "%s\n" "$supported" >&6; } 6539 if test "$supported" = "yes" ; then 6540 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6541 found="yes" 6542 fi 6543 fi 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 xorg_testset_save_CFLAGS="$CFLAGS" 6560 6561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6564 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6565 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6566 then : 6567 printf %s "(cached) " >&6 6568 else $as_nop 6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6570 /* end confdefs.h. */ 6571 int i; 6572 _ACEOF 6573 if ac_fn_c_try_compile "$LINENO" 6574 then : 6575 xorg_cv_cc_flag_unknown_warning_option=yes 6576 else $as_nop 6577 xorg_cv_cc_flag_unknown_warning_option=no 6578 fi 6579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6580 fi 6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6582 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6584 CFLAGS="$xorg_testset_save_CFLAGS" 6585 fi 6586 6587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6590 fi 6591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6593 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6594 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6595 then : 6596 printf %s "(cached) " >&6 6597 else $as_nop 6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6599 /* end confdefs.h. */ 6600 int i; 6601 _ACEOF 6602 if ac_fn_c_try_compile "$LINENO" 6603 then : 6604 xorg_cv_cc_flag_unused_command_line_argument=yes 6605 else $as_nop 6606 xorg_cv_cc_flag_unused_command_line_argument=no 6607 fi 6608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6609 fi 6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6611 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6613 CFLAGS="$xorg_testset_save_CFLAGS" 6614 fi 6615 6616 found="no" 6617 6618 if test $found = "no" ; then 6619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6621 fi 6622 6623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6625 fi 6626 6627 CFLAGS="$CFLAGS -Wmissing-noreturn" 6628 6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6630 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6631 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6632 if eval test \${$cacheid+y} 6633 then : 6634 printf %s "(cached) " >&6 6635 else $as_nop 6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6637 /* end confdefs.h. */ 6638 int i; 6639 int 6640 main (void) 6641 { 6642 6643 ; 6644 return 0; 6645 } 6646 _ACEOF 6647 if ac_fn_c_try_link "$LINENO" 6648 then : 6649 eval $cacheid=yes 6650 else $as_nop 6651 eval $cacheid=no 6652 fi 6653 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6654 conftest$ac_exeext conftest.$ac_ext 6655 fi 6656 6657 6658 CFLAGS="$xorg_testset_save_CFLAGS" 6659 6660 eval supported=\$$cacheid 6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6662 printf "%s\n" "$supported" >&6; } 6663 if test "$supported" = "yes" ; then 6664 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6665 found="yes" 6666 fi 6667 fi 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 xorg_testset_save_CFLAGS="$CFLAGS" 6684 6685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6688 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6689 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6690 then : 6691 printf %s "(cached) " >&6 6692 else $as_nop 6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6694 /* end confdefs.h. */ 6695 int i; 6696 _ACEOF 6697 if ac_fn_c_try_compile "$LINENO" 6698 then : 6699 xorg_cv_cc_flag_unknown_warning_option=yes 6700 else $as_nop 6701 xorg_cv_cc_flag_unknown_warning_option=no 6702 fi 6703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6704 fi 6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6706 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6708 CFLAGS="$xorg_testset_save_CFLAGS" 6709 fi 6710 6711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6714 fi 6715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6717 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6718 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6719 then : 6720 printf %s "(cached) " >&6 6721 else $as_nop 6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6723 /* end confdefs.h. */ 6724 int i; 6725 _ACEOF 6726 if ac_fn_c_try_compile "$LINENO" 6727 then : 6728 xorg_cv_cc_flag_unused_command_line_argument=yes 6729 else $as_nop 6730 xorg_cv_cc_flag_unused_command_line_argument=no 6731 fi 6732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6733 fi 6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6735 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6737 CFLAGS="$xorg_testset_save_CFLAGS" 6738 fi 6739 6740 found="no" 6741 6742 if test $found = "no" ; then 6743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6745 fi 6746 6747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6749 fi 6750 6751 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6752 6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6754 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6755 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6756 if eval test \${$cacheid+y} 6757 then : 6758 printf %s "(cached) " >&6 6759 else $as_nop 6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6761 /* end confdefs.h. */ 6762 int i; 6763 int 6764 main (void) 6765 { 6766 6767 ; 6768 return 0; 6769 } 6770 _ACEOF 6771 if ac_fn_c_try_link "$LINENO" 6772 then : 6773 eval $cacheid=yes 6774 else $as_nop 6775 eval $cacheid=no 6776 fi 6777 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6778 conftest$ac_exeext conftest.$ac_ext 6779 fi 6780 6781 6782 CFLAGS="$xorg_testset_save_CFLAGS" 6783 6784 eval supported=\$$cacheid 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6786 printf "%s\n" "$supported" >&6; } 6787 if test "$supported" = "yes" ; then 6788 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6789 found="yes" 6790 fi 6791 fi 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 xorg_testset_save_CFLAGS="$CFLAGS" 6808 6809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6812 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6813 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6814 then : 6815 printf %s "(cached) " >&6 6816 else $as_nop 6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818 /* end confdefs.h. */ 6819 int i; 6820 _ACEOF 6821 if ac_fn_c_try_compile "$LINENO" 6822 then : 6823 xorg_cv_cc_flag_unknown_warning_option=yes 6824 else $as_nop 6825 xorg_cv_cc_flag_unknown_warning_option=no 6826 fi 6827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6828 fi 6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6830 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6832 CFLAGS="$xorg_testset_save_CFLAGS" 6833 fi 6834 6835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6838 fi 6839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6841 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6842 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6843 then : 6844 printf %s "(cached) " >&6 6845 else $as_nop 6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6847 /* end confdefs.h. */ 6848 int i; 6849 _ACEOF 6850 if ac_fn_c_try_compile "$LINENO" 6851 then : 6852 xorg_cv_cc_flag_unused_command_line_argument=yes 6853 else $as_nop 6854 xorg_cv_cc_flag_unused_command_line_argument=no 6855 fi 6856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6857 fi 6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6859 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6861 CFLAGS="$xorg_testset_save_CFLAGS" 6862 fi 6863 6864 found="no" 6865 6866 if test $found = "no" ; then 6867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6869 fi 6870 6871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6873 fi 6874 6875 CFLAGS="$CFLAGS -Wredundant-decls" 6876 6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6878 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6879 cacheid=xorg_cv_cc_flag__Wredundant_decls 6880 if eval test \${$cacheid+y} 6881 then : 6882 printf %s "(cached) " >&6 6883 else $as_nop 6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6885 /* end confdefs.h. */ 6886 int i; 6887 int 6888 main (void) 6889 { 6890 6891 ; 6892 return 0; 6893 } 6894 _ACEOF 6895 if ac_fn_c_try_link "$LINENO" 6896 then : 6897 eval $cacheid=yes 6898 else $as_nop 6899 eval $cacheid=no 6900 fi 6901 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6902 conftest$ac_exeext conftest.$ac_ext 6903 fi 6904 6905 6906 CFLAGS="$xorg_testset_save_CFLAGS" 6907 6908 eval supported=\$$cacheid 6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6910 printf "%s\n" "$supported" >&6; } 6911 if test "$supported" = "yes" ; then 6912 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6913 found="yes" 6914 fi 6915 fi 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 xorg_testset_save_CFLAGS="$CFLAGS" 6932 6933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6936 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6937 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6938 then : 6939 printf %s "(cached) " >&6 6940 else $as_nop 6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6942 /* end confdefs.h. */ 6943 int i; 6944 _ACEOF 6945 if ac_fn_c_try_compile "$LINENO" 6946 then : 6947 xorg_cv_cc_flag_unknown_warning_option=yes 6948 else $as_nop 6949 xorg_cv_cc_flag_unknown_warning_option=no 6950 fi 6951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6952 fi 6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6954 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6956 CFLAGS="$xorg_testset_save_CFLAGS" 6957 fi 6958 6959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6962 fi 6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6965 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6966 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6967 then : 6968 printf %s "(cached) " >&6 6969 else $as_nop 6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6971 /* end confdefs.h. */ 6972 int i; 6973 _ACEOF 6974 if ac_fn_c_try_compile "$LINENO" 6975 then : 6976 xorg_cv_cc_flag_unused_command_line_argument=yes 6977 else $as_nop 6978 xorg_cv_cc_flag_unused_command_line_argument=no 6979 fi 6980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6981 fi 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6983 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6985 CFLAGS="$xorg_testset_save_CFLAGS" 6986 fi 6987 6988 found="no" 6989 6990 if test $found = "no" ; then 6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6993 fi 6994 6995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6997 fi 6998 6999 CFLAGS="$CFLAGS -Wlogical-op" 7000 7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7002 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7003 cacheid=xorg_cv_cc_flag__Wlogical_op 7004 if eval test \${$cacheid+y} 7005 then : 7006 printf %s "(cached) " >&6 7007 else $as_nop 7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7009 /* end confdefs.h. */ 7010 int i; 7011 int 7012 main (void) 7013 { 7014 7015 ; 7016 return 0; 7017 } 7018 _ACEOF 7019 if ac_fn_c_try_link "$LINENO" 7020 then : 7021 eval $cacheid=yes 7022 else $as_nop 7023 eval $cacheid=no 7024 fi 7025 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7026 conftest$ac_exeext conftest.$ac_ext 7027 fi 7028 7029 7030 CFLAGS="$xorg_testset_save_CFLAGS" 7031 7032 eval supported=\$$cacheid 7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7034 printf "%s\n" "$supported" >&6; } 7035 if test "$supported" = "yes" ; then 7036 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7037 found="yes" 7038 fi 7039 fi 7040 7041 7042 7043 # These are currently disabled because they are noisy. They will be enabled 7044 # in the future once the codebase is sufficiently modernized to silence 7045 # them. For now, I don't want them to drown out the other warnings. 7046 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7047 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7048 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7049 7050 # Turn some warnings into errors, so we don't accidently get successful builds 7051 # when there are problems that should be fixed. 7052 7053 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 xorg_testset_save_CFLAGS="$CFLAGS" 7068 7069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7072 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7073 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7074 then : 7075 printf %s "(cached) " >&6 7076 else $as_nop 7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078 /* end confdefs.h. */ 7079 int i; 7080 _ACEOF 7081 if ac_fn_c_try_compile "$LINENO" 7082 then : 7083 xorg_cv_cc_flag_unknown_warning_option=yes 7084 else $as_nop 7085 xorg_cv_cc_flag_unknown_warning_option=no 7086 fi 7087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7088 fi 7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7090 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7092 CFLAGS="$xorg_testset_save_CFLAGS" 7093 fi 7094 7095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7098 fi 7099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7101 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7102 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7103 then : 7104 printf %s "(cached) " >&6 7105 else $as_nop 7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7107 /* end confdefs.h. */ 7108 int i; 7109 _ACEOF 7110 if ac_fn_c_try_compile "$LINENO" 7111 then : 7112 xorg_cv_cc_flag_unused_command_line_argument=yes 7113 else $as_nop 7114 xorg_cv_cc_flag_unused_command_line_argument=no 7115 fi 7116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7117 fi 7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7119 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7121 CFLAGS="$xorg_testset_save_CFLAGS" 7122 fi 7123 7124 found="no" 7125 7126 if test $found = "no" ; then 7127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7129 fi 7130 7131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7133 fi 7134 7135 CFLAGS="$CFLAGS -Werror=implicit" 7136 7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7138 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7139 cacheid=xorg_cv_cc_flag__Werror_implicit 7140 if eval test \${$cacheid+y} 7141 then : 7142 printf %s "(cached) " >&6 7143 else $as_nop 7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7145 /* end confdefs.h. */ 7146 int i; 7147 int 7148 main (void) 7149 { 7150 7151 ; 7152 return 0; 7153 } 7154 _ACEOF 7155 if ac_fn_c_try_link "$LINENO" 7156 then : 7157 eval $cacheid=yes 7158 else $as_nop 7159 eval $cacheid=no 7160 fi 7161 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7162 conftest$ac_exeext conftest.$ac_ext 7163 fi 7164 7165 7166 CFLAGS="$xorg_testset_save_CFLAGS" 7167 7168 eval supported=\$$cacheid 7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7170 printf "%s\n" "$supported" >&6; } 7171 if test "$supported" = "yes" ; then 7172 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7173 found="yes" 7174 fi 7175 fi 7176 7177 if test $found = "no" ; then 7178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7180 fi 7181 7182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7184 fi 7185 7186 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7187 7188 { 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 7189 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7190 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7191 if eval test \${$cacheid+y} 7192 then : 7193 printf %s "(cached) " >&6 7194 else $as_nop 7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7196 /* end confdefs.h. */ 7197 int i; 7198 int 7199 main (void) 7200 { 7201 7202 ; 7203 return 0; 7204 } 7205 _ACEOF 7206 if ac_fn_c_try_link "$LINENO" 7207 then : 7208 eval $cacheid=yes 7209 else $as_nop 7210 eval $cacheid=no 7211 fi 7212 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7213 conftest$ac_exeext conftest.$ac_ext 7214 fi 7215 7216 7217 CFLAGS="$xorg_testset_save_CFLAGS" 7218 7219 eval supported=\$$cacheid 7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7221 printf "%s\n" "$supported" >&6; } 7222 if test "$supported" = "yes" ; then 7223 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7224 found="yes" 7225 fi 7226 fi 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 xorg_testset_save_CFLAGS="$CFLAGS" 7243 7244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7247 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7248 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7249 then : 7250 printf %s "(cached) " >&6 7251 else $as_nop 7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7253 /* end confdefs.h. */ 7254 int i; 7255 _ACEOF 7256 if ac_fn_c_try_compile "$LINENO" 7257 then : 7258 xorg_cv_cc_flag_unknown_warning_option=yes 7259 else $as_nop 7260 xorg_cv_cc_flag_unknown_warning_option=no 7261 fi 7262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7263 fi 7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7265 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7267 CFLAGS="$xorg_testset_save_CFLAGS" 7268 fi 7269 7270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7273 fi 7274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7276 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7277 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7278 then : 7279 printf %s "(cached) " >&6 7280 else $as_nop 7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7282 /* end confdefs.h. */ 7283 int i; 7284 _ACEOF 7285 if ac_fn_c_try_compile "$LINENO" 7286 then : 7287 xorg_cv_cc_flag_unused_command_line_argument=yes 7288 else $as_nop 7289 xorg_cv_cc_flag_unused_command_line_argument=no 7290 fi 7291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7292 fi 7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7294 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7296 CFLAGS="$xorg_testset_save_CFLAGS" 7297 fi 7298 7299 found="no" 7300 7301 if test $found = "no" ; then 7302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7304 fi 7305 7306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7308 fi 7309 7310 CFLAGS="$CFLAGS -Werror=nonnull" 7311 7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7313 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7314 cacheid=xorg_cv_cc_flag__Werror_nonnull 7315 if eval test \${$cacheid+y} 7316 then : 7317 printf %s "(cached) " >&6 7318 else $as_nop 7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7320 /* end confdefs.h. */ 7321 int i; 7322 int 7323 main (void) 7324 { 7325 7326 ; 7327 return 0; 7328 } 7329 _ACEOF 7330 if ac_fn_c_try_link "$LINENO" 7331 then : 7332 eval $cacheid=yes 7333 else $as_nop 7334 eval $cacheid=no 7335 fi 7336 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7337 conftest$ac_exeext conftest.$ac_ext 7338 fi 7339 7340 7341 CFLAGS="$xorg_testset_save_CFLAGS" 7342 7343 eval supported=\$$cacheid 7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7345 printf "%s\n" "$supported" >&6; } 7346 if test "$supported" = "yes" ; then 7347 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7348 found="yes" 7349 fi 7350 fi 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 xorg_testset_save_CFLAGS="$CFLAGS" 7367 7368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7371 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7372 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7373 then : 7374 printf %s "(cached) " >&6 7375 else $as_nop 7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7377 /* end confdefs.h. */ 7378 int i; 7379 _ACEOF 7380 if ac_fn_c_try_compile "$LINENO" 7381 then : 7382 xorg_cv_cc_flag_unknown_warning_option=yes 7383 else $as_nop 7384 xorg_cv_cc_flag_unknown_warning_option=no 7385 fi 7386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7387 fi 7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7389 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7391 CFLAGS="$xorg_testset_save_CFLAGS" 7392 fi 7393 7394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7397 fi 7398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7402 then : 7403 printf %s "(cached) " >&6 7404 else $as_nop 7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7406 /* end confdefs.h. */ 7407 int i; 7408 _ACEOF 7409 if ac_fn_c_try_compile "$LINENO" 7410 then : 7411 xorg_cv_cc_flag_unused_command_line_argument=yes 7412 else $as_nop 7413 xorg_cv_cc_flag_unused_command_line_argument=no 7414 fi 7415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7416 fi 7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7418 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7420 CFLAGS="$xorg_testset_save_CFLAGS" 7421 fi 7422 7423 found="no" 7424 7425 if test $found = "no" ; then 7426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7428 fi 7429 7430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7432 fi 7433 7434 CFLAGS="$CFLAGS -Werror=init-self" 7435 7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7437 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7438 cacheid=xorg_cv_cc_flag__Werror_init_self 7439 if eval test \${$cacheid+y} 7440 then : 7441 printf %s "(cached) " >&6 7442 else $as_nop 7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7444 /* end confdefs.h. */ 7445 int i; 7446 int 7447 main (void) 7448 { 7449 7450 ; 7451 return 0; 7452 } 7453 _ACEOF 7454 if ac_fn_c_try_link "$LINENO" 7455 then : 7456 eval $cacheid=yes 7457 else $as_nop 7458 eval $cacheid=no 7459 fi 7460 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7461 conftest$ac_exeext conftest.$ac_ext 7462 fi 7463 7464 7465 CFLAGS="$xorg_testset_save_CFLAGS" 7466 7467 eval supported=\$$cacheid 7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7469 printf "%s\n" "$supported" >&6; } 7470 if test "$supported" = "yes" ; then 7471 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7472 found="yes" 7473 fi 7474 fi 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 xorg_testset_save_CFLAGS="$CFLAGS" 7491 7492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7495 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7496 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7497 then : 7498 printf %s "(cached) " >&6 7499 else $as_nop 7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7501 /* end confdefs.h. */ 7502 int i; 7503 _ACEOF 7504 if ac_fn_c_try_compile "$LINENO" 7505 then : 7506 xorg_cv_cc_flag_unknown_warning_option=yes 7507 else $as_nop 7508 xorg_cv_cc_flag_unknown_warning_option=no 7509 fi 7510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7511 fi 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516 fi 7517 7518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7521 fi 7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7526 then : 7527 printf %s "(cached) " >&6 7528 else $as_nop 7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7530 /* end confdefs.h. */ 7531 int i; 7532 _ACEOF 7533 if ac_fn_c_try_compile "$LINENO" 7534 then : 7535 xorg_cv_cc_flag_unused_command_line_argument=yes 7536 else $as_nop 7537 xorg_cv_cc_flag_unused_command_line_argument=no 7538 fi 7539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7540 fi 7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7542 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7544 CFLAGS="$xorg_testset_save_CFLAGS" 7545 fi 7546 7547 found="no" 7548 7549 if test $found = "no" ; then 7550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7552 fi 7553 7554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7556 fi 7557 7558 CFLAGS="$CFLAGS -Werror=main" 7559 7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7561 printf %s "checking if $CC supports -Werror=main... " >&6; } 7562 cacheid=xorg_cv_cc_flag__Werror_main 7563 if eval test \${$cacheid+y} 7564 then : 7565 printf %s "(cached) " >&6 7566 else $as_nop 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568 /* end confdefs.h. */ 7569 int i; 7570 int 7571 main (void) 7572 { 7573 7574 ; 7575 return 0; 7576 } 7577 _ACEOF 7578 if ac_fn_c_try_link "$LINENO" 7579 then : 7580 eval $cacheid=yes 7581 else $as_nop 7582 eval $cacheid=no 7583 fi 7584 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7585 conftest$ac_exeext conftest.$ac_ext 7586 fi 7587 7588 7589 CFLAGS="$xorg_testset_save_CFLAGS" 7590 7591 eval supported=\$$cacheid 7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7593 printf "%s\n" "$supported" >&6; } 7594 if test "$supported" = "yes" ; then 7595 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7596 found="yes" 7597 fi 7598 fi 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 xorg_testset_save_CFLAGS="$CFLAGS" 7615 7616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7619 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7620 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7621 then : 7622 printf %s "(cached) " >&6 7623 else $as_nop 7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7625 /* end confdefs.h. */ 7626 int i; 7627 _ACEOF 7628 if ac_fn_c_try_compile "$LINENO" 7629 then : 7630 xorg_cv_cc_flag_unknown_warning_option=yes 7631 else $as_nop 7632 xorg_cv_cc_flag_unknown_warning_option=no 7633 fi 7634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7635 fi 7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7639 CFLAGS="$xorg_testset_save_CFLAGS" 7640 fi 7641 7642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7645 fi 7646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7650 then : 7651 printf %s "(cached) " >&6 7652 else $as_nop 7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7654 /* end confdefs.h. */ 7655 int i; 7656 _ACEOF 7657 if ac_fn_c_try_compile "$LINENO" 7658 then : 7659 xorg_cv_cc_flag_unused_command_line_argument=yes 7660 else $as_nop 7661 xorg_cv_cc_flag_unused_command_line_argument=no 7662 fi 7663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7664 fi 7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7666 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7668 CFLAGS="$xorg_testset_save_CFLAGS" 7669 fi 7670 7671 found="no" 7672 7673 if test $found = "no" ; then 7674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7676 fi 7677 7678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7680 fi 7681 7682 CFLAGS="$CFLAGS -Werror=missing-braces" 7683 7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7685 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7686 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7687 if eval test \${$cacheid+y} 7688 then : 7689 printf %s "(cached) " >&6 7690 else $as_nop 7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7692 /* end confdefs.h. */ 7693 int i; 7694 int 7695 main (void) 7696 { 7697 7698 ; 7699 return 0; 7700 } 7701 _ACEOF 7702 if ac_fn_c_try_link "$LINENO" 7703 then : 7704 eval $cacheid=yes 7705 else $as_nop 7706 eval $cacheid=no 7707 fi 7708 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7709 conftest$ac_exeext conftest.$ac_ext 7710 fi 7711 7712 7713 CFLAGS="$xorg_testset_save_CFLAGS" 7714 7715 eval supported=\$$cacheid 7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7717 printf "%s\n" "$supported" >&6; } 7718 if test "$supported" = "yes" ; then 7719 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7720 found="yes" 7721 fi 7722 fi 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 xorg_testset_save_CFLAGS="$CFLAGS" 7739 7740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7743 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7744 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7745 then : 7746 printf %s "(cached) " >&6 7747 else $as_nop 7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7749 /* end confdefs.h. */ 7750 int i; 7751 _ACEOF 7752 if ac_fn_c_try_compile "$LINENO" 7753 then : 7754 xorg_cv_cc_flag_unknown_warning_option=yes 7755 else $as_nop 7756 xorg_cv_cc_flag_unknown_warning_option=no 7757 fi 7758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7759 fi 7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7761 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7763 CFLAGS="$xorg_testset_save_CFLAGS" 7764 fi 7765 7766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7769 fi 7770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7772 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7773 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7774 then : 7775 printf %s "(cached) " >&6 7776 else $as_nop 7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778 /* end confdefs.h. */ 7779 int i; 7780 _ACEOF 7781 if ac_fn_c_try_compile "$LINENO" 7782 then : 7783 xorg_cv_cc_flag_unused_command_line_argument=yes 7784 else $as_nop 7785 xorg_cv_cc_flag_unused_command_line_argument=no 7786 fi 7787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7788 fi 7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7790 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7792 CFLAGS="$xorg_testset_save_CFLAGS" 7793 fi 7794 7795 found="no" 7796 7797 if test $found = "no" ; then 7798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7800 fi 7801 7802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7804 fi 7805 7806 CFLAGS="$CFLAGS -Werror=sequence-point" 7807 7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7809 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7810 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7811 if eval test \${$cacheid+y} 7812 then : 7813 printf %s "(cached) " >&6 7814 else $as_nop 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816 /* end confdefs.h. */ 7817 int i; 7818 int 7819 main (void) 7820 { 7821 7822 ; 7823 return 0; 7824 } 7825 _ACEOF 7826 if ac_fn_c_try_link "$LINENO" 7827 then : 7828 eval $cacheid=yes 7829 else $as_nop 7830 eval $cacheid=no 7831 fi 7832 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7833 conftest$ac_exeext conftest.$ac_ext 7834 fi 7835 7836 7837 CFLAGS="$xorg_testset_save_CFLAGS" 7838 7839 eval supported=\$$cacheid 7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7841 printf "%s\n" "$supported" >&6; } 7842 if test "$supported" = "yes" ; then 7843 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7844 found="yes" 7845 fi 7846 fi 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 xorg_testset_save_CFLAGS="$CFLAGS" 7863 7864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7867 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7868 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7869 then : 7870 printf %s "(cached) " >&6 7871 else $as_nop 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873 /* end confdefs.h. */ 7874 int i; 7875 _ACEOF 7876 if ac_fn_c_try_compile "$LINENO" 7877 then : 7878 xorg_cv_cc_flag_unknown_warning_option=yes 7879 else $as_nop 7880 xorg_cv_cc_flag_unknown_warning_option=no 7881 fi 7882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7883 fi 7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7885 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7887 CFLAGS="$xorg_testset_save_CFLAGS" 7888 fi 7889 7890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7893 fi 7894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7896 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7897 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7898 then : 7899 printf %s "(cached) " >&6 7900 else $as_nop 7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7902 /* end confdefs.h. */ 7903 int i; 7904 _ACEOF 7905 if ac_fn_c_try_compile "$LINENO" 7906 then : 7907 xorg_cv_cc_flag_unused_command_line_argument=yes 7908 else $as_nop 7909 xorg_cv_cc_flag_unused_command_line_argument=no 7910 fi 7911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7912 fi 7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7914 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7916 CFLAGS="$xorg_testset_save_CFLAGS" 7917 fi 7918 7919 found="no" 7920 7921 if test $found = "no" ; then 7922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7924 fi 7925 7926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7928 fi 7929 7930 CFLAGS="$CFLAGS -Werror=return-type" 7931 7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7933 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7934 cacheid=xorg_cv_cc_flag__Werror_return_type 7935 if eval test \${$cacheid+y} 7936 then : 7937 printf %s "(cached) " >&6 7938 else $as_nop 7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940 /* end confdefs.h. */ 7941 int i; 7942 int 7943 main (void) 7944 { 7945 7946 ; 7947 return 0; 7948 } 7949 _ACEOF 7950 if ac_fn_c_try_link "$LINENO" 7951 then : 7952 eval $cacheid=yes 7953 else $as_nop 7954 eval $cacheid=no 7955 fi 7956 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7957 conftest$ac_exeext conftest.$ac_ext 7958 fi 7959 7960 7961 CFLAGS="$xorg_testset_save_CFLAGS" 7962 7963 eval supported=\$$cacheid 7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7965 printf "%s\n" "$supported" >&6; } 7966 if test "$supported" = "yes" ; then 7967 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7968 found="yes" 7969 fi 7970 fi 7971 7972 if test $found = "no" ; then 7973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7975 fi 7976 7977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7979 fi 7980 7981 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7982 7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7984 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7985 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7986 if eval test \${$cacheid+y} 7987 then : 7988 printf %s "(cached) " >&6 7989 else $as_nop 7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7991 /* end confdefs.h. */ 7992 int i; 7993 int 7994 main (void) 7995 { 7996 7997 ; 7998 return 0; 7999 } 8000 _ACEOF 8001 if ac_fn_c_try_link "$LINENO" 8002 then : 8003 eval $cacheid=yes 8004 else $as_nop 8005 eval $cacheid=no 8006 fi 8007 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8008 conftest$ac_exeext conftest.$ac_ext 8009 fi 8010 8011 8012 CFLAGS="$xorg_testset_save_CFLAGS" 8013 8014 eval supported=\$$cacheid 8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8016 printf "%s\n" "$supported" >&6; } 8017 if test "$supported" = "yes" ; then 8018 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8019 found="yes" 8020 fi 8021 fi 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 xorg_testset_save_CFLAGS="$CFLAGS" 8038 8039 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8042 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8043 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8044 then : 8045 printf %s "(cached) " >&6 8046 else $as_nop 8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8048 /* end confdefs.h. */ 8049 int i; 8050 _ACEOF 8051 if ac_fn_c_try_compile "$LINENO" 8052 then : 8053 xorg_cv_cc_flag_unknown_warning_option=yes 8054 else $as_nop 8055 xorg_cv_cc_flag_unknown_warning_option=no 8056 fi 8057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8058 fi 8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8060 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8062 CFLAGS="$xorg_testset_save_CFLAGS" 8063 fi 8064 8065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8068 fi 8069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8071 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8072 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8073 then : 8074 printf %s "(cached) " >&6 8075 else $as_nop 8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8077 /* end confdefs.h. */ 8078 int i; 8079 _ACEOF 8080 if ac_fn_c_try_compile "$LINENO" 8081 then : 8082 xorg_cv_cc_flag_unused_command_line_argument=yes 8083 else $as_nop 8084 xorg_cv_cc_flag_unused_command_line_argument=no 8085 fi 8086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8087 fi 8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8089 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8091 CFLAGS="$xorg_testset_save_CFLAGS" 8092 fi 8093 8094 found="no" 8095 8096 if test $found = "no" ; then 8097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8099 fi 8100 8101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8103 fi 8104 8105 CFLAGS="$CFLAGS -Werror=trigraphs" 8106 8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8108 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8109 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8110 if eval test \${$cacheid+y} 8111 then : 8112 printf %s "(cached) " >&6 8113 else $as_nop 8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8115 /* end confdefs.h. */ 8116 int i; 8117 int 8118 main (void) 8119 { 8120 8121 ; 8122 return 0; 8123 } 8124 _ACEOF 8125 if ac_fn_c_try_link "$LINENO" 8126 then : 8127 eval $cacheid=yes 8128 else $as_nop 8129 eval $cacheid=no 8130 fi 8131 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8132 conftest$ac_exeext conftest.$ac_ext 8133 fi 8134 8135 8136 CFLAGS="$xorg_testset_save_CFLAGS" 8137 8138 eval supported=\$$cacheid 8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8140 printf "%s\n" "$supported" >&6; } 8141 if test "$supported" = "yes" ; then 8142 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8143 found="yes" 8144 fi 8145 fi 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 xorg_testset_save_CFLAGS="$CFLAGS" 8162 8163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8166 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8167 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8168 then : 8169 printf %s "(cached) " >&6 8170 else $as_nop 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172 /* end confdefs.h. */ 8173 int i; 8174 _ACEOF 8175 if ac_fn_c_try_compile "$LINENO" 8176 then : 8177 xorg_cv_cc_flag_unknown_warning_option=yes 8178 else $as_nop 8179 xorg_cv_cc_flag_unknown_warning_option=no 8180 fi 8181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8182 fi 8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8184 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8186 CFLAGS="$xorg_testset_save_CFLAGS" 8187 fi 8188 8189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8192 fi 8193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8195 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8196 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8197 then : 8198 printf %s "(cached) " >&6 8199 else $as_nop 8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8201 /* end confdefs.h. */ 8202 int i; 8203 _ACEOF 8204 if ac_fn_c_try_compile "$LINENO" 8205 then : 8206 xorg_cv_cc_flag_unused_command_line_argument=yes 8207 else $as_nop 8208 xorg_cv_cc_flag_unused_command_line_argument=no 8209 fi 8210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8211 fi 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8213 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8215 CFLAGS="$xorg_testset_save_CFLAGS" 8216 fi 8217 8218 found="no" 8219 8220 if test $found = "no" ; then 8221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8223 fi 8224 8225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8227 fi 8228 8229 CFLAGS="$CFLAGS -Werror=array-bounds" 8230 8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8232 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8233 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8234 if eval test \${$cacheid+y} 8235 then : 8236 printf %s "(cached) " >&6 8237 else $as_nop 8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8239 /* end confdefs.h. */ 8240 int i; 8241 int 8242 main (void) 8243 { 8244 8245 ; 8246 return 0; 8247 } 8248 _ACEOF 8249 if ac_fn_c_try_link "$LINENO" 8250 then : 8251 eval $cacheid=yes 8252 else $as_nop 8253 eval $cacheid=no 8254 fi 8255 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8256 conftest$ac_exeext conftest.$ac_ext 8257 fi 8258 8259 8260 CFLAGS="$xorg_testset_save_CFLAGS" 8261 8262 eval supported=\$$cacheid 8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8264 printf "%s\n" "$supported" >&6; } 8265 if test "$supported" = "yes" ; then 8266 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8267 found="yes" 8268 fi 8269 fi 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 xorg_testset_save_CFLAGS="$CFLAGS" 8286 8287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8290 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8291 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8292 then : 8293 printf %s "(cached) " >&6 8294 else $as_nop 8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296 /* end confdefs.h. */ 8297 int i; 8298 _ACEOF 8299 if ac_fn_c_try_compile "$LINENO" 8300 then : 8301 xorg_cv_cc_flag_unknown_warning_option=yes 8302 else $as_nop 8303 xorg_cv_cc_flag_unknown_warning_option=no 8304 fi 8305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8306 fi 8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8308 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8310 CFLAGS="$xorg_testset_save_CFLAGS" 8311 fi 8312 8313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8316 fi 8317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8319 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8320 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8321 then : 8322 printf %s "(cached) " >&6 8323 else $as_nop 8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8325 /* end confdefs.h. */ 8326 int i; 8327 _ACEOF 8328 if ac_fn_c_try_compile "$LINENO" 8329 then : 8330 xorg_cv_cc_flag_unused_command_line_argument=yes 8331 else $as_nop 8332 xorg_cv_cc_flag_unused_command_line_argument=no 8333 fi 8334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8335 fi 8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8337 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8339 CFLAGS="$xorg_testset_save_CFLAGS" 8340 fi 8341 8342 found="no" 8343 8344 if test $found = "no" ; then 8345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8347 fi 8348 8349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8351 fi 8352 8353 CFLAGS="$CFLAGS -Werror=write-strings" 8354 8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8356 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8357 cacheid=xorg_cv_cc_flag__Werror_write_strings 8358 if eval test \${$cacheid+y} 8359 then : 8360 printf %s "(cached) " >&6 8361 else $as_nop 8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8363 /* end confdefs.h. */ 8364 int i; 8365 int 8366 main (void) 8367 { 8368 8369 ; 8370 return 0; 8371 } 8372 _ACEOF 8373 if ac_fn_c_try_link "$LINENO" 8374 then : 8375 eval $cacheid=yes 8376 else $as_nop 8377 eval $cacheid=no 8378 fi 8379 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8380 conftest$ac_exeext conftest.$ac_ext 8381 fi 8382 8383 8384 CFLAGS="$xorg_testset_save_CFLAGS" 8385 8386 eval supported=\$$cacheid 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8388 printf "%s\n" "$supported" >&6; } 8389 if test "$supported" = "yes" ; then 8390 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8391 found="yes" 8392 fi 8393 fi 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 xorg_testset_save_CFLAGS="$CFLAGS" 8410 8411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8414 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8415 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8416 then : 8417 printf %s "(cached) " >&6 8418 else $as_nop 8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8420 /* end confdefs.h. */ 8421 int i; 8422 _ACEOF 8423 if ac_fn_c_try_compile "$LINENO" 8424 then : 8425 xorg_cv_cc_flag_unknown_warning_option=yes 8426 else $as_nop 8427 xorg_cv_cc_flag_unknown_warning_option=no 8428 fi 8429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8430 fi 8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8432 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8434 CFLAGS="$xorg_testset_save_CFLAGS" 8435 fi 8436 8437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8440 fi 8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8443 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8444 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8445 then : 8446 printf %s "(cached) " >&6 8447 else $as_nop 8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8449 /* end confdefs.h. */ 8450 int i; 8451 _ACEOF 8452 if ac_fn_c_try_compile "$LINENO" 8453 then : 8454 xorg_cv_cc_flag_unused_command_line_argument=yes 8455 else $as_nop 8456 xorg_cv_cc_flag_unused_command_line_argument=no 8457 fi 8458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8459 fi 8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8461 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8463 CFLAGS="$xorg_testset_save_CFLAGS" 8464 fi 8465 8466 found="no" 8467 8468 if test $found = "no" ; then 8469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8471 fi 8472 8473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8475 fi 8476 8477 CFLAGS="$CFLAGS -Werror=address" 8478 8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8480 printf %s "checking if $CC supports -Werror=address... " >&6; } 8481 cacheid=xorg_cv_cc_flag__Werror_address 8482 if eval test \${$cacheid+y} 8483 then : 8484 printf %s "(cached) " >&6 8485 else $as_nop 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487 /* end confdefs.h. */ 8488 int i; 8489 int 8490 main (void) 8491 { 8492 8493 ; 8494 return 0; 8495 } 8496 _ACEOF 8497 if ac_fn_c_try_link "$LINENO" 8498 then : 8499 eval $cacheid=yes 8500 else $as_nop 8501 eval $cacheid=no 8502 fi 8503 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8504 conftest$ac_exeext conftest.$ac_ext 8505 fi 8506 8507 8508 CFLAGS="$xorg_testset_save_CFLAGS" 8509 8510 eval supported=\$$cacheid 8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8512 printf "%s\n" "$supported" >&6; } 8513 if test "$supported" = "yes" ; then 8514 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8515 found="yes" 8516 fi 8517 fi 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 xorg_testset_save_CFLAGS="$CFLAGS" 8534 8535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8538 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8539 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8540 then : 8541 printf %s "(cached) " >&6 8542 else $as_nop 8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544 /* end confdefs.h. */ 8545 int i; 8546 _ACEOF 8547 if ac_fn_c_try_compile "$LINENO" 8548 then : 8549 xorg_cv_cc_flag_unknown_warning_option=yes 8550 else $as_nop 8551 xorg_cv_cc_flag_unknown_warning_option=no 8552 fi 8553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8554 fi 8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8556 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8558 CFLAGS="$xorg_testset_save_CFLAGS" 8559 fi 8560 8561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8564 fi 8565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8567 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8568 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8569 then : 8570 printf %s "(cached) " >&6 8571 else $as_nop 8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8573 /* end confdefs.h. */ 8574 int i; 8575 _ACEOF 8576 if ac_fn_c_try_compile "$LINENO" 8577 then : 8578 xorg_cv_cc_flag_unused_command_line_argument=yes 8579 else $as_nop 8580 xorg_cv_cc_flag_unused_command_line_argument=no 8581 fi 8582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8583 fi 8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8585 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8587 CFLAGS="$xorg_testset_save_CFLAGS" 8588 fi 8589 8590 found="no" 8591 8592 if test $found = "no" ; then 8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8595 fi 8596 8597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8599 fi 8600 8601 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8602 8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8604 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8605 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8606 if eval test \${$cacheid+y} 8607 then : 8608 printf %s "(cached) " >&6 8609 else $as_nop 8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611 /* end confdefs.h. */ 8612 int i; 8613 int 8614 main (void) 8615 { 8616 8617 ; 8618 return 0; 8619 } 8620 _ACEOF 8621 if ac_fn_c_try_link "$LINENO" 8622 then : 8623 eval $cacheid=yes 8624 else $as_nop 8625 eval $cacheid=no 8626 fi 8627 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8628 conftest$ac_exeext conftest.$ac_ext 8629 fi 8630 8631 8632 CFLAGS="$xorg_testset_save_CFLAGS" 8633 8634 eval supported=\$$cacheid 8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8636 printf "%s\n" "$supported" >&6; } 8637 if test "$supported" = "yes" ; then 8638 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8639 found="yes" 8640 fi 8641 fi 8642 8643 if test $found = "no" ; then 8644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8646 fi 8647 8648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8650 fi 8651 8652 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8653 8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8655 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8656 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8657 if eval test \${$cacheid+y} 8658 then : 8659 printf %s "(cached) " >&6 8660 else $as_nop 8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8662 /* end confdefs.h. */ 8663 int i; 8664 int 8665 main (void) 8666 { 8667 8668 ; 8669 return 0; 8670 } 8671 _ACEOF 8672 if ac_fn_c_try_link "$LINENO" 8673 then : 8674 eval $cacheid=yes 8675 else $as_nop 8676 eval $cacheid=no 8677 fi 8678 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8679 conftest$ac_exeext conftest.$ac_ext 8680 fi 8681 8682 8683 CFLAGS="$xorg_testset_save_CFLAGS" 8684 8685 eval supported=\$$cacheid 8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8687 printf "%s\n" "$supported" >&6; } 8688 if test "$supported" = "yes" ; then 8689 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8690 found="yes" 8691 fi 8692 fi 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 xorg_testset_save_CFLAGS="$CFLAGS" 8709 8710 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8713 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8714 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8715 then : 8716 printf %s "(cached) " >&6 8717 else $as_nop 8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8719 /* end confdefs.h. */ 8720 int i; 8721 _ACEOF 8722 if ac_fn_c_try_compile "$LINENO" 8723 then : 8724 xorg_cv_cc_flag_unknown_warning_option=yes 8725 else $as_nop 8726 xorg_cv_cc_flag_unknown_warning_option=no 8727 fi 8728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8729 fi 8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8731 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8733 CFLAGS="$xorg_testset_save_CFLAGS" 8734 fi 8735 8736 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8739 fi 8740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8742 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8743 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8744 then : 8745 printf %s "(cached) " >&6 8746 else $as_nop 8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8748 /* end confdefs.h. */ 8749 int i; 8750 _ACEOF 8751 if ac_fn_c_try_compile "$LINENO" 8752 then : 8753 xorg_cv_cc_flag_unused_command_line_argument=yes 8754 else $as_nop 8755 xorg_cv_cc_flag_unused_command_line_argument=no 8756 fi 8757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8758 fi 8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8760 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8762 CFLAGS="$xorg_testset_save_CFLAGS" 8763 fi 8764 8765 found="no" 8766 8767 if test $found = "no" ; then 8768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8770 fi 8771 8772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8774 fi 8775 8776 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8777 8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8779 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8780 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8781 if eval test \${$cacheid+y} 8782 then : 8783 printf %s "(cached) " >&6 8784 else $as_nop 8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8786 /* end confdefs.h. */ 8787 int i; 8788 int 8789 main (void) 8790 { 8791 8792 ; 8793 return 0; 8794 } 8795 _ACEOF 8796 if ac_fn_c_try_link "$LINENO" 8797 then : 8798 eval $cacheid=yes 8799 else $as_nop 8800 eval $cacheid=no 8801 fi 8802 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8803 conftest$ac_exeext conftest.$ac_ext 8804 fi 8805 8806 8807 CFLAGS="$xorg_testset_save_CFLAGS" 8808 8809 eval supported=\$$cacheid 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8811 printf "%s\n" "$supported" >&6; } 8812 if test "$supported" = "yes" ; then 8813 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8814 found="yes" 8815 fi 8816 fi 8817 8818 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8819 else 8820 { 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 8821 printf "%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;} 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 xorg_testset_save_CFLAGS="$CFLAGS" 8836 8837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8840 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8841 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8842 then : 8843 printf %s "(cached) " >&6 8844 else $as_nop 8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8846 /* end confdefs.h. */ 8847 int i; 8848 _ACEOF 8849 if ac_fn_c_try_compile "$LINENO" 8850 then : 8851 xorg_cv_cc_flag_unknown_warning_option=yes 8852 else $as_nop 8853 xorg_cv_cc_flag_unknown_warning_option=no 8854 fi 8855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8856 fi 8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8860 CFLAGS="$xorg_testset_save_CFLAGS" 8861 fi 8862 8863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8866 fi 8867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8871 then : 8872 printf %s "(cached) " >&6 8873 else $as_nop 8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8875 /* end confdefs.h. */ 8876 int i; 8877 _ACEOF 8878 if ac_fn_c_try_compile "$LINENO" 8879 then : 8880 xorg_cv_cc_flag_unused_command_line_argument=yes 8881 else $as_nop 8882 xorg_cv_cc_flag_unused_command_line_argument=no 8883 fi 8884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8885 fi 8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8887 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8889 CFLAGS="$xorg_testset_save_CFLAGS" 8890 fi 8891 8892 found="no" 8893 8894 if test $found = "no" ; then 8895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8897 fi 8898 8899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8901 fi 8902 8903 CFLAGS="$CFLAGS -Wimplicit" 8904 8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8906 printf %s "checking if $CC supports -Wimplicit... " >&6; } 8907 cacheid=xorg_cv_cc_flag__Wimplicit 8908 if eval test \${$cacheid+y} 8909 then : 8910 printf %s "(cached) " >&6 8911 else $as_nop 8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913 /* end confdefs.h. */ 8914 int i; 8915 int 8916 main (void) 8917 { 8918 8919 ; 8920 return 0; 8921 } 8922 _ACEOF 8923 if ac_fn_c_try_link "$LINENO" 8924 then : 8925 eval $cacheid=yes 8926 else $as_nop 8927 eval $cacheid=no 8928 fi 8929 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8930 conftest$ac_exeext conftest.$ac_ext 8931 fi 8932 8933 8934 CFLAGS="$xorg_testset_save_CFLAGS" 8935 8936 eval supported=\$$cacheid 8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8938 printf "%s\n" "$supported" >&6; } 8939 if test "$supported" = "yes" ; then 8940 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8941 found="yes" 8942 fi 8943 fi 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 xorg_testset_save_CFLAGS="$CFLAGS" 8960 8961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8964 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8965 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8966 then : 8967 printf %s "(cached) " >&6 8968 else $as_nop 8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8970 /* end confdefs.h. */ 8971 int i; 8972 _ACEOF 8973 if ac_fn_c_try_compile "$LINENO" 8974 then : 8975 xorg_cv_cc_flag_unknown_warning_option=yes 8976 else $as_nop 8977 xorg_cv_cc_flag_unknown_warning_option=no 8978 fi 8979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8980 fi 8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8984 CFLAGS="$xorg_testset_save_CFLAGS" 8985 fi 8986 8987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8990 fi 8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8995 then : 8996 printf %s "(cached) " >&6 8997 else $as_nop 8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8999 /* end confdefs.h. */ 9000 int i; 9001 _ACEOF 9002 if ac_fn_c_try_compile "$LINENO" 9003 then : 9004 xorg_cv_cc_flag_unused_command_line_argument=yes 9005 else $as_nop 9006 xorg_cv_cc_flag_unused_command_line_argument=no 9007 fi 9008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9009 fi 9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9011 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9013 CFLAGS="$xorg_testset_save_CFLAGS" 9014 fi 9015 9016 found="no" 9017 9018 if test $found = "no" ; then 9019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9021 fi 9022 9023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9025 fi 9026 9027 CFLAGS="$CFLAGS -Wnonnull" 9028 9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9030 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9031 cacheid=xorg_cv_cc_flag__Wnonnull 9032 if eval test \${$cacheid+y} 9033 then : 9034 printf %s "(cached) " >&6 9035 else $as_nop 9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9037 /* end confdefs.h. */ 9038 int i; 9039 int 9040 main (void) 9041 { 9042 9043 ; 9044 return 0; 9045 } 9046 _ACEOF 9047 if ac_fn_c_try_link "$LINENO" 9048 then : 9049 eval $cacheid=yes 9050 else $as_nop 9051 eval $cacheid=no 9052 fi 9053 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9054 conftest$ac_exeext conftest.$ac_ext 9055 fi 9056 9057 9058 CFLAGS="$xorg_testset_save_CFLAGS" 9059 9060 eval supported=\$$cacheid 9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9062 printf "%s\n" "$supported" >&6; } 9063 if test "$supported" = "yes" ; then 9064 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9065 found="yes" 9066 fi 9067 fi 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 xorg_testset_save_CFLAGS="$CFLAGS" 9084 9085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9088 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9089 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9090 then : 9091 printf %s "(cached) " >&6 9092 else $as_nop 9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9094 /* end confdefs.h. */ 9095 int i; 9096 _ACEOF 9097 if ac_fn_c_try_compile "$LINENO" 9098 then : 9099 xorg_cv_cc_flag_unknown_warning_option=yes 9100 else $as_nop 9101 xorg_cv_cc_flag_unknown_warning_option=no 9102 fi 9103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9104 fi 9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9106 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9108 CFLAGS="$xorg_testset_save_CFLAGS" 9109 fi 9110 9111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9114 fi 9115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9117 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9118 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9119 then : 9120 printf %s "(cached) " >&6 9121 else $as_nop 9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9123 /* end confdefs.h. */ 9124 int i; 9125 _ACEOF 9126 if ac_fn_c_try_compile "$LINENO" 9127 then : 9128 xorg_cv_cc_flag_unused_command_line_argument=yes 9129 else $as_nop 9130 xorg_cv_cc_flag_unused_command_line_argument=no 9131 fi 9132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9133 fi 9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9135 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9137 CFLAGS="$xorg_testset_save_CFLAGS" 9138 fi 9139 9140 found="no" 9141 9142 if test $found = "no" ; then 9143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9145 fi 9146 9147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9149 fi 9150 9151 CFLAGS="$CFLAGS -Winit-self" 9152 9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9154 printf %s "checking if $CC supports -Winit-self... " >&6; } 9155 cacheid=xorg_cv_cc_flag__Winit_self 9156 if eval test \${$cacheid+y} 9157 then : 9158 printf %s "(cached) " >&6 9159 else $as_nop 9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9161 /* end confdefs.h. */ 9162 int i; 9163 int 9164 main (void) 9165 { 9166 9167 ; 9168 return 0; 9169 } 9170 _ACEOF 9171 if ac_fn_c_try_link "$LINENO" 9172 then : 9173 eval $cacheid=yes 9174 else $as_nop 9175 eval $cacheid=no 9176 fi 9177 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9178 conftest$ac_exeext conftest.$ac_ext 9179 fi 9180 9181 9182 CFLAGS="$xorg_testset_save_CFLAGS" 9183 9184 eval supported=\$$cacheid 9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9186 printf "%s\n" "$supported" >&6; } 9187 if test "$supported" = "yes" ; then 9188 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9189 found="yes" 9190 fi 9191 fi 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 xorg_testset_save_CFLAGS="$CFLAGS" 9208 9209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9212 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9213 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9214 then : 9215 printf %s "(cached) " >&6 9216 else $as_nop 9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218 /* end confdefs.h. */ 9219 int i; 9220 _ACEOF 9221 if ac_fn_c_try_compile "$LINENO" 9222 then : 9223 xorg_cv_cc_flag_unknown_warning_option=yes 9224 else $as_nop 9225 xorg_cv_cc_flag_unknown_warning_option=no 9226 fi 9227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9228 fi 9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9230 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9232 CFLAGS="$xorg_testset_save_CFLAGS" 9233 fi 9234 9235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9238 fi 9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9241 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9242 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9243 then : 9244 printf %s "(cached) " >&6 9245 else $as_nop 9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9247 /* end confdefs.h. */ 9248 int i; 9249 _ACEOF 9250 if ac_fn_c_try_compile "$LINENO" 9251 then : 9252 xorg_cv_cc_flag_unused_command_line_argument=yes 9253 else $as_nop 9254 xorg_cv_cc_flag_unused_command_line_argument=no 9255 fi 9256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9257 fi 9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9259 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9261 CFLAGS="$xorg_testset_save_CFLAGS" 9262 fi 9263 9264 found="no" 9265 9266 if test $found = "no" ; then 9267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9269 fi 9270 9271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9273 fi 9274 9275 CFLAGS="$CFLAGS -Wmain" 9276 9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9278 printf %s "checking if $CC supports -Wmain... " >&6; } 9279 cacheid=xorg_cv_cc_flag__Wmain 9280 if eval test \${$cacheid+y} 9281 then : 9282 printf %s "(cached) " >&6 9283 else $as_nop 9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9285 /* end confdefs.h. */ 9286 int i; 9287 int 9288 main (void) 9289 { 9290 9291 ; 9292 return 0; 9293 } 9294 _ACEOF 9295 if ac_fn_c_try_link "$LINENO" 9296 then : 9297 eval $cacheid=yes 9298 else $as_nop 9299 eval $cacheid=no 9300 fi 9301 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9302 conftest$ac_exeext conftest.$ac_ext 9303 fi 9304 9305 9306 CFLAGS="$xorg_testset_save_CFLAGS" 9307 9308 eval supported=\$$cacheid 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9310 printf "%s\n" "$supported" >&6; } 9311 if test "$supported" = "yes" ; then 9312 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9313 found="yes" 9314 fi 9315 fi 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 xorg_testset_save_CFLAGS="$CFLAGS" 9332 9333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9336 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9337 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9338 then : 9339 printf %s "(cached) " >&6 9340 else $as_nop 9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9342 /* end confdefs.h. */ 9343 int i; 9344 _ACEOF 9345 if ac_fn_c_try_compile "$LINENO" 9346 then : 9347 xorg_cv_cc_flag_unknown_warning_option=yes 9348 else $as_nop 9349 xorg_cv_cc_flag_unknown_warning_option=no 9350 fi 9351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9352 fi 9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9354 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9356 CFLAGS="$xorg_testset_save_CFLAGS" 9357 fi 9358 9359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9362 fi 9363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9365 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9366 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9367 then : 9368 printf %s "(cached) " >&6 9369 else $as_nop 9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9371 /* end confdefs.h. */ 9372 int i; 9373 _ACEOF 9374 if ac_fn_c_try_compile "$LINENO" 9375 then : 9376 xorg_cv_cc_flag_unused_command_line_argument=yes 9377 else $as_nop 9378 xorg_cv_cc_flag_unused_command_line_argument=no 9379 fi 9380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9381 fi 9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9383 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9385 CFLAGS="$xorg_testset_save_CFLAGS" 9386 fi 9387 9388 found="no" 9389 9390 if test $found = "no" ; then 9391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9393 fi 9394 9395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9397 fi 9398 9399 CFLAGS="$CFLAGS -Wmissing-braces" 9400 9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9402 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9403 cacheid=xorg_cv_cc_flag__Wmissing_braces 9404 if eval test \${$cacheid+y} 9405 then : 9406 printf %s "(cached) " >&6 9407 else $as_nop 9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9409 /* end confdefs.h. */ 9410 int i; 9411 int 9412 main (void) 9413 { 9414 9415 ; 9416 return 0; 9417 } 9418 _ACEOF 9419 if ac_fn_c_try_link "$LINENO" 9420 then : 9421 eval $cacheid=yes 9422 else $as_nop 9423 eval $cacheid=no 9424 fi 9425 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9426 conftest$ac_exeext conftest.$ac_ext 9427 fi 9428 9429 9430 CFLAGS="$xorg_testset_save_CFLAGS" 9431 9432 eval supported=\$$cacheid 9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9434 printf "%s\n" "$supported" >&6; } 9435 if test "$supported" = "yes" ; then 9436 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9437 found="yes" 9438 fi 9439 fi 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 xorg_testset_save_CFLAGS="$CFLAGS" 9456 9457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9460 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9461 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9462 then : 9463 printf %s "(cached) " >&6 9464 else $as_nop 9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9466 /* end confdefs.h. */ 9467 int i; 9468 _ACEOF 9469 if ac_fn_c_try_compile "$LINENO" 9470 then : 9471 xorg_cv_cc_flag_unknown_warning_option=yes 9472 else $as_nop 9473 xorg_cv_cc_flag_unknown_warning_option=no 9474 fi 9475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9476 fi 9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9478 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9480 CFLAGS="$xorg_testset_save_CFLAGS" 9481 fi 9482 9483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9486 fi 9487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9489 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9490 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9491 then : 9492 printf %s "(cached) " >&6 9493 else $as_nop 9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9495 /* end confdefs.h. */ 9496 int i; 9497 _ACEOF 9498 if ac_fn_c_try_compile "$LINENO" 9499 then : 9500 xorg_cv_cc_flag_unused_command_line_argument=yes 9501 else $as_nop 9502 xorg_cv_cc_flag_unused_command_line_argument=no 9503 fi 9504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9505 fi 9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9507 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9509 CFLAGS="$xorg_testset_save_CFLAGS" 9510 fi 9511 9512 found="no" 9513 9514 if test $found = "no" ; then 9515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9517 fi 9518 9519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9521 fi 9522 9523 CFLAGS="$CFLAGS -Wsequence-point" 9524 9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9526 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9527 cacheid=xorg_cv_cc_flag__Wsequence_point 9528 if eval test \${$cacheid+y} 9529 then : 9530 printf %s "(cached) " >&6 9531 else $as_nop 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533 /* end confdefs.h. */ 9534 int i; 9535 int 9536 main (void) 9537 { 9538 9539 ; 9540 return 0; 9541 } 9542 _ACEOF 9543 if ac_fn_c_try_link "$LINENO" 9544 then : 9545 eval $cacheid=yes 9546 else $as_nop 9547 eval $cacheid=no 9548 fi 9549 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9550 conftest$ac_exeext conftest.$ac_ext 9551 fi 9552 9553 9554 CFLAGS="$xorg_testset_save_CFLAGS" 9555 9556 eval supported=\$$cacheid 9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9558 printf "%s\n" "$supported" >&6; } 9559 if test "$supported" = "yes" ; then 9560 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9561 found="yes" 9562 fi 9563 fi 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 xorg_testset_save_CFLAGS="$CFLAGS" 9580 9581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9584 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9585 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9586 then : 9587 printf %s "(cached) " >&6 9588 else $as_nop 9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9590 /* end confdefs.h. */ 9591 int i; 9592 _ACEOF 9593 if ac_fn_c_try_compile "$LINENO" 9594 then : 9595 xorg_cv_cc_flag_unknown_warning_option=yes 9596 else $as_nop 9597 xorg_cv_cc_flag_unknown_warning_option=no 9598 fi 9599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9600 fi 9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9602 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9604 CFLAGS="$xorg_testset_save_CFLAGS" 9605 fi 9606 9607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9610 fi 9611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9613 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9614 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9615 then : 9616 printf %s "(cached) " >&6 9617 else $as_nop 9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9619 /* end confdefs.h. */ 9620 int i; 9621 _ACEOF 9622 if ac_fn_c_try_compile "$LINENO" 9623 then : 9624 xorg_cv_cc_flag_unused_command_line_argument=yes 9625 else $as_nop 9626 xorg_cv_cc_flag_unused_command_line_argument=no 9627 fi 9628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9629 fi 9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9631 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9633 CFLAGS="$xorg_testset_save_CFLAGS" 9634 fi 9635 9636 found="no" 9637 9638 if test $found = "no" ; then 9639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9641 fi 9642 9643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9645 fi 9646 9647 CFLAGS="$CFLAGS -Wreturn-type" 9648 9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9650 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9651 cacheid=xorg_cv_cc_flag__Wreturn_type 9652 if eval test \${$cacheid+y} 9653 then : 9654 printf %s "(cached) " >&6 9655 else $as_nop 9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9657 /* end confdefs.h. */ 9658 int i; 9659 int 9660 main (void) 9661 { 9662 9663 ; 9664 return 0; 9665 } 9666 _ACEOF 9667 if ac_fn_c_try_link "$LINENO" 9668 then : 9669 eval $cacheid=yes 9670 else $as_nop 9671 eval $cacheid=no 9672 fi 9673 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9674 conftest$ac_exeext conftest.$ac_ext 9675 fi 9676 9677 9678 CFLAGS="$xorg_testset_save_CFLAGS" 9679 9680 eval supported=\$$cacheid 9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9682 printf "%s\n" "$supported" >&6; } 9683 if test "$supported" = "yes" ; then 9684 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9685 found="yes" 9686 fi 9687 fi 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 xorg_testset_save_CFLAGS="$CFLAGS" 9704 9705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9708 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9709 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9710 then : 9711 printf %s "(cached) " >&6 9712 else $as_nop 9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9714 /* end confdefs.h. */ 9715 int i; 9716 _ACEOF 9717 if ac_fn_c_try_compile "$LINENO" 9718 then : 9719 xorg_cv_cc_flag_unknown_warning_option=yes 9720 else $as_nop 9721 xorg_cv_cc_flag_unknown_warning_option=no 9722 fi 9723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9724 fi 9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9726 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9728 CFLAGS="$xorg_testset_save_CFLAGS" 9729 fi 9730 9731 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9734 fi 9735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9737 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9738 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9739 then : 9740 printf %s "(cached) " >&6 9741 else $as_nop 9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9743 /* end confdefs.h. */ 9744 int i; 9745 _ACEOF 9746 if ac_fn_c_try_compile "$LINENO" 9747 then : 9748 xorg_cv_cc_flag_unused_command_line_argument=yes 9749 else $as_nop 9750 xorg_cv_cc_flag_unused_command_line_argument=no 9751 fi 9752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9753 fi 9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9755 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9757 CFLAGS="$xorg_testset_save_CFLAGS" 9758 fi 9759 9760 found="no" 9761 9762 if test $found = "no" ; then 9763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9765 fi 9766 9767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9769 fi 9770 9771 CFLAGS="$CFLAGS -Wtrigraphs" 9772 9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9774 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9775 cacheid=xorg_cv_cc_flag__Wtrigraphs 9776 if eval test \${$cacheid+y} 9777 then : 9778 printf %s "(cached) " >&6 9779 else $as_nop 9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9781 /* end confdefs.h. */ 9782 int i; 9783 int 9784 main (void) 9785 { 9786 9787 ; 9788 return 0; 9789 } 9790 _ACEOF 9791 if ac_fn_c_try_link "$LINENO" 9792 then : 9793 eval $cacheid=yes 9794 else $as_nop 9795 eval $cacheid=no 9796 fi 9797 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9798 conftest$ac_exeext conftest.$ac_ext 9799 fi 9800 9801 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803 9804 eval supported=\$$cacheid 9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9806 printf "%s\n" "$supported" >&6; } 9807 if test "$supported" = "yes" ; then 9808 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9809 found="yes" 9810 fi 9811 fi 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 xorg_testset_save_CFLAGS="$CFLAGS" 9828 9829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9832 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9833 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9834 then : 9835 printf %s "(cached) " >&6 9836 else $as_nop 9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838 /* end confdefs.h. */ 9839 int i; 9840 _ACEOF 9841 if ac_fn_c_try_compile "$LINENO" 9842 then : 9843 xorg_cv_cc_flag_unknown_warning_option=yes 9844 else $as_nop 9845 xorg_cv_cc_flag_unknown_warning_option=no 9846 fi 9847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9848 fi 9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9850 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9852 CFLAGS="$xorg_testset_save_CFLAGS" 9853 fi 9854 9855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9858 fi 9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9861 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9862 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9863 then : 9864 printf %s "(cached) " >&6 9865 else $as_nop 9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9867 /* end confdefs.h. */ 9868 int i; 9869 _ACEOF 9870 if ac_fn_c_try_compile "$LINENO" 9871 then : 9872 xorg_cv_cc_flag_unused_command_line_argument=yes 9873 else $as_nop 9874 xorg_cv_cc_flag_unused_command_line_argument=no 9875 fi 9876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9877 fi 9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9879 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9881 CFLAGS="$xorg_testset_save_CFLAGS" 9882 fi 9883 9884 found="no" 9885 9886 if test $found = "no" ; then 9887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9889 fi 9890 9891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9893 fi 9894 9895 CFLAGS="$CFLAGS -Warray-bounds" 9896 9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9898 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9899 cacheid=xorg_cv_cc_flag__Warray_bounds 9900 if eval test \${$cacheid+y} 9901 then : 9902 printf %s "(cached) " >&6 9903 else $as_nop 9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9905 /* end confdefs.h. */ 9906 int i; 9907 int 9908 main (void) 9909 { 9910 9911 ; 9912 return 0; 9913 } 9914 _ACEOF 9915 if ac_fn_c_try_link "$LINENO" 9916 then : 9917 eval $cacheid=yes 9918 else $as_nop 9919 eval $cacheid=no 9920 fi 9921 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9922 conftest$ac_exeext conftest.$ac_ext 9923 fi 9924 9925 9926 CFLAGS="$xorg_testset_save_CFLAGS" 9927 9928 eval supported=\$$cacheid 9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9930 printf "%s\n" "$supported" >&6; } 9931 if test "$supported" = "yes" ; then 9932 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9933 found="yes" 9934 fi 9935 fi 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 xorg_testset_save_CFLAGS="$CFLAGS" 9952 9953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9956 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9957 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9958 then : 9959 printf %s "(cached) " >&6 9960 else $as_nop 9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9962 /* end confdefs.h. */ 9963 int i; 9964 _ACEOF 9965 if ac_fn_c_try_compile "$LINENO" 9966 then : 9967 xorg_cv_cc_flag_unknown_warning_option=yes 9968 else $as_nop 9969 xorg_cv_cc_flag_unknown_warning_option=no 9970 fi 9971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9972 fi 9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9974 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9976 CFLAGS="$xorg_testset_save_CFLAGS" 9977 fi 9978 9979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9982 fi 9983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9985 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9986 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9987 then : 9988 printf %s "(cached) " >&6 9989 else $as_nop 9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9991 /* end confdefs.h. */ 9992 int i; 9993 _ACEOF 9994 if ac_fn_c_try_compile "$LINENO" 9995 then : 9996 xorg_cv_cc_flag_unused_command_line_argument=yes 9997 else $as_nop 9998 xorg_cv_cc_flag_unused_command_line_argument=no 9999 fi 10000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10001 fi 10002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10003 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10005 CFLAGS="$xorg_testset_save_CFLAGS" 10006 fi 10007 10008 found="no" 10009 10010 if test $found = "no" ; then 10011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10013 fi 10014 10015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10017 fi 10018 10019 CFLAGS="$CFLAGS -Wwrite-strings" 10020 10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10022 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10023 cacheid=xorg_cv_cc_flag__Wwrite_strings 10024 if eval test \${$cacheid+y} 10025 then : 10026 printf %s "(cached) " >&6 10027 else $as_nop 10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10029 /* end confdefs.h. */ 10030 int i; 10031 int 10032 main (void) 10033 { 10034 10035 ; 10036 return 0; 10037 } 10038 _ACEOF 10039 if ac_fn_c_try_link "$LINENO" 10040 then : 10041 eval $cacheid=yes 10042 else $as_nop 10043 eval $cacheid=no 10044 fi 10045 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10046 conftest$ac_exeext conftest.$ac_ext 10047 fi 10048 10049 10050 CFLAGS="$xorg_testset_save_CFLAGS" 10051 10052 eval supported=\$$cacheid 10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10054 printf "%s\n" "$supported" >&6; } 10055 if test "$supported" = "yes" ; then 10056 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10057 found="yes" 10058 fi 10059 fi 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 xorg_testset_save_CFLAGS="$CFLAGS" 10076 10077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10080 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10081 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10082 then : 10083 printf %s "(cached) " >&6 10084 else $as_nop 10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10086 /* end confdefs.h. */ 10087 int i; 10088 _ACEOF 10089 if ac_fn_c_try_compile "$LINENO" 10090 then : 10091 xorg_cv_cc_flag_unknown_warning_option=yes 10092 else $as_nop 10093 xorg_cv_cc_flag_unknown_warning_option=no 10094 fi 10095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10096 fi 10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10098 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10100 CFLAGS="$xorg_testset_save_CFLAGS" 10101 fi 10102 10103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10106 fi 10107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10109 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10110 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10111 then : 10112 printf %s "(cached) " >&6 10113 else $as_nop 10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10115 /* end confdefs.h. */ 10116 int i; 10117 _ACEOF 10118 if ac_fn_c_try_compile "$LINENO" 10119 then : 10120 xorg_cv_cc_flag_unused_command_line_argument=yes 10121 else $as_nop 10122 xorg_cv_cc_flag_unused_command_line_argument=no 10123 fi 10124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10125 fi 10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10127 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10129 CFLAGS="$xorg_testset_save_CFLAGS" 10130 fi 10131 10132 found="no" 10133 10134 if test $found = "no" ; then 10135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10137 fi 10138 10139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10141 fi 10142 10143 CFLAGS="$CFLAGS -Waddress" 10144 10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10146 printf %s "checking if $CC supports -Waddress... " >&6; } 10147 cacheid=xorg_cv_cc_flag__Waddress 10148 if eval test \${$cacheid+y} 10149 then : 10150 printf %s "(cached) " >&6 10151 else $as_nop 10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10153 /* end confdefs.h. */ 10154 int i; 10155 int 10156 main (void) 10157 { 10158 10159 ; 10160 return 0; 10161 } 10162 _ACEOF 10163 if ac_fn_c_try_link "$LINENO" 10164 then : 10165 eval $cacheid=yes 10166 else $as_nop 10167 eval $cacheid=no 10168 fi 10169 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10170 conftest$ac_exeext conftest.$ac_ext 10171 fi 10172 10173 10174 CFLAGS="$xorg_testset_save_CFLAGS" 10175 10176 eval supported=\$$cacheid 10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10178 printf "%s\n" "$supported" >&6; } 10179 if test "$supported" = "yes" ; then 10180 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10181 found="yes" 10182 fi 10183 fi 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 xorg_testset_save_CFLAGS="$CFLAGS" 10200 10201 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10204 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10205 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10206 then : 10207 printf %s "(cached) " >&6 10208 else $as_nop 10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10210 /* end confdefs.h. */ 10211 int i; 10212 _ACEOF 10213 if ac_fn_c_try_compile "$LINENO" 10214 then : 10215 xorg_cv_cc_flag_unknown_warning_option=yes 10216 else $as_nop 10217 xorg_cv_cc_flag_unknown_warning_option=no 10218 fi 10219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10220 fi 10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10222 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10224 CFLAGS="$xorg_testset_save_CFLAGS" 10225 fi 10226 10227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10230 fi 10231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10233 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10234 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10235 then : 10236 printf %s "(cached) " >&6 10237 else $as_nop 10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10239 /* end confdefs.h. */ 10240 int i; 10241 _ACEOF 10242 if ac_fn_c_try_compile "$LINENO" 10243 then : 10244 xorg_cv_cc_flag_unused_command_line_argument=yes 10245 else $as_nop 10246 xorg_cv_cc_flag_unused_command_line_argument=no 10247 fi 10248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10249 fi 10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10251 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10253 CFLAGS="$xorg_testset_save_CFLAGS" 10254 fi 10255 10256 found="no" 10257 10258 if test $found = "no" ; then 10259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10261 fi 10262 10263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10265 fi 10266 10267 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10268 10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10270 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10271 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10272 if eval test \${$cacheid+y} 10273 then : 10274 printf %s "(cached) " >&6 10275 else $as_nop 10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10277 /* end confdefs.h. */ 10278 int i; 10279 int 10280 main (void) 10281 { 10282 10283 ; 10284 return 0; 10285 } 10286 _ACEOF 10287 if ac_fn_c_try_link "$LINENO" 10288 then : 10289 eval $cacheid=yes 10290 else $as_nop 10291 eval $cacheid=no 10292 fi 10293 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10294 conftest$ac_exeext conftest.$ac_ext 10295 fi 10296 10297 10298 CFLAGS="$xorg_testset_save_CFLAGS" 10299 10300 eval supported=\$$cacheid 10301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10302 printf "%s\n" "$supported" >&6; } 10303 if test "$supported" = "yes" ; then 10304 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10305 found="yes" 10306 fi 10307 fi 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 xorg_testset_save_CFLAGS="$CFLAGS" 10324 10325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10328 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10329 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10330 then : 10331 printf %s "(cached) " >&6 10332 else $as_nop 10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10334 /* end confdefs.h. */ 10335 int i; 10336 _ACEOF 10337 if ac_fn_c_try_compile "$LINENO" 10338 then : 10339 xorg_cv_cc_flag_unknown_warning_option=yes 10340 else $as_nop 10341 xorg_cv_cc_flag_unknown_warning_option=no 10342 fi 10343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10344 fi 10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10346 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10348 CFLAGS="$xorg_testset_save_CFLAGS" 10349 fi 10350 10351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10354 fi 10355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10357 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10358 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10359 then : 10360 printf %s "(cached) " >&6 10361 else $as_nop 10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10363 /* end confdefs.h. */ 10364 int i; 10365 _ACEOF 10366 if ac_fn_c_try_compile "$LINENO" 10367 then : 10368 xorg_cv_cc_flag_unused_command_line_argument=yes 10369 else $as_nop 10370 xorg_cv_cc_flag_unused_command_line_argument=no 10371 fi 10372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10373 fi 10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10375 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10377 CFLAGS="$xorg_testset_save_CFLAGS" 10378 fi 10379 10380 found="no" 10381 10382 if test $found = "no" ; then 10383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10385 fi 10386 10387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10389 fi 10390 10391 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10392 10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10394 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10395 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10396 if eval test \${$cacheid+y} 10397 then : 10398 printf %s "(cached) " >&6 10399 else $as_nop 10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10401 /* end confdefs.h. */ 10402 int i; 10403 int 10404 main (void) 10405 { 10406 10407 ; 10408 return 0; 10409 } 10410 _ACEOF 10411 if ac_fn_c_try_link "$LINENO" 10412 then : 10413 eval $cacheid=yes 10414 else $as_nop 10415 eval $cacheid=no 10416 fi 10417 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10418 conftest$ac_exeext conftest.$ac_ext 10419 fi 10420 10421 10422 CFLAGS="$xorg_testset_save_CFLAGS" 10423 10424 eval supported=\$$cacheid 10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10426 printf "%s\n" "$supported" >&6; } 10427 if test "$supported" = "yes" ; then 10428 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10429 found="yes" 10430 fi 10431 fi 10432 10433 10434 fi 10435 10436 10437 10438 10439 10440 10441 10442 CWARNFLAGS="$BASE_CFLAGS" 10443 if test "x$GCC" = xyes ; then 10444 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10445 fi 10446 10447 10448 10449 10450 10451 10452 10453 10454 # Check whether --enable-strict-compilation was given. 10455 if test ${enable_strict_compilation+y} 10456 then : 10457 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10458 else $as_nop 10459 STRICT_COMPILE=no 10460 fi 10461 10462 10463 10464 10465 10466 10467 STRICT_CFLAGS="" 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 xorg_testset_save_CFLAGS="$CFLAGS" 10482 10483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10486 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10487 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10488 then : 10489 printf %s "(cached) " >&6 10490 else $as_nop 10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10492 /* end confdefs.h. */ 10493 int i; 10494 _ACEOF 10495 if ac_fn_c_try_compile "$LINENO" 10496 then : 10497 xorg_cv_cc_flag_unknown_warning_option=yes 10498 else $as_nop 10499 xorg_cv_cc_flag_unknown_warning_option=no 10500 fi 10501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10502 fi 10503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10504 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10506 CFLAGS="$xorg_testset_save_CFLAGS" 10507 fi 10508 10509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10512 fi 10513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10515 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10516 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10517 then : 10518 printf %s "(cached) " >&6 10519 else $as_nop 10520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10521 /* end confdefs.h. */ 10522 int i; 10523 _ACEOF 10524 if ac_fn_c_try_compile "$LINENO" 10525 then : 10526 xorg_cv_cc_flag_unused_command_line_argument=yes 10527 else $as_nop 10528 xorg_cv_cc_flag_unused_command_line_argument=no 10529 fi 10530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10531 fi 10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10533 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10535 CFLAGS="$xorg_testset_save_CFLAGS" 10536 fi 10537 10538 found="no" 10539 10540 if test $found = "no" ; then 10541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10543 fi 10544 10545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10547 fi 10548 10549 CFLAGS="$CFLAGS -pedantic" 10550 10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10552 printf %s "checking if $CC supports -pedantic... " >&6; } 10553 cacheid=xorg_cv_cc_flag__pedantic 10554 if eval test \${$cacheid+y} 10555 then : 10556 printf %s "(cached) " >&6 10557 else $as_nop 10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10559 /* end confdefs.h. */ 10560 int i; 10561 int 10562 main (void) 10563 { 10564 10565 ; 10566 return 0; 10567 } 10568 _ACEOF 10569 if ac_fn_c_try_link "$LINENO" 10570 then : 10571 eval $cacheid=yes 10572 else $as_nop 10573 eval $cacheid=no 10574 fi 10575 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10576 conftest$ac_exeext conftest.$ac_ext 10577 fi 10578 10579 10580 CFLAGS="$xorg_testset_save_CFLAGS" 10581 10582 eval supported=\$$cacheid 10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10584 printf "%s\n" "$supported" >&6; } 10585 if test "$supported" = "yes" ; then 10586 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10587 found="yes" 10588 fi 10589 fi 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 xorg_testset_save_CFLAGS="$CFLAGS" 10606 10607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10610 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10611 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10612 then : 10613 printf %s "(cached) " >&6 10614 else $as_nop 10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10616 /* end confdefs.h. */ 10617 int i; 10618 _ACEOF 10619 if ac_fn_c_try_compile "$LINENO" 10620 then : 10621 xorg_cv_cc_flag_unknown_warning_option=yes 10622 else $as_nop 10623 xorg_cv_cc_flag_unknown_warning_option=no 10624 fi 10625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10626 fi 10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10628 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10630 CFLAGS="$xorg_testset_save_CFLAGS" 10631 fi 10632 10633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10636 fi 10637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10639 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10640 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10641 then : 10642 printf %s "(cached) " >&6 10643 else $as_nop 10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10645 /* end confdefs.h. */ 10646 int i; 10647 _ACEOF 10648 if ac_fn_c_try_compile "$LINENO" 10649 then : 10650 xorg_cv_cc_flag_unused_command_line_argument=yes 10651 else $as_nop 10652 xorg_cv_cc_flag_unused_command_line_argument=no 10653 fi 10654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10655 fi 10656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10657 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10659 CFLAGS="$xorg_testset_save_CFLAGS" 10660 fi 10661 10662 found="no" 10663 10664 if test $found = "no" ; then 10665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10667 fi 10668 10669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10671 fi 10672 10673 CFLAGS="$CFLAGS -Werror" 10674 10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10676 printf %s "checking if $CC supports -Werror... " >&6; } 10677 cacheid=xorg_cv_cc_flag__Werror 10678 if eval test \${$cacheid+y} 10679 then : 10680 printf %s "(cached) " >&6 10681 else $as_nop 10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10683 /* end confdefs.h. */ 10684 int i; 10685 int 10686 main (void) 10687 { 10688 10689 ; 10690 return 0; 10691 } 10692 _ACEOF 10693 if ac_fn_c_try_link "$LINENO" 10694 then : 10695 eval $cacheid=yes 10696 else $as_nop 10697 eval $cacheid=no 10698 fi 10699 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10700 conftest$ac_exeext conftest.$ac_ext 10701 fi 10702 10703 10704 CFLAGS="$xorg_testset_save_CFLAGS" 10705 10706 eval supported=\$$cacheid 10707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10708 printf "%s\n" "$supported" >&6; } 10709 if test "$supported" = "yes" ; then 10710 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10711 found="yes" 10712 fi 10713 fi 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 -errwarn" 10725 10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10727 printf %s "checking if $CC supports -errwarn... " >&6; } 10728 cacheid=xorg_cv_cc_flag__errwarn 10729 if eval test \${$cacheid+y} 10730 then : 10731 printf %s "(cached) " >&6 10732 else $as_nop 10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10734 /* end confdefs.h. */ 10735 int i; 10736 int 10737 main (void) 10738 { 10739 10740 ; 10741 return 0; 10742 } 10743 _ACEOF 10744 if ac_fn_c_try_link "$LINENO" 10745 then : 10746 eval $cacheid=yes 10747 else $as_nop 10748 eval $cacheid=no 10749 fi 10750 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10751 conftest$ac_exeext conftest.$ac_ext 10752 fi 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 10759 printf "%s\n" "$supported" >&6; } 10760 if test "$supported" = "yes" ; then 10761 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10762 found="yes" 10763 fi 10764 fi 10765 10766 10767 10768 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10769 # activate it with -Werror, so we add it here explicitly. 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 xorg_testset_save_CFLAGS="$CFLAGS" 10784 10785 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10788 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10789 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10790 then : 10791 printf %s "(cached) " >&6 10792 else $as_nop 10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10794 /* end confdefs.h. */ 10795 int i; 10796 _ACEOF 10797 if ac_fn_c_try_compile "$LINENO" 10798 then : 10799 xorg_cv_cc_flag_unknown_warning_option=yes 10800 else $as_nop 10801 xorg_cv_cc_flag_unknown_warning_option=no 10802 fi 10803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10804 fi 10805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10806 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10808 CFLAGS="$xorg_testset_save_CFLAGS" 10809 fi 10810 10811 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10814 fi 10815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10817 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10818 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10819 then : 10820 printf %s "(cached) " >&6 10821 else $as_nop 10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10823 /* end confdefs.h. */ 10824 int i; 10825 _ACEOF 10826 if ac_fn_c_try_compile "$LINENO" 10827 then : 10828 xorg_cv_cc_flag_unused_command_line_argument=yes 10829 else $as_nop 10830 xorg_cv_cc_flag_unused_command_line_argument=no 10831 fi 10832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10833 fi 10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10835 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10837 CFLAGS="$xorg_testset_save_CFLAGS" 10838 fi 10839 10840 found="no" 10841 10842 if test $found = "no" ; then 10843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10845 fi 10846 10847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10849 fi 10850 10851 CFLAGS="$CFLAGS -Werror=attributes" 10852 10853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10854 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10855 cacheid=xorg_cv_cc_flag__Werror_attributes 10856 if eval test \${$cacheid+y} 10857 then : 10858 printf %s "(cached) " >&6 10859 else $as_nop 10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10861 /* end confdefs.h. */ 10862 int i; 10863 int 10864 main (void) 10865 { 10866 10867 ; 10868 return 0; 10869 } 10870 _ACEOF 10871 if ac_fn_c_try_link "$LINENO" 10872 then : 10873 eval $cacheid=yes 10874 else $as_nop 10875 eval $cacheid=no 10876 fi 10877 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10878 conftest$ac_exeext conftest.$ac_ext 10879 fi 10880 10881 10882 CFLAGS="$xorg_testset_save_CFLAGS" 10883 10884 eval supported=\$$cacheid 10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10886 printf "%s\n" "$supported" >&6; } 10887 if test "$supported" = "yes" ; then 10888 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10889 found="yes" 10890 fi 10891 fi 10892 10893 10894 10895 if test "x$STRICT_COMPILE" = "xyes"; then 10896 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10897 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10898 fi 10899 10900 10901 10902 10903 10904 10905 cat >>confdefs.h <<_ACEOF 10906 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10907 _ACEOF 10908 10909 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10910 if test "x$PVM" = "x"; then 10911 PVM="0" 10912 fi 10913 10914 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10915 10916 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10917 if test "x$PVP" = "x"; then 10918 PVP="0" 10919 fi 10920 10921 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10922 10923 10924 10925 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10926 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10927 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10928 touch \$(top_srcdir)/ChangeLog; \ 10929 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10930 10931 10932 10933 10934 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10935 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10936 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10937 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10938 touch \$(top_srcdir)/INSTALL; \ 10939 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10940 10941 10942 10943 10944 10945 10946 case $host_os in 10947 solaris*) 10948 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10949 # check for a man page file found in later versions that use 10950 # traditional section numbers instead 10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10952 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10953 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10954 then : 10955 printf %s "(cached) " >&6 10956 else $as_nop 10957 test "$cross_compiling" = yes && 10958 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10959 if test -r "/usr/share/man/man7/attributes.7"; then 10960 ac_cv_file__usr_share_man_man7_attributes_7=yes 10961 else 10962 ac_cv_file__usr_share_man_man7_attributes_7=no 10963 fi 10964 fi 10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10966 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10967 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10968 then : 10969 SYSV_MAN_SECTIONS=false 10970 else $as_nop 10971 SYSV_MAN_SECTIONS=true 10972 fi 10973 10974 ;; 10975 *) SYSV_MAN_SECTIONS=false ;; 10976 esac 10977 10978 if test x$APP_MAN_SUFFIX = x ; then 10979 APP_MAN_SUFFIX=1 10980 fi 10981 if test x$APP_MAN_DIR = x ; then 10982 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10983 fi 10984 10985 if test x$LIB_MAN_SUFFIX = x ; then 10986 LIB_MAN_SUFFIX=3 10987 fi 10988 if test x$LIB_MAN_DIR = x ; then 10989 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10990 fi 10991 10992 if test x$FILE_MAN_SUFFIX = x ; then 10993 case $SYSV_MAN_SECTIONS in 10994 true) FILE_MAN_SUFFIX=4 ;; 10995 *) FILE_MAN_SUFFIX=5 ;; 10996 esac 10997 fi 10998 if test x$FILE_MAN_DIR = x ; then 10999 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11000 fi 11001 11002 if test x$MISC_MAN_SUFFIX = x ; then 11003 case $SYSV_MAN_SECTIONS in 11004 true) MISC_MAN_SUFFIX=5 ;; 11005 *) MISC_MAN_SUFFIX=7 ;; 11006 esac 11007 fi 11008 if test x$MISC_MAN_DIR = x ; then 11009 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11010 fi 11011 11012 if test x$DRIVER_MAN_SUFFIX = x ; then 11013 case $SYSV_MAN_SECTIONS in 11014 true) DRIVER_MAN_SUFFIX=7 ;; 11015 *) DRIVER_MAN_SUFFIX=4 ;; 11016 esac 11017 fi 11018 if test x$DRIVER_MAN_DIR = x ; then 11019 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11020 fi 11021 11022 if test x$ADMIN_MAN_SUFFIX = x ; then 11023 case $SYSV_MAN_SECTIONS in 11024 true) ADMIN_MAN_SUFFIX=1m ;; 11025 *) ADMIN_MAN_SUFFIX=8 ;; 11026 esac 11027 fi 11028 if test x$ADMIN_MAN_DIR = x ; then 11029 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11030 fi 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 XORG_MAN_PAGE="X Version 11" 11047 11048 MAN_SUBSTS="\ 11049 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11050 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11051 -e 's|__xservername__|Xorg|g' \ 11052 -e 's|__xconfigfile__|xorg.conf|g' \ 11053 -e 's|__projectroot__|\$(prefix)|g' \ 11054 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11055 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11056 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11057 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11058 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11059 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11060 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11061 11062 11063 11064 # Check whether --enable-silent-rules was given. 11065 if test ${enable_silent_rules+y} 11066 then : 11067 enableval=$enable_silent_rules; 11068 fi 11069 11070 case $enable_silent_rules in # ((( 11071 yes) AM_DEFAULT_VERBOSITY=0;; 11072 no) AM_DEFAULT_VERBOSITY=1;; 11073 *) AM_DEFAULT_VERBOSITY=0;; 11074 esac 11075 am_make=${MAKE-make} 11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11077 printf %s "checking whether $am_make supports nested variables... " >&6; } 11078 if test ${am_cv_make_support_nested_variables+y} 11079 then : 11080 printf %s "(cached) " >&6 11081 else $as_nop 11082 if printf "%s\n" 'TRUE=$(BAR$(V)) 11083 BAR0=false 11084 BAR1=true 11085 V=1 11086 am__doit: 11087 @$(TRUE) 11088 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11089 am_cv_make_support_nested_variables=yes 11090 else 11091 am_cv_make_support_nested_variables=no 11092 fi 11093 fi 11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11095 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11096 if test $am_cv_make_support_nested_variables = yes; then 11097 AM_V='$(V)' 11098 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11099 else 11100 AM_V=$AM_DEFAULT_VERBOSITY 11101 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11102 fi 11103 AM_BACKSLASH='\' 11104 11105 11106 11107 # Checks for pkg-config packages 11108 11109 pkg_failed=no 11110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSETROOT" >&5 11111 printf %s "checking for XSETROOT... " >&6; } 11112 11113 if test -n "$XSETROOT_CFLAGS"; then 11114 pkg_cv_XSETROOT_CFLAGS="$XSETROOT_CFLAGS" 11115 elif test -n "$PKG_CONFIG"; then 11116 if test -n "$PKG_CONFIG" && \ 11117 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xbitmaps xcursor xproto >= 7.0.25\""; } >&5 11118 ($PKG_CONFIG --exists --print-errors "xmuu x11 xbitmaps xcursor xproto >= 7.0.25") 2>&5 11119 ac_status=$? 11120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11121 test $ac_status = 0; }; then 11122 pkg_cv_XSETROOT_CFLAGS=`$PKG_CONFIG --cflags "xmuu x11 xbitmaps xcursor xproto >= 7.0.25" 2>/dev/null` 11123 test "x$?" != "x0" && pkg_failed=yes 11124 else 11125 pkg_failed=yes 11126 fi 11127 else 11128 pkg_failed=untried 11129 fi 11130 if test -n "$XSETROOT_LIBS"; then 11131 pkg_cv_XSETROOT_LIBS="$XSETROOT_LIBS" 11132 elif test -n "$PKG_CONFIG"; then 11133 if test -n "$PKG_CONFIG" && \ 11134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xbitmaps xcursor xproto >= 7.0.25\""; } >&5 11135 ($PKG_CONFIG --exists --print-errors "xmuu x11 xbitmaps xcursor xproto >= 7.0.25") 2>&5 11136 ac_status=$? 11137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11138 test $ac_status = 0; }; then 11139 pkg_cv_XSETROOT_LIBS=`$PKG_CONFIG --libs "xmuu x11 xbitmaps xcursor xproto >= 7.0.25" 2>/dev/null` 11140 test "x$?" != "x0" && pkg_failed=yes 11141 else 11142 pkg_failed=yes 11143 fi 11144 else 11145 pkg_failed=untried 11146 fi 11147 11148 11149 11150 if test $pkg_failed = yes; then 11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11152 printf "%s\n" "no" >&6; } 11153 11154 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11155 _pkg_short_errors_supported=yes 11156 else 11157 _pkg_short_errors_supported=no 11158 fi 11159 if test $_pkg_short_errors_supported = yes; then 11160 XSETROOT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmuu x11 xbitmaps xcursor xproto >= 7.0.25" 2>&1` 11161 else 11162 XSETROOT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu x11 xbitmaps xcursor xproto >= 7.0.25" 2>&1` 11163 fi 11164 # Put the nasty error message in config.log where it belongs 11165 echo "$XSETROOT_PKG_ERRORS" >&5 11166 11167 as_fn_error $? "Package requirements (xmuu x11 xbitmaps xcursor xproto >= 7.0.25) were not met: 11168 11169 $XSETROOT_PKG_ERRORS 11170 11171 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11172 installed software in a non-standard prefix. 11173 11174 Alternatively, you may set the environment variables XSETROOT_CFLAGS 11175 and XSETROOT_LIBS to avoid the need to call pkg-config. 11176 See the pkg-config man page for more details." "$LINENO" 5 11177 elif test $pkg_failed = untried; then 11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11179 printf "%s\n" "no" >&6; } 11180 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11181 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11182 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11183 is in your PATH or set the PKG_CONFIG environment variable to the full 11184 path to pkg-config. 11185 11186 Alternatively, you may set the environment variables XSETROOT_CFLAGS 11187 and XSETROOT_LIBS to avoid the need to call pkg-config. 11188 See the pkg-config man page for more details. 11189 11190 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11191 See \`config.log' for more details" "$LINENO" 5; } 11192 else 11193 XSETROOT_CFLAGS=$pkg_cv_XSETROOT_CFLAGS 11194 XSETROOT_LIBS=$pkg_cv_XSETROOT_LIBS 11195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11196 printf "%s\n" "yes" >&6; } 11197 11198 fi 11199 11200 11201 11202 11203 11204 11205 # Check whether --with-lint was given. 11206 if test ${with_lint+y} 11207 then : 11208 withval=$with_lint; use_lint=$withval 11209 else $as_nop 11210 use_lint=no 11211 fi 11212 11213 11214 # Obtain platform specific info like program name and options 11215 # The lint program on FreeBSD and NetBSD is different from the one on Solaris 11216 case $host_os in 11217 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11218 lint_name=splint 11219 lint_options="-badflag" 11220 ;; 11221 *freebsd* | *netbsd*) 11222 lint_name=lint 11223 lint_options="-u -b" 11224 ;; 11225 *solaris*) 11226 lint_name=lint 11227 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11228 ;; 11229 esac 11230 11231 # Test for the presence of the program (either guessed by the code or spelled out by the user) 11232 if test "x$use_lint" = x"yes" ; then 11233 # Extract the first word of "$lint_name", so it can be a program name with args. 11234 set dummy $lint_name; ac_word=$2 11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11236 printf %s "checking for $ac_word... " >&6; } 11237 if test ${ac_cv_path_LINT+y} 11238 then : 11239 printf %s "(cached) " >&6 11240 else $as_nop 11241 case $LINT in 11242 [\\/]* | ?:[\\/]*) 11243 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11244 ;; 11245 *) 11246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11247 for as_dir in $PATH 11248 do 11249 IFS=$as_save_IFS 11250 case $as_dir in #((( 11251 '') as_dir=./ ;; 11252 */) ;; 11253 *) as_dir=$as_dir/ ;; 11254 esac 11255 for ac_exec_ext in '' $ac_executable_extensions; do 11256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11257 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 11258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11259 break 2 11260 fi 11261 done 11262 done 11263 IFS=$as_save_IFS 11264 11265 ;; 11266 esac 11267 fi 11268 LINT=$ac_cv_path_LINT 11269 if test -n "$LINT"; then 11270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11271 printf "%s\n" "$LINT" >&6; } 11272 else 11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11274 printf "%s\n" "no" >&6; } 11275 fi 11276 11277 11278 if test "x$LINT" = "x"; then 11279 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11280 fi 11281 elif test "x$use_lint" = x"no" ; then 11282 if test "x$LINT" != "x"; then 11283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11284 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11285 fi 11286 else 11287 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11288 fi 11289 11290 # User supplied flags override default flags 11291 if test "x$LINT_FLAGS" != "x"; then 11292 lint_options=$LINT_FLAGS 11293 fi 11294 11295 LINT_FLAGS=$lint_options 11296 11297 if test "x$LINT" != x; then 11298 LINT_TRUE= 11299 LINT_FALSE='#' 11300 else 11301 LINT_TRUE='#' 11302 LINT_FALSE= 11303 fi 11304 11305 11306 11307 11308 ac_config_files="$ac_config_files Makefile man/Makefile" 11309 11310 cat >confcache <<\_ACEOF 11311 # This file is a shell script that caches the results of configure 11312 # tests run on this system so they can be shared between configure 11313 # scripts and configure runs, see configure's option --config-cache. 11314 # It is not useful on other systems. If it contains results you don't 11315 # want to keep, you may remove or edit it. 11316 # 11317 # config.status only pays attention to the cache file if you give it 11318 # the --recheck option to rerun configure. 11319 # 11320 # `ac_cv_env_foo' variables (set or unset) will be overridden when 11321 # loading this file, other *unset* `ac_cv_foo' will be assigned the 11322 # following values. 11323 11324 _ACEOF 11325 11326 # The following way of writing the cache mishandles newlines in values, 11327 # but we know of no workaround that is simple, portable, and efficient. 11328 # So, we kill variables containing newlines. 11329 # Ultrix sh set writes to stderr and can't be redirected directly, 11330 # and sets the high bit in the cache file unless we assign to the vars. 11331 ( 11332 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11333 eval ac_val=\$$ac_var 11334 case $ac_val in #( 11335 *${as_nl}*) 11336 case $ac_var in #( 11337 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11338 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11339 esac 11340 case $ac_var in #( 11341 _ | IFS | as_nl) ;; #( 11342 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11343 *) { eval $ac_var=; unset $ac_var;} ;; 11344 esac ;; 11345 esac 11346 done 11347 11348 (set) 2>&1 | 11349 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11350 *${as_nl}ac_space=\ *) 11351 # `set' does not quote correctly, so add quotes: double-quote 11352 # substitution turns \\\\ into \\, and sed turns \\ into \. 11353 sed -n \ 11354 "s/'/'\\\\''/g; 11355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11356 ;; #( 11357 *) 11358 # `set' quotes correctly as required by POSIX, so do not add quotes. 11359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11360 ;; 11361 esac | 11362 sort 11363 ) | 11364 sed ' 11365 /^ac_cv_env_/b end 11366 t clear 11367 :clear 11368 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11369 t end 11370 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11371 :end' >>confcache 11372 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11373 if test -w "$cache_file"; then 11374 if test "x$cache_file" != "x/dev/null"; then 11375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11376 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11377 if test ! -f "$cache_file" || test -h "$cache_file"; then 11378 cat confcache >"$cache_file" 11379 else 11380 case $cache_file in #( 11381 */* | ?:*) 11382 mv -f confcache "$cache_file"$$ && 11383 mv -f "$cache_file"$$ "$cache_file" ;; #( 11384 *) 11385 mv -f confcache "$cache_file" ;; 11386 esac 11387 fi 11388 fi 11389 else 11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11391 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11392 fi 11393 fi 11394 rm -f confcache 11395 11396 test "x$prefix" = xNONE && prefix=$ac_default_prefix 11397 # Let make expand exec_prefix. 11398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11399 11400 DEFS=-DHAVE_CONFIG_H 11401 11402 ac_libobjs= 11403 ac_ltlibobjs= 11404 U= 11405 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11406 # 1. Remove the extension, and $U if already installed. 11407 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11408 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11409 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11410 # will be set to the directory where LIBOBJS objects are built. 11411 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11412 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11413 done 11414 LIBOBJS=$ac_libobjs 11415 11416 LTLIBOBJS=$ac_ltlibobjs 11417 11418 11419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11420 printf %s "checking that generated files are newer than configure... " >&6; } 11421 if test -n "$am_sleep_pid"; then 11422 # Hide warnings about reused PIDs. 11423 wait $am_sleep_pid 2>/dev/null 11424 fi 11425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11426 printf "%s\n" "done" >&6; } 11427 if test -n "$EXEEXT"; then 11428 am__EXEEXT_TRUE= 11429 am__EXEEXT_FALSE='#' 11430 else 11431 am__EXEEXT_TRUE='#' 11432 am__EXEEXT_FALSE= 11433 fi 11434 11435 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11436 as_fn_error $? "conditional \"AMDEP\" was never defined. 11437 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11438 fi 11439 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11440 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11441 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11442 fi 11443 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11444 as_fn_error $? "conditional \"LINT\" was never defined. 11445 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11446 fi 11447 11448 : "${CONFIG_STATUS=./config.status}" 11449 ac_write_fail=0 11450 ac_clean_files_save=$ac_clean_files 11451 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11453 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11454 as_write_fail=0 11455 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11456 #! $SHELL 11457 # Generated by $as_me. 11458 # Run this file to recreate the current configuration. 11459 # Compiler output produced by configure, useful for debugging 11460 # configure, is in config.log if it exists. 11461 11462 debug=false 11463 ac_cs_recheck=false 11464 ac_cs_silent=false 11465 11466 SHELL=\${CONFIG_SHELL-$SHELL} 11467 export SHELL 11468 _ASEOF 11469 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11470 ## -------------------- ## 11471 ## M4sh Initialization. ## 11472 ## -------------------- ## 11473 11474 # Be more Bourne compatible 11475 DUALCASE=1; export DUALCASE # for MKS sh 11476 as_nop=: 11477 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11478 then : 11479 emulate sh 11480 NULLCMD=: 11481 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11482 # is contrary to our usage. Disable this feature. 11483 alias -g '${1+"$@"}'='"$@"' 11484 setopt NO_GLOB_SUBST 11485 else $as_nop 11486 case `(set -o) 2>/dev/null` in #( 11487 *posix*) : 11488 set -o posix ;; #( 11489 *) : 11490 ;; 11491 esac 11492 fi 11493 11494 11495 11496 # Reset variables that may have inherited troublesome values from 11497 # the environment. 11498 11499 # IFS needs to be set, to space, tab, and newline, in precisely that order. 11500 # (If _AS_PATH_WALK were called with IFS unset, it would have the 11501 # side effect of setting IFS to empty, thus disabling word splitting.) 11502 # Quoting is to prevent editors from complaining about space-tab. 11503 as_nl=' 11504 ' 11505 export as_nl 11506 IFS=" "" $as_nl" 11507 11508 PS1='$ ' 11509 PS2='> ' 11510 PS4='+ ' 11511 11512 # Ensure predictable behavior from utilities with locale-dependent output. 11513 LC_ALL=C 11514 export LC_ALL 11515 LANGUAGE=C 11516 export LANGUAGE 11517 11518 # We cannot yet rely on "unset" to work, but we need these variables 11519 # to be unset--not just set to an empty or harmless value--now, to 11520 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11521 # also avoids known problems related to "unset" and subshell syntax 11522 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11523 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11524 do eval test \${$as_var+y} \ 11525 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11526 done 11527 11528 # Ensure that fds 0, 1, and 2 are open. 11529 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11530 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11531 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11532 11533 # The user is always right. 11534 if ${PATH_SEPARATOR+false} :; then 11535 PATH_SEPARATOR=: 11536 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11537 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11538 PATH_SEPARATOR=';' 11539 } 11540 fi 11541 11542 11543 # Find who we are. Look in the path if we contain no directory separator. 11544 as_myself= 11545 case $0 in #(( 11546 *[\\/]* ) as_myself=$0 ;; 11547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11548 for as_dir in $PATH 11549 do 11550 IFS=$as_save_IFS 11551 case $as_dir in #((( 11552 '') as_dir=./ ;; 11553 */) ;; 11554 *) as_dir=$as_dir/ ;; 11555 esac 11556 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11557 done 11558 IFS=$as_save_IFS 11559 11560 ;; 11561 esac 11562 # We did not find ourselves, most probably we were run as `sh COMMAND' 11563 # in which case we are not to be found in the path. 11564 if test "x$as_myself" = x; then 11565 as_myself=$0 11566 fi 11567 if test ! -f "$as_myself"; then 11568 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11569 exit 1 11570 fi 11571 11572 11573 11574 # as_fn_error STATUS ERROR [LINENO LOG_FD] 11575 # ---------------------------------------- 11576 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11577 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11578 # script with STATUS, using 1 if that was 0. 11579 as_fn_error () 11580 { 11581 as_status=$1; test $as_status -eq 0 && as_status=1 11582 if test "$4"; then 11583 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11585 fi 11586 printf "%s\n" "$as_me: error: $2" >&2 11587 as_fn_exit $as_status 11588 } # as_fn_error 11589 11590 11591 11592 # as_fn_set_status STATUS 11593 # ----------------------- 11594 # Set $? to STATUS, without forking. 11595 as_fn_set_status () 11596 { 11597 return $1 11598 } # as_fn_set_status 11599 11600 # as_fn_exit STATUS 11601 # ----------------- 11602 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11603 as_fn_exit () 11604 { 11605 set +e 11606 as_fn_set_status $1 11607 exit $1 11608 } # as_fn_exit 11609 11610 # as_fn_unset VAR 11611 # --------------- 11612 # Portably unset VAR. 11613 as_fn_unset () 11614 { 11615 { eval $1=; unset $1;} 11616 } 11617 as_unset=as_fn_unset 11618 11619 # as_fn_append VAR VALUE 11620 # ---------------------- 11621 # Append the text in VALUE to the end of the definition contained in VAR. Take 11622 # advantage of any shell optimizations that allow amortized linear growth over 11623 # repeated appends, instead of the typical quadratic growth present in naive 11624 # implementations. 11625 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11626 then : 11627 eval 'as_fn_append () 11628 { 11629 eval $1+=\$2 11630 }' 11631 else $as_nop 11632 as_fn_append () 11633 { 11634 eval $1=\$$1\$2 11635 } 11636 fi # as_fn_append 11637 11638 # as_fn_arith ARG... 11639 # ------------------ 11640 # Perform arithmetic evaluation on the ARGs, and store the result in the 11641 # global $as_val. Take advantage of shells that can avoid forks. The arguments 11642 # must be portable across $(()) and expr. 11643 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11644 then : 11645 eval 'as_fn_arith () 11646 { 11647 as_val=$(( $* )) 11648 }' 11649 else $as_nop 11650 as_fn_arith () 11651 { 11652 as_val=`expr "$@" || test $? -eq 1` 11653 } 11654 fi # as_fn_arith 11655 11656 11657 if expr a : '\(a\)' >/dev/null 2>&1 && 11658 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11659 as_expr=expr 11660 else 11661 as_expr=false 11662 fi 11663 11664 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11665 as_basename=basename 11666 else 11667 as_basename=false 11668 fi 11669 11670 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11671 as_dirname=dirname 11672 else 11673 as_dirname=false 11674 fi 11675 11676 as_me=`$as_basename -- "$0" || 11677 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11678 X"$0" : 'X\(//\)$' \| \ 11679 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11680 printf "%s\n" X/"$0" | 11681 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11682 s//\1/ 11683 q 11684 } 11685 /^X\/\(\/\/\)$/{ 11686 s//\1/ 11687 q 11688 } 11689 /^X\/\(\/\).*/{ 11690 s//\1/ 11691 q 11692 } 11693 s/.*/./; q'` 11694 11695 # Avoid depending upon Character Ranges. 11696 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11697 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11698 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11699 as_cr_digits='0123456789' 11700 as_cr_alnum=$as_cr_Letters$as_cr_digits 11701 11702 11703 # Determine whether it's possible to make 'echo' print without a newline. 11704 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11705 # for compatibility with existing Makefiles. 11706 ECHO_C= ECHO_N= ECHO_T= 11707 case `echo -n x` in #((((( 11708 -n*) 11709 case `echo 'xy\c'` in 11710 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11711 xy) ECHO_C='\c';; 11712 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11713 ECHO_T=' ';; 11714 esac;; 11715 *) 11716 ECHO_N='-n';; 11717 esac 11718 11719 # For backward compatibility with old third-party macros, we provide 11720 # the shell variables $as_echo and $as_echo_n. New code should use 11721 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11722 as_echo='printf %s\n' 11723 as_echo_n='printf %s' 11724 11725 rm -f conf$$ conf$$.exe conf$$.file 11726 if test -d conf$$.dir; then 11727 rm -f conf$$.dir/conf$$.file 11728 else 11729 rm -f conf$$.dir 11730 mkdir conf$$.dir 2>/dev/null 11731 fi 11732 if (echo >conf$$.file) 2>/dev/null; then 11733 if ln -s conf$$.file conf$$ 2>/dev/null; then 11734 as_ln_s='ln -s' 11735 # ... but there are two gotchas: 11736 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11737 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11738 # In both cases, we have to default to `cp -pR'. 11739 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11740 as_ln_s='cp -pR' 11741 elif ln conf$$.file conf$$ 2>/dev/null; then 11742 as_ln_s=ln 11743 else 11744 as_ln_s='cp -pR' 11745 fi 11746 else 11747 as_ln_s='cp -pR' 11748 fi 11749 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11750 rmdir conf$$.dir 2>/dev/null 11751 11752 11753 # as_fn_mkdir_p 11754 # ------------- 11755 # Create "$as_dir" as a directory, including parents if necessary. 11756 as_fn_mkdir_p () 11757 { 11758 11759 case $as_dir in #( 11760 -*) as_dir=./$as_dir;; 11761 esac 11762 test -d "$as_dir" || eval $as_mkdir_p || { 11763 as_dirs= 11764 while :; do 11765 case $as_dir in #( 11766 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11767 *) as_qdir=$as_dir;; 11768 esac 11769 as_dirs="'$as_qdir' $as_dirs" 11770 as_dir=`$as_dirname -- "$as_dir" || 11771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11772 X"$as_dir" : 'X\(//\)[^/]' \| \ 11773 X"$as_dir" : 'X\(//\)$' \| \ 11774 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11775 printf "%s\n" X"$as_dir" | 11776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11777 s//\1/ 11778 q 11779 } 11780 /^X\(\/\/\)[^/].*/{ 11781 s//\1/ 11782 q 11783 } 11784 /^X\(\/\/\)$/{ 11785 s//\1/ 11786 q 11787 } 11788 /^X\(\/\).*/{ 11789 s//\1/ 11790 q 11791 } 11792 s/.*/./; q'` 11793 test -d "$as_dir" && break 11794 done 11795 test -z "$as_dirs" || eval "mkdir $as_dirs" 11796 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11797 11798 11799 } # as_fn_mkdir_p 11800 if mkdir -p . 2>/dev/null; then 11801 as_mkdir_p='mkdir -p "$as_dir"' 11802 else 11803 test -d ./-p && rmdir ./-p 11804 as_mkdir_p=false 11805 fi 11806 11807 11808 # as_fn_executable_p FILE 11809 # ----------------------- 11810 # Test if FILE is an executable regular file. 11811 as_fn_executable_p () 11812 { 11813 test -f "$1" && test -x "$1" 11814 } # as_fn_executable_p 11815 as_test_x='test -x' 11816 as_executable_p=as_fn_executable_p 11817 11818 # Sed expression to map a string onto a valid CPP name. 11819 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11820 11821 # Sed expression to map a string onto a valid variable name. 11822 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11823 11824 11825 exec 6>&1 11826 ## ----------------------------------- ## 11827 ## Main body of $CONFIG_STATUS script. ## 11828 ## ----------------------------------- ## 11829 _ASEOF 11830 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11831 11832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11833 # Save the log message, to keep $0 and so on meaningful, and to 11834 # report actual input values of CONFIG_FILES etc. instead of their 11835 # values after options handling. 11836 ac_log=" 11837 This file was extended by xsetroot $as_me 1.1.3, which was 11838 generated by GNU Autoconf 2.71. Invocation command line was 11839 11840 CONFIG_FILES = $CONFIG_FILES 11841 CONFIG_HEADERS = $CONFIG_HEADERS 11842 CONFIG_LINKS = $CONFIG_LINKS 11843 CONFIG_COMMANDS = $CONFIG_COMMANDS 11844 $ $0 $@ 11845 11846 on `(hostname || uname -n) 2>/dev/null | sed 1q` 11847 " 11848 11849 _ACEOF 11850 11851 case $ac_config_files in *" 11852 "*) set x $ac_config_files; shift; ac_config_files=$*;; 11853 esac 11854 11855 case $ac_config_headers in *" 11856 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11857 esac 11858 11859 11860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11861 # Files that config.status was made for. 11862 config_files="$ac_config_files" 11863 config_headers="$ac_config_headers" 11864 config_commands="$ac_config_commands" 11865 11866 _ACEOF 11867 11868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11869 ac_cs_usage="\ 11870 \`$as_me' instantiates files and other configuration actions 11871 from templates according to the current configuration. Unless the files 11872 and actions are specified as TAGs, all are instantiated by default. 11873 11874 Usage: $0 [OPTION]... [TAG]... 11875 11876 -h, --help print this help, then exit 11877 -V, --version print version number and configuration settings, then exit 11878 --config print configuration, then exit 11879 -q, --quiet, --silent 11880 do not print progress messages 11881 -d, --debug don't remove temporary files 11882 --recheck update $as_me by reconfiguring in the same conditions 11883 --file=FILE[:TEMPLATE] 11884 instantiate the configuration file FILE 11885 --header=FILE[:TEMPLATE] 11886 instantiate the configuration header FILE 11887 11888 Configuration files: 11889 $config_files 11890 11891 Configuration headers: 11892 $config_headers 11893 11894 Configuration commands: 11895 $config_commands 11896 11897 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xsetroot/-/issues>." 11898 11899 _ACEOF 11900 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11901 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11903 ac_cs_config='$ac_cs_config_escaped' 11904 ac_cs_version="\\ 11905 xsetroot config.status 1.1.3 11906 configured by $0, generated by GNU Autoconf 2.71, 11907 with options \\"\$ac_cs_config\\" 11908 11909 Copyright (C) 2021 Free Software Foundation, Inc. 11910 This config.status script is free software; the Free Software Foundation 11911 gives unlimited permission to copy, distribute and modify it." 11912 11913 ac_pwd='$ac_pwd' 11914 srcdir='$srcdir' 11915 INSTALL='$INSTALL' 11916 MKDIR_P='$MKDIR_P' 11917 AWK='$AWK' 11918 test -n "\$AWK" || AWK=awk 11919 _ACEOF 11920 11921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11922 # The default lists apply if the user does not specify any file. 11923 ac_need_defaults=: 11924 while test $# != 0 11925 do 11926 case $1 in 11927 --*=?*) 11928 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11929 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11930 ac_shift=: 11931 ;; 11932 --*=) 11933 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11934 ac_optarg= 11935 ac_shift=: 11936 ;; 11937 *) 11938 ac_option=$1 11939 ac_optarg=$2 11940 ac_shift=shift 11941 ;; 11942 esac 11943 11944 case $ac_option in 11945 # Handling of the options. 11946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11947 ac_cs_recheck=: ;; 11948 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11949 printf "%s\n" "$ac_cs_version"; exit ;; 11950 --config | --confi | --conf | --con | --co | --c ) 11951 printf "%s\n" "$ac_cs_config"; exit ;; 11952 --debug | --debu | --deb | --de | --d | -d ) 11953 debug=: ;; 11954 --file | --fil | --fi | --f ) 11955 $ac_shift 11956 case $ac_optarg in 11957 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11958 '') as_fn_error $? "missing file argument" ;; 11959 esac 11960 as_fn_append CONFIG_FILES " '$ac_optarg'" 11961 ac_need_defaults=false;; 11962 --header | --heade | --head | --hea ) 11963 $ac_shift 11964 case $ac_optarg in 11965 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11966 esac 11967 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11968 ac_need_defaults=false;; 11969 --he | --h) 11970 # Conflict between --help and --header 11971 as_fn_error $? "ambiguous option: \`$1' 11972 Try \`$0 --help' for more information.";; 11973 --help | --hel | -h ) 11974 printf "%s\n" "$ac_cs_usage"; exit ;; 11975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11976 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11977 ac_cs_silent=: ;; 11978 11979 # This is an error. 11980 -*) as_fn_error $? "unrecognized option: \`$1' 11981 Try \`$0 --help' for more information." ;; 11982 11983 *) as_fn_append ac_config_targets " $1" 11984 ac_need_defaults=false ;; 11985 11986 esac 11987 shift 11988 done 11989 11990 ac_configure_extra_args= 11991 11992 if $ac_cs_silent; then 11993 exec 6>/dev/null 11994 ac_configure_extra_args="$ac_configure_extra_args --silent" 11995 fi 11996 11997 _ACEOF 11998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11999 if \$ac_cs_recheck; then 12000 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12001 shift 12002 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12003 CONFIG_SHELL='$SHELL' 12004 export CONFIG_SHELL 12005 exec "\$@" 12006 fi 12007 12008 _ACEOF 12009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12010 exec 5>>config.log 12011 { 12012 echo 12013 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12014 ## Running $as_me. ## 12015 _ASBOX 12016 printf "%s\n" "$ac_log" 12017 } >&5 12018 12019 _ACEOF 12020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12021 # 12022 # INIT-COMMANDS 12023 # 12024 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12025 12026 _ACEOF 12027 12028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12029 12030 # Handling of arguments. 12031 for ac_config_target in $ac_config_targets 12032 do 12033 case $ac_config_target in 12034 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12035 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12036 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12037 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12038 12039 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12040 esac 12041 done 12042 12043 12044 # If the user did not use the arguments to specify the items to instantiate, 12045 # then the envvar interface is used. Set only those that are not. 12046 # We use the long form for the default assignment because of an extremely 12047 # bizarre bug on SunOS 4.1.3. 12048 if $ac_need_defaults; then 12049 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12050 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12051 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12052 fi 12053 12054 # Have a temporary directory for convenience. Make it in the build tree 12055 # simply because there is no reason against having it here, and in addition, 12056 # creating and moving files from /tmp can sometimes cause problems. 12057 # Hook for its removal unless debugging. 12058 # Note that there is a small window in which the directory will not be cleaned: 12059 # after its creation but before its name has been assigned to `$tmp'. 12060 $debug || 12061 { 12062 tmp= ac_tmp= 12063 trap 'exit_status=$? 12064 : "${ac_tmp:=$tmp}" 12065 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12066 ' 0 12067 trap 'as_fn_exit 1' 1 2 13 15 12068 } 12069 # Create a (secure) tmp directory for tmp files. 12070 12071 { 12072 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12073 test -d "$tmp" 12074 } || 12075 { 12076 tmp=./conf$$-$RANDOM 12077 (umask 077 && mkdir "$tmp") 12078 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12079 ac_tmp=$tmp 12080 12081 # Set up the scripts for CONFIG_FILES section. 12082 # No need to generate them if there are no CONFIG_FILES. 12083 # This happens for instance with `./config.status config.h'. 12084 if test -n "$CONFIG_FILES"; then 12085 12086 12087 ac_cr=`echo X | tr X '\015'` 12088 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12089 # But we know of no other shell where ac_cr would be empty at this 12090 # point, so we can use a bashism as a fallback. 12091 if test "x$ac_cr" = x; then 12092 eval ac_cr=\$\'\\r\' 12093 fi 12094 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12095 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12096 ac_cs_awk_cr='\\r' 12097 else 12098 ac_cs_awk_cr=$ac_cr 12099 fi 12100 12101 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12102 _ACEOF 12103 12104 12105 { 12106 echo "cat >conf$$subs.awk <<_ACEOF" && 12107 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12108 echo "_ACEOF" 12109 } >conf$$subs.sh || 12110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12111 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12112 ac_delim='%!_!# ' 12113 for ac_last_try in false false false false false :; do 12114 . ./conf$$subs.sh || 12115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12116 12117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12118 if test $ac_delim_n = $ac_delim_num; then 12119 break 12120 elif $ac_last_try; then 12121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12122 else 12123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12124 fi 12125 done 12126 rm -f conf$$subs.sh 12127 12128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12129 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12130 _ACEOF 12131 sed -n ' 12132 h 12133 s/^/S["/; s/!.*/"]=/ 12134 p 12135 g 12136 s/^[^!]*!// 12137 :repl 12138 t repl 12139 s/'"$ac_delim"'$// 12140 t delim 12141 :nl 12142 h 12143 s/\(.\{148\}\)..*/\1/ 12144 t more1 12145 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12146 p 12147 n 12148 b repl 12149 :more1 12150 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12151 p 12152 g 12153 s/.\{148\}// 12154 t nl 12155 :delim 12156 h 12157 s/\(.\{148\}\)..*/\1/ 12158 t more2 12159 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12160 p 12161 b 12162 :more2 12163 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12164 p 12165 g 12166 s/.\{148\}// 12167 t delim 12168 ' <conf$$subs.awk | sed ' 12169 /^[^""]/{ 12170 N 12171 s/\n// 12172 } 12173 ' >>$CONFIG_STATUS || ac_write_fail=1 12174 rm -f conf$$subs.awk 12175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12176 _ACAWK 12177 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12178 for (key in S) S_is_set[key] = 1 12179 FS = "" 12180 12181 } 12182 { 12183 line = $ 0 12184 nfields = split(line, field, "@") 12185 substed = 0 12186 len = length(field[1]) 12187 for (i = 2; i < nfields; i++) { 12188 key = field[i] 12189 keylen = length(key) 12190 if (S_is_set[key]) { 12191 value = S[key] 12192 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12193 len += length(value) + length(field[++i]) 12194 substed = 1 12195 } else 12196 len += 1 + keylen 12197 } 12198 12199 print line 12200 } 12201 12202 _ACAWK 12203 _ACEOF 12204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12205 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12207 else 12208 cat 12209 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12210 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12211 _ACEOF 12212 12213 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12214 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12215 # trailing colons and then remove the whole line if VPATH becomes empty 12216 # (actually we leave an empty line to preserve line numbers). 12217 if test "x$srcdir" = x.; then 12218 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12219 h 12220 s/// 12221 s/^/:/ 12222 s/[ ]*$/:/ 12223 s/:\$(srcdir):/:/g 12224 s/:\${srcdir}:/:/g 12225 s/:@srcdir@:/:/g 12226 s/^:*// 12227 s/:*$// 12228 x 12229 s/\(=[ ]*\).*/\1/ 12230 G 12231 s/\n// 12232 s/^[^=]*=[ ]*$// 12233 }' 12234 fi 12235 12236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12237 fi # test -n "$CONFIG_FILES" 12238 12239 # Set up the scripts for CONFIG_HEADERS section. 12240 # No need to generate them if there are no CONFIG_HEADERS. 12241 # This happens for instance with `./config.status Makefile'. 12242 if test -n "$CONFIG_HEADERS"; then 12243 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12244 BEGIN { 12245 _ACEOF 12246 12247 # Transform confdefs.h into an awk script `defines.awk', embedded as 12248 # here-document in config.status, that substitutes the proper values into 12249 # config.h.in to produce config.h. 12250 12251 # Create a delimiter string that does not exist in confdefs.h, to ease 12252 # handling of long lines. 12253 ac_delim='%!_!# ' 12254 for ac_last_try in false false :; do 12255 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12256 if test -z "$ac_tt"; then 12257 break 12258 elif $ac_last_try; then 12259 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12260 else 12261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12262 fi 12263 done 12264 12265 # For the awk script, D is an array of macro values keyed by name, 12266 # likewise P contains macro parameters if any. Preserve backslash 12267 # newline sequences. 12268 12269 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12270 sed -n ' 12271 s/.\{148\}/&'"$ac_delim"'/g 12272 t rset 12273 :rset 12274 s/^[ ]*#[ ]*define[ ][ ]*/ / 12275 t def 12276 d 12277 :def 12278 s/\\$// 12279 t bsnl 12280 s/["\\]/\\&/g 12281 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12282 D["\1"]=" \3"/p 12283 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12284 d 12285 :bsnl 12286 s/["\\]/\\&/g 12287 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12288 D["\1"]=" \3\\\\\\n"\\/p 12289 t cont 12290 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12291 t cont 12292 d 12293 :cont 12294 n 12295 s/.\{148\}/&'"$ac_delim"'/g 12296 t clear 12297 :clear 12298 s/\\$// 12299 t bsnlc 12300 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12301 d 12302 :bsnlc 12303 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12304 b cont 12305 ' <confdefs.h | sed ' 12306 s/'"$ac_delim"'/"\\\ 12307 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12308 12309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12310 for (key in D) D_is_set[key] = 1 12311 FS = "" 12312 } 12313 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12314 line = \$ 0 12315 split(line, arg, " ") 12316 if (arg[1] == "#") { 12317 defundef = arg[2] 12318 mac1 = arg[3] 12319 } else { 12320 defundef = substr(arg[1], 2) 12321 mac1 = arg[2] 12322 } 12323 split(mac1, mac2, "(") #) 12324 macro = mac2[1] 12325 prefix = substr(line, 1, index(line, defundef) - 1) 12326 if (D_is_set[macro]) { 12327 # Preserve the white space surrounding the "#". 12328 print prefix "define", macro P[macro] D[macro] 12329 next 12330 } else { 12331 # Replace #undef with comments. This is necessary, for example, 12332 # in the case of _POSIX_SOURCE, which is predefined and required 12333 # on some systems where configure will not decide to define it. 12334 if (defundef == "undef") { 12335 print "/*", prefix defundef, macro, "*/" 12336 next 12337 } 12338 } 12339 } 12340 { print } 12341 _ACAWK 12342 _ACEOF 12343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12344 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12345 fi # test -n "$CONFIG_HEADERS" 12346 12347 12348 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12349 shift 12350 for ac_tag 12351 do 12352 case $ac_tag in 12353 :[FHLC]) ac_mode=$ac_tag; continue;; 12354 esac 12355 case $ac_mode$ac_tag in 12356 :[FHL]*:*);; 12357 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12358 :[FH]-) ac_tag=-:-;; 12359 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12360 esac 12361 ac_save_IFS=$IFS 12362 IFS=: 12363 set x $ac_tag 12364 IFS=$ac_save_IFS 12365 shift 12366 ac_file=$1 12367 shift 12368 12369 case $ac_mode in 12370 :L) ac_source=$1;; 12371 :[FH]) 12372 ac_file_inputs= 12373 for ac_f 12374 do 12375 case $ac_f in 12376 -) ac_f="$ac_tmp/stdin";; 12377 *) # Look for the file first in the build tree, then in the source tree 12378 # (if the path is not absolute). The absolute path cannot be DOS-style, 12379 # because $ac_f cannot contain `:'. 12380 test -f "$ac_f" || 12381 case $ac_f in 12382 [\\/$]*) false;; 12383 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12384 esac || 12385 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12386 esac 12387 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12388 as_fn_append ac_file_inputs " '$ac_f'" 12389 done 12390 12391 # Let's still pretend it is `configure' which instantiates (i.e., don't 12392 # use $as_me), people would be surprised to read: 12393 # /* config.h. Generated by config.status. */ 12394 configure_input='Generated from '` 12395 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12396 `' by configure.' 12397 if test x"$ac_file" != x-; then 12398 configure_input="$ac_file. $configure_input" 12399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12400 printf "%s\n" "$as_me: creating $ac_file" >&6;} 12401 fi 12402 # Neutralize special characters interpreted by sed in replacement strings. 12403 case $configure_input in #( 12404 *\&* | *\|* | *\\* ) 12405 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12406 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12407 *) ac_sed_conf_input=$configure_input;; 12408 esac 12409 12410 case $ac_tag in 12411 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12413 esac 12414 ;; 12415 esac 12416 12417 ac_dir=`$as_dirname -- "$ac_file" || 12418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12419 X"$ac_file" : 'X\(//\)[^/]' \| \ 12420 X"$ac_file" : 'X\(//\)$' \| \ 12421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12422 printf "%s\n" X"$ac_file" | 12423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12424 s//\1/ 12425 q 12426 } 12427 /^X\(\/\/\)[^/].*/{ 12428 s//\1/ 12429 q 12430 } 12431 /^X\(\/\/\)$/{ 12432 s//\1/ 12433 q 12434 } 12435 /^X\(\/\).*/{ 12436 s//\1/ 12437 q 12438 } 12439 s/.*/./; q'` 12440 as_dir="$ac_dir"; as_fn_mkdir_p 12441 ac_builddir=. 12442 12443 case "$ac_dir" in 12444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12445 *) 12446 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12447 # A ".." for each directory in $ac_dir_suffix. 12448 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12449 case $ac_top_builddir_sub in 12450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12452 esac ;; 12453 esac 12454 ac_abs_top_builddir=$ac_pwd 12455 ac_abs_builddir=$ac_pwd$ac_dir_suffix 12456 # for backward compatibility: 12457 ac_top_builddir=$ac_top_build_prefix 12458 12459 case $srcdir in 12460 .) # We are building in place. 12461 ac_srcdir=. 12462 ac_top_srcdir=$ac_top_builddir_sub 12463 ac_abs_top_srcdir=$ac_pwd ;; 12464 [\\/]* | ?:[\\/]* ) # Absolute name. 12465 ac_srcdir=$srcdir$ac_dir_suffix; 12466 ac_top_srcdir=$srcdir 12467 ac_abs_top_srcdir=$srcdir ;; 12468 *) # Relative name. 12469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12470 ac_top_srcdir=$ac_top_build_prefix$srcdir 12471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12472 esac 12473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12474 12475 12476 case $ac_mode in 12477 :F) 12478 # 12479 # CONFIG_FILE 12480 # 12481 12482 case $INSTALL in 12483 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12484 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12485 esac 12486 ac_MKDIR_P=$MKDIR_P 12487 case $MKDIR_P in 12488 [\\/$]* | ?:[\\/]* ) ;; 12489 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12490 esac 12491 _ACEOF 12492 12493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12494 # If the template does not know about datarootdir, expand it. 12495 # FIXME: This hack should be removed a few years after 2.60. 12496 ac_datarootdir_hack=; ac_datarootdir_seen= 12497 ac_sed_dataroot=' 12498 /datarootdir/ { 12499 p 12500 q 12501 } 12502 /@datadir@/p 12503 /@docdir@/p 12504 /@infodir@/p 12505 /@localedir@/p 12506 /@mandir@/p' 12507 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12508 *datarootdir*) ac_datarootdir_seen=yes;; 12509 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12511 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12512 _ACEOF 12513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12514 ac_datarootdir_hack=' 12515 s&@datadir@&$datadir&g 12516 s&@docdir@&$docdir&g 12517 s&@infodir@&$infodir&g 12518 s&@localedir@&$localedir&g 12519 s&@mandir@&$mandir&g 12520 s&\\\${datarootdir}&$datarootdir&g' ;; 12521 esac 12522 _ACEOF 12523 12524 # Neutralize VPATH when `$srcdir' = `.'. 12525 # Shell code in configure.ac might set extrasub. 12526 # FIXME: do we really want to maintain this feature? 12527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12528 ac_sed_extra="$ac_vpsub 12529 $extrasub 12530 _ACEOF 12531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12532 :t 12533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12534 s|@configure_input@|$ac_sed_conf_input|;t t 12535 s&@top_builddir@&$ac_top_builddir_sub&;t t 12536 s&@top_build_prefix@&$ac_top_build_prefix&;t t 12537 s&@srcdir@&$ac_srcdir&;t t 12538 s&@abs_srcdir@&$ac_abs_srcdir&;t t 12539 s&@top_srcdir@&$ac_top_srcdir&;t t 12540 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12541 s&@builddir@&$ac_builddir&;t t 12542 s&@abs_builddir@&$ac_abs_builddir&;t t 12543 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12544 s&@INSTALL@&$ac_INSTALL&;t t 12545 s&@MKDIR_P@&$ac_MKDIR_P&;t t 12546 $ac_datarootdir_hack 12547 " 12548 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12549 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12550 12551 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12552 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12553 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12554 "$ac_tmp/out"`; test -z "$ac_out"; } && 12555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12556 which seems to be undefined. Please make sure it is defined" >&5 12557 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12558 which seems to be undefined. Please make sure it is defined" >&2;} 12559 12560 rm -f "$ac_tmp/stdin" 12561 case $ac_file in 12562 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12563 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12564 esac \ 12565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12566 ;; 12567 :H) 12568 # 12569 # CONFIG_HEADER 12570 # 12571 if test x"$ac_file" != x-; then 12572 { 12573 printf "%s\n" "/* $configure_input */" >&1 \ 12574 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12575 } >"$ac_tmp/config.h" \ 12576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12577 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12579 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12580 else 12581 rm -f "$ac_file" 12582 mv "$ac_tmp/config.h" "$ac_file" \ 12583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12584 fi 12585 else 12586 printf "%s\n" "/* $configure_input */" >&1 \ 12587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12588 || as_fn_error $? "could not create -" "$LINENO" 5 12589 fi 12590 # Compute "$ac_file"'s index in $config_headers. 12591 _am_arg="$ac_file" 12592 _am_stamp_count=1 12593 for _am_header in $config_headers :; do 12594 case $_am_header in 12595 $_am_arg | $_am_arg:* ) 12596 break ;; 12597 * ) 12598 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12599 esac 12600 done 12601 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12602 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12603 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12604 X"$_am_arg" : 'X\(//\)$' \| \ 12605 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12606 printf "%s\n" X"$_am_arg" | 12607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12608 s//\1/ 12609 q 12610 } 12611 /^X\(\/\/\)[^/].*/{ 12612 s//\1/ 12613 q 12614 } 12615 /^X\(\/\/\)$/{ 12616 s//\1/ 12617 q 12618 } 12619 /^X\(\/\).*/{ 12620 s//\1/ 12621 q 12622 } 12623 s/.*/./; q'`/stamp-h$_am_stamp_count 12624 ;; 12625 12626 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12627 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12628 ;; 12629 esac 12630 12631 12632 case $ac_file$ac_mode in 12633 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12634 # Older Autoconf quotes --file arguments for eval, but not when files 12635 # are listed without --file. Let's play safe and only enable the eval 12636 # if we detect the quoting. 12637 # TODO: see whether this extra hack can be removed once we start 12638 # requiring Autoconf 2.70 or later. 12639 case $CONFIG_FILES in #( 12640 *\'*) : 12641 eval set x "$CONFIG_FILES" ;; #( 12642 *) : 12643 set x $CONFIG_FILES ;; #( 12644 *) : 12645 ;; 12646 esac 12647 shift 12648 # Used to flag and report bootstrapping failures. 12649 am_rc=0 12650 for am_mf 12651 do 12652 # Strip MF so we end up with the name of the file. 12653 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12654 # Check whether this is an Automake generated Makefile which includes 12655 # dependency-tracking related rules and includes. 12656 # Grep'ing the whole file directly is not great: AIX grep has a line 12657 # limit of 2048, but all sed's we know have understand at least 4000. 12658 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12659 || continue 12660 am_dirpart=`$as_dirname -- "$am_mf" || 12661 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12662 X"$am_mf" : 'X\(//\)[^/]' \| \ 12663 X"$am_mf" : 'X\(//\)$' \| \ 12664 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12665 printf "%s\n" X"$am_mf" | 12666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12667 s//\1/ 12668 q 12669 } 12670 /^X\(\/\/\)[^/].*/{ 12671 s//\1/ 12672 q 12673 } 12674 /^X\(\/\/\)$/{ 12675 s//\1/ 12676 q 12677 } 12678 /^X\(\/\).*/{ 12679 s//\1/ 12680 q 12681 } 12682 s/.*/./; q'` 12683 am_filepart=`$as_basename -- "$am_mf" || 12684 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12685 X"$am_mf" : 'X\(//\)$' \| \ 12686 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12687 printf "%s\n" X/"$am_mf" | 12688 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12689 s//\1/ 12690 q 12691 } 12692 /^X\/\(\/\/\)$/{ 12693 s//\1/ 12694 q 12695 } 12696 /^X\/\(\/\).*/{ 12697 s//\1/ 12698 q 12699 } 12700 s/.*/./; q'` 12701 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12702 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12703 | $MAKE -f - am--depfiles" >&5 12704 (cd "$am_dirpart" \ 12705 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12706 | $MAKE -f - am--depfiles) >&5 2>&5 12707 ac_status=$? 12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12709 (exit $ac_status); } || am_rc=$? 12710 done 12711 if test $am_rc -ne 0; then 12712 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12713 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12714 as_fn_error $? "Something went wrong bootstrapping makefile fragments 12715 for automatic dependency tracking. If GNU make was not used, consider 12716 re-running the configure script with MAKE=\"gmake\" (or whatever is 12717 necessary). You can also try re-running configure with the 12718 '--disable-dependency-tracking' option to at least be able to build 12719 the package (albeit without support for automatic dependency tracking). 12720 See \`config.log' for more details" "$LINENO" 5; } 12721 fi 12722 { am_dirpart=; unset am_dirpart;} 12723 { am_filepart=; unset am_filepart;} 12724 { am_mf=; unset am_mf;} 12725 { am_rc=; unset am_rc;} 12726 rm -f conftest-deps.mk 12727 } 12728 ;; 12729 12730 esac 12731 done # for ac_tag 12732 12733 12734 as_fn_exit 0 12735 _ACEOF 12736 ac_clean_files=$ac_clean_files_save 12737 12738 test $ac_write_fail = 0 || 12739 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12740 12741 12742 # configure is writing to config.log, and then calls config.status. 12743 # config.status does its own redirection, appending to config.log. 12744 # Unfortunately, on DOS this fails, as config.log is still kept open 12745 # by configure, so config.status won't be able to write to it; its 12746 # output is simply discarded. So we exec the FD to /dev/null, 12747 # effectively closing config.log, so it can be properly (re)opened and 12748 # appended to by config.status. When coming back to configure, we 12749 # need to make the FD available again. 12750 if test "$no_create" != yes; then 12751 ac_cs_success=: 12752 ac_config_status_args= 12753 test "$silent" = yes && 12754 ac_config_status_args="$ac_config_status_args --quiet" 12755 exec 5>/dev/null 12756 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12757 exec 5>>config.log 12758 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12759 # would make configure fail if this is the last instruction. 12760 $ac_cs_success || as_fn_exit 1 12761 fi 12762 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12764 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12765 fi 12766 12767 12768