1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.73 for xconsole 1.1.1. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # contradicts POSIX and common usage. Disable this. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 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 case $# in # (( 135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;; 136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;; 137 esac 138 # Admittedly, this is quite paranoid, since all the known shells bail 139 # out after a failed 'exec'. 140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2 141 exit 255 142 fi 143 # We don't want this to propagate to other subprocesses. 144 { _as_can_reexec=; unset _as_can_reexec;} 145 if test "x$CONFIG_SHELL" = x; then 146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 147 then : 148 emulate sh 149 NULLCMD=: 150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 151 # contradicts POSIX and common usage. Disable this. 152 alias -g '\${1+\"\$@\"}'='\"\$@\"' 153 setopt NO_GLOB_SUBST 154 else case e in #( 155 e) case \`(set -o) 2>/dev/null\` in #( 156 *posix*) : 157 set -o posix ;; #( 158 *) : 159 ;; 160 esac ;; 161 esac 162 fi 163 " 164 as_required="as_fn_return () { (exit \$1); } 165 as_fn_success () { as_fn_return 0; } 166 as_fn_failure () { as_fn_return 1; } 167 as_fn_ret_success () { return 0; } 168 as_fn_ret_failure () { return 1; } 169 170 exitcode=0 171 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 175 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 176 then : 177 178 else case e in #( 179 e) exitcode=1; echo positional parameters were not saved. ;; 180 esac 181 fi 182 test x\$exitcode = x0 || exit 1 183 blah=\$(echo \$(echo blah)) 184 test x\"\$blah\" = xblah || exit 1 185 test -x / || exit 1" 186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 190 test \$(( 1 + 1 )) = 2 || exit 1" 191 if (eval "$as_required") 2>/dev/null 192 then : 193 as_have_required=yes 194 else case e in #( 195 e) as_have_required=no ;; 196 esac 197 fi 198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 199 then : 200 201 else case e in #( 202 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 203 as_found=false 204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 205 do 206 IFS=$as_save_IFS 207 case $as_dir in #((( 208 '') as_dir=./ ;; 209 */) ;; 210 *) as_dir=$as_dir/ ;; 211 esac 212 as_found=: 213 case $as_dir in #( 214 /*) 215 for as_base in sh bash ksh sh5; do 216 # Try only shells that exist, to save several forks. 217 as_shell=$as_dir$as_base 218 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 220 then : 221 CONFIG_SHELL=$as_shell as_have_required=yes 222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 223 then : 224 break 2 225 fi 226 fi 227 done;; 228 esac 229 as_found=false 230 done 231 IFS=$as_save_IFS 232 if $as_found 233 then : 234 235 else case e in #( 236 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 238 then : 239 CONFIG_SHELL=$SHELL as_have_required=yes 240 fi ;; 241 esac 242 fi 243 244 245 if test "x$CONFIG_SHELL" != x 246 then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 case $# in # (( 262 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;; 263 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;; 264 esac 265 # Admittedly, this is quite paranoid, since all the known shells bail 266 # out after a failed 'exec'. 267 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2 268 exit 255 269 fi 270 271 if test x$as_have_required = xno 272 then : 273 printf '%s\n' "$0: This script requires a shell more modern than all" 274 printf '%s\n' "$0: the shells that I found on your system." 275 if test ${ZSH_VERSION+y} ; then 276 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should" 277 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later." 278 else 279 printf '%s\n' "$0: Please tell bug-autoconf (at] gnu.org and 280 $0: https://gitlab.freedesktop.org/xorg/app/xconsole/-/issues 281 $0: about your system, including any error possibly output 282 $0: before this message. Then install a modern shell, or 283 $0: manually run the script under such a shell if you do 284 $0: have one." 285 fi 286 exit 1 287 fi ;; 288 esac 289 fi 290 fi 291 SHELL=${CONFIG_SHELL-/bin/sh} 292 export SHELL 293 # Unset more variables known to interfere with behavior of common tools. 294 CLICOLOR_FORCE= GREP_OPTIONS= 295 unset CLICOLOR_FORCE GREP_OPTIONS 296 297 ## --------------------- ## 298 ## M4sh Shell Functions. ## 299 ## --------------------- ## 300 # as_fn_unset VAR 301 # --------------- 302 # Portably unset VAR. 303 as_fn_unset () 304 { 305 { eval $1=; unset $1;} 306 } 307 as_unset=as_fn_unset 308 309 310 # as_fn_set_status STATUS 311 # ----------------------- 312 # Set $? to STATUS, without forking. 313 as_fn_set_status () 314 { 315 return $1 316 } # as_fn_set_status 317 318 # as_fn_exit STATUS 319 # ----------------- 320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 321 as_fn_exit () 322 { 323 set +e 324 as_fn_set_status $1 325 exit $1 326 } # as_fn_exit 327 328 # as_fn_mkdir_p 329 # ------------- 330 # Create "$as_dir" as a directory, including parents if necessary. 331 as_fn_mkdir_p () 332 { 333 334 case $as_dir in #( 335 -*) as_dir=./$as_dir;; 336 esac 337 test -d "$as_dir" || eval $as_mkdir_p || { 338 as_dirs= 339 while :; do 340 case $as_dir in #( 341 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 342 *) as_qdir=$as_dir;; 343 esac 344 as_dirs="'$as_qdir' $as_dirs" 345 as_dir=`$as_dirname -- "$as_dir" || 346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 347 X"$as_dir" : 'X\(//\)[^/]' \| \ 348 X"$as_dir" : 'X\(//\)$' \| \ 349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 350 printf '%s\n' X"$as_dir" | 351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)[^/].*/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\/\)$/{ 360 s//\1/ 361 q 362 } 363 /^X\(\/\).*/{ 364 s//\1/ 365 q 366 } 367 s/.*/./; q'` 368 test -d "$as_dir" && break 369 done 370 test -z "$as_dirs" || eval "mkdir $as_dirs" 371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 372 373 374 } # as_fn_mkdir_p 375 376 # as_fn_executable_p FILE 377 # ----------------------- 378 # Test if FILE is an executable regular file. 379 as_fn_executable_p () 380 { 381 test -f "$1" && test -x "$1" 382 } # as_fn_executable_p 383 # as_fn_append VAR VALUE 384 # ---------------------- 385 # Append the text in VALUE to the end of the definition contained in VAR. Take 386 # advantage of any shell optimizations that allow amortized linear growth over 387 # repeated appends, instead of the typical quadratic growth present in naive 388 # implementations. 389 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 390 then : 391 eval 'as_fn_append () 392 { 393 eval $1+=\$2 394 }' 395 else case e in #( 396 e) as_fn_append () 397 { 398 eval $1=\$$1\$2 399 } ;; 400 esac 401 fi # as_fn_append 402 403 # as_fn_arith ARG... 404 # ------------------ 405 # Perform arithmetic evaluation on the ARGs, and store the result in the 406 # global $as_val. Take advantage of shells that can avoid forks. The arguments 407 # must be portable across $(()) and expr. 408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 409 then : 410 eval 'as_fn_arith () 411 { 412 as_val=$(( $* )) 413 }' 414 else case e in #( 415 e) as_fn_arith () 416 { 417 as_val=`expr "$@" || test $? -eq 1` 418 } ;; 419 esac 420 fi # as_fn_arith 421 422 423 # as_fn_error STATUS ERROR [LINENO LOG_FD] 424 # ---------------------------------------- 425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 427 # script with STATUS, using 1 if that was 0. 428 as_fn_error () 429 { 430 as_status=$1; test $as_status -eq 0 && as_status=1 431 if test "$4"; then 432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 433 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 434 fi 435 printf '%s\n' "$as_me: error: $2" >&2 436 as_fn_exit $as_status 437 } # as_fn_error 438 439 if expr a : '\(a\)' >/dev/null 2>&1 && 440 test "X`expr 00001 : '.*\(...\)'`" = X001; then 441 as_expr=expr 442 else 443 as_expr=false 444 fi 445 446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 447 as_basename=basename 448 else 449 as_basename=false 450 fi 451 452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 453 as_dirname=dirname 454 else 455 as_dirname=false 456 fi 457 458 as_me=`$as_basename -- "$0" || 459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 460 X"$0" : 'X\(//\)$' \| \ 461 X"$0" : 'X\(/\)' \| . 2>/dev/null || 462 printf '%s\n' X/"$0" | 463 sed '/^.*\/\([^/][^/]*\)\/*$/{ 464 s//\1/ 465 q 466 } 467 /^X\/\(\/\/\)$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\).*/{ 472 s//\1/ 473 q 474 } 475 s/.*/./; q'` 476 477 # Avoid depending upon Character Ranges. 478 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 481 as_cr_digits='0123456789' 482 as_cr_alnum=$as_cr_Letters$as_cr_digits 483 484 485 as_lineno_1=$LINENO as_lineno_1a=$LINENO 486 as_lineno_2=$LINENO as_lineno_2a=$LINENO 487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 490 sed -n ' 491 p 492 /[$]LINENO/= 493 ' <$as_myself | 494 sed ' 495 t clear 496 :clear 497 s/[$]LINENO.*/&-/ 498 t lineno 499 b 500 :lineno 501 N 502 :loop 503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 504 t loop 505 s/-\n.*// 506 ' >$as_me.lineno && 507 chmod +x "$as_me.lineno" || 508 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 509 510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 511 # already done that, so ensure we don't try to do so again and fall 512 # in an infinite loop. This has already happened in practice. 513 _as_can_reexec=no; export _as_can_reexec 514 # Don't try to exec as it changes $[0], causing all sort of problems 515 # (the dirname of $[0] is not the place where we might find the 516 # original and so on. Autoconf is especially sensitive to this). 517 . "./$as_me.lineno" 518 # Exit status is that of the last command. 519 exit 520 } 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 535 # In both cases, we have to default to 'cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 561 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 562 563 # Sed expression to map a string onto a valid variable name. 564 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 565 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 566 567 568 test -n "$DJDIR" || exec 7<&0 </dev/null 569 exec 6>&1 570 571 # Name of the host. 572 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 573 # so uname gets run too. 574 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 575 576 # 577 # Initializations. 578 # 579 ac_default_prefix=/usr/local 580 ac_clean_CONFIG_STATUS= 581 ac_clean_files= 582 ac_config_libobj_dir=. 583 LIBOBJS= 584 cross_compiling=no 585 subdirs= 586 MFLAGS= 587 MAKEFLAGS= 588 589 # Identity of this package. 590 PACKAGE_NAME='xconsole' 591 PACKAGE_TARNAME='xconsole' 592 PACKAGE_VERSION='1.1.1' 593 PACKAGE_STRING='xconsole 1.1.1' 594 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xconsole/-/issues' 595 PACKAGE_URL='' 596 597 ac_unique_file="Makefile.am" 598 # Factoring default headers for most tests. 599 ac_includes_default="\ 600 #include <stddef.h> 601 #ifdef HAVE_STDIO_H 602 # include <stdio.h> 603 #endif 604 #ifdef HAVE_STDLIB_H 605 # include <stdlib.h> 606 #endif 607 #ifdef HAVE_STRING_H 608 # include <string.h> 609 #endif 610 #ifdef HAVE_INTTYPES_H 611 # include <inttypes.h> 612 #endif 613 #ifdef HAVE_STDINT_H 614 # include <stdint.h> 615 #endif 616 #ifdef HAVE_STRINGS_H 617 # include <strings.h> 618 #endif 619 #ifdef HAVE_SYS_TYPES_H 620 # include <sys/types.h> 621 #endif 622 #ifdef HAVE_SYS_STAT_H 623 # include <sys/stat.h> 624 #endif 625 #ifdef HAVE_UNISTD_H 626 # include <unistd.h> 627 #endif" 628 629 ac_header_c_list= 630 : ${enable_year2038:=no} 631 ac_subst_vars='am__EXEEXT_FALSE 632 am__EXEEXT_TRUE 633 LTLIBOBJS 634 LIBOBJS 635 appdefaultdir 636 APPDEFS_LIBS 637 APPDEFS_CFLAGS 638 XCONSOLE_LIBS 639 XCONSOLE_CFLAGS 640 MAN_SUBSTS 641 XORG_MAN_PAGE 642 ADMIN_MAN_DIR 643 DRIVER_MAN_DIR 644 MISC_MAN_DIR 645 FILE_MAN_DIR 646 LIB_MAN_DIR 647 APP_MAN_DIR 648 ADMIN_MAN_SUFFIX 649 DRIVER_MAN_SUFFIX 650 MISC_MAN_SUFFIX 651 FILE_MAN_SUFFIX 652 LIB_MAN_SUFFIX 653 APP_MAN_SUFFIX 654 SED 655 host_os 656 host_vendor 657 host_cpu 658 host 659 build_os 660 build_vendor 661 build_cpu 662 build 663 INSTALL_CMD 664 PKG_CONFIG_LIBDIR 665 PKG_CONFIG_PATH 666 PKG_CONFIG 667 CHANGELOG_CMD 668 STRICT_CFLAGS 669 CWARNFLAGS 670 BASE_CFLAGS 671 am__xargs_n 672 am__rm_f_notfound 673 AM_BACKSLASH 674 AM_DEFAULT_VERBOSITY 675 AM_DEFAULT_V 676 AM_V 677 CSCOPE 678 ETAGS 679 CTAGS 680 am__fastdepCC_FALSE 681 am__fastdepCC_TRUE 682 CCDEPMODE 683 am__nodep 684 AMDEPBACKSLASH 685 AMDEP_FALSE 686 AMDEP_TRUE 687 am__include 688 DEPDIR 689 am__untar 690 am__tar 691 AMTAR 692 am__leading_dot 693 SET_MAKE 694 AWK 695 mkdir_p 696 MKDIR_P 697 INSTALL_STRIP_PROGRAM 698 STRIP 699 install_sh 700 MAKEINFO 701 AUTOHEADER 702 AUTOMAKE 703 AUTOCONF 704 ACLOCAL 705 VERSION 706 PACKAGE 707 CYGPATH_W 708 am__isrc 709 INSTALL_DATA 710 INSTALL_SCRIPT 711 INSTALL_PROGRAM 712 OBJEXT 713 EXEEXT 714 ac_ct_CC 715 CPPFLAGS 716 LDFLAGS 717 CFLAGS 718 CC 719 ECHO_T 720 ECHO_N 721 ECHO_C 722 target_alias 723 host_alias 724 build_alias 725 LIBS 726 DEFS 727 mandir 728 localedir 729 libdir 730 psdir 731 pdfdir 732 dvidir 733 htmldir 734 infodir 735 docdir 736 oldincludedir 737 includedir 738 runstatedir 739 localstatedir 740 sharedstatedir 741 sysconfdir 742 datadir 743 datarootdir 744 libexecdir 745 sbindir 746 bindir 747 program_transform_name 748 prefix 749 exec_prefix 750 PACKAGE_URL 751 PACKAGE_BUGREPORT 752 PACKAGE_STRING 753 PACKAGE_VERSION 754 PACKAGE_TARNAME 755 PACKAGE_NAME 756 PATH_SEPARATOR 757 SHELL 758 am__quote' 759 ac_subst_files='' 760 ac_user_opts=' 761 enable_option_checking 762 enable_dependency_tracking 763 enable_silent_rules 764 enable_selective_werror 765 enable_strict_compilation 766 with_appdefaultdir 767 enable_largefile 768 enable_year2038 769 ' 770 ac_precious_vars='build_alias 771 host_alias 772 target_alias 773 CC 774 CFLAGS 775 LDFLAGS 776 LIBS 777 CPPFLAGS 778 PKG_CONFIG 779 PKG_CONFIG_PATH 780 PKG_CONFIG_LIBDIR 781 XCONSOLE_CFLAGS 782 XCONSOLE_LIBS 783 APPDEFS_CFLAGS 784 APPDEFS_LIBS' 785 786 787 # Initialize some variables set by options. 788 ac_init_help= 789 ac_init_version=false 790 ac_unrecognized_opts= 791 ac_unrecognized_sep= 792 # The variables have the same names as the options, with 793 # dashes changed to underlines. 794 cache_file=/dev/null 795 exec_prefix=NONE 796 no_create= 797 no_recursion= 798 prefix=NONE 799 program_prefix=NONE 800 program_suffix=NONE 801 program_transform_name=s,x,x, 802 silent= 803 site= 804 srcdir= 805 verbose= 806 x_includes=NONE 807 x_libraries=NONE 808 809 # Installation directory options. 810 # These are left unexpanded so users can "make install exec_prefix=/foo" 811 # and all the variables that are supposed to be based on exec_prefix 812 # by default will actually change. 813 # Use braces instead of parens because sh, perl, etc. also accept them. 814 # (The list follows the same order as the GNU Coding Standards.) 815 bindir='${exec_prefix}/bin' 816 sbindir='${exec_prefix}/sbin' 817 libexecdir='${exec_prefix}/libexec' 818 datarootdir='${prefix}/share' 819 datadir='${datarootdir}' 820 sysconfdir='${prefix}/etc' 821 sharedstatedir='${prefix}/com' 822 localstatedir='${prefix}/var' 823 runstatedir='${localstatedir}/run' 824 includedir='${prefix}/include' 825 oldincludedir='/usr/include' 826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 827 infodir='${datarootdir}/info' 828 htmldir='${docdir}' 829 dvidir='${docdir}' 830 pdfdir='${docdir}' 831 psdir='${docdir}' 832 libdir='${exec_prefix}/lib' 833 localedir='${datarootdir}/locale' 834 mandir='${datarootdir}/man' 835 836 ac_prev= 837 ac_dashdash= 838 for ac_option 839 do 840 # If the previous option needs an argument, assign it. 841 if test -n "$ac_prev"; then 842 eval $ac_prev=\$ac_option 843 ac_prev= 844 continue 845 fi 846 847 case $ac_option in 848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 849 *=) ac_optarg= ;; 850 *) ac_optarg=yes ;; 851 esac 852 853 case $ac_dashdash$ac_option in 854 --) 855 ac_dashdash=yes ;; 856 857 -bindir | --bindir | --bindi | --bind | --bin | --bi) 858 ac_prev=bindir ;; 859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 860 bindir=$ac_optarg ;; 861 862 -build | --build | --buil | --bui | --bu) 863 ac_prev=build_alias ;; 864 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 865 build_alias=$ac_optarg ;; 866 867 -cache-file | --cache-file | --cache-fil | --cache-fi \ 868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 869 ac_prev=cache_file ;; 870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 872 cache_file=$ac_optarg ;; 873 874 --config-cache | -C) 875 cache_file=config.cache ;; 876 877 -datadir | --datadir | --datadi | --datad) 878 ac_prev=datadir ;; 879 -datadir=* | --datadir=* | --datadi=* | --datad=*) 880 datadir=$ac_optarg ;; 881 882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 883 | --dataroo | --dataro | --datar) 884 ac_prev=datarootdir ;; 885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 887 datarootdir=$ac_optarg ;; 888 889 -disable-* | --disable-*) 890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 891 # Reject names that are not valid shell variable names. 892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 893 as_fn_error $? "invalid feature name: '$ac_useropt'" 894 ac_useropt_orig=$ac_useropt 895 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 896 case $ac_user_opts in 897 *" 898 "enable_$ac_useropt" 899 "*) ;; 900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 901 ac_unrecognized_sep=', ';; 902 esac 903 eval enable_$ac_useropt=no ;; 904 905 -docdir | --docdir | --docdi | --doc | --do) 906 ac_prev=docdir ;; 907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 908 docdir=$ac_optarg ;; 909 910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 911 ac_prev=dvidir ;; 912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 913 dvidir=$ac_optarg ;; 914 915 -enable-* | --enable-*) 916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 917 # Reject names that are not valid shell variable names. 918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 919 as_fn_error $? "invalid feature name: '$ac_useropt'" 920 ac_useropt_orig=$ac_useropt 921 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 922 case $ac_user_opts in 923 *" 924 "enable_$ac_useropt" 925 "*) ;; 926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 927 ac_unrecognized_sep=', ';; 928 esac 929 eval enable_$ac_useropt=\$ac_optarg ;; 930 931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 933 | --exec | --exe | --ex) 934 ac_prev=exec_prefix ;; 935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 937 | --exec=* | --exe=* | --ex=*) 938 exec_prefix=$ac_optarg ;; 939 940 -gas | --gas | --ga | --g) 941 # Obsolete; use --with-gas. 942 with_gas=yes ;; 943 944 -help | --help | --hel | --he | -h) 945 ac_init_help=long ;; 946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 947 ac_init_help=recursive ;; 948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 949 ac_init_help=short ;; 950 951 -host | --host | --hos | --ho) 952 ac_prev=host_alias ;; 953 -host=* | --host=* | --hos=* | --ho=*) 954 host_alias=$ac_optarg ;; 955 956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 957 ac_prev=htmldir ;; 958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 959 | --ht=*) 960 htmldir=$ac_optarg ;; 961 962 -includedir | --includedir | --includedi | --included | --include \ 963 | --includ | --inclu | --incl | --inc) 964 ac_prev=includedir ;; 965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 966 | --includ=* | --inclu=* | --incl=* | --inc=*) 967 includedir=$ac_optarg ;; 968 969 -infodir | --infodir | --infodi | --infod | --info | --inf) 970 ac_prev=infodir ;; 971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 972 infodir=$ac_optarg ;; 973 974 -libdir | --libdir | --libdi | --libd) 975 ac_prev=libdir ;; 976 -libdir=* | --libdir=* | --libdi=* | --libd=*) 977 libdir=$ac_optarg ;; 978 979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 980 | --libexe | --libex | --libe) 981 ac_prev=libexecdir ;; 982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 983 | --libexe=* | --libex=* | --libe=*) 984 libexecdir=$ac_optarg ;; 985 986 -localedir | --localedir | --localedi | --localed | --locale) 987 ac_prev=localedir ;; 988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 989 localedir=$ac_optarg ;; 990 991 -localstatedir | --localstatedir | --localstatedi | --localstated \ 992 | --localstate | --localstat | --localsta | --localst | --locals) 993 ac_prev=localstatedir ;; 994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 996 localstatedir=$ac_optarg ;; 997 998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 999 ac_prev=mandir ;; 1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1001 mandir=$ac_optarg ;; 1002 1003 -nfp | --nfp | --nf) 1004 # Obsolete; use --without-fp. 1005 with_fp=no ;; 1006 1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1008 | --no-cr | --no-c | -n) 1009 no_create=yes ;; 1010 1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1013 no_recursion=yes ;; 1014 1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1017 | --oldin | --oldi | --old | --ol | --o) 1018 ac_prev=oldincludedir ;; 1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1022 oldincludedir=$ac_optarg ;; 1023 1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1025 ac_prev=prefix ;; 1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1027 prefix=$ac_optarg ;; 1028 1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1030 | --program-pre | --program-pr | --program-p) 1031 ac_prev=program_prefix ;; 1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1034 program_prefix=$ac_optarg ;; 1035 1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1037 | --program-suf | --program-su | --program-s) 1038 ac_prev=program_suffix ;; 1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1041 program_suffix=$ac_optarg ;; 1042 1043 -program-transform-name | --program-transform-name \ 1044 | --program-transform-nam | --program-transform-na \ 1045 | --program-transform-n | --program-transform- \ 1046 | --program-transform | --program-transfor \ 1047 | --program-transfo | --program-transf \ 1048 | --program-trans | --program-tran \ 1049 | --progr-tra | --program-tr | --program-t) 1050 ac_prev=program_transform_name ;; 1051 -program-transform-name=* | --program-transform-name=* \ 1052 | --program-transform-nam=* | --program-transform-na=* \ 1053 | --program-transform-n=* | --program-transform-=* \ 1054 | --program-transform=* | --program-transfor=* \ 1055 | --program-transfo=* | --program-transf=* \ 1056 | --program-trans=* | --program-tran=* \ 1057 | --progr-tra=* | --program-tr=* | --program-t=*) 1058 program_transform_name=$ac_optarg ;; 1059 1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1061 ac_prev=pdfdir ;; 1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1063 pdfdir=$ac_optarg ;; 1064 1065 -psdir | --psdir | --psdi | --psd | --ps) 1066 ac_prev=psdir ;; 1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1068 psdir=$ac_optarg ;; 1069 1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1071 | -silent | --silent | --silen | --sile | --sil) 1072 silent=yes ;; 1073 1074 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1075 | --runstate | --runstat | --runsta | --runst | --runs \ 1076 | --run | --ru | --r) 1077 ac_prev=runstatedir ;; 1078 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1079 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1080 | --run=* | --ru=* | --r=*) 1081 runstatedir=$ac_optarg ;; 1082 1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1084 ac_prev=sbindir ;; 1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1086 | --sbi=* | --sb=*) 1087 sbindir=$ac_optarg ;; 1088 1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1091 | --sharedst | --shareds | --shared | --share | --shar \ 1092 | --sha | --sh) 1093 ac_prev=sharedstatedir ;; 1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1097 | --sha=* | --sh=*) 1098 sharedstatedir=$ac_optarg ;; 1099 1100 -site | --site | --sit) 1101 ac_prev=site ;; 1102 -site=* | --site=* | --sit=*) 1103 site=$ac_optarg ;; 1104 1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1106 ac_prev=srcdir ;; 1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1108 srcdir=$ac_optarg ;; 1109 1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1111 | --syscon | --sysco | --sysc | --sys | --sy) 1112 ac_prev=sysconfdir ;; 1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1115 sysconfdir=$ac_optarg ;; 1116 1117 -target | --target | --targe | --targ | --tar | --ta | --t) 1118 ac_prev=target_alias ;; 1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1120 target_alias=$ac_optarg ;; 1121 1122 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1123 verbose=yes ;; 1124 1125 -version | --version | --versio | --versi | --vers | -V) 1126 ac_init_version=: ;; 1127 1128 -with-* | --with-*) 1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1130 # Reject names that are not valid shell variable names. 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1132 as_fn_error $? "invalid package name: '$ac_useropt'" 1133 ac_useropt_orig=$ac_useropt 1134 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 1135 case $ac_user_opts in 1136 *" 1137 "with_$ac_useropt" 1138 "*) ;; 1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1140 ac_unrecognized_sep=', ';; 1141 esac 1142 eval with_$ac_useropt=\$ac_optarg ;; 1143 1144 -without-* | --without-*) 1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1146 # Reject names that are not valid shell variable names. 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1148 as_fn_error $? "invalid package name: '$ac_useropt'" 1149 ac_useropt_orig=$ac_useropt 1150 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 1151 case $ac_user_opts in 1152 *" 1153 "with_$ac_useropt" 1154 "*) ;; 1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1156 ac_unrecognized_sep=', ';; 1157 esac 1158 eval with_$ac_useropt=no ;; 1159 1160 --x) 1161 # Obsolete; use --with-x. 1162 with_x=yes ;; 1163 1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1165 | --x-incl | --x-inc | --x-in | --x-i) 1166 ac_prev=x_includes ;; 1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1169 x_includes=$ac_optarg ;; 1170 1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1173 ac_prev=x_libraries ;; 1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1176 x_libraries=$ac_optarg ;; 1177 1178 -*) as_fn_error $? "unrecognized option: '$ac_option' 1179 Try '$0 --help' for more information" 1180 ;; 1181 1182 *=*) 1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1184 # Reject names that are not valid shell variable names. 1185 case $ac_envvar in #( 1186 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1187 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1188 esac 1189 eval $ac_envvar=\$ac_optarg 1190 export $ac_envvar ;; 1191 1192 *) 1193 # FIXME: should be removed in autoconf 3.0. 1194 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2 1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1196 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2 1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1198 ;; 1199 1200 esac 1201 done 1202 1203 if test -n "$ac_prev"; then 1204 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'` 1205 as_fn_error $? "missing argument to $ac_option" 1206 fi 1207 1208 if test -n "$ac_unrecognized_opts"; then 1209 case $enable_option_checking in 1210 no) ;; 1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1212 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1213 esac 1214 fi 1215 1216 # Check all directory arguments for consistency. 1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1218 datadir sysconfdir sharedstatedir localstatedir includedir \ 1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1220 libdir localedir mandir runstatedir 1221 do 1222 eval ac_val=\$$ac_var 1223 # Remove trailing slashes. 1224 case $ac_val in 1225 */ ) 1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1227 eval $ac_var=\$ac_val;; 1228 esac 1229 # Be sure to have absolute directory names. 1230 case $ac_val in 1231 [\\/$]* | ?:[\\/]* ) continue;; 1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1233 esac 1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1235 done 1236 1237 # There might be people who depend on the old broken behavior: '$host' 1238 # used to hold the argument of --host etc. 1239 # FIXME: To remove some day. 1240 build=$build_alias 1241 host=$host_alias 1242 target=$target_alias 1243 1244 # FIXME: To remove some day. 1245 if test "x$host_alias" != x; then 1246 if test "x$build_alias" = x; then 1247 cross_compiling=maybe 1248 elif test "x$build_alias" != "x$host_alias"; then 1249 cross_compiling=yes 1250 fi 1251 fi 1252 1253 ac_tool_prefix= 1254 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1255 1256 test "$silent" = yes && exec 6>/dev/null 1257 1258 1259 ac_pwd=`pwd` && test -n "$ac_pwd" && 1260 ac_ls_di=`ls -di .` && 1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1262 as_fn_error $? "working directory cannot be determined" 1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1264 as_fn_error $? "pwd does not report name of working directory" 1265 1266 1267 # Find the source files, if location was not specified. 1268 if test -z "$srcdir"; then 1269 ac_srcdir_defaulted=yes 1270 # Try the directory containing this script, then the parent directory. 1271 ac_confdir=`$as_dirname -- "$as_myself" || 1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1273 X"$as_myself" : 'X\(//\)[^/]' \| \ 1274 X"$as_myself" : 'X\(//\)$' \| \ 1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1276 printf '%s\n' X"$as_myself" | 1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)[^/].*/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\/\)$/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\).*/{ 1290 s//\1/ 1291 q 1292 } 1293 s/.*/./; q'` 1294 srcdir=$ac_confdir 1295 if test ! -r "$srcdir/$ac_unique_file"; then 1296 srcdir=.. 1297 fi 1298 else 1299 ac_srcdir_defaulted=no 1300 fi 1301 if test ! -r "$srcdir/$ac_unique_file"; then 1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1304 fi 1305 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1306 ac_abs_confdir=`( 1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1308 pwd)` 1309 # When building in place, set srcdir=. 1310 if test "$ac_abs_confdir" = "$ac_pwd"; then 1311 srcdir=. 1312 fi 1313 # Remove unnecessary trailing slashes from srcdir. 1314 # Double slashes in file names in object file debugging info 1315 # mess up M-x gdb in Emacs. 1316 case $srcdir in 1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1318 esac 1319 for ac_var in $ac_precious_vars; do 1320 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1321 eval ac_env_${ac_var}_value=\$${ac_var} 1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1323 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1324 done 1325 1326 # 1327 # Report the --help message. 1328 # 1329 if test "$ac_init_help" = "long"; then 1330 # Omit some internal or obsolete options to make the list less imposing. 1331 # This message is too long to be a string in the A/UX 3.1 sh. 1332 cat <<_ACEOF 1333 'configure' configures xconsole 1.1.1 to adapt to many kinds of systems. 1334 1335 Usage: $0 [OPTION]... [VAR=VALUE]... 1336 1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1338 VAR=VALUE. See below for descriptions of some of the useful variables. 1339 1340 Defaults for the options are specified in brackets. 1341 1342 Configuration: 1343 -h, --help display this help and exit 1344 --help=short display options specific to this package 1345 --help=recursive display the short help of all the included packages 1346 -V, --version display version information and exit 1347 -q, --quiet, --silent do not print 'checking ...' messages 1348 --cache-file=FILE cache test results in FILE [disabled] 1349 -C, --config-cache alias for '--cache-file=config.cache' 1350 -n, --no-create do not create output files 1351 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1352 1353 Installation directories: 1354 --prefix=PREFIX install architecture-independent files in PREFIX 1355 [$ac_default_prefix] 1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1357 [PREFIX] 1358 1359 By default, 'make install' will install all the files in 1360 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1361 an installation prefix other than '$ac_default_prefix' using '--prefix', 1362 for instance '--prefix=\$HOME'. 1363 1364 For better control, use the options below. 1365 1366 Fine tuning of the installation directories: 1367 --bindir=DIR user executables [EPREFIX/bin] 1368 --sbindir=DIR system admin executables [EPREFIX/sbin] 1369 --libexecdir=DIR program executables [EPREFIX/libexec] 1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1373 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1374 --libdir=DIR object code libraries [EPREFIX/lib] 1375 --includedir=DIR C header files [PREFIX/include] 1376 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1379 --infodir=DIR info documentation [DATAROOTDIR/info] 1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1381 --mandir=DIR man documentation [DATAROOTDIR/man] 1382 --docdir=DIR documentation root [DATAROOTDIR/doc/xconsole] 1383 --htmldir=DIR html documentation [DOCDIR] 1384 --dvidir=DIR dvi documentation [DOCDIR] 1385 --pdfdir=DIR pdf documentation [DOCDIR] 1386 --psdir=DIR ps documentation [DOCDIR] 1387 _ACEOF 1388 1389 cat <<\_ACEOF 1390 1391 Program names: 1392 --program-prefix=PREFIX prepend PREFIX to installed program names 1393 --program-suffix=SUFFIX append SUFFIX to installed program names 1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1395 1396 System types: 1397 --build=BUILD configure for building on BUILD [guessed] 1398 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1399 _ACEOF 1400 fi 1401 1402 if test -n "$ac_init_help"; then 1403 case $ac_init_help in 1404 short | recursive ) echo "Configuration of xconsole 1.1.1:";; 1405 esac 1406 cat <<\_ACEOF 1407 1408 Optional Features: 1409 --disable-option-checking ignore unrecognized --enable/--with options 1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1412 --enable-dependency-tracking 1413 do not reject slow dependency extractors 1414 --disable-dependency-tracking 1415 speeds up one-time build 1416 --enable-silent-rules less verbose build output (undo: "make V=1") 1417 --disable-silent-rules verbose build output (undo: "make V=0") 1418 --disable-selective-werror 1419 Turn off selective compiler errors. (default: 1420 enabled) 1421 --enable-strict-compilation 1422 Enable all warnings from compiler and make them 1423 errors (default: disabled) 1424 --disable-largefile omit support for large files 1425 --enable-year2038 support timestamps after 2038 1426 1427 Optional Packages: 1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1430 --with-appdefaultdir=<pathname> 1431 specify directory for app-defaults files (default is 1432 autodetected) 1433 1434 Some influential environment variables: 1435 CC C compiler command 1436 CFLAGS C compiler flags 1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1438 nonstandard directory <lib dir> 1439 LIBS libraries to pass to the linker, e.g. -l<library> 1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1441 you have headers in a nonstandard directory <include dir> 1442 PKG_CONFIG path to pkg-config utility 1443 PKG_CONFIG_PATH 1444 directories to add to pkg-config's search path 1445 PKG_CONFIG_LIBDIR 1446 path overriding pkg-config's built-in search path 1447 XCONSOLE_CFLAGS 1448 C compiler flags for XCONSOLE, overriding pkg-config 1449 XCONSOLE_LIBS 1450 linker flags for XCONSOLE, overriding pkg-config 1451 APPDEFS_CFLAGS 1452 C compiler flags for APPDEFS, overriding pkg-config 1453 APPDEFS_LIBS 1454 linker flags for APPDEFS, overriding pkg-config 1455 1456 Use these variables to override the choices made by 'configure' or to help 1457 it to find libraries and programs with nonstandard names/locations. 1458 1459 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/-/issues>. 1460 _ACEOF 1461 ac_status=$? 1462 fi 1463 1464 if test "$ac_init_help" = "recursive"; then 1465 # If there are subdirs, report their specific --help. 1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1467 test -d "$ac_dir" || 1468 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1469 continue 1470 ac_builddir=. 1471 1472 case "$ac_dir" in 1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1474 *) 1475 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'` 1476 # A ".." for each directory in $ac_dir_suffix. 1477 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1478 case $ac_top_builddir_sub in 1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1481 esac ;; 1482 esac 1483 ac_abs_top_builddir=$ac_pwd 1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1485 # for backward compatibility: 1486 ac_top_builddir=$ac_top_build_prefix 1487 1488 case $srcdir in 1489 .) # We are building in place. 1490 ac_srcdir=. 1491 ac_top_srcdir=$ac_top_builddir_sub 1492 ac_abs_top_srcdir=$ac_pwd ;; 1493 [\\/]* | ?:[\\/]* ) # Absolute name. 1494 ac_srcdir=$srcdir$ac_dir_suffix; 1495 ac_top_srcdir=$srcdir 1496 ac_abs_top_srcdir=$srcdir ;; 1497 *) # Relative name. 1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1499 ac_top_srcdir=$ac_top_build_prefix$srcdir 1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1501 esac 1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1503 1504 cd "$ac_dir" || { ac_status=$?; continue; } 1505 # Check for configure.gnu first; this name is used for a wrapper for 1506 # Metaconfig's "Configure" on case-insensitive file systems. 1507 if test -f "$ac_srcdir/configure.gnu"; then 1508 echo && 1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1510 elif test -f "$ac_srcdir/configure"; then 1511 echo && 1512 $SHELL "$ac_srcdir/configure" --help=recursive 1513 else 1514 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1515 fi || ac_status=$? 1516 cd "$ac_pwd" || { ac_status=$?; break; } 1517 done 1518 fi 1519 1520 test -n "$ac_init_help" && exit $ac_status 1521 if $ac_init_version; then 1522 cat <<\_ACEOF 1523 xconsole configure 1.1.1 1524 generated by GNU Autoconf 2.73 1525 1526 Copyright (C) 2026 Free Software Foundation, Inc. 1527 This configure script is free software; the Free Software Foundation 1528 gives unlimited permission to copy, distribute and modify it. 1529 _ACEOF 1530 exit 1531 fi 1532 1533 ## ------------------------ ## 1534 ## Autoconf initialization. ## 1535 ## ------------------------ ## 1536 1537 # ac_fn_c_try_compile LINENO 1538 # -------------------------- 1539 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1540 ac_fn_c_try_compile () 1541 { 1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1543 rm -f conftest.$ac_objext conftest.beam 1544 if { { ac_try="$ac_compile" 1545 case "(($ac_try" in 1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1547 *) ac_try_echo=$ac_try;; 1548 esac 1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1550 printf '%s\n' "$ac_try_echo"; } >&5 1551 (eval "$ac_compile") 2>conftest.err 1552 ac_status=$? 1553 if test -s conftest.err; then 1554 grep -v '^ *+' conftest.err >conftest.er1 1555 cat conftest.er1 >&5 1556 mv -f conftest.er1 conftest.err 1557 fi 1558 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1559 test $ac_status = 0; } && { 1560 test -z "$ac_c_werror_flag" || 1561 test ! -s conftest.err 1562 } && test -s conftest.$ac_objext 1563 then : 1564 ac_retval=0 1565 else case e in #( 1566 e) printf '%s\n' "$as_me: failed program was:" >&5 1567 sed 's/^/| /' conftest.$ac_ext >&5 1568 1569 ac_retval=1 ;; 1570 esac 1571 fi 1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1573 as_fn_set_status $ac_retval 1574 1575 } # ac_fn_c_try_compile 1576 1577 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1578 # ------------------------------------------------------- 1579 # Tests whether HEADER exists and can be compiled using the include files in 1580 # INCLUDES, setting the cache variable VAR accordingly. 1581 ac_fn_c_check_header_compile () 1582 { 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1585 printf %s "checking for $2... " >&6; } 1586 if eval test \${$3+y} 1587 then : 1588 printf %s "(cached) " >&6 1589 else case e in #( 1590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1591 /* end confdefs.h. */ 1592 $4 1593 #include <$2> 1594 _ACEOF 1595 if ac_fn_c_try_compile "$LINENO" 1596 then : 1597 eval "$3=yes" 1598 else case e in #( 1599 e) eval "$3=no" ;; 1600 esac 1601 fi 1602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1603 esac 1604 fi 1605 eval ac_res=\$$3 1606 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1607 printf '%s\n' "$ac_res" >&6; } 1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1609 1610 } # ac_fn_c_check_header_compile 1611 1612 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1613 # ------------------------------------------------------------------ 1614 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1615 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1616 ac_fn_check_decl () 1617 { 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 as_decl_name=`echo $2|sed 's/ *(.*//'` 1620 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1621 printf %s "checking whether $as_decl_name is declared... " >&6; } 1622 if eval test \${$3+y} 1623 then : 1624 printf %s "(cached) " >&6 1625 else case e in #( 1626 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1627 eval ac_save_FLAGS=\$$6 1628 as_fn_append $6 " $5" 1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1630 /* end confdefs.h. */ 1631 $4 1632 int 1633 main (void) 1634 { 1635 #ifndef $as_decl_name 1636 #ifdef __cplusplus 1637 (void) $as_decl_use; 1638 #else 1639 (void) $as_decl_name; 1640 #endif 1641 #endif 1642 1643 ; 1644 return 0; 1645 } 1646 _ACEOF 1647 if ac_fn_c_try_compile "$LINENO" 1648 then : 1649 eval "$3=yes" 1650 else case e in #( 1651 e) eval "$3=no" ;; 1652 esac 1653 fi 1654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1655 eval $6=\$ac_save_FLAGS 1656 ;; 1657 esac 1658 fi 1659 eval ac_res=\$$3 1660 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1661 printf '%s\n' "$ac_res" >&6; } 1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1663 1664 } # ac_fn_check_decl 1665 1666 # ac_fn_c_try_link LINENO 1667 # ----------------------- 1668 # Try to link conftest.$ac_ext, and return whether this succeeded. 1669 ac_fn_c_try_link () 1670 { 1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1673 if { { ac_try="$ac_link" 1674 case "(($ac_try" in 1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676 *) ac_try_echo=$ac_try;; 1677 esac 1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679 printf '%s\n' "$ac_try_echo"; } >&5 1680 (eval "$ac_link") 2>conftest.err 1681 ac_status=$? 1682 if test -s conftest.err; then 1683 grep -v '^ *+' conftest.err >conftest.er1 1684 cat conftest.er1 >&5 1685 mv -f conftest.er1 conftest.err 1686 fi 1687 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; } && { 1689 test -z "$ac_c_werror_flag" || 1690 test ! -s conftest.err 1691 } && test -s conftest$ac_exeext && { 1692 test "$cross_compiling" = yes || 1693 test -x conftest$ac_exeext 1694 } 1695 then : 1696 ac_retval=0 1697 else case e in #( 1698 e) printf '%s\n' "$as_me: failed program was:" >&5 1699 sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=1 ;; 1702 esac 1703 fi 1704 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1705 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1706 # interfere with the next link command; also delete a directory that is 1707 # left behind by Apple's compiler. We do this before executing the actions. 1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1710 as_fn_set_status $ac_retval 1711 1712 } # ac_fn_c_try_link 1713 1714 # ac_fn_c_check_func LINENO FUNC VAR 1715 # ---------------------------------- 1716 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1717 ac_fn_c_check_func () 1718 { 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1721 printf %s "checking for $2... " >&6; } 1722 if eval test \${$3+y} 1723 then : 1724 printf %s "(cached) " >&6 1725 else case e in #( 1726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1727 /* end confdefs.h. */ 1728 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1729 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1730 #define $2 innocuous_$2 1731 1732 /* System header to define __stub macros and hopefully few prototypes, 1733 which can conflict with char $2 (void); below. */ 1734 1735 #include <limits.h> 1736 #undef $2 1737 1738 /* Override any GCC internal prototype to avoid an error. 1739 Use char because int might match the return type of a GCC 1740 builtin and then its argument prototype would still apply. */ 1741 #ifdef __cplusplus 1742 extern "C" 1743 #endif 1744 char $2 (void); 1745 /* The GNU C library defines this for functions which it implements 1746 to always fail with ENOSYS. Some functions are actually named 1747 something starting with __ and the normal name is an alias. */ 1748 #if defined __stub_$2 || defined __stub___$2 1749 choke me 1750 #endif 1751 1752 int 1753 main (void) 1754 { 1755 return $2 (); 1756 ; 1757 return 0; 1758 } 1759 _ACEOF 1760 if ac_fn_c_try_link "$LINENO" 1761 then : 1762 eval "$3=yes" 1763 else case e in #( 1764 e) eval "$3=no" ;; 1765 esac 1766 fi 1767 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1768 conftest$ac_exeext conftest.$ac_ext ;; 1769 esac 1770 fi 1771 eval ac_res=\$$3 1772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1773 printf '%s\n' "$ac_res" >&6; } 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1775 1776 } # ac_fn_c_check_func 1777 ac_configure_args_raw= 1778 for ac_arg 1779 do 1780 case $ac_arg in 1781 *\'*) 1782 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1783 esac 1784 as_fn_append ac_configure_args_raw " '$ac_arg'" 1785 done 1786 1787 case $ac_configure_args_raw in 1788 *$as_nl*) 1789 ac_safe_unquote= ;; 1790 *) 1791 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1792 ac_unsafe_a="$ac_unsafe_z#~" 1793 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1794 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1795 esac 1796 1797 cat >config.log <<_ACEOF 1798 This file contains any messages produced by compilers while 1799 running configure, to aid debugging if configure makes a mistake. 1800 1801 It was created by xconsole $as_me 1.1.1, which was 1802 generated by GNU Autoconf 2.73. Invocation command line was 1803 1804 $ $0$ac_configure_args_raw 1805 1806 _ACEOF 1807 exec 5>>config.log 1808 { 1809 cat <<_ASUNAME 1810 ## --------- ## 1811 ## Platform. ## 1812 ## --------- ## 1813 1814 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1815 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1816 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1817 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1818 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1819 1820 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1821 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1822 1823 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1824 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1825 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1826 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1827 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1828 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1829 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1830 1831 _ASUNAME 1832 1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1834 for as_dir in $PATH 1835 do 1836 IFS=$as_save_IFS 1837 case $as_dir in #((( 1838 '') as_dir=./ ;; 1839 */) ;; 1840 *) as_dir=$as_dir/ ;; 1841 esac 1842 printf '%s\n' "PATH: $as_dir" 1843 done 1844 IFS=$as_save_IFS 1845 1846 } >&5 1847 1848 cat >&5 <<_ACEOF 1849 1850 1851 ## ----------- ## 1852 ## Core tests. ## 1853 ## ----------- ## 1854 1855 _ACEOF 1856 1857 1858 # Keep a trace of the command line. 1859 # Strip out --no-create and --no-recursion so they do not pile up. 1860 # Strip out --silent because we don't want to record it for future runs. 1861 # Also quote any args containing shell meta-characters. 1862 # Make two passes to allow for proper duplicate-argument suppression. 1863 ac_configure_args= 1864 ac_configure_args0= 1865 ac_configure_args1= 1866 ac_must_keep_next=false 1867 for ac_pass in 1 2 1868 do 1869 for ac_arg 1870 do 1871 case $ac_arg in 1872 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1873 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1874 | -silent | --silent | --silen | --sile | --sil) 1875 continue ;; 1876 *\'*) 1877 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1878 esac 1879 case $ac_pass in 1880 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1881 2) 1882 as_fn_append ac_configure_args1 " '$ac_arg'" 1883 if test $ac_must_keep_next = true; then 1884 ac_must_keep_next=false # Got value, back to normal. 1885 else 1886 case $ac_arg in 1887 *=* | --config-cache | -C | -disable-* | --disable-* \ 1888 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1889 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1890 | -with-* | --with-* | -without-* | --without-* | --x) 1891 case "$ac_configure_args0 " in 1892 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1893 esac 1894 ;; 1895 -* ) ac_must_keep_next=true ;; 1896 esac 1897 fi 1898 as_fn_append ac_configure_args " '$ac_arg'" 1899 ;; 1900 esac 1901 done 1902 done 1903 { ac_configure_args0=; unset ac_configure_args0;} 1904 { ac_configure_args1=; unset ac_configure_args1;} 1905 1906 # Dump the cache to stdout. It can be in a pipe (this is a requirement). 1907 ac_cache_dump () 1908 { 1909 # The following way of writing the cache mishandles newlines in values, 1910 # but we know of no workaround that is simple, portable, and efficient. 1911 # So, we kill variables containing newlines. 1912 # Ultrix sh set writes to stderr and can't be redirected directly, 1913 # and sets the high bit in the cache file unless we assign to the vars. 1914 ( 1915 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 1916 eval ac_val=\$$ac_var 1917 case $ac_val in #( 1918 *${as_nl}*) 1919 case $ac_var in #( 1920 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1921 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1922 esac 1923 case $ac_var in #( 1924 _ | IFS | as_nl) ;; #( 1925 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1926 *) { eval $ac_var=; unset $ac_var;} ;; 1927 esac ;; 1928 esac 1929 done 1930 1931 (set) 2>&1 | 1932 case $as_nl`(ac_space=' '; set) 2>&1` in #( 1933 *${as_nl}ac_space=\ *) 1934 # 'set' does not quote correctly, so add quotes: double-quote 1935 # substitution turns \\\\ into \\, and sed turns \\ into \. 1936 sed -n \ 1937 "s/'/'\\\\''/g; 1938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 1939 ;; #( 1940 *) 1941 # 'set' quotes correctly as required by POSIX, so do not add quotes. 1942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1943 ;; 1944 esac | 1945 sort 1946 ) 1947 } 1948 1949 # Print debugging info to stdout. 1950 ac_dump_debugging_info () 1951 { 1952 echo 1953 1954 printf '%s\n' "## ---------------- ## 1955 ## Cache variables. ## 1956 ## ---------------- ##" 1957 echo 1958 ac_cache_dump 1959 echo 1960 1961 printf '%s\n' "## ----------------- ## 1962 ## Output variables. ## 1963 ## ----------------- ##" 1964 echo 1965 for ac_var in $ac_subst_vars 1966 do 1967 eval ac_val=\$$ac_var 1968 case $ac_val in 1969 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;; 1970 esac 1971 printf '%s\n' "$ac_var='$ac_val'" 1972 done | sort 1973 echo 1974 1975 if test -n "$ac_subst_files"; then 1976 printf '%s\n' "## ------------------- ## 1977 ## File substitutions. ## 1978 ## ------------------- ##" 1979 echo 1980 for ac_var in $ac_subst_files 1981 do 1982 eval ac_val=\$$ac_var 1983 case $ac_val in 1984 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;; 1985 esac 1986 printf '%s\n' "$ac_var='$ac_val'" 1987 done | sort 1988 echo 1989 fi 1990 1991 if test -s confdefs.h; then 1992 printf '%s\n' "## ----------- ## 1993 ## confdefs.h. ## 1994 ## ----------- ##" 1995 echo 1996 cat confdefs.h 1997 echo 1998 fi 1999 test "$ac_signal" != 0 && 2000 printf '%s\n' "$as_me: caught signal $ac_signal" 2001 printf '%s\n' "$as_me: exit $exit_status" 2002 } 2003 2004 # When interrupted or exit'd, cleanup temporary files, and complete 2005 # config.log. 2006 ac_exit_trap () 2007 { 2008 exit_status= 2009 # Sanitize IFS. 2010 IFS=" "" $as_nl" 2011 # Save into config.log some information that might help in debugging. 2012 ac_dump_debugging_info >&5 2013 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" && 2014 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2015 exit $exit_status 2016 } 2017 2018 trap 'ac_exit_trap $?' 0 2019 for ac_signal in 1 2 13 15; do 2020 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2021 done 2022 ac_signal=0 2023 2024 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2025 rm -f -r conftest* confdefs.h 2026 2027 printf '%s\n' "/* confdefs.h */" > confdefs.h 2028 2029 # Predefined preprocessor variables. 2030 2031 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2032 2033 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2034 2035 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2036 2037 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2038 2039 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2040 2041 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2042 2043 2044 # Let the site file select an alternate cache file if it wants to. 2045 # Prefer an explicitly selected file to automatically selected ones. 2046 if test -n "$CONFIG_SITE"; then 2047 ac_site_files="$CONFIG_SITE" 2048 elif test "x$prefix" != xNONE; then 2049 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2050 else 2051 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2052 fi 2053 2054 for ac_site_file in $ac_site_files 2055 do 2056 case $ac_site_file in #( 2057 */*) : 2058 ;; #( 2059 *) : 2060 ac_site_file=./$ac_site_file ;; 2061 esac 2062 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2064 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;} 2065 sed 's/^/| /' "$ac_site_file" >&5 2066 . "$ac_site_file" \ 2067 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2068 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 2069 as_fn_error $? "failed to load site script $ac_site_file 2070 See 'config.log' for more details" "$LINENO" 5; } 2071 fi 2072 done 2073 2074 if test -r "$cache_file"; then 2075 # Some versions of bash will fail to source /dev/null (special files 2076 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2077 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2079 printf '%s\n' "$as_me: loading cache $cache_file" >&6;} 2080 case $cache_file in 2081 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2082 *) . "./$cache_file";; 2083 esac 2084 fi 2085 else 2086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2087 printf '%s\n' "$as_me: creating cache $cache_file" >&6;} 2088 >$cache_file 2089 fi 2090 2091 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2092 # Test code for whether the C compiler supports C23 (global declarations) 2093 ac_c_conftest_c23_globals=' 2094 /* Does the compiler advertise conformance to C17 or earlier? 2095 Although GCC 14 does not do that, even with -std=gnu23, 2096 it is close enough, and defines __STDC_VERSION == 202000L. */ 2097 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L 2098 # error "Compiler advertises conformance to C17 or earlier" 2099 #endif 2100 2101 // Check alignas. 2102 char alignas (double) c23_aligned_as_double; 2103 char alignas (0) c23_no_special_alignment; 2104 extern char c23_aligned_as_int; 2105 char alignas (0) alignas (int) c23_aligned_as_int; 2106 2107 // Check alignof. 2108 enum 2109 { 2110 c23_int_alignment = alignof (int), 2111 c23_int_array_alignment = alignof (int[100]), 2112 c23_char_alignment = alignof (char) 2113 }; 2114 static_assert (0 < -alignof (int), "alignof is signed"); 2115 2116 int function_with_unnamed_parameter (int) { return 0; } 2117 2118 void c23_noreturn (); 2119 2120 /* Test parsing of string and char UTF-8 literals (including hex escapes). 2121 The parens pacify GCC 15. */ 2122 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\''); 2123 2124 bool check_that_bool_works = true | false | !nullptr; 2125 #if !true 2126 # error "true does not work in #if" 2127 #endif 2128 #if false 2129 #elifdef __STDC_VERSION__ 2130 #else 2131 # error "#elifdef does not work" 2132 #endif 2133 2134 #ifndef __has_c_attribute 2135 # error "__has_c_attribute not defined" 2136 #endif 2137 2138 #ifndef __has_include 2139 # error "__has_include not defined" 2140 #endif 2141 2142 #define LPAREN() ( 2143 #define FORTY_TWO(x) 42 2144 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x)) 2145 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42); 2146 2147 static_assert (0b101010 == 42); 2148 static_assert (0B101010 == 42); 2149 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559); 2150 static_assert (0.500'\''000'\''000 == 0.5); 2151 2152 enum unsignedish : unsigned int { uione = 1 }; 2153 static_assert (0 < -uione); 2154 2155 #include <stddef.h> 2156 constexpr nullptr_t null_pointer = nullptr; 2157 2158 static typeof (1 + 1L) two () { return 2; } 2159 static long int three () { return 3; } 2160 ' 2161 2162 # Test code for whether the C compiler supports C23 (body of main). 2163 ac_c_conftest_c23_main=' 2164 { 2165 label_before_declaration: 2166 int arr[10] = {}; 2167 if (arr[0]) 2168 goto label_before_declaration; 2169 if (!arr[0]) 2170 goto label_at_end_of_block; 2171 label_at_end_of_block: 2172 } 2173 ok |= !null_pointer; 2174 ok |= two != three; 2175 ' 2176 2177 # Test code for whether the C compiler supports C23 (complete). 2178 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals} 2179 2180 int 2181 main (int, char **) 2182 { 2183 int ok = 0; 2184 ${ac_c_conftest_c23_main} 2185 return ok; 2186 } 2187 " 2188 2189 # Test code for whether the C compiler supports C89 (global declarations) 2190 ac_c_conftest_c89_globals=' 2191 /* Do not test the value of __STDC__, because some compilers define it to 0 2192 or do not define it, while otherwise adequately conforming. */ 2193 2194 #include <stddef.h> 2195 #include <stdarg.h> 2196 struct stat; 2197 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2198 struct buf { int x; }; 2199 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2200 static char *e (char **p, int i) 2201 { 2202 return p[i]; 2203 } 2204 static char *f (char * (*g) (char **, int), char **p, ...) 2205 { 2206 char *s; 2207 va_list v; 2208 va_start (v,p); 2209 s = g (p, va_arg (v,int)); 2210 va_end (v); 2211 return s; 2212 } 2213 2214 /* C89 style stringification. */ 2215 #define noexpand_stringify(a) #a 2216 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2217 2218 /* C89 style token pasting. Exercises some of the corner cases that 2219 e.g. old MSVC gets wrong, but not very hard. */ 2220 #define noexpand_concat(a,b) a##b 2221 #define expand_concat(a,b) noexpand_concat(a,b) 2222 extern int vA; 2223 extern int vbee; 2224 #define aye A 2225 #define bee B 2226 int *pvA = &expand_concat(v,aye); 2227 int *pvbee = &noexpand_concat(v,bee); 2228 2229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2230 function prototypes and stuff, but not \xHH hex character constants. 2231 These do not provoke an error unfortunately, instead are silently treated 2232 as an "x". The following induces an error, until -std is added to get 2233 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2234 array size at least. It is necessary to write \x00 == 0 to get something 2235 that is true only with -std. */ 2236 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2237 2238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2239 inside strings and character constants. */ 2240 #define FOO(x) '\''x'\'' 2241 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2242 2243 int test (int i, double x); 2244 struct s1 {int (*f) (int a);}; 2245 struct s2 {int (*f) (double a);}; 2246 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2247 int, int);' 2248 2249 # Test code for whether the C compiler supports C89 (body of main). 2250 ac_c_conftest_c89_main=' 2251 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2252 ' 2253 2254 # Test code for whether the C compiler supports C99 (global declarations) 2255 ac_c_conftest_c99_globals=' 2256 /* Does the compiler advertise C99 conformance? */ 2257 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2258 # error "Compiler does not advertise C99 conformance" 2259 #endif 2260 2261 // See if C++-style comments work. 2262 2263 #include <stdbool.h> 2264 extern int puts (const char *); 2265 extern int printf (const char *, ...); 2266 extern int dprintf (int, const char *, ...); 2267 extern void *malloc (size_t); 2268 extern void free (void *); 2269 2270 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2271 // dprintf is used instead of fprintf to avoid needing to declare 2272 // FILE and stderr, and "aND" is used instead of "and" to work around 2273 // GCC bug 40564 which is irrelevant here. 2274 #define debug(...) dprintf (2, __VA_ARGS__) 2275 #define showlist(...) puts (#__VA_ARGS__) 2276 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2277 static void 2278 test_varargs_macros (void) 2279 { 2280 int x = 1234; 2281 int y = 5678; 2282 debug ("Flag"); 2283 debug ("X = %d\n", x); 2284 showlist (The first, second, aND third items.); 2285 report (x>y, "x is %d but y is %d", x, y); 2286 } 2287 2288 // Check long long types. 2289 #define BIG64 18446744073709551615ull 2290 #define BIG32 4294967295ul 2291 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2292 #if !BIG_OK 2293 #error "your preprocessor is broken" 2294 #endif 2295 #if BIG_OK 2296 #else 2297 #error "your preprocessor is broken" 2298 #endif 2299 static long long int bignum = -9223372036854775807LL; 2300 static unsigned long long int ubignum = BIG64; 2301 2302 struct incomplete_array 2303 { 2304 int datasize; 2305 double data[]; 2306 }; 2307 2308 struct named_init { 2309 int number; 2310 const wchar_t *name; 2311 double average; 2312 }; 2313 2314 typedef const char *ccp; 2315 2316 static inline int 2317 test_restrict (ccp restrict text) 2318 { 2319 // Iterate through items via the restricted pointer. 2320 // Also check for declarations in for loops. 2321 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2322 continue; 2323 return 0; 2324 } 2325 2326 // Check varargs and va_copy. 2327 static bool 2328 test_varargs (const char *format, ...) 2329 { 2330 va_list args; 2331 va_start (args, format); 2332 va_list args_copy; 2333 va_copy (args_copy, args); 2334 2335 const char *str = ""; 2336 int number = 0; 2337 float fnumber = 0; 2338 2339 while (*format) 2340 { 2341 switch (*format++) 2342 { 2343 case '\''s'\'': // string 2344 str = va_arg (args_copy, const char *); 2345 break; 2346 case '\''d'\'': // int 2347 number = va_arg (args_copy, int); 2348 break; 2349 case '\''f'\'': // float 2350 fnumber = va_arg (args_copy, double); 2351 break; 2352 default: 2353 break; 2354 } 2355 } 2356 va_end (args_copy); 2357 va_end (args); 2358 2359 return *str && number && fnumber; 2360 } 2361 ' 2362 2363 # Test code for whether the C compiler supports C99 (body of main). 2364 ac_c_conftest_c99_main=' 2365 // Check bool. 2366 _Bool success = false; 2367 success |= (argc != 0); 2368 2369 // Check restrict. 2370 if (test_restrict ("String literal") == 0) 2371 success = true; 2372 const char *restrict newvar = "Another string"; 2373 2374 // Check varargs. 2375 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2376 test_varargs_macros (); 2377 2378 // Check flexible array members. 2379 static struct incomplete_array *volatile incomplete_array_pointer; 2380 struct incomplete_array *ia = incomplete_array_pointer; 2381 ia->datasize = 10; 2382 for (int i = 0; i < ia->datasize; ++i) 2383 ia->data[i] = i * 1.234; 2384 // Work around memory leak warnings. 2385 free (ia); 2386 2387 // Check named initializers. 2388 struct named_init ni = { 2389 .number = 34, 2390 .name = L"Test wide string", 2391 .average = 543.34343, 2392 }; 2393 2394 ni.number = 58; 2395 2396 // Do not test for VLAs, as some otherwise-conforming compilers lack them. 2397 // C code should instead use __STDC_NO_VLA__; see Autoconf manual. 2398 2399 // work around unused variable warnings 2400 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2401 || ni.number != 58); 2402 ' 2403 2404 # Test code for whether the C compiler supports C11 (global declarations) 2405 ac_c_conftest_c11_globals=' 2406 /* Does the compiler advertise C11 conformance? */ 2407 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2408 # error "Compiler does not advertise C11 conformance" 2409 #endif 2410 2411 // Check _Alignas. 2412 char _Alignas (double) aligned_as_double; 2413 char _Alignas (0) no_special_alignment; 2414 extern char aligned_as_int; 2415 char _Alignas (0) _Alignas (int) aligned_as_int; 2416 2417 // Check _Alignof. 2418 enum 2419 { 2420 int_alignment = _Alignof (int), 2421 int_array_alignment = _Alignof (int[100]), 2422 char_alignment = _Alignof (char) 2423 }; 2424 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2425 2426 // Check _Noreturn. 2427 int _Noreturn does_not_return (void) { for (;;) continue; } 2428 2429 // Check _Static_assert. 2430 struct test_static_assert 2431 { 2432 int x; 2433 _Static_assert (sizeof (int) <= sizeof (long int), 2434 "_Static_assert does not work in struct"); 2435 long int y; 2436 }; 2437 2438 // Check UTF-8 literals. 2439 #define u8 syntax error! 2440 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2441 2442 // Check duplicate typedefs. 2443 typedef long *long_ptr; 2444 typedef long int *long_ptr; 2445 typedef long_ptr long_ptr; 2446 2447 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2448 struct anonymous 2449 { 2450 union { 2451 struct { int i; int j; }; 2452 struct { int k; long int l; } w; 2453 }; 2454 int m; 2455 } v1; 2456 ' 2457 2458 # Test code for whether the C compiler supports C11 (body of main). 2459 ac_c_conftest_c11_main=' 2460 _Static_assert ((offsetof (struct anonymous, i) 2461 == offsetof (struct anonymous, w.k)), 2462 "Anonymous union alignment botch"); 2463 v1.i = 2; 2464 v1.w.k = 5; 2465 ok |= v1.i != 5; 2466 ' 2467 2468 # Test code for whether the C compiler supports C11 (complete). 2469 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2470 ${ac_c_conftest_c99_globals} 2471 ${ac_c_conftest_c11_globals} 2472 2473 int 2474 main (int argc, char **argv) 2475 { 2476 int ok = 0; 2477 ${ac_c_conftest_c89_main} 2478 ${ac_c_conftest_c99_main} 2479 ${ac_c_conftest_c11_main} 2480 return ok; 2481 } 2482 " 2483 2484 # Test code for whether the C compiler supports C99 (complete). 2485 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2486 ${ac_c_conftest_c99_globals} 2487 2488 int 2489 main (int argc, char **argv) 2490 { 2491 int ok = 0; 2492 ${ac_c_conftest_c89_main} 2493 ${ac_c_conftest_c99_main} 2494 return ok; 2495 } 2496 " 2497 2498 # Test code for whether the C compiler supports C89 (complete). 2499 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2500 2501 int 2502 main (int argc, char **argv) 2503 { 2504 int ok = 0; 2505 ${ac_c_conftest_c89_main} 2506 return ok; 2507 } 2508 " 2509 2510 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2511 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2512 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2513 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2514 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2515 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2516 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2517 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2518 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2519 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2520 2521 # Auxiliary files required by this configure script. 2522 ac_aux_files="config.guess config.sub missing install-sh compile" 2523 2524 # Locations in which to look for auxiliary files. 2525 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2526 2527 # Search for a directory containing all of the required auxiliary files, 2528 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2529 # If we don't find one directory that contains all the files we need, 2530 # we report the set of missing files from the *first* directory in 2531 # $ac_aux_dir_candidates and give up. 2532 ac_missing_aux_files="" 2533 ac_first_candidate=: 2534 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2536 as_found=false 2537 for as_dir in $ac_aux_dir_candidates 2538 do 2539 IFS=$as_save_IFS 2540 case $as_dir in #((( 2541 '') as_dir=./ ;; 2542 */) ;; 2543 *) as_dir=$as_dir/ ;; 2544 esac 2545 as_found=: 2546 2547 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2548 ac_aux_dir_found=yes 2549 ac_install_sh= 2550 for ac_aux in $ac_aux_files 2551 do 2552 # As a special case, if "install-sh" is required, that requirement 2553 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2554 # and $ac_install_sh is set appropriately for whichever one is found. 2555 if test x"$ac_aux" = x"install-sh" 2556 then 2557 if test -f "${as_dir}install-sh"; then 2558 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2559 ac_install_sh="${as_dir}install-sh -c" 2560 elif test -f "${as_dir}install.sh"; then 2561 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2562 ac_install_sh="${as_dir}install.sh -c" 2563 elif test -f "${as_dir}shtool"; then 2564 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2565 ac_install_sh="${as_dir}shtool install -c" 2566 else 2567 ac_aux_dir_found=no 2568 if $ac_first_candidate; then 2569 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2570 else 2571 break 2572 fi 2573 fi 2574 else 2575 if test -f "${as_dir}${ac_aux}"; then 2576 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2577 else 2578 ac_aux_dir_found=no 2579 if $ac_first_candidate; then 2580 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2581 else 2582 break 2583 fi 2584 fi 2585 fi 2586 done 2587 if test "$ac_aux_dir_found" = yes; then 2588 ac_aux_dir="$as_dir" 2589 break 2590 fi 2591 ac_first_candidate=false 2592 2593 as_found=false 2594 done 2595 IFS=$as_save_IFS 2596 if $as_found 2597 then : 2598 2599 else case e in #( 2600 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2601 esac 2602 fi 2603 2604 2605 # These three variables are undocumented and unsupported, 2606 # and are intended to be withdrawn in a future Autoconf release. 2607 # They can cause serious problems if a builder's source tree is in a directory 2608 # whose full name contains unusual characters. 2609 if test -f "${ac_aux_dir}config.guess"; then 2610 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2611 fi 2612 if test -f "${ac_aux_dir}config.sub"; then 2613 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2614 fi 2615 if test -f "$ac_aux_dir/configure"; then 2616 ac_configure="$SHELL ${ac_aux_dir}configure" 2617 fi 2618 2619 # Check that the precious variables saved in the cache have kept the same 2620 # value. 2621 ac_cache_corrupted=false 2622 for ac_var in $ac_precious_vars; do 2623 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2624 eval ac_new_set=\$ac_env_${ac_var}_set 2625 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2626 eval ac_new_val=\$ac_env_${ac_var}_value 2627 case $ac_old_set,$ac_new_set in 2628 set,) 2629 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2630 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2631 ac_cache_corrupted=: ;; 2632 ,set) 2633 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2634 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2635 ac_cache_corrupted=: ;; 2636 ,);; 2637 *) 2638 if test "x$ac_old_val" != "x$ac_new_val"; then 2639 # differences in whitespace do not lead to failure. 2640 ac_old_val_w= 2641 for ac_val in x $ac_old_val; do 2642 ac_old_val_w="$ac_old_val_w $ac_val" 2643 done 2644 ac_new_val_w= 2645 for ac_val in x $ac_new_val; do 2646 ac_new_val_w="$ac_new_val_w $ac_val" 2647 done 2648 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2649 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2650 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2651 ac_cache_corrupted=: 2652 else 2653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2654 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2655 eval $ac_var=\$ac_old_val 2656 fi 2657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2658 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;} 2659 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2660 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;} 2661 fi;; 2662 esac 2663 # Pass precious variables to config.status. 2664 if test "$ac_new_set" = set; then 2665 case $ac_new_val in 2666 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2667 *) ac_arg=$ac_var=$ac_new_val ;; 2668 esac 2669 case " $ac_configure_args " in 2670 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2671 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2672 esac 2673 fi 2674 done 2675 if $ac_cache_corrupted; then 2676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2677 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 2678 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2679 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;} 2680 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2681 and start over" "$LINENO" 5 2682 fi 2683 ## -------------------- ## 2684 ## Main body of script. ## 2685 ## -------------------- ## 2686 2687 2688 # Determine whether it's possible to make 'echo' print without a newline. 2689 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 2690 # for compatibility with existing Makefiles. 2691 ECHO_C= ECHO_N= ECHO_T= 2692 case `echo -n x` in #((((( 2693 -n*) 2694 case `echo 'xy\c'` in 2695 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 2696 xy) ECHO_C='\c';; 2697 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 2698 ECHO_T=' ';; 2699 esac;; 2700 *) 2701 ECHO_N='-n';; 2702 esac 2703 2704 ac_ext=c 2705 ac_cpp='$CPP $CPPFLAGS' 2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2709 2710 2711 2712 ac_config_headers="$ac_config_headers config.h" 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 # Expand $ac_aux_dir to an absolute path. 2729 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2730 2731 ac_ext=c 2732 ac_cpp='$CPP $CPPFLAGS' 2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2736 if test -n "$ac_tool_prefix"; then 2737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2738 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2739 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2740 printf %s "checking for $ac_word... " >&6; } 2741 if test ${ac_cv_prog_CC+y} 2742 then : 2743 printf %s "(cached) " >&6 2744 else case e in #( 2745 e) if test -n "$CC"; then 2746 ac_cv_prog_CC="$CC" # Let the user override the test. 2747 else 2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2749 for as_dir in $PATH 2750 do 2751 IFS=$as_save_IFS 2752 case $as_dir in #((( 2753 '') as_dir=./ ;; 2754 */) ;; 2755 *) as_dir=$as_dir/ ;; 2756 esac 2757 for ac_exec_ext in '' $ac_executable_extensions; do 2758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2759 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2760 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2761 break 2 2762 fi 2763 done 2764 done 2765 IFS=$as_save_IFS 2766 2767 fi ;; 2768 esac 2769 fi 2770 CC=$ac_cv_prog_CC 2771 if test -n "$CC"; then 2772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2773 printf '%s\n' "$CC" >&6; } 2774 else 2775 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2776 printf '%s\n' "no" >&6; } 2777 fi 2778 2779 2780 fi 2781 if test -z "$ac_cv_prog_CC"; then 2782 ac_ct_CC=$CC 2783 # Extract the first word of "gcc", so it can be a program name with args. 2784 set dummy gcc; ac_word=$2 2785 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2786 printf %s "checking for $ac_word... " >&6; } 2787 if test ${ac_cv_prog_ac_ct_CC+y} 2788 then : 2789 printf %s "(cached) " >&6 2790 else case e in #( 2791 e) if test -n "$ac_ct_CC"; then 2792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2793 else 2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2795 for as_dir in $PATH 2796 do 2797 IFS=$as_save_IFS 2798 case $as_dir in #((( 2799 '') as_dir=./ ;; 2800 */) ;; 2801 *) as_dir=$as_dir/ ;; 2802 esac 2803 for ac_exec_ext in '' $ac_executable_extensions; do 2804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2805 ac_cv_prog_ac_ct_CC="gcc" 2806 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2807 break 2 2808 fi 2809 done 2810 done 2811 IFS=$as_save_IFS 2812 2813 fi ;; 2814 esac 2815 fi 2816 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2817 if test -n "$ac_ct_CC"; then 2818 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2819 printf '%s\n' "$ac_ct_CC" >&6; } 2820 else 2821 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2822 printf '%s\n' "no" >&6; } 2823 fi 2824 2825 if test "x$ac_ct_CC" = x; then 2826 CC="" 2827 else 2828 case $cross_compiling:$ac_tool_warned in 2829 yes:) 2830 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2831 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2832 ac_tool_warned=yes ;; 2833 esac 2834 CC=$ac_ct_CC 2835 fi 2836 else 2837 CC="$ac_cv_prog_CC" 2838 fi 2839 2840 if test -z "$CC"; then 2841 if test -n "$ac_tool_prefix"; then 2842 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2843 set dummy ${ac_tool_prefix}cc; ac_word=$2 2844 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2845 printf %s "checking for $ac_word... " >&6; } 2846 if test ${ac_cv_prog_CC+y} 2847 then : 2848 printf %s "(cached) " >&6 2849 else case e in #( 2850 e) if test -n "$CC"; then 2851 ac_cv_prog_CC="$CC" # Let the user override the test. 2852 else 2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2854 for as_dir in $PATH 2855 do 2856 IFS=$as_save_IFS 2857 case $as_dir in #((( 2858 '') as_dir=./ ;; 2859 */) ;; 2860 *) as_dir=$as_dir/ ;; 2861 esac 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2864 ac_cv_prog_CC="${ac_tool_prefix}cc" 2865 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2866 break 2 2867 fi 2868 done 2869 done 2870 IFS=$as_save_IFS 2871 2872 fi ;; 2873 esac 2874 fi 2875 CC=$ac_cv_prog_CC 2876 if test -n "$CC"; then 2877 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2878 printf '%s\n' "$CC" >&6; } 2879 else 2880 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2881 printf '%s\n' "no" >&6; } 2882 fi 2883 2884 2885 fi 2886 fi 2887 if test -z "$CC"; then 2888 # Extract the first word of "cc", so it can be a program name with args. 2889 set dummy cc; ac_word=$2 2890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2891 printf %s "checking for $ac_word... " >&6; } 2892 if test ${ac_cv_prog_CC+y} 2893 then : 2894 printf %s "(cached) " >&6 2895 else case e in #( 2896 e) if test -n "$CC"; then 2897 ac_cv_prog_CC="$CC" # Let the user override the test. 2898 else 2899 ac_prog_rejected=no 2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901 for as_dir in $PATH 2902 do 2903 IFS=$as_save_IFS 2904 case $as_dir in #((( 2905 '') as_dir=./ ;; 2906 */) ;; 2907 *) as_dir=$as_dir/ ;; 2908 esac 2909 for ac_exec_ext in '' $ac_executable_extensions; do 2910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2911 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2912 ac_prog_rejected=yes 2913 continue 2914 fi 2915 ac_cv_prog_CC="cc" 2916 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2917 break 2 2918 fi 2919 done 2920 done 2921 IFS=$as_save_IFS 2922 2923 if test $ac_prog_rejected = yes; then 2924 # We found a bogon in the path, so make sure we never use it. 2925 set dummy $ac_cv_prog_CC 2926 shift 2927 if test $# != 0; then 2928 # We chose a different compiler from the bogus one. 2929 # However, it has the same basename, so the bogon will be chosen 2930 # first if we set CC to just the basename; use the full file name. 2931 shift 2932 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2933 fi 2934 fi 2935 fi ;; 2936 esac 2937 fi 2938 CC=$ac_cv_prog_CC 2939 if test -n "$CC"; then 2940 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2941 printf '%s\n' "$CC" >&6; } 2942 else 2943 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2944 printf '%s\n' "no" >&6; } 2945 fi 2946 2947 2948 fi 2949 if test -z "$CC"; then 2950 if test -n "$ac_tool_prefix"; then 2951 for ac_prog in cl.exe 2952 do 2953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2956 printf %s "checking for $ac_word... " >&6; } 2957 if test ${ac_cv_prog_CC+y} 2958 then : 2959 printf %s "(cached) " >&6 2960 else case e in #( 2961 e) if test -n "$CC"; then 2962 ac_cv_prog_CC="$CC" # Let the user override the test. 2963 else 2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2965 for as_dir in $PATH 2966 do 2967 IFS=$as_save_IFS 2968 case $as_dir in #((( 2969 '') as_dir=./ ;; 2970 */) ;; 2971 *) as_dir=$as_dir/ ;; 2972 esac 2973 for ac_exec_ext in '' $ac_executable_extensions; do 2974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2976 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2977 break 2 2978 fi 2979 done 2980 done 2981 IFS=$as_save_IFS 2982 2983 fi ;; 2984 esac 2985 fi 2986 CC=$ac_cv_prog_CC 2987 if test -n "$CC"; then 2988 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2989 printf '%s\n' "$CC" >&6; } 2990 else 2991 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2992 printf '%s\n' "no" >&6; } 2993 fi 2994 2995 2996 test -n "$CC" && break 2997 done 2998 fi 2999 if test -z "$CC"; then 3000 ac_ct_CC=$CC 3001 for ac_prog in cl.exe 3002 do 3003 # Extract the first word of "$ac_prog", so it can be a program name with args. 3004 set dummy $ac_prog; ac_word=$2 3005 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3006 printf %s "checking for $ac_word... " >&6; } 3007 if test ${ac_cv_prog_ac_ct_CC+y} 3008 then : 3009 printf %s "(cached) " >&6 3010 else case e in #( 3011 e) if test -n "$ac_ct_CC"; then 3012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3013 else 3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3015 for as_dir in $PATH 3016 do 3017 IFS=$as_save_IFS 3018 case $as_dir in #((( 3019 '') as_dir=./ ;; 3020 */) ;; 3021 *) as_dir=$as_dir/ ;; 3022 esac 3023 for ac_exec_ext in '' $ac_executable_extensions; do 3024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3025 ac_cv_prog_ac_ct_CC="$ac_prog" 3026 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3027 break 2 3028 fi 3029 done 3030 done 3031 IFS=$as_save_IFS 3032 3033 fi ;; 3034 esac 3035 fi 3036 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3037 if test -n "$ac_ct_CC"; then 3038 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3039 printf '%s\n' "$ac_ct_CC" >&6; } 3040 else 3041 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3042 printf '%s\n' "no" >&6; } 3043 fi 3044 3045 3046 test -n "$ac_ct_CC" && break 3047 done 3048 3049 if test "x$ac_ct_CC" = x; then 3050 CC="" 3051 else 3052 case $cross_compiling:$ac_tool_warned in 3053 yes:) 3054 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3055 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3056 ac_tool_warned=yes ;; 3057 esac 3058 CC=$ac_ct_CC 3059 fi 3060 fi 3061 3062 fi 3063 if test -z "$CC"; then 3064 if test -n "$ac_tool_prefix"; then 3065 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3066 set dummy ${ac_tool_prefix}clang; ac_word=$2 3067 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3068 printf %s "checking for $ac_word... " >&6; } 3069 if test ${ac_cv_prog_CC+y} 3070 then : 3071 printf %s "(cached) " >&6 3072 else case e in #( 3073 e) if test -n "$CC"; then 3074 ac_cv_prog_CC="$CC" # Let the user override the test. 3075 else 3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3077 for as_dir in $PATH 3078 do 3079 IFS=$as_save_IFS 3080 case $as_dir in #((( 3081 '') as_dir=./ ;; 3082 */) ;; 3083 *) as_dir=$as_dir/ ;; 3084 esac 3085 for ac_exec_ext in '' $ac_executable_extensions; do 3086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3087 ac_cv_prog_CC="${ac_tool_prefix}clang" 3088 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3089 break 2 3090 fi 3091 done 3092 done 3093 IFS=$as_save_IFS 3094 3095 fi ;; 3096 esac 3097 fi 3098 CC=$ac_cv_prog_CC 3099 if test -n "$CC"; then 3100 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3101 printf '%s\n' "$CC" >&6; } 3102 else 3103 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3104 printf '%s\n' "no" >&6; } 3105 fi 3106 3107 3108 fi 3109 if test -z "$ac_cv_prog_CC"; then 3110 ac_ct_CC=$CC 3111 # Extract the first word of "clang", so it can be a program name with args. 3112 set dummy clang; ac_word=$2 3113 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3114 printf %s "checking for $ac_word... " >&6; } 3115 if test ${ac_cv_prog_ac_ct_CC+y} 3116 then : 3117 printf %s "(cached) " >&6 3118 else case e in #( 3119 e) if test -n "$ac_ct_CC"; then 3120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3121 else 3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3123 for as_dir in $PATH 3124 do 3125 IFS=$as_save_IFS 3126 case $as_dir in #((( 3127 '') as_dir=./ ;; 3128 */) ;; 3129 *) as_dir=$as_dir/ ;; 3130 esac 3131 for ac_exec_ext in '' $ac_executable_extensions; do 3132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3133 ac_cv_prog_ac_ct_CC="clang" 3134 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3135 break 2 3136 fi 3137 done 3138 done 3139 IFS=$as_save_IFS 3140 3141 fi ;; 3142 esac 3143 fi 3144 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3145 if test -n "$ac_ct_CC"; then 3146 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3147 printf '%s\n' "$ac_ct_CC" >&6; } 3148 else 3149 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3150 printf '%s\n' "no" >&6; } 3151 fi 3152 3153 if test "x$ac_ct_CC" = x; then 3154 CC="" 3155 else 3156 case $cross_compiling:$ac_tool_warned in 3157 yes:) 3158 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3159 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3160 ac_tool_warned=yes ;; 3161 esac 3162 CC=$ac_ct_CC 3163 fi 3164 else 3165 CC="$ac_cv_prog_CC" 3166 fi 3167 3168 fi 3169 3170 3171 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3172 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 3173 as_fn_error $? "no acceptable C compiler found in \$PATH 3174 See 'config.log' for more details" "$LINENO" 5; } 3175 3176 # Provide some information about the compiler. 3177 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3178 set X $ac_compile 3179 ac_compiler=$2 3180 for ac_option in --version -v -V -qversion -version; do 3181 { { ac_try="$ac_compiler $ac_option >&5" 3182 case "(($ac_try" in 3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3184 *) ac_try_echo=$ac_try;; 3185 esac 3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3187 printf '%s\n' "$ac_try_echo"; } >&5 3188 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3189 ac_status=$? 3190 if test -s conftest.err; then 3191 sed '10a\ 3192 ... rest of stderr output deleted ... 3193 10q' conftest.err >conftest.er1 3194 cat conftest.er1 >&5 3195 fi 3196 rm -f conftest.er1 conftest.err 3197 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3198 test $ac_status = 0; } 3199 done 3200 3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3202 /* end confdefs.h. */ 3203 3204 int 3205 main (void) 3206 { 3207 3208 ; 3209 return 0; 3210 } 3211 _ACEOF 3212 ac_clean_files_save=$ac_clean_files 3213 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3214 # Try to create an executable without -o first, disregard a.out. 3215 # It will help us diagnose broken compilers, and finding out an intuition 3216 # of exeext. 3217 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3218 printf %s "checking whether the C compiler works... " >&6; } 3219 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3220 3221 # The possible output files: 3222 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3223 3224 ac_rmfiles= 3225 for ac_file in $ac_files 3226 do 3227 case $ac_file in 3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3229 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3230 esac 3231 done 3232 rm -f $ac_rmfiles 3233 3234 if { { ac_try="$ac_link_default" 3235 case "(($ac_try" in 3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3237 *) ac_try_echo=$ac_try;; 3238 esac 3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3240 printf '%s\n' "$ac_try_echo"; } >&5 3241 (eval "$ac_link_default") 2>&5 3242 ac_status=$? 3243 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3244 test $ac_status = 0; } 3245 then : 3246 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3247 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3248 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3249 # so that the user can short-circuit this test for compilers unknown to 3250 # Autoconf. 3251 for ac_file in $ac_files '' 3252 do 3253 test -f "$ac_file" || continue 3254 case $ac_file in 3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3256 ;; 3257 [ab].out ) 3258 # We found the default executable, but exeext='' is most 3259 # certainly right. 3260 break;; 3261 *.* ) 3262 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3263 then :; else 3264 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3265 fi 3266 # We set ac_cv_exeext here because the later test for it is not 3267 # safe: cross compilers may not add the suffix if given an '-o' 3268 # argument, so we may need to know it at that point already. 3269 # Even if this section looks crufty: it has the advantage of 3270 # actually working. 3271 break;; 3272 * ) 3273 break;; 3274 esac 3275 done 3276 test "$ac_cv_exeext" = no && ac_cv_exeext= 3277 3278 else case e in #( 3279 e) ac_file='' ;; 3280 esac 3281 fi 3282 if test -z "$ac_file" 3283 then : 3284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3285 printf '%s\n' "no" >&6; } 3286 printf '%s\n' "$as_me: failed program was:" >&5 3287 sed 's/^/| /' conftest.$ac_ext >&5 3288 3289 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3290 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 3291 as_fn_error 77 "C compiler cannot create executables 3292 See 'config.log' for more details" "$LINENO" 5; } 3293 else case e in #( 3294 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3295 printf '%s\n' "yes" >&6; } ;; 3296 esac 3297 fi 3298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3299 printf %s "checking for C compiler default output file name... " >&6; } 3300 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3301 printf '%s\n' "$ac_file" >&6; } 3302 ac_exeext=$ac_cv_exeext 3303 3304 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3305 ac_clean_files=$ac_clean_files_save 3306 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3307 printf %s "checking for suffix of executables... " >&6; } 3308 if { { ac_try="$ac_link" 3309 case "(($ac_try" in 3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3311 *) ac_try_echo=$ac_try;; 3312 esac 3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3314 printf '%s\n' "$ac_try_echo"; } >&5 3315 (eval "$ac_link") 2>&5 3316 ac_status=$? 3317 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3318 test $ac_status = 0; } 3319 then : 3320 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3321 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3322 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3323 # 'rm'. 3324 for ac_file in conftest.exe conftest conftest.*; do 3325 test -f "$ac_file" || continue 3326 case $ac_file in 3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3329 break;; 3330 * ) break;; 3331 esac 3332 done 3333 else case e in #( 3334 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3335 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 3336 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3337 See 'config.log' for more details" "$LINENO" 5; } ;; 3338 esac 3339 fi 3340 rm -f conftest conftest$ac_cv_exeext 3341 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3342 printf '%s\n' "$ac_cv_exeext" >&6; } 3343 3344 rm -f conftest.$ac_ext 3345 EXEEXT=$ac_cv_exeext 3346 ac_exeext=$EXEEXT 3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3348 /* end confdefs.h. */ 3349 #include <stdio.h> 3350 int 3351 main (void) 3352 { 3353 FILE *f = fopen ("conftest.out", "w"); 3354 if (!f) 3355 return 1; 3356 return ferror (f) || fclose (f) != 0; 3357 3358 ; 3359 return 0; 3360 } 3361 _ACEOF 3362 ac_clean_files="$ac_clean_files conftest.out" 3363 # Check that the compiler produces executables we can run. If not, either 3364 # the compiler is broken, or we cross compile. 3365 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3366 printf %s "checking whether we are cross compiling... " >&6; } 3367 if test "$cross_compiling" != yes; then 3368 { { ac_try="$ac_link" 3369 case "(($ac_try" in 3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3371 *) ac_try_echo=$ac_try;; 3372 esac 3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3374 printf '%s\n' "$ac_try_echo"; } >&5 3375 (eval "$ac_link") 2>&5 3376 ac_status=$? 3377 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3378 test $ac_status = 0; } 3379 if { ac_try='./conftest$ac_cv_exeext' 3380 { { case "(($ac_try" in 3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3382 *) ac_try_echo=$ac_try;; 3383 esac 3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3385 printf '%s\n' "$ac_try_echo"; } >&5 3386 (eval "$ac_try") 2>&5 3387 ac_status=$? 3388 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3389 test $ac_status = 0; }; }; then 3390 cross_compiling=no 3391 else 3392 if test "$cross_compiling" = maybe; then 3393 cross_compiling=yes 3394 else 3395 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3396 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 3397 as_fn_error 77 "cannot run C compiled programs. 3398 If you meant to cross compile, use '--host'. 3399 See 'config.log' for more details" "$LINENO" 5; } 3400 fi 3401 fi 3402 fi 3403 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3404 printf '%s\n' "$cross_compiling" >&6; } 3405 3406 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3407 conftest.o conftest.obj conftest.out 3408 ac_clean_files=$ac_clean_files_save 3409 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3410 printf %s "checking for suffix of object files... " >&6; } 3411 if test ${ac_cv_objext+y} 3412 then : 3413 printf %s "(cached) " >&6 3414 else case e in #( 3415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416 /* end confdefs.h. */ 3417 3418 int 3419 main (void) 3420 { 3421 3422 ; 3423 return 0; 3424 } 3425 _ACEOF 3426 rm -f conftest.o conftest.obj 3427 if { { ac_try="$ac_compile" 3428 case "(($ac_try" in 3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3430 *) ac_try_echo=$ac_try;; 3431 esac 3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3433 printf '%s\n' "$ac_try_echo"; } >&5 3434 (eval "$ac_compile") 2>&5 3435 ac_status=$? 3436 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3437 test $ac_status = 0; } 3438 then : 3439 for ac_file in conftest.o conftest.obj conftest.*; do 3440 test -f "$ac_file" || continue; 3441 case $ac_file in 3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3443 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3444 break;; 3445 esac 3446 done 3447 else case e in #( 3448 e) printf '%s\n' "$as_me: failed program was:" >&5 3449 sed 's/^/| /' conftest.$ac_ext >&5 3450 3451 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3452 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 3453 as_fn_error $? "cannot compute suffix of object files: cannot compile 3454 See 'config.log' for more details" "$LINENO" 5; } ;; 3455 esac 3456 fi 3457 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3458 esac 3459 fi 3460 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3461 printf '%s\n' "$ac_cv_objext" >&6; } 3462 OBJEXT=$ac_cv_objext 3463 ac_objext=$OBJEXT 3464 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3465 printf %s "checking whether the compiler supports GNU C... " >&6; } 3466 if test ${ac_cv_c_compiler_gnu+y} 3467 then : 3468 printf %s "(cached) " >&6 3469 else case e in #( 3470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3471 /* end confdefs.h. */ 3472 3473 int 3474 main (void) 3475 { 3476 #ifndef __GNUC__ 3477 choke me 3478 #endif 3479 3480 ; 3481 return 0; 3482 } 3483 _ACEOF 3484 if ac_fn_c_try_compile "$LINENO" 3485 then : 3486 ac_compiler_gnu=yes 3487 else case e in #( 3488 e) ac_compiler_gnu=no ;; 3489 esac 3490 fi 3491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3492 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3493 ;; 3494 esac 3495 fi 3496 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3497 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; } 3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3499 3500 if test $ac_compiler_gnu = yes; then 3501 GCC=yes 3502 else 3503 GCC= 3504 fi 3505 ac_test_CFLAGS=${CFLAGS+y} 3506 ac_save_CFLAGS=$CFLAGS 3507 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3508 printf %s "checking whether $CC accepts -g... " >&6; } 3509 if test ${ac_cv_prog_cc_g+y} 3510 then : 3511 printf %s "(cached) " >&6 3512 else case e in #( 3513 e) ac_save_c_werror_flag=$ac_c_werror_flag 3514 ac_c_werror_flag=yes 3515 ac_cv_prog_cc_g=no 3516 CFLAGS="-g" 3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3518 /* end confdefs.h. */ 3519 3520 int 3521 main (void) 3522 { 3523 3524 ; 3525 return 0; 3526 } 3527 _ACEOF 3528 if ac_fn_c_try_compile "$LINENO" 3529 then : 3530 ac_cv_prog_cc_g=yes 3531 else case e in #( 3532 e) CFLAGS="" 3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3534 /* end confdefs.h. */ 3535 3536 int 3537 main (void) 3538 { 3539 3540 ; 3541 return 0; 3542 } 3543 _ACEOF 3544 if ac_fn_c_try_compile "$LINENO" 3545 then : 3546 3547 else case e in #( 3548 e) ac_c_werror_flag=$ac_save_c_werror_flag 3549 CFLAGS="-g" 3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3551 /* end confdefs.h. */ 3552 3553 int 3554 main (void) 3555 { 3556 3557 ; 3558 return 0; 3559 } 3560 _ACEOF 3561 if ac_fn_c_try_compile "$LINENO" 3562 then : 3563 ac_cv_prog_cc_g=yes 3564 fi 3565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3566 esac 3567 fi 3568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3569 esac 3570 fi 3571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3572 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3573 esac 3574 fi 3575 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3576 printf '%s\n' "$ac_cv_prog_cc_g" >&6; } 3577 if test $ac_test_CFLAGS; then 3578 CFLAGS=$ac_save_CFLAGS 3579 elif test $ac_cv_prog_cc_g = yes; then 3580 if test "$GCC" = yes; then 3581 CFLAGS="-g -O2" 3582 else 3583 CFLAGS="-g" 3584 fi 3585 else 3586 if test "$GCC" = yes; then 3587 CFLAGS="-O2" 3588 else 3589 CFLAGS= 3590 fi 3591 fi 3592 ac_prog_cc_stdc=no 3593 if test x$ac_prog_cc_stdc = xno 3594 then : 3595 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5 3596 printf %s "checking for $CC option to enable C23 features... " >&6; } 3597 if test ${ac_cv_prog_cc_c23+y} 3598 then : 3599 printf %s "(cached) " >&6 3600 else case e in #( 3601 e) ac_cv_prog_cc_c23=no 3602 ac_save_CC=$CC 3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3604 /* end confdefs.h. */ 3605 $ac_c_conftest_c23_program 3606 _ACEOF 3607 for ac_arg in '' -std=gnu23 3608 do 3609 CC="$ac_save_CC $ac_arg" 3610 if ac_fn_c_try_compile "$LINENO" 3611 then : 3612 ac_cv_prog_cc_c23=$ac_arg 3613 fi 3614 rm -f core conftest.err conftest.$ac_objext conftest.beam 3615 test "x$ac_cv_prog_cc_c23" != "xno" && break 3616 done 3617 rm -f conftest.$ac_ext 3618 CC=$ac_save_CC ;; 3619 esac 3620 fi 3621 3622 if test "x$ac_cv_prog_cc_c23" = xno 3623 then : 3624 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3625 printf '%s\n' "unsupported" >&6; } 3626 else case e in #( 3627 e) if test "x$ac_cv_prog_cc_c23" = x 3628 then : 3629 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3630 printf '%s\n' "none needed" >&6; } 3631 else case e in #( 3632 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5 3633 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; } 3634 CC="$CC $ac_cv_prog_cc_c23" ;; 3635 esac 3636 fi 3637 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23 3638 ac_prog_cc_stdc=c23 ;; 3639 esac 3640 fi 3641 fi 3642 if test x$ac_prog_cc_stdc = xno 3643 then : 3644 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3645 printf %s "checking for $CC option to enable C11 features... " >&6; } 3646 if test ${ac_cv_prog_cc_c11+y} 3647 then : 3648 printf %s "(cached) " >&6 3649 else case e in #( 3650 e) ac_cv_prog_cc_c11=no 3651 ac_save_CC=$CC 3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3653 /* end confdefs.h. */ 3654 $ac_c_conftest_c11_program 3655 _ACEOF 3656 for ac_arg in '' -std=gnu11 -std:c11 3657 do 3658 CC="$ac_save_CC $ac_arg" 3659 if ac_fn_c_try_compile "$LINENO" 3660 then : 3661 ac_cv_prog_cc_c11=$ac_arg 3662 fi 3663 rm -f core conftest.err conftest.$ac_objext conftest.beam 3664 test "x$ac_cv_prog_cc_c11" != "xno" && break 3665 done 3666 rm -f conftest.$ac_ext 3667 CC=$ac_save_CC ;; 3668 esac 3669 fi 3670 3671 if test "x$ac_cv_prog_cc_c11" = xno 3672 then : 3673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3674 printf '%s\n' "unsupported" >&6; } 3675 else case e in #( 3676 e) if test "x$ac_cv_prog_cc_c11" = x 3677 then : 3678 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3679 printf '%s\n' "none needed" >&6; } 3680 else case e in #( 3681 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3682 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; } 3683 CC="$CC $ac_cv_prog_cc_c11" ;; 3684 esac 3685 fi 3686 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3687 ac_prog_cc_stdc=c11 ;; 3688 esac 3689 fi 3690 fi 3691 if test x$ac_prog_cc_stdc = xno 3692 then : 3693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3694 printf %s "checking for $CC option to enable C99 features... " >&6; } 3695 if test ${ac_cv_prog_cc_c99+y} 3696 then : 3697 printf %s "(cached) " >&6 3698 else case e in #( 3699 e) ac_cv_prog_cc_c99=no 3700 ac_save_CC=$CC 3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3702 /* end confdefs.h. */ 3703 $ac_c_conftest_c99_program 3704 _ACEOF 3705 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3706 do 3707 CC="$ac_save_CC $ac_arg" 3708 if ac_fn_c_try_compile "$LINENO" 3709 then : 3710 ac_cv_prog_cc_c99=$ac_arg 3711 fi 3712 rm -f core conftest.err conftest.$ac_objext conftest.beam 3713 test "x$ac_cv_prog_cc_c99" != "xno" && break 3714 done 3715 rm -f conftest.$ac_ext 3716 CC=$ac_save_CC ;; 3717 esac 3718 fi 3719 3720 if test "x$ac_cv_prog_cc_c99" = xno 3721 then : 3722 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3723 printf '%s\n' "unsupported" >&6; } 3724 else case e in #( 3725 e) if test "x$ac_cv_prog_cc_c99" = x 3726 then : 3727 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3728 printf '%s\n' "none needed" >&6; } 3729 else case e in #( 3730 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3731 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; } 3732 CC="$CC $ac_cv_prog_cc_c99" ;; 3733 esac 3734 fi 3735 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3736 ac_prog_cc_stdc=c99 ;; 3737 esac 3738 fi 3739 fi 3740 if test x$ac_prog_cc_stdc = xno 3741 then : 3742 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3743 printf %s "checking for $CC option to enable C89 features... " >&6; } 3744 if test ${ac_cv_prog_cc_c89+y} 3745 then : 3746 printf %s "(cached) " >&6 3747 else case e in #( 3748 e) ac_cv_prog_cc_c89=no 3749 ac_save_CC=$CC 3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3751 /* end confdefs.h. */ 3752 $ac_c_conftest_c89_program 3753 _ACEOF 3754 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3755 do 3756 CC="$ac_save_CC $ac_arg" 3757 if ac_fn_c_try_compile "$LINENO" 3758 then : 3759 ac_cv_prog_cc_c89=$ac_arg 3760 fi 3761 rm -f core conftest.err conftest.$ac_objext conftest.beam 3762 test "x$ac_cv_prog_cc_c89" != "xno" && break 3763 done 3764 rm -f conftest.$ac_ext 3765 CC=$ac_save_CC ;; 3766 esac 3767 fi 3768 3769 if test "x$ac_cv_prog_cc_c89" = xno 3770 then : 3771 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3772 printf '%s\n' "unsupported" >&6; } 3773 else case e in #( 3774 e) if test "x$ac_cv_prog_cc_c89" = x 3775 then : 3776 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3777 printf '%s\n' "none needed" >&6; } 3778 else case e in #( 3779 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3780 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; } 3781 CC="$CC $ac_cv_prog_cc_c89" ;; 3782 esac 3783 fi 3784 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3785 ac_prog_cc_stdc=c89 ;; 3786 esac 3787 fi 3788 fi 3789 3790 ac_ext=c 3791 ac_cpp='$CPP $CPPFLAGS' 3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3795 3796 3797 ac_ext=c 3798 ac_cpp='$CPP $CPPFLAGS' 3799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3802 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3803 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3804 if test ${am_cv_prog_cc_c_o+y} 3805 then : 3806 printf %s "(cached) " >&6 3807 else case e in #( 3808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3809 /* end confdefs.h. */ 3810 3811 int 3812 main (void) 3813 { 3814 3815 ; 3816 return 0; 3817 } 3818 _ACEOF 3819 # Make sure it works both with $CC and with simple cc. 3820 # Following AC_PROG_CC_C_O, we do the test twice because some 3821 # compilers refuse to overwrite an existing .o file with -o, 3822 # though they will create one. 3823 am_cv_prog_cc_c_o=yes 3824 for am_i in 1 2; do 3825 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3826 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3827 ac_status=$? 3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3829 (exit $ac_status); } \ 3830 && test -f conftest2.$ac_objext; then 3831 : OK 3832 else 3833 am_cv_prog_cc_c_o=no 3834 break 3835 fi 3836 done 3837 # aligned with autoconf, so not including core; see bug#72225. 3838 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 3839 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 3840 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 3841 unset am_i ;; 3842 esac 3843 fi 3844 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3845 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; } 3846 if test "$am_cv_prog_cc_c_o" != yes; then 3847 # Losing compiler, so override with the script. 3848 # FIXME: It is wrong to rewrite CC. 3849 # But if we don't then we get into trouble of one sort or another. 3850 # A longer-term fix would be to have automake use am__CC in this case, 3851 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3852 CC="$am_aux_dir/compile $CC" 3853 fi 3854 ac_ext=c 3855 ac_cpp='$CPP $CPPFLAGS' 3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3859 3860 3861 3862 ac_header= ac_cache= 3863 for ac_item in $ac_header_c_list 3864 do 3865 if test $ac_cache; then 3866 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3867 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3868 printf '%s\n' "#define $ac_item 1" >> confdefs.h 3869 fi 3870 ac_header= ac_cache= 3871 elif test $ac_header; then 3872 ac_cache=$ac_item 3873 else 3874 ac_header=$ac_item 3875 fi 3876 done 3877 3878 3879 3880 3881 3882 3883 3884 3885 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3886 then : 3887 3888 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h 3889 3890 fi 3891 3892 3893 3894 3895 3896 3897 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3898 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3899 if test ${ac_cv_safe_to_define___extensions__+y} 3900 then : 3901 printf %s "(cached) " >&6 3902 else case e in #( 3903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3904 /* end confdefs.h. */ 3905 3906 # define __EXTENSIONS__ 1 3907 $ac_includes_default 3908 int 3909 main (void) 3910 { 3911 3912 ; 3913 return 0; 3914 } 3915 _ACEOF 3916 if ac_fn_c_try_compile "$LINENO" 3917 then : 3918 ac_cv_safe_to_define___extensions__=yes 3919 else case e in #( 3920 e) ac_cv_safe_to_define___extensions__=no ;; 3921 esac 3922 fi 3923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3924 esac 3925 fi 3926 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3927 printf '%s\n' "$ac_cv_safe_to_define___extensions__" >&6; } 3928 3929 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3930 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3931 if test ${ac_cv_should_define__xopen_source+y} 3932 then : 3933 printf %s "(cached) " >&6 3934 else case e in #( 3935 e) ac_cv_should_define__xopen_source=no 3936 if test $ac_cv_header_wchar_h = yes 3937 then : 3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3939 /* end confdefs.h. */ 3940 3941 #include <wchar.h> 3942 mbstate_t x; 3943 int 3944 main (void) 3945 { 3946 3947 ; 3948 return 0; 3949 } 3950 _ACEOF 3951 if ac_fn_c_try_compile "$LINENO" 3952 then : 3953 3954 else case e in #( 3955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3956 /* end confdefs.h. */ 3957 3958 #define _XOPEN_SOURCE 500 3959 #include <wchar.h> 3960 mbstate_t x; 3961 int 3962 main (void) 3963 { 3964 3965 ; 3966 return 0; 3967 } 3968 _ACEOF 3969 if ac_fn_c_try_compile "$LINENO" 3970 then : 3971 ac_cv_should_define__xopen_source=yes 3972 fi 3973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3974 esac 3975 fi 3976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3977 fi ;; 3978 esac 3979 fi 3980 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3981 printf '%s\n' "$ac_cv_should_define__xopen_source" >&6; } 3982 3983 printf '%s\n' "#define _ALL_SOURCE 1" >>confdefs.h 3984 3985 printf '%s\n' "#define _COSMO_SOURCE 1" >>confdefs.h 3986 3987 printf '%s\n' "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3988 3989 printf '%s\n' "#define _GNU_SOURCE 1" >>confdefs.h 3990 3991 printf '%s\n' "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3992 3993 printf '%s\n' "#define _NETBSD_SOURCE 1" >>confdefs.h 3994 3995 printf '%s\n' "#define _OPENBSD_SOURCE 1" >>confdefs.h 3996 3997 printf '%s\n' "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3998 3999 printf '%s\n' "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4000 4001 printf '%s\n' "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4002 4003 printf '%s\n' "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4004 4005 printf '%s\n' "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 4006 4007 printf '%s\n' "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4008 4009 printf '%s\n' "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4010 4011 printf '%s\n' "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4012 4013 printf '%s\n' "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4014 4015 printf '%s\n' "#define _TANDEM_SOURCE 1" >>confdefs.h 4016 4017 if test $ac_cv_header_minix_config_h = yes 4018 then : 4019 MINIX=yes 4020 printf '%s\n' "#define _MINIX 1" >>confdefs.h 4021 4022 printf '%s\n' "#define _POSIX_SOURCE 1" >>confdefs.h 4023 4024 printf '%s\n' "#define _POSIX_1_SOURCE 2" >>confdefs.h 4025 4026 else case e in #( 4027 e) MINIX= ;; 4028 esac 4029 fi 4030 if test $ac_cv_safe_to_define___extensions__ = yes 4031 then : 4032 printf '%s\n' "#define __EXTENSIONS__ 1" >>confdefs.h 4033 4034 fi 4035 if test $ac_cv_should_define__xopen_source = yes 4036 then : 4037 printf '%s\n' "#define _XOPEN_SOURCE 500" >>confdefs.h 4038 4039 fi 4040 4041 4042 # Initialize Automake 4043 am__api_version='1.18' 4044 4045 4046 # Find a good install program. We prefer a C program (faster), 4047 # so one script is as good as another. But avoid the broken or 4048 # incompatible versions: 4049 # SysV /etc/install, /usr/sbin/install 4050 # SunOS /usr/etc/install 4051 # IRIX /sbin/install 4052 # AIX /bin/install 4053 # AmigaOS /C/install, which installs bootblocks on floppy discs 4054 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4055 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 4056 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4057 # OS/2's system install, which has a completely different semantic 4058 # ./install, which can be erroneously created by make from ./install.sh. 4059 # Reject install programs that cannot install multiple files. 4060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4061 printf %s "checking for a BSD-compatible install... " >&6; } 4062 if test -z "$INSTALL"; then 4063 if test ${ac_cv_path_install+y} 4064 then : 4065 printf %s "(cached) " >&6 4066 else case e in #( 4067 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4068 for as_dir in $PATH 4069 do 4070 IFS=$as_save_IFS 4071 case $as_dir in #((( 4072 '') as_dir=./ ;; 4073 */) ;; 4074 *) as_dir=$as_dir/ ;; 4075 esac 4076 # Account for fact that we put trailing slashes in our PATH walk. 4077 case $as_dir in #(( 4078 ./ | /[cC]/* | \ 4079 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4080 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4081 /usr/ucb/* ) ;; 4082 *) 4083 # OSF/1 and SCO ODT 3.0 have their own names for install. 4084 # Don't use installbsd from OSF/1 since it installs stuff as root 4085 # by default. 4086 for ac_prog in ginstall scoinst install; do 4087 for ac_exec_ext in '' $ac_executable_extensions; do 4088 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4089 if test $ac_prog = install && 4090 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4091 # AIX install. It has an incompatible calling convention. 4092 : 4093 elif test $ac_prog = install && 4094 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4095 # program-specific install script used by HP pwplus--don't use. 4096 : 4097 else 4098 rm -rf conftest.one conftest.two conftest.dir 4099 echo one > conftest.one 4100 echo two > conftest.two 4101 mkdir conftest.dir 4102 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4103 test -s conftest.one && test -s conftest.two && 4104 test -s conftest.dir/conftest.one && 4105 test -s conftest.dir/conftest.two 4106 then 4107 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4108 break 3 4109 fi 4110 fi 4111 fi 4112 done 4113 done 4114 ;; 4115 esac 4116 4117 done 4118 IFS=$as_save_IFS 4119 4120 rm -rf conftest.one conftest.two conftest.dir 4121 ;; 4122 esac 4123 fi 4124 if test ${ac_cv_path_install+y}; then 4125 INSTALL=$ac_cv_path_install 4126 else 4127 # As a last resort, use the slow shell script. Don't cache a 4128 # value for INSTALL within a source directory, because that will 4129 # break other packages using the cache if that directory is 4130 # removed, or if the value is a relative name. 4131 INSTALL=$ac_install_sh 4132 fi 4133 fi 4134 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4135 printf '%s\n' "$INSTALL" >&6; } 4136 4137 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4138 # It thinks the first close brace ends the variable substitution. 4139 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4140 4141 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4142 4143 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4144 4145 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4146 printf %s "checking whether sleep supports fractional seconds... " >&6; } 4147 if test ${am_cv_sleep_fractional_seconds+y} 4148 then : 4149 printf %s "(cached) " >&6 4150 else case e in #( 4151 e) if sleep 0.001 2>/dev/null 4152 then : 4153 am_cv_sleep_fractional_seconds=yes 4154 else case e in #( 4155 e) am_cv_sleep_fractional_seconds=no ;; 4156 esac 4157 fi 4158 ;; 4159 esac 4160 fi 4161 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4162 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; } 4163 4164 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 4165 printf %s "checking filesystem timestamp resolution... " >&6; } 4166 if test ${am_cv_filesystem_timestamp_resolution+y} 4167 then : 4168 printf %s "(cached) " >&6 4169 else case e in #( 4170 e) # Default to the worst case. 4171 am_cv_filesystem_timestamp_resolution=2 4172 4173 # Only try to go finer than 1 sec if sleep can do it. 4174 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 4175 # - 1 sec is not much of a win compared to 2 sec, and 4176 # - it takes 2 seconds to perform the test whether 1 sec works. 4177 # 4178 # Instead, just use the default 2s on platforms that have 1s resolution, 4179 # accept the extra 1s delay when using $sleep in the Automake tests, in 4180 # exchange for not incurring the 2s delay for running the test for all 4181 # packages. 4182 # 4183 am_try_resolutions= 4184 if test "$am_cv_sleep_fractional_seconds" = yes; then 4185 # Even a millisecond often causes a bunch of false positives, 4186 # so just try a hundredth of a second. The time saved between .001 and 4187 # .01 is not terribly consequential. 4188 am_try_resolutions="0.01 0.1 $am_try_resolutions" 4189 fi 4190 4191 # In order to catch current-generation FAT out, we must *modify* files 4192 # that already exist; the *creation* timestamp is finer. Use names 4193 # that make ls -t sort them differently when they have equal 4194 # timestamps than when they have distinct timestamps, keeping 4195 # in mind that ls -t prints the *newest* file first. 4196 rm -f conftest.ts? 4197 : > conftest.ts1 4198 : > conftest.ts2 4199 : > conftest.ts3 4200 4201 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 4202 # clobber the current shell's arguments. (Outer-level square brackets 4203 # are removed by m4; they're present so that m4 does not expand 4204 # <dollar><star>; be careful, easy to get confused.) 4205 if ( 4206 set X `ls -t conftest.ts[12]` && 4207 { 4208 test "$*" != "X conftest.ts1 conftest.ts2" || 4209 test "$*" != "X conftest.ts2 conftest.ts1"; 4210 } 4211 ); then :; else 4212 # If neither matched, then we have a broken ls. This can happen 4213 # if, for instance, CONFIG_SHELL is bash and it inherits a 4214 # broken ls alias from the environment. This has actually 4215 # happened. Such a system could not be considered "sane". 4216 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4217 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4218 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4219 as_fn_error $? "ls -t produces unexpected output. 4220 Make sure there is not a broken ls alias in your environment. 4221 See 'config.log' for more details" "$LINENO" 5; } 4222 fi 4223 4224 for am_try_res in $am_try_resolutions; do 4225 # Any one fine-grained sleep might happen to cross the boundary 4226 # between two values of a coarser actual resolution, but if we do 4227 # two fine-grained sleeps in a row, at least one of them will fall 4228 # entirely within a coarse interval. 4229 echo alpha > conftest.ts1 4230 sleep $am_try_res 4231 echo beta > conftest.ts2 4232 sleep $am_try_res 4233 echo gamma > conftest.ts3 4234 4235 # We assume that 'ls -t' will make use of high-resolution 4236 # timestamps if the operating system supports them at all. 4237 if (set X `ls -t conftest.ts?` && 4238 test "$2" = conftest.ts3 && 4239 test "$3" = conftest.ts2 && 4240 test "$4" = conftest.ts1); then 4241 # 4242 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4243 # because we don't need to test make. 4244 make_ok=true 4245 if test $am_try_res != 1; then 4246 # But if we've succeeded so far with a subsecond resolution, we 4247 # have one more thing to check: make. It can happen that 4248 # everything else supports the subsecond mtimes, but make doesn't; 4249 # notably on macOS, which ships make 3.81 from 2006 (the last one 4250 # released under GPLv2). https://bugs.gnu.org/68808 4251 # 4252 # We test $MAKE if it is defined in the environment, else "make". 4253 # It might get overridden later, but our hope is that in practice 4254 # it does not matter: it is the system "make" which is (by far) 4255 # the most likely to be broken, whereas if the user overrides it, 4256 # probably they did so with a better, or at least not worse, make. 4257 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4258 # 4259 # Create a Makefile (real tab character here): 4260 rm -f conftest.mk 4261 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4262 echo ' touch conftest.ts2' >>conftest.mk 4263 # 4264 # Now, running 4265 # touch conftest.ts1; touch conftest.ts2; make 4266 # should touch ts1 because ts2 is newer. This could happen by luck, 4267 # but most often, it will fail if make's support is insufficient. So 4268 # test for several consecutive successes. 4269 # 4270 # (We reuse conftest.ts[12] because we still want to modify existing 4271 # files, not create new ones, per above.) 4272 n=0 4273 make=${MAKE-make} 4274 until test $n -eq 3; do 4275 echo one > conftest.ts1 4276 sleep $am_try_res 4277 echo two > conftest.ts2 # ts2 should now be newer than ts1 4278 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4279 make_ok=false 4280 break # out of $n loop 4281 fi 4282 n=`expr $n + 1` 4283 done 4284 fi 4285 # 4286 if $make_ok; then 4287 # Everything we know to check worked out, so call this resolution good. 4288 am_cv_filesystem_timestamp_resolution=$am_try_res 4289 break # out of $am_try_res loop 4290 fi 4291 # Otherwise, we'll go on to check the next resolution. 4292 fi 4293 done 4294 rm -f conftest.ts? 4295 # (end _am_filesystem_timestamp_resolution) 4296 ;; 4297 esac 4298 fi 4299 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4300 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; } 4301 4302 # This check should not be cached, as it may vary across builds of 4303 # different projects. 4304 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4305 printf %s "checking whether build environment is sane... " >&6; } 4306 # Reject unsafe characters in $srcdir or the absolute working directory 4307 # name. Accept space and tab only in the latter. 4308 am_lf=' 4309 ' 4310 case `pwd` in 4311 *[\\\"\#\$\&\'\`$am_lf]*) 4312 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4313 printf '%s\n' "no" >&6; } 4314 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4315 esac 4316 case $srcdir in 4317 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4318 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4319 printf '%s\n' "no" >&6; } 4320 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4321 esac 4322 4323 # Do 'set' in a subshell so we don't clobber the current shell's 4324 # arguments. Must try -L first in case configure is actually a 4325 # symlink; some systems play weird games with the mod time of symlinks 4326 # (eg FreeBSD returns the mod time of the symlink's containing 4327 # directory). 4328 am_build_env_is_sane=no 4329 am_has_slept=no 4330 rm -f conftest.file 4331 for am_try in 1 2; do 4332 echo "timestamp, slept: $am_has_slept" > conftest.file 4333 if ( 4334 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4335 if test "$*" = "X"; then 4336 # -L didn't work. 4337 set X `ls -t "$srcdir/configure" conftest.file` 4338 fi 4339 test "$2" = conftest.file 4340 ); then 4341 am_build_env_is_sane=yes 4342 break 4343 fi 4344 # Just in case. 4345 sleep "$am_cv_filesystem_timestamp_resolution" 4346 am_has_slept=yes 4347 done 4348 4349 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4350 printf '%s\n' "$am_build_env_is_sane" >&6; } 4351 if test "$am_build_env_is_sane" = no; then 4352 as_fn_error $? "newly created file is older than distributed files! 4353 Check your system clock" "$LINENO" 5 4354 fi 4355 4356 # If we didn't sleep, we still need to ensure time stamps of config.status and 4357 # generated files are strictly newer. 4358 am_sleep_pid= 4359 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4360 then : 4361 4362 else case e in #( 4363 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4364 am_sleep_pid=$! 4365 ;; 4366 esac 4367 fi 4368 4369 rm -f conftest.file 4370 4371 test "$program_prefix" != NONE && 4372 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4373 # Use a double $ so make ignores it. 4374 test "$program_suffix" != NONE && 4375 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4376 # Double any \ or $. 4377 # By default was 's,x,x', remove it if useless. 4378 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4379 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"` 4380 4381 4382 if test x"${MISSING+set}" != xset; then 4383 MISSING="\${SHELL} '$am_aux_dir/missing'" 4384 fi 4385 # Use eval to expand $SHELL 4386 if eval "$MISSING --is-lightweight"; then 4387 am_missing_run="$MISSING " 4388 else 4389 am_missing_run= 4390 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4391 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4392 fi 4393 4394 if test x"${install_sh+set}" != xset; then 4395 case $am_aux_dir in 4396 *\ * | *\ *) 4397 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4398 *) 4399 install_sh="\${SHELL} $am_aux_dir/install-sh" 4400 esac 4401 fi 4402 4403 # Installed binaries are usually stripped using 'strip' when the user 4404 # run "make install-strip". However 'strip' might not be the right 4405 # tool to use in cross-compilation environments, therefore Automake 4406 # will honor the 'STRIP' environment variable to overrule this program. 4407 if test "$cross_compiling" != no; then 4408 if test -n "$ac_tool_prefix"; then 4409 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4410 set dummy ${ac_tool_prefix}strip; ac_word=$2 4411 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4412 printf %s "checking for $ac_word... " >&6; } 4413 if test ${ac_cv_prog_STRIP+y} 4414 then : 4415 printf %s "(cached) " >&6 4416 else case e in #( 4417 e) if test -n "$STRIP"; then 4418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4419 else 4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4421 for as_dir in $PATH 4422 do 4423 IFS=$as_save_IFS 4424 case $as_dir in #((( 4425 '') as_dir=./ ;; 4426 */) ;; 4427 *) as_dir=$as_dir/ ;; 4428 esac 4429 for ac_exec_ext in '' $ac_executable_extensions; do 4430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4431 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4432 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4433 break 2 4434 fi 4435 done 4436 done 4437 IFS=$as_save_IFS 4438 4439 fi ;; 4440 esac 4441 fi 4442 STRIP=$ac_cv_prog_STRIP 4443 if test -n "$STRIP"; then 4444 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4445 printf '%s\n' "$STRIP" >&6; } 4446 else 4447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4448 printf '%s\n' "no" >&6; } 4449 fi 4450 4451 4452 fi 4453 if test -z "$ac_cv_prog_STRIP"; then 4454 ac_ct_STRIP=$STRIP 4455 # Extract the first word of "strip", so it can be a program name with args. 4456 set dummy strip; ac_word=$2 4457 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4458 printf %s "checking for $ac_word... " >&6; } 4459 if test ${ac_cv_prog_ac_ct_STRIP+y} 4460 then : 4461 printf %s "(cached) " >&6 4462 else case e in #( 4463 e) if test -n "$ac_ct_STRIP"; then 4464 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4465 else 4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4467 for as_dir in $PATH 4468 do 4469 IFS=$as_save_IFS 4470 case $as_dir in #((( 4471 '') as_dir=./ ;; 4472 */) ;; 4473 *) as_dir=$as_dir/ ;; 4474 esac 4475 for ac_exec_ext in '' $ac_executable_extensions; do 4476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4477 ac_cv_prog_ac_ct_STRIP="strip" 4478 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4479 break 2 4480 fi 4481 done 4482 done 4483 IFS=$as_save_IFS 4484 4485 fi ;; 4486 esac 4487 fi 4488 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4489 if test -n "$ac_ct_STRIP"; then 4490 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4491 printf '%s\n' "$ac_ct_STRIP" >&6; } 4492 else 4493 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4494 printf '%s\n' "no" >&6; } 4495 fi 4496 4497 if test "x$ac_ct_STRIP" = x; then 4498 STRIP=":" 4499 else 4500 case $cross_compiling:$ac_tool_warned in 4501 yes:) 4502 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4503 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4504 ac_tool_warned=yes ;; 4505 esac 4506 STRIP=$ac_ct_STRIP 4507 fi 4508 else 4509 STRIP="$ac_cv_prog_STRIP" 4510 fi 4511 4512 fi 4513 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4514 4515 4516 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4517 printf %s "checking for a race-free mkdir -p... " >&6; } 4518 if test -z "$MKDIR_P"; then 4519 if test ${ac_cv_path_mkdir+y} 4520 then : 4521 printf %s "(cached) " >&6 4522 else case e in #( 4523 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4524 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4525 do 4526 IFS=$as_save_IFS 4527 case $as_dir in #((( 4528 '') as_dir=./ ;; 4529 */) ;; 4530 *) as_dir=$as_dir/ ;; 4531 esac 4532 for ac_prog in mkdir gmkdir; do 4533 for ac_exec_ext in '' $ac_executable_extensions; do 4534 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4535 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4536 'mkdir ('*'coreutils) '* | \ 4537 *'BusyBox '* | \ 4538 'mkdir (fileutils) '4.1*) 4539 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4540 break 3;; 4541 esac 4542 done 4543 done 4544 done 4545 IFS=$as_save_IFS 4546 ;; 4547 esac 4548 fi 4549 4550 test -d ./--version && rmdir ./--version 4551 if test ${ac_cv_path_mkdir+y}; then 4552 MKDIR_P="$ac_cv_path_mkdir -p" 4553 else 4554 # As a last resort, use plain mkdir -p, 4555 # in the hope it doesn't have the bugs of ancient mkdir. 4556 MKDIR_P='mkdir -p' 4557 fi 4558 fi 4559 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4560 printf '%s\n' "$MKDIR_P" >&6; } 4561 4562 for ac_prog in gawk mawk nawk awk 'busybox awk' 4563 do 4564 # Extract the first word of "$ac_prog", so it can be a program name with args. 4565 set dummy $ac_prog; ac_word=$2 4566 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4567 printf %s "checking for $ac_word... " >&6; } 4568 if test ${ac_cv_prog_AWK+y} 4569 then : 4570 printf %s "(cached) " >&6 4571 else case e in #( 4572 e) if test -n "$AWK"; then 4573 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4574 else 4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4576 for as_dir in $PATH 4577 do 4578 IFS=$as_save_IFS 4579 case $as_dir in #((( 4580 '') as_dir=./ ;; 4581 */) ;; 4582 *) as_dir=$as_dir/ ;; 4583 esac 4584 for ac_exec_ext in '' $ac_executable_extensions; do 4585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4586 ac_cv_prog_AWK="$ac_prog" 4587 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4588 break 2 4589 fi 4590 done 4591 done 4592 IFS=$as_save_IFS 4593 4594 fi ;; 4595 esac 4596 fi 4597 AWK=$ac_cv_prog_AWK 4598 if test -n "$AWK"; then 4599 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4600 printf '%s\n' "$AWK" >&6; } 4601 else 4602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4603 printf '%s\n' "no" >&6; } 4604 fi 4605 4606 4607 test -n "$AWK" && break 4608 done 4609 4610 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4611 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4612 set x ${MAKE-make} 4613 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4614 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4615 then : 4616 printf %s "(cached) " >&6 4617 else case e in #( 4618 e) cat >conftest.make <<\_ACEOF 4619 SHELL = /bin/sh 4620 all: 4621 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%' 4622 _ACEOF 4623 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4624 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4625 *@@@%%%=?*=@@@%%%*) 4626 eval ac_cv_prog_make_${ac_make}_set=yes;; 4627 *) 4628 eval ac_cv_prog_make_${ac_make}_set=no;; 4629 esac 4630 rm -f conftest.make ;; 4631 esac 4632 fi 4633 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4635 printf '%s\n' "yes" >&6; } 4636 SET_MAKE= 4637 else 4638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4639 printf '%s\n' "no" >&6; } 4640 SET_MAKE="MAKE=${MAKE-make}" 4641 fi 4642 4643 rm -rf .tst 2>/dev/null 4644 mkdir .tst 2>/dev/null 4645 if test -d .tst; then 4646 am__leading_dot=. 4647 else 4648 am__leading_dot=_ 4649 fi 4650 rmdir .tst 2>/dev/null 4651 4652 DEPDIR="${am__leading_dot}deps" 4653 4654 ac_config_commands="$ac_config_commands depfiles" 4655 4656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4657 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4658 cat > confinc.mk << 'END' 4659 am__doit: 4660 @echo this is the am__doit target >confinc.out 4661 .PHONY: am__doit 4662 END 4663 am__include="#" 4664 am__quote= 4665 # BSD make does it like this. 4666 echo '.include "confinc.mk" # ignored' > confmf.BSD 4667 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4668 echo 'include confinc.mk # ignored' > confmf.GNU 4669 _am_result=no 4670 for s in GNU BSD; do 4671 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4672 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4673 ac_status=$? 4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4675 (exit $ac_status); } 4676 case $?:`cat confinc.out 2>/dev/null` in #( 4677 '0:this is the am__doit target') : 4678 case $s in #( 4679 BSD) : 4680 am__include='.include' am__quote='"' ;; #( 4681 *) : 4682 am__include='include' am__quote='' ;; 4683 esac ;; #( 4684 *) : 4685 ;; 4686 esac 4687 if test "$am__include" != "#"; then 4688 _am_result="yes ($s style)" 4689 break 4690 fi 4691 done 4692 rm -f confinc.* confmf.* 4693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4694 printf '%s\n' "${_am_result}" >&6; } 4695 4696 # Check whether --enable-dependency-tracking was given. 4697 if test ${enable_dependency_tracking+y} 4698 then : 4699 enableval=$enable_dependency_tracking; 4700 fi 4701 4702 if test "x$enable_dependency_tracking" != xno; then 4703 am_depcomp="$ac_aux_dir/depcomp" 4704 AMDEPBACKSLASH='\' 4705 am__nodep='_no' 4706 fi 4707 if test "x$enable_dependency_tracking" != xno; then 4708 AMDEP_TRUE= 4709 AMDEP_FALSE='#' 4710 else 4711 AMDEP_TRUE='#' 4712 AMDEP_FALSE= 4713 fi 4714 4715 4716 AM_DEFAULT_VERBOSITY=1 4717 # Check whether --enable-silent-rules was given. 4718 if test ${enable_silent_rules+y} 4719 then : 4720 enableval=$enable_silent_rules; 4721 fi 4722 4723 am_make=${MAKE-make} 4724 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4725 printf %s "checking whether $am_make supports nested variables... " >&6; } 4726 if test ${am_cv_make_support_nested_variables+y} 4727 then : 4728 printf %s "(cached) " >&6 4729 else case e in #( 4730 e) if printf '%s\n' 'TRUE=$(BAR$(V)) 4731 BAR0=false 4732 BAR1=true 4733 V=1 4734 am__doit: 4735 @$(TRUE) 4736 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4737 am_cv_make_support_nested_variables=yes 4738 else 4739 am_cv_make_support_nested_variables=no 4740 fi ;; 4741 esac 4742 fi 4743 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4744 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; } 4745 AM_BACKSLASH='\' 4746 4747 am__rm_f_notfound= 4748 if (rm -f && rm -fr && rm -rf) 2>/dev/null 4749 then : 4750 4751 else case e in #( 4752 e) am__rm_f_notfound='""' ;; 4753 esac 4754 fi 4755 4756 4757 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4758 printf %s "checking xargs -n works... " >&6; } 4759 if test ${am_cv_xargs_n_works+y} 4760 then : 4761 printf %s "(cached) " >&6 4762 else case e in #( 4763 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 4764 3" 4765 then : 4766 am_cv_xargs_n_works=yes 4767 else case e in #( 4768 e) am_cv_xargs_n_works=no ;; 4769 esac 4770 fi ;; 4771 esac 4772 fi 4773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4774 printf '%s\n' "$am_cv_xargs_n_works" >&6; } 4775 if test "$am_cv_xargs_n_works" = yes 4776 then : 4777 am__xargs_n='xargs -n' 4778 else case e in #( 4779 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4780 ;; 4781 esac 4782 fi 4783 4784 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4785 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4786 # is not polluted with repeated "-I." 4787 am__isrc=' -I$(srcdir)' 4788 # test to see if srcdir already configured 4789 if test -f $srcdir/config.status; then 4790 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4791 fi 4792 fi 4793 4794 # test whether we have cygpath 4795 if test -z "$CYGPATH_W"; then 4796 if (cygpath --version) >/dev/null 2>/dev/null; then 4797 CYGPATH_W='cygpath -w' 4798 else 4799 CYGPATH_W=echo 4800 fi 4801 fi 4802 4803 4804 # Define the identity of the package. 4805 PACKAGE='xconsole' 4806 VERSION='1.1.1' 4807 4808 4809 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4810 4811 4812 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h 4813 4814 # Some tools Automake needs. 4815 4816 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4817 4818 4819 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4820 4821 4822 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4823 4824 4825 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4826 4827 4828 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4829 4830 # For better backward compatibility. To be removed once Automake 1.9.x 4831 # dies out for good. For more background, see: 4832 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4833 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4834 mkdir_p='$(MKDIR_P)' 4835 4836 # We need awk for the "check" target (and possibly the TAP driver). The 4837 # system "awk" is bad on some platforms. 4838 # Always define AMTAR for backward compatibility. Yes, it's still used 4839 # in the wild :-( We should find a proper way to deprecate it ... 4840 AMTAR='$${TAR-tar}' 4841 4842 4843 # We'll loop over all known methods to create a tar archive until one works. 4844 _am_tools='gnutar plaintar pax cpio none' 4845 4846 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 4847 # There is notably a 21 bits limit for the UID and the GID. In fact, 4848 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 4849 # and bug#13588). 4850 am_max_uid=2097151 # 2^21 - 1 4851 am_max_gid=$am_max_uid 4852 # The $UID and $GID variables are not portable, so we need to resort 4853 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 4854 # below are definitely unexpected, so allow the users to see them 4855 # (that is, avoid stderr redirection). 4856 am_uid=`id -u || echo unknown` 4857 am_gid=`id -g || echo unknown` 4858 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 4859 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 4860 if test x$am_uid = xunknown; then 4861 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 4862 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 4863 elif test $am_uid -le $am_max_uid; then 4864 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4865 printf '%s\n' "yes" >&6; } 4866 else 4867 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4868 printf '%s\n' "no" >&6; } 4869 _am_tools=none 4870 fi 4871 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 4872 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 4873 if test x$gm_gid = xunknown; then 4874 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 4875 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 4876 elif test $am_gid -le $am_max_gid; then 4877 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4878 printf '%s\n' "yes" >&6; } 4879 else 4880 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4881 printf '%s\n' "no" >&6; } 4882 _am_tools=none 4883 fi 4884 4885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 4886 printf %s "checking how to create a ustar tar archive... " >&6; } 4887 4888 # Go ahead even if we have the value already cached. We do so because we 4889 # need to set the values for the 'am__tar' and 'am__untar' variables. 4890 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 4891 4892 for _am_tool in $_am_tools; do 4893 case $_am_tool in 4894 gnutar) 4895 for _am_tar in tar gnutar gtar; do 4896 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4897 ($_am_tar --version) >&5 2>&5 4898 ac_status=$? 4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4900 (exit $ac_status); } && break 4901 done 4902 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 4903 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 4904 am__untar="$_am_tar -xf -" 4905 ;; 4906 plaintar) 4907 # Must skip GNU tar: if it does not support --format= it doesn't create 4908 # ustar tarball either. 4909 (tar --version) >/dev/null 2>&1 && continue 4910 am__tar='tar chf - "$$tardir"' 4911 am__tar_='tar chf - "$tardir"' 4912 am__untar='tar xf -' 4913 ;; 4914 pax) 4915 am__tar='pax -L -x ustar -w "$$tardir"' 4916 am__tar_='pax -L -x ustar -w "$tardir"' 4917 am__untar='pax -r' 4918 ;; 4919 cpio) 4920 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 4921 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 4922 am__untar='cpio -i -H ustar -d' 4923 ;; 4924 none) 4925 am__tar=false 4926 am__tar_=false 4927 am__untar=false 4928 ;; 4929 esac 4930 4931 # If the value was cached, stop now. We just wanted to have am__tar 4932 # and am__untar set. 4933 test -n "${am_cv_prog_tar_ustar}" && break 4934 4935 # tar/untar a dummy directory, and stop if the command works. 4936 rm -rf conftest.dir 4937 mkdir conftest.dir 4938 echo GrepMe > conftest.dir/file 4939 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4940 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4941 ac_status=$? 4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4943 (exit $ac_status); } 4944 rm -rf conftest.dir 4945 if test -s conftest.tar; then 4946 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4947 ($am__untar <conftest.tar) >&5 2>&5 4948 ac_status=$? 4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4950 (exit $ac_status); } 4951 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4952 (cat conftest.dir/file) >&5 2>&5 4953 ac_status=$? 4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4955 (exit $ac_status); } 4956 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4957 fi 4958 done 4959 rm -rf conftest.dir 4960 4961 if test ${am_cv_prog_tar_ustar+y} 4962 then : 4963 printf %s "(cached) " >&6 4964 else case e in #( 4965 e) am_cv_prog_tar_ustar=$_am_tool ;; 4966 esac 4967 fi 4968 4969 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 4970 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; } 4971 4972 4973 4974 4975 4976 depcc="$CC" am_compiler_list= 4977 4978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4979 printf %s "checking dependency style of $depcc... " >&6; } 4980 if test ${am_cv_CC_dependencies_compiler_type+y} 4981 then : 4982 printf %s "(cached) " >&6 4983 else case e in #( 4984 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4985 # We make a subdir and do the tests there. Otherwise we can end up 4986 # making bogus files that we don't know about and never remove. For 4987 # instance it was reported that on HP-UX the gcc test will end up 4988 # making a dummy file named 'D' -- because '-MD' means "put the output 4989 # in D". 4990 rm -rf conftest.dir 4991 mkdir conftest.dir 4992 # Copy depcomp to subdir because otherwise we won't find it if we're 4993 # using a relative directory. 4994 cp "$am_depcomp" conftest.dir 4995 cd conftest.dir 4996 # We will build objects and dependencies in a subdirectory because 4997 # it helps to detect inapplicable dependency modes. For instance 4998 # both Tru64's cc and ICC support -MD to output dependencies as a 4999 # side effect of compilation, but ICC will put the dependencies in 5000 # the current directory while Tru64 will put them in the object 5001 # directory. 5002 mkdir sub 5003 5004 am_cv_CC_dependencies_compiler_type=none 5005 if test "$am_compiler_list" = ""; then 5006 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5007 fi 5008 am__universal=false 5009 case " $depcc " in #( 5010 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5011 esac 5012 5013 for depmode in $am_compiler_list; do 5014 # Setup a source with many dependencies, because some compilers 5015 # like to wrap large dependency lists on column 80 (with \), and 5016 # we should not choose a depcomp mode which is confused by this. 5017 # 5018 # We need to recreate these files for each test, as the compiler may 5019 # overwrite some of them when testing with obscure command lines. 5020 # This happens at least with the AIX C compiler. 5021 : > sub/conftest.c 5022 for i in 1 2 3 4 5 6; do 5023 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5024 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5025 # Solaris 10 /bin/sh. 5026 echo '/* dummy */' > sub/conftst$i.h 5027 done 5028 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5029 5030 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5031 # mode. It turns out that the SunPro C++ compiler does not properly 5032 # handle '-M -o', and we need to detect this. Also, some Intel 5033 # versions had trouble with output in subdirs. 5034 am__obj=sub/conftest.${OBJEXT-o} 5035 am__minus_obj="-o $am__obj" 5036 case $depmode in 5037 gcc) 5038 # This depmode causes a compiler race in universal mode. 5039 test "$am__universal" = false || continue 5040 ;; 5041 nosideeffect) 5042 # After this tag, mechanisms are not by side-effect, so they'll 5043 # only be used when explicitly requested. 5044 if test "x$enable_dependency_tracking" = xyes; then 5045 continue 5046 else 5047 break 5048 fi 5049 ;; 5050 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5051 # This compiler won't grok '-c -o', but also, the minuso test has 5052 # not run yet. These depmodes are late enough in the game, and 5053 # so weak that their functioning should not be impacted. 5054 am__obj=conftest.${OBJEXT-o} 5055 am__minus_obj= 5056 ;; 5057 none) break ;; 5058 esac 5059 if depmode=$depmode \ 5060 source=sub/conftest.c object=$am__obj \ 5061 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5062 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5063 >/dev/null 2>conftest.err && 5064 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5065 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5066 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5067 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5068 # icc doesn't choke on unknown options, it will just issue warnings 5069 # or remarks (even with -Werror). So we grep stderr for any message 5070 # that says an option was ignored or not supported. 5071 # When given -MP, icc 7.0 and 7.1 complain thus: 5072 # icc: Command line warning: ignoring option '-M'; no argument required 5073 # The diagnosis changed in icc 8.0: 5074 # icc: Command line remark: option '-MP' not supported 5075 if (grep 'ignoring option' conftest.err || 5076 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5077 am_cv_CC_dependencies_compiler_type=$depmode 5078 break 5079 fi 5080 fi 5081 done 5082 5083 cd .. 5084 rm -rf conftest.dir 5085 else 5086 am_cv_CC_dependencies_compiler_type=none 5087 fi 5088 ;; 5089 esac 5090 fi 5091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5092 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; } 5093 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5094 5095 if 5096 test "x$enable_dependency_tracking" != xno \ 5097 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5098 am__fastdepCC_TRUE= 5099 am__fastdepCC_FALSE='#' 5100 else 5101 am__fastdepCC_TRUE='#' 5102 am__fastdepCC_FALSE= 5103 fi 5104 5105 5106 # Variables for tags utilities; see am/tags.am 5107 if test -z "$CTAGS"; then 5108 CTAGS=ctags 5109 fi 5110 5111 if test -z "$ETAGS"; then 5112 ETAGS=etags 5113 fi 5114 5115 if test -z "$CSCOPE"; then 5116 CSCOPE=cscope 5117 fi 5118 5119 5120 5121 5122 5123 5124 5125 5126 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5 5139 printf %s "checking for $CC options to detect undeclared functions... " >&6; } 5140 if test ${ac_cv_c_undeclared_builtin_options+y} 5141 then : 5142 printf %s "(cached) " >&6 5143 else case e in #( 5144 e) ac_save_CFLAGS=$CFLAGS 5145 ac_cv_c_undeclared_builtin_options='cannot detect' 5146 for ac_arg in '' -fno-builtin; do 5147 CFLAGS="$ac_save_CFLAGS $ac_arg" 5148 # This test program should *not* compile successfully. 5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5150 /* end confdefs.h. */ 5151 5152 int 5153 main (void) 5154 { 5155 (void) strchr; 5156 ; 5157 return 0; 5158 } 5159 _ACEOF 5160 if ac_fn_c_try_compile "$LINENO" 5161 then : 5162 5163 else case e in #( 5164 e) # This test program should compile successfully. 5165 # No library function is consistently available on 5166 # freestanding implementations, so test against a dummy 5167 # declaration. Include always-available headers on the 5168 # off chance that they somehow elicit warnings. 5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5170 /* end confdefs.h. */ 5171 #include <float.h> 5172 #include <limits.h> 5173 #include <stdarg.h> 5174 #include <stddef.h> 5175 extern void ac_decl (int, char *); 5176 5177 int 5178 main (void) 5179 { 5180 (void) ac_decl (0, (char *) 0); 5181 (void) ac_decl; 5182 5183 ; 5184 return 0; 5185 } 5186 _ACEOF 5187 if ac_fn_c_try_compile "$LINENO" 5188 then : 5189 if test x"$ac_arg" = x 5190 then : 5191 ac_cv_c_undeclared_builtin_options='none needed' 5192 else case e in #( 5193 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 5194 esac 5195 fi 5196 break 5197 fi 5198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5199 esac 5200 fi 5201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5202 done 5203 CFLAGS=$ac_save_CFLAGS 5204 ;; 5205 esac 5206 fi 5207 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 5208 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; } 5209 case $ac_cv_c_undeclared_builtin_options in #( 5210 'cannot detect') : 5211 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5212 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 5213 as_fn_error $? "cannot make $CC report undeclared builtins 5214 See 'config.log' for more details" "$LINENO" 5; } ;; #( 5215 'none needed') : 5216 ac_c_undeclared_builtin_options='' ;; #( 5217 *) : 5218 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 5219 esac 5220 5221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5 5222 printf %s "checking for $CC options to ignore future-version functions... " >&6; } 5223 if test ${ac_cv_c_future_darwin_options+y} 5224 then : 5225 printf %s "(cached) " >&6 5226 else case e in #( 5227 e) ac_compile_saved="$ac_compile" 5228 ac_compile="$ac_compile -Werror=unguarded-availability-new" 5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5230 /* end confdefs.h. */ 5231 #if ! (defined __APPLE__ && defined __MACH__) 5232 #error "-Werror=unguarded-availability-new not needed here" 5233 #endif 5234 5235 int 5236 main (void) 5237 { 5238 5239 ; 5240 return 0; 5241 } 5242 _ACEOF 5243 if ac_fn_c_try_compile "$LINENO" 5244 then : 5245 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new' 5246 else case e in #( 5247 e) ac_cv_c_future_darwin_options='none needed' ;; 5248 esac 5249 fi 5250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5251 ac_compile="$ac_compile_saved" 5252 ;; 5253 esac 5254 fi 5255 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5 5256 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; } 5257 case $ac_cv_c_future_darwin_options in #( 5258 'none needed') : 5259 ac_c_future_darwin_options='' ;; #( 5260 *) : 5261 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;; 5262 esac 5263 5264 5265 5266 5267 5268 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS" 5269 if test "x$ac_cv_have_decl___clang__" = xyes 5270 then : 5271 CLANGCC="yes" 5272 else case e in #( 5273 e) CLANGCC="no" ;; 5274 esac 5275 fi 5276 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS" 5277 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 5278 then : 5279 INTELCC="yes" 5280 else case e in #( 5281 e) INTELCC="no" ;; 5282 esac 5283 fi 5284 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS" 5285 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 5286 then : 5287 SUNCC="yes" 5288 else case e in #( 5289 e) SUNCC="no" ;; 5290 esac 5291 fi 5292 5293 5294 5295 5296 5297 5298 5299 5300 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5301 if test -n "$ac_tool_prefix"; then 5302 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5303 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5304 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5305 printf %s "checking for $ac_word... " >&6; } 5306 if test ${ac_cv_path_PKG_CONFIG+y} 5307 then : 5308 printf %s "(cached) " >&6 5309 else case e in #( 5310 e) case $PKG_CONFIG in 5311 [\\/]* | ?:[\\/]*) 5312 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5313 ;; 5314 *) 5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5316 for as_dir in $PATH 5317 do 5318 IFS=$as_save_IFS 5319 case $as_dir in #((( 5320 '') as_dir=./ ;; 5321 */) ;; 5322 *) as_dir=$as_dir/ ;; 5323 esac 5324 for ac_exec_ext in '' $ac_executable_extensions; do 5325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5326 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5327 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5328 break 2 5329 fi 5330 done 5331 done 5332 IFS=$as_save_IFS 5333 5334 ;; 5335 esac ;; 5336 esac 5337 fi 5338 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5339 if test -n "$PKG_CONFIG"; then 5340 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5341 printf '%s\n' "$PKG_CONFIG" >&6; } 5342 else 5343 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5344 printf '%s\n' "no" >&6; } 5345 fi 5346 5347 5348 fi 5349 if test -z "$ac_cv_path_PKG_CONFIG"; then 5350 ac_pt_PKG_CONFIG=$PKG_CONFIG 5351 # Extract the first word of "pkg-config", so it can be a program name with args. 5352 set dummy pkg-config; ac_word=$2 5353 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5354 printf %s "checking for $ac_word... " >&6; } 5355 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5356 then : 5357 printf %s "(cached) " >&6 5358 else case e in #( 5359 e) case $ac_pt_PKG_CONFIG in 5360 [\\/]* | ?:[\\/]*) 5361 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5362 ;; 5363 *) 5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5365 for as_dir in $PATH 5366 do 5367 IFS=$as_save_IFS 5368 case $as_dir in #((( 5369 '') as_dir=./ ;; 5370 */) ;; 5371 *) as_dir=$as_dir/ ;; 5372 esac 5373 for ac_exec_ext in '' $ac_executable_extensions; do 5374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5375 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5376 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5377 break 2 5378 fi 5379 done 5380 done 5381 IFS=$as_save_IFS 5382 5383 ;; 5384 esac ;; 5385 esac 5386 fi 5387 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5388 if test -n "$ac_pt_PKG_CONFIG"; then 5389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5390 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; } 5391 else 5392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5393 printf '%s\n' "no" >&6; } 5394 fi 5395 5396 if test "x$ac_pt_PKG_CONFIG" = x; then 5397 PKG_CONFIG="" 5398 else 5399 case $cross_compiling:$ac_tool_warned in 5400 yes:) 5401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5402 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5403 ac_tool_warned=yes ;; 5404 esac 5405 PKG_CONFIG=$ac_pt_PKG_CONFIG 5406 fi 5407 else 5408 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5409 fi 5410 5411 fi 5412 if test -n "$PKG_CONFIG"; then 5413 _pkg_min_version=0.9.0 5414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5415 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5416 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5417 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5418 printf '%s\n' "yes" >&6; } 5419 else 5420 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5421 printf '%s\n' "no" >&6; } 5422 PKG_CONFIG="" 5423 fi 5424 fi 5425 5426 5427 # Make sure we can run config.sub. 5428 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5429 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5430 5431 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5432 printf %s "checking build system type... " >&6; } 5433 if test ${ac_cv_build+y} 5434 then : 5435 printf %s "(cached) " >&6 5436 else case e in #( 5437 e) ac_build_alias=$build_alias 5438 test "x$ac_build_alias" = x && 5439 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5440 test "x$ac_build_alias" = x && 5441 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5442 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5443 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5444 ;; 5445 esac 5446 fi 5447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5448 printf '%s\n' "$ac_cv_build" >&6; } 5449 case $ac_cv_build in 5450 *-*-*) ;; 5451 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5452 esac 5453 build=$ac_cv_build 5454 ac_save_IFS=$IFS; IFS='-' 5455 set x $ac_cv_build 5456 shift 5457 build_cpu=$1 5458 build_vendor=$2 5459 shift; shift 5460 # Remember, the first character of IFS is used to create $*, 5461 # except with old shells: 5462 build_os=$* 5463 IFS=$ac_save_IFS 5464 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac 5465 5466 5467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5468 printf %s "checking host system type... " >&6; } 5469 if test ${ac_cv_host+y} 5470 then : 5471 printf %s "(cached) " >&6 5472 else case e in #( 5473 e) if test "x$host_alias" = x; then 5474 ac_cv_host=$ac_cv_build 5475 else 5476 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5477 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5478 fi 5479 ;; 5480 esac 5481 fi 5482 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5483 printf '%s\n' "$ac_cv_host" >&6; } 5484 case $ac_cv_host in 5485 *-*-*) ;; 5486 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5487 esac 5488 host=$ac_cv_host 5489 ac_save_IFS=$IFS; IFS='-' 5490 set x $ac_cv_host 5491 shift 5492 host_cpu=$1 5493 host_vendor=$2 5494 shift; shift 5495 # Remember, the first character of IFS is used to create $*, 5496 # except with old shells: 5497 host_os=$* 5498 IFS=$ac_save_IFS 5499 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac 5500 5501 5502 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5503 printf %s "checking for a sed that does not truncate output... " >&6; } 5504 if test ${ac_cv_path_SED+y} 5505 then : 5506 printf %s "(cached) " >&6 5507 else case e in #( 5508 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5509 for ac_i in 1 2 3 4 5 6 7; do 5510 ac_script="$ac_script$as_nl$ac_script" 5511 done 5512 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5513 { ac_script=; unset ac_script;} 5514 if test -z "$SED"; then 5515 ac_path_SED_found=false 5516 # Loop through the user's path and test for each of PROGNAME-LIST 5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5518 for as_dir in $PATH 5519 do 5520 IFS=$as_save_IFS 5521 case $as_dir in #((( 5522 '') as_dir=./ ;; 5523 */) ;; 5524 *) as_dir=$as_dir/ ;; 5525 esac 5526 for ac_prog in sed gsed 5527 do 5528 for ac_exec_ext in '' $ac_executable_extensions; do 5529 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5530 as_fn_executable_p "$ac_path_SED" || continue 5531 # Check for GNU ac_path_SED and select it if it is found. 5532 # Check for GNU $ac_path_SED 5533 case `"$ac_path_SED" --version 2>&1` in #( 5534 *GNU*) 5535 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5536 #( 5537 *) 5538 ac_count=0 5539 printf %s 0123456789 >"conftest.in" 5540 while : 5541 do 5542 cat "conftest.in" "conftest.in" >"conftest.tmp" 5543 mv "conftest.tmp" "conftest.in" 5544 cp "conftest.in" "conftest.nl" 5545 printf '%s\n' '' >> "conftest.nl" 5546 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5548 as_fn_arith $ac_count + 1 && ac_count=$as_val 5549 if test $ac_count -gt ${ac_path_SED_max-0}; then 5550 # Best one so far, save it but keep looking for a better one 5551 ac_cv_path_SED="$ac_path_SED" 5552 ac_path_SED_max=$ac_count 5553 fi 5554 # 10*(2^10) chars as input seems more than enough 5555 test $ac_count -gt 10 && break 5556 done 5557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5558 esac 5559 5560 $ac_path_SED_found && break 3 5561 done 5562 done 5563 done 5564 IFS=$as_save_IFS 5565 if test -z "$ac_cv_path_SED"; then 5566 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5567 fi 5568 else 5569 ac_cv_path_SED=$SED 5570 fi 5571 ;; 5572 esac 5573 fi 5574 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5575 printf '%s\n' "$ac_cv_path_SED" >&6; } 5576 SED="$ac_cv_path_SED" 5577 rm -f conftest.sed 5578 5579 5580 5581 5582 5583 5584 # Check whether --enable-selective-werror was given. 5585 if test ${enable_selective_werror+y} 5586 then : 5587 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5588 else case e in #( 5589 e) SELECTIVE_WERROR=yes ;; 5590 esac 5591 fi 5592 5593 5594 5595 5596 5597 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5598 if test "x$SUNCC" = "xyes"; then 5599 BASE_CFLAGS="-v" 5600 else 5601 BASE_CFLAGS="" 5602 fi 5603 5604 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 xorg_testset_save_CFLAGS="$CFLAGS" 5619 5620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5623 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5624 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5625 then : 5626 printf %s "(cached) " >&6 5627 else case e in #( 5628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5629 /* end confdefs.h. */ 5630 int i; 5631 _ACEOF 5632 if ac_fn_c_try_compile "$LINENO" 5633 then : 5634 xorg_cv_cc_flag_unknown_warning_option=yes 5635 else case e in #( 5636 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5637 esac 5638 fi 5639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5640 esac 5641 fi 5642 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5643 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5645 CFLAGS="$xorg_testset_save_CFLAGS" 5646 fi 5647 5648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5651 fi 5652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5654 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5655 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5656 then : 5657 printf %s "(cached) " >&6 5658 else case e in #( 5659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5660 /* end confdefs.h. */ 5661 int i; 5662 _ACEOF 5663 if ac_fn_c_try_compile "$LINENO" 5664 then : 5665 xorg_cv_cc_flag_unused_command_line_argument=yes 5666 else case e in #( 5667 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5668 esac 5669 fi 5670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5671 esac 5672 fi 5673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5674 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5676 CFLAGS="$xorg_testset_save_CFLAGS" 5677 fi 5678 5679 found="no" 5680 5681 if test $found = "no" ; then 5682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5684 fi 5685 5686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5688 fi 5689 5690 CFLAGS="$CFLAGS -Wall" 5691 5692 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5693 printf %s "checking if $CC supports -Wall... " >&6; } 5694 cacheid=xorg_cv_cc_flag__Wall 5695 if eval test \${$cacheid+y} 5696 then : 5697 printf %s "(cached) " >&6 5698 else case e in #( 5699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5700 /* end confdefs.h. */ 5701 int i; 5702 int 5703 main (void) 5704 { 5705 5706 ; 5707 return 0; 5708 } 5709 _ACEOF 5710 if ac_fn_c_try_link "$LINENO" 5711 then : 5712 eval $cacheid=yes 5713 else case e in #( 5714 e) eval $cacheid=no ;; 5715 esac 5716 fi 5717 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5718 conftest$ac_exeext conftest.$ac_ext ;; 5719 esac 5720 fi 5721 5722 5723 CFLAGS="$xorg_testset_save_CFLAGS" 5724 5725 eval supported=\$$cacheid 5726 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5727 printf '%s\n' "$supported" >&6; } 5728 if test "$supported" = "yes" ; then 5729 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5730 found="yes" 5731 fi 5732 fi 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 xorg_testset_save_CFLAGS="$CFLAGS" 5749 5750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5752 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5754 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5755 then : 5756 printf %s "(cached) " >&6 5757 else case e in #( 5758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5759 /* end confdefs.h. */ 5760 int i; 5761 _ACEOF 5762 if ac_fn_c_try_compile "$LINENO" 5763 then : 5764 xorg_cv_cc_flag_unknown_warning_option=yes 5765 else case e in #( 5766 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5767 esac 5768 fi 5769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5770 esac 5771 fi 5772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5773 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5775 CFLAGS="$xorg_testset_save_CFLAGS" 5776 fi 5777 5778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5781 fi 5782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5783 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5784 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5785 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5786 then : 5787 printf %s "(cached) " >&6 5788 else case e in #( 5789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5790 /* end confdefs.h. */ 5791 int i; 5792 _ACEOF 5793 if ac_fn_c_try_compile "$LINENO" 5794 then : 5795 xorg_cv_cc_flag_unused_command_line_argument=yes 5796 else case e in #( 5797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5798 esac 5799 fi 5800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5801 esac 5802 fi 5803 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5804 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5806 CFLAGS="$xorg_testset_save_CFLAGS" 5807 fi 5808 5809 found="no" 5810 5811 if test $found = "no" ; then 5812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5814 fi 5815 5816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5818 fi 5819 5820 CFLAGS="$CFLAGS -Wpointer-arith" 5821 5822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5823 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5824 cacheid=xorg_cv_cc_flag__Wpointer_arith 5825 if eval test \${$cacheid+y} 5826 then : 5827 printf %s "(cached) " >&6 5828 else case e in #( 5829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5830 /* end confdefs.h. */ 5831 int i; 5832 int 5833 main (void) 5834 { 5835 5836 ; 5837 return 0; 5838 } 5839 _ACEOF 5840 if ac_fn_c_try_link "$LINENO" 5841 then : 5842 eval $cacheid=yes 5843 else case e in #( 5844 e) eval $cacheid=no ;; 5845 esac 5846 fi 5847 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5848 conftest$ac_exeext conftest.$ac_ext ;; 5849 esac 5850 fi 5851 5852 5853 CFLAGS="$xorg_testset_save_CFLAGS" 5854 5855 eval supported=\$$cacheid 5856 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5857 printf '%s\n' "$supported" >&6; } 5858 if test "$supported" = "yes" ; then 5859 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5860 found="yes" 5861 fi 5862 fi 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 xorg_testset_save_CFLAGS="$CFLAGS" 5879 5880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5882 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5884 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5885 then : 5886 printf %s "(cached) " >&6 5887 else case e in #( 5888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5889 /* end confdefs.h. */ 5890 int i; 5891 _ACEOF 5892 if ac_fn_c_try_compile "$LINENO" 5893 then : 5894 xorg_cv_cc_flag_unknown_warning_option=yes 5895 else case e in #( 5896 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5897 esac 5898 fi 5899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5900 esac 5901 fi 5902 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5903 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5905 CFLAGS="$xorg_testset_save_CFLAGS" 5906 fi 5907 5908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5911 fi 5912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5916 then : 5917 printf %s "(cached) " >&6 5918 else case e in #( 5919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5920 /* end confdefs.h. */ 5921 int i; 5922 _ACEOF 5923 if ac_fn_c_try_compile "$LINENO" 5924 then : 5925 xorg_cv_cc_flag_unused_command_line_argument=yes 5926 else case e in #( 5927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5928 esac 5929 fi 5930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5931 esac 5932 fi 5933 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5934 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5936 CFLAGS="$xorg_testset_save_CFLAGS" 5937 fi 5938 5939 found="no" 5940 5941 if test $found = "no" ; then 5942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5944 fi 5945 5946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5948 fi 5949 5950 CFLAGS="$CFLAGS -Wmissing-declarations" 5951 5952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5953 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5954 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5955 if eval test \${$cacheid+y} 5956 then : 5957 printf %s "(cached) " >&6 5958 else case e in #( 5959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5960 /* end confdefs.h. */ 5961 int i; 5962 int 5963 main (void) 5964 { 5965 5966 ; 5967 return 0; 5968 } 5969 _ACEOF 5970 if ac_fn_c_try_link "$LINENO" 5971 then : 5972 eval $cacheid=yes 5973 else case e in #( 5974 e) eval $cacheid=no ;; 5975 esac 5976 fi 5977 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5978 conftest$ac_exeext conftest.$ac_ext ;; 5979 esac 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 -Wmissing-declarations" 5990 found="yes" 5991 fi 5992 fi 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 xorg_testset_save_CFLAGS="$CFLAGS" 6009 6010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6014 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6015 then : 6016 printf %s "(cached) " >&6 6017 else case e in #( 6018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6019 /* end confdefs.h. */ 6020 int i; 6021 _ACEOF 6022 if ac_fn_c_try_compile "$LINENO" 6023 then : 6024 xorg_cv_cc_flag_unknown_warning_option=yes 6025 else case e in #( 6026 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6027 esac 6028 fi 6029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6030 esac 6031 fi 6032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6033 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6035 CFLAGS="$xorg_testset_save_CFLAGS" 6036 fi 6037 6038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6041 fi 6042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6045 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6046 then : 6047 printf %s "(cached) " >&6 6048 else case e in #( 6049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6050 /* end confdefs.h. */ 6051 int i; 6052 _ACEOF 6053 if ac_fn_c_try_compile "$LINENO" 6054 then : 6055 xorg_cv_cc_flag_unused_command_line_argument=yes 6056 else case e in #( 6057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6058 esac 6059 fi 6060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6061 esac 6062 fi 6063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6064 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6066 CFLAGS="$xorg_testset_save_CFLAGS" 6067 fi 6068 6069 found="no" 6070 6071 if test $found = "no" ; then 6072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6074 fi 6075 6076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6078 fi 6079 6080 CFLAGS="$CFLAGS -Wformat=2" 6081 6082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 6083 printf %s "checking if $CC supports -Wformat=2... " >&6; } 6084 cacheid=xorg_cv_cc_flag__Wformat_2 6085 if eval test \${$cacheid+y} 6086 then : 6087 printf %s "(cached) " >&6 6088 else case e in #( 6089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6090 /* end confdefs.h. */ 6091 int i; 6092 int 6093 main (void) 6094 { 6095 6096 ; 6097 return 0; 6098 } 6099 _ACEOF 6100 if ac_fn_c_try_link "$LINENO" 6101 then : 6102 eval $cacheid=yes 6103 else case e in #( 6104 e) eval $cacheid=no ;; 6105 esac 6106 fi 6107 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6108 conftest$ac_exeext conftest.$ac_ext ;; 6109 esac 6110 fi 6111 6112 6113 CFLAGS="$xorg_testset_save_CFLAGS" 6114 6115 eval supported=\$$cacheid 6116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6117 printf '%s\n' "$supported" >&6; } 6118 if test "$supported" = "yes" ; then 6119 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6120 found="yes" 6121 fi 6122 fi 6123 6124 if test $found = "no" ; then 6125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6127 fi 6128 6129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6131 fi 6132 6133 CFLAGS="$CFLAGS -Wformat" 6134 6135 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6136 printf %s "checking if $CC supports -Wformat... " >&6; } 6137 cacheid=xorg_cv_cc_flag__Wformat 6138 if eval test \${$cacheid+y} 6139 then : 6140 printf %s "(cached) " >&6 6141 else case e in #( 6142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6143 /* end confdefs.h. */ 6144 int i; 6145 int 6146 main (void) 6147 { 6148 6149 ; 6150 return 0; 6151 } 6152 _ACEOF 6153 if ac_fn_c_try_link "$LINENO" 6154 then : 6155 eval $cacheid=yes 6156 else case e in #( 6157 e) eval $cacheid=no ;; 6158 esac 6159 fi 6160 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6161 conftest$ac_exeext conftest.$ac_ext ;; 6162 esac 6163 fi 6164 6165 6166 CFLAGS="$xorg_testset_save_CFLAGS" 6167 6168 eval supported=\$$cacheid 6169 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6170 printf '%s\n' "$supported" >&6; } 6171 if test "$supported" = "yes" ; then 6172 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 6173 found="yes" 6174 fi 6175 fi 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 xorg_testset_save_CFLAGS="$CFLAGS" 6194 6195 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6197 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6198 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6199 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6200 then : 6201 printf %s "(cached) " >&6 6202 else case e in #( 6203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6204 /* end confdefs.h. */ 6205 int i; 6206 _ACEOF 6207 if ac_fn_c_try_compile "$LINENO" 6208 then : 6209 xorg_cv_cc_flag_unknown_warning_option=yes 6210 else case e in #( 6211 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6212 esac 6213 fi 6214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6215 esac 6216 fi 6217 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6218 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6220 CFLAGS="$xorg_testset_save_CFLAGS" 6221 fi 6222 6223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6226 fi 6227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6228 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6229 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6230 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6231 then : 6232 printf %s "(cached) " >&6 6233 else case e in #( 6234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6235 /* end confdefs.h. */ 6236 int i; 6237 _ACEOF 6238 if ac_fn_c_try_compile "$LINENO" 6239 then : 6240 xorg_cv_cc_flag_unused_command_line_argument=yes 6241 else case e in #( 6242 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6243 esac 6244 fi 6245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6246 esac 6247 fi 6248 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6249 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6251 CFLAGS="$xorg_testset_save_CFLAGS" 6252 fi 6253 6254 found="no" 6255 6256 if test $found = "no" ; then 6257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6259 fi 6260 6261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6263 fi 6264 6265 CFLAGS="$CFLAGS -Wstrict-prototypes" 6266 6267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6268 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 6269 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6270 if eval test \${$cacheid+y} 6271 then : 6272 printf %s "(cached) " >&6 6273 else case e in #( 6274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6275 /* end confdefs.h. */ 6276 int i; 6277 int 6278 main (void) 6279 { 6280 6281 ; 6282 return 0; 6283 } 6284 _ACEOF 6285 if ac_fn_c_try_link "$LINENO" 6286 then : 6287 eval $cacheid=yes 6288 else case e in #( 6289 e) eval $cacheid=no ;; 6290 esac 6291 fi 6292 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6293 conftest$ac_exeext conftest.$ac_ext ;; 6294 esac 6295 fi 6296 6297 6298 CFLAGS="$xorg_testset_save_CFLAGS" 6299 6300 eval supported=\$$cacheid 6301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6302 printf '%s\n' "$supported" >&6; } 6303 if test "$supported" = "yes" ; then 6304 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6305 found="yes" 6306 fi 6307 fi 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 xorg_testset_save_CFLAGS="$CFLAGS" 6324 6325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6327 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6328 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6329 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6330 then : 6331 printf %s "(cached) " >&6 6332 else case e in #( 6333 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334 /* end confdefs.h. */ 6335 int i; 6336 _ACEOF 6337 if ac_fn_c_try_compile "$LINENO" 6338 then : 6339 xorg_cv_cc_flag_unknown_warning_option=yes 6340 else case e in #( 6341 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6342 esac 6343 fi 6344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6345 esac 6346 fi 6347 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6348 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6350 CFLAGS="$xorg_testset_save_CFLAGS" 6351 fi 6352 6353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6356 fi 6357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6358 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6359 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6360 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6361 then : 6362 printf %s "(cached) " >&6 6363 else case e in #( 6364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6365 /* end confdefs.h. */ 6366 int i; 6367 _ACEOF 6368 if ac_fn_c_try_compile "$LINENO" 6369 then : 6370 xorg_cv_cc_flag_unused_command_line_argument=yes 6371 else case e in #( 6372 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6373 esac 6374 fi 6375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6376 esac 6377 fi 6378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6379 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6381 CFLAGS="$xorg_testset_save_CFLAGS" 6382 fi 6383 6384 found="no" 6385 6386 if test $found = "no" ; then 6387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6389 fi 6390 6391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6393 fi 6394 6395 CFLAGS="$CFLAGS -Wmissing-prototypes" 6396 6397 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6398 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6399 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6400 if eval test \${$cacheid+y} 6401 then : 6402 printf %s "(cached) " >&6 6403 else case e in #( 6404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6405 /* end confdefs.h. */ 6406 int i; 6407 int 6408 main (void) 6409 { 6410 6411 ; 6412 return 0; 6413 } 6414 _ACEOF 6415 if ac_fn_c_try_link "$LINENO" 6416 then : 6417 eval $cacheid=yes 6418 else case e in #( 6419 e) eval $cacheid=no ;; 6420 esac 6421 fi 6422 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6423 conftest$ac_exeext conftest.$ac_ext ;; 6424 esac 6425 fi 6426 6427 6428 CFLAGS="$xorg_testset_save_CFLAGS" 6429 6430 eval supported=\$$cacheid 6431 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6432 printf '%s\n' "$supported" >&6; } 6433 if test "$supported" = "yes" ; then 6434 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6435 found="yes" 6436 fi 6437 fi 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 xorg_testset_save_CFLAGS="$CFLAGS" 6454 6455 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6457 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6458 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6459 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6460 then : 6461 printf %s "(cached) " >&6 6462 else case e in #( 6463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6464 /* end confdefs.h. */ 6465 int i; 6466 _ACEOF 6467 if ac_fn_c_try_compile "$LINENO" 6468 then : 6469 xorg_cv_cc_flag_unknown_warning_option=yes 6470 else case e in #( 6471 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6472 esac 6473 fi 6474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6475 esac 6476 fi 6477 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6478 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6480 CFLAGS="$xorg_testset_save_CFLAGS" 6481 fi 6482 6483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6486 fi 6487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6488 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6489 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6490 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6491 then : 6492 printf %s "(cached) " >&6 6493 else case e in #( 6494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6495 /* end confdefs.h. */ 6496 int i; 6497 _ACEOF 6498 if ac_fn_c_try_compile "$LINENO" 6499 then : 6500 xorg_cv_cc_flag_unused_command_line_argument=yes 6501 else case e in #( 6502 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6503 esac 6504 fi 6505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6506 esac 6507 fi 6508 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6509 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6511 CFLAGS="$xorg_testset_save_CFLAGS" 6512 fi 6513 6514 found="no" 6515 6516 if test $found = "no" ; then 6517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6519 fi 6520 6521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6523 fi 6524 6525 CFLAGS="$CFLAGS -Wnested-externs" 6526 6527 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6528 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6529 cacheid=xorg_cv_cc_flag__Wnested_externs 6530 if eval test \${$cacheid+y} 6531 then : 6532 printf %s "(cached) " >&6 6533 else case e in #( 6534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6535 /* end confdefs.h. */ 6536 int i; 6537 int 6538 main (void) 6539 { 6540 6541 ; 6542 return 0; 6543 } 6544 _ACEOF 6545 if ac_fn_c_try_link "$LINENO" 6546 then : 6547 eval $cacheid=yes 6548 else case e in #( 6549 e) eval $cacheid=no ;; 6550 esac 6551 fi 6552 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6553 conftest$ac_exeext conftest.$ac_ext ;; 6554 esac 6555 fi 6556 6557 6558 CFLAGS="$xorg_testset_save_CFLAGS" 6559 6560 eval supported=\$$cacheid 6561 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6562 printf '%s\n' "$supported" >&6; } 6563 if test "$supported" = "yes" ; then 6564 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6565 found="yes" 6566 fi 6567 fi 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 xorg_testset_save_CFLAGS="$CFLAGS" 6584 6585 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6588 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6589 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6590 then : 6591 printf %s "(cached) " >&6 6592 else case e in #( 6593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6594 /* end confdefs.h. */ 6595 int i; 6596 _ACEOF 6597 if ac_fn_c_try_compile "$LINENO" 6598 then : 6599 xorg_cv_cc_flag_unknown_warning_option=yes 6600 else case e in #( 6601 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6602 esac 6603 fi 6604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6605 esac 6606 fi 6607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6608 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6610 CFLAGS="$xorg_testset_save_CFLAGS" 6611 fi 6612 6613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6616 fi 6617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6618 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6619 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6620 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6621 then : 6622 printf %s "(cached) " >&6 6623 else case e in #( 6624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6625 /* end confdefs.h. */ 6626 int i; 6627 _ACEOF 6628 if ac_fn_c_try_compile "$LINENO" 6629 then : 6630 xorg_cv_cc_flag_unused_command_line_argument=yes 6631 else case e in #( 6632 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6633 esac 6634 fi 6635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6636 esac 6637 fi 6638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6639 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6641 CFLAGS="$xorg_testset_save_CFLAGS" 6642 fi 6643 6644 found="no" 6645 6646 if test $found = "no" ; then 6647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6649 fi 6650 6651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6653 fi 6654 6655 CFLAGS="$CFLAGS -Wbad-function-cast" 6656 6657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6658 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6659 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6660 if eval test \${$cacheid+y} 6661 then : 6662 printf %s "(cached) " >&6 6663 else case e in #( 6664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6665 /* end confdefs.h. */ 6666 int i; 6667 int 6668 main (void) 6669 { 6670 6671 ; 6672 return 0; 6673 } 6674 _ACEOF 6675 if ac_fn_c_try_link "$LINENO" 6676 then : 6677 eval $cacheid=yes 6678 else case e in #( 6679 e) eval $cacheid=no ;; 6680 esac 6681 fi 6682 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6683 conftest$ac_exeext conftest.$ac_ext ;; 6684 esac 6685 fi 6686 6687 6688 CFLAGS="$xorg_testset_save_CFLAGS" 6689 6690 eval supported=\$$cacheid 6691 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6692 printf '%s\n' "$supported" >&6; } 6693 if test "$supported" = "yes" ; then 6694 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6695 found="yes" 6696 fi 6697 fi 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 xorg_testset_save_CFLAGS="$CFLAGS" 6714 6715 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6717 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6718 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6719 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6720 then : 6721 printf %s "(cached) " >&6 6722 else case e in #( 6723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6724 /* end confdefs.h. */ 6725 int i; 6726 _ACEOF 6727 if ac_fn_c_try_compile "$LINENO" 6728 then : 6729 xorg_cv_cc_flag_unknown_warning_option=yes 6730 else case e in #( 6731 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6732 esac 6733 fi 6734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6735 esac 6736 fi 6737 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6738 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6740 CFLAGS="$xorg_testset_save_CFLAGS" 6741 fi 6742 6743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6746 fi 6747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6748 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6749 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6750 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6751 then : 6752 printf %s "(cached) " >&6 6753 else case e in #( 6754 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6755 /* end confdefs.h. */ 6756 int i; 6757 _ACEOF 6758 if ac_fn_c_try_compile "$LINENO" 6759 then : 6760 xorg_cv_cc_flag_unused_command_line_argument=yes 6761 else case e in #( 6762 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6763 esac 6764 fi 6765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6766 esac 6767 fi 6768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6769 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6771 CFLAGS="$xorg_testset_save_CFLAGS" 6772 fi 6773 6774 found="no" 6775 6776 if test $found = "no" ; then 6777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6779 fi 6780 6781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6783 fi 6784 6785 CFLAGS="$CFLAGS -Wold-style-definition" 6786 6787 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6788 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6789 cacheid=xorg_cv_cc_flag__Wold_style_definition 6790 if eval test \${$cacheid+y} 6791 then : 6792 printf %s "(cached) " >&6 6793 else case e in #( 6794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6795 /* end confdefs.h. */ 6796 int i; 6797 int 6798 main (void) 6799 { 6800 6801 ; 6802 return 0; 6803 } 6804 _ACEOF 6805 if ac_fn_c_try_link "$LINENO" 6806 then : 6807 eval $cacheid=yes 6808 else case e in #( 6809 e) eval $cacheid=no ;; 6810 esac 6811 fi 6812 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6813 conftest$ac_exeext conftest.$ac_ext ;; 6814 esac 6815 fi 6816 6817 6818 CFLAGS="$xorg_testset_save_CFLAGS" 6819 6820 eval supported=\$$cacheid 6821 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6822 printf '%s\n' "$supported" >&6; } 6823 if test "$supported" = "yes" ; then 6824 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6825 found="yes" 6826 fi 6827 fi 6828 6829 if test $found = "no" ; then 6830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6832 fi 6833 6834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6836 fi 6837 6838 CFLAGS="$CFLAGS -fd" 6839 6840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6841 printf %s "checking if $CC supports -fd... " >&6; } 6842 cacheid=xorg_cv_cc_flag__fd 6843 if eval test \${$cacheid+y} 6844 then : 6845 printf %s "(cached) " >&6 6846 else case e in #( 6847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6848 /* end confdefs.h. */ 6849 int i; 6850 int 6851 main (void) 6852 { 6853 6854 ; 6855 return 0; 6856 } 6857 _ACEOF 6858 if ac_fn_c_try_link "$LINENO" 6859 then : 6860 eval $cacheid=yes 6861 else case e in #( 6862 e) eval $cacheid=no ;; 6863 esac 6864 fi 6865 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6866 conftest$ac_exeext conftest.$ac_ext ;; 6867 esac 6868 fi 6869 6870 6871 CFLAGS="$xorg_testset_save_CFLAGS" 6872 6873 eval supported=\$$cacheid 6874 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6875 printf '%s\n' "$supported" >&6; } 6876 if test "$supported" = "yes" ; then 6877 BASE_CFLAGS="$BASE_CFLAGS -fd" 6878 found="yes" 6879 fi 6880 fi 6881 6882 6883 6884 6885 6886 # This chunk adds additional warnings that could catch undesired effects. 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 xorg_testset_save_CFLAGS="$CFLAGS" 6901 6902 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6905 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6906 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6907 then : 6908 printf %s "(cached) " >&6 6909 else case e in #( 6910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6911 /* end confdefs.h. */ 6912 int i; 6913 _ACEOF 6914 if ac_fn_c_try_compile "$LINENO" 6915 then : 6916 xorg_cv_cc_flag_unknown_warning_option=yes 6917 else case e in #( 6918 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6919 esac 6920 fi 6921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6922 esac 6923 fi 6924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6925 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6927 CFLAGS="$xorg_testset_save_CFLAGS" 6928 fi 6929 6930 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6933 fi 6934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6935 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6936 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6937 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6938 then : 6939 printf %s "(cached) " >&6 6940 else case e in #( 6941 e) 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_unused_command_line_argument=yes 6948 else case e in #( 6949 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6950 esac 6951 fi 6952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6953 esac 6954 fi 6955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6956 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6958 CFLAGS="$xorg_testset_save_CFLAGS" 6959 fi 6960 6961 found="no" 6962 6963 if test $found = "no" ; then 6964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6966 fi 6967 6968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6970 fi 6971 6972 CFLAGS="$CFLAGS -Wunused" 6973 6974 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6975 printf %s "checking if $CC supports -Wunused... " >&6; } 6976 cacheid=xorg_cv_cc_flag__Wunused 6977 if eval test \${$cacheid+y} 6978 then : 6979 printf %s "(cached) " >&6 6980 else case e in #( 6981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6982 /* end confdefs.h. */ 6983 int i; 6984 int 6985 main (void) 6986 { 6987 6988 ; 6989 return 0; 6990 } 6991 _ACEOF 6992 if ac_fn_c_try_link "$LINENO" 6993 then : 6994 eval $cacheid=yes 6995 else case e in #( 6996 e) eval $cacheid=no ;; 6997 esac 6998 fi 6999 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7000 conftest$ac_exeext conftest.$ac_ext ;; 7001 esac 7002 fi 7003 7004 7005 CFLAGS="$xorg_testset_save_CFLAGS" 7006 7007 eval supported=\$$cacheid 7008 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7009 printf '%s\n' "$supported" >&6; } 7010 if test "$supported" = "yes" ; then 7011 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 7012 found="yes" 7013 fi 7014 fi 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 xorg_testset_save_CFLAGS="$CFLAGS" 7031 7032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7034 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7035 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7036 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7037 then : 7038 printf %s "(cached) " >&6 7039 else case e in #( 7040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7041 /* end confdefs.h. */ 7042 int i; 7043 _ACEOF 7044 if ac_fn_c_try_compile "$LINENO" 7045 then : 7046 xorg_cv_cc_flag_unknown_warning_option=yes 7047 else case e in #( 7048 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7049 esac 7050 fi 7051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7052 esac 7053 fi 7054 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7055 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7057 CFLAGS="$xorg_testset_save_CFLAGS" 7058 fi 7059 7060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7063 fi 7064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7066 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7067 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7068 then : 7069 printf %s "(cached) " >&6 7070 else case e in #( 7071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7072 /* end confdefs.h. */ 7073 int i; 7074 _ACEOF 7075 if ac_fn_c_try_compile "$LINENO" 7076 then : 7077 xorg_cv_cc_flag_unused_command_line_argument=yes 7078 else case e in #( 7079 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7080 esac 7081 fi 7082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7083 esac 7084 fi 7085 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7086 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7088 CFLAGS="$xorg_testset_save_CFLAGS" 7089 fi 7090 7091 found="no" 7092 7093 if test $found = "no" ; then 7094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7096 fi 7097 7098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7100 fi 7101 7102 CFLAGS="$CFLAGS -Wuninitialized" 7103 7104 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 7105 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 7106 cacheid=xorg_cv_cc_flag__Wuninitialized 7107 if eval test \${$cacheid+y} 7108 then : 7109 printf %s "(cached) " >&6 7110 else case e in #( 7111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7112 /* end confdefs.h. */ 7113 int i; 7114 int 7115 main (void) 7116 { 7117 7118 ; 7119 return 0; 7120 } 7121 _ACEOF 7122 if ac_fn_c_try_link "$LINENO" 7123 then : 7124 eval $cacheid=yes 7125 else case e in #( 7126 e) eval $cacheid=no ;; 7127 esac 7128 fi 7129 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7130 conftest$ac_exeext conftest.$ac_ext ;; 7131 esac 7132 fi 7133 7134 7135 CFLAGS="$xorg_testset_save_CFLAGS" 7136 7137 eval supported=\$$cacheid 7138 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7139 printf '%s\n' "$supported" >&6; } 7140 if test "$supported" = "yes" ; then 7141 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 7142 found="yes" 7143 fi 7144 fi 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 xorg_testset_save_CFLAGS="$CFLAGS" 7161 7162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7164 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7165 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7166 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7167 then : 7168 printf %s "(cached) " >&6 7169 else case e in #( 7170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7171 /* end confdefs.h. */ 7172 int i; 7173 _ACEOF 7174 if ac_fn_c_try_compile "$LINENO" 7175 then : 7176 xorg_cv_cc_flag_unknown_warning_option=yes 7177 else case e in #( 7178 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7179 esac 7180 fi 7181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7182 esac 7183 fi 7184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7185 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7187 CFLAGS="$xorg_testset_save_CFLAGS" 7188 fi 7189 7190 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7193 fi 7194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7195 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7196 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7197 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7198 then : 7199 printf %s "(cached) " >&6 7200 else case e in #( 7201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7202 /* end confdefs.h. */ 7203 int i; 7204 _ACEOF 7205 if ac_fn_c_try_compile "$LINENO" 7206 then : 7207 xorg_cv_cc_flag_unused_command_line_argument=yes 7208 else case e in #( 7209 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7210 esac 7211 fi 7212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7213 esac 7214 fi 7215 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7216 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7218 CFLAGS="$xorg_testset_save_CFLAGS" 7219 fi 7220 7221 found="no" 7222 7223 if test $found = "no" ; then 7224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7226 fi 7227 7228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7230 fi 7231 7232 CFLAGS="$CFLAGS -Wshadow" 7233 7234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7235 printf %s "checking if $CC supports -Wshadow... " >&6; } 7236 cacheid=xorg_cv_cc_flag__Wshadow 7237 if eval test \${$cacheid+y} 7238 then : 7239 printf %s "(cached) " >&6 7240 else case e in #( 7241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7242 /* end confdefs.h. */ 7243 int i; 7244 int 7245 main (void) 7246 { 7247 7248 ; 7249 return 0; 7250 } 7251 _ACEOF 7252 if ac_fn_c_try_link "$LINENO" 7253 then : 7254 eval $cacheid=yes 7255 else case e in #( 7256 e) eval $cacheid=no ;; 7257 esac 7258 fi 7259 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7260 conftest$ac_exeext conftest.$ac_ext ;; 7261 esac 7262 fi 7263 7264 7265 CFLAGS="$xorg_testset_save_CFLAGS" 7266 7267 eval supported=\$$cacheid 7268 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7269 printf '%s\n' "$supported" >&6; } 7270 if test "$supported" = "yes" ; then 7271 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7272 found="yes" 7273 fi 7274 fi 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 xorg_testset_save_CFLAGS="$CFLAGS" 7291 7292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7294 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7295 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7296 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7297 then : 7298 printf %s "(cached) " >&6 7299 else case e in #( 7300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7301 /* end confdefs.h. */ 7302 int i; 7303 _ACEOF 7304 if ac_fn_c_try_compile "$LINENO" 7305 then : 7306 xorg_cv_cc_flag_unknown_warning_option=yes 7307 else case e in #( 7308 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7309 esac 7310 fi 7311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7312 esac 7313 fi 7314 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7315 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7317 CFLAGS="$xorg_testset_save_CFLAGS" 7318 fi 7319 7320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7323 fi 7324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7325 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7326 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7327 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7328 then : 7329 printf %s "(cached) " >&6 7330 else case e in #( 7331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7332 /* end confdefs.h. */ 7333 int i; 7334 _ACEOF 7335 if ac_fn_c_try_compile "$LINENO" 7336 then : 7337 xorg_cv_cc_flag_unused_command_line_argument=yes 7338 else case e in #( 7339 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7340 esac 7341 fi 7342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7343 esac 7344 fi 7345 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7346 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7348 CFLAGS="$xorg_testset_save_CFLAGS" 7349 fi 7350 7351 found="no" 7352 7353 if test $found = "no" ; then 7354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7356 fi 7357 7358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7360 fi 7361 7362 CFLAGS="$CFLAGS -Wmissing-noreturn" 7363 7364 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7365 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7366 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7367 if eval test \${$cacheid+y} 7368 then : 7369 printf %s "(cached) " >&6 7370 else case e in #( 7371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7372 /* end confdefs.h. */ 7373 int i; 7374 int 7375 main (void) 7376 { 7377 7378 ; 7379 return 0; 7380 } 7381 _ACEOF 7382 if ac_fn_c_try_link "$LINENO" 7383 then : 7384 eval $cacheid=yes 7385 else case e in #( 7386 e) eval $cacheid=no ;; 7387 esac 7388 fi 7389 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7390 conftest$ac_exeext conftest.$ac_ext ;; 7391 esac 7392 fi 7393 7394 7395 CFLAGS="$xorg_testset_save_CFLAGS" 7396 7397 eval supported=\$$cacheid 7398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7399 printf '%s\n' "$supported" >&6; } 7400 if test "$supported" = "yes" ; then 7401 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7402 found="yes" 7403 fi 7404 fi 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 xorg_testset_save_CFLAGS="$CFLAGS" 7421 7422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7424 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7425 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7426 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7427 then : 7428 printf %s "(cached) " >&6 7429 else case e in #( 7430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7431 /* end confdefs.h. */ 7432 int i; 7433 _ACEOF 7434 if ac_fn_c_try_compile "$LINENO" 7435 then : 7436 xorg_cv_cc_flag_unknown_warning_option=yes 7437 else case e in #( 7438 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7439 esac 7440 fi 7441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7442 esac 7443 fi 7444 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7445 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7447 CFLAGS="$xorg_testset_save_CFLAGS" 7448 fi 7449 7450 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7453 fi 7454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7456 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7457 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7458 then : 7459 printf %s "(cached) " >&6 7460 else case e in #( 7461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7462 /* end confdefs.h. */ 7463 int i; 7464 _ACEOF 7465 if ac_fn_c_try_compile "$LINENO" 7466 then : 7467 xorg_cv_cc_flag_unused_command_line_argument=yes 7468 else case e in #( 7469 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7470 esac 7471 fi 7472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7473 esac 7474 fi 7475 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7476 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7478 CFLAGS="$xorg_testset_save_CFLAGS" 7479 fi 7480 7481 found="no" 7482 7483 if test $found = "no" ; then 7484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7486 fi 7487 7488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7490 fi 7491 7492 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7493 7494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7495 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7496 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7497 if eval test \${$cacheid+y} 7498 then : 7499 printf %s "(cached) " >&6 7500 else case e in #( 7501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7502 /* end confdefs.h. */ 7503 int i; 7504 int 7505 main (void) 7506 { 7507 7508 ; 7509 return 0; 7510 } 7511 _ACEOF 7512 if ac_fn_c_try_link "$LINENO" 7513 then : 7514 eval $cacheid=yes 7515 else case e in #( 7516 e) eval $cacheid=no ;; 7517 esac 7518 fi 7519 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7520 conftest$ac_exeext conftest.$ac_ext ;; 7521 esac 7522 fi 7523 7524 7525 CFLAGS="$xorg_testset_save_CFLAGS" 7526 7527 eval supported=\$$cacheid 7528 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7529 printf '%s\n' "$supported" >&6; } 7530 if test "$supported" = "yes" ; then 7531 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7532 found="yes" 7533 fi 7534 fi 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 xorg_testset_save_CFLAGS="$CFLAGS" 7551 7552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7554 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7555 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7556 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7557 then : 7558 printf %s "(cached) " >&6 7559 else case e in #( 7560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7561 /* end confdefs.h. */ 7562 int i; 7563 _ACEOF 7564 if ac_fn_c_try_compile "$LINENO" 7565 then : 7566 xorg_cv_cc_flag_unknown_warning_option=yes 7567 else case e in #( 7568 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7569 esac 7570 fi 7571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7572 esac 7573 fi 7574 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7575 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7577 CFLAGS="$xorg_testset_save_CFLAGS" 7578 fi 7579 7580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7583 fi 7584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7586 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7587 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7588 then : 7589 printf %s "(cached) " >&6 7590 else case e in #( 7591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7592 /* end confdefs.h. */ 7593 int i; 7594 _ACEOF 7595 if ac_fn_c_try_compile "$LINENO" 7596 then : 7597 xorg_cv_cc_flag_unused_command_line_argument=yes 7598 else case e in #( 7599 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7600 esac 7601 fi 7602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7603 esac 7604 fi 7605 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7606 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7608 CFLAGS="$xorg_testset_save_CFLAGS" 7609 fi 7610 7611 found="no" 7612 7613 if test $found = "no" ; then 7614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7616 fi 7617 7618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7620 fi 7621 7622 CFLAGS="$CFLAGS -Wredundant-decls" 7623 7624 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7625 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7626 cacheid=xorg_cv_cc_flag__Wredundant_decls 7627 if eval test \${$cacheid+y} 7628 then : 7629 printf %s "(cached) " >&6 7630 else case e in #( 7631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7632 /* end confdefs.h. */ 7633 int i; 7634 int 7635 main (void) 7636 { 7637 7638 ; 7639 return 0; 7640 } 7641 _ACEOF 7642 if ac_fn_c_try_link "$LINENO" 7643 then : 7644 eval $cacheid=yes 7645 else case e in #( 7646 e) eval $cacheid=no ;; 7647 esac 7648 fi 7649 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7650 conftest$ac_exeext conftest.$ac_ext ;; 7651 esac 7652 fi 7653 7654 7655 CFLAGS="$xorg_testset_save_CFLAGS" 7656 7657 eval supported=\$$cacheid 7658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7659 printf '%s\n' "$supported" >&6; } 7660 if test "$supported" = "yes" ; then 7661 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7662 found="yes" 7663 fi 7664 fi 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 xorg_testset_save_CFLAGS="$CFLAGS" 7681 7682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7684 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7685 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7686 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7687 then : 7688 printf %s "(cached) " >&6 7689 else case e in #( 7690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7691 /* end confdefs.h. */ 7692 int i; 7693 _ACEOF 7694 if ac_fn_c_try_compile "$LINENO" 7695 then : 7696 xorg_cv_cc_flag_unknown_warning_option=yes 7697 else case e in #( 7698 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7699 esac 7700 fi 7701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7702 esac 7703 fi 7704 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7705 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7707 CFLAGS="$xorg_testset_save_CFLAGS" 7708 fi 7709 7710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7713 fi 7714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7716 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7717 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7718 then : 7719 printf %s "(cached) " >&6 7720 else case e in #( 7721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7722 /* end confdefs.h. */ 7723 int i; 7724 _ACEOF 7725 if ac_fn_c_try_compile "$LINENO" 7726 then : 7727 xorg_cv_cc_flag_unused_command_line_argument=yes 7728 else case e in #( 7729 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7730 esac 7731 fi 7732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7733 esac 7734 fi 7735 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7736 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7738 CFLAGS="$xorg_testset_save_CFLAGS" 7739 fi 7740 7741 found="no" 7742 7743 if test $found = "no" ; then 7744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7746 fi 7747 7748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7750 fi 7751 7752 CFLAGS="$CFLAGS -Wlogical-op" 7753 7754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7755 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7756 cacheid=xorg_cv_cc_flag__Wlogical_op 7757 if eval test \${$cacheid+y} 7758 then : 7759 printf %s "(cached) " >&6 7760 else case e in #( 7761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7762 /* end confdefs.h. */ 7763 int i; 7764 int 7765 main (void) 7766 { 7767 7768 ; 7769 return 0; 7770 } 7771 _ACEOF 7772 if ac_fn_c_try_link "$LINENO" 7773 then : 7774 eval $cacheid=yes 7775 else case e in #( 7776 e) eval $cacheid=no ;; 7777 esac 7778 fi 7779 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7780 conftest$ac_exeext conftest.$ac_ext ;; 7781 esac 7782 fi 7783 7784 7785 CFLAGS="$xorg_testset_save_CFLAGS" 7786 7787 eval supported=\$$cacheid 7788 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7789 printf '%s\n' "$supported" >&6; } 7790 if test "$supported" = "yes" ; then 7791 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7792 found="yes" 7793 fi 7794 fi 7795 7796 7797 7798 # These are currently disabled because they are noisy. They will be enabled 7799 # in the future once the codebase is sufficiently modernized to silence 7800 # them. For now, I don't want them to drown out the other warnings. 7801 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7802 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7803 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7804 7805 # Turn some warnings into errors, so we don't accidentally get successful builds 7806 # when there are problems that should be fixed. 7807 7808 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 xorg_testset_save_CFLAGS="$CFLAGS" 7823 7824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7827 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7828 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7829 then : 7830 printf %s "(cached) " >&6 7831 else case e in #( 7832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7833 /* end confdefs.h. */ 7834 int i; 7835 _ACEOF 7836 if ac_fn_c_try_compile "$LINENO" 7837 then : 7838 xorg_cv_cc_flag_unknown_warning_option=yes 7839 else case e in #( 7840 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7841 esac 7842 fi 7843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7844 esac 7845 fi 7846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7847 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7849 CFLAGS="$xorg_testset_save_CFLAGS" 7850 fi 7851 7852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7855 fi 7856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7857 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7860 then : 7861 printf %s "(cached) " >&6 7862 else case e in #( 7863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7864 /* end confdefs.h. */ 7865 int i; 7866 _ACEOF 7867 if ac_fn_c_try_compile "$LINENO" 7868 then : 7869 xorg_cv_cc_flag_unused_command_line_argument=yes 7870 else case e in #( 7871 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7872 esac 7873 fi 7874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7875 esac 7876 fi 7877 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7878 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7880 CFLAGS="$xorg_testset_save_CFLAGS" 7881 fi 7882 7883 found="no" 7884 7885 if test $found = "no" ; then 7886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7888 fi 7889 7890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7892 fi 7893 7894 CFLAGS="$CFLAGS -Werror=implicit" 7895 7896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7897 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7898 cacheid=xorg_cv_cc_flag__Werror_implicit 7899 if eval test \${$cacheid+y} 7900 then : 7901 printf %s "(cached) " >&6 7902 else case e in #( 7903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7904 /* end confdefs.h. */ 7905 int i; 7906 int 7907 main (void) 7908 { 7909 7910 ; 7911 return 0; 7912 } 7913 _ACEOF 7914 if ac_fn_c_try_link "$LINENO" 7915 then : 7916 eval $cacheid=yes 7917 else case e in #( 7918 e) eval $cacheid=no ;; 7919 esac 7920 fi 7921 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7922 conftest$ac_exeext conftest.$ac_ext ;; 7923 esac 7924 fi 7925 7926 7927 CFLAGS="$xorg_testset_save_CFLAGS" 7928 7929 eval supported=\$$cacheid 7930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7931 printf '%s\n' "$supported" >&6; } 7932 if test "$supported" = "yes" ; then 7933 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7934 found="yes" 7935 fi 7936 fi 7937 7938 if test $found = "no" ; then 7939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7941 fi 7942 7943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7945 fi 7946 7947 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7948 7949 { 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 7950 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7951 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7952 if eval test \${$cacheid+y} 7953 then : 7954 printf %s "(cached) " >&6 7955 else case e in #( 7956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7957 /* end confdefs.h. */ 7958 int i; 7959 int 7960 main (void) 7961 { 7962 7963 ; 7964 return 0; 7965 } 7966 _ACEOF 7967 if ac_fn_c_try_link "$LINENO" 7968 then : 7969 eval $cacheid=yes 7970 else case e in #( 7971 e) eval $cacheid=no ;; 7972 esac 7973 fi 7974 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7975 conftest$ac_exeext conftest.$ac_ext ;; 7976 esac 7977 fi 7978 7979 7980 CFLAGS="$xorg_testset_save_CFLAGS" 7981 7982 eval supported=\$$cacheid 7983 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7984 printf '%s\n' "$supported" >&6; } 7985 if test "$supported" = "yes" ; then 7986 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7987 found="yes" 7988 fi 7989 fi 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 xorg_testset_save_CFLAGS="$CFLAGS" 8006 8007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8009 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8011 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8012 then : 8013 printf %s "(cached) " >&6 8014 else case e in #( 8015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8016 /* end confdefs.h. */ 8017 int i; 8018 _ACEOF 8019 if ac_fn_c_try_compile "$LINENO" 8020 then : 8021 xorg_cv_cc_flag_unknown_warning_option=yes 8022 else case e in #( 8023 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8024 esac 8025 fi 8026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8027 esac 8028 fi 8029 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8030 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8032 CFLAGS="$xorg_testset_save_CFLAGS" 8033 fi 8034 8035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8038 fi 8039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8040 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8041 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8042 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8043 then : 8044 printf %s "(cached) " >&6 8045 else case e in #( 8046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8047 /* end confdefs.h. */ 8048 int i; 8049 _ACEOF 8050 if ac_fn_c_try_compile "$LINENO" 8051 then : 8052 xorg_cv_cc_flag_unused_command_line_argument=yes 8053 else case e in #( 8054 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8055 esac 8056 fi 8057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8058 esac 8059 fi 8060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8061 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8063 CFLAGS="$xorg_testset_save_CFLAGS" 8064 fi 8065 8066 found="no" 8067 8068 if test $found = "no" ; then 8069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8071 fi 8072 8073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8075 fi 8076 8077 CFLAGS="$CFLAGS -Werror=nonnull" 8078 8079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 8080 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 8081 cacheid=xorg_cv_cc_flag__Werror_nonnull 8082 if eval test \${$cacheid+y} 8083 then : 8084 printf %s "(cached) " >&6 8085 else case e in #( 8086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8087 /* end confdefs.h. */ 8088 int i; 8089 int 8090 main (void) 8091 { 8092 8093 ; 8094 return 0; 8095 } 8096 _ACEOF 8097 if ac_fn_c_try_link "$LINENO" 8098 then : 8099 eval $cacheid=yes 8100 else case e in #( 8101 e) eval $cacheid=no ;; 8102 esac 8103 fi 8104 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8105 conftest$ac_exeext conftest.$ac_ext ;; 8106 esac 8107 fi 8108 8109 8110 CFLAGS="$xorg_testset_save_CFLAGS" 8111 8112 eval supported=\$$cacheid 8113 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8114 printf '%s\n' "$supported" >&6; } 8115 if test "$supported" = "yes" ; then 8116 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 8117 found="yes" 8118 fi 8119 fi 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 xorg_testset_save_CFLAGS="$CFLAGS" 8136 8137 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8139 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8140 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8141 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8142 then : 8143 printf %s "(cached) " >&6 8144 else case e in #( 8145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8146 /* end confdefs.h. */ 8147 int i; 8148 _ACEOF 8149 if ac_fn_c_try_compile "$LINENO" 8150 then : 8151 xorg_cv_cc_flag_unknown_warning_option=yes 8152 else case e in #( 8153 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8154 esac 8155 fi 8156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8157 esac 8158 fi 8159 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8160 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8162 CFLAGS="$xorg_testset_save_CFLAGS" 8163 fi 8164 8165 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8168 fi 8169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8170 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8171 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8172 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8173 then : 8174 printf %s "(cached) " >&6 8175 else case e in #( 8176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8177 /* end confdefs.h. */ 8178 int i; 8179 _ACEOF 8180 if ac_fn_c_try_compile "$LINENO" 8181 then : 8182 xorg_cv_cc_flag_unused_command_line_argument=yes 8183 else case e in #( 8184 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8185 esac 8186 fi 8187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8188 esac 8189 fi 8190 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8191 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8193 CFLAGS="$xorg_testset_save_CFLAGS" 8194 fi 8195 8196 found="no" 8197 8198 if test $found = "no" ; then 8199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8201 fi 8202 8203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8205 fi 8206 8207 CFLAGS="$CFLAGS -Werror=init-self" 8208 8209 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 8210 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 8211 cacheid=xorg_cv_cc_flag__Werror_init_self 8212 if eval test \${$cacheid+y} 8213 then : 8214 printf %s "(cached) " >&6 8215 else case e in #( 8216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8217 /* end confdefs.h. */ 8218 int i; 8219 int 8220 main (void) 8221 { 8222 8223 ; 8224 return 0; 8225 } 8226 _ACEOF 8227 if ac_fn_c_try_link "$LINENO" 8228 then : 8229 eval $cacheid=yes 8230 else case e in #( 8231 e) eval $cacheid=no ;; 8232 esac 8233 fi 8234 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8235 conftest$ac_exeext conftest.$ac_ext ;; 8236 esac 8237 fi 8238 8239 8240 CFLAGS="$xorg_testset_save_CFLAGS" 8241 8242 eval supported=\$$cacheid 8243 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8244 printf '%s\n' "$supported" >&6; } 8245 if test "$supported" = "yes" ; then 8246 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8247 found="yes" 8248 fi 8249 fi 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 xorg_testset_save_CFLAGS="$CFLAGS" 8266 8267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8269 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8270 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8271 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8272 then : 8273 printf %s "(cached) " >&6 8274 else case e in #( 8275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8276 /* end confdefs.h. */ 8277 int i; 8278 _ACEOF 8279 if ac_fn_c_try_compile "$LINENO" 8280 then : 8281 xorg_cv_cc_flag_unknown_warning_option=yes 8282 else case e in #( 8283 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8284 esac 8285 fi 8286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8287 esac 8288 fi 8289 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8290 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8292 CFLAGS="$xorg_testset_save_CFLAGS" 8293 fi 8294 8295 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8298 fi 8299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8300 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8301 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8302 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8303 then : 8304 printf %s "(cached) " >&6 8305 else case e in #( 8306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8307 /* end confdefs.h. */ 8308 int i; 8309 _ACEOF 8310 if ac_fn_c_try_compile "$LINENO" 8311 then : 8312 xorg_cv_cc_flag_unused_command_line_argument=yes 8313 else case e in #( 8314 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8315 esac 8316 fi 8317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8318 esac 8319 fi 8320 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8321 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8323 CFLAGS="$xorg_testset_save_CFLAGS" 8324 fi 8325 8326 found="no" 8327 8328 if test $found = "no" ; then 8329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8331 fi 8332 8333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8335 fi 8336 8337 CFLAGS="$CFLAGS -Werror=main" 8338 8339 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8340 printf %s "checking if $CC supports -Werror=main... " >&6; } 8341 cacheid=xorg_cv_cc_flag__Werror_main 8342 if eval test \${$cacheid+y} 8343 then : 8344 printf %s "(cached) " >&6 8345 else case e in #( 8346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8347 /* end confdefs.h. */ 8348 int i; 8349 int 8350 main (void) 8351 { 8352 8353 ; 8354 return 0; 8355 } 8356 _ACEOF 8357 if ac_fn_c_try_link "$LINENO" 8358 then : 8359 eval $cacheid=yes 8360 else case e in #( 8361 e) eval $cacheid=no ;; 8362 esac 8363 fi 8364 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8365 conftest$ac_exeext conftest.$ac_ext ;; 8366 esac 8367 fi 8368 8369 8370 CFLAGS="$xorg_testset_save_CFLAGS" 8371 8372 eval supported=\$$cacheid 8373 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8374 printf '%s\n' "$supported" >&6; } 8375 if test "$supported" = "yes" ; then 8376 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8377 found="yes" 8378 fi 8379 fi 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 xorg_testset_save_CFLAGS="$CFLAGS" 8396 8397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8399 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8400 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8401 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8402 then : 8403 printf %s "(cached) " >&6 8404 else case e in #( 8405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8406 /* end confdefs.h. */ 8407 int i; 8408 _ACEOF 8409 if ac_fn_c_try_compile "$LINENO" 8410 then : 8411 xorg_cv_cc_flag_unknown_warning_option=yes 8412 else case e in #( 8413 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8414 esac 8415 fi 8416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8417 esac 8418 fi 8419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8420 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8422 CFLAGS="$xorg_testset_save_CFLAGS" 8423 fi 8424 8425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8428 fi 8429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8430 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8431 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8432 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8433 then : 8434 printf %s "(cached) " >&6 8435 else case e in #( 8436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8437 /* end confdefs.h. */ 8438 int i; 8439 _ACEOF 8440 if ac_fn_c_try_compile "$LINENO" 8441 then : 8442 xorg_cv_cc_flag_unused_command_line_argument=yes 8443 else case e in #( 8444 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8445 esac 8446 fi 8447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8448 esac 8449 fi 8450 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8451 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8453 CFLAGS="$xorg_testset_save_CFLAGS" 8454 fi 8455 8456 found="no" 8457 8458 if test $found = "no" ; then 8459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8461 fi 8462 8463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8465 fi 8466 8467 CFLAGS="$CFLAGS -Werror=missing-braces" 8468 8469 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8470 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8471 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8472 if eval test \${$cacheid+y} 8473 then : 8474 printf %s "(cached) " >&6 8475 else case e in #( 8476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477 /* end confdefs.h. */ 8478 int i; 8479 int 8480 main (void) 8481 { 8482 8483 ; 8484 return 0; 8485 } 8486 _ACEOF 8487 if ac_fn_c_try_link "$LINENO" 8488 then : 8489 eval $cacheid=yes 8490 else case e in #( 8491 e) eval $cacheid=no ;; 8492 esac 8493 fi 8494 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8495 conftest$ac_exeext conftest.$ac_ext ;; 8496 esac 8497 fi 8498 8499 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501 8502 eval supported=\$$cacheid 8503 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8504 printf '%s\n' "$supported" >&6; } 8505 if test "$supported" = "yes" ; then 8506 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8507 found="yes" 8508 fi 8509 fi 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 xorg_testset_save_CFLAGS="$CFLAGS" 8526 8527 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8529 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8530 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8531 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8532 then : 8533 printf %s "(cached) " >&6 8534 else case e in #( 8535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8536 /* end confdefs.h. */ 8537 int i; 8538 _ACEOF 8539 if ac_fn_c_try_compile "$LINENO" 8540 then : 8541 xorg_cv_cc_flag_unknown_warning_option=yes 8542 else case e in #( 8543 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8544 esac 8545 fi 8546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8547 esac 8548 fi 8549 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8550 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8552 CFLAGS="$xorg_testset_save_CFLAGS" 8553 fi 8554 8555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8558 fi 8559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8560 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8561 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8562 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8563 then : 8564 printf %s "(cached) " >&6 8565 else case e in #( 8566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8567 /* end confdefs.h. */ 8568 int i; 8569 _ACEOF 8570 if ac_fn_c_try_compile "$LINENO" 8571 then : 8572 xorg_cv_cc_flag_unused_command_line_argument=yes 8573 else case e in #( 8574 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8575 esac 8576 fi 8577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8578 esac 8579 fi 8580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8581 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8583 CFLAGS="$xorg_testset_save_CFLAGS" 8584 fi 8585 8586 found="no" 8587 8588 if test $found = "no" ; then 8589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8591 fi 8592 8593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8595 fi 8596 8597 CFLAGS="$CFLAGS -Werror=sequence-point" 8598 8599 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8600 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8601 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8602 if eval test \${$cacheid+y} 8603 then : 8604 printf %s "(cached) " >&6 8605 else case e in #( 8606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8607 /* end confdefs.h. */ 8608 int i; 8609 int 8610 main (void) 8611 { 8612 8613 ; 8614 return 0; 8615 } 8616 _ACEOF 8617 if ac_fn_c_try_link "$LINENO" 8618 then : 8619 eval $cacheid=yes 8620 else case e in #( 8621 e) eval $cacheid=no ;; 8622 esac 8623 fi 8624 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8625 conftest$ac_exeext conftest.$ac_ext ;; 8626 esac 8627 fi 8628 8629 8630 CFLAGS="$xorg_testset_save_CFLAGS" 8631 8632 eval supported=\$$cacheid 8633 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8634 printf '%s\n' "$supported" >&6; } 8635 if test "$supported" = "yes" ; then 8636 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8637 found="yes" 8638 fi 8639 fi 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 xorg_testset_save_CFLAGS="$CFLAGS" 8656 8657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8659 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8660 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8661 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8662 then : 8663 printf %s "(cached) " >&6 8664 else case e in #( 8665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8666 /* end confdefs.h. */ 8667 int i; 8668 _ACEOF 8669 if ac_fn_c_try_compile "$LINENO" 8670 then : 8671 xorg_cv_cc_flag_unknown_warning_option=yes 8672 else case e in #( 8673 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8674 esac 8675 fi 8676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8677 esac 8678 fi 8679 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8680 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8682 CFLAGS="$xorg_testset_save_CFLAGS" 8683 fi 8684 8685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8688 fi 8689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8690 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8691 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8692 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8693 then : 8694 printf %s "(cached) " >&6 8695 else case e in #( 8696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8697 /* end confdefs.h. */ 8698 int i; 8699 _ACEOF 8700 if ac_fn_c_try_compile "$LINENO" 8701 then : 8702 xorg_cv_cc_flag_unused_command_line_argument=yes 8703 else case e in #( 8704 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8705 esac 8706 fi 8707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8708 esac 8709 fi 8710 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8711 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8713 CFLAGS="$xorg_testset_save_CFLAGS" 8714 fi 8715 8716 found="no" 8717 8718 if test $found = "no" ; then 8719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8721 fi 8722 8723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8725 fi 8726 8727 CFLAGS="$CFLAGS -Werror=return-type" 8728 8729 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8730 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8731 cacheid=xorg_cv_cc_flag__Werror_return_type 8732 if eval test \${$cacheid+y} 8733 then : 8734 printf %s "(cached) " >&6 8735 else case e in #( 8736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8737 /* end confdefs.h. */ 8738 int i; 8739 int 8740 main (void) 8741 { 8742 8743 ; 8744 return 0; 8745 } 8746 _ACEOF 8747 if ac_fn_c_try_link "$LINENO" 8748 then : 8749 eval $cacheid=yes 8750 else case e in #( 8751 e) eval $cacheid=no ;; 8752 esac 8753 fi 8754 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8755 conftest$ac_exeext conftest.$ac_ext ;; 8756 esac 8757 fi 8758 8759 8760 CFLAGS="$xorg_testset_save_CFLAGS" 8761 8762 eval supported=\$$cacheid 8763 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8764 printf '%s\n' "$supported" >&6; } 8765 if test "$supported" = "yes" ; then 8766 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8767 found="yes" 8768 fi 8769 fi 8770 8771 if test $found = "no" ; then 8772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8774 fi 8775 8776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8778 fi 8779 8780 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8781 8782 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8783 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8784 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8785 if eval test \${$cacheid+y} 8786 then : 8787 printf %s "(cached) " >&6 8788 else case e in #( 8789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8790 /* end confdefs.h. */ 8791 int i; 8792 int 8793 main (void) 8794 { 8795 8796 ; 8797 return 0; 8798 } 8799 _ACEOF 8800 if ac_fn_c_try_link "$LINENO" 8801 then : 8802 eval $cacheid=yes 8803 else case e in #( 8804 e) eval $cacheid=no ;; 8805 esac 8806 fi 8807 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8808 conftest$ac_exeext conftest.$ac_ext ;; 8809 esac 8810 fi 8811 8812 8813 CFLAGS="$xorg_testset_save_CFLAGS" 8814 8815 eval supported=\$$cacheid 8816 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8817 printf '%s\n' "$supported" >&6; } 8818 if test "$supported" = "yes" ; then 8819 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8820 found="yes" 8821 fi 8822 fi 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 xorg_testset_save_CFLAGS="$CFLAGS" 8839 8840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8842 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8843 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8844 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8845 then : 8846 printf %s "(cached) " >&6 8847 else case e in #( 8848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8849 /* end confdefs.h. */ 8850 int i; 8851 _ACEOF 8852 if ac_fn_c_try_compile "$LINENO" 8853 then : 8854 xorg_cv_cc_flag_unknown_warning_option=yes 8855 else case e in #( 8856 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8857 esac 8858 fi 8859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8860 esac 8861 fi 8862 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8863 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8865 CFLAGS="$xorg_testset_save_CFLAGS" 8866 fi 8867 8868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8871 fi 8872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8873 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8874 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8875 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8876 then : 8877 printf %s "(cached) " >&6 8878 else case e in #( 8879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8880 /* end confdefs.h. */ 8881 int i; 8882 _ACEOF 8883 if ac_fn_c_try_compile "$LINENO" 8884 then : 8885 xorg_cv_cc_flag_unused_command_line_argument=yes 8886 else case e in #( 8887 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8888 esac 8889 fi 8890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8891 esac 8892 fi 8893 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8894 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8896 CFLAGS="$xorg_testset_save_CFLAGS" 8897 fi 8898 8899 found="no" 8900 8901 if test $found = "no" ; then 8902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8904 fi 8905 8906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8908 fi 8909 8910 CFLAGS="$CFLAGS -Werror=trigraphs" 8911 8912 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8913 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8914 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8915 if eval test \${$cacheid+y} 8916 then : 8917 printf %s "(cached) " >&6 8918 else case e in #( 8919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8920 /* end confdefs.h. */ 8921 int i; 8922 int 8923 main (void) 8924 { 8925 8926 ; 8927 return 0; 8928 } 8929 _ACEOF 8930 if ac_fn_c_try_link "$LINENO" 8931 then : 8932 eval $cacheid=yes 8933 else case e in #( 8934 e) eval $cacheid=no ;; 8935 esac 8936 fi 8937 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8938 conftest$ac_exeext conftest.$ac_ext ;; 8939 esac 8940 fi 8941 8942 8943 CFLAGS="$xorg_testset_save_CFLAGS" 8944 8945 eval supported=\$$cacheid 8946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8947 printf '%s\n' "$supported" >&6; } 8948 if test "$supported" = "yes" ; then 8949 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8950 found="yes" 8951 fi 8952 fi 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 xorg_testset_save_CFLAGS="$CFLAGS" 8969 8970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8973 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8974 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8975 then : 8976 printf %s "(cached) " >&6 8977 else case e in #( 8978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8979 /* end confdefs.h. */ 8980 int i; 8981 _ACEOF 8982 if ac_fn_c_try_compile "$LINENO" 8983 then : 8984 xorg_cv_cc_flag_unknown_warning_option=yes 8985 else case e in #( 8986 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8987 esac 8988 fi 8989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8990 esac 8991 fi 8992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8993 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8995 CFLAGS="$xorg_testset_save_CFLAGS" 8996 fi 8997 8998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9001 fi 9002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9004 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9005 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9006 then : 9007 printf %s "(cached) " >&6 9008 else case e in #( 9009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010 /* end confdefs.h. */ 9011 int i; 9012 _ACEOF 9013 if ac_fn_c_try_compile "$LINENO" 9014 then : 9015 xorg_cv_cc_flag_unused_command_line_argument=yes 9016 else case e in #( 9017 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9018 esac 9019 fi 9020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9021 esac 9022 fi 9023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9024 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9026 CFLAGS="$xorg_testset_save_CFLAGS" 9027 fi 9028 9029 found="no" 9030 9031 if test $found = "no" ; then 9032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9034 fi 9035 9036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9038 fi 9039 9040 CFLAGS="$CFLAGS -Werror=array-bounds" 9041 9042 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 9043 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 9044 cacheid=xorg_cv_cc_flag__Werror_array_bounds 9045 if eval test \${$cacheid+y} 9046 then : 9047 printf %s "(cached) " >&6 9048 else case e in #( 9049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9050 /* end confdefs.h. */ 9051 int i; 9052 int 9053 main (void) 9054 { 9055 9056 ; 9057 return 0; 9058 } 9059 _ACEOF 9060 if ac_fn_c_try_link "$LINENO" 9061 then : 9062 eval $cacheid=yes 9063 else case e in #( 9064 e) eval $cacheid=no ;; 9065 esac 9066 fi 9067 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9068 conftest$ac_exeext conftest.$ac_ext ;; 9069 esac 9070 fi 9071 9072 9073 CFLAGS="$xorg_testset_save_CFLAGS" 9074 9075 eval supported=\$$cacheid 9076 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9077 printf '%s\n' "$supported" >&6; } 9078 if test "$supported" = "yes" ; then 9079 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 9080 found="yes" 9081 fi 9082 fi 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 xorg_testset_save_CFLAGS="$CFLAGS" 9099 9100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9103 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9104 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9105 then : 9106 printf %s "(cached) " >&6 9107 else case e in #( 9108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9109 /* end confdefs.h. */ 9110 int i; 9111 _ACEOF 9112 if ac_fn_c_try_compile "$LINENO" 9113 then : 9114 xorg_cv_cc_flag_unknown_warning_option=yes 9115 else case e in #( 9116 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9117 esac 9118 fi 9119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9120 esac 9121 fi 9122 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9123 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9125 CFLAGS="$xorg_testset_save_CFLAGS" 9126 fi 9127 9128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9131 fi 9132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9133 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9134 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9135 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9136 then : 9137 printf %s "(cached) " >&6 9138 else case e in #( 9139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9140 /* end confdefs.h. */ 9141 int i; 9142 _ACEOF 9143 if ac_fn_c_try_compile "$LINENO" 9144 then : 9145 xorg_cv_cc_flag_unused_command_line_argument=yes 9146 else case e in #( 9147 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9148 esac 9149 fi 9150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9151 esac 9152 fi 9153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9154 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9156 CFLAGS="$xorg_testset_save_CFLAGS" 9157 fi 9158 9159 found="no" 9160 9161 if test $found = "no" ; then 9162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9164 fi 9165 9166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9168 fi 9169 9170 CFLAGS="$CFLAGS -Werror=write-strings" 9171 9172 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 9173 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 9174 cacheid=xorg_cv_cc_flag__Werror_write_strings 9175 if eval test \${$cacheid+y} 9176 then : 9177 printf %s "(cached) " >&6 9178 else case e in #( 9179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9180 /* end confdefs.h. */ 9181 int i; 9182 int 9183 main (void) 9184 { 9185 9186 ; 9187 return 0; 9188 } 9189 _ACEOF 9190 if ac_fn_c_try_link "$LINENO" 9191 then : 9192 eval $cacheid=yes 9193 else case e in #( 9194 e) eval $cacheid=no ;; 9195 esac 9196 fi 9197 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9198 conftest$ac_exeext conftest.$ac_ext ;; 9199 esac 9200 fi 9201 9202 9203 CFLAGS="$xorg_testset_save_CFLAGS" 9204 9205 eval supported=\$$cacheid 9206 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9207 printf '%s\n' "$supported" >&6; } 9208 if test "$supported" = "yes" ; then 9209 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 9210 found="yes" 9211 fi 9212 fi 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 xorg_testset_save_CFLAGS="$CFLAGS" 9229 9230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9233 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9234 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9235 then : 9236 printf %s "(cached) " >&6 9237 else case e in #( 9238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239 /* end confdefs.h. */ 9240 int i; 9241 _ACEOF 9242 if ac_fn_c_try_compile "$LINENO" 9243 then : 9244 xorg_cv_cc_flag_unknown_warning_option=yes 9245 else case e in #( 9246 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9247 esac 9248 fi 9249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9250 esac 9251 fi 9252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9253 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9255 CFLAGS="$xorg_testset_save_CFLAGS" 9256 fi 9257 9258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9261 fi 9262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9263 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9265 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9266 then : 9267 printf %s "(cached) " >&6 9268 else case e in #( 9269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9270 /* end confdefs.h. */ 9271 int i; 9272 _ACEOF 9273 if ac_fn_c_try_compile "$LINENO" 9274 then : 9275 xorg_cv_cc_flag_unused_command_line_argument=yes 9276 else case e in #( 9277 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9278 esac 9279 fi 9280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9281 esac 9282 fi 9283 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9284 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9286 CFLAGS="$xorg_testset_save_CFLAGS" 9287 fi 9288 9289 found="no" 9290 9291 if test $found = "no" ; then 9292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9294 fi 9295 9296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9298 fi 9299 9300 CFLAGS="$CFLAGS -Werror=address" 9301 9302 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9303 printf %s "checking if $CC supports -Werror=address... " >&6; } 9304 cacheid=xorg_cv_cc_flag__Werror_address 9305 if eval test \${$cacheid+y} 9306 then : 9307 printf %s "(cached) " >&6 9308 else case e in #( 9309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9310 /* end confdefs.h. */ 9311 int i; 9312 int 9313 main (void) 9314 { 9315 9316 ; 9317 return 0; 9318 } 9319 _ACEOF 9320 if ac_fn_c_try_link "$LINENO" 9321 then : 9322 eval $cacheid=yes 9323 else case e in #( 9324 e) eval $cacheid=no ;; 9325 esac 9326 fi 9327 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9328 conftest$ac_exeext conftest.$ac_ext ;; 9329 esac 9330 fi 9331 9332 9333 CFLAGS="$xorg_testset_save_CFLAGS" 9334 9335 eval supported=\$$cacheid 9336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9337 printf '%s\n' "$supported" >&6; } 9338 if test "$supported" = "yes" ; then 9339 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9340 found="yes" 9341 fi 9342 fi 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 xorg_testset_save_CFLAGS="$CFLAGS" 9359 9360 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9362 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9363 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9364 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9365 then : 9366 printf %s "(cached) " >&6 9367 else case e in #( 9368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9369 /* end confdefs.h. */ 9370 int i; 9371 _ACEOF 9372 if ac_fn_c_try_compile "$LINENO" 9373 then : 9374 xorg_cv_cc_flag_unknown_warning_option=yes 9375 else case e in #( 9376 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9377 esac 9378 fi 9379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9380 esac 9381 fi 9382 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9383 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9385 CFLAGS="$xorg_testset_save_CFLAGS" 9386 fi 9387 9388 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9391 fi 9392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9393 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9394 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9395 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9396 then : 9397 printf %s "(cached) " >&6 9398 else case e in #( 9399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9400 /* end confdefs.h. */ 9401 int i; 9402 _ACEOF 9403 if ac_fn_c_try_compile "$LINENO" 9404 then : 9405 xorg_cv_cc_flag_unused_command_line_argument=yes 9406 else case e in #( 9407 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9408 esac 9409 fi 9410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9411 esac 9412 fi 9413 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9414 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9416 CFLAGS="$xorg_testset_save_CFLAGS" 9417 fi 9418 9419 found="no" 9420 9421 if test $found = "no" ; then 9422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9424 fi 9425 9426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9428 fi 9429 9430 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9431 9432 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9433 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9434 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9435 if eval test \${$cacheid+y} 9436 then : 9437 printf %s "(cached) " >&6 9438 else case e in #( 9439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9440 /* end confdefs.h. */ 9441 int i; 9442 int 9443 main (void) 9444 { 9445 9446 ; 9447 return 0; 9448 } 9449 _ACEOF 9450 if ac_fn_c_try_link "$LINENO" 9451 then : 9452 eval $cacheid=yes 9453 else case e in #( 9454 e) eval $cacheid=no ;; 9455 esac 9456 fi 9457 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9458 conftest$ac_exeext conftest.$ac_ext ;; 9459 esac 9460 fi 9461 9462 9463 CFLAGS="$xorg_testset_save_CFLAGS" 9464 9465 eval supported=\$$cacheid 9466 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9467 printf '%s\n' "$supported" >&6; } 9468 if test "$supported" = "yes" ; then 9469 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9470 found="yes" 9471 fi 9472 fi 9473 9474 if test $found = "no" ; then 9475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9477 fi 9478 9479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9481 fi 9482 9483 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9484 9485 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9486 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9487 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9488 if eval test \${$cacheid+y} 9489 then : 9490 printf %s "(cached) " >&6 9491 else case e in #( 9492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9493 /* end confdefs.h. */ 9494 int i; 9495 int 9496 main (void) 9497 { 9498 9499 ; 9500 return 0; 9501 } 9502 _ACEOF 9503 if ac_fn_c_try_link "$LINENO" 9504 then : 9505 eval $cacheid=yes 9506 else case e in #( 9507 e) eval $cacheid=no ;; 9508 esac 9509 fi 9510 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9511 conftest$ac_exeext conftest.$ac_ext ;; 9512 esac 9513 fi 9514 9515 9516 CFLAGS="$xorg_testset_save_CFLAGS" 9517 9518 eval supported=\$$cacheid 9519 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9520 printf '%s\n' "$supported" >&6; } 9521 if test "$supported" = "yes" ; then 9522 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9523 found="yes" 9524 fi 9525 fi 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 xorg_testset_save_CFLAGS="$CFLAGS" 9542 9543 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9545 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9546 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9547 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9548 then : 9549 printf %s "(cached) " >&6 9550 else case e in #( 9551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9552 /* end confdefs.h. */ 9553 int i; 9554 _ACEOF 9555 if ac_fn_c_try_compile "$LINENO" 9556 then : 9557 xorg_cv_cc_flag_unknown_warning_option=yes 9558 else case e in #( 9559 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9560 esac 9561 fi 9562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9563 esac 9564 fi 9565 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9566 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9568 CFLAGS="$xorg_testset_save_CFLAGS" 9569 fi 9570 9571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9574 fi 9575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9576 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9577 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9578 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9579 then : 9580 printf %s "(cached) " >&6 9581 else case e in #( 9582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9583 /* end confdefs.h. */ 9584 int i; 9585 _ACEOF 9586 if ac_fn_c_try_compile "$LINENO" 9587 then : 9588 xorg_cv_cc_flag_unused_command_line_argument=yes 9589 else case e in #( 9590 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9591 esac 9592 fi 9593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9594 esac 9595 fi 9596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9597 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9599 CFLAGS="$xorg_testset_save_CFLAGS" 9600 fi 9601 9602 found="no" 9603 9604 if test $found = "no" ; then 9605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9607 fi 9608 9609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9611 fi 9612 9613 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9614 9615 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9616 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9617 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9618 if eval test \${$cacheid+y} 9619 then : 9620 printf %s "(cached) " >&6 9621 else case e in #( 9622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9623 /* end confdefs.h. */ 9624 int i; 9625 int 9626 main (void) 9627 { 9628 9629 ; 9630 return 0; 9631 } 9632 _ACEOF 9633 if ac_fn_c_try_link "$LINENO" 9634 then : 9635 eval $cacheid=yes 9636 else case e in #( 9637 e) eval $cacheid=no ;; 9638 esac 9639 fi 9640 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9641 conftest$ac_exeext conftest.$ac_ext ;; 9642 esac 9643 fi 9644 9645 9646 CFLAGS="$xorg_testset_save_CFLAGS" 9647 9648 eval supported=\$$cacheid 9649 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9650 printf '%s\n' "$supported" >&6; } 9651 if test "$supported" = "yes" ; then 9652 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9653 found="yes" 9654 fi 9655 fi 9656 9657 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9658 else 9659 { 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 9660 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;} 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 xorg_testset_save_CFLAGS="$CFLAGS" 9675 9676 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9678 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9679 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9680 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9681 then : 9682 printf %s "(cached) " >&6 9683 else case e in #( 9684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9685 /* end confdefs.h. */ 9686 int i; 9687 _ACEOF 9688 if ac_fn_c_try_compile "$LINENO" 9689 then : 9690 xorg_cv_cc_flag_unknown_warning_option=yes 9691 else case e in #( 9692 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9693 esac 9694 fi 9695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9696 esac 9697 fi 9698 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9699 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9701 CFLAGS="$xorg_testset_save_CFLAGS" 9702 fi 9703 9704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9707 fi 9708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9709 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9710 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9711 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9712 then : 9713 printf %s "(cached) " >&6 9714 else case e in #( 9715 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9716 /* end confdefs.h. */ 9717 int i; 9718 _ACEOF 9719 if ac_fn_c_try_compile "$LINENO" 9720 then : 9721 xorg_cv_cc_flag_unused_command_line_argument=yes 9722 else case e in #( 9723 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9724 esac 9725 fi 9726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9727 esac 9728 fi 9729 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9730 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9732 CFLAGS="$xorg_testset_save_CFLAGS" 9733 fi 9734 9735 found="no" 9736 9737 if test $found = "no" ; then 9738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9740 fi 9741 9742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9744 fi 9745 9746 CFLAGS="$CFLAGS -Wimplicit" 9747 9748 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9749 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9750 cacheid=xorg_cv_cc_flag__Wimplicit 9751 if eval test \${$cacheid+y} 9752 then : 9753 printf %s "(cached) " >&6 9754 else case e in #( 9755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9756 /* end confdefs.h. */ 9757 int i; 9758 int 9759 main (void) 9760 { 9761 9762 ; 9763 return 0; 9764 } 9765 _ACEOF 9766 if ac_fn_c_try_link "$LINENO" 9767 then : 9768 eval $cacheid=yes 9769 else case e in #( 9770 e) eval $cacheid=no ;; 9771 esac 9772 fi 9773 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9774 conftest$ac_exeext conftest.$ac_ext ;; 9775 esac 9776 fi 9777 9778 9779 CFLAGS="$xorg_testset_save_CFLAGS" 9780 9781 eval supported=\$$cacheid 9782 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9783 printf '%s\n' "$supported" >&6; } 9784 if test "$supported" = "yes" ; then 9785 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9786 found="yes" 9787 fi 9788 fi 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 xorg_testset_save_CFLAGS="$CFLAGS" 9805 9806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9808 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9809 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9810 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9811 then : 9812 printf %s "(cached) " >&6 9813 else case e in #( 9814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9815 /* end confdefs.h. */ 9816 int i; 9817 _ACEOF 9818 if ac_fn_c_try_compile "$LINENO" 9819 then : 9820 xorg_cv_cc_flag_unknown_warning_option=yes 9821 else case e in #( 9822 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9823 esac 9824 fi 9825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9826 esac 9827 fi 9828 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9829 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9831 CFLAGS="$xorg_testset_save_CFLAGS" 9832 fi 9833 9834 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9837 fi 9838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9839 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9840 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9841 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9842 then : 9843 printf %s "(cached) " >&6 9844 else case e in #( 9845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9846 /* end confdefs.h. */ 9847 int i; 9848 _ACEOF 9849 if ac_fn_c_try_compile "$LINENO" 9850 then : 9851 xorg_cv_cc_flag_unused_command_line_argument=yes 9852 else case e in #( 9853 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9854 esac 9855 fi 9856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9857 esac 9858 fi 9859 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9860 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9862 CFLAGS="$xorg_testset_save_CFLAGS" 9863 fi 9864 9865 found="no" 9866 9867 if test $found = "no" ; then 9868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9870 fi 9871 9872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9874 fi 9875 9876 CFLAGS="$CFLAGS -Wnonnull" 9877 9878 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9879 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9880 cacheid=xorg_cv_cc_flag__Wnonnull 9881 if eval test \${$cacheid+y} 9882 then : 9883 printf %s "(cached) " >&6 9884 else case e in #( 9885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9886 /* end confdefs.h. */ 9887 int i; 9888 int 9889 main (void) 9890 { 9891 9892 ; 9893 return 0; 9894 } 9895 _ACEOF 9896 if ac_fn_c_try_link "$LINENO" 9897 then : 9898 eval $cacheid=yes 9899 else case e in #( 9900 e) eval $cacheid=no ;; 9901 esac 9902 fi 9903 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9904 conftest$ac_exeext conftest.$ac_ext ;; 9905 esac 9906 fi 9907 9908 9909 CFLAGS="$xorg_testset_save_CFLAGS" 9910 9911 eval supported=\$$cacheid 9912 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9913 printf '%s\n' "$supported" >&6; } 9914 if test "$supported" = "yes" ; then 9915 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9916 found="yes" 9917 fi 9918 fi 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 xorg_testset_save_CFLAGS="$CFLAGS" 9935 9936 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9938 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9939 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9940 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9941 then : 9942 printf %s "(cached) " >&6 9943 else case e in #( 9944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9945 /* end confdefs.h. */ 9946 int i; 9947 _ACEOF 9948 if ac_fn_c_try_compile "$LINENO" 9949 then : 9950 xorg_cv_cc_flag_unknown_warning_option=yes 9951 else case e in #( 9952 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9953 esac 9954 fi 9955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9956 esac 9957 fi 9958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9959 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9961 CFLAGS="$xorg_testset_save_CFLAGS" 9962 fi 9963 9964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9967 fi 9968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9969 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9970 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9971 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9972 then : 9973 printf %s "(cached) " >&6 9974 else case e in #( 9975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9976 /* end confdefs.h. */ 9977 int i; 9978 _ACEOF 9979 if ac_fn_c_try_compile "$LINENO" 9980 then : 9981 xorg_cv_cc_flag_unused_command_line_argument=yes 9982 else case e in #( 9983 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9984 esac 9985 fi 9986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9987 esac 9988 fi 9989 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9990 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9992 CFLAGS="$xorg_testset_save_CFLAGS" 9993 fi 9994 9995 found="no" 9996 9997 if test $found = "no" ; then 9998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10000 fi 10001 10002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10004 fi 10005 10006 CFLAGS="$CFLAGS -Winit-self" 10007 10008 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 10009 printf %s "checking if $CC supports -Winit-self... " >&6; } 10010 cacheid=xorg_cv_cc_flag__Winit_self 10011 if eval test \${$cacheid+y} 10012 then : 10013 printf %s "(cached) " >&6 10014 else case e in #( 10015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10016 /* end confdefs.h. */ 10017 int i; 10018 int 10019 main (void) 10020 { 10021 10022 ; 10023 return 0; 10024 } 10025 _ACEOF 10026 if ac_fn_c_try_link "$LINENO" 10027 then : 10028 eval $cacheid=yes 10029 else case e in #( 10030 e) eval $cacheid=no ;; 10031 esac 10032 fi 10033 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10034 conftest$ac_exeext conftest.$ac_ext ;; 10035 esac 10036 fi 10037 10038 10039 CFLAGS="$xorg_testset_save_CFLAGS" 10040 10041 eval supported=\$$cacheid 10042 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10043 printf '%s\n' "$supported" >&6; } 10044 if test "$supported" = "yes" ; then 10045 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 10046 found="yes" 10047 fi 10048 fi 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 xorg_testset_save_CFLAGS="$CFLAGS" 10065 10066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10068 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10069 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10070 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10071 then : 10072 printf %s "(cached) " >&6 10073 else case e in #( 10074 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10075 /* end confdefs.h. */ 10076 int i; 10077 _ACEOF 10078 if ac_fn_c_try_compile "$LINENO" 10079 then : 10080 xorg_cv_cc_flag_unknown_warning_option=yes 10081 else case e in #( 10082 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10083 esac 10084 fi 10085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10086 esac 10087 fi 10088 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10089 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10091 CFLAGS="$xorg_testset_save_CFLAGS" 10092 fi 10093 10094 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10097 fi 10098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10099 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10100 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10101 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10102 then : 10103 printf %s "(cached) " >&6 10104 else case e in #( 10105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10106 /* end confdefs.h. */ 10107 int i; 10108 _ACEOF 10109 if ac_fn_c_try_compile "$LINENO" 10110 then : 10111 xorg_cv_cc_flag_unused_command_line_argument=yes 10112 else case e in #( 10113 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10114 esac 10115 fi 10116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10117 esac 10118 fi 10119 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10120 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10122 CFLAGS="$xorg_testset_save_CFLAGS" 10123 fi 10124 10125 found="no" 10126 10127 if test $found = "no" ; then 10128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10130 fi 10131 10132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10134 fi 10135 10136 CFLAGS="$CFLAGS -Wmain" 10137 10138 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 10139 printf %s "checking if $CC supports -Wmain... " >&6; } 10140 cacheid=xorg_cv_cc_flag__Wmain 10141 if eval test \${$cacheid+y} 10142 then : 10143 printf %s "(cached) " >&6 10144 else case e in #( 10145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10146 /* end confdefs.h. */ 10147 int i; 10148 int 10149 main (void) 10150 { 10151 10152 ; 10153 return 0; 10154 } 10155 _ACEOF 10156 if ac_fn_c_try_link "$LINENO" 10157 then : 10158 eval $cacheid=yes 10159 else case e in #( 10160 e) eval $cacheid=no ;; 10161 esac 10162 fi 10163 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10164 conftest$ac_exeext conftest.$ac_ext ;; 10165 esac 10166 fi 10167 10168 10169 CFLAGS="$xorg_testset_save_CFLAGS" 10170 10171 eval supported=\$$cacheid 10172 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10173 printf '%s\n' "$supported" >&6; } 10174 if test "$supported" = "yes" ; then 10175 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 10176 found="yes" 10177 fi 10178 fi 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 xorg_testset_save_CFLAGS="$CFLAGS" 10195 10196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10198 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10199 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10200 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10201 then : 10202 printf %s "(cached) " >&6 10203 else case e in #( 10204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10205 /* end confdefs.h. */ 10206 int i; 10207 _ACEOF 10208 if ac_fn_c_try_compile "$LINENO" 10209 then : 10210 xorg_cv_cc_flag_unknown_warning_option=yes 10211 else case e in #( 10212 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10213 esac 10214 fi 10215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10216 esac 10217 fi 10218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10219 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10221 CFLAGS="$xorg_testset_save_CFLAGS" 10222 fi 10223 10224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10227 fi 10228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10229 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10230 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10231 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10232 then : 10233 printf %s "(cached) " >&6 10234 else case e in #( 10235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10236 /* end confdefs.h. */ 10237 int i; 10238 _ACEOF 10239 if ac_fn_c_try_compile "$LINENO" 10240 then : 10241 xorg_cv_cc_flag_unused_command_line_argument=yes 10242 else case e in #( 10243 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10244 esac 10245 fi 10246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10247 esac 10248 fi 10249 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10250 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10252 CFLAGS="$xorg_testset_save_CFLAGS" 10253 fi 10254 10255 found="no" 10256 10257 if test $found = "no" ; then 10258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10260 fi 10261 10262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10264 fi 10265 10266 CFLAGS="$CFLAGS -Wmissing-braces" 10267 10268 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10269 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 10270 cacheid=xorg_cv_cc_flag__Wmissing_braces 10271 if eval test \${$cacheid+y} 10272 then : 10273 printf %s "(cached) " >&6 10274 else case e in #( 10275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10276 /* end confdefs.h. */ 10277 int i; 10278 int 10279 main (void) 10280 { 10281 10282 ; 10283 return 0; 10284 } 10285 _ACEOF 10286 if ac_fn_c_try_link "$LINENO" 10287 then : 10288 eval $cacheid=yes 10289 else case e in #( 10290 e) eval $cacheid=no ;; 10291 esac 10292 fi 10293 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10294 conftest$ac_exeext conftest.$ac_ext ;; 10295 esac 10296 fi 10297 10298 10299 CFLAGS="$xorg_testset_save_CFLAGS" 10300 10301 eval supported=\$$cacheid 10302 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10303 printf '%s\n' "$supported" >&6; } 10304 if test "$supported" = "yes" ; then 10305 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10306 found="yes" 10307 fi 10308 fi 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 xorg_testset_save_CFLAGS="$CFLAGS" 10325 10326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10328 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10329 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10330 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10331 then : 10332 printf %s "(cached) " >&6 10333 else case e in #( 10334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10335 /* end confdefs.h. */ 10336 int i; 10337 _ACEOF 10338 if ac_fn_c_try_compile "$LINENO" 10339 then : 10340 xorg_cv_cc_flag_unknown_warning_option=yes 10341 else case e in #( 10342 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10343 esac 10344 fi 10345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10346 esac 10347 fi 10348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10349 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10351 CFLAGS="$xorg_testset_save_CFLAGS" 10352 fi 10353 10354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10357 fi 10358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10359 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10360 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10361 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10362 then : 10363 printf %s "(cached) " >&6 10364 else case e in #( 10365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10366 /* end confdefs.h. */ 10367 int i; 10368 _ACEOF 10369 if ac_fn_c_try_compile "$LINENO" 10370 then : 10371 xorg_cv_cc_flag_unused_command_line_argument=yes 10372 else case e in #( 10373 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10374 esac 10375 fi 10376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10377 esac 10378 fi 10379 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10380 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10382 CFLAGS="$xorg_testset_save_CFLAGS" 10383 fi 10384 10385 found="no" 10386 10387 if test $found = "no" ; then 10388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10390 fi 10391 10392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10394 fi 10395 10396 CFLAGS="$CFLAGS -Wsequence-point" 10397 10398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10399 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10400 cacheid=xorg_cv_cc_flag__Wsequence_point 10401 if eval test \${$cacheid+y} 10402 then : 10403 printf %s "(cached) " >&6 10404 else case e in #( 10405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10406 /* end confdefs.h. */ 10407 int i; 10408 int 10409 main (void) 10410 { 10411 10412 ; 10413 return 0; 10414 } 10415 _ACEOF 10416 if ac_fn_c_try_link "$LINENO" 10417 then : 10418 eval $cacheid=yes 10419 else case e in #( 10420 e) eval $cacheid=no ;; 10421 esac 10422 fi 10423 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10424 conftest$ac_exeext conftest.$ac_ext ;; 10425 esac 10426 fi 10427 10428 10429 CFLAGS="$xorg_testset_save_CFLAGS" 10430 10431 eval supported=\$$cacheid 10432 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10433 printf '%s\n' "$supported" >&6; } 10434 if test "$supported" = "yes" ; then 10435 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10436 found="yes" 10437 fi 10438 fi 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 xorg_testset_save_CFLAGS="$CFLAGS" 10455 10456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10458 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10459 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10460 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10461 then : 10462 printf %s "(cached) " >&6 10463 else case e in #( 10464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10465 /* end confdefs.h. */ 10466 int i; 10467 _ACEOF 10468 if ac_fn_c_try_compile "$LINENO" 10469 then : 10470 xorg_cv_cc_flag_unknown_warning_option=yes 10471 else case e in #( 10472 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10473 esac 10474 fi 10475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10476 esac 10477 fi 10478 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10479 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10481 CFLAGS="$xorg_testset_save_CFLAGS" 10482 fi 10483 10484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10487 fi 10488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10489 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10490 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10491 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10492 then : 10493 printf %s "(cached) " >&6 10494 else case e in #( 10495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10496 /* end confdefs.h. */ 10497 int i; 10498 _ACEOF 10499 if ac_fn_c_try_compile "$LINENO" 10500 then : 10501 xorg_cv_cc_flag_unused_command_line_argument=yes 10502 else case e in #( 10503 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10504 esac 10505 fi 10506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10507 esac 10508 fi 10509 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10510 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10512 CFLAGS="$xorg_testset_save_CFLAGS" 10513 fi 10514 10515 found="no" 10516 10517 if test $found = "no" ; then 10518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10520 fi 10521 10522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10524 fi 10525 10526 CFLAGS="$CFLAGS -Wreturn-type" 10527 10528 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10529 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10530 cacheid=xorg_cv_cc_flag__Wreturn_type 10531 if eval test \${$cacheid+y} 10532 then : 10533 printf %s "(cached) " >&6 10534 else case e in #( 10535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10536 /* end confdefs.h. */ 10537 int i; 10538 int 10539 main (void) 10540 { 10541 10542 ; 10543 return 0; 10544 } 10545 _ACEOF 10546 if ac_fn_c_try_link "$LINENO" 10547 then : 10548 eval $cacheid=yes 10549 else case e in #( 10550 e) eval $cacheid=no ;; 10551 esac 10552 fi 10553 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10554 conftest$ac_exeext conftest.$ac_ext ;; 10555 esac 10556 fi 10557 10558 10559 CFLAGS="$xorg_testset_save_CFLAGS" 10560 10561 eval supported=\$$cacheid 10562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10563 printf '%s\n' "$supported" >&6; } 10564 if test "$supported" = "yes" ; then 10565 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10566 found="yes" 10567 fi 10568 fi 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 xorg_testset_save_CFLAGS="$CFLAGS" 10585 10586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10588 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10589 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10590 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10591 then : 10592 printf %s "(cached) " >&6 10593 else case e in #( 10594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10595 /* end confdefs.h. */ 10596 int i; 10597 _ACEOF 10598 if ac_fn_c_try_compile "$LINENO" 10599 then : 10600 xorg_cv_cc_flag_unknown_warning_option=yes 10601 else case e in #( 10602 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10603 esac 10604 fi 10605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10606 esac 10607 fi 10608 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10609 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10611 CFLAGS="$xorg_testset_save_CFLAGS" 10612 fi 10613 10614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10617 fi 10618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10619 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10620 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10621 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10622 then : 10623 printf %s "(cached) " >&6 10624 else case e in #( 10625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10626 /* end confdefs.h. */ 10627 int i; 10628 _ACEOF 10629 if ac_fn_c_try_compile "$LINENO" 10630 then : 10631 xorg_cv_cc_flag_unused_command_line_argument=yes 10632 else case e in #( 10633 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10634 esac 10635 fi 10636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10637 esac 10638 fi 10639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10640 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10642 CFLAGS="$xorg_testset_save_CFLAGS" 10643 fi 10644 10645 found="no" 10646 10647 if test $found = "no" ; then 10648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10650 fi 10651 10652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10654 fi 10655 10656 CFLAGS="$CFLAGS -Wtrigraphs" 10657 10658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10659 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10660 cacheid=xorg_cv_cc_flag__Wtrigraphs 10661 if eval test \${$cacheid+y} 10662 then : 10663 printf %s "(cached) " >&6 10664 else case e in #( 10665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10666 /* end confdefs.h. */ 10667 int i; 10668 int 10669 main (void) 10670 { 10671 10672 ; 10673 return 0; 10674 } 10675 _ACEOF 10676 if ac_fn_c_try_link "$LINENO" 10677 then : 10678 eval $cacheid=yes 10679 else case e in #( 10680 e) eval $cacheid=no ;; 10681 esac 10682 fi 10683 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10684 conftest$ac_exeext conftest.$ac_ext ;; 10685 esac 10686 fi 10687 10688 10689 CFLAGS="$xorg_testset_save_CFLAGS" 10690 10691 eval supported=\$$cacheid 10692 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10693 printf '%s\n' "$supported" >&6; } 10694 if test "$supported" = "yes" ; then 10695 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10696 found="yes" 10697 fi 10698 fi 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 xorg_testset_save_CFLAGS="$CFLAGS" 10715 10716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10718 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10720 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10721 then : 10722 printf %s "(cached) " >&6 10723 else case e in #( 10724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10725 /* end confdefs.h. */ 10726 int i; 10727 _ACEOF 10728 if ac_fn_c_try_compile "$LINENO" 10729 then : 10730 xorg_cv_cc_flag_unknown_warning_option=yes 10731 else case e in #( 10732 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10733 esac 10734 fi 10735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10736 esac 10737 fi 10738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10739 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10741 CFLAGS="$xorg_testset_save_CFLAGS" 10742 fi 10743 10744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10747 fi 10748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10750 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10751 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10752 then : 10753 printf %s "(cached) " >&6 10754 else case e in #( 10755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10756 /* end confdefs.h. */ 10757 int i; 10758 _ACEOF 10759 if ac_fn_c_try_compile "$LINENO" 10760 then : 10761 xorg_cv_cc_flag_unused_command_line_argument=yes 10762 else case e in #( 10763 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10764 esac 10765 fi 10766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10767 esac 10768 fi 10769 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10770 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10772 CFLAGS="$xorg_testset_save_CFLAGS" 10773 fi 10774 10775 found="no" 10776 10777 if test $found = "no" ; then 10778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10780 fi 10781 10782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10784 fi 10785 10786 CFLAGS="$CFLAGS -Warray-bounds" 10787 10788 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10789 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10790 cacheid=xorg_cv_cc_flag__Warray_bounds 10791 if eval test \${$cacheid+y} 10792 then : 10793 printf %s "(cached) " >&6 10794 else case e in #( 10795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10796 /* end confdefs.h. */ 10797 int i; 10798 int 10799 main (void) 10800 { 10801 10802 ; 10803 return 0; 10804 } 10805 _ACEOF 10806 if ac_fn_c_try_link "$LINENO" 10807 then : 10808 eval $cacheid=yes 10809 else case e in #( 10810 e) eval $cacheid=no ;; 10811 esac 10812 fi 10813 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10814 conftest$ac_exeext conftest.$ac_ext ;; 10815 esac 10816 fi 10817 10818 10819 CFLAGS="$xorg_testset_save_CFLAGS" 10820 10821 eval supported=\$$cacheid 10822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10823 printf '%s\n' "$supported" >&6; } 10824 if test "$supported" = "yes" ; then 10825 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10826 found="yes" 10827 fi 10828 fi 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 xorg_testset_save_CFLAGS="$CFLAGS" 10845 10846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10848 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10849 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10850 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10851 then : 10852 printf %s "(cached) " >&6 10853 else case e in #( 10854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10855 /* end confdefs.h. */ 10856 int i; 10857 _ACEOF 10858 if ac_fn_c_try_compile "$LINENO" 10859 then : 10860 xorg_cv_cc_flag_unknown_warning_option=yes 10861 else case e in #( 10862 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10863 esac 10864 fi 10865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10866 esac 10867 fi 10868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10869 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10871 CFLAGS="$xorg_testset_save_CFLAGS" 10872 fi 10873 10874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10877 fi 10878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10879 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10880 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10881 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10882 then : 10883 printf %s "(cached) " >&6 10884 else case e in #( 10885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10886 /* end confdefs.h. */ 10887 int i; 10888 _ACEOF 10889 if ac_fn_c_try_compile "$LINENO" 10890 then : 10891 xorg_cv_cc_flag_unused_command_line_argument=yes 10892 else case e in #( 10893 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10894 esac 10895 fi 10896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10897 esac 10898 fi 10899 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10900 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10902 CFLAGS="$xorg_testset_save_CFLAGS" 10903 fi 10904 10905 found="no" 10906 10907 if test $found = "no" ; then 10908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10910 fi 10911 10912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10914 fi 10915 10916 CFLAGS="$CFLAGS -Wwrite-strings" 10917 10918 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10919 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10920 cacheid=xorg_cv_cc_flag__Wwrite_strings 10921 if eval test \${$cacheid+y} 10922 then : 10923 printf %s "(cached) " >&6 10924 else case e in #( 10925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10926 /* end confdefs.h. */ 10927 int i; 10928 int 10929 main (void) 10930 { 10931 10932 ; 10933 return 0; 10934 } 10935 _ACEOF 10936 if ac_fn_c_try_link "$LINENO" 10937 then : 10938 eval $cacheid=yes 10939 else case e in #( 10940 e) eval $cacheid=no ;; 10941 esac 10942 fi 10943 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10944 conftest$ac_exeext conftest.$ac_ext ;; 10945 esac 10946 fi 10947 10948 10949 CFLAGS="$xorg_testset_save_CFLAGS" 10950 10951 eval supported=\$$cacheid 10952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10953 printf '%s\n' "$supported" >&6; } 10954 if test "$supported" = "yes" ; then 10955 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10956 found="yes" 10957 fi 10958 fi 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 xorg_testset_save_CFLAGS="$CFLAGS" 10975 10976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10980 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10981 then : 10982 printf %s "(cached) " >&6 10983 else case e in #( 10984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10985 /* end confdefs.h. */ 10986 int i; 10987 _ACEOF 10988 if ac_fn_c_try_compile "$LINENO" 10989 then : 10990 xorg_cv_cc_flag_unknown_warning_option=yes 10991 else case e in #( 10992 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10993 esac 10994 fi 10995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10996 esac 10997 fi 10998 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10999 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11001 CFLAGS="$xorg_testset_save_CFLAGS" 11002 fi 11003 11004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11007 fi 11008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11009 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11010 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11011 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11012 then : 11013 printf %s "(cached) " >&6 11014 else case e in #( 11015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11016 /* end confdefs.h. */ 11017 int i; 11018 _ACEOF 11019 if ac_fn_c_try_compile "$LINENO" 11020 then : 11021 xorg_cv_cc_flag_unused_command_line_argument=yes 11022 else case e in #( 11023 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11024 esac 11025 fi 11026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11027 esac 11028 fi 11029 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11030 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11032 CFLAGS="$xorg_testset_save_CFLAGS" 11033 fi 11034 11035 found="no" 11036 11037 if test $found = "no" ; then 11038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11040 fi 11041 11042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11044 fi 11045 11046 CFLAGS="$CFLAGS -Waddress" 11047 11048 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 11049 printf %s "checking if $CC supports -Waddress... " >&6; } 11050 cacheid=xorg_cv_cc_flag__Waddress 11051 if eval test \${$cacheid+y} 11052 then : 11053 printf %s "(cached) " >&6 11054 else case e in #( 11055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11056 /* end confdefs.h. */ 11057 int i; 11058 int 11059 main (void) 11060 { 11061 11062 ; 11063 return 0; 11064 } 11065 _ACEOF 11066 if ac_fn_c_try_link "$LINENO" 11067 then : 11068 eval $cacheid=yes 11069 else case e in #( 11070 e) eval $cacheid=no ;; 11071 esac 11072 fi 11073 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11074 conftest$ac_exeext conftest.$ac_ext ;; 11075 esac 11076 fi 11077 11078 11079 CFLAGS="$xorg_testset_save_CFLAGS" 11080 11081 eval supported=\$$cacheid 11082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11083 printf '%s\n' "$supported" >&6; } 11084 if test "$supported" = "yes" ; then 11085 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 11086 found="yes" 11087 fi 11088 fi 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 xorg_testset_save_CFLAGS="$CFLAGS" 11105 11106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11108 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11109 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11110 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11111 then : 11112 printf %s "(cached) " >&6 11113 else case e in #( 11114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11115 /* end confdefs.h. */ 11116 int i; 11117 _ACEOF 11118 if ac_fn_c_try_compile "$LINENO" 11119 then : 11120 xorg_cv_cc_flag_unknown_warning_option=yes 11121 else case e in #( 11122 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11123 esac 11124 fi 11125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11126 esac 11127 fi 11128 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11129 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11131 CFLAGS="$xorg_testset_save_CFLAGS" 11132 fi 11133 11134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11137 fi 11138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11139 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11142 then : 11143 printf %s "(cached) " >&6 11144 else case e in #( 11145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11146 /* end confdefs.h. */ 11147 int i; 11148 _ACEOF 11149 if ac_fn_c_try_compile "$LINENO" 11150 then : 11151 xorg_cv_cc_flag_unused_command_line_argument=yes 11152 else case e in #( 11153 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11154 esac 11155 fi 11156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11157 esac 11158 fi 11159 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11160 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11162 CFLAGS="$xorg_testset_save_CFLAGS" 11163 fi 11164 11165 found="no" 11166 11167 if test $found = "no" ; then 11168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11170 fi 11171 11172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11174 fi 11175 11176 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 11177 11178 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 11179 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 11180 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 11181 if eval test \${$cacheid+y} 11182 then : 11183 printf %s "(cached) " >&6 11184 else case e in #( 11185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11186 /* end confdefs.h. */ 11187 int i; 11188 int 11189 main (void) 11190 { 11191 11192 ; 11193 return 0; 11194 } 11195 _ACEOF 11196 if ac_fn_c_try_link "$LINENO" 11197 then : 11198 eval $cacheid=yes 11199 else case e in #( 11200 e) eval $cacheid=no ;; 11201 esac 11202 fi 11203 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11204 conftest$ac_exeext conftest.$ac_ext ;; 11205 esac 11206 fi 11207 11208 11209 CFLAGS="$xorg_testset_save_CFLAGS" 11210 11211 eval supported=\$$cacheid 11212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11213 printf '%s\n' "$supported" >&6; } 11214 if test "$supported" = "yes" ; then 11215 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11216 found="yes" 11217 fi 11218 fi 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 xorg_testset_save_CFLAGS="$CFLAGS" 11235 11236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11238 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11239 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11240 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11241 then : 11242 printf %s "(cached) " >&6 11243 else case e in #( 11244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11245 /* end confdefs.h. */ 11246 int i; 11247 _ACEOF 11248 if ac_fn_c_try_compile "$LINENO" 11249 then : 11250 xorg_cv_cc_flag_unknown_warning_option=yes 11251 else case e in #( 11252 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11253 esac 11254 fi 11255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11256 esac 11257 fi 11258 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11259 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11261 CFLAGS="$xorg_testset_save_CFLAGS" 11262 fi 11263 11264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11267 fi 11268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11269 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11270 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11271 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11272 then : 11273 printf %s "(cached) " >&6 11274 else case e in #( 11275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11276 /* end confdefs.h. */ 11277 int i; 11278 _ACEOF 11279 if ac_fn_c_try_compile "$LINENO" 11280 then : 11281 xorg_cv_cc_flag_unused_command_line_argument=yes 11282 else case e in #( 11283 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11284 esac 11285 fi 11286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11287 esac 11288 fi 11289 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11290 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11292 CFLAGS="$xorg_testset_save_CFLAGS" 11293 fi 11294 11295 found="no" 11296 11297 if test $found = "no" ; then 11298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11300 fi 11301 11302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11304 fi 11305 11306 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11307 11308 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11309 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11310 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11311 if eval test \${$cacheid+y} 11312 then : 11313 printf %s "(cached) " >&6 11314 else case e in #( 11315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11316 /* end confdefs.h. */ 11317 int i; 11318 int 11319 main (void) 11320 { 11321 11322 ; 11323 return 0; 11324 } 11325 _ACEOF 11326 if ac_fn_c_try_link "$LINENO" 11327 then : 11328 eval $cacheid=yes 11329 else case e in #( 11330 e) eval $cacheid=no ;; 11331 esac 11332 fi 11333 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11334 conftest$ac_exeext conftest.$ac_ext ;; 11335 esac 11336 fi 11337 11338 11339 CFLAGS="$xorg_testset_save_CFLAGS" 11340 11341 eval supported=\$$cacheid 11342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11343 printf '%s\n' "$supported" >&6; } 11344 if test "$supported" = "yes" ; then 11345 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11346 found="yes" 11347 fi 11348 fi 11349 11350 11351 fi 11352 11353 11354 11355 11356 11357 11358 11359 CWARNFLAGS="$BASE_CFLAGS" 11360 if test "x$GCC" = xyes ; then 11361 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11362 fi 11363 11364 11365 11366 11367 11368 11369 11370 11371 # Check whether --enable-strict-compilation was given. 11372 if test ${enable_strict_compilation+y} 11373 then : 11374 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11375 else case e in #( 11376 e) STRICT_COMPILE=no ;; 11377 esac 11378 fi 11379 11380 11381 11382 11383 11384 11385 STRICT_CFLAGS="" 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 xorg_testset_save_CFLAGS="$CFLAGS" 11400 11401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11403 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11404 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11405 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11406 then : 11407 printf %s "(cached) " >&6 11408 else case e in #( 11409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11410 /* end confdefs.h. */ 11411 int i; 11412 _ACEOF 11413 if ac_fn_c_try_compile "$LINENO" 11414 then : 11415 xorg_cv_cc_flag_unknown_warning_option=yes 11416 else case e in #( 11417 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11418 esac 11419 fi 11420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11421 esac 11422 fi 11423 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11424 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11426 CFLAGS="$xorg_testset_save_CFLAGS" 11427 fi 11428 11429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11432 fi 11433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11435 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11436 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11437 then : 11438 printf %s "(cached) " >&6 11439 else case e in #( 11440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11441 /* end confdefs.h. */ 11442 int i; 11443 _ACEOF 11444 if ac_fn_c_try_compile "$LINENO" 11445 then : 11446 xorg_cv_cc_flag_unused_command_line_argument=yes 11447 else case e in #( 11448 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11449 esac 11450 fi 11451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11452 esac 11453 fi 11454 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11455 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11457 CFLAGS="$xorg_testset_save_CFLAGS" 11458 fi 11459 11460 found="no" 11461 11462 if test $found = "no" ; then 11463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11465 fi 11466 11467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11469 fi 11470 11471 CFLAGS="$CFLAGS -pedantic" 11472 11473 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11474 printf %s "checking if $CC supports -pedantic... " >&6; } 11475 cacheid=xorg_cv_cc_flag__pedantic 11476 if eval test \${$cacheid+y} 11477 then : 11478 printf %s "(cached) " >&6 11479 else case e in #( 11480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11481 /* end confdefs.h. */ 11482 int i; 11483 int 11484 main (void) 11485 { 11486 11487 ; 11488 return 0; 11489 } 11490 _ACEOF 11491 if ac_fn_c_try_link "$LINENO" 11492 then : 11493 eval $cacheid=yes 11494 else case e in #( 11495 e) eval $cacheid=no ;; 11496 esac 11497 fi 11498 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11499 conftest$ac_exeext conftest.$ac_ext ;; 11500 esac 11501 fi 11502 11503 11504 CFLAGS="$xorg_testset_save_CFLAGS" 11505 11506 eval supported=\$$cacheid 11507 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11508 printf '%s\n' "$supported" >&6; } 11509 if test "$supported" = "yes" ; then 11510 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11511 found="yes" 11512 fi 11513 fi 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 xorg_testset_save_CFLAGS="$CFLAGS" 11530 11531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11534 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11535 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11536 then : 11537 printf %s "(cached) " >&6 11538 else case e in #( 11539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11540 /* end confdefs.h. */ 11541 int i; 11542 _ACEOF 11543 if ac_fn_c_try_compile "$LINENO" 11544 then : 11545 xorg_cv_cc_flag_unknown_warning_option=yes 11546 else case e in #( 11547 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11548 esac 11549 fi 11550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11551 esac 11552 fi 11553 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11554 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11556 CFLAGS="$xorg_testset_save_CFLAGS" 11557 fi 11558 11559 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11562 fi 11563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11565 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11566 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11567 then : 11568 printf %s "(cached) " >&6 11569 else case e in #( 11570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11571 /* end confdefs.h. */ 11572 int i; 11573 _ACEOF 11574 if ac_fn_c_try_compile "$LINENO" 11575 then : 11576 xorg_cv_cc_flag_unused_command_line_argument=yes 11577 else case e in #( 11578 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11579 esac 11580 fi 11581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11582 esac 11583 fi 11584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11585 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11587 CFLAGS="$xorg_testset_save_CFLAGS" 11588 fi 11589 11590 found="no" 11591 11592 if test $found = "no" ; then 11593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11595 fi 11596 11597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11599 fi 11600 11601 CFLAGS="$CFLAGS -Werror" 11602 11603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11604 printf %s "checking if $CC supports -Werror... " >&6; } 11605 cacheid=xorg_cv_cc_flag__Werror 11606 if eval test \${$cacheid+y} 11607 then : 11608 printf %s "(cached) " >&6 11609 else case e in #( 11610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11611 /* end confdefs.h. */ 11612 int i; 11613 int 11614 main (void) 11615 { 11616 11617 ; 11618 return 0; 11619 } 11620 _ACEOF 11621 if ac_fn_c_try_link "$LINENO" 11622 then : 11623 eval $cacheid=yes 11624 else case e in #( 11625 e) eval $cacheid=no ;; 11626 esac 11627 fi 11628 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11629 conftest$ac_exeext conftest.$ac_ext ;; 11630 esac 11631 fi 11632 11633 11634 CFLAGS="$xorg_testset_save_CFLAGS" 11635 11636 eval supported=\$$cacheid 11637 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11638 printf '%s\n' "$supported" >&6; } 11639 if test "$supported" = "yes" ; then 11640 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11641 found="yes" 11642 fi 11643 fi 11644 11645 if test $found = "no" ; then 11646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11648 fi 11649 11650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11652 fi 11653 11654 CFLAGS="$CFLAGS -errwarn" 11655 11656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11657 printf %s "checking if $CC supports -errwarn... " >&6; } 11658 cacheid=xorg_cv_cc_flag__errwarn 11659 if eval test \${$cacheid+y} 11660 then : 11661 printf %s "(cached) " >&6 11662 else case e in #( 11663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11664 /* end confdefs.h. */ 11665 int i; 11666 int 11667 main (void) 11668 { 11669 11670 ; 11671 return 0; 11672 } 11673 _ACEOF 11674 if ac_fn_c_try_link "$LINENO" 11675 then : 11676 eval $cacheid=yes 11677 else case e in #( 11678 e) eval $cacheid=no ;; 11679 esac 11680 fi 11681 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11682 conftest$ac_exeext conftest.$ac_ext ;; 11683 esac 11684 fi 11685 11686 11687 CFLAGS="$xorg_testset_save_CFLAGS" 11688 11689 eval supported=\$$cacheid 11690 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11691 printf '%s\n' "$supported" >&6; } 11692 if test "$supported" = "yes" ; then 11693 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11694 found="yes" 11695 fi 11696 fi 11697 11698 11699 11700 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11701 # activate it with -Werror, so we add it here explicitly. 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 xorg_testset_save_CFLAGS="$CFLAGS" 11716 11717 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11719 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11720 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11721 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11722 then : 11723 printf %s "(cached) " >&6 11724 else case e in #( 11725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11726 /* end confdefs.h. */ 11727 int i; 11728 _ACEOF 11729 if ac_fn_c_try_compile "$LINENO" 11730 then : 11731 xorg_cv_cc_flag_unknown_warning_option=yes 11732 else case e in #( 11733 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11734 esac 11735 fi 11736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11737 esac 11738 fi 11739 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11740 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11742 CFLAGS="$xorg_testset_save_CFLAGS" 11743 fi 11744 11745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11748 fi 11749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11750 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11751 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11752 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11753 then : 11754 printf %s "(cached) " >&6 11755 else case e in #( 11756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11757 /* end confdefs.h. */ 11758 int i; 11759 _ACEOF 11760 if ac_fn_c_try_compile "$LINENO" 11761 then : 11762 xorg_cv_cc_flag_unused_command_line_argument=yes 11763 else case e in #( 11764 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11765 esac 11766 fi 11767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11768 esac 11769 fi 11770 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11771 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11773 CFLAGS="$xorg_testset_save_CFLAGS" 11774 fi 11775 11776 found="no" 11777 11778 if test $found = "no" ; then 11779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11781 fi 11782 11783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11785 fi 11786 11787 CFLAGS="$CFLAGS -Werror=attributes" 11788 11789 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11790 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11791 cacheid=xorg_cv_cc_flag__Werror_attributes 11792 if eval test \${$cacheid+y} 11793 then : 11794 printf %s "(cached) " >&6 11795 else case e in #( 11796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11797 /* end confdefs.h. */ 11798 int i; 11799 int 11800 main (void) 11801 { 11802 11803 ; 11804 return 0; 11805 } 11806 _ACEOF 11807 if ac_fn_c_try_link "$LINENO" 11808 then : 11809 eval $cacheid=yes 11810 else case e in #( 11811 e) eval $cacheid=no ;; 11812 esac 11813 fi 11814 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11815 conftest$ac_exeext conftest.$ac_ext ;; 11816 esac 11817 fi 11818 11819 11820 CFLAGS="$xorg_testset_save_CFLAGS" 11821 11822 eval supported=\$$cacheid 11823 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11824 printf '%s\n' "$supported" >&6; } 11825 if test "$supported" = "yes" ; then 11826 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11827 found="yes" 11828 fi 11829 fi 11830 11831 11832 11833 if test "x$STRICT_COMPILE" = "xyes"; then 11834 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11835 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11836 fi 11837 11838 11839 11840 11841 11842 11843 11844 11845 cat >>confdefs.h <<_ACEOF 11846 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11847 _ACEOF 11848 11849 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11850 if test "x$PVM" = "x"; then 11851 PVM="0" 11852 fi 11853 11854 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11855 11856 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11857 if test "x$PVP" = "x"; then 11858 PVP="0" 11859 fi 11860 11861 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11862 11863 11864 11865 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11866 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11867 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11868 touch \$(top_srcdir)/ChangeLog; \ 11869 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11870 11871 11872 11873 11874 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11875 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11876 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11877 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11878 touch \$(top_srcdir)/INSTALL; \ 11879 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11880 11881 11882 11883 11884 11885 11886 case $host_os in 11887 solaris*) 11888 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11889 # check for a man page file found in later versions that use 11890 # traditional section numbers instead 11891 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11892 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11893 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11894 then : 11895 printf %s "(cached) " >&6 11896 else case e in #( 11897 e) test "$cross_compiling" = yes && 11898 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11899 if test -r "/usr/share/man/man7/attributes.7"; then 11900 ac_cv_file__usr_share_man_man7_attributes_7=yes 11901 else 11902 ac_cv_file__usr_share_man_man7_attributes_7=no 11903 fi ;; 11904 esac 11905 fi 11906 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11907 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11908 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11909 then : 11910 SYSV_MAN_SECTIONS=false 11911 else case e in #( 11912 e) SYSV_MAN_SECTIONS=true ;; 11913 esac 11914 fi 11915 11916 ;; 11917 *) SYSV_MAN_SECTIONS=false ;; 11918 esac 11919 11920 if test x$APP_MAN_SUFFIX = x ; then 11921 APP_MAN_SUFFIX=1 11922 fi 11923 if test x$APP_MAN_DIR = x ; then 11924 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11925 fi 11926 11927 if test x$LIB_MAN_SUFFIX = x ; then 11928 LIB_MAN_SUFFIX=3 11929 fi 11930 if test x$LIB_MAN_DIR = x ; then 11931 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11932 fi 11933 11934 if test x$FILE_MAN_SUFFIX = x ; then 11935 case $SYSV_MAN_SECTIONS in 11936 true) FILE_MAN_SUFFIX=4 ;; 11937 *) FILE_MAN_SUFFIX=5 ;; 11938 esac 11939 fi 11940 if test x$FILE_MAN_DIR = x ; then 11941 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11942 fi 11943 11944 if test x$MISC_MAN_SUFFIX = x ; then 11945 case $SYSV_MAN_SECTIONS in 11946 true) MISC_MAN_SUFFIX=5 ;; 11947 *) MISC_MAN_SUFFIX=7 ;; 11948 esac 11949 fi 11950 if test x$MISC_MAN_DIR = x ; then 11951 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11952 fi 11953 11954 if test x$DRIVER_MAN_SUFFIX = x ; then 11955 case $SYSV_MAN_SECTIONS in 11956 true) DRIVER_MAN_SUFFIX=7 ;; 11957 *) DRIVER_MAN_SUFFIX=4 ;; 11958 esac 11959 fi 11960 if test x$DRIVER_MAN_DIR = x ; then 11961 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11962 fi 11963 11964 if test x$ADMIN_MAN_SUFFIX = x ; then 11965 case $SYSV_MAN_SECTIONS in 11966 true) ADMIN_MAN_SUFFIX=1m ;; 11967 *) ADMIN_MAN_SUFFIX=8 ;; 11968 esac 11969 fi 11970 if test x$ADMIN_MAN_DIR = x ; then 11971 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11972 fi 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 XORG_MAN_PAGE="X Version 11" 11989 11990 MAN_SUBSTS="\ 11991 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11992 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11993 -e 's|__xservername__|Xorg|g' \ 11994 -e 's|__xconfigfile__|xorg.conf|g' \ 11995 -e 's|__projectroot__|\$(prefix)|g' \ 11996 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11997 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11998 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11999 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 12000 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 12001 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 12002 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 12003 12004 12005 12006 12007 AM_DEFAULT_VERBOSITY=0 12008 12009 12010 12011 12012 12013 # Checks for pkg-config packages 12014 12015 pkg_failed=no 12016 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XCONSOLE" >&5 12017 printf %s "checking for XCONSOLE... " >&6; } 12018 12019 if test -n "$XCONSOLE_CFLAGS"; then 12020 pkg_cv_XCONSOLE_CFLAGS="$XCONSOLE_CFLAGS" 12021 elif test -n "$PKG_CONFIG"; then 12022 if test -n "$PKG_CONFIG" && \ 12023 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5 12024 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5 12025 ac_status=$? 12026 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12027 test $ac_status = 0; }; then 12028 pkg_cv_XCONSOLE_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null` 12029 test "x$?" != "x0" && pkg_failed=yes 12030 else 12031 pkg_failed=yes 12032 fi 12033 else 12034 pkg_failed=untried 12035 fi 12036 if test -n "$XCONSOLE_LIBS"; then 12037 pkg_cv_XCONSOLE_LIBS="$XCONSOLE_LIBS" 12038 elif test -n "$PKG_CONFIG"; then 12039 if test -n "$PKG_CONFIG" && \ 12040 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5 12041 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5 12042 ac_status=$? 12043 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12044 test $ac_status = 0; }; then 12045 pkg_cv_XCONSOLE_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null` 12046 test "x$?" != "x0" && pkg_failed=yes 12047 else 12048 pkg_failed=yes 12049 fi 12050 else 12051 pkg_failed=untried 12052 fi 12053 12054 12055 12056 if test $pkg_failed = yes; then 12057 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 12058 printf '%s\n' "no" >&6; } 12059 12060 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12061 _pkg_short_errors_supported=yes 12062 else 12063 _pkg_short_errors_supported=no 12064 fi 12065 if test $_pkg_short_errors_supported = yes; then 12066 XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1` 12067 else 12068 XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1` 12069 fi 12070 # Put the nasty error message in config.log where it belongs 12071 echo "$XCONSOLE_PKG_ERRORS" >&5 12072 12073 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17) were not met: 12074 12075 $XCONSOLE_PKG_ERRORS 12076 12077 Consider adjusting the PKG_CONFIG_PATH environment variable if you 12078 installed software in a non-standard prefix. 12079 12080 Alternatively, you may set the environment variables XCONSOLE_CFLAGS 12081 and XCONSOLE_LIBS to avoid the need to call pkg-config. 12082 See the pkg-config man page for more details." "$LINENO" 5 12083 elif test $pkg_failed = untried; then 12084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 12085 printf '%s\n' "no" >&6; } 12086 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12087 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 12088 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12089 is in your PATH or set the PKG_CONFIG environment variable to the full 12090 path to pkg-config. 12091 12092 Alternatively, you may set the environment variables XCONSOLE_CFLAGS 12093 and XCONSOLE_LIBS to avoid the need to call pkg-config. 12094 See the pkg-config man page for more details. 12095 12096 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12097 See 'config.log' for more details" "$LINENO" 5; } 12098 else 12099 XCONSOLE_CFLAGS=$pkg_cv_XCONSOLE_CFLAGS 12100 XCONSOLE_LIBS=$pkg_cv_XCONSOLE_LIBS 12101 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12102 printf '%s\n' "yes" >&6; } 12103 12104 fi 12105 12106 12107 pkg_failed=no 12108 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 12109 printf %s "checking for APPDEFS... " >&6; } 12110 12111 if test -n "$APPDEFS_CFLAGS"; then 12112 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 12113 elif test -n "$PKG_CONFIG"; then 12114 if test -n "$PKG_CONFIG" && \ 12115 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 12116 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 12117 ac_status=$? 12118 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12119 test $ac_status = 0; }; then 12120 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 12121 test "x$?" != "x0" && pkg_failed=yes 12122 else 12123 pkg_failed=yes 12124 fi 12125 else 12126 pkg_failed=untried 12127 fi 12128 if test -n "$APPDEFS_LIBS"; then 12129 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 12130 elif test -n "$PKG_CONFIG"; then 12131 if test -n "$PKG_CONFIG" && \ 12132 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 12133 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 12134 ac_status=$? 12135 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12136 test $ac_status = 0; }; then 12137 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 12138 test "x$?" != "x0" && pkg_failed=yes 12139 else 12140 pkg_failed=yes 12141 fi 12142 else 12143 pkg_failed=untried 12144 fi 12145 12146 12147 12148 if test $pkg_failed = yes; then 12149 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 12150 printf '%s\n' "no" >&6; } 12151 12152 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12153 _pkg_short_errors_supported=yes 12154 else 12155 _pkg_short_errors_supported=no 12156 fi 12157 if test $_pkg_short_errors_supported = yes; then 12158 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 12159 else 12160 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 12161 fi 12162 # Put the nasty error message in config.log where it belongs 12163 echo "$APPDEFS_PKG_ERRORS" >&5 12164 12165 as_fn_error $? "Package requirements (xt) were not met: 12166 12167 $APPDEFS_PKG_ERRORS 12168 12169 Consider adjusting the PKG_CONFIG_PATH environment variable if you 12170 installed software in a non-standard prefix. 12171 12172 Alternatively, you may set the environment variables APPDEFS_CFLAGS 12173 and APPDEFS_LIBS to avoid the need to call pkg-config. 12174 See the pkg-config man page for more details." "$LINENO" 5 12175 elif test $pkg_failed = untried; then 12176 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 12177 printf '%s\n' "no" >&6; } 12178 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12179 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 12180 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12181 is in your PATH or set the PKG_CONFIG environment variable to the full 12182 path to pkg-config. 12183 12184 Alternatively, you may set the environment variables APPDEFS_CFLAGS 12185 and APPDEFS_LIBS to avoid the need to call pkg-config. 12186 See the pkg-config man page for more details. 12187 12188 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12189 See 'config.log' for more details" "$LINENO" 5; } 12190 else 12191 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 12192 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 12193 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12194 printf '%s\n' "yes" >&6; } 12195 12196 fi 12197 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 12198 12199 # Check whether --with-appdefaultdir was given. 12200 if test ${with_appdefaultdir+y} 12201 then : 12202 withval=$with_appdefaultdir; appdefaultdir="$withval" 12203 else case e in #( 12204 e) appdefaultdir="${xt_appdefaultdir}" ;; 12205 esac 12206 fi 12207 12208 12209 12210 # Checks for typedefs, structures, and compiler characteristics. 12211 # Check whether --enable-largefile was given. 12212 if test ${enable_largefile+y} 12213 then : 12214 enableval=$enable_largefile; 12215 fi 12216 if test "$enable_largefile,$enable_year2038" != no,no 12217 then : 12218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support large files" >&5 12219 printf %s "checking for $CC option to support large files... " >&6; } 12220 if test ${ac_cv_sys_largefile_opts+y} 12221 then : 12222 printf %s "(cached) " >&6 12223 else case e in #( 12224 e) ac_save_CPPFLAGS=$CPPFLAGS 12225 ac_opt_found=no 12226 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do 12227 if test x"$ac_opt" != x"none needed" 12228 then : 12229 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 12230 fi 12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12232 /* end confdefs.h. */ 12233 #include <sys/types.h> 12234 #ifndef FTYPE 12235 # define FTYPE off_t 12236 #endif 12237 /* Check that FTYPE can represent 2**63 - 1 correctly. 12238 We can't simply define LARGE_FTYPE to be 9223372036854775807, 12239 since some C++ compilers masquerading as C compilers 12240 incorrectly reject 9223372036854775807. */ 12241 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 12242 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 12243 && LARGE_FTYPE % 2147483647 == 1) 12244 ? 1 : -1]; 12245 int 12246 main (void) 12247 { 12248 12249 ; 12250 return 0; 12251 } 12252 _ACEOF 12253 if ac_fn_c_try_compile "$LINENO" 12254 then : 12255 if test x"$ac_opt" = x"none needed" 12256 then : 12257 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 12258 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t" 12259 if ac_fn_c_try_compile "$LINENO" 12260 then : 12261 12262 else case e in #( 12263 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64" 12264 if ac_fn_c_try_compile "$LINENO" 12265 then : 12266 ac_opt='-D_FILE_OFFSET_BITS=64' 12267 fi 12268 rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 12269 esac 12270 fi 12271 rm -f core conftest.err conftest.$ac_objext conftest.beam 12272 fi 12273 ac_cv_sys_largefile_opts=$ac_opt 12274 ac_opt_found=yes 12275 fi 12276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12277 test $ac_opt_found = no || break 12278 done 12279 CPPFLAGS=$ac_save_CPPFLAGS 12280 12281 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 12282 esac 12283 fi 12284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 12285 printf '%s\n' "$ac_cv_sys_largefile_opts" >&6; } 12286 12287 ac_have_largefile=yes 12288 case $ac_cv_sys_largefile_opts in #( 12289 "none needed") : 12290 ;; #( 12291 "supported through gnulib") : 12292 ;; #( 12293 "support not detected") : 12294 ac_have_largefile=no ;; #( 12295 "-D_FILE_OFFSET_BITS=64") : 12296 12297 printf '%s\n' "#define _FILE_OFFSET_BITS 64" >>confdefs.h 12298 ;; #( 12299 "-D_LARGE_FILES=1") : 12300 12301 printf '%s\n' "#define _LARGE_FILES 1" >>confdefs.h 12302 ;; #( 12303 *) : 12304 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 12305 esac 12306 12307 if test "$enable_year2038" != no 12308 then : 12309 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support timestamps after 2038" >&5 12310 printf %s "checking for $CC option to support timestamps after 2038... " >&6; } 12311 if test ${ac_cv_sys_year2038_opts+y} 12312 then : 12313 printf %s "(cached) " >&6 12314 else case e in #( 12315 e) ac_save_CPPFLAGS="$CPPFLAGS" 12316 ac_opt_found=no 12317 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 12318 if test x"$ac_opt" != x"none needed" 12319 then : 12320 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 12321 fi 12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12323 /* end confdefs.h. */ 12324 12325 #include <time.h> 12326 /* Check that time_t can represent 2**32 - 1 correctly. */ 12327 #define LARGE_TIME_T \\ 12328 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 12329 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 12330 && LARGE_TIME_T % 65537 == 0) 12331 ? 1 : -1]; 12332 12333 int 12334 main (void) 12335 { 12336 12337 ; 12338 return 0; 12339 } 12340 _ACEOF 12341 if ac_fn_c_try_compile "$LINENO" 12342 then : 12343 ac_cv_sys_year2038_opts="$ac_opt" 12344 ac_opt_found=yes 12345 fi 12346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12347 test $ac_opt_found = no || break 12348 done 12349 CPPFLAGS="$ac_save_CPPFLAGS" 12350 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 12351 esac 12352 fi 12353 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 12354 printf '%s\n' "$ac_cv_sys_year2038_opts" >&6; } 12355 12356 ac_have_year2038=yes 12357 case $ac_cv_sys_year2038_opts in #( 12358 "none needed") : 12359 ;; #( 12360 "support not detected") : 12361 ac_have_year2038=no ;; #( 12362 "-D_TIME_BITS=64") : 12363 12364 printf '%s\n' "#define _TIME_BITS 64" >>confdefs.h 12365 ;; #( 12366 "-D__MINGW_USE_VC2005_COMPAT") : 12367 12368 printf '%s\n' "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 12369 ;; #( 12370 "-U_USE_32_BIT_TIME_T"*) : 12371 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12372 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 12373 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 12374 will stop working after mid-January 2038. Remove 12375 _USE_32BIT_TIME_T from the compiler flags. 12376 See 'config.log' for more details" "$LINENO" 5; } ;; #( 12377 *) : 12378 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 12379 esac 12380 12381 fi 12382 12383 fi 12384 12385 # Checks for library functions. 12386 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 12387 printf %s "checking for library containing openpty... " >&6; } 12388 if test ${ac_cv_search_openpty+y} 12389 then : 12390 printf %s "(cached) " >&6 12391 else case e in #( 12392 e) ac_func_search_save_LIBS=$LIBS 12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12394 /* end confdefs.h. */ 12395 12396 /* Override any GCC internal prototype to avoid an error. 12397 Use char because int might match the return type of a GCC 12398 builtin and then its argument prototype would still apply. 12399 The 'extern "C"' is for builds by C++ compilers; 12400 although this is not generally supported in C code supporting it here 12401 has little cost and some practical benefit (sr 110532). */ 12402 #ifdef __cplusplus 12403 extern "C" 12404 #endif 12405 char openpty (void); 12406 int 12407 main (void) 12408 { 12409 return openpty (); 12410 ; 12411 return 0; 12412 } 12413 _ACEOF 12414 for ac_lib in '' util 12415 do 12416 if test -z "$ac_lib"; then 12417 ac_res="none required" 12418 else 12419 ac_res=-l$ac_lib 12420 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12421 fi 12422 if ac_fn_c_try_link "$LINENO" 12423 then : 12424 ac_cv_search_openpty=$ac_res 12425 fi 12426 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12427 conftest$ac_exeext 12428 if test ${ac_cv_search_openpty+y} 12429 then : 12430 break 12431 fi 12432 done 12433 if test ${ac_cv_search_openpty+y} 12434 then : 12435 12436 else case e in #( 12437 e) ac_cv_search_openpty=no ;; 12438 esac 12439 fi 12440 rm conftest.$ac_ext 12441 LIBS=$ac_func_search_save_LIBS ;; 12442 esac 12443 fi 12444 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 12445 printf '%s\n' "$ac_cv_search_openpty" >&6; } 12446 ac_res=$ac_cv_search_openpty 12447 if test "$ac_res" != no 12448 then : 12449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12450 12451 fi 12452 12453 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 12454 if test "x$ac_cv_func_openpty" = xyes 12455 then : 12456 HAS_OPENPTY="yes" 12457 fi 12458 12459 if test "x$HAS_OPENPTY" = "xyes" ; then 12460 12461 printf '%s\n' "#define HAS_OPENPTY 1" >>confdefs.h 12462 12463 for ac_header in util.h libutil.h pty.h 12464 do : 12465 as_ac_Header=`printf '%s\n' "ac_cv_header_$ac_header" | sed "$as_sed_sh"` 12466 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12467 if eval test \"x\$"$as_ac_Header"\" = x"yes" 12468 then : 12469 cat >>confdefs.h <<_ACEOF 12470 #define `printf '%s\n' "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 12471 _ACEOF 12472 break 12473 fi 12474 12475 done 12476 fi 12477 12478 12479 ac_config_files="$ac_config_files Makefile man/Makefile" 12480 12481 cat >confcache <<\_ACEOF 12482 # This file is a shell script that caches the results of configure 12483 # tests run on this system so they can be shared between configure 12484 # scripts and configure runs, see configure's option --config-cache. 12485 # It is not useful on other systems. If it contains results you don't 12486 # want to keep, you may remove or edit it. 12487 # 12488 # config.status only pays attention to the cache file if you give it 12489 # the --recheck option to rerun configure. 12490 # 12491 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 12492 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 12493 # following values. 12494 12495 _ACEOF 12496 12497 ac_cache_dump | 12498 sed ' 12499 /^ac_cv_env_/b end 12500 t clear 12501 :clear 12502 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12503 t end 12504 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12505 :end' >>confcache 12506 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12507 if test -w "$cache_file"; then 12508 if test "x$cache_file" != "x/dev/null"; then 12509 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12510 printf '%s\n' "$as_me: updating cache $cache_file" >&6;} 12511 if test ! -f "$cache_file" || test -h "$cache_file"; then 12512 cat confcache >"$cache_file" 12513 else 12514 case $cache_file in #( 12515 */* | ?:*) 12516 mv -f confcache "$cache_file"$$ && 12517 mv -f "$cache_file"$$ "$cache_file" ;; #( 12518 *) 12519 mv -f confcache "$cache_file" ;; 12520 esac 12521 fi 12522 fi 12523 else 12524 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12525 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;} 12526 fi 12527 fi 12528 rm -f confcache 12529 12530 test "x$prefix" = xNONE && prefix=$ac_default_prefix 12531 # Let make expand exec_prefix. 12532 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12533 12534 DEFS=-DHAVE_CONFIG_H 12535 12536 ac_libobjs= 12537 ac_ltlibobjs= 12538 U= 12539 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12540 # 1. Remove the extension, and $U if already installed. 12541 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12542 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"` 12543 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12544 # will be set to the directory where LIBOBJS objects are built. 12545 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12546 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12547 done 12548 LIBOBJS=$ac_libobjs 12549 12550 LTLIBOBJS=$ac_ltlibobjs 12551 12552 12553 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12554 printf %s "checking that generated files are newer than configure... " >&6; } 12555 if test -n "$am_sleep_pid"; then 12556 # Hide warnings about reused PIDs. 12557 wait $am_sleep_pid 2>/dev/null 12558 fi 12559 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5 12560 printf '%s\n' "done" >&6; } 12561 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12562 as_fn_error $? "conditional \"AMDEP\" was never defined. 12563 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12564 fi 12565 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12566 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12567 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12568 fi 12569 case $enable_silent_rules in # ((( 12570 yes) AM_DEFAULT_VERBOSITY=0;; 12571 no) AM_DEFAULT_VERBOSITY=1;; 12572 esac 12573 if test $am_cv_make_support_nested_variables = yes; then 12574 AM_V='$(V)' 12575 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12576 else 12577 AM_V=$AM_DEFAULT_VERBOSITY 12578 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12579 fi 12580 12581 if test -n "$EXEEXT"; then 12582 am__EXEEXT_TRUE= 12583 am__EXEEXT_FALSE='#' 12584 else 12585 am__EXEEXT_TRUE='#' 12586 am__EXEEXT_FALSE= 12587 fi 12588 12589 # Check whether --enable-year2038 was given. 12590 if test ${enable_year2038+y} 12591 then : 12592 enableval=$enable_year2038; 12593 fi 12594 12595 12596 : "${CONFIG_STATUS=./config.status}" 12597 case $CONFIG_STATUS in #( 12598 -*) : 12599 CONFIG_STATUS=./$CONFIG_STATUS ;; #( 12600 */*) : 12601 ;; #( 12602 *) : 12603 CONFIG_STATUS=./$CONFIG_STATUS ;; 12604 esac 12605 12606 ac_write_fail=0 12607 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"' 12608 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12609 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;} 12610 as_write_fail=0 12611 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1 12612 #! $SHELL 12613 # Generated by $as_me. 12614 # Run this file to recreate the current configuration. 12615 # Compiler output produced by configure, useful for debugging 12616 # configure, is in config.log if it exists. 12617 12618 debug=false 12619 ac_cs_recheck=false 12620 ac_cs_silent=false 12621 12622 SHELL=\${CONFIG_SHELL-$SHELL} 12623 export SHELL 12624 _ASEOF 12625 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1 12626 ## -------------------- ## 12627 ## M4sh Initialization. ## 12628 ## -------------------- ## 12629 12630 # Be more Bourne compatible 12631 DUALCASE=1; export DUALCASE # for MKS sh 12632 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12633 then : 12634 emulate sh 12635 NULLCMD=: 12636 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12637 # contradicts POSIX and common usage. Disable this. 12638 alias -g '${1+"$@"}'='"$@"' 12639 setopt NO_GLOB_SUBST 12640 else case e in #( 12641 e) case `(set -o) 2>/dev/null` in #( 12642 *posix*) : 12643 set -o posix ;; #( 12644 *) : 12645 ;; 12646 esac ;; 12647 esac 12648 fi 12649 12650 12651 12652 # Reset variables that may have inherited troublesome values from 12653 # the environment. 12654 12655 # IFS needs to be set, to space, tab, and newline, in precisely that order. 12656 # (If _AS_PATH_WALK were called with IFS unset, it would have the 12657 # side effect of setting IFS to empty, thus disabling word splitting.) 12658 # Quoting is to prevent editors from complaining about space-tab. 12659 as_nl=' 12660 ' 12661 export as_nl 12662 IFS=" "" $as_nl" 12663 12664 PS1='$ ' 12665 PS2='> ' 12666 PS4='+ ' 12667 12668 # Ensure predictable behavior from utilities with locale-dependent output. 12669 LC_ALL=C 12670 export LC_ALL 12671 LANGUAGE=C 12672 export LANGUAGE 12673 12674 # We cannot yet rely on "unset" to work, but we need these variables 12675 # to be unset--not just set to an empty or harmless value--now, to 12676 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12677 # also avoids known problems related to "unset" and subshell syntax 12678 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12679 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12680 do eval test \${$as_var+y} \ 12681 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12682 done 12683 12684 # Ensure that fds 0, 1, and 2 are open. 12685 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12686 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12687 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12688 12689 # The user is always right. 12690 if ${PATH_SEPARATOR+false} :; then 12691 PATH_SEPARATOR=: 12692 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12693 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12694 PATH_SEPARATOR=';' 12695 } 12696 fi 12697 12698 12699 # Find who we are. Look in the path if we contain no directory separator. 12700 as_myself= 12701 case $0 in #(( 12702 *[\\/]* ) as_myself=$0 ;; 12703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12704 for as_dir in $PATH 12705 do 12706 IFS=$as_save_IFS 12707 case $as_dir in #((( 12708 '') as_dir=./ ;; 12709 */) ;; 12710 *) as_dir=$as_dir/ ;; 12711 esac 12712 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12713 done 12714 IFS=$as_save_IFS 12715 12716 ;; 12717 esac 12718 # We did not find ourselves, most probably we were run as 'sh COMMAND' 12719 # in which case we are not to be found in the path. 12720 if test "x$as_myself" = x; then 12721 as_myself=$0 12722 fi 12723 if test ! -f "$as_myself"; then 12724 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12725 exit 1 12726 fi 12727 12728 12729 12730 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12731 # ---------------------------------------- 12732 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12733 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12734 # script with STATUS, using 1 if that was 0. 12735 as_fn_error () 12736 { 12737 as_status=$1; test $as_status -eq 0 && as_status=1 12738 if test "$4"; then 12739 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12740 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12741 fi 12742 printf '%s\n' "$as_me: error: $2" >&2 12743 as_fn_exit $as_status 12744 } # as_fn_error 12745 12746 12747 # as_fn_set_status STATUS 12748 # ----------------------- 12749 # Set $? to STATUS, without forking. 12750 as_fn_set_status () 12751 { 12752 return $1 12753 } # as_fn_set_status 12754 12755 # as_fn_exit STATUS 12756 # ----------------- 12757 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12758 as_fn_exit () 12759 { 12760 set +e 12761 as_fn_set_status $1 12762 exit $1 12763 } # as_fn_exit 12764 12765 # as_fn_unset VAR 12766 # --------------- 12767 # Portably unset VAR. 12768 as_fn_unset () 12769 { 12770 { eval $1=; unset $1;} 12771 } 12772 as_unset=as_fn_unset 12773 12774 # as_fn_append VAR VALUE 12775 # ---------------------- 12776 # Append the text in VALUE to the end of the definition contained in VAR. Take 12777 # advantage of any shell optimizations that allow amortized linear growth over 12778 # repeated appends, instead of the typical quadratic growth present in naive 12779 # implementations. 12780 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12781 then : 12782 eval 'as_fn_append () 12783 { 12784 eval $1+=\$2 12785 }' 12786 else case e in #( 12787 e) as_fn_append () 12788 { 12789 eval $1=\$$1\$2 12790 } ;; 12791 esac 12792 fi # as_fn_append 12793 12794 # as_fn_arith ARG... 12795 # ------------------ 12796 # Perform arithmetic evaluation on the ARGs, and store the result in the 12797 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12798 # must be portable across $(()) and expr. 12799 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12800 then : 12801 eval 'as_fn_arith () 12802 { 12803 as_val=$(( $* )) 12804 }' 12805 else case e in #( 12806 e) as_fn_arith () 12807 { 12808 as_val=`expr "$@" || test $? -eq 1` 12809 } ;; 12810 esac 12811 fi # as_fn_arith 12812 12813 12814 if expr a : '\(a\)' >/dev/null 2>&1 && 12815 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12816 as_expr=expr 12817 else 12818 as_expr=false 12819 fi 12820 12821 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12822 as_basename=basename 12823 else 12824 as_basename=false 12825 fi 12826 12827 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12828 as_dirname=dirname 12829 else 12830 as_dirname=false 12831 fi 12832 12833 as_me=`$as_basename -- "$0" || 12834 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12835 X"$0" : 'X\(//\)$' \| \ 12836 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12837 printf '%s\n' X/"$0" | 12838 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12839 s//\1/ 12840 q 12841 } 12842 /^X\/\(\/\/\)$/{ 12843 s//\1/ 12844 q 12845 } 12846 /^X\/\(\/\).*/{ 12847 s//\1/ 12848 q 12849 } 12850 s/.*/./; q'` 12851 12852 # Avoid depending upon Character Ranges. 12853 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12854 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12855 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12856 as_cr_digits='0123456789' 12857 as_cr_alnum=$as_cr_Letters$as_cr_digits 12858 12859 rm -f conf$$ conf$$.exe conf$$.file 12860 if test -d conf$$.dir; then 12861 rm -f conf$$.dir/conf$$.file 12862 else 12863 rm -f conf$$.dir 12864 mkdir conf$$.dir 2>/dev/null 12865 fi 12866 if (echo >conf$$.file) 2>/dev/null; then 12867 if ln -s conf$$.file conf$$ 2>/dev/null; then 12868 as_ln_s='ln -s' 12869 # ... but there are two gotchas: 12870 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12871 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12872 # In both cases, we have to default to 'cp -pR'. 12873 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12874 as_ln_s='cp -pR' 12875 elif ln conf$$.file conf$$ 2>/dev/null; then 12876 as_ln_s=ln 12877 else 12878 as_ln_s='cp -pR' 12879 fi 12880 else 12881 as_ln_s='cp -pR' 12882 fi 12883 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12884 rmdir conf$$.dir 2>/dev/null 12885 12886 12887 # as_fn_mkdir_p 12888 # ------------- 12889 # Create "$as_dir" as a directory, including parents if necessary. 12890 as_fn_mkdir_p () 12891 { 12892 12893 case $as_dir in #( 12894 -*) as_dir=./$as_dir;; 12895 esac 12896 test -d "$as_dir" || eval $as_mkdir_p || { 12897 as_dirs= 12898 while :; do 12899 case $as_dir in #( 12900 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12901 *) as_qdir=$as_dir;; 12902 esac 12903 as_dirs="'$as_qdir' $as_dirs" 12904 as_dir=`$as_dirname -- "$as_dir" || 12905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12906 X"$as_dir" : 'X\(//\)[^/]' \| \ 12907 X"$as_dir" : 'X\(//\)$' \| \ 12908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12909 printf '%s\n' X"$as_dir" | 12910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12911 s//\1/ 12912 q 12913 } 12914 /^X\(\/\/\)[^/].*/{ 12915 s//\1/ 12916 q 12917 } 12918 /^X\(\/\/\)$/{ 12919 s//\1/ 12920 q 12921 } 12922 /^X\(\/\).*/{ 12923 s//\1/ 12924 q 12925 } 12926 s/.*/./; q'` 12927 test -d "$as_dir" && break 12928 done 12929 test -z "$as_dirs" || eval "mkdir $as_dirs" 12930 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12931 12932 12933 } # as_fn_mkdir_p 12934 if mkdir -p . 2>/dev/null; then 12935 as_mkdir_p='mkdir -p "$as_dir"' 12936 else 12937 test -d ./-p && rmdir ./-p 12938 as_mkdir_p=false 12939 fi 12940 12941 12942 # as_fn_executable_p FILE 12943 # ----------------------- 12944 # Test if FILE is an executable regular file. 12945 as_fn_executable_p () 12946 { 12947 test -f "$1" && test -x "$1" 12948 } # as_fn_executable_p 12949 as_test_x='test -x' 12950 as_executable_p=as_fn_executable_p 12951 12952 # Sed expression to map a string onto a valid CPP name. 12953 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12954 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12955 12956 # Sed expression to map a string onto a valid variable name. 12957 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12958 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12959 12960 12961 exec 6>&1 12962 ## ------------------------------------- ## 12963 ## Main body of "$CONFIG_STATUS" script. ## 12964 ## ------------------------------------- ## 12965 _ASEOF 12966 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1 12967 12968 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12969 # Save the log message, to keep $0 and so on meaningful, and to 12970 # report actual input values of CONFIG_FILES etc. instead of their 12971 # values after options handling. 12972 ac_log=" 12973 This file was extended by xconsole $as_me 1.1.1, which was 12974 generated by GNU Autoconf 2.73. Invocation command line was 12975 12976 CONFIG_FILES = $CONFIG_FILES 12977 CONFIG_HEADERS = $CONFIG_HEADERS 12978 CONFIG_LINKS = $CONFIG_LINKS 12979 CONFIG_COMMANDS = $CONFIG_COMMANDS 12980 $ $0 $@ 12981 12982 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12983 " 12984 12985 _ACEOF 12986 12987 case $ac_config_files in *" 12988 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12989 esac 12990 12991 case $ac_config_headers in *" 12992 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12993 esac 12994 12995 12996 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12997 # Files that config.status was made for. 12998 config_files="$ac_config_files" 12999 config_headers="$ac_config_headers" 13000 config_commands="$ac_config_commands" 13001 13002 _ACEOF 13003 13004 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13005 ac_cs_usage="\ 13006 '$as_me' instantiates files and other configuration actions 13007 from templates according to the current configuration. Unless the files 13008 and actions are specified as TAGs, all are instantiated by default. 13009 13010 Usage: $0 [OPTION]... [TAG]... 13011 13012 -h, --help print this help, then exit 13013 -V, --version print version number and configuration settings, then exit 13014 --config print configuration, then exit 13015 -q, --quiet, --silent 13016 do not print progress messages 13017 -d, --debug don't remove temporary files 13018 --recheck update $as_me by reconfiguring in the same conditions 13019 --file=FILE[:TEMPLATE] 13020 instantiate the configuration file FILE 13021 --header=FILE[:TEMPLATE] 13022 instantiate the configuration header FILE 13023 13024 Configuration files: 13025 $config_files 13026 13027 Configuration headers: 13028 $config_headers 13029 13030 Configuration commands: 13031 $config_commands 13032 13033 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/-/issues>." 13034 13035 _ACEOF 13036 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"` 13037 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 13038 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13039 ac_cs_config='$ac_cs_config_escaped' 13040 ac_cs_version="\\ 13041 xconsole config.status 1.1.1 13042 configured by $0, generated by GNU Autoconf 2.73, 13043 with options \\"\$ac_cs_config\\" 13044 13045 Copyright (C) 2026 Free Software Foundation, Inc. 13046 This config.status script is free software; the Free Software Foundation 13047 gives unlimited permission to copy, distribute and modify it." 13048 13049 ac_pwd='$ac_pwd' 13050 srcdir='$srcdir' 13051 INSTALL='$INSTALL' 13052 MKDIR_P='$MKDIR_P' 13053 AWK='$AWK' 13054 test -n "\$AWK" || { 13055 awk '' </dev/null || 13056 as_fn_error \$? "try installing gawk" 13057 AWK=awk 13058 } 13059 _ACEOF 13060 13061 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13062 # The default lists apply if the user does not specify any file. 13063 ac_need_defaults=: 13064 while test $# != 0 13065 do 13066 case $1 in 13067 --*=?*) 13068 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13069 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13070 ac_shift=: 13071 ;; 13072 --*=) 13073 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13074 ac_optarg= 13075 ac_shift=: 13076 ;; 13077 *) 13078 ac_option=$1 13079 ac_optarg=$2 13080 ac_shift=shift 13081 ;; 13082 esac 13083 13084 case $ac_option in 13085 # Handling of the options. 13086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13087 ac_cs_recheck=: ;; 13088 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13089 printf '%s\n' "$ac_cs_version"; exit ;; 13090 --config | --confi | --conf | --con | --co | --c ) 13091 printf '%s\n' "$ac_cs_config"; exit ;; 13092 --debug | --debu | --deb | --de | --d | -d ) 13093 debug=: ;; 13094 --file | --fil | --fi | --f ) 13095 $ac_shift 13096 case $ac_optarg in 13097 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13098 '') as_fn_error $? "missing file argument" ;; 13099 esac 13100 as_fn_append CONFIG_FILES " '$ac_optarg'" 13101 ac_need_defaults=false;; 13102 --header | --heade | --head | --hea ) 13103 $ac_shift 13104 case $ac_optarg in 13105 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13106 esac 13107 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13108 ac_need_defaults=false;; 13109 --he | --h) 13110 # Conflict between --help and --header 13111 as_fn_error $? "ambiguous option: '$1' 13112 Try '$0 --help' for more information.";; 13113 --help | --hel | -h ) 13114 printf '%s\n' "$ac_cs_usage"; exit ;; 13115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13116 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13117 ac_cs_silent=: ;; 13118 13119 # This is an error. 13120 -*) as_fn_error $? "unrecognized option: '$1' 13121 Try '$0 --help' for more information." ;; 13122 13123 *) as_fn_append ac_config_targets " $1" 13124 ac_need_defaults=false ;; 13125 13126 esac 13127 shift 13128 done 13129 13130 ac_configure_extra_args= 13131 13132 if $ac_cs_silent; then 13133 exec 6>/dev/null 13134 ac_configure_extra_args="$ac_configure_extra_args --silent" 13135 fi 13136 13137 _ACEOF 13138 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13139 if \$ac_cs_recheck; then 13140 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13141 shift 13142 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6 13143 CONFIG_SHELL='$SHELL' 13144 export CONFIG_SHELL 13145 exec "\$@" 13146 fi 13147 13148 _ACEOF 13149 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13150 exec 5>>config.log 13151 { 13152 echo 13153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13154 ## Running $as_me. ## 13155 _ASBOX 13156 printf '%s\n' "$ac_log" 13157 } >&5 13158 13159 _ACEOF 13160 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13161 # 13162 # INIT-COMMANDS 13163 # 13164 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13165 13166 _ACEOF 13167 13168 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13169 13170 # Handling of arguments. 13171 for ac_config_target in $ac_config_targets 13172 do 13173 case $ac_config_target in 13174 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13175 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13176 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13177 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13178 13179 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 13180 esac 13181 done 13182 13183 13184 # If the user did not use the arguments to specify the items to instantiate, 13185 # then the envvar interface is used. Set only those that are not. 13186 # We use the long form for the default assignment because of an extremely 13187 # bizarre bug on SunOS 4.1.3. 13188 if $ac_need_defaults; then 13189 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 13190 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 13191 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 13192 fi 13193 13194 # Have a temporary directory for convenience. Make it in the build tree 13195 # simply because there is no reason against having it here, and in addition, 13196 # creating and moving files from /tmp can sometimes cause problems. 13197 # Hook for its removal unless debugging. 13198 # Note that there is a small window in which the directory will not be cleaned: 13199 # after its creation but before its name has been assigned to '$tmp'. 13200 $debug || 13201 { 13202 tmp= ac_tmp= 13203 trap 'exit_status=$? 13204 : "${ac_tmp:=$tmp}" 13205 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13206 ' 0 13207 trap 'as_fn_exit 1' 1 2 13 15 13208 } 13209 # Create a (secure) tmp directory for tmp files. 13210 13211 { 13212 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13213 test -d "$tmp" 13214 } || 13215 { 13216 tmp=./conf$$-$RANDOM 13217 (umask 077 && mkdir "$tmp") 13218 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13219 ac_tmp=$tmp 13220 13221 # Set up the scripts for CONFIG_FILES section. 13222 # No need to generate them if there are no CONFIG_FILES. 13223 # This happens for instance with './config.status config.h'. 13224 if test -n "$CONFIG_FILES"; then 13225 13226 13227 ac_cr=`echo X | tr X '\015'` 13228 # On cygwin, bash can eat \r inside `` if the user requested igncr. 13229 # But we know of no other shell where ac_cr would be empty at this 13230 # point, so we can use a bashism as a fallback. 13231 if test "x$ac_cr" = x; then 13232 eval ac_cr=\$\'\\r\' 13233 fi 13234 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13235 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13236 ac_cs_awk_cr='\\r' 13237 else 13238 ac_cs_awk_cr=$ac_cr 13239 fi 13240 13241 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13242 _ACEOF 13243 13244 13245 { 13246 echo "cat >conf$$subs.awk <<_ACEOF" && 13247 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13248 echo "_ACEOF" 13249 } >conf$$subs.sh || 13250 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13251 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='` 13252 ac_delim='%!_!# ' 13253 for ac_last_try in false false false false false :; do 13254 . ./conf$$subs.sh || 13255 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13256 13257 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='` 13258 if test $ac_delim_n = $ac_delim_num; then 13259 break 13260 elif $ac_last_try; then 13261 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13262 else 13263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13264 fi 13265 done 13266 rm -f conf$$subs.sh 13267 13268 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13269 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13270 _ACEOF 13271 sed -n ' 13272 h 13273 s/^/S["/; s/!.*/"]=/ 13274 p 13275 g 13276 s/^[^!]*!// 13277 :repl 13278 t repl 13279 s/'"$ac_delim"'$// 13280 t delim 13281 :nl 13282 h 13283 s/\(.\{148\}\)..*/\1/ 13284 t more1 13285 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13286 p 13287 n 13288 b repl 13289 :more1 13290 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13291 p 13292 g 13293 s/.\{148\}// 13294 t nl 13295 :delim 13296 h 13297 s/\(.\{148\}\)..*/\1/ 13298 t more2 13299 s/["\\]/\\&/g; s/^/"/; s/$/"/ 13300 p 13301 b 13302 :more2 13303 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13304 p 13305 g 13306 s/.\{148\}// 13307 t delim 13308 ' <conf$$subs.awk | sed ' 13309 /^[^""]/{ 13310 N 13311 s/\n// 13312 } 13313 ' >>"$CONFIG_STATUS" || ac_write_fail=1 13314 rm -f conf$$subs.awk 13315 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13316 _ACAWK 13317 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13318 for (key in S) S_is_set[key] = 1 13319 FS = "" 13320 13321 } 13322 { 13323 line = $ 0 13324 nfields = split(line, field, "@") 13325 substed = 0 13326 len = length(field[1]) 13327 for (i = 2; i < nfields; i++) { 13328 key = field[i] 13329 keylen = length(key) 13330 if (S_is_set[key]) { 13331 value = S[key] 13332 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13333 len += length(value) + length(field[++i]) 13334 substed = 1 13335 } else 13336 len += 1 + keylen 13337 } 13338 13339 print line 13340 } 13341 13342 _ACAWK 13343 _ACEOF 13344 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13345 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13346 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13347 else 13348 cat 13349 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13350 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13351 _ACEOF 13352 13353 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13354 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13355 # trailing colons and then remove the whole line if VPATH becomes empty 13356 # (actually we leave an empty line to preserve line numbers). 13357 if test "x$srcdir" = x.; then 13358 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13359 h 13360 s/// 13361 s/^/:/ 13362 s/[ ]*$/:/ 13363 s/:\$(srcdir):/:/g 13364 s/:\${srcdir}:/:/g 13365 s/:@srcdir@:/:/g 13366 s/^:*// 13367 s/:*$// 13368 x 13369 s/\(=[ ]*\).*/\1/ 13370 G 13371 s/\n// 13372 s/^[^=]*=[ ]*$// 13373 }' 13374 fi 13375 13376 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13377 fi # test -n "$CONFIG_FILES" 13378 13379 # Set up the scripts for CONFIG_HEADERS section. 13380 # No need to generate them if there are no CONFIG_HEADERS. 13381 # This happens for instance with './config.status Makefile'. 13382 if test -n "$CONFIG_HEADERS"; then 13383 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13384 BEGIN { 13385 _ACEOF 13386 13387 # Transform confdefs.h into an awk script 'defines.awk', embedded as 13388 # here-document in config.status, that substitutes the proper values into 13389 # config.h.in to produce config.h. 13390 13391 # Create a delimiter string that does not exist in confdefs.h, to ease 13392 # handling of long lines. 13393 ac_delim='%!_!# ' 13394 for ac_last_try in false false :; do 13395 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13396 if test -z "$ac_tt"; then 13397 break 13398 elif $ac_last_try; then 13399 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13400 else 13401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13402 fi 13403 done 13404 13405 # For the awk script, D is an array of macro values keyed by name, 13406 # likewise P contains macro parameters if any. Preserve backslash 13407 # newline sequences. 13408 13409 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13410 sed -n ' 13411 s/.\{148\}/&'"$ac_delim"'/g 13412 t rset 13413 :rset 13414 s/^[ ]*#[ ]*define[ ][ ]*/ / 13415 t def 13416 d 13417 :def 13418 s/\\$// 13419 t bsnl 13420 s/["\\]/\\&/g 13421 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13422 D["\1"]=" \3"/p 13423 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13424 d 13425 :bsnl 13426 s/["\\]/\\&/g 13427 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13428 D["\1"]=" \3\\\\\\n"\\/p 13429 t cont 13430 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13431 t cont 13432 d 13433 :cont 13434 n 13435 s/.\{148\}/&'"$ac_delim"'/g 13436 t clear 13437 :clear 13438 s/\\$// 13439 t bsnlc 13440 s/["\\]/\\&/g; s/^/"/; s/$/"/p 13441 d 13442 :bsnlc 13443 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13444 b cont 13445 ' <confdefs.h | sed ' 13446 s/'"$ac_delim"'/"\\\ 13447 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1 13448 13449 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13450 for (key in D) D_is_set[key] = 1 13451 FS = "" 13452 } 13453 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13454 line = \$ 0 13455 split(line, arg, " ") 13456 if (arg[1] == "#") { 13457 defundef = arg[2] 13458 mac1 = arg[3] 13459 } else { 13460 defundef = substr(arg[1], 2) 13461 mac1 = arg[2] 13462 } 13463 split(mac1, mac2, "(") #) 13464 macro = mac2[1] 13465 prefix = substr(line, 1, index(line, defundef) - 1) 13466 if (D_is_set[macro]) { 13467 suffix = P[macro] D[macro] 13468 while (suffix ~ /[\t ]$/) { 13469 suffix = substr(suffix, 1, length(suffix) - 1) 13470 } 13471 # Preserve the white space surrounding the "#". 13472 print prefix "define", macro suffix 13473 next 13474 } else { 13475 # Replace #undef with comments. This is necessary, for example, 13476 # in the case of _POSIX_SOURCE, which is predefined and required 13477 # on some systems where configure will not decide to define it. 13478 if (defundef == "undef") { 13479 print "/*", prefix defundef, macro, "*/" 13480 next 13481 } 13482 } 13483 } 13484 { print } 13485 _ACAWK 13486 _ACEOF 13487 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13488 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13489 fi # test -n "$CONFIG_HEADERS" 13490 13491 13492 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13493 shift 13494 for ac_tag 13495 do 13496 case $ac_tag in 13497 :[FHLC]) ac_mode=$ac_tag; continue;; 13498 esac 13499 case $ac_mode$ac_tag in 13500 :[FHL]*:*);; 13501 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13502 :[FH]-) ac_tag=-:-;; 13503 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13504 esac 13505 ac_save_IFS=$IFS 13506 IFS=: 13507 set x $ac_tag 13508 IFS=$ac_save_IFS 13509 shift 13510 ac_file=$1 13511 shift 13512 13513 case $ac_mode in 13514 :L) ac_source=$1;; 13515 :[FH]) 13516 ac_file_inputs= 13517 for ac_f 13518 do 13519 case $ac_f in 13520 -) ac_f="$ac_tmp/stdin";; 13521 *) # Look for the file first in the build tree, then in the source tree 13522 # (if the path is not absolute). The absolute path cannot be DOS-style, 13523 # because $ac_f cannot contain ':'. 13524 test -f "$ac_f" || 13525 case $ac_f in 13526 [\\/$]*) false;; 13527 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13528 esac || 13529 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13530 esac 13531 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13532 as_fn_append ac_file_inputs " '$ac_f'" 13533 done 13534 13535 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13536 # use $as_me), people would be surprised to read: 13537 # /* config.h. Generated by config.status. */ 13538 configure_input='Generated from '` 13539 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13540 `' by configure.' 13541 if test x"$ac_file" != x-; then 13542 configure_input="$ac_file. $configure_input" 13543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13544 printf '%s\n' "$as_me: creating $ac_file" >&6;} 13545 fi 13546 # Neutralize special characters interpreted by sed in replacement strings. 13547 case $configure_input in #( 13548 *\&* | *\|* | *\\* ) 13549 ac_sed_conf_input=`printf '%s\n' "$configure_input" | 13550 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13551 *) ac_sed_conf_input=$configure_input;; 13552 esac 13553 13554 case $ac_tag in 13555 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13556 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13557 esac 13558 ;; 13559 esac 13560 13561 ac_dir=`$as_dirname -- "$ac_file" || 13562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13563 X"$ac_file" : 'X\(//\)[^/]' \| \ 13564 X"$ac_file" : 'X\(//\)$' \| \ 13565 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13566 printf '%s\n' X"$ac_file" | 13567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13568 s//\1/ 13569 q 13570 } 13571 /^X\(\/\/\)[^/].*/{ 13572 s//\1/ 13573 q 13574 } 13575 /^X\(\/\/\)$/{ 13576 s//\1/ 13577 q 13578 } 13579 /^X\(\/\).*/{ 13580 s//\1/ 13581 q 13582 } 13583 s/.*/./; q'` 13584 as_dir="$ac_dir"; as_fn_mkdir_p 13585 ac_builddir=. 13586 13587 case "$ac_dir" in 13588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13589 *) 13590 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'` 13591 # A ".." for each directory in $ac_dir_suffix. 13592 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13593 case $ac_top_builddir_sub in 13594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13596 esac ;; 13597 esac 13598 ac_abs_top_builddir=$ac_pwd 13599 ac_abs_builddir=$ac_pwd$ac_dir_suffix 13600 # for backward compatibility: 13601 ac_top_builddir=$ac_top_build_prefix 13602 13603 case $srcdir in 13604 .) # We are building in place. 13605 ac_srcdir=. 13606 ac_top_srcdir=$ac_top_builddir_sub 13607 ac_abs_top_srcdir=$ac_pwd ;; 13608 [\\/]* | ?:[\\/]* ) # Absolute name. 13609 ac_srcdir=$srcdir$ac_dir_suffix; 13610 ac_top_srcdir=$srcdir 13611 ac_abs_top_srcdir=$srcdir ;; 13612 *) # Relative name. 13613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13614 ac_top_srcdir=$ac_top_build_prefix$srcdir 13615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13616 esac 13617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13618 13619 13620 case $ac_mode in 13621 :F) 13622 # 13623 # CONFIG_FILE 13624 # 13625 13626 case $INSTALL in 13627 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13628 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13629 esac 13630 ac_MKDIR_P=$MKDIR_P 13631 case $MKDIR_P in 13632 [\\/$]* | ?:[\\/]* ) ;; 13633 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13634 esac 13635 _ACEOF 13636 13637 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13638 # If the template does not know about datarootdir, expand it. 13639 # FIXME: This hack should be removed a few years after 2.60. 13640 ac_datarootdir_hack=; ac_datarootdir_seen= 13641 ac_sed_dataroot=' 13642 /datarootdir/ { 13643 p 13644 q 13645 } 13646 /@datadir@/p 13647 /@docdir@/p 13648 /@infodir@/p 13649 /@localedir@/p 13650 /@mandir@/p' 13651 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13652 *datarootdir*) ac_datarootdir_seen=yes;; 13653 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13654 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13655 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13656 _ACEOF 13657 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13658 ac_datarootdir_hack=' 13659 s&@datadir@&$datadir&g 13660 s&@docdir@&$docdir&g 13661 s&@infodir@&$infodir&g 13662 s&@localedir@&$localedir&g 13663 s&@mandir@&$mandir&g 13664 s&\\\${datarootdir}&$datarootdir&g' ;; 13665 esac 13666 _ACEOF 13667 13668 # Neutralize VPATH when '$srcdir' = '.'. 13669 # Shell code in configure.ac might set extrasub. 13670 # FIXME: do we really want to maintain this feature? 13671 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13672 ac_sed_extra="$ac_vpsub 13673 $extrasub 13674 _ACEOF 13675 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13676 :t 13677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13678 s|@configure_input@|$ac_sed_conf_input|;t t 13679 s&@top_builddir@&$ac_top_builddir_sub&;t t 13680 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13681 s&@srcdir@&$ac_srcdir&;t t 13682 s&@abs_srcdir@&$ac_abs_srcdir&;t t 13683 s&@top_srcdir@&$ac_top_srcdir&;t t 13684 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13685 s&@builddir@&$ac_builddir&;t t 13686 s&@abs_builddir@&$ac_abs_builddir&;t t 13687 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13688 s&@INSTALL@&$ac_INSTALL&;t t 13689 s&@MKDIR_P@&$ac_MKDIR_P&;t t 13690 $ac_datarootdir_hack 13691 " 13692 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13693 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13694 13695 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13696 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13697 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13698 "$ac_tmp/out"`; test -z "$ac_out"; } && 13699 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13700 which seems to be undefined. Please make sure it is defined" >&5 13701 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13702 which seems to be undefined. Please make sure it is defined" >&2;} 13703 13704 rm -f "$ac_tmp/stdin" 13705 case $ac_file in 13706 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13707 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13708 esac \ 13709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13710 ;; 13711 :H) 13712 # 13713 # CONFIG_HEADER 13714 # 13715 if test x"$ac_file" != x-; then 13716 { 13717 printf '%s\n' "/* $configure_input */" >&1 \ 13718 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13719 } >"$ac_tmp/config.h" \ 13720 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13721 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13722 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13723 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;} 13724 else 13725 rm -f "$ac_file" 13726 mv "$ac_tmp/config.h" "$ac_file" \ 13727 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13728 fi 13729 else 13730 printf '%s\n' "/* $configure_input */" >&1 \ 13731 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13732 || as_fn_error $? "could not create -" "$LINENO" 5 13733 fi 13734 # Compute "$ac_file"'s index in $config_headers. 13735 _am_arg="$ac_file" 13736 _am_stamp_count=1 13737 for _am_header in $config_headers :; do 13738 case $_am_header in 13739 $_am_arg | $_am_arg:* ) 13740 break ;; 13741 * ) 13742 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13743 esac 13744 done 13745 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13746 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13747 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13748 X"$_am_arg" : 'X\(//\)$' \| \ 13749 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13750 printf '%s\n' X"$_am_arg" | 13751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13752 s//\1/ 13753 q 13754 } 13755 /^X\(\/\/\)[^/].*/{ 13756 s//\1/ 13757 q 13758 } 13759 /^X\(\/\/\)$/{ 13760 s//\1/ 13761 q 13762 } 13763 /^X\(\/\).*/{ 13764 s//\1/ 13765 q 13766 } 13767 s/.*/./; q'`/stamp-h$_am_stamp_count 13768 ;; 13769 13770 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13771 printf '%s\n' "$as_me: executing $ac_file commands" >&6;} 13772 ;; 13773 esac 13774 13775 13776 case $ac_file$ac_mode in 13777 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13778 # Older Autoconf quotes --file arguments for eval, but not when files 13779 # are listed without --file. Let's play safe and only enable the eval 13780 # if we detect the quoting. 13781 # TODO: see whether this extra hack can be removed once we start 13782 # requiring Autoconf 2.70 or later. 13783 case $CONFIG_FILES in #( 13784 *\'*) : 13785 eval set x "$CONFIG_FILES" ;; #( 13786 *) : 13787 set x $CONFIG_FILES ;; #( 13788 *) : 13789 ;; 13790 esac 13791 shift 13792 # Used to flag and report bootstrapping failures. 13793 am_rc=0 13794 for am_mf 13795 do 13796 # Strip MF so we end up with the name of the file. 13797 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'` 13798 # Check whether this is an Automake generated Makefile which includes 13799 # dependency-tracking related rules and includes. 13800 # Grep'ing the whole file directly is not great: AIX grep has a line 13801 # limit of 2048, but all sed's we know have understand at least 4000. 13802 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13803 || continue 13804 am_dirpart=`$as_dirname -- "$am_mf" || 13805 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13806 X"$am_mf" : 'X\(//\)[^/]' \| \ 13807 X"$am_mf" : 'X\(//\)$' \| \ 13808 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13809 printf '%s\n' X"$am_mf" | 13810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13811 s//\1/ 13812 q 13813 } 13814 /^X\(\/\/\)[^/].*/{ 13815 s//\1/ 13816 q 13817 } 13818 /^X\(\/\/\)$/{ 13819 s//\1/ 13820 q 13821 } 13822 /^X\(\/\).*/{ 13823 s//\1/ 13824 q 13825 } 13826 s/.*/./; q'` 13827 am_filepart=`$as_basename -- "$am_mf" || 13828 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13829 X"$am_mf" : 'X\(//\)$' \| \ 13830 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13831 printf '%s\n' X/"$am_mf" | 13832 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13833 s//\1/ 13834 q 13835 } 13836 /^X\/\(\/\/\)$/{ 13837 s//\1/ 13838 q 13839 } 13840 /^X\/\(\/\).*/{ 13841 s//\1/ 13842 q 13843 } 13844 s/.*/./; q'` 13845 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13846 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13847 | $MAKE -f - am--depfiles" >&5 13848 (cd "$am_dirpart" \ 13849 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13850 | $MAKE -f - am--depfiles) >&5 2>&5 13851 ac_status=$? 13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13853 (exit $ac_status); } || am_rc=$? 13854 done 13855 if test $am_rc -ne 0; then 13856 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13857 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 13858 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13859 for automatic dependency tracking. If GNU make was not used, consider 13860 re-running the configure script with MAKE=\"gmake\" (or whatever is 13861 necessary). You can also try re-running configure with the 13862 '--disable-dependency-tracking' option to at least be able to build 13863 the package (albeit without support for automatic dependency tracking). 13864 See 'config.log' for more details" "$LINENO" 5; } 13865 fi 13866 { am_dirpart=; unset am_dirpart;} 13867 { am_filepart=; unset am_filepart;} 13868 { am_mf=; unset am_mf;} 13869 { am_rc=; unset am_rc;} 13870 rm -f conftest-deps.mk 13871 } 13872 ;; 13873 13874 esac 13875 done # for ac_tag 13876 13877 13878 as_fn_exit 0 13879 _ACEOF 13880 ac_clean_CONFIG_STATUS= 13881 13882 test $ac_write_fail = 0 || 13883 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13884 13885 13886 # configure is writing to config.log, and then calls config.status. 13887 # config.status does its own redirection, appending to config.log. 13888 # Unfortunately, on DOS this fails, as config.log is still kept open 13889 # by configure, so config.status won't be able to write to it; its 13890 # output is simply discarded. So we exec the FD to /dev/null, 13891 # effectively closing config.log, so it can be properly (re)opened and 13892 # appended to by config.status. When coming back to configure, we 13893 # need to make the FD available again. 13894 if test "$no_create" != yes; then 13895 ac_cs_success=: 13896 case $CONFIG_STATUS in #( 13897 -*) : 13898 ac_no_opts=-- ;; #( 13899 *) : 13900 ac_no_opts= ;; 13901 esac 13902 ac_config_status_args= 13903 test "$silent" = yes && 13904 ac_config_status_args="$ac_config_status_args --quiet" 13905 exec 5>/dev/null 13906 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args || 13907 ac_cs_success=false 13908 exec 5>>config.log 13909 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13910 # would make configure fail if this is the last instruction. 13911 $ac_cs_success || as_fn_exit 1 13912 fi 13913 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13914 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13915 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13916 fi 13917 13918 13919