1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for xinit 1.4.3. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 as_nop=: 21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed `exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152 else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177 fi 178 test x\$exitcode = x0 || exit 1 179 blah=\$(echo \$(echo blah)) 180 test x\"\$blah\" = xblah || exit 1 181 test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188 then : 189 as_have_required=yes 190 else $as_nop 191 as_have_required=no 192 fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194 then : 195 196 else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198 as_found=false 199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200 do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215 then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218 then : 219 break 2 220 fi 221 fi 222 done;; 223 esac 224 as_found=false 225 done 226 IFS=$as_save_IFS 227 if $as_found 228 then : 229 230 else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233 then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235 fi 236 fi 237 238 239 if test "x$CONFIG_SHELL" != x 240 then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243 # neutralization value for shells without unset; and this also 244 # works around shells that cannot unset nonexistent variables. 245 # Preserve -v and -x to the replacement shell. 246 BASH_ENV=/dev/null 247 ENV=/dev/null 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249 case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254 esac 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256 # Admittedly, this is quite paranoid, since all the known shells bail 257 # out after a failed `exec'. 258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259 exit 255 260 fi 261 262 if test x$as_have_required = xno 263 then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 271 $0: https://gitlab.freedesktop.org/xorg/app/xinit/-/issues 272 $0: about your system, including any error possibly output 273 $0: before this message. Then install a modern shell, or 274 $0: manually run the script under such a shell if you do 275 $0: have one." 276 fi 277 exit 1 278 fi 279 fi 280 fi 281 SHELL=${CONFIG_SHELL-/bin/sh} 282 export SHELL 283 # Unset more variables known to interfere with behavior of common tools. 284 CLICOLOR_FORCE= GREP_OPTIONS= 285 unset CLICOLOR_FORCE GREP_OPTIONS 286 287 ## --------------------- ## 288 ## M4sh Shell Functions. ## 289 ## --------------------- ## 290 # as_fn_unset VAR 291 # --------------- 292 # Portably unset VAR. 293 as_fn_unset () 294 { 295 { eval $1=; unset $1;} 296 } 297 as_unset=as_fn_unset 298 299 300 # as_fn_set_status STATUS 301 # ----------------------- 302 # Set $? to STATUS, without forking. 303 as_fn_set_status () 304 { 305 return $1 306 } # as_fn_set_status 307 308 # as_fn_exit STATUS 309 # ----------------- 310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311 as_fn_exit () 312 { 313 set +e 314 as_fn_set_status $1 315 exit $1 316 } # as_fn_exit 317 # as_fn_nop 318 # --------- 319 # Do nothing but, unlike ":", preserve the value of $?. 320 as_fn_nop () 321 { 322 return $? 323 } 324 as_nop=as_fn_nop 325 326 # as_fn_mkdir_p 327 # ------------- 328 # Create "$as_dir" as a directory, including parents if necessary. 329 as_fn_mkdir_p () 330 { 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348 printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372 } # as_fn_mkdir_p 373 374 # as_fn_executable_p FILE 375 # ----------------------- 376 # Test if FILE is an executable regular file. 377 as_fn_executable_p () 378 { 379 test -f "$1" && test -x "$1" 380 } # as_fn_executable_p 381 # as_fn_append VAR VALUE 382 # ---------------------- 383 # Append the text in VALUE to the end of the definition contained in VAR. Take 384 # advantage of any shell optimizations that allow amortized linear growth over 385 # repeated appends, instead of the typical quadratic growth present in naive 386 # implementations. 387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388 then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393 else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398 fi # as_fn_append 399 400 # as_fn_arith ARG... 401 # ------------------ 402 # Perform arithmetic evaluation on the ARGs, and store the result in the 403 # global $as_val. Take advantage of shells that can avoid forks. The arguments 404 # must be portable across $(()) and expr. 405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406 then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411 else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416 fi # as_fn_arith 417 418 # as_fn_nop 419 # --------- 420 # Do nothing but, unlike ":", preserve the value of $?. 421 as_fn_nop () 422 { 423 return $? 424 } 425 as_nop=as_fn_nop 426 427 # as_fn_error STATUS ERROR [LINENO LOG_FD] 428 # ---------------------------------------- 429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431 # script with STATUS, using 1 if that was 0. 432 as_fn_error () 433 { 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441 } # as_fn_error 442 443 if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446 else 447 as_expr=false 448 fi 449 450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452 else 453 as_basename=false 454 fi 455 456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458 else 459 as_dirname=false 460 fi 461 462 as_me=`$as_basename -- "$0" || 463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466 printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481 # Avoid depending upon Character Ranges. 482 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485 as_cr_digits='0123456789' 486 as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522 } 523 524 525 # Determine whether it's possible to make 'echo' print without a newline. 526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527 # for compatibility with existing Makefiles. 528 ECHO_C= ECHO_N= ECHO_T= 529 case `echo -n x` in #((((( 530 -n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537 *) 538 ECHO_N='-n';; 539 esac 540 541 # For backward compatibility with old third-party macros, we provide 542 # the shell variables $as_echo and $as_echo_n. New code should use 543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544 as_echo='printf %s\n' 545 as_echo_n='printf %s' 546 547 548 rm -f conf$$ conf$$.exe conf$$.file 549 if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551 else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554 fi 555 if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569 else 570 as_ln_s='cp -pR' 571 fi 572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573 rmdir conf$$.dir 2>/dev/null 574 575 if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577 else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580 fi 581 582 as_test_x='test -x' 583 as_executable_p=as_fn_executable_p 584 585 # Sed expression to map a string onto a valid CPP name. 586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588 # Sed expression to map a string onto a valid variable name. 589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591 592 test -n "$DJDIR" || exec 7<&0 </dev/null 593 exec 6>&1 594 595 # Name of the host. 596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597 # so uname gets run too. 598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599 600 # 601 # Initializations. 602 # 603 ac_default_prefix=/usr/local 604 ac_clean_files= 605 ac_config_libobj_dir=. 606 LIBOBJS= 607 cross_compiling=no 608 subdirs= 609 MFLAGS= 610 MAKEFLAGS= 611 612 # Identity of this package. 613 PACKAGE_NAME='xinit' 614 PACKAGE_TARNAME='xinit' 615 PACKAGE_VERSION='1.4.3' 616 PACKAGE_STRING='xinit 1.4.3' 617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xinit/-/issues' 618 PACKAGE_URL='' 619 620 ac_unique_file="Makefile.am" 621 # Factoring default headers for most tests. 622 ac_includes_default="\ 623 #include <stddef.h> 624 #ifdef HAVE_STDIO_H 625 # include <stdio.h> 626 #endif 627 #ifdef HAVE_STDLIB_H 628 # include <stdlib.h> 629 #endif 630 #ifdef HAVE_STRING_H 631 # include <string.h> 632 #endif 633 #ifdef HAVE_INTTYPES_H 634 # include <inttypes.h> 635 #endif 636 #ifdef HAVE_STDINT_H 637 # include <stdint.h> 638 #endif 639 #ifdef HAVE_STRINGS_H 640 # include <strings.h> 641 #endif 642 #ifdef HAVE_SYS_TYPES_H 643 # include <sys/types.h> 644 #endif 645 #ifdef HAVE_SYS_STAT_H 646 # include <sys/stat.h> 647 #endif 648 #ifdef HAVE_UNISTD_H 649 # include <unistd.h> 650 #endif" 651 652 ac_header_c_list= 653 ac_subst_vars='am__EXEEXT_FALSE 654 am__EXEEXT_TRUE 655 LTLIBOBJS 656 LIBOBJS 657 XINITDIR 658 XINIT 659 XAUTH 660 XSERVER 661 XTERM 662 XCLOCK 663 TWM 664 XMODMAP 665 XRDB 666 XCONFIGFILEMAN 667 XCONFIGFILE 668 XSERVERNAME 669 SHELL_CMD 670 STARTX_COOKIE_FLAGS 671 OPENSSL 672 MCOOKIE 673 XINIT_LIBS 674 XINIT_CFLAGS 675 LAUNCHAGENT_XSERVER_FALSE 676 LAUNCHAGENT_XSERVER_TRUE 677 LAUNCHD_FALSE 678 LAUNCHD_TRUE 679 launchagentxserver 680 bundleidprefix 681 launchdaemonsdir 682 launchagentsdir 683 LAUNCHD 684 TRADITIONALCPPFLAGS 685 RAWCPPFLAGS 686 RAWCPP 687 CPP 688 MAN_SUBSTS 689 XORG_MAN_PAGE 690 ADMIN_MAN_DIR 691 DRIVER_MAN_DIR 692 MISC_MAN_DIR 693 FILE_MAN_DIR 694 LIB_MAN_DIR 695 APP_MAN_DIR 696 ADMIN_MAN_SUFFIX 697 DRIVER_MAN_SUFFIX 698 MISC_MAN_SUFFIX 699 FILE_MAN_SUFFIX 700 LIB_MAN_SUFFIX 701 APP_MAN_SUFFIX 702 SED 703 host_os 704 host_vendor 705 host_cpu 706 host 707 build_os 708 build_vendor 709 build_cpu 710 build 711 INSTALL_CMD 712 PKG_CONFIG_LIBDIR 713 PKG_CONFIG_PATH 714 PKG_CONFIG 715 CHANGELOG_CMD 716 STRICT_CFLAGS 717 CWARNFLAGS 718 BASE_CFLAGS 719 AM_BACKSLASH 720 AM_DEFAULT_VERBOSITY 721 AM_DEFAULT_V 722 AM_V 723 am__fastdepCC_FALSE 724 am__fastdepCC_TRUE 725 CCDEPMODE 726 am__nodep 727 AMDEPBACKSLASH 728 AMDEP_FALSE 729 AMDEP_TRUE 730 am__include 731 DEPDIR 732 am__untar 733 am__tar 734 AMTAR 735 am__leading_dot 736 SET_MAKE 737 AWK 738 mkdir_p 739 MKDIR_P 740 INSTALL_STRIP_PROGRAM 741 STRIP 742 install_sh 743 MAKEINFO 744 AUTOHEADER 745 AUTOMAKE 746 AUTOCONF 747 ACLOCAL 748 VERSION 749 PACKAGE 750 CYGPATH_W 751 am__isrc 752 INSTALL_DATA 753 INSTALL_SCRIPT 754 INSTALL_PROGRAM 755 OBJEXT 756 EXEEXT 757 ac_ct_CC 758 CPPFLAGS 759 LDFLAGS 760 CFLAGS 761 CC 762 target_alias 763 host_alias 764 build_alias 765 LIBS 766 ECHO_T 767 ECHO_N 768 ECHO_C 769 DEFS 770 mandir 771 localedir 772 libdir 773 psdir 774 pdfdir 775 dvidir 776 htmldir 777 infodir 778 docdir 779 oldincludedir 780 includedir 781 runstatedir 782 localstatedir 783 sharedstatedir 784 sysconfdir 785 datadir 786 datarootdir 787 libexecdir 788 sbindir 789 bindir 790 program_transform_name 791 prefix 792 exec_prefix 793 PACKAGE_URL 794 PACKAGE_BUGREPORT 795 PACKAGE_STRING 796 PACKAGE_VERSION 797 PACKAGE_TARNAME 798 PACKAGE_NAME 799 PATH_SEPARATOR 800 SHELL 801 am__quote' 802 ac_subst_files='' 803 ac_user_opts=' 804 enable_option_checking 805 enable_dependency_tracking 806 enable_silent_rules 807 enable_selective_werror 808 enable_strict_compilation 809 with_xrdb 810 with_xmodmap 811 with_twm 812 with_xclock 813 with_xterm 814 with_xserver 815 with_xauth 816 with_xinit 817 with_xinitdir 818 with_launchd 819 with_launchagents_dir 820 with_launchagent_xserver 821 with_launchdaemons_dir 822 with_launchd_id_prefix 823 with_bundle_id_prefix 824 ' 825 ac_precious_vars='build_alias 826 host_alias 827 target_alias 828 CC 829 CFLAGS 830 LDFLAGS 831 LIBS 832 CPPFLAGS 833 PKG_CONFIG 834 PKG_CONFIG_PATH 835 PKG_CONFIG_LIBDIR 836 CPP 837 XINIT_CFLAGS 838 XINIT_LIBS' 839 840 841 # Initialize some variables set by options. 842 ac_init_help= 843 ac_init_version=false 844 ac_unrecognized_opts= 845 ac_unrecognized_sep= 846 # The variables have the same names as the options, with 847 # dashes changed to underlines. 848 cache_file=/dev/null 849 exec_prefix=NONE 850 no_create= 851 no_recursion= 852 prefix=NONE 853 program_prefix=NONE 854 program_suffix=NONE 855 program_transform_name=s,x,x, 856 silent= 857 site= 858 srcdir= 859 verbose= 860 x_includes=NONE 861 x_libraries=NONE 862 863 # Installation directory options. 864 # These are left unexpanded so users can "make install exec_prefix=/foo" 865 # and all the variables that are supposed to be based on exec_prefix 866 # by default will actually change. 867 # Use braces instead of parens because sh, perl, etc. also accept them. 868 # (The list follows the same order as the GNU Coding Standards.) 869 bindir='${exec_prefix}/bin' 870 sbindir='${exec_prefix}/sbin' 871 libexecdir='${exec_prefix}/libexec' 872 datarootdir='${prefix}/share' 873 datadir='${datarootdir}' 874 sysconfdir='${prefix}/etc' 875 sharedstatedir='${prefix}/com' 876 localstatedir='${prefix}/var' 877 runstatedir='${localstatedir}/run' 878 includedir='${prefix}/include' 879 oldincludedir='/usr/include' 880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 881 infodir='${datarootdir}/info' 882 htmldir='${docdir}' 883 dvidir='${docdir}' 884 pdfdir='${docdir}' 885 psdir='${docdir}' 886 libdir='${exec_prefix}/lib' 887 localedir='${datarootdir}/locale' 888 mandir='${datarootdir}/man' 889 890 ac_prev= 891 ac_dashdash= 892 for ac_option 893 do 894 # If the previous option needs an argument, assign it. 895 if test -n "$ac_prev"; then 896 eval $ac_prev=\$ac_option 897 ac_prev= 898 continue 899 fi 900 901 case $ac_option in 902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 903 *=) ac_optarg= ;; 904 *) ac_optarg=yes ;; 905 esac 906 907 case $ac_dashdash$ac_option in 908 --) 909 ac_dashdash=yes ;; 910 911 -bindir | --bindir | --bindi | --bind | --bin | --bi) 912 ac_prev=bindir ;; 913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 914 bindir=$ac_optarg ;; 915 916 -build | --build | --buil | --bui | --bu) 917 ac_prev=build_alias ;; 918 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 919 build_alias=$ac_optarg ;; 920 921 -cache-file | --cache-file | --cache-fil | --cache-fi \ 922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 923 ac_prev=cache_file ;; 924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 926 cache_file=$ac_optarg ;; 927 928 --config-cache | -C) 929 cache_file=config.cache ;; 930 931 -datadir | --datadir | --datadi | --datad) 932 ac_prev=datadir ;; 933 -datadir=* | --datadir=* | --datadi=* | --datad=*) 934 datadir=$ac_optarg ;; 935 936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 937 | --dataroo | --dataro | --datar) 938 ac_prev=datarootdir ;; 939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 941 datarootdir=$ac_optarg ;; 942 943 -disable-* | --disable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: \`$ac_useropt'" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952 "enable_$ac_useropt" 953 "*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=no ;; 958 959 -docdir | --docdir | --docdi | --doc | --do) 960 ac_prev=docdir ;; 961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 962 docdir=$ac_optarg ;; 963 964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 965 ac_prev=dvidir ;; 966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 967 dvidir=$ac_optarg ;; 968 969 -enable-* | --enable-*) 970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 971 # Reject names that are not valid shell variable names. 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 973 as_fn_error $? "invalid feature name: \`$ac_useropt'" 974 ac_useropt_orig=$ac_useropt 975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 976 case $ac_user_opts in 977 *" 978 "enable_$ac_useropt" 979 "*) ;; 980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 981 ac_unrecognized_sep=', ';; 982 esac 983 eval enable_$ac_useropt=\$ac_optarg ;; 984 985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 987 | --exec | --exe | --ex) 988 ac_prev=exec_prefix ;; 989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 991 | --exec=* | --exe=* | --ex=*) 992 exec_prefix=$ac_optarg ;; 993 994 -gas | --gas | --ga | --g) 995 # Obsolete; use --with-gas. 996 with_gas=yes ;; 997 998 -help | --help | --hel | --he | -h) 999 ac_init_help=long ;; 1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1001 ac_init_help=recursive ;; 1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1003 ac_init_help=short ;; 1004 1005 -host | --host | --hos | --ho) 1006 ac_prev=host_alias ;; 1007 -host=* | --host=* | --hos=* | --ho=*) 1008 host_alias=$ac_optarg ;; 1009 1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1011 ac_prev=htmldir ;; 1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1013 | --ht=*) 1014 htmldir=$ac_optarg ;; 1015 1016 -includedir | --includedir | --includedi | --included | --include \ 1017 | --includ | --inclu | --incl | --inc) 1018 ac_prev=includedir ;; 1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1020 | --includ=* | --inclu=* | --incl=* | --inc=*) 1021 includedir=$ac_optarg ;; 1022 1023 -infodir | --infodir | --infodi | --infod | --info | --inf) 1024 ac_prev=infodir ;; 1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1026 infodir=$ac_optarg ;; 1027 1028 -libdir | --libdir | --libdi | --libd) 1029 ac_prev=libdir ;; 1030 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1031 libdir=$ac_optarg ;; 1032 1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1034 | --libexe | --libex | --libe) 1035 ac_prev=libexecdir ;; 1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1037 | --libexe=* | --libex=* | --libe=*) 1038 libexecdir=$ac_optarg ;; 1039 1040 -localedir | --localedir | --localedi | --localed | --locale) 1041 ac_prev=localedir ;; 1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1043 localedir=$ac_optarg ;; 1044 1045 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1046 | --localstate | --localstat | --localsta | --localst | --locals) 1047 ac_prev=localstatedir ;; 1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1050 localstatedir=$ac_optarg ;; 1051 1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1053 ac_prev=mandir ;; 1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1055 mandir=$ac_optarg ;; 1056 1057 -nfp | --nfp | --nf) 1058 # Obsolete; use --without-fp. 1059 with_fp=no ;; 1060 1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1062 | --no-cr | --no-c | -n) 1063 no_create=yes ;; 1064 1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1067 no_recursion=yes ;; 1068 1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1071 | --oldin | --oldi | --old | --ol | --o) 1072 ac_prev=oldincludedir ;; 1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1076 oldincludedir=$ac_optarg ;; 1077 1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1079 ac_prev=prefix ;; 1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1081 prefix=$ac_optarg ;; 1082 1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1084 | --program-pre | --program-pr | --program-p) 1085 ac_prev=program_prefix ;; 1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1088 program_prefix=$ac_optarg ;; 1089 1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1091 | --program-suf | --program-su | --program-s) 1092 ac_prev=program_suffix ;; 1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1095 program_suffix=$ac_optarg ;; 1096 1097 -program-transform-name | --program-transform-name \ 1098 | --program-transform-nam | --program-transform-na \ 1099 | --program-transform-n | --program-transform- \ 1100 | --program-transform | --program-transfor \ 1101 | --program-transfo | --program-transf \ 1102 | --program-trans | --program-tran \ 1103 | --progr-tra | --program-tr | --program-t) 1104 ac_prev=program_transform_name ;; 1105 -program-transform-name=* | --program-transform-name=* \ 1106 | --program-transform-nam=* | --program-transform-na=* \ 1107 | --program-transform-n=* | --program-transform-=* \ 1108 | --program-transform=* | --program-transfor=* \ 1109 | --program-transfo=* | --program-transf=* \ 1110 | --program-trans=* | --program-tran=* \ 1111 | --progr-tra=* | --program-tr=* | --program-t=*) 1112 program_transform_name=$ac_optarg ;; 1113 1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1115 ac_prev=pdfdir ;; 1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1117 pdfdir=$ac_optarg ;; 1118 1119 -psdir | --psdir | --psdi | --psd | --ps) 1120 ac_prev=psdir ;; 1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1122 psdir=$ac_optarg ;; 1123 1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1125 | -silent | --silent | --silen | --sile | --sil) 1126 silent=yes ;; 1127 1128 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1129 | --runstate | --runstat | --runsta | --runst | --runs \ 1130 | --run | --ru | --r) 1131 ac_prev=runstatedir ;; 1132 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1133 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1134 | --run=* | --ru=* | --r=*) 1135 runstatedir=$ac_optarg ;; 1136 1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1138 ac_prev=sbindir ;; 1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1140 | --sbi=* | --sb=*) 1141 sbindir=$ac_optarg ;; 1142 1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1145 | --sharedst | --shareds | --shared | --share | --shar \ 1146 | --sha | --sh) 1147 ac_prev=sharedstatedir ;; 1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1151 | --sha=* | --sh=*) 1152 sharedstatedir=$ac_optarg ;; 1153 1154 -site | --site | --sit) 1155 ac_prev=site ;; 1156 -site=* | --site=* | --sit=*) 1157 site=$ac_optarg ;; 1158 1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1160 ac_prev=srcdir ;; 1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1162 srcdir=$ac_optarg ;; 1163 1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1165 | --syscon | --sysco | --sysc | --sys | --sy) 1166 ac_prev=sysconfdir ;; 1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1169 sysconfdir=$ac_optarg ;; 1170 1171 -target | --target | --targe | --targ | --tar | --ta | --t) 1172 ac_prev=target_alias ;; 1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1174 target_alias=$ac_optarg ;; 1175 1176 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1177 verbose=yes ;; 1178 1179 -version | --version | --versio | --versi | --vers | -V) 1180 ac_init_version=: ;; 1181 1182 -with-* | --with-*) 1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1184 # Reject names that are not valid shell variable names. 1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1186 as_fn_error $? "invalid package name: \`$ac_useropt'" 1187 ac_useropt_orig=$ac_useropt 1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1189 case $ac_user_opts in 1190 *" 1191 "with_$ac_useropt" 1192 "*) ;; 1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1194 ac_unrecognized_sep=', ';; 1195 esac 1196 eval with_$ac_useropt=\$ac_optarg ;; 1197 1198 -without-* | --without-*) 1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1200 # Reject names that are not valid shell variable names. 1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1202 as_fn_error $? "invalid package name: \`$ac_useropt'" 1203 ac_useropt_orig=$ac_useropt 1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1205 case $ac_user_opts in 1206 *" 1207 "with_$ac_useropt" 1208 "*) ;; 1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1210 ac_unrecognized_sep=', ';; 1211 esac 1212 eval with_$ac_useropt=no ;; 1213 1214 --x) 1215 # Obsolete; use --with-x. 1216 with_x=yes ;; 1217 1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1219 | --x-incl | --x-inc | --x-in | --x-i) 1220 ac_prev=x_includes ;; 1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1223 x_includes=$ac_optarg ;; 1224 1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1227 ac_prev=x_libraries ;; 1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1230 x_libraries=$ac_optarg ;; 1231 1232 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1233 Try \`$0 --help' for more information" 1234 ;; 1235 1236 *=*) 1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1238 # Reject names that are not valid shell variable names. 1239 case $ac_envvar in #( 1240 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1241 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1242 esac 1243 eval $ac_envvar=\$ac_optarg 1244 export $ac_envvar ;; 1245 1246 *) 1247 # FIXME: should be removed in autoconf 3.0. 1248 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1250 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1252 ;; 1253 1254 esac 1255 done 1256 1257 if test -n "$ac_prev"; then 1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1259 as_fn_error $? "missing argument to $ac_option" 1260 fi 1261 1262 if test -n "$ac_unrecognized_opts"; then 1263 case $enable_option_checking in 1264 no) ;; 1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1266 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1267 esac 1268 fi 1269 1270 # Check all directory arguments for consistency. 1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1272 datadir sysconfdir sharedstatedir localstatedir includedir \ 1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1274 libdir localedir mandir runstatedir 1275 do 1276 eval ac_val=\$$ac_var 1277 # Remove trailing slashes. 1278 case $ac_val in 1279 */ ) 1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1281 eval $ac_var=\$ac_val;; 1282 esac 1283 # Be sure to have absolute directory names. 1284 case $ac_val in 1285 [\\/$]* | ?:[\\/]* ) continue;; 1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1287 esac 1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1289 done 1290 1291 # There might be people who depend on the old broken behavior: `$host' 1292 # used to hold the argument of --host etc. 1293 # FIXME: To remove some day. 1294 build=$build_alias 1295 host=$host_alias 1296 target=$target_alias 1297 1298 # FIXME: To remove some day. 1299 if test "x$host_alias" != x; then 1300 if test "x$build_alias" = x; then 1301 cross_compiling=maybe 1302 elif test "x$build_alias" != "x$host_alias"; then 1303 cross_compiling=yes 1304 fi 1305 fi 1306 1307 ac_tool_prefix= 1308 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1309 1310 test "$silent" = yes && exec 6>/dev/null 1311 1312 1313 ac_pwd=`pwd` && test -n "$ac_pwd" && 1314 ac_ls_di=`ls -di .` && 1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1316 as_fn_error $? "working directory cannot be determined" 1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1318 as_fn_error $? "pwd does not report name of working directory" 1319 1320 1321 # Find the source files, if location was not specified. 1322 if test -z "$srcdir"; then 1323 ac_srcdir_defaulted=yes 1324 # Try the directory containing this script, then the parent directory. 1325 ac_confdir=`$as_dirname -- "$as_myself" || 1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1327 X"$as_myself" : 'X\(//\)[^/]' \| \ 1328 X"$as_myself" : 'X\(//\)$' \| \ 1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1330 printf "%s\n" X"$as_myself" | 1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1332 s//\1/ 1333 q 1334 } 1335 /^X\(\/\/\)[^/].*/{ 1336 s//\1/ 1337 q 1338 } 1339 /^X\(\/\/\)$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\).*/{ 1344 s//\1/ 1345 q 1346 } 1347 s/.*/./; q'` 1348 srcdir=$ac_confdir 1349 if test ! -r "$srcdir/$ac_unique_file"; then 1350 srcdir=.. 1351 fi 1352 else 1353 ac_srcdir_defaulted=no 1354 fi 1355 if test ! -r "$srcdir/$ac_unique_file"; then 1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1358 fi 1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1360 ac_abs_confdir=`( 1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1362 pwd)` 1363 # When building in place, set srcdir=. 1364 if test "$ac_abs_confdir" = "$ac_pwd"; then 1365 srcdir=. 1366 fi 1367 # Remove unnecessary trailing slashes from srcdir. 1368 # Double slashes in file names in object file debugging info 1369 # mess up M-x gdb in Emacs. 1370 case $srcdir in 1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1372 esac 1373 for ac_var in $ac_precious_vars; do 1374 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1375 eval ac_env_${ac_var}_value=\$${ac_var} 1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1377 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1378 done 1379 1380 # 1381 # Report the --help message. 1382 # 1383 if test "$ac_init_help" = "long"; then 1384 # Omit some internal or obsolete options to make the list less imposing. 1385 # This message is too long to be a string in the A/UX 3.1 sh. 1386 cat <<_ACEOF 1387 \`configure' configures xinit 1.4.3 to adapt to many kinds of systems. 1388 1389 Usage: $0 [OPTION]... [VAR=VALUE]... 1390 1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1392 VAR=VALUE. See below for descriptions of some of the useful variables. 1393 1394 Defaults for the options are specified in brackets. 1395 1396 Configuration: 1397 -h, --help display this help and exit 1398 --help=short display options specific to this package 1399 --help=recursive display the short help of all the included packages 1400 -V, --version display version information and exit 1401 -q, --quiet, --silent do not print \`checking ...' messages 1402 --cache-file=FILE cache test results in FILE [disabled] 1403 -C, --config-cache alias for \`--cache-file=config.cache' 1404 -n, --no-create do not create output files 1405 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1406 1407 Installation directories: 1408 --prefix=PREFIX install architecture-independent files in PREFIX 1409 [$ac_default_prefix] 1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1411 [PREFIX] 1412 1413 By default, \`make install' will install all the files in 1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1416 for instance \`--prefix=\$HOME'. 1417 1418 For better control, use the options below. 1419 1420 Fine tuning of the installation directories: 1421 --bindir=DIR user executables [EPREFIX/bin] 1422 --sbindir=DIR system admin executables [EPREFIX/sbin] 1423 --libexecdir=DIR program executables [EPREFIX/libexec] 1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1427 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1428 --libdir=DIR object code libraries [EPREFIX/lib] 1429 --includedir=DIR C header files [PREFIX/include] 1430 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1433 --infodir=DIR info documentation [DATAROOTDIR/info] 1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1435 --mandir=DIR man documentation [DATAROOTDIR/man] 1436 --docdir=DIR documentation root [DATAROOTDIR/doc/xinit] 1437 --htmldir=DIR html documentation [DOCDIR] 1438 --dvidir=DIR dvi documentation [DOCDIR] 1439 --pdfdir=DIR pdf documentation [DOCDIR] 1440 --psdir=DIR ps documentation [DOCDIR] 1441 _ACEOF 1442 1443 cat <<\_ACEOF 1444 1445 Program names: 1446 --program-prefix=PREFIX prepend PREFIX to installed program names 1447 --program-suffix=SUFFIX append SUFFIX to installed program names 1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1449 1450 System types: 1451 --build=BUILD configure for building on BUILD [guessed] 1452 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1453 _ACEOF 1454 fi 1455 1456 if test -n "$ac_init_help"; then 1457 case $ac_init_help in 1458 short | recursive ) echo "Configuration of xinit 1.4.3:";; 1459 esac 1460 cat <<\_ACEOF 1461 1462 Optional Features: 1463 --disable-option-checking ignore unrecognized --enable/--with options 1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1466 --enable-dependency-tracking 1467 do not reject slow dependency extractors 1468 --disable-dependency-tracking 1469 speeds up one-time build 1470 --enable-silent-rules less verbose build output (undo: "make V=1") 1471 --disable-silent-rules verbose build output (undo: "make V=0") 1472 --disable-selective-werror 1473 Turn off selective compiler errors. (default: 1474 enabled) 1475 --enable-strict-compilation 1476 Enable all warnings from compiler and make them 1477 errors (default: disabled) 1478 1479 Optional Packages: 1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1482 --with-xrdb=XRDB Path to xrdb 1483 --with-xmodmap=XMODMAP Path to xmodmap 1484 --with-twm=TWM Path to twm 1485 --with-xclock=XCLOCK Path to xclock 1486 --with-xterm=XTERM Path to xterm 1487 --with-xserver=XSERVER Path to default X server 1488 --with-xauth=XAUTH Path to xauth 1489 --with-xinit=XINIT Path to xinit 1490 --with-xinitdir=XINITDIR 1491 Path to xinitdir 1492 --with-launchd Build with support for Apple's launchd (default: 1493 auto) 1494 --with-launchagents-dir=PATH 1495 Path to launchd's LaunchAgents directory (default: 1496 /Library/LaunchAgents) 1497 --with-launchagent-xserver=PATH 1498 Path to the X server which the LaunchAgent should 1499 start (if not provided, let startx decide)" 1500 --with-launchdaemons-dir=PATH 1501 Path to launchd's LaunchDaemonss directory (default: 1502 /Library/LaunchDaemons) 1503 --with-launchd-id-prefix=PATH 1504 Deprecated: Use --with-bundle-id-prefix. 1505 --with-bundle-id-prefix=PATH 1506 Prefix to use for bundle identifiers (default: 1507 org.x) 1508 1509 Some influential environment variables: 1510 CC C compiler command 1511 CFLAGS C compiler flags 1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1513 nonstandard directory <lib dir> 1514 LIBS libraries to pass to the linker, e.g. -l<library> 1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1516 you have headers in a nonstandard directory <include dir> 1517 PKG_CONFIG path to pkg-config utility 1518 PKG_CONFIG_PATH 1519 directories to add to pkg-config's search path 1520 PKG_CONFIG_LIBDIR 1521 path overriding pkg-config's built-in search path 1522 CPP C preprocessor 1523 XINIT_CFLAGS 1524 C compiler flags for XINIT, overriding pkg-config 1525 XINIT_LIBS linker flags for XINIT, overriding pkg-config 1526 1527 Use these variables to override the choices made by `configure' or to help 1528 it to find libraries and programs with nonstandard names/locations. 1529 1530 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>. 1531 _ACEOF 1532 ac_status=$? 1533 fi 1534 1535 if test "$ac_init_help" = "recursive"; then 1536 # If there are subdirs, report their specific --help. 1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1538 test -d "$ac_dir" || 1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1540 continue 1541 ac_builddir=. 1542 1543 case "$ac_dir" in 1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545 *) 1546 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1547 # A ".." for each directory in $ac_dir_suffix. 1548 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1549 case $ac_top_builddir_sub in 1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1552 esac ;; 1553 esac 1554 ac_abs_top_builddir=$ac_pwd 1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1556 # for backward compatibility: 1557 ac_top_builddir=$ac_top_build_prefix 1558 1559 case $srcdir in 1560 .) # We are building in place. 1561 ac_srcdir=. 1562 ac_top_srcdir=$ac_top_builddir_sub 1563 ac_abs_top_srcdir=$ac_pwd ;; 1564 [\\/]* | ?:[\\/]* ) # Absolute name. 1565 ac_srcdir=$srcdir$ac_dir_suffix; 1566 ac_top_srcdir=$srcdir 1567 ac_abs_top_srcdir=$srcdir ;; 1568 *) # Relative name. 1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1570 ac_top_srcdir=$ac_top_build_prefix$srcdir 1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1572 esac 1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1574 1575 cd "$ac_dir" || { ac_status=$?; continue; } 1576 # Check for configure.gnu first; this name is used for a wrapper for 1577 # Metaconfig's "Configure" on case-insensitive file systems. 1578 if test -f "$ac_srcdir/configure.gnu"; then 1579 echo && 1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1581 elif test -f "$ac_srcdir/configure"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure" --help=recursive 1584 else 1585 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1586 fi || ac_status=$? 1587 cd "$ac_pwd" || { ac_status=$?; break; } 1588 done 1589 fi 1590 1591 test -n "$ac_init_help" && exit $ac_status 1592 if $ac_init_version; then 1593 cat <<\_ACEOF 1594 xinit configure 1.4.3 1595 generated by GNU Autoconf 2.71 1596 1597 Copyright (C) 2021 Free Software Foundation, Inc. 1598 This configure script is free software; the Free Software Foundation 1599 gives unlimited permission to copy, distribute and modify it. 1600 _ACEOF 1601 exit 1602 fi 1603 1604 ## ------------------------ ## 1605 ## Autoconf initialization. ## 1606 ## ------------------------ ## 1607 1608 # ac_fn_c_try_compile LINENO 1609 # -------------------------- 1610 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1611 ac_fn_c_try_compile () 1612 { 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 rm -f conftest.$ac_objext conftest.beam 1615 if { { ac_try="$ac_compile" 1616 case "(($ac_try" in 1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1618 *) ac_try_echo=$ac_try;; 1619 esac 1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1621 printf "%s\n" "$ac_try_echo"; } >&5 1622 (eval "$ac_compile") 2>conftest.err 1623 ac_status=$? 1624 if test -s conftest.err; then 1625 grep -v '^ *+' conftest.err >conftest.er1 1626 cat conftest.er1 >&5 1627 mv -f conftest.er1 conftest.err 1628 fi 1629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1630 test $ac_status = 0; } && { 1631 test -z "$ac_c_werror_flag" || 1632 test ! -s conftest.err 1633 } && test -s conftest.$ac_objext 1634 then : 1635 ac_retval=0 1636 else $as_nop 1637 printf "%s\n" "$as_me: failed program was:" >&5 1638 sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=1 1641 fi 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 as_fn_set_status $ac_retval 1644 1645 } # ac_fn_c_try_compile 1646 1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1648 # ------------------------------------------------------- 1649 # Tests whether HEADER exists and can be compiled using the include files in 1650 # INCLUDES, setting the cache variable VAR accordingly. 1651 ac_fn_c_check_header_compile () 1652 { 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1655 printf %s "checking for $2... " >&6; } 1656 if eval test \${$3+y} 1657 then : 1658 printf %s "(cached) " >&6 1659 else $as_nop 1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1661 /* end confdefs.h. */ 1662 $4 1663 #include <$2> 1664 _ACEOF 1665 if ac_fn_c_try_compile "$LINENO" 1666 then : 1667 eval "$3=yes" 1668 else $as_nop 1669 eval "$3=no" 1670 fi 1671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1672 fi 1673 eval ac_res=\$$3 1674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1675 printf "%s\n" "$ac_res" >&6; } 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 1678 } # ac_fn_c_check_header_compile 1679 1680 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1681 # ------------------------------------------------------------------ 1682 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1683 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1684 ac_fn_check_decl () 1685 { 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 as_decl_name=`echo $2|sed 's/ *(.*//'` 1688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1689 printf %s "checking whether $as_decl_name is declared... " >&6; } 1690 if eval test \${$3+y} 1691 then : 1692 printf %s "(cached) " >&6 1693 else $as_nop 1694 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1695 eval ac_save_FLAGS=\$$6 1696 as_fn_append $6 " $5" 1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1698 /* end confdefs.h. */ 1699 $4 1700 int 1701 main (void) 1702 { 1703 #ifndef $as_decl_name 1704 #ifdef __cplusplus 1705 (void) $as_decl_use; 1706 #else 1707 (void) $as_decl_name; 1708 #endif 1709 #endif 1710 1711 ; 1712 return 0; 1713 } 1714 _ACEOF 1715 if ac_fn_c_try_compile "$LINENO" 1716 then : 1717 eval "$3=yes" 1718 else $as_nop 1719 eval "$3=no" 1720 fi 1721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1722 eval $6=\$ac_save_FLAGS 1723 1724 fi 1725 eval ac_res=\$$3 1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1727 printf "%s\n" "$ac_res" >&6; } 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 1730 } # ac_fn_check_decl 1731 1732 # ac_fn_c_try_link LINENO 1733 # ----------------------- 1734 # Try to link conftest.$ac_ext, and return whether this succeeded. 1735 ac_fn_c_try_link () 1736 { 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1739 if { { ac_try="$ac_link" 1740 case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743 esac 1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745 printf "%s\n" "$ac_try_echo"; } >&5 1746 (eval "$ac_link") 2>conftest.err 1747 ac_status=$? 1748 if test -s conftest.err; then 1749 grep -v '^ *+' conftest.err >conftest.er1 1750 cat conftest.er1 >&5 1751 mv -f conftest.er1 conftest.err 1752 fi 1753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1754 test $ac_status = 0; } && { 1755 test -z "$ac_c_werror_flag" || 1756 test ! -s conftest.err 1757 } && test -s conftest$ac_exeext && { 1758 test "$cross_compiling" = yes || 1759 test -x conftest$ac_exeext 1760 } 1761 then : 1762 ac_retval=0 1763 else $as_nop 1764 printf "%s\n" "$as_me: failed program was:" >&5 1765 sed 's/^/| /' conftest.$ac_ext >&5 1766 1767 ac_retval=1 1768 fi 1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1771 # interfere with the next link command; also delete a directory that is 1772 # left behind by Apple's compiler. We do this before executing the actions. 1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1775 as_fn_set_status $ac_retval 1776 1777 } # ac_fn_c_try_link 1778 1779 # ac_fn_c_try_cpp LINENO 1780 # ---------------------- 1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1782 ac_fn_c_try_cpp () 1783 { 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 if { { ac_try="$ac_cpp conftest.$ac_ext" 1786 case "(($ac_try" in 1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1788 *) ac_try_echo=$ac_try;; 1789 esac 1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1791 printf "%s\n" "$ac_try_echo"; } >&5 1792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1793 ac_status=$? 1794 if test -s conftest.err; then 1795 grep -v '^ *+' conftest.err >conftest.er1 1796 cat conftest.er1 >&5 1797 mv -f conftest.er1 conftest.err 1798 fi 1799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1800 test $ac_status = 0; } > conftest.i && { 1801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1802 test ! -s conftest.err 1803 } 1804 then : 1805 ac_retval=0 1806 else $as_nop 1807 printf "%s\n" "$as_me: failed program was:" >&5 1808 sed 's/^/| /' conftest.$ac_ext >&5 1809 1810 ac_retval=1 1811 fi 1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1813 as_fn_set_status $ac_retval 1814 1815 } # ac_fn_c_try_cpp 1816 1817 # ac_fn_c_check_func LINENO FUNC VAR 1818 # ---------------------------------- 1819 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1820 ac_fn_c_check_func () 1821 { 1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1824 printf %s "checking for $2... " >&6; } 1825 if eval test \${$3+y} 1826 then : 1827 printf %s "(cached) " >&6 1828 else $as_nop 1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1830 /* end confdefs.h. */ 1831 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1833 #define $2 innocuous_$2 1834 1835 /* System header to define __stub macros and hopefully few prototypes, 1836 which can conflict with char $2 (); below. */ 1837 1838 #include <limits.h> 1839 #undef $2 1840 1841 /* Override any GCC internal prototype to avoid an error. 1842 Use char because int might match the return type of a GCC 1843 builtin and then its argument prototype would still apply. */ 1844 #ifdef __cplusplus 1845 extern "C" 1846 #endif 1847 char $2 (); 1848 /* The GNU C library defines this for functions which it implements 1849 to always fail with ENOSYS. Some functions are actually named 1850 something starting with __ and the normal name is an alias. */ 1851 #if defined __stub_$2 || defined __stub___$2 1852 choke me 1853 #endif 1854 1855 int 1856 main (void) 1857 { 1858 return $2 (); 1859 ; 1860 return 0; 1861 } 1862 _ACEOF 1863 if ac_fn_c_try_link "$LINENO" 1864 then : 1865 eval "$3=yes" 1866 else $as_nop 1867 eval "$3=no" 1868 fi 1869 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1870 conftest$ac_exeext conftest.$ac_ext 1871 fi 1872 eval ac_res=\$$3 1873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1874 printf "%s\n" "$ac_res" >&6; } 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 1877 } # ac_fn_c_check_func 1878 ac_configure_args_raw= 1879 for ac_arg 1880 do 1881 case $ac_arg in 1882 *\'*) 1883 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1884 esac 1885 as_fn_append ac_configure_args_raw " '$ac_arg'" 1886 done 1887 1888 case $ac_configure_args_raw in 1889 *$as_nl*) 1890 ac_safe_unquote= ;; 1891 *) 1892 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1893 ac_unsafe_a="$ac_unsafe_z#~" 1894 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1895 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1896 esac 1897 1898 cat >config.log <<_ACEOF 1899 This file contains any messages produced by compilers while 1900 running configure, to aid debugging if configure makes a mistake. 1901 1902 It was created by xinit $as_me 1.4.3, which was 1903 generated by GNU Autoconf 2.71. Invocation command line was 1904 1905 $ $0$ac_configure_args_raw 1906 1907 _ACEOF 1908 exec 5>>config.log 1909 { 1910 cat <<_ASUNAME 1911 ## --------- ## 1912 ## Platform. ## 1913 ## --------- ## 1914 1915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1916 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1917 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1918 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1919 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1920 1921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1923 1924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1927 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1931 1932 _ASUNAME 1933 1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1935 for as_dir in $PATH 1936 do 1937 IFS=$as_save_IFS 1938 case $as_dir in #((( 1939 '') as_dir=./ ;; 1940 */) ;; 1941 *) as_dir=$as_dir/ ;; 1942 esac 1943 printf "%s\n" "PATH: $as_dir" 1944 done 1945 IFS=$as_save_IFS 1946 1947 } >&5 1948 1949 cat >&5 <<_ACEOF 1950 1951 1952 ## ----------- ## 1953 ## Core tests. ## 1954 ## ----------- ## 1955 1956 _ACEOF 1957 1958 1959 # Keep a trace of the command line. 1960 # Strip out --no-create and --no-recursion so they do not pile up. 1961 # Strip out --silent because we don't want to record it for future runs. 1962 # Also quote any args containing shell meta-characters. 1963 # Make two passes to allow for proper duplicate-argument suppression. 1964 ac_configure_args= 1965 ac_configure_args0= 1966 ac_configure_args1= 1967 ac_must_keep_next=false 1968 for ac_pass in 1 2 1969 do 1970 for ac_arg 1971 do 1972 case $ac_arg in 1973 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1975 | -silent | --silent | --silen | --sile | --sil) 1976 continue ;; 1977 *\'*) 1978 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1979 esac 1980 case $ac_pass in 1981 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1982 2) 1983 as_fn_append ac_configure_args1 " '$ac_arg'" 1984 if test $ac_must_keep_next = true; then 1985 ac_must_keep_next=false # Got value, back to normal. 1986 else 1987 case $ac_arg in 1988 *=* | --config-cache | -C | -disable-* | --disable-* \ 1989 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1990 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1991 | -with-* | --with-* | -without-* | --without-* | --x) 1992 case "$ac_configure_args0 " in 1993 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1994 esac 1995 ;; 1996 -* ) ac_must_keep_next=true ;; 1997 esac 1998 fi 1999 as_fn_append ac_configure_args " '$ac_arg'" 2000 ;; 2001 esac 2002 done 2003 done 2004 { ac_configure_args0=; unset ac_configure_args0;} 2005 { ac_configure_args1=; unset ac_configure_args1;} 2006 2007 # When interrupted or exit'd, cleanup temporary files, and complete 2008 # config.log. We remove comments because anyway the quotes in there 2009 # would cause problems or look ugly. 2010 # WARNING: Use '\'' to represent an apostrophe within the trap. 2011 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2012 trap 'exit_status=$? 2013 # Sanitize IFS. 2014 IFS=" "" $as_nl" 2015 # Save into config.log some information that might help in debugging. 2016 { 2017 echo 2018 2019 printf "%s\n" "## ---------------- ## 2020 ## Cache variables. ## 2021 ## ---------------- ##" 2022 echo 2023 # The following way of writing the cache mishandles newlines in values, 2024 ( 2025 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2026 eval ac_val=\$$ac_var 2027 case $ac_val in #( 2028 *${as_nl}*) 2029 case $ac_var in #( 2030 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2031 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2032 esac 2033 case $ac_var in #( 2034 _ | IFS | as_nl) ;; #( 2035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2036 *) { eval $ac_var=; unset $ac_var;} ;; 2037 esac ;; 2038 esac 2039 done 2040 (set) 2>&1 | 2041 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2042 *${as_nl}ac_space=\ *) 2043 sed -n \ 2044 "s/'\''/'\''\\\\'\'''\''/g; 2045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2046 ;; #( 2047 *) 2048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2049 ;; 2050 esac | 2051 sort 2052 ) 2053 echo 2054 2055 printf "%s\n" "## ----------------- ## 2056 ## Output variables. ## 2057 ## ----------------- ##" 2058 echo 2059 for ac_var in $ac_subst_vars 2060 do 2061 eval ac_val=\$$ac_var 2062 case $ac_val in 2063 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2064 esac 2065 printf "%s\n" "$ac_var='\''$ac_val'\''" 2066 done | sort 2067 echo 2068 2069 if test -n "$ac_subst_files"; then 2070 printf "%s\n" "## ------------------- ## 2071 ## File substitutions. ## 2072 ## ------------------- ##" 2073 echo 2074 for ac_var in $ac_subst_files 2075 do 2076 eval ac_val=\$$ac_var 2077 case $ac_val in 2078 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2079 esac 2080 printf "%s\n" "$ac_var='\''$ac_val'\''" 2081 done | sort 2082 echo 2083 fi 2084 2085 if test -s confdefs.h; then 2086 printf "%s\n" "## ----------- ## 2087 ## confdefs.h. ## 2088 ## ----------- ##" 2089 echo 2090 cat confdefs.h 2091 echo 2092 fi 2093 test "$ac_signal" != 0 && 2094 printf "%s\n" "$as_me: caught signal $ac_signal" 2095 printf "%s\n" "$as_me: exit $exit_status" 2096 } >&5 2097 rm -f core *.core core.conftest.* && 2098 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2099 exit $exit_status 2100 ' 0 2101 for ac_signal in 1 2 13 15; do 2102 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2103 done 2104 ac_signal=0 2105 2106 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2107 rm -f -r conftest* confdefs.h 2108 2109 printf "%s\n" "/* confdefs.h */" > confdefs.h 2110 2111 # Predefined preprocessor variables. 2112 2113 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2114 2115 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2116 2117 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2118 2119 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2120 2121 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2122 2123 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2124 2125 2126 # Let the site file select an alternate cache file if it wants to. 2127 # Prefer an explicitly selected file to automatically selected ones. 2128 if test -n "$CONFIG_SITE"; then 2129 ac_site_files="$CONFIG_SITE" 2130 elif test "x$prefix" != xNONE; then 2131 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2132 else 2133 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2134 fi 2135 2136 for ac_site_file in $ac_site_files 2137 do 2138 case $ac_site_file in #( 2139 */*) : 2140 ;; #( 2141 *) : 2142 ac_site_file=./$ac_site_file ;; 2143 esac 2144 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2146 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2147 sed 's/^/| /' "$ac_site_file" >&5 2148 . "$ac_site_file" \ 2149 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2150 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2151 as_fn_error $? "failed to load site script $ac_site_file 2152 See \`config.log' for more details" "$LINENO" 5; } 2153 fi 2154 done 2155 2156 if test -r "$cache_file"; then 2157 # Some versions of bash will fail to source /dev/null (special files 2158 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2159 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2161 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2162 case $cache_file in 2163 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2164 *) . "./$cache_file";; 2165 esac 2166 fi 2167 else 2168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2169 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2170 >$cache_file 2171 fi 2172 2173 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2174 # Test code for whether the C compiler supports C89 (global declarations) 2175 ac_c_conftest_c89_globals=' 2176 /* Does the compiler advertise C89 conformance? 2177 Do not test the value of __STDC__, because some compilers set it to 0 2178 while being otherwise adequately conformant. */ 2179 #if !defined __STDC__ 2180 # error "Compiler does not advertise C89 conformance" 2181 #endif 2182 2183 #include <stddef.h> 2184 #include <stdarg.h> 2185 struct stat; 2186 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2187 struct buf { int x; }; 2188 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2189 static char *e (p, i) 2190 char **p; 2191 int i; 2192 { 2193 return p[i]; 2194 } 2195 static char *f (char * (*g) (char **, int), char **p, ...) 2196 { 2197 char *s; 2198 va_list v; 2199 va_start (v,p); 2200 s = g (p, va_arg (v,int)); 2201 va_end (v); 2202 return s; 2203 } 2204 2205 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2206 function prototypes and stuff, but not \xHH hex character constants. 2207 These do not provoke an error unfortunately, instead are silently treated 2208 as an "x". The following induces an error, until -std is added to get 2209 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2210 array size at least. It is necessary to write \x00 == 0 to get something 2211 that is true only with -std. */ 2212 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2213 2214 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2215 inside strings and character constants. */ 2216 #define FOO(x) '\''x'\'' 2217 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2218 2219 int test (int i, double x); 2220 struct s1 {int (*f) (int a);}; 2221 struct s2 {int (*f) (double a);}; 2222 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2223 int, int);' 2224 2225 # Test code for whether the C compiler supports C89 (body of main). 2226 ac_c_conftest_c89_main=' 2227 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2228 ' 2229 2230 # Test code for whether the C compiler supports C99 (global declarations) 2231 ac_c_conftest_c99_globals=' 2232 // Does the compiler advertise C99 conformance? 2233 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2234 # error "Compiler does not advertise C99 conformance" 2235 #endif 2236 2237 #include <stdbool.h> 2238 extern int puts (const char *); 2239 extern int printf (const char *, ...); 2240 extern int dprintf (int, const char *, ...); 2241 extern void *malloc (size_t); 2242 2243 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2244 // dprintf is used instead of fprintf to avoid needing to declare 2245 // FILE and stderr. 2246 #define debug(...) dprintf (2, __VA_ARGS__) 2247 #define showlist(...) puts (#__VA_ARGS__) 2248 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2249 static void 2250 test_varargs_macros (void) 2251 { 2252 int x = 1234; 2253 int y = 5678; 2254 debug ("Flag"); 2255 debug ("X = %d\n", x); 2256 showlist (The first, second, and third items.); 2257 report (x>y, "x is %d but y is %d", x, y); 2258 } 2259 2260 // Check long long types. 2261 #define BIG64 18446744073709551615ull 2262 #define BIG32 4294967295ul 2263 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2264 #if !BIG_OK 2265 #error "your preprocessor is broken" 2266 #endif 2267 #if BIG_OK 2268 #else 2269 #error "your preprocessor is broken" 2270 #endif 2271 static long long int bignum = -9223372036854775807LL; 2272 static unsigned long long int ubignum = BIG64; 2273 2274 struct incomplete_array 2275 { 2276 int datasize; 2277 double data[]; 2278 }; 2279 2280 struct named_init { 2281 int number; 2282 const wchar_t *name; 2283 double average; 2284 }; 2285 2286 typedef const char *ccp; 2287 2288 static inline int 2289 test_restrict (ccp restrict text) 2290 { 2291 // See if C++-style comments work. 2292 // Iterate through items via the restricted pointer. 2293 // Also check for declarations in for loops. 2294 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2295 continue; 2296 return 0; 2297 } 2298 2299 // Check varargs and va_copy. 2300 static bool 2301 test_varargs (const char *format, ...) 2302 { 2303 va_list args; 2304 va_start (args, format); 2305 va_list args_copy; 2306 va_copy (args_copy, args); 2307 2308 const char *str = ""; 2309 int number = 0; 2310 float fnumber = 0; 2311 2312 while (*format) 2313 { 2314 switch (*format++) 2315 { 2316 case '\''s'\'': // string 2317 str = va_arg (args_copy, const char *); 2318 break; 2319 case '\''d'\'': // int 2320 number = va_arg (args_copy, int); 2321 break; 2322 case '\''f'\'': // float 2323 fnumber = va_arg (args_copy, double); 2324 break; 2325 default: 2326 break; 2327 } 2328 } 2329 va_end (args_copy); 2330 va_end (args); 2331 2332 return *str && number && fnumber; 2333 } 2334 ' 2335 2336 # Test code for whether the C compiler supports C99 (body of main). 2337 ac_c_conftest_c99_main=' 2338 // Check bool. 2339 _Bool success = false; 2340 success |= (argc != 0); 2341 2342 // Check restrict. 2343 if (test_restrict ("String literal") == 0) 2344 success = true; 2345 char *restrict newvar = "Another string"; 2346 2347 // Check varargs. 2348 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2349 test_varargs_macros (); 2350 2351 // Check flexible array members. 2352 struct incomplete_array *ia = 2353 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2354 ia->datasize = 10; 2355 for (int i = 0; i < ia->datasize; ++i) 2356 ia->data[i] = i * 1.234; 2357 2358 // Check named initializers. 2359 struct named_init ni = { 2360 .number = 34, 2361 .name = L"Test wide string", 2362 .average = 543.34343, 2363 }; 2364 2365 ni.number = 58; 2366 2367 int dynamic_array[ni.number]; 2368 dynamic_array[0] = argv[0][0]; 2369 dynamic_array[ni.number - 1] = 543; 2370 2371 // work around unused variable warnings 2372 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2373 || dynamic_array[ni.number - 1] != 543); 2374 ' 2375 2376 # Test code for whether the C compiler supports C11 (global declarations) 2377 ac_c_conftest_c11_globals=' 2378 // Does the compiler advertise C11 conformance? 2379 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2380 # error "Compiler does not advertise C11 conformance" 2381 #endif 2382 2383 // Check _Alignas. 2384 char _Alignas (double) aligned_as_double; 2385 char _Alignas (0) no_special_alignment; 2386 extern char aligned_as_int; 2387 char _Alignas (0) _Alignas (int) aligned_as_int; 2388 2389 // Check _Alignof. 2390 enum 2391 { 2392 int_alignment = _Alignof (int), 2393 int_array_alignment = _Alignof (int[100]), 2394 char_alignment = _Alignof (char) 2395 }; 2396 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2397 2398 // Check _Noreturn. 2399 int _Noreturn does_not_return (void) { for (;;) continue; } 2400 2401 // Check _Static_assert. 2402 struct test_static_assert 2403 { 2404 int x; 2405 _Static_assert (sizeof (int) <= sizeof (long int), 2406 "_Static_assert does not work in struct"); 2407 long int y; 2408 }; 2409 2410 // Check UTF-8 literals. 2411 #define u8 syntax error! 2412 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2413 2414 // Check duplicate typedefs. 2415 typedef long *long_ptr; 2416 typedef long int *long_ptr; 2417 typedef long_ptr long_ptr; 2418 2419 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2420 struct anonymous 2421 { 2422 union { 2423 struct { int i; int j; }; 2424 struct { int k; long int l; } w; 2425 }; 2426 int m; 2427 } v1; 2428 ' 2429 2430 # Test code for whether the C compiler supports C11 (body of main). 2431 ac_c_conftest_c11_main=' 2432 _Static_assert ((offsetof (struct anonymous, i) 2433 == offsetof (struct anonymous, w.k)), 2434 "Anonymous union alignment botch"); 2435 v1.i = 2; 2436 v1.w.k = 5; 2437 ok |= v1.i != 5; 2438 ' 2439 2440 # Test code for whether the C compiler supports C11 (complete). 2441 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2442 ${ac_c_conftest_c99_globals} 2443 ${ac_c_conftest_c11_globals} 2444 2445 int 2446 main (int argc, char **argv) 2447 { 2448 int ok = 0; 2449 ${ac_c_conftest_c89_main} 2450 ${ac_c_conftest_c99_main} 2451 ${ac_c_conftest_c11_main} 2452 return ok; 2453 } 2454 " 2455 2456 # Test code for whether the C compiler supports C99 (complete). 2457 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2458 ${ac_c_conftest_c99_globals} 2459 2460 int 2461 main (int argc, char **argv) 2462 { 2463 int ok = 0; 2464 ${ac_c_conftest_c89_main} 2465 ${ac_c_conftest_c99_main} 2466 return ok; 2467 } 2468 " 2469 2470 # Test code for whether the C compiler supports C89 (complete). 2471 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2472 2473 int 2474 main (int argc, char **argv) 2475 { 2476 int ok = 0; 2477 ${ac_c_conftest_c89_main} 2478 return ok; 2479 } 2480 " 2481 2482 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2483 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2484 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2485 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2486 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2487 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2488 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2489 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2490 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2491 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2492 2493 # Auxiliary files required by this configure script. 2494 ac_aux_files="config.guess config.sub missing install-sh compile" 2495 2496 # Locations in which to look for auxiliary files. 2497 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2498 2499 # Search for a directory containing all of the required auxiliary files, 2500 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2501 # If we don't find one directory that contains all the files we need, 2502 # we report the set of missing files from the *first* directory in 2503 # $ac_aux_dir_candidates and give up. 2504 ac_missing_aux_files="" 2505 ac_first_candidate=: 2506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2508 as_found=false 2509 for as_dir in $ac_aux_dir_candidates 2510 do 2511 IFS=$as_save_IFS 2512 case $as_dir in #((( 2513 '') as_dir=./ ;; 2514 */) ;; 2515 *) as_dir=$as_dir/ ;; 2516 esac 2517 as_found=: 2518 2519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2520 ac_aux_dir_found=yes 2521 ac_install_sh= 2522 for ac_aux in $ac_aux_files 2523 do 2524 # As a special case, if "install-sh" is required, that requirement 2525 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2526 # and $ac_install_sh is set appropriately for whichever one is found. 2527 if test x"$ac_aux" = x"install-sh" 2528 then 2529 if test -f "${as_dir}install-sh"; then 2530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2531 ac_install_sh="${as_dir}install-sh -c" 2532 elif test -f "${as_dir}install.sh"; then 2533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2534 ac_install_sh="${as_dir}install.sh -c" 2535 elif test -f "${as_dir}shtool"; then 2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2537 ac_install_sh="${as_dir}shtool install -c" 2538 else 2539 ac_aux_dir_found=no 2540 if $ac_first_candidate; then 2541 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2542 else 2543 break 2544 fi 2545 fi 2546 else 2547 if test -f "${as_dir}${ac_aux}"; then 2548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2549 else 2550 ac_aux_dir_found=no 2551 if $ac_first_candidate; then 2552 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2553 else 2554 break 2555 fi 2556 fi 2557 fi 2558 done 2559 if test "$ac_aux_dir_found" = yes; then 2560 ac_aux_dir="$as_dir" 2561 break 2562 fi 2563 ac_first_candidate=false 2564 2565 as_found=false 2566 done 2567 IFS=$as_save_IFS 2568 if $as_found 2569 then : 2570 2571 else $as_nop 2572 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2573 fi 2574 2575 2576 # These three variables are undocumented and unsupported, 2577 # and are intended to be withdrawn in a future Autoconf release. 2578 # They can cause serious problems if a builder's source tree is in a directory 2579 # whose full name contains unusual characters. 2580 if test -f "${ac_aux_dir}config.guess"; then 2581 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2582 fi 2583 if test -f "${ac_aux_dir}config.sub"; then 2584 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2585 fi 2586 if test -f "$ac_aux_dir/configure"; then 2587 ac_configure="$SHELL ${ac_aux_dir}configure" 2588 fi 2589 2590 # Check that the precious variables saved in the cache have kept the same 2591 # value. 2592 ac_cache_corrupted=false 2593 for ac_var in $ac_precious_vars; do 2594 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2595 eval ac_new_set=\$ac_env_${ac_var}_set 2596 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2597 eval ac_new_val=\$ac_env_${ac_var}_value 2598 case $ac_old_set,$ac_new_set in 2599 set,) 2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2601 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2602 ac_cache_corrupted=: ;; 2603 ,set) 2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2605 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2606 ac_cache_corrupted=: ;; 2607 ,);; 2608 *) 2609 if test "x$ac_old_val" != "x$ac_new_val"; then 2610 # differences in whitespace do not lead to failure. 2611 ac_old_val_w=`echo x $ac_old_val` 2612 ac_new_val_w=`echo x $ac_new_val` 2613 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2615 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2616 ac_cache_corrupted=: 2617 else 2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2619 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2620 eval $ac_var=\$ac_old_val 2621 fi 2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2623 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2625 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2626 fi;; 2627 esac 2628 # Pass precious variables to config.status. 2629 if test "$ac_new_set" = set; then 2630 case $ac_new_val in 2631 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2632 *) ac_arg=$ac_var=$ac_new_val ;; 2633 esac 2634 case " $ac_configure_args " in 2635 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2636 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2637 esac 2638 fi 2639 done 2640 if $ac_cache_corrupted; then 2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2642 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2644 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2645 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2646 and start over" "$LINENO" 5 2647 fi 2648 ## -------------------- ## 2649 ## Main body of script. ## 2650 ## -------------------- ## 2651 2652 ac_ext=c 2653 ac_cpp='$CPP $CPPFLAGS' 2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2657 2658 2659 2660 ac_config_headers="$ac_config_headers config.h" 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 # Expand $ac_aux_dir to an absolute path. 2674 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2675 2676 ac_ext=c 2677 ac_cpp='$CPP $CPPFLAGS' 2678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2680 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2681 if test -n "$ac_tool_prefix"; then 2682 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2683 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2685 printf %s "checking for $ac_word... " >&6; } 2686 if test ${ac_cv_prog_CC+y} 2687 then : 2688 printf %s "(cached) " >&6 2689 else $as_nop 2690 if test -n "$CC"; then 2691 ac_cv_prog_CC="$CC" # Let the user override the test. 2692 else 2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2694 for as_dir in $PATH 2695 do 2696 IFS=$as_save_IFS 2697 case $as_dir in #((( 2698 '') as_dir=./ ;; 2699 */) ;; 2700 *) as_dir=$as_dir/ ;; 2701 esac 2702 for ac_exec_ext in '' $ac_executable_extensions; do 2703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2704 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2706 break 2 2707 fi 2708 done 2709 done 2710 IFS=$as_save_IFS 2711 2712 fi 2713 fi 2714 CC=$ac_cv_prog_CC 2715 if test -n "$CC"; then 2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2717 printf "%s\n" "$CC" >&6; } 2718 else 2719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2720 printf "%s\n" "no" >&6; } 2721 fi 2722 2723 2724 fi 2725 if test -z "$ac_cv_prog_CC"; then 2726 ac_ct_CC=$CC 2727 # Extract the first word of "gcc", so it can be a program name with args. 2728 set dummy gcc; ac_word=$2 2729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2730 printf %s "checking for $ac_word... " >&6; } 2731 if test ${ac_cv_prog_ac_ct_CC+y} 2732 then : 2733 printf %s "(cached) " >&6 2734 else $as_nop 2735 if test -n "$ac_ct_CC"; then 2736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2737 else 2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2739 for as_dir in $PATH 2740 do 2741 IFS=$as_save_IFS 2742 case $as_dir in #((( 2743 '') as_dir=./ ;; 2744 */) ;; 2745 *) as_dir=$as_dir/ ;; 2746 esac 2747 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2749 ac_cv_prog_ac_ct_CC="gcc" 2750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2751 break 2 2752 fi 2753 done 2754 done 2755 IFS=$as_save_IFS 2756 2757 fi 2758 fi 2759 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2760 if test -n "$ac_ct_CC"; then 2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2762 printf "%s\n" "$ac_ct_CC" >&6; } 2763 else 2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2765 printf "%s\n" "no" >&6; } 2766 fi 2767 2768 if test "x$ac_ct_CC" = x; then 2769 CC="" 2770 else 2771 case $cross_compiling:$ac_tool_warned in 2772 yes:) 2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2775 ac_tool_warned=yes ;; 2776 esac 2777 CC=$ac_ct_CC 2778 fi 2779 else 2780 CC="$ac_cv_prog_CC" 2781 fi 2782 2783 if test -z "$CC"; then 2784 if test -n "$ac_tool_prefix"; then 2785 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2786 set dummy ${ac_tool_prefix}cc; ac_word=$2 2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2788 printf %s "checking for $ac_word... " >&6; } 2789 if test ${ac_cv_prog_CC+y} 2790 then : 2791 printf %s "(cached) " >&6 2792 else $as_nop 2793 if test -n "$CC"; then 2794 ac_cv_prog_CC="$CC" # Let the user override the test. 2795 else 2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2797 for as_dir in $PATH 2798 do 2799 IFS=$as_save_IFS 2800 case $as_dir in #((( 2801 '') as_dir=./ ;; 2802 */) ;; 2803 *) as_dir=$as_dir/ ;; 2804 esac 2805 for ac_exec_ext in '' $ac_executable_extensions; do 2806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2807 ac_cv_prog_CC="${ac_tool_prefix}cc" 2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2809 break 2 2810 fi 2811 done 2812 done 2813 IFS=$as_save_IFS 2814 2815 fi 2816 fi 2817 CC=$ac_cv_prog_CC 2818 if test -n "$CC"; then 2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2820 printf "%s\n" "$CC" >&6; } 2821 else 2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2823 printf "%s\n" "no" >&6; } 2824 fi 2825 2826 2827 fi 2828 fi 2829 if test -z "$CC"; then 2830 # Extract the first word of "cc", so it can be a program name with args. 2831 set dummy cc; ac_word=$2 2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2833 printf %s "checking for $ac_word... " >&6; } 2834 if test ${ac_cv_prog_CC+y} 2835 then : 2836 printf %s "(cached) " >&6 2837 else $as_nop 2838 if test -n "$CC"; then 2839 ac_cv_prog_CC="$CC" # Let the user override the test. 2840 else 2841 ac_prog_rejected=no 2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2843 for as_dir in $PATH 2844 do 2845 IFS=$as_save_IFS 2846 case $as_dir in #((( 2847 '') as_dir=./ ;; 2848 */) ;; 2849 *) as_dir=$as_dir/ ;; 2850 esac 2851 for ac_exec_ext in '' $ac_executable_extensions; do 2852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2853 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2854 ac_prog_rejected=yes 2855 continue 2856 fi 2857 ac_cv_prog_CC="cc" 2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2859 break 2 2860 fi 2861 done 2862 done 2863 IFS=$as_save_IFS 2864 2865 if test $ac_prog_rejected = yes; then 2866 # We found a bogon in the path, so make sure we never use it. 2867 set dummy $ac_cv_prog_CC 2868 shift 2869 if test $# != 0; then 2870 # We chose a different compiler from the bogus one. 2871 # However, it has the same basename, so the bogon will be chosen 2872 # first if we set CC to just the basename; use the full file name. 2873 shift 2874 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2875 fi 2876 fi 2877 fi 2878 fi 2879 CC=$ac_cv_prog_CC 2880 if test -n "$CC"; then 2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2882 printf "%s\n" "$CC" >&6; } 2883 else 2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2885 printf "%s\n" "no" >&6; } 2886 fi 2887 2888 2889 fi 2890 if test -z "$CC"; then 2891 if test -n "$ac_tool_prefix"; then 2892 for ac_prog in cl.exe 2893 do 2894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2897 printf %s "checking for $ac_word... " >&6; } 2898 if test ${ac_cv_prog_CC+y} 2899 then : 2900 printf %s "(cached) " >&6 2901 else $as_nop 2902 if test -n "$CC"; then 2903 ac_cv_prog_CC="$CC" # Let the user override the test. 2904 else 2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2906 for as_dir in $PATH 2907 do 2908 IFS=$as_save_IFS 2909 case $as_dir in #((( 2910 '') as_dir=./ ;; 2911 */) ;; 2912 *) as_dir=$as_dir/ ;; 2913 esac 2914 for ac_exec_ext in '' $ac_executable_extensions; do 2915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2916 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2918 break 2 2919 fi 2920 done 2921 done 2922 IFS=$as_save_IFS 2923 2924 fi 2925 fi 2926 CC=$ac_cv_prog_CC 2927 if test -n "$CC"; then 2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2929 printf "%s\n" "$CC" >&6; } 2930 else 2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2932 printf "%s\n" "no" >&6; } 2933 fi 2934 2935 2936 test -n "$CC" && break 2937 done 2938 fi 2939 if test -z "$CC"; then 2940 ac_ct_CC=$CC 2941 for ac_prog in cl.exe 2942 do 2943 # Extract the first word of "$ac_prog", so it can be a program name with args. 2944 set dummy $ac_prog; ac_word=$2 2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2946 printf %s "checking for $ac_word... " >&6; } 2947 if test ${ac_cv_prog_ac_ct_CC+y} 2948 then : 2949 printf %s "(cached) " >&6 2950 else $as_nop 2951 if test -n "$ac_ct_CC"; then 2952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2953 else 2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2955 for as_dir in $PATH 2956 do 2957 IFS=$as_save_IFS 2958 case $as_dir in #((( 2959 '') as_dir=./ ;; 2960 */) ;; 2961 *) as_dir=$as_dir/ ;; 2962 esac 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2965 ac_cv_prog_ac_ct_CC="$ac_prog" 2966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2967 break 2 2968 fi 2969 done 2970 done 2971 IFS=$as_save_IFS 2972 2973 fi 2974 fi 2975 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2976 if test -n "$ac_ct_CC"; then 2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2978 printf "%s\n" "$ac_ct_CC" >&6; } 2979 else 2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2981 printf "%s\n" "no" >&6; } 2982 fi 2983 2984 2985 test -n "$ac_ct_CC" && break 2986 done 2987 2988 if test "x$ac_ct_CC" = x; then 2989 CC="" 2990 else 2991 case $cross_compiling:$ac_tool_warned in 2992 yes:) 2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2994 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2995 ac_tool_warned=yes ;; 2996 esac 2997 CC=$ac_ct_CC 2998 fi 2999 fi 3000 3001 fi 3002 if test -z "$CC"; then 3003 if test -n "$ac_tool_prefix"; then 3004 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3005 set dummy ${ac_tool_prefix}clang; ac_word=$2 3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3007 printf %s "checking for $ac_word... " >&6; } 3008 if test ${ac_cv_prog_CC+y} 3009 then : 3010 printf %s "(cached) " >&6 3011 else $as_nop 3012 if test -n "$CC"; then 3013 ac_cv_prog_CC="$CC" # Let the user override the test. 3014 else 3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3016 for as_dir in $PATH 3017 do 3018 IFS=$as_save_IFS 3019 case $as_dir in #((( 3020 '') as_dir=./ ;; 3021 */) ;; 3022 *) as_dir=$as_dir/ ;; 3023 esac 3024 for ac_exec_ext in '' $ac_executable_extensions; do 3025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3026 ac_cv_prog_CC="${ac_tool_prefix}clang" 3027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3028 break 2 3029 fi 3030 done 3031 done 3032 IFS=$as_save_IFS 3033 3034 fi 3035 fi 3036 CC=$ac_cv_prog_CC 3037 if test -n "$CC"; then 3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3039 printf "%s\n" "$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 fi 3047 if test -z "$ac_cv_prog_CC"; then 3048 ac_ct_CC=$CC 3049 # Extract the first word of "clang", so it can be a program name with args. 3050 set dummy clang; ac_word=$2 3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3052 printf %s "checking for $ac_word... " >&6; } 3053 if test ${ac_cv_prog_ac_ct_CC+y} 3054 then : 3055 printf %s "(cached) " >&6 3056 else $as_nop 3057 if test -n "$ac_ct_CC"; then 3058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3059 else 3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3061 for as_dir in $PATH 3062 do 3063 IFS=$as_save_IFS 3064 case $as_dir in #((( 3065 '') as_dir=./ ;; 3066 */) ;; 3067 *) as_dir=$as_dir/ ;; 3068 esac 3069 for ac_exec_ext in '' $ac_executable_extensions; do 3070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3071 ac_cv_prog_ac_ct_CC="clang" 3072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3073 break 2 3074 fi 3075 done 3076 done 3077 IFS=$as_save_IFS 3078 3079 fi 3080 fi 3081 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3082 if test -n "$ac_ct_CC"; then 3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3084 printf "%s\n" "$ac_ct_CC" >&6; } 3085 else 3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3087 printf "%s\n" "no" >&6; } 3088 fi 3089 3090 if test "x$ac_ct_CC" = x; then 3091 CC="" 3092 else 3093 case $cross_compiling:$ac_tool_warned in 3094 yes:) 3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3096 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3097 ac_tool_warned=yes ;; 3098 esac 3099 CC=$ac_ct_CC 3100 fi 3101 else 3102 CC="$ac_cv_prog_CC" 3103 fi 3104 3105 fi 3106 3107 3108 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3109 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3110 as_fn_error $? "no acceptable C compiler found in \$PATH 3111 See \`config.log' for more details" "$LINENO" 5; } 3112 3113 # Provide some information about the compiler. 3114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3115 set X $ac_compile 3116 ac_compiler=$2 3117 for ac_option in --version -v -V -qversion -version; do 3118 { { ac_try="$ac_compiler $ac_option >&5" 3119 case "(($ac_try" in 3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3121 *) ac_try_echo=$ac_try;; 3122 esac 3123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3124 printf "%s\n" "$ac_try_echo"; } >&5 3125 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3126 ac_status=$? 3127 if test -s conftest.err; then 3128 sed '10a\ 3129 ... rest of stderr output deleted ... 3130 10q' conftest.err >conftest.er1 3131 cat conftest.er1 >&5 3132 fi 3133 rm -f conftest.er1 conftest.err 3134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3135 test $ac_status = 0; } 3136 done 3137 3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3139 /* end confdefs.h. */ 3140 3141 int 3142 main (void) 3143 { 3144 3145 ; 3146 return 0; 3147 } 3148 _ACEOF 3149 ac_clean_files_save=$ac_clean_files 3150 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3151 # Try to create an executable without -o first, disregard a.out. 3152 # It will help us diagnose broken compilers, and finding out an intuition 3153 # of exeext. 3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3155 printf %s "checking whether the C compiler works... " >&6; } 3156 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3157 3158 # The possible output files: 3159 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3160 3161 ac_rmfiles= 3162 for ac_file in $ac_files 3163 do 3164 case $ac_file in 3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3166 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3167 esac 3168 done 3169 rm -f $ac_rmfiles 3170 3171 if { { ac_try="$ac_link_default" 3172 case "(($ac_try" in 3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3174 *) ac_try_echo=$ac_try;; 3175 esac 3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3177 printf "%s\n" "$ac_try_echo"; } >&5 3178 (eval "$ac_link_default") 2>&5 3179 ac_status=$? 3180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3181 test $ac_status = 0; } 3182 then : 3183 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3184 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3185 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3186 # so that the user can short-circuit this test for compilers unknown to 3187 # Autoconf. 3188 for ac_file in $ac_files '' 3189 do 3190 test -f "$ac_file" || continue 3191 case $ac_file in 3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3193 ;; 3194 [ab].out ) 3195 # We found the default executable, but exeext='' is most 3196 # certainly right. 3197 break;; 3198 *.* ) 3199 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3200 then :; else 3201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3202 fi 3203 # We set ac_cv_exeext here because the later test for it is not 3204 # safe: cross compilers may not add the suffix if given an `-o' 3205 # argument, so we may need to know it at that point already. 3206 # Even if this section looks crufty: it has the advantage of 3207 # actually working. 3208 break;; 3209 * ) 3210 break;; 3211 esac 3212 done 3213 test "$ac_cv_exeext" = no && ac_cv_exeext= 3214 3215 else $as_nop 3216 ac_file='' 3217 fi 3218 if test -z "$ac_file" 3219 then : 3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3221 printf "%s\n" "no" >&6; } 3222 printf "%s\n" "$as_me: failed program was:" >&5 3223 sed 's/^/| /' conftest.$ac_ext >&5 3224 3225 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3226 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3227 as_fn_error 77 "C compiler cannot create executables 3228 See \`config.log' for more details" "$LINENO" 5; } 3229 else $as_nop 3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3231 printf "%s\n" "yes" >&6; } 3232 fi 3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3234 printf %s "checking for C compiler default output file name... " >&6; } 3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3236 printf "%s\n" "$ac_file" >&6; } 3237 ac_exeext=$ac_cv_exeext 3238 3239 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3240 ac_clean_files=$ac_clean_files_save 3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3242 printf %s "checking for suffix of executables... " >&6; } 3243 if { { ac_try="$ac_link" 3244 case "(($ac_try" in 3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3246 *) ac_try_echo=$ac_try;; 3247 esac 3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3249 printf "%s\n" "$ac_try_echo"; } >&5 3250 (eval "$ac_link") 2>&5 3251 ac_status=$? 3252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3253 test $ac_status = 0; } 3254 then : 3255 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3257 # work properly (i.e., refer to `conftest.exe'), while it won't with 3258 # `rm'. 3259 for ac_file in conftest.exe conftest conftest.*; do 3260 test -f "$ac_file" || continue 3261 case $ac_file in 3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3264 break;; 3265 * ) break;; 3266 esac 3267 done 3268 else $as_nop 3269 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3270 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3271 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3272 See \`config.log' for more details" "$LINENO" 5; } 3273 fi 3274 rm -f conftest conftest$ac_cv_exeext 3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3276 printf "%s\n" "$ac_cv_exeext" >&6; } 3277 3278 rm -f conftest.$ac_ext 3279 EXEEXT=$ac_cv_exeext 3280 ac_exeext=$EXEEXT 3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3282 /* end confdefs.h. */ 3283 #include <stdio.h> 3284 int 3285 main (void) 3286 { 3287 FILE *f = fopen ("conftest.out", "w"); 3288 return ferror (f) || fclose (f) != 0; 3289 3290 ; 3291 return 0; 3292 } 3293 _ACEOF 3294 ac_clean_files="$ac_clean_files conftest.out" 3295 # Check that the compiler produces executables we can run. If not, either 3296 # the compiler is broken, or we cross compile. 3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3298 printf %s "checking whether we are cross compiling... " >&6; } 3299 if test "$cross_compiling" != yes; then 3300 { { ac_try="$ac_link" 3301 case "(($ac_try" in 3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3303 *) ac_try_echo=$ac_try;; 3304 esac 3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3306 printf "%s\n" "$ac_try_echo"; } >&5 3307 (eval "$ac_link") 2>&5 3308 ac_status=$? 3309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3310 test $ac_status = 0; } 3311 if { ac_try='./conftest$ac_cv_exeext' 3312 { { case "(($ac_try" in 3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3314 *) ac_try_echo=$ac_try;; 3315 esac 3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3317 printf "%s\n" "$ac_try_echo"; } >&5 3318 (eval "$ac_try") 2>&5 3319 ac_status=$? 3320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3321 test $ac_status = 0; }; }; then 3322 cross_compiling=no 3323 else 3324 if test "$cross_compiling" = maybe; then 3325 cross_compiling=yes 3326 else 3327 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3328 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3329 as_fn_error 77 "cannot run C compiled programs. 3330 If you meant to cross compile, use \`--host'. 3331 See \`config.log' for more details" "$LINENO" 5; } 3332 fi 3333 fi 3334 fi 3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3336 printf "%s\n" "$cross_compiling" >&6; } 3337 3338 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3339 ac_clean_files=$ac_clean_files_save 3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3341 printf %s "checking for suffix of object files... " >&6; } 3342 if test ${ac_cv_objext+y} 3343 then : 3344 printf %s "(cached) " >&6 3345 else $as_nop 3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3347 /* end confdefs.h. */ 3348 3349 int 3350 main (void) 3351 { 3352 3353 ; 3354 return 0; 3355 } 3356 _ACEOF 3357 rm -f conftest.o conftest.obj 3358 if { { ac_try="$ac_compile" 3359 case "(($ac_try" in 3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3361 *) ac_try_echo=$ac_try;; 3362 esac 3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3364 printf "%s\n" "$ac_try_echo"; } >&5 3365 (eval "$ac_compile") 2>&5 3366 ac_status=$? 3367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3368 test $ac_status = 0; } 3369 then : 3370 for ac_file in conftest.o conftest.obj conftest.*; do 3371 test -f "$ac_file" || continue; 3372 case $ac_file in 3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3374 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3375 break;; 3376 esac 3377 done 3378 else $as_nop 3379 printf "%s\n" "$as_me: failed program was:" >&5 3380 sed 's/^/| /' conftest.$ac_ext >&5 3381 3382 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3383 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3384 as_fn_error $? "cannot compute suffix of object files: cannot compile 3385 See \`config.log' for more details" "$LINENO" 5; } 3386 fi 3387 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3388 fi 3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3390 printf "%s\n" "$ac_cv_objext" >&6; } 3391 OBJEXT=$ac_cv_objext 3392 ac_objext=$OBJEXT 3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3394 printf %s "checking whether the compiler supports GNU C... " >&6; } 3395 if test ${ac_cv_c_compiler_gnu+y} 3396 then : 3397 printf %s "(cached) " >&6 3398 else $as_nop 3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3400 /* end confdefs.h. */ 3401 3402 int 3403 main (void) 3404 { 3405 #ifndef __GNUC__ 3406 choke me 3407 #endif 3408 3409 ; 3410 return 0; 3411 } 3412 _ACEOF 3413 if ac_fn_c_try_compile "$LINENO" 3414 then : 3415 ac_compiler_gnu=yes 3416 else $as_nop 3417 ac_compiler_gnu=no 3418 fi 3419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3420 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3421 3422 fi 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3424 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3426 3427 if test $ac_compiler_gnu = yes; then 3428 GCC=yes 3429 else 3430 GCC= 3431 fi 3432 ac_test_CFLAGS=${CFLAGS+y} 3433 ac_save_CFLAGS=$CFLAGS 3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3435 printf %s "checking whether $CC accepts -g... " >&6; } 3436 if test ${ac_cv_prog_cc_g+y} 3437 then : 3438 printf %s "(cached) " >&6 3439 else $as_nop 3440 ac_save_c_werror_flag=$ac_c_werror_flag 3441 ac_c_werror_flag=yes 3442 ac_cv_prog_cc_g=no 3443 CFLAGS="-g" 3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3445 /* end confdefs.h. */ 3446 3447 int 3448 main (void) 3449 { 3450 3451 ; 3452 return 0; 3453 } 3454 _ACEOF 3455 if ac_fn_c_try_compile "$LINENO" 3456 then : 3457 ac_cv_prog_cc_g=yes 3458 else $as_nop 3459 CFLAGS="" 3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3461 /* end confdefs.h. */ 3462 3463 int 3464 main (void) 3465 { 3466 3467 ; 3468 return 0; 3469 } 3470 _ACEOF 3471 if ac_fn_c_try_compile "$LINENO" 3472 then : 3473 3474 else $as_nop 3475 ac_c_werror_flag=$ac_save_c_werror_flag 3476 CFLAGS="-g" 3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3478 /* end confdefs.h. */ 3479 3480 int 3481 main (void) 3482 { 3483 3484 ; 3485 return 0; 3486 } 3487 _ACEOF 3488 if ac_fn_c_try_compile "$LINENO" 3489 then : 3490 ac_cv_prog_cc_g=yes 3491 fi 3492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3493 fi 3494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3495 fi 3496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3497 ac_c_werror_flag=$ac_save_c_werror_flag 3498 fi 3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3500 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3501 if test $ac_test_CFLAGS; then 3502 CFLAGS=$ac_save_CFLAGS 3503 elif test $ac_cv_prog_cc_g = yes; then 3504 if test "$GCC" = yes; then 3505 CFLAGS="-g -O2" 3506 else 3507 CFLAGS="-g" 3508 fi 3509 else 3510 if test "$GCC" = yes; then 3511 CFLAGS="-O2" 3512 else 3513 CFLAGS= 3514 fi 3515 fi 3516 ac_prog_cc_stdc=no 3517 if test x$ac_prog_cc_stdc = xno 3518 then : 3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3520 printf %s "checking for $CC option to enable C11 features... " >&6; } 3521 if test ${ac_cv_prog_cc_c11+y} 3522 then : 3523 printf %s "(cached) " >&6 3524 else $as_nop 3525 ac_cv_prog_cc_c11=no 3526 ac_save_CC=$CC 3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3528 /* end confdefs.h. */ 3529 $ac_c_conftest_c11_program 3530 _ACEOF 3531 for ac_arg in '' -std=gnu11 3532 do 3533 CC="$ac_save_CC $ac_arg" 3534 if ac_fn_c_try_compile "$LINENO" 3535 then : 3536 ac_cv_prog_cc_c11=$ac_arg 3537 fi 3538 rm -f core conftest.err conftest.$ac_objext conftest.beam 3539 test "x$ac_cv_prog_cc_c11" != "xno" && break 3540 done 3541 rm -f conftest.$ac_ext 3542 CC=$ac_save_CC 3543 fi 3544 3545 if test "x$ac_cv_prog_cc_c11" = xno 3546 then : 3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3548 printf "%s\n" "unsupported" >&6; } 3549 else $as_nop 3550 if test "x$ac_cv_prog_cc_c11" = x 3551 then : 3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3553 printf "%s\n" "none needed" >&6; } 3554 else $as_nop 3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3556 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3557 CC="$CC $ac_cv_prog_cc_c11" 3558 fi 3559 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3560 ac_prog_cc_stdc=c11 3561 fi 3562 fi 3563 if test x$ac_prog_cc_stdc = xno 3564 then : 3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3566 printf %s "checking for $CC option to enable C99 features... " >&6; } 3567 if test ${ac_cv_prog_cc_c99+y} 3568 then : 3569 printf %s "(cached) " >&6 3570 else $as_nop 3571 ac_cv_prog_cc_c99=no 3572 ac_save_CC=$CC 3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3574 /* end confdefs.h. */ 3575 $ac_c_conftest_c99_program 3576 _ACEOF 3577 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3578 do 3579 CC="$ac_save_CC $ac_arg" 3580 if ac_fn_c_try_compile "$LINENO" 3581 then : 3582 ac_cv_prog_cc_c99=$ac_arg 3583 fi 3584 rm -f core conftest.err conftest.$ac_objext conftest.beam 3585 test "x$ac_cv_prog_cc_c99" != "xno" && break 3586 done 3587 rm -f conftest.$ac_ext 3588 CC=$ac_save_CC 3589 fi 3590 3591 if test "x$ac_cv_prog_cc_c99" = xno 3592 then : 3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3594 printf "%s\n" "unsupported" >&6; } 3595 else $as_nop 3596 if test "x$ac_cv_prog_cc_c99" = x 3597 then : 3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3599 printf "%s\n" "none needed" >&6; } 3600 else $as_nop 3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3602 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3603 CC="$CC $ac_cv_prog_cc_c99" 3604 fi 3605 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3606 ac_prog_cc_stdc=c99 3607 fi 3608 fi 3609 if test x$ac_prog_cc_stdc = xno 3610 then : 3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3612 printf %s "checking for $CC option to enable C89 features... " >&6; } 3613 if test ${ac_cv_prog_cc_c89+y} 3614 then : 3615 printf %s "(cached) " >&6 3616 else $as_nop 3617 ac_cv_prog_cc_c89=no 3618 ac_save_CC=$CC 3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3620 /* end confdefs.h. */ 3621 $ac_c_conftest_c89_program 3622 _ACEOF 3623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3624 do 3625 CC="$ac_save_CC $ac_arg" 3626 if ac_fn_c_try_compile "$LINENO" 3627 then : 3628 ac_cv_prog_cc_c89=$ac_arg 3629 fi 3630 rm -f core conftest.err conftest.$ac_objext conftest.beam 3631 test "x$ac_cv_prog_cc_c89" != "xno" && break 3632 done 3633 rm -f conftest.$ac_ext 3634 CC=$ac_save_CC 3635 fi 3636 3637 if test "x$ac_cv_prog_cc_c89" = xno 3638 then : 3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3640 printf "%s\n" "unsupported" >&6; } 3641 else $as_nop 3642 if test "x$ac_cv_prog_cc_c89" = x 3643 then : 3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3645 printf "%s\n" "none needed" >&6; } 3646 else $as_nop 3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3648 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3649 CC="$CC $ac_cv_prog_cc_c89" 3650 fi 3651 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3652 ac_prog_cc_stdc=c89 3653 fi 3654 fi 3655 3656 ac_ext=c 3657 ac_cpp='$CPP $CPPFLAGS' 3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3661 3662 3663 ac_ext=c 3664 ac_cpp='$CPP $CPPFLAGS' 3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3669 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3670 if test ${am_cv_prog_cc_c_o+y} 3671 then : 3672 printf %s "(cached) " >&6 3673 else $as_nop 3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3675 /* end confdefs.h. */ 3676 3677 int 3678 main (void) 3679 { 3680 3681 ; 3682 return 0; 3683 } 3684 _ACEOF 3685 # Make sure it works both with $CC and with simple cc. 3686 # Following AC_PROG_CC_C_O, we do the test twice because some 3687 # compilers refuse to overwrite an existing .o file with -o, 3688 # though they will create one. 3689 am_cv_prog_cc_c_o=yes 3690 for am_i in 1 2; do 3691 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3692 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3693 ac_status=$? 3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3695 (exit $ac_status); } \ 3696 && test -f conftest2.$ac_objext; then 3697 : OK 3698 else 3699 am_cv_prog_cc_c_o=no 3700 break 3701 fi 3702 done 3703 rm -f core conftest* 3704 unset am_i 3705 fi 3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3707 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3708 if test "$am_cv_prog_cc_c_o" != yes; then 3709 # Losing compiler, so override with the script. 3710 # FIXME: It is wrong to rewrite CC. 3711 # But if we don't then we get into trouble of one sort or another. 3712 # A longer-term fix would be to have automake use am__CC in this case, 3713 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3714 CC="$am_aux_dir/compile $CC" 3715 fi 3716 ac_ext=c 3717 ac_cpp='$CPP $CPPFLAGS' 3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3721 3722 3723 3724 ac_header= ac_cache= 3725 for ac_item in $ac_header_c_list 3726 do 3727 if test $ac_cache; then 3728 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3729 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3730 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3731 fi 3732 ac_header= ac_cache= 3733 elif test $ac_header; then 3734 ac_cache=$ac_item 3735 else 3736 ac_header=$ac_item 3737 fi 3738 done 3739 3740 3741 3742 3743 3744 3745 3746 3747 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3748 then : 3749 3750 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3751 3752 fi 3753 3754 3755 3756 3757 3758 3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3760 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3761 if test ${ac_cv_safe_to_define___extensions__+y} 3762 then : 3763 printf %s "(cached) " >&6 3764 else $as_nop 3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766 /* end confdefs.h. */ 3767 3768 # define __EXTENSIONS__ 1 3769 $ac_includes_default 3770 int 3771 main (void) 3772 { 3773 3774 ; 3775 return 0; 3776 } 3777 _ACEOF 3778 if ac_fn_c_try_compile "$LINENO" 3779 then : 3780 ac_cv_safe_to_define___extensions__=yes 3781 else $as_nop 3782 ac_cv_safe_to_define___extensions__=no 3783 fi 3784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3785 fi 3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3787 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3788 3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3790 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3791 if test ${ac_cv_should_define__xopen_source+y} 3792 then : 3793 printf %s "(cached) " >&6 3794 else $as_nop 3795 ac_cv_should_define__xopen_source=no 3796 if test $ac_cv_header_wchar_h = yes 3797 then : 3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3799 /* end confdefs.h. */ 3800 3801 #include <wchar.h> 3802 mbstate_t x; 3803 int 3804 main (void) 3805 { 3806 3807 ; 3808 return 0; 3809 } 3810 _ACEOF 3811 if ac_fn_c_try_compile "$LINENO" 3812 then : 3813 3814 else $as_nop 3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3816 /* end confdefs.h. */ 3817 3818 #define _XOPEN_SOURCE 500 3819 #include <wchar.h> 3820 mbstate_t x; 3821 int 3822 main (void) 3823 { 3824 3825 ; 3826 return 0; 3827 } 3828 _ACEOF 3829 if ac_fn_c_try_compile "$LINENO" 3830 then : 3831 ac_cv_should_define__xopen_source=yes 3832 fi 3833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3834 fi 3835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3836 fi 3837 fi 3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3839 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3840 3841 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3842 3843 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3844 3845 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3846 3847 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3848 3849 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3850 3851 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3852 3853 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3854 3855 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3856 3857 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3858 3859 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3860 3861 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3862 3863 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3864 3865 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3866 3867 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3868 3869 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3870 3871 if test $ac_cv_header_minix_config_h = yes 3872 then : 3873 MINIX=yes 3874 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3875 3876 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3877 3878 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3879 3880 else $as_nop 3881 MINIX= 3882 fi 3883 if test $ac_cv_safe_to_define___extensions__ = yes 3884 then : 3885 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3886 3887 fi 3888 if test $ac_cv_should_define__xopen_source = yes 3889 then : 3890 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3891 3892 fi 3893 3894 3895 # Initialize Automake 3896 am__api_version='1.16' 3897 3898 3899 # Find a good install program. We prefer a C program (faster), 3900 # so one script is as good as another. But avoid the broken or 3901 # incompatible versions: 3902 # SysV /etc/install, /usr/sbin/install 3903 # SunOS /usr/etc/install 3904 # IRIX /sbin/install 3905 # AIX /bin/install 3906 # AmigaOS /C/install, which installs bootblocks on floppy discs 3907 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3908 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3909 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3910 # OS/2's system install, which has a completely different semantic 3911 # ./install, which can be erroneously created by make from ./install.sh. 3912 # Reject install programs that cannot install multiple files. 3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3914 printf %s "checking for a BSD-compatible install... " >&6; } 3915 if test -z "$INSTALL"; then 3916 if test ${ac_cv_path_install+y} 3917 then : 3918 printf %s "(cached) " >&6 3919 else $as_nop 3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3921 for as_dir in $PATH 3922 do 3923 IFS=$as_save_IFS 3924 case $as_dir in #((( 3925 '') as_dir=./ ;; 3926 */) ;; 3927 *) as_dir=$as_dir/ ;; 3928 esac 3929 # Account for fact that we put trailing slashes in our PATH walk. 3930 case $as_dir in #(( 3931 ./ | /[cC]/* | \ 3932 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3933 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3934 /usr/ucb/* ) ;; 3935 *) 3936 # OSF1 and SCO ODT 3.0 have their own names for install. 3937 # Don't use installbsd from OSF since it installs stuff as root 3938 # by default. 3939 for ac_prog in ginstall scoinst install; do 3940 for ac_exec_ext in '' $ac_executable_extensions; do 3941 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3942 if test $ac_prog = install && 3943 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3944 # AIX install. It has an incompatible calling convention. 3945 : 3946 elif test $ac_prog = install && 3947 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3948 # program-specific install script used by HP pwplus--don't use. 3949 : 3950 else 3951 rm -rf conftest.one conftest.two conftest.dir 3952 echo one > conftest.one 3953 echo two > conftest.two 3954 mkdir conftest.dir 3955 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3956 test -s conftest.one && test -s conftest.two && 3957 test -s conftest.dir/conftest.one && 3958 test -s conftest.dir/conftest.two 3959 then 3960 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3961 break 3 3962 fi 3963 fi 3964 fi 3965 done 3966 done 3967 ;; 3968 esac 3969 3970 done 3971 IFS=$as_save_IFS 3972 3973 rm -rf conftest.one conftest.two conftest.dir 3974 3975 fi 3976 if test ${ac_cv_path_install+y}; then 3977 INSTALL=$ac_cv_path_install 3978 else 3979 # As a last resort, use the slow shell script. Don't cache a 3980 # value for INSTALL within a source directory, because that will 3981 # break other packages using the cache if that directory is 3982 # removed, or if the value is a relative name. 3983 INSTALL=$ac_install_sh 3984 fi 3985 fi 3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3987 printf "%s\n" "$INSTALL" >&6; } 3988 3989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3990 # It thinks the first close brace ends the variable substitution. 3991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3992 3993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3994 3995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3996 3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3998 printf %s "checking whether build environment is sane... " >&6; } 3999 # Reject unsafe characters in $srcdir or the absolute working directory 4000 # name. Accept space and tab only in the latter. 4001 am_lf=' 4002 ' 4003 case `pwd` in 4004 *[\\\"\#\$\&\'\`$am_lf]*) 4005 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4006 esac 4007 case $srcdir in 4008 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4009 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4010 esac 4011 4012 # Do 'set' in a subshell so we don't clobber the current shell's 4013 # arguments. Must try -L first in case configure is actually a 4014 # symlink; some systems play weird games with the mod time of symlinks 4015 # (eg FreeBSD returns the mod time of the symlink's containing 4016 # directory). 4017 if ( 4018 am_has_slept=no 4019 for am_try in 1 2; do 4020 echo "timestamp, slept: $am_has_slept" > conftest.file 4021 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4022 if test "$*" = "X"; then 4023 # -L didn't work. 4024 set X `ls -t "$srcdir/configure" conftest.file` 4025 fi 4026 if test "$*" != "X $srcdir/configure conftest.file" \ 4027 && test "$*" != "X conftest.file $srcdir/configure"; then 4028 4029 # If neither matched, then we have a broken ls. This can happen 4030 # if, for instance, CONFIG_SHELL is bash and it inherits a 4031 # broken ls alias from the environment. This has actually 4032 # happened. Such a system could not be considered "sane". 4033 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4034 alias in your environment" "$LINENO" 5 4035 fi 4036 if test "$2" = conftest.file || test $am_try -eq 2; then 4037 break 4038 fi 4039 # Just in case. 4040 sleep 1 4041 am_has_slept=yes 4042 done 4043 test "$2" = conftest.file 4044 ) 4045 then 4046 # Ok. 4047 : 4048 else 4049 as_fn_error $? "newly created file is older than distributed files! 4050 Check your system clock" "$LINENO" 5 4051 fi 4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4053 printf "%s\n" "yes" >&6; } 4054 # If we didn't sleep, we still need to ensure time stamps of config.status and 4055 # generated files are strictly newer. 4056 am_sleep_pid= 4057 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4058 ( sleep 1 ) & 4059 am_sleep_pid=$! 4060 fi 4061 4062 rm -f conftest.file 4063 4064 test "$program_prefix" != NONE && 4065 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4066 # Use a double $ so make ignores it. 4067 test "$program_suffix" != NONE && 4068 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4069 # Double any \ or $. 4070 # By default was `s,x,x', remove it if useless. 4071 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4072 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4073 4074 4075 if test x"${MISSING+set}" != xset; then 4076 MISSING="\${SHELL} '$am_aux_dir/missing'" 4077 fi 4078 # Use eval to expand $SHELL 4079 if eval "$MISSING --is-lightweight"; then 4080 am_missing_run="$MISSING " 4081 else 4082 am_missing_run= 4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4084 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4085 fi 4086 4087 if test x"${install_sh+set}" != xset; then 4088 case $am_aux_dir in 4089 *\ * | *\ *) 4090 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4091 *) 4092 install_sh="\${SHELL} $am_aux_dir/install-sh" 4093 esac 4094 fi 4095 4096 # Installed binaries are usually stripped using 'strip' when the user 4097 # run "make install-strip". However 'strip' might not be the right 4098 # tool to use in cross-compilation environments, therefore Automake 4099 # will honor the 'STRIP' environment variable to overrule this program. 4100 if test "$cross_compiling" != no; then 4101 if test -n "$ac_tool_prefix"; then 4102 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4103 set dummy ${ac_tool_prefix}strip; ac_word=$2 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4105 printf %s "checking for $ac_word... " >&6; } 4106 if test ${ac_cv_prog_STRIP+y} 4107 then : 4108 printf %s "(cached) " >&6 4109 else $as_nop 4110 if test -n "$STRIP"; then 4111 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4112 else 4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4114 for as_dir in $PATH 4115 do 4116 IFS=$as_save_IFS 4117 case $as_dir in #((( 4118 '') as_dir=./ ;; 4119 */) ;; 4120 *) as_dir=$as_dir/ ;; 4121 esac 4122 for ac_exec_ext in '' $ac_executable_extensions; do 4123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4124 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4126 break 2 4127 fi 4128 done 4129 done 4130 IFS=$as_save_IFS 4131 4132 fi 4133 fi 4134 STRIP=$ac_cv_prog_STRIP 4135 if test -n "$STRIP"; then 4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4137 printf "%s\n" "$STRIP" >&6; } 4138 else 4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4140 printf "%s\n" "no" >&6; } 4141 fi 4142 4143 4144 fi 4145 if test -z "$ac_cv_prog_STRIP"; then 4146 ac_ct_STRIP=$STRIP 4147 # Extract the first word of "strip", so it can be a program name with args. 4148 set dummy strip; ac_word=$2 4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4150 printf %s "checking for $ac_word... " >&6; } 4151 if test ${ac_cv_prog_ac_ct_STRIP+y} 4152 then : 4153 printf %s "(cached) " >&6 4154 else $as_nop 4155 if test -n "$ac_ct_STRIP"; then 4156 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4157 else 4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4159 for as_dir in $PATH 4160 do 4161 IFS=$as_save_IFS 4162 case $as_dir in #((( 4163 '') as_dir=./ ;; 4164 */) ;; 4165 *) as_dir=$as_dir/ ;; 4166 esac 4167 for ac_exec_ext in '' $ac_executable_extensions; do 4168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4169 ac_cv_prog_ac_ct_STRIP="strip" 4170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4171 break 2 4172 fi 4173 done 4174 done 4175 IFS=$as_save_IFS 4176 4177 fi 4178 fi 4179 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4180 if test -n "$ac_ct_STRIP"; then 4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4182 printf "%s\n" "$ac_ct_STRIP" >&6; } 4183 else 4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4185 printf "%s\n" "no" >&6; } 4186 fi 4187 4188 if test "x$ac_ct_STRIP" = x; then 4189 STRIP=":" 4190 else 4191 case $cross_compiling:$ac_tool_warned in 4192 yes:) 4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4194 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4195 ac_tool_warned=yes ;; 4196 esac 4197 STRIP=$ac_ct_STRIP 4198 fi 4199 else 4200 STRIP="$ac_cv_prog_STRIP" 4201 fi 4202 4203 fi 4204 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4205 4206 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4208 printf %s "checking for a race-free mkdir -p... " >&6; } 4209 if test -z "$MKDIR_P"; then 4210 if test ${ac_cv_path_mkdir+y} 4211 then : 4212 printf %s "(cached) " >&6 4213 else $as_nop 4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4215 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4216 do 4217 IFS=$as_save_IFS 4218 case $as_dir in #((( 4219 '') as_dir=./ ;; 4220 */) ;; 4221 *) as_dir=$as_dir/ ;; 4222 esac 4223 for ac_prog in mkdir gmkdir; do 4224 for ac_exec_ext in '' $ac_executable_extensions; do 4225 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4226 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4227 'mkdir ('*'coreutils) '* | \ 4228 'BusyBox '* | \ 4229 'mkdir (fileutils) '4.1*) 4230 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4231 break 3;; 4232 esac 4233 done 4234 done 4235 done 4236 IFS=$as_save_IFS 4237 4238 fi 4239 4240 test -d ./--version && rmdir ./--version 4241 if test ${ac_cv_path_mkdir+y}; then 4242 MKDIR_P="$ac_cv_path_mkdir -p" 4243 else 4244 # As a last resort, use the slow shell script. Don't cache a 4245 # value for MKDIR_P within a source directory, because that will 4246 # break other packages using the cache if that directory is 4247 # removed, or if the value is a relative name. 4248 MKDIR_P="$ac_install_sh -d" 4249 fi 4250 fi 4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4252 printf "%s\n" "$MKDIR_P" >&6; } 4253 4254 for ac_prog in gawk mawk nawk awk 4255 do 4256 # Extract the first word of "$ac_prog", so it can be a program name with args. 4257 set dummy $ac_prog; ac_word=$2 4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4259 printf %s "checking for $ac_word... " >&6; } 4260 if test ${ac_cv_prog_AWK+y} 4261 then : 4262 printf %s "(cached) " >&6 4263 else $as_nop 4264 if test -n "$AWK"; then 4265 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4266 else 4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4268 for as_dir in $PATH 4269 do 4270 IFS=$as_save_IFS 4271 case $as_dir in #((( 4272 '') as_dir=./ ;; 4273 */) ;; 4274 *) as_dir=$as_dir/ ;; 4275 esac 4276 for ac_exec_ext in '' $ac_executable_extensions; do 4277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4278 ac_cv_prog_AWK="$ac_prog" 4279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4280 break 2 4281 fi 4282 done 4283 done 4284 IFS=$as_save_IFS 4285 4286 fi 4287 fi 4288 AWK=$ac_cv_prog_AWK 4289 if test -n "$AWK"; then 4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4291 printf "%s\n" "$AWK" >&6; } 4292 else 4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4294 printf "%s\n" "no" >&6; } 4295 fi 4296 4297 4298 test -n "$AWK" && break 4299 done 4300 4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4302 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4303 set x ${MAKE-make} 4304 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4305 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4306 then : 4307 printf %s "(cached) " >&6 4308 else $as_nop 4309 cat >conftest.make <<\_ACEOF 4310 SHELL = /bin/sh 4311 all: 4312 @echo '@@@%%%=$(MAKE)=@@@%%%' 4313 _ACEOF 4314 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4315 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4316 *@@@%%%=?*=@@@%%%*) 4317 eval ac_cv_prog_make_${ac_make}_set=yes;; 4318 *) 4319 eval ac_cv_prog_make_${ac_make}_set=no;; 4320 esac 4321 rm -f conftest.make 4322 fi 4323 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4325 printf "%s\n" "yes" >&6; } 4326 SET_MAKE= 4327 else 4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4329 printf "%s\n" "no" >&6; } 4330 SET_MAKE="MAKE=${MAKE-make}" 4331 fi 4332 4333 rm -rf .tst 2>/dev/null 4334 mkdir .tst 2>/dev/null 4335 if test -d .tst; then 4336 am__leading_dot=. 4337 else 4338 am__leading_dot=_ 4339 fi 4340 rmdir .tst 2>/dev/null 4341 4342 DEPDIR="${am__leading_dot}deps" 4343 4344 ac_config_commands="$ac_config_commands depfiles" 4345 4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4347 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4348 cat > confinc.mk << 'END' 4349 am__doit: 4350 @echo this is the am__doit target >confinc.out 4351 .PHONY: am__doit 4352 END 4353 am__include="#" 4354 am__quote= 4355 # BSD make does it like this. 4356 echo '.include "confinc.mk" # ignored' > confmf.BSD 4357 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4358 echo 'include confinc.mk # ignored' > confmf.GNU 4359 _am_result=no 4360 for s in GNU BSD; do 4361 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4362 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4363 ac_status=$? 4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4365 (exit $ac_status); } 4366 case $?:`cat confinc.out 2>/dev/null` in #( 4367 '0:this is the am__doit target') : 4368 case $s in #( 4369 BSD) : 4370 am__include='.include' am__quote='"' ;; #( 4371 *) : 4372 am__include='include' am__quote='' ;; 4373 esac ;; #( 4374 *) : 4375 ;; 4376 esac 4377 if test "$am__include" != "#"; then 4378 _am_result="yes ($s style)" 4379 break 4380 fi 4381 done 4382 rm -f confinc.* confmf.* 4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4384 printf "%s\n" "${_am_result}" >&6; } 4385 4386 # Check whether --enable-dependency-tracking was given. 4387 if test ${enable_dependency_tracking+y} 4388 then : 4389 enableval=$enable_dependency_tracking; 4390 fi 4391 4392 if test "x$enable_dependency_tracking" != xno; then 4393 am_depcomp="$ac_aux_dir/depcomp" 4394 AMDEPBACKSLASH='\' 4395 am__nodep='_no' 4396 fi 4397 if test "x$enable_dependency_tracking" != xno; then 4398 AMDEP_TRUE= 4399 AMDEP_FALSE='#' 4400 else 4401 AMDEP_TRUE='#' 4402 AMDEP_FALSE= 4403 fi 4404 4405 4406 # Check whether --enable-silent-rules was given. 4407 if test ${enable_silent_rules+y} 4408 then : 4409 enableval=$enable_silent_rules; 4410 fi 4411 4412 case $enable_silent_rules in # ((( 4413 yes) AM_DEFAULT_VERBOSITY=0;; 4414 no) AM_DEFAULT_VERBOSITY=1;; 4415 *) AM_DEFAULT_VERBOSITY=1;; 4416 esac 4417 am_make=${MAKE-make} 4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4419 printf %s "checking whether $am_make supports nested variables... " >&6; } 4420 if test ${am_cv_make_support_nested_variables+y} 4421 then : 4422 printf %s "(cached) " >&6 4423 else $as_nop 4424 if printf "%s\n" 'TRUE=$(BAR$(V)) 4425 BAR0=false 4426 BAR1=true 4427 V=1 4428 am__doit: 4429 @$(TRUE) 4430 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4431 am_cv_make_support_nested_variables=yes 4432 else 4433 am_cv_make_support_nested_variables=no 4434 fi 4435 fi 4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4437 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4438 if test $am_cv_make_support_nested_variables = yes; then 4439 AM_V='$(V)' 4440 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4441 else 4442 AM_V=$AM_DEFAULT_VERBOSITY 4443 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4444 fi 4445 AM_BACKSLASH='\' 4446 4447 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4448 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4449 # is not polluted with repeated "-I." 4450 am__isrc=' -I$(srcdir)' 4451 # test to see if srcdir already configured 4452 if test -f $srcdir/config.status; then 4453 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4454 fi 4455 fi 4456 4457 # test whether we have cygpath 4458 if test -z "$CYGPATH_W"; then 4459 if (cygpath --version) >/dev/null 2>/dev/null; then 4460 CYGPATH_W='cygpath -w' 4461 else 4462 CYGPATH_W=echo 4463 fi 4464 fi 4465 4466 4467 # Define the identity of the package. 4468 PACKAGE='xinit' 4469 VERSION='1.4.3' 4470 4471 4472 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4473 4474 4475 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4476 4477 # Some tools Automake needs. 4478 4479 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4480 4481 4482 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4483 4484 4485 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4486 4487 4488 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4489 4490 4491 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4492 4493 # For better backward compatibility. To be removed once Automake 1.9.x 4494 # dies out for good. For more background, see: 4495 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4496 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4497 mkdir_p='$(MKDIR_P)' 4498 4499 # We need awk for the "check" target (and possibly the TAP driver). The 4500 # system "awk" is bad on some platforms. 4501 # Always define AMTAR for backward compatibility. Yes, it's still used 4502 # in the wild :-( We should find a proper way to deprecate it ... 4503 AMTAR='$${TAR-tar}' 4504 4505 4506 # We'll loop over all known methods to create a tar archive until one works. 4507 _am_tools='gnutar pax cpio none' 4508 4509 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4510 4511 4512 4513 4514 4515 depcc="$CC" am_compiler_list= 4516 4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4518 printf %s "checking dependency style of $depcc... " >&6; } 4519 if test ${am_cv_CC_dependencies_compiler_type+y} 4520 then : 4521 printf %s "(cached) " >&6 4522 else $as_nop 4523 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4524 # We make a subdir and do the tests there. Otherwise we can end up 4525 # making bogus files that we don't know about and never remove. For 4526 # instance it was reported that on HP-UX the gcc test will end up 4527 # making a dummy file named 'D' -- because '-MD' means "put the output 4528 # in D". 4529 rm -rf conftest.dir 4530 mkdir conftest.dir 4531 # Copy depcomp to subdir because otherwise we won't find it if we're 4532 # using a relative directory. 4533 cp "$am_depcomp" conftest.dir 4534 cd conftest.dir 4535 # We will build objects and dependencies in a subdirectory because 4536 # it helps to detect inapplicable dependency modes. For instance 4537 # both Tru64's cc and ICC support -MD to output dependencies as a 4538 # side effect of compilation, but ICC will put the dependencies in 4539 # the current directory while Tru64 will put them in the object 4540 # directory. 4541 mkdir sub 4542 4543 am_cv_CC_dependencies_compiler_type=none 4544 if test "$am_compiler_list" = ""; then 4545 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4546 fi 4547 am__universal=false 4548 case " $depcc " in #( 4549 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4550 esac 4551 4552 for depmode in $am_compiler_list; do 4553 # Setup a source with many dependencies, because some compilers 4554 # like to wrap large dependency lists on column 80 (with \), and 4555 # we should not choose a depcomp mode which is confused by this. 4556 # 4557 # We need to recreate these files for each test, as the compiler may 4558 # overwrite some of them when testing with obscure command lines. 4559 # This happens at least with the AIX C compiler. 4560 : > sub/conftest.c 4561 for i in 1 2 3 4 5 6; do 4562 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4563 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4564 # Solaris 10 /bin/sh. 4565 echo '/* dummy */' > sub/conftst$i.h 4566 done 4567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4568 4569 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4570 # mode. It turns out that the SunPro C++ compiler does not properly 4571 # handle '-M -o', and we need to detect this. Also, some Intel 4572 # versions had trouble with output in subdirs. 4573 am__obj=sub/conftest.${OBJEXT-o} 4574 am__minus_obj="-o $am__obj" 4575 case $depmode in 4576 gcc) 4577 # This depmode causes a compiler race in universal mode. 4578 test "$am__universal" = false || continue 4579 ;; 4580 nosideeffect) 4581 # After this tag, mechanisms are not by side-effect, so they'll 4582 # only be used when explicitly requested. 4583 if test "x$enable_dependency_tracking" = xyes; then 4584 continue 4585 else 4586 break 4587 fi 4588 ;; 4589 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4590 # This compiler won't grok '-c -o', but also, the minuso test has 4591 # not run yet. These depmodes are late enough in the game, and 4592 # so weak that their functioning should not be impacted. 4593 am__obj=conftest.${OBJEXT-o} 4594 am__minus_obj= 4595 ;; 4596 none) break ;; 4597 esac 4598 if depmode=$depmode \ 4599 source=sub/conftest.c object=$am__obj \ 4600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4601 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4602 >/dev/null 2>conftest.err && 4603 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4605 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4607 # icc doesn't choke on unknown options, it will just issue warnings 4608 # or remarks (even with -Werror). So we grep stderr for any message 4609 # that says an option was ignored or not supported. 4610 # When given -MP, icc 7.0 and 7.1 complain thusly: 4611 # icc: Command line warning: ignoring option '-M'; no argument required 4612 # The diagnosis changed in icc 8.0: 4613 # icc: Command line remark: option '-MP' not supported 4614 if (grep 'ignoring option' conftest.err || 4615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4616 am_cv_CC_dependencies_compiler_type=$depmode 4617 break 4618 fi 4619 fi 4620 done 4621 4622 cd .. 4623 rm -rf conftest.dir 4624 else 4625 am_cv_CC_dependencies_compiler_type=none 4626 fi 4627 4628 fi 4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4630 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4631 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4632 4633 if 4634 test "x$enable_dependency_tracking" != xno \ 4635 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4636 am__fastdepCC_TRUE= 4637 am__fastdepCC_FALSE='#' 4638 else 4639 am__fastdepCC_TRUE='#' 4640 am__fastdepCC_FALSE= 4641 fi 4642 4643 4644 4645 # POSIX will say in a future version that running "rm -f" with no argument 4646 # is OK; and we want to be able to make that assumption in our Makefile 4647 # recipes. So use an aggressive probe to check that the usage we want is 4648 # actually supported "in the wild" to an acceptable degree. 4649 # See automake bug#10828. 4650 # To make any issue more visible, cause the running configure to be aborted 4651 # by default if the 'rm' program in use doesn't match our expectations; the 4652 # user can still override this though. 4653 if rm -f && rm -fr && rm -rf; then : OK; else 4654 cat >&2 <<'END' 4655 Oops! 4656 4657 Your 'rm' program seems unable to run without file operands specified 4658 on the command line, even when the '-f' option is present. This is contrary 4659 to the behaviour of most rm programs out there, and not conforming with 4660 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4661 4662 Please tell bug-automake@gnu.org about your system, including the value 4663 of your $PATH and any error possibly output before this message. This 4664 can help us improve future automake versions. 4665 4666 END 4667 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4668 echo 'Configuration will proceed anyway, since you have set the' >&2 4669 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4670 echo >&2 4671 else 4672 cat >&2 <<'END' 4673 Aborting the configuration process, to ensure you take notice of the issue. 4674 4675 You can download and install GNU coreutils to get an 'rm' implementation 4676 that behaves properly: <https://www.gnu.org/software/coreutils/>. 4677 4678 If you want to complete the configuration process using your problematic 4679 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4680 to "yes", and re-run configure. 4681 4682 END 4683 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4684 fi 4685 fi 4686 4687 4688 # Require X.Org macros 1.19 or later for TRADITIONALCPPFLAGS 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4701 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4702 if test ${ac_cv_c_undeclared_builtin_options+y} 4703 then : 4704 printf %s "(cached) " >&6 4705 else $as_nop 4706 ac_save_CFLAGS=$CFLAGS 4707 ac_cv_c_undeclared_builtin_options='cannot detect' 4708 for ac_arg in '' -fno-builtin; do 4709 CFLAGS="$ac_save_CFLAGS $ac_arg" 4710 # This test program should *not* compile successfully. 4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4712 /* end confdefs.h. */ 4713 4714 int 4715 main (void) 4716 { 4717 (void) strchr; 4718 ; 4719 return 0; 4720 } 4721 _ACEOF 4722 if ac_fn_c_try_compile "$LINENO" 4723 then : 4724 4725 else $as_nop 4726 # This test program should compile successfully. 4727 # No library function is consistently available on 4728 # freestanding implementations, so test against a dummy 4729 # declaration. Include always-available headers on the 4730 # off chance that they somehow elicit warnings. 4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4732 /* end confdefs.h. */ 4733 #include <float.h> 4734 #include <limits.h> 4735 #include <stdarg.h> 4736 #include <stddef.h> 4737 extern void ac_decl (int, char *); 4738 4739 int 4740 main (void) 4741 { 4742 (void) ac_decl (0, (char *) 0); 4743 (void) ac_decl; 4744 4745 ; 4746 return 0; 4747 } 4748 _ACEOF 4749 if ac_fn_c_try_compile "$LINENO" 4750 then : 4751 if test x"$ac_arg" = x 4752 then : 4753 ac_cv_c_undeclared_builtin_options='none needed' 4754 else $as_nop 4755 ac_cv_c_undeclared_builtin_options=$ac_arg 4756 fi 4757 break 4758 fi 4759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4760 fi 4761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4762 done 4763 CFLAGS=$ac_save_CFLAGS 4764 4765 fi 4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4767 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4768 case $ac_cv_c_undeclared_builtin_options in #( 4769 'cannot detect') : 4770 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4771 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4772 as_fn_error $? "cannot make $CC report undeclared builtins 4773 See \`config.log' for more details" "$LINENO" 5; } ;; #( 4774 'none needed') : 4775 ac_c_undeclared_builtin_options='' ;; #( 4776 *) : 4777 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4778 esac 4779 4780 4781 4782 4783 4784 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4785 if test "x$ac_cv_have_decl___clang__" = xyes 4786 then : 4787 CLANGCC="yes" 4788 else $as_nop 4789 CLANGCC="no" 4790 fi 4791 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4792 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4793 then : 4794 INTELCC="yes" 4795 else $as_nop 4796 INTELCC="no" 4797 fi 4798 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4799 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4800 then : 4801 SUNCC="yes" 4802 else $as_nop 4803 SUNCC="no" 4804 fi 4805 4806 4807 4808 4809 4810 4811 4812 4813 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4814 if test -n "$ac_tool_prefix"; then 4815 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4816 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4818 printf %s "checking for $ac_word... " >&6; } 4819 if test ${ac_cv_path_PKG_CONFIG+y} 4820 then : 4821 printf %s "(cached) " >&6 4822 else $as_nop 4823 case $PKG_CONFIG in 4824 [\\/]* | ?:[\\/]*) 4825 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4826 ;; 4827 *) 4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4829 for as_dir in $PATH 4830 do 4831 IFS=$as_save_IFS 4832 case $as_dir in #((( 4833 '') as_dir=./ ;; 4834 */) ;; 4835 *) as_dir=$as_dir/ ;; 4836 esac 4837 for ac_exec_ext in '' $ac_executable_extensions; do 4838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4839 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4841 break 2 4842 fi 4843 done 4844 done 4845 IFS=$as_save_IFS 4846 4847 ;; 4848 esac 4849 fi 4850 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4851 if test -n "$PKG_CONFIG"; then 4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4853 printf "%s\n" "$PKG_CONFIG" >&6; } 4854 else 4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4856 printf "%s\n" "no" >&6; } 4857 fi 4858 4859 4860 fi 4861 if test -z "$ac_cv_path_PKG_CONFIG"; then 4862 ac_pt_PKG_CONFIG=$PKG_CONFIG 4863 # Extract the first word of "pkg-config", so it can be a program name with args. 4864 set dummy pkg-config; ac_word=$2 4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4866 printf %s "checking for $ac_word... " >&6; } 4867 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4868 then : 4869 printf %s "(cached) " >&6 4870 else $as_nop 4871 case $ac_pt_PKG_CONFIG in 4872 [\\/]* | ?:[\\/]*) 4873 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4874 ;; 4875 *) 4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4877 for as_dir in $PATH 4878 do 4879 IFS=$as_save_IFS 4880 case $as_dir in #((( 4881 '') as_dir=./ ;; 4882 */) ;; 4883 *) as_dir=$as_dir/ ;; 4884 esac 4885 for ac_exec_ext in '' $ac_executable_extensions; do 4886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4887 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4889 break 2 4890 fi 4891 done 4892 done 4893 IFS=$as_save_IFS 4894 4895 ;; 4896 esac 4897 fi 4898 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4899 if test -n "$ac_pt_PKG_CONFIG"; then 4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4901 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4902 else 4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4904 printf "%s\n" "no" >&6; } 4905 fi 4906 4907 if test "x$ac_pt_PKG_CONFIG" = x; then 4908 PKG_CONFIG="" 4909 else 4910 case $cross_compiling:$ac_tool_warned in 4911 yes:) 4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4913 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4914 ac_tool_warned=yes ;; 4915 esac 4916 PKG_CONFIG=$ac_pt_PKG_CONFIG 4917 fi 4918 else 4919 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4920 fi 4921 4922 fi 4923 if test -n "$PKG_CONFIG"; then 4924 _pkg_min_version=0.9.0 4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4926 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4927 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4929 printf "%s\n" "yes" >&6; } 4930 else 4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4932 printf "%s\n" "no" >&6; } 4933 PKG_CONFIG="" 4934 fi 4935 fi 4936 4937 4938 # Make sure we can run config.sub. 4939 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4940 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4941 4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4943 printf %s "checking build system type... " >&6; } 4944 if test ${ac_cv_build+y} 4945 then : 4946 printf %s "(cached) " >&6 4947 else $as_nop 4948 ac_build_alias=$build_alias 4949 test "x$ac_build_alias" = x && 4950 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4951 test "x$ac_build_alias" = x && 4952 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4953 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4954 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4955 4956 fi 4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4958 printf "%s\n" "$ac_cv_build" >&6; } 4959 case $ac_cv_build in 4960 *-*-*) ;; 4961 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4962 esac 4963 build=$ac_cv_build 4964 ac_save_IFS=$IFS; IFS='-' 4965 set x $ac_cv_build 4966 shift 4967 build_cpu=$1 4968 build_vendor=$2 4969 shift; shift 4970 # Remember, the first character of IFS is used to create $*, 4971 # except with old shells: 4972 build_os=$* 4973 IFS=$ac_save_IFS 4974 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4975 4976 4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4978 printf %s "checking host system type... " >&6; } 4979 if test ${ac_cv_host+y} 4980 then : 4981 printf %s "(cached) " >&6 4982 else $as_nop 4983 if test "x$host_alias" = x; then 4984 ac_cv_host=$ac_cv_build 4985 else 4986 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4987 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4988 fi 4989 4990 fi 4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4992 printf "%s\n" "$ac_cv_host" >&6; } 4993 case $ac_cv_host in 4994 *-*-*) ;; 4995 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4996 esac 4997 host=$ac_cv_host 4998 ac_save_IFS=$IFS; IFS='-' 4999 set x $ac_cv_host 5000 shift 5001 host_cpu=$1 5002 host_vendor=$2 5003 shift; shift 5004 # Remember, the first character of IFS is used to create $*, 5005 # except with old shells: 5006 host_os=$* 5007 IFS=$ac_save_IFS 5008 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5009 5010 5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5012 printf %s "checking for a sed that does not truncate output... " >&6; } 5013 if test ${ac_cv_path_SED+y} 5014 then : 5015 printf %s "(cached) " >&6 5016 else $as_nop 5017 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5018 for ac_i in 1 2 3 4 5 6 7; do 5019 ac_script="$ac_script$as_nl$ac_script" 5020 done 5021 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5022 { ac_script=; unset ac_script;} 5023 if test -z "$SED"; then 5024 ac_path_SED_found=false 5025 # Loop through the user's path and test for each of PROGNAME-LIST 5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5027 for as_dir in $PATH 5028 do 5029 IFS=$as_save_IFS 5030 case $as_dir in #((( 5031 '') as_dir=./ ;; 5032 */) ;; 5033 *) as_dir=$as_dir/ ;; 5034 esac 5035 for ac_prog in sed gsed 5036 do 5037 for ac_exec_ext in '' $ac_executable_extensions; do 5038 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5039 as_fn_executable_p "$ac_path_SED" || continue 5040 # Check for GNU ac_path_SED and select it if it is found. 5041 # Check for GNU $ac_path_SED 5042 case `"$ac_path_SED" --version 2>&1` in 5043 *GNU*) 5044 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5045 *) 5046 ac_count=0 5047 printf %s 0123456789 >"conftest.in" 5048 while : 5049 do 5050 cat "conftest.in" "conftest.in" >"conftest.tmp" 5051 mv "conftest.tmp" "conftest.in" 5052 cp "conftest.in" "conftest.nl" 5053 printf "%s\n" '' >> "conftest.nl" 5054 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5056 as_fn_arith $ac_count + 1 && ac_count=$as_val 5057 if test $ac_count -gt ${ac_path_SED_max-0}; then 5058 # Best one so far, save it but keep looking for a better one 5059 ac_cv_path_SED="$ac_path_SED" 5060 ac_path_SED_max=$ac_count 5061 fi 5062 # 10*(2^10) chars as input seems more than enough 5063 test $ac_count -gt 10 && break 5064 done 5065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5066 esac 5067 5068 $ac_path_SED_found && break 3 5069 done 5070 done 5071 done 5072 IFS=$as_save_IFS 5073 if test -z "$ac_cv_path_SED"; then 5074 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5075 fi 5076 else 5077 ac_cv_path_SED=$SED 5078 fi 5079 5080 fi 5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5082 printf "%s\n" "$ac_cv_path_SED" >&6; } 5083 SED="$ac_cv_path_SED" 5084 rm -f conftest.sed 5085 5086 5087 5088 5089 5090 5091 # Check whether --enable-selective-werror was given. 5092 if test ${enable_selective_werror+y} 5093 then : 5094 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5095 else $as_nop 5096 SELECTIVE_WERROR=yes 5097 fi 5098 5099 5100 5101 5102 5103 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5104 if test "x$SUNCC" = "xyes"; then 5105 BASE_CFLAGS="-v" 5106 else 5107 BASE_CFLAGS="" 5108 fi 5109 5110 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 xorg_testset_save_CFLAGS="$CFLAGS" 5125 5126 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5129 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5130 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5131 then : 5132 printf %s "(cached) " >&6 5133 else $as_nop 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135 /* end confdefs.h. */ 5136 int i; 5137 _ACEOF 5138 if ac_fn_c_try_compile "$LINENO" 5139 then : 5140 xorg_cv_cc_flag_unknown_warning_option=yes 5141 else $as_nop 5142 xorg_cv_cc_flag_unknown_warning_option=no 5143 fi 5144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5145 fi 5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5147 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5149 CFLAGS="$xorg_testset_save_CFLAGS" 5150 fi 5151 5152 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5155 fi 5156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5158 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5159 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5160 then : 5161 printf %s "(cached) " >&6 5162 else $as_nop 5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5164 /* end confdefs.h. */ 5165 int i; 5166 _ACEOF 5167 if ac_fn_c_try_compile "$LINENO" 5168 then : 5169 xorg_cv_cc_flag_unused_command_line_argument=yes 5170 else $as_nop 5171 xorg_cv_cc_flag_unused_command_line_argument=no 5172 fi 5173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5174 fi 5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5176 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5178 CFLAGS="$xorg_testset_save_CFLAGS" 5179 fi 5180 5181 found="no" 5182 5183 if test $found = "no" ; then 5184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5186 fi 5187 5188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5190 fi 5191 5192 CFLAGS="$CFLAGS -Wall" 5193 5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5195 printf %s "checking if $CC supports -Wall... " >&6; } 5196 cacheid=xorg_cv_cc_flag__Wall 5197 if eval test \${$cacheid+y} 5198 then : 5199 printf %s "(cached) " >&6 5200 else $as_nop 5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202 /* end confdefs.h. */ 5203 int i; 5204 int 5205 main (void) 5206 { 5207 5208 ; 5209 return 0; 5210 } 5211 _ACEOF 5212 if ac_fn_c_try_link "$LINENO" 5213 then : 5214 eval $cacheid=yes 5215 else $as_nop 5216 eval $cacheid=no 5217 fi 5218 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5219 conftest$ac_exeext conftest.$ac_ext 5220 fi 5221 5222 5223 CFLAGS="$xorg_testset_save_CFLAGS" 5224 5225 eval supported=\$$cacheid 5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5227 printf "%s\n" "$supported" >&6; } 5228 if test "$supported" = "yes" ; then 5229 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5230 found="yes" 5231 fi 5232 fi 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 xorg_testset_save_CFLAGS="$CFLAGS" 5249 5250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5253 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5254 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5255 then : 5256 printf %s "(cached) " >&6 5257 else $as_nop 5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5259 /* end confdefs.h. */ 5260 int i; 5261 _ACEOF 5262 if ac_fn_c_try_compile "$LINENO" 5263 then : 5264 xorg_cv_cc_flag_unknown_warning_option=yes 5265 else $as_nop 5266 xorg_cv_cc_flag_unknown_warning_option=no 5267 fi 5268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5269 fi 5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5271 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5273 CFLAGS="$xorg_testset_save_CFLAGS" 5274 fi 5275 5276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5279 fi 5280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5282 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5283 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5284 then : 5285 printf %s "(cached) " >&6 5286 else $as_nop 5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5288 /* end confdefs.h. */ 5289 int i; 5290 _ACEOF 5291 if ac_fn_c_try_compile "$LINENO" 5292 then : 5293 xorg_cv_cc_flag_unused_command_line_argument=yes 5294 else $as_nop 5295 xorg_cv_cc_flag_unused_command_line_argument=no 5296 fi 5297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5298 fi 5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5300 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5302 CFLAGS="$xorg_testset_save_CFLAGS" 5303 fi 5304 5305 found="no" 5306 5307 if test $found = "no" ; then 5308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5310 fi 5311 5312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5314 fi 5315 5316 CFLAGS="$CFLAGS -Wpointer-arith" 5317 5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5319 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5320 cacheid=xorg_cv_cc_flag__Wpointer_arith 5321 if eval test \${$cacheid+y} 5322 then : 5323 printf %s "(cached) " >&6 5324 else $as_nop 5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5326 /* end confdefs.h. */ 5327 int i; 5328 int 5329 main (void) 5330 { 5331 5332 ; 5333 return 0; 5334 } 5335 _ACEOF 5336 if ac_fn_c_try_link "$LINENO" 5337 then : 5338 eval $cacheid=yes 5339 else $as_nop 5340 eval $cacheid=no 5341 fi 5342 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5343 conftest$ac_exeext conftest.$ac_ext 5344 fi 5345 5346 5347 CFLAGS="$xorg_testset_save_CFLAGS" 5348 5349 eval supported=\$$cacheid 5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5351 printf "%s\n" "$supported" >&6; } 5352 if test "$supported" = "yes" ; then 5353 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5354 found="yes" 5355 fi 5356 fi 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 xorg_testset_save_CFLAGS="$CFLAGS" 5373 5374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5377 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5378 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5379 then : 5380 printf %s "(cached) " >&6 5381 else $as_nop 5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5383 /* end confdefs.h. */ 5384 int i; 5385 _ACEOF 5386 if ac_fn_c_try_compile "$LINENO" 5387 then : 5388 xorg_cv_cc_flag_unknown_warning_option=yes 5389 else $as_nop 5390 xorg_cv_cc_flag_unknown_warning_option=no 5391 fi 5392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5393 fi 5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5395 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5397 CFLAGS="$xorg_testset_save_CFLAGS" 5398 fi 5399 5400 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5403 fi 5404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5406 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5407 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5408 then : 5409 printf %s "(cached) " >&6 5410 else $as_nop 5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5412 /* end confdefs.h. */ 5413 int i; 5414 _ACEOF 5415 if ac_fn_c_try_compile "$LINENO" 5416 then : 5417 xorg_cv_cc_flag_unused_command_line_argument=yes 5418 else $as_nop 5419 xorg_cv_cc_flag_unused_command_line_argument=no 5420 fi 5421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5422 fi 5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5424 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5426 CFLAGS="$xorg_testset_save_CFLAGS" 5427 fi 5428 5429 found="no" 5430 5431 if test $found = "no" ; then 5432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5434 fi 5435 5436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5438 fi 5439 5440 CFLAGS="$CFLAGS -Wmissing-declarations" 5441 5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5443 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5444 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5445 if eval test \${$cacheid+y} 5446 then : 5447 printf %s "(cached) " >&6 5448 else $as_nop 5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5450 /* end confdefs.h. */ 5451 int i; 5452 int 5453 main (void) 5454 { 5455 5456 ; 5457 return 0; 5458 } 5459 _ACEOF 5460 if ac_fn_c_try_link "$LINENO" 5461 then : 5462 eval $cacheid=yes 5463 else $as_nop 5464 eval $cacheid=no 5465 fi 5466 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5467 conftest$ac_exeext conftest.$ac_ext 5468 fi 5469 5470 5471 CFLAGS="$xorg_testset_save_CFLAGS" 5472 5473 eval supported=\$$cacheid 5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5475 printf "%s\n" "$supported" >&6; } 5476 if test "$supported" = "yes" ; then 5477 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5478 found="yes" 5479 fi 5480 fi 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 xorg_testset_save_CFLAGS="$CFLAGS" 5497 5498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5501 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5502 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5503 then : 5504 printf %s "(cached) " >&6 5505 else $as_nop 5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507 /* end confdefs.h. */ 5508 int i; 5509 _ACEOF 5510 if ac_fn_c_try_compile "$LINENO" 5511 then : 5512 xorg_cv_cc_flag_unknown_warning_option=yes 5513 else $as_nop 5514 xorg_cv_cc_flag_unknown_warning_option=no 5515 fi 5516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5517 fi 5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5519 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5521 CFLAGS="$xorg_testset_save_CFLAGS" 5522 fi 5523 5524 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5527 fi 5528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5530 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5531 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5532 then : 5533 printf %s "(cached) " >&6 5534 else $as_nop 5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5536 /* end confdefs.h. */ 5537 int i; 5538 _ACEOF 5539 if ac_fn_c_try_compile "$LINENO" 5540 then : 5541 xorg_cv_cc_flag_unused_command_line_argument=yes 5542 else $as_nop 5543 xorg_cv_cc_flag_unused_command_line_argument=no 5544 fi 5545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5546 fi 5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5548 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5550 CFLAGS="$xorg_testset_save_CFLAGS" 5551 fi 5552 5553 found="no" 5554 5555 if test $found = "no" ; then 5556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5558 fi 5559 5560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5562 fi 5563 5564 CFLAGS="$CFLAGS -Wformat=2" 5565 5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5567 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5568 cacheid=xorg_cv_cc_flag__Wformat_2 5569 if eval test \${$cacheid+y} 5570 then : 5571 printf %s "(cached) " >&6 5572 else $as_nop 5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5574 /* end confdefs.h. */ 5575 int i; 5576 int 5577 main (void) 5578 { 5579 5580 ; 5581 return 0; 5582 } 5583 _ACEOF 5584 if ac_fn_c_try_link "$LINENO" 5585 then : 5586 eval $cacheid=yes 5587 else $as_nop 5588 eval $cacheid=no 5589 fi 5590 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5591 conftest$ac_exeext conftest.$ac_ext 5592 fi 5593 5594 5595 CFLAGS="$xorg_testset_save_CFLAGS" 5596 5597 eval supported=\$$cacheid 5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5599 printf "%s\n" "$supported" >&6; } 5600 if test "$supported" = "yes" ; then 5601 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5602 found="yes" 5603 fi 5604 fi 5605 5606 if test $found = "no" ; then 5607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5609 fi 5610 5611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5613 fi 5614 5615 CFLAGS="$CFLAGS -Wformat" 5616 5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5618 printf %s "checking if $CC supports -Wformat... " >&6; } 5619 cacheid=xorg_cv_cc_flag__Wformat 5620 if eval test \${$cacheid+y} 5621 then : 5622 printf %s "(cached) " >&6 5623 else $as_nop 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625 /* end confdefs.h. */ 5626 int i; 5627 int 5628 main (void) 5629 { 5630 5631 ; 5632 return 0; 5633 } 5634 _ACEOF 5635 if ac_fn_c_try_link "$LINENO" 5636 then : 5637 eval $cacheid=yes 5638 else $as_nop 5639 eval $cacheid=no 5640 fi 5641 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5642 conftest$ac_exeext conftest.$ac_ext 5643 fi 5644 5645 5646 CFLAGS="$xorg_testset_save_CFLAGS" 5647 5648 eval supported=\$$cacheid 5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5650 printf "%s\n" "$supported" >&6; } 5651 if test "$supported" = "yes" ; then 5652 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5653 found="yes" 5654 fi 5655 fi 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 xorg_testset_save_CFLAGS="$CFLAGS" 5674 5675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5678 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5679 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5680 then : 5681 printf %s "(cached) " >&6 5682 else $as_nop 5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5684 /* end confdefs.h. */ 5685 int i; 5686 _ACEOF 5687 if ac_fn_c_try_compile "$LINENO" 5688 then : 5689 xorg_cv_cc_flag_unknown_warning_option=yes 5690 else $as_nop 5691 xorg_cv_cc_flag_unknown_warning_option=no 5692 fi 5693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5694 fi 5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5696 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5698 CFLAGS="$xorg_testset_save_CFLAGS" 5699 fi 5700 5701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5704 fi 5705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5707 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5708 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5709 then : 5710 printf %s "(cached) " >&6 5711 else $as_nop 5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5713 /* end confdefs.h. */ 5714 int i; 5715 _ACEOF 5716 if ac_fn_c_try_compile "$LINENO" 5717 then : 5718 xorg_cv_cc_flag_unused_command_line_argument=yes 5719 else $as_nop 5720 xorg_cv_cc_flag_unused_command_line_argument=no 5721 fi 5722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5723 fi 5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5725 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5727 CFLAGS="$xorg_testset_save_CFLAGS" 5728 fi 5729 5730 found="no" 5731 5732 if test $found = "no" ; then 5733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5735 fi 5736 5737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5739 fi 5740 5741 CFLAGS="$CFLAGS -Wstrict-prototypes" 5742 5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5744 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5745 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5746 if eval test \${$cacheid+y} 5747 then : 5748 printf %s "(cached) " >&6 5749 else $as_nop 5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5751 /* end confdefs.h. */ 5752 int i; 5753 int 5754 main (void) 5755 { 5756 5757 ; 5758 return 0; 5759 } 5760 _ACEOF 5761 if ac_fn_c_try_link "$LINENO" 5762 then : 5763 eval $cacheid=yes 5764 else $as_nop 5765 eval $cacheid=no 5766 fi 5767 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5768 conftest$ac_exeext conftest.$ac_ext 5769 fi 5770 5771 5772 CFLAGS="$xorg_testset_save_CFLAGS" 5773 5774 eval supported=\$$cacheid 5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5776 printf "%s\n" "$supported" >&6; } 5777 if test "$supported" = "yes" ; then 5778 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5779 found="yes" 5780 fi 5781 fi 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 xorg_testset_save_CFLAGS="$CFLAGS" 5798 5799 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5802 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5803 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5804 then : 5805 printf %s "(cached) " >&6 5806 else $as_nop 5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5808 /* end confdefs.h. */ 5809 int i; 5810 _ACEOF 5811 if ac_fn_c_try_compile "$LINENO" 5812 then : 5813 xorg_cv_cc_flag_unknown_warning_option=yes 5814 else $as_nop 5815 xorg_cv_cc_flag_unknown_warning_option=no 5816 fi 5817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5818 fi 5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5820 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5822 CFLAGS="$xorg_testset_save_CFLAGS" 5823 fi 5824 5825 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5828 fi 5829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5831 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5832 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5833 then : 5834 printf %s "(cached) " >&6 5835 else $as_nop 5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837 /* end confdefs.h. */ 5838 int i; 5839 _ACEOF 5840 if ac_fn_c_try_compile "$LINENO" 5841 then : 5842 xorg_cv_cc_flag_unused_command_line_argument=yes 5843 else $as_nop 5844 xorg_cv_cc_flag_unused_command_line_argument=no 5845 fi 5846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5847 fi 5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5849 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5851 CFLAGS="$xorg_testset_save_CFLAGS" 5852 fi 5853 5854 found="no" 5855 5856 if test $found = "no" ; then 5857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5859 fi 5860 5861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5863 fi 5864 5865 CFLAGS="$CFLAGS -Wmissing-prototypes" 5866 5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5868 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5869 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5870 if eval test \${$cacheid+y} 5871 then : 5872 printf %s "(cached) " >&6 5873 else $as_nop 5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5875 /* end confdefs.h. */ 5876 int i; 5877 int 5878 main (void) 5879 { 5880 5881 ; 5882 return 0; 5883 } 5884 _ACEOF 5885 if ac_fn_c_try_link "$LINENO" 5886 then : 5887 eval $cacheid=yes 5888 else $as_nop 5889 eval $cacheid=no 5890 fi 5891 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5892 conftest$ac_exeext conftest.$ac_ext 5893 fi 5894 5895 5896 CFLAGS="$xorg_testset_save_CFLAGS" 5897 5898 eval supported=\$$cacheid 5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5900 printf "%s\n" "$supported" >&6; } 5901 if test "$supported" = "yes" ; then 5902 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5903 found="yes" 5904 fi 5905 fi 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 xorg_testset_save_CFLAGS="$CFLAGS" 5922 5923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5926 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5927 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5928 then : 5929 printf %s "(cached) " >&6 5930 else $as_nop 5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5932 /* end confdefs.h. */ 5933 int i; 5934 _ACEOF 5935 if ac_fn_c_try_compile "$LINENO" 5936 then : 5937 xorg_cv_cc_flag_unknown_warning_option=yes 5938 else $as_nop 5939 xorg_cv_cc_flag_unknown_warning_option=no 5940 fi 5941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5942 fi 5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5944 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5946 CFLAGS="$xorg_testset_save_CFLAGS" 5947 fi 5948 5949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5952 fi 5953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5955 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5956 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5957 then : 5958 printf %s "(cached) " >&6 5959 else $as_nop 5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5961 /* end confdefs.h. */ 5962 int i; 5963 _ACEOF 5964 if ac_fn_c_try_compile "$LINENO" 5965 then : 5966 xorg_cv_cc_flag_unused_command_line_argument=yes 5967 else $as_nop 5968 xorg_cv_cc_flag_unused_command_line_argument=no 5969 fi 5970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5971 fi 5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5973 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5975 CFLAGS="$xorg_testset_save_CFLAGS" 5976 fi 5977 5978 found="no" 5979 5980 if test $found = "no" ; then 5981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5983 fi 5984 5985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5987 fi 5988 5989 CFLAGS="$CFLAGS -Wnested-externs" 5990 5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5992 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5993 cacheid=xorg_cv_cc_flag__Wnested_externs 5994 if eval test \${$cacheid+y} 5995 then : 5996 printf %s "(cached) " >&6 5997 else $as_nop 5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5999 /* end confdefs.h. */ 6000 int i; 6001 int 6002 main (void) 6003 { 6004 6005 ; 6006 return 0; 6007 } 6008 _ACEOF 6009 if ac_fn_c_try_link "$LINENO" 6010 then : 6011 eval $cacheid=yes 6012 else $as_nop 6013 eval $cacheid=no 6014 fi 6015 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6016 conftest$ac_exeext conftest.$ac_ext 6017 fi 6018 6019 6020 CFLAGS="$xorg_testset_save_CFLAGS" 6021 6022 eval supported=\$$cacheid 6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6024 printf "%s\n" "$supported" >&6; } 6025 if test "$supported" = "yes" ; then 6026 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6027 found="yes" 6028 fi 6029 fi 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 xorg_testset_save_CFLAGS="$CFLAGS" 6046 6047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6050 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6051 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6052 then : 6053 printf %s "(cached) " >&6 6054 else $as_nop 6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6056 /* end confdefs.h. */ 6057 int i; 6058 _ACEOF 6059 if ac_fn_c_try_compile "$LINENO" 6060 then : 6061 xorg_cv_cc_flag_unknown_warning_option=yes 6062 else $as_nop 6063 xorg_cv_cc_flag_unknown_warning_option=no 6064 fi 6065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6066 fi 6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6068 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6070 CFLAGS="$xorg_testset_save_CFLAGS" 6071 fi 6072 6073 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6076 fi 6077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6079 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6080 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6081 then : 6082 printf %s "(cached) " >&6 6083 else $as_nop 6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6085 /* end confdefs.h. */ 6086 int i; 6087 _ACEOF 6088 if ac_fn_c_try_compile "$LINENO" 6089 then : 6090 xorg_cv_cc_flag_unused_command_line_argument=yes 6091 else $as_nop 6092 xorg_cv_cc_flag_unused_command_line_argument=no 6093 fi 6094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6095 fi 6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6097 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6099 CFLAGS="$xorg_testset_save_CFLAGS" 6100 fi 6101 6102 found="no" 6103 6104 if test $found = "no" ; then 6105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6107 fi 6108 6109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6111 fi 6112 6113 CFLAGS="$CFLAGS -Wbad-function-cast" 6114 6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6116 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6117 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6118 if eval test \${$cacheid+y} 6119 then : 6120 printf %s "(cached) " >&6 6121 else $as_nop 6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6123 /* end confdefs.h. */ 6124 int i; 6125 int 6126 main (void) 6127 { 6128 6129 ; 6130 return 0; 6131 } 6132 _ACEOF 6133 if ac_fn_c_try_link "$LINENO" 6134 then : 6135 eval $cacheid=yes 6136 else $as_nop 6137 eval $cacheid=no 6138 fi 6139 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6140 conftest$ac_exeext conftest.$ac_ext 6141 fi 6142 6143 6144 CFLAGS="$xorg_testset_save_CFLAGS" 6145 6146 eval supported=\$$cacheid 6147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6148 printf "%s\n" "$supported" >&6; } 6149 if test "$supported" = "yes" ; then 6150 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6151 found="yes" 6152 fi 6153 fi 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 xorg_testset_save_CFLAGS="$CFLAGS" 6170 6171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6174 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6175 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6176 then : 6177 printf %s "(cached) " >&6 6178 else $as_nop 6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6180 /* end confdefs.h. */ 6181 int i; 6182 _ACEOF 6183 if ac_fn_c_try_compile "$LINENO" 6184 then : 6185 xorg_cv_cc_flag_unknown_warning_option=yes 6186 else $as_nop 6187 xorg_cv_cc_flag_unknown_warning_option=no 6188 fi 6189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6190 fi 6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6192 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6194 CFLAGS="$xorg_testset_save_CFLAGS" 6195 fi 6196 6197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6200 fi 6201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6203 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6204 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6205 then : 6206 printf %s "(cached) " >&6 6207 else $as_nop 6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6209 /* end confdefs.h. */ 6210 int i; 6211 _ACEOF 6212 if ac_fn_c_try_compile "$LINENO" 6213 then : 6214 xorg_cv_cc_flag_unused_command_line_argument=yes 6215 else $as_nop 6216 xorg_cv_cc_flag_unused_command_line_argument=no 6217 fi 6218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6219 fi 6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6221 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6223 CFLAGS="$xorg_testset_save_CFLAGS" 6224 fi 6225 6226 found="no" 6227 6228 if test $found = "no" ; then 6229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6231 fi 6232 6233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6235 fi 6236 6237 CFLAGS="$CFLAGS -Wold-style-definition" 6238 6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6240 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6241 cacheid=xorg_cv_cc_flag__Wold_style_definition 6242 if eval test \${$cacheid+y} 6243 then : 6244 printf %s "(cached) " >&6 6245 else $as_nop 6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6247 /* end confdefs.h. */ 6248 int i; 6249 int 6250 main (void) 6251 { 6252 6253 ; 6254 return 0; 6255 } 6256 _ACEOF 6257 if ac_fn_c_try_link "$LINENO" 6258 then : 6259 eval $cacheid=yes 6260 else $as_nop 6261 eval $cacheid=no 6262 fi 6263 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6264 conftest$ac_exeext conftest.$ac_ext 6265 fi 6266 6267 6268 CFLAGS="$xorg_testset_save_CFLAGS" 6269 6270 eval supported=\$$cacheid 6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6272 printf "%s\n" "$supported" >&6; } 6273 if test "$supported" = "yes" ; then 6274 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6275 found="yes" 6276 fi 6277 fi 6278 6279 if test $found = "no" ; then 6280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6282 fi 6283 6284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6286 fi 6287 6288 CFLAGS="$CFLAGS -fd" 6289 6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6291 printf %s "checking if $CC supports -fd... " >&6; } 6292 cacheid=xorg_cv_cc_flag__fd 6293 if eval test \${$cacheid+y} 6294 then : 6295 printf %s "(cached) " >&6 6296 else $as_nop 6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6298 /* end confdefs.h. */ 6299 int i; 6300 int 6301 main (void) 6302 { 6303 6304 ; 6305 return 0; 6306 } 6307 _ACEOF 6308 if ac_fn_c_try_link "$LINENO" 6309 then : 6310 eval $cacheid=yes 6311 else $as_nop 6312 eval $cacheid=no 6313 fi 6314 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6315 conftest$ac_exeext conftest.$ac_ext 6316 fi 6317 6318 6319 CFLAGS="$xorg_testset_save_CFLAGS" 6320 6321 eval supported=\$$cacheid 6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6323 printf "%s\n" "$supported" >&6; } 6324 if test "$supported" = "yes" ; then 6325 BASE_CFLAGS="$BASE_CFLAGS -fd" 6326 found="yes" 6327 fi 6328 fi 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 xorg_testset_save_CFLAGS="$CFLAGS" 6345 6346 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6349 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6350 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6351 then : 6352 printf %s "(cached) " >&6 6353 else $as_nop 6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6355 /* end confdefs.h. */ 6356 int i; 6357 _ACEOF 6358 if ac_fn_c_try_compile "$LINENO" 6359 then : 6360 xorg_cv_cc_flag_unknown_warning_option=yes 6361 else $as_nop 6362 xorg_cv_cc_flag_unknown_warning_option=no 6363 fi 6364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6365 fi 6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6367 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6369 CFLAGS="$xorg_testset_save_CFLAGS" 6370 fi 6371 6372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6375 fi 6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6378 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6379 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6380 then : 6381 printf %s "(cached) " >&6 6382 else $as_nop 6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6384 /* end confdefs.h. */ 6385 int i; 6386 _ACEOF 6387 if ac_fn_c_try_compile "$LINENO" 6388 then : 6389 xorg_cv_cc_flag_unused_command_line_argument=yes 6390 else $as_nop 6391 xorg_cv_cc_flag_unused_command_line_argument=no 6392 fi 6393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6394 fi 6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6396 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6398 CFLAGS="$xorg_testset_save_CFLAGS" 6399 fi 6400 6401 found="no" 6402 6403 if test $found = "no" ; then 6404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6406 fi 6407 6408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6410 fi 6411 6412 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6413 6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6415 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6416 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6417 if eval test \${$cacheid+y} 6418 then : 6419 printf %s "(cached) " >&6 6420 else $as_nop 6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6422 /* end confdefs.h. */ 6423 int i; 6424 int 6425 main (void) 6426 { 6427 6428 ; 6429 return 0; 6430 } 6431 _ACEOF 6432 if ac_fn_c_try_link "$LINENO" 6433 then : 6434 eval $cacheid=yes 6435 else $as_nop 6436 eval $cacheid=no 6437 fi 6438 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6439 conftest$ac_exeext conftest.$ac_ext 6440 fi 6441 6442 6443 CFLAGS="$xorg_testset_save_CFLAGS" 6444 6445 eval supported=\$$cacheid 6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6447 printf "%s\n" "$supported" >&6; } 6448 if test "$supported" = "yes" ; then 6449 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6450 found="yes" 6451 fi 6452 fi 6453 6454 6455 6456 6457 6458 # This chunk adds additional warnings that could catch undesired effects. 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 xorg_testset_save_CFLAGS="$CFLAGS" 6473 6474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6477 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6478 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6479 then : 6480 printf %s "(cached) " >&6 6481 else $as_nop 6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6483 /* end confdefs.h. */ 6484 int i; 6485 _ACEOF 6486 if ac_fn_c_try_compile "$LINENO" 6487 then : 6488 xorg_cv_cc_flag_unknown_warning_option=yes 6489 else $as_nop 6490 xorg_cv_cc_flag_unknown_warning_option=no 6491 fi 6492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6493 fi 6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6495 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6497 CFLAGS="$xorg_testset_save_CFLAGS" 6498 fi 6499 6500 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6503 fi 6504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6506 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6507 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6508 then : 6509 printf %s "(cached) " >&6 6510 else $as_nop 6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6512 /* end confdefs.h. */ 6513 int i; 6514 _ACEOF 6515 if ac_fn_c_try_compile "$LINENO" 6516 then : 6517 xorg_cv_cc_flag_unused_command_line_argument=yes 6518 else $as_nop 6519 xorg_cv_cc_flag_unused_command_line_argument=no 6520 fi 6521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6522 fi 6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6524 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6525 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6526 CFLAGS="$xorg_testset_save_CFLAGS" 6527 fi 6528 6529 found="no" 6530 6531 if test $found = "no" ; then 6532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6534 fi 6535 6536 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6538 fi 6539 6540 CFLAGS="$CFLAGS -Wunused" 6541 6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6543 printf %s "checking if $CC supports -Wunused... " >&6; } 6544 cacheid=xorg_cv_cc_flag__Wunused 6545 if eval test \${$cacheid+y} 6546 then : 6547 printf %s "(cached) " >&6 6548 else $as_nop 6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6550 /* end confdefs.h. */ 6551 int i; 6552 int 6553 main (void) 6554 { 6555 6556 ; 6557 return 0; 6558 } 6559 _ACEOF 6560 if ac_fn_c_try_link "$LINENO" 6561 then : 6562 eval $cacheid=yes 6563 else $as_nop 6564 eval $cacheid=no 6565 fi 6566 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6567 conftest$ac_exeext conftest.$ac_ext 6568 fi 6569 6570 6571 CFLAGS="$xorg_testset_save_CFLAGS" 6572 6573 eval supported=\$$cacheid 6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6575 printf "%s\n" "$supported" >&6; } 6576 if test "$supported" = "yes" ; then 6577 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6578 found="yes" 6579 fi 6580 fi 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 xorg_testset_save_CFLAGS="$CFLAGS" 6597 6598 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6601 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6602 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6603 then : 6604 printf %s "(cached) " >&6 6605 else $as_nop 6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6607 /* end confdefs.h. */ 6608 int i; 6609 _ACEOF 6610 if ac_fn_c_try_compile "$LINENO" 6611 then : 6612 xorg_cv_cc_flag_unknown_warning_option=yes 6613 else $as_nop 6614 xorg_cv_cc_flag_unknown_warning_option=no 6615 fi 6616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6617 fi 6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6619 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6621 CFLAGS="$xorg_testset_save_CFLAGS" 6622 fi 6623 6624 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6627 fi 6628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6630 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6631 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6632 then : 6633 printf %s "(cached) " >&6 6634 else $as_nop 6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6636 /* end confdefs.h. */ 6637 int i; 6638 _ACEOF 6639 if ac_fn_c_try_compile "$LINENO" 6640 then : 6641 xorg_cv_cc_flag_unused_command_line_argument=yes 6642 else $as_nop 6643 xorg_cv_cc_flag_unused_command_line_argument=no 6644 fi 6645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6646 fi 6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6648 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6650 CFLAGS="$xorg_testset_save_CFLAGS" 6651 fi 6652 6653 found="no" 6654 6655 if test $found = "no" ; then 6656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6658 fi 6659 6660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6662 fi 6663 6664 CFLAGS="$CFLAGS -Wuninitialized" 6665 6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6667 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6668 cacheid=xorg_cv_cc_flag__Wuninitialized 6669 if eval test \${$cacheid+y} 6670 then : 6671 printf %s "(cached) " >&6 6672 else $as_nop 6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6674 /* end confdefs.h. */ 6675 int i; 6676 int 6677 main (void) 6678 { 6679 6680 ; 6681 return 0; 6682 } 6683 _ACEOF 6684 if ac_fn_c_try_link "$LINENO" 6685 then : 6686 eval $cacheid=yes 6687 else $as_nop 6688 eval $cacheid=no 6689 fi 6690 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6691 conftest$ac_exeext conftest.$ac_ext 6692 fi 6693 6694 6695 CFLAGS="$xorg_testset_save_CFLAGS" 6696 6697 eval supported=\$$cacheid 6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6699 printf "%s\n" "$supported" >&6; } 6700 if test "$supported" = "yes" ; then 6701 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6702 found="yes" 6703 fi 6704 fi 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 xorg_testset_save_CFLAGS="$CFLAGS" 6721 6722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6725 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6726 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6727 then : 6728 printf %s "(cached) " >&6 6729 else $as_nop 6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6731 /* end confdefs.h. */ 6732 int i; 6733 _ACEOF 6734 if ac_fn_c_try_compile "$LINENO" 6735 then : 6736 xorg_cv_cc_flag_unknown_warning_option=yes 6737 else $as_nop 6738 xorg_cv_cc_flag_unknown_warning_option=no 6739 fi 6740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6741 fi 6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6743 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6745 CFLAGS="$xorg_testset_save_CFLAGS" 6746 fi 6747 6748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6751 fi 6752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6754 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6755 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6756 then : 6757 printf %s "(cached) " >&6 6758 else $as_nop 6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760 /* end confdefs.h. */ 6761 int i; 6762 _ACEOF 6763 if ac_fn_c_try_compile "$LINENO" 6764 then : 6765 xorg_cv_cc_flag_unused_command_line_argument=yes 6766 else $as_nop 6767 xorg_cv_cc_flag_unused_command_line_argument=no 6768 fi 6769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6770 fi 6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6772 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6774 CFLAGS="$xorg_testset_save_CFLAGS" 6775 fi 6776 6777 found="no" 6778 6779 if test $found = "no" ; then 6780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6782 fi 6783 6784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6786 fi 6787 6788 CFLAGS="$CFLAGS -Wshadow" 6789 6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6791 printf %s "checking if $CC supports -Wshadow... " >&6; } 6792 cacheid=xorg_cv_cc_flag__Wshadow 6793 if eval test \${$cacheid+y} 6794 then : 6795 printf %s "(cached) " >&6 6796 else $as_nop 6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6798 /* end confdefs.h. */ 6799 int i; 6800 int 6801 main (void) 6802 { 6803 6804 ; 6805 return 0; 6806 } 6807 _ACEOF 6808 if ac_fn_c_try_link "$LINENO" 6809 then : 6810 eval $cacheid=yes 6811 else $as_nop 6812 eval $cacheid=no 6813 fi 6814 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6815 conftest$ac_exeext conftest.$ac_ext 6816 fi 6817 6818 6819 CFLAGS="$xorg_testset_save_CFLAGS" 6820 6821 eval supported=\$$cacheid 6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6823 printf "%s\n" "$supported" >&6; } 6824 if test "$supported" = "yes" ; then 6825 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6826 found="yes" 6827 fi 6828 fi 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 xorg_testset_save_CFLAGS="$CFLAGS" 6845 6846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6849 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6850 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6851 then : 6852 printf %s "(cached) " >&6 6853 else $as_nop 6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6855 /* end confdefs.h. */ 6856 int i; 6857 _ACEOF 6858 if ac_fn_c_try_compile "$LINENO" 6859 then : 6860 xorg_cv_cc_flag_unknown_warning_option=yes 6861 else $as_nop 6862 xorg_cv_cc_flag_unknown_warning_option=no 6863 fi 6864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6865 fi 6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6867 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6869 CFLAGS="$xorg_testset_save_CFLAGS" 6870 fi 6871 6872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6875 fi 6876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6878 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6879 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6880 then : 6881 printf %s "(cached) " >&6 6882 else $as_nop 6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6884 /* end confdefs.h. */ 6885 int i; 6886 _ACEOF 6887 if ac_fn_c_try_compile "$LINENO" 6888 then : 6889 xorg_cv_cc_flag_unused_command_line_argument=yes 6890 else $as_nop 6891 xorg_cv_cc_flag_unused_command_line_argument=no 6892 fi 6893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6894 fi 6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6896 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6898 CFLAGS="$xorg_testset_save_CFLAGS" 6899 fi 6900 6901 found="no" 6902 6903 if test $found = "no" ; then 6904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6906 fi 6907 6908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6910 fi 6911 6912 CFLAGS="$CFLAGS -Wmissing-noreturn" 6913 6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6915 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6916 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6917 if eval test \${$cacheid+y} 6918 then : 6919 printf %s "(cached) " >&6 6920 else $as_nop 6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6922 /* end confdefs.h. */ 6923 int i; 6924 int 6925 main (void) 6926 { 6927 6928 ; 6929 return 0; 6930 } 6931 _ACEOF 6932 if ac_fn_c_try_link "$LINENO" 6933 then : 6934 eval $cacheid=yes 6935 else $as_nop 6936 eval $cacheid=no 6937 fi 6938 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6939 conftest$ac_exeext conftest.$ac_ext 6940 fi 6941 6942 6943 CFLAGS="$xorg_testset_save_CFLAGS" 6944 6945 eval supported=\$$cacheid 6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6947 printf "%s\n" "$supported" >&6; } 6948 if test "$supported" = "yes" ; then 6949 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6950 found="yes" 6951 fi 6952 fi 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 xorg_testset_save_CFLAGS="$CFLAGS" 6969 6970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6973 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6974 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6975 then : 6976 printf %s "(cached) " >&6 6977 else $as_nop 6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6979 /* end confdefs.h. */ 6980 int i; 6981 _ACEOF 6982 if ac_fn_c_try_compile "$LINENO" 6983 then : 6984 xorg_cv_cc_flag_unknown_warning_option=yes 6985 else $as_nop 6986 xorg_cv_cc_flag_unknown_warning_option=no 6987 fi 6988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6989 fi 6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6991 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6993 CFLAGS="$xorg_testset_save_CFLAGS" 6994 fi 6995 6996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6999 fi 7000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7002 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7003 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7004 then : 7005 printf %s "(cached) " >&6 7006 else $as_nop 7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7008 /* end confdefs.h. */ 7009 int i; 7010 _ACEOF 7011 if ac_fn_c_try_compile "$LINENO" 7012 then : 7013 xorg_cv_cc_flag_unused_command_line_argument=yes 7014 else $as_nop 7015 xorg_cv_cc_flag_unused_command_line_argument=no 7016 fi 7017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7018 fi 7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7020 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7022 CFLAGS="$xorg_testset_save_CFLAGS" 7023 fi 7024 7025 found="no" 7026 7027 if test $found = "no" ; then 7028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7030 fi 7031 7032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7034 fi 7035 7036 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7037 7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7039 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7040 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7041 if eval test \${$cacheid+y} 7042 then : 7043 printf %s "(cached) " >&6 7044 else $as_nop 7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7046 /* end confdefs.h. */ 7047 int i; 7048 int 7049 main (void) 7050 { 7051 7052 ; 7053 return 0; 7054 } 7055 _ACEOF 7056 if ac_fn_c_try_link "$LINENO" 7057 then : 7058 eval $cacheid=yes 7059 else $as_nop 7060 eval $cacheid=no 7061 fi 7062 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7063 conftest$ac_exeext conftest.$ac_ext 7064 fi 7065 7066 7067 CFLAGS="$xorg_testset_save_CFLAGS" 7068 7069 eval supported=\$$cacheid 7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7071 printf "%s\n" "$supported" >&6; } 7072 if test "$supported" = "yes" ; then 7073 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7074 found="yes" 7075 fi 7076 fi 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 xorg_testset_save_CFLAGS="$CFLAGS" 7093 7094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7097 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7098 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7099 then : 7100 printf %s "(cached) " >&6 7101 else $as_nop 7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7103 /* end confdefs.h. */ 7104 int i; 7105 _ACEOF 7106 if ac_fn_c_try_compile "$LINENO" 7107 then : 7108 xorg_cv_cc_flag_unknown_warning_option=yes 7109 else $as_nop 7110 xorg_cv_cc_flag_unknown_warning_option=no 7111 fi 7112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7113 fi 7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7115 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7117 CFLAGS="$xorg_testset_save_CFLAGS" 7118 fi 7119 7120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7123 fi 7124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7126 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7127 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7128 then : 7129 printf %s "(cached) " >&6 7130 else $as_nop 7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7132 /* end confdefs.h. */ 7133 int i; 7134 _ACEOF 7135 if ac_fn_c_try_compile "$LINENO" 7136 then : 7137 xorg_cv_cc_flag_unused_command_line_argument=yes 7138 else $as_nop 7139 xorg_cv_cc_flag_unused_command_line_argument=no 7140 fi 7141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7142 fi 7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7144 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7146 CFLAGS="$xorg_testset_save_CFLAGS" 7147 fi 7148 7149 found="no" 7150 7151 if test $found = "no" ; then 7152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7154 fi 7155 7156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7158 fi 7159 7160 CFLAGS="$CFLAGS -Wredundant-decls" 7161 7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7163 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7164 cacheid=xorg_cv_cc_flag__Wredundant_decls 7165 if eval test \${$cacheid+y} 7166 then : 7167 printf %s "(cached) " >&6 7168 else $as_nop 7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7170 /* end confdefs.h. */ 7171 int i; 7172 int 7173 main (void) 7174 { 7175 7176 ; 7177 return 0; 7178 } 7179 _ACEOF 7180 if ac_fn_c_try_link "$LINENO" 7181 then : 7182 eval $cacheid=yes 7183 else $as_nop 7184 eval $cacheid=no 7185 fi 7186 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7187 conftest$ac_exeext conftest.$ac_ext 7188 fi 7189 7190 7191 CFLAGS="$xorg_testset_save_CFLAGS" 7192 7193 eval supported=\$$cacheid 7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7195 printf "%s\n" "$supported" >&6; } 7196 if test "$supported" = "yes" ; then 7197 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7198 found="yes" 7199 fi 7200 fi 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 xorg_testset_save_CFLAGS="$CFLAGS" 7217 7218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7221 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7222 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7223 then : 7224 printf %s "(cached) " >&6 7225 else $as_nop 7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7227 /* end confdefs.h. */ 7228 int i; 7229 _ACEOF 7230 if ac_fn_c_try_compile "$LINENO" 7231 then : 7232 xorg_cv_cc_flag_unknown_warning_option=yes 7233 else $as_nop 7234 xorg_cv_cc_flag_unknown_warning_option=no 7235 fi 7236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7237 fi 7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7239 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7241 CFLAGS="$xorg_testset_save_CFLAGS" 7242 fi 7243 7244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7247 fi 7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7250 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7251 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7252 then : 7253 printf %s "(cached) " >&6 7254 else $as_nop 7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7256 /* end confdefs.h. */ 7257 int i; 7258 _ACEOF 7259 if ac_fn_c_try_compile "$LINENO" 7260 then : 7261 xorg_cv_cc_flag_unused_command_line_argument=yes 7262 else $as_nop 7263 xorg_cv_cc_flag_unused_command_line_argument=no 7264 fi 7265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7266 fi 7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7268 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7270 CFLAGS="$xorg_testset_save_CFLAGS" 7271 fi 7272 7273 found="no" 7274 7275 if test $found = "no" ; then 7276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7278 fi 7279 7280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7282 fi 7283 7284 CFLAGS="$CFLAGS -Wlogical-op" 7285 7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7287 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7288 cacheid=xorg_cv_cc_flag__Wlogical_op 7289 if eval test \${$cacheid+y} 7290 then : 7291 printf %s "(cached) " >&6 7292 else $as_nop 7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7294 /* end confdefs.h. */ 7295 int i; 7296 int 7297 main (void) 7298 { 7299 7300 ; 7301 return 0; 7302 } 7303 _ACEOF 7304 if ac_fn_c_try_link "$LINENO" 7305 then : 7306 eval $cacheid=yes 7307 else $as_nop 7308 eval $cacheid=no 7309 fi 7310 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7311 conftest$ac_exeext conftest.$ac_ext 7312 fi 7313 7314 7315 CFLAGS="$xorg_testset_save_CFLAGS" 7316 7317 eval supported=\$$cacheid 7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7319 printf "%s\n" "$supported" >&6; } 7320 if test "$supported" = "yes" ; then 7321 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7322 found="yes" 7323 fi 7324 fi 7325 7326 7327 7328 # These are currently disabled because they are noisy. They will be enabled 7329 # in the future once the codebase is sufficiently modernized to silence 7330 # them. For now, I don't want them to drown out the other warnings. 7331 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7332 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7333 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7334 7335 # Turn some warnings into errors, so we don't accidentally get successful builds 7336 # when there are problems that should be fixed. 7337 7338 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 xorg_testset_save_CFLAGS="$CFLAGS" 7353 7354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7357 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7358 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7359 then : 7360 printf %s "(cached) " >&6 7361 else $as_nop 7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7363 /* end confdefs.h. */ 7364 int i; 7365 _ACEOF 7366 if ac_fn_c_try_compile "$LINENO" 7367 then : 7368 xorg_cv_cc_flag_unknown_warning_option=yes 7369 else $as_nop 7370 xorg_cv_cc_flag_unknown_warning_option=no 7371 fi 7372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7373 fi 7374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7375 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7377 CFLAGS="$xorg_testset_save_CFLAGS" 7378 fi 7379 7380 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7383 fi 7384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7386 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7387 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7388 then : 7389 printf %s "(cached) " >&6 7390 else $as_nop 7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7392 /* end confdefs.h. */ 7393 int i; 7394 _ACEOF 7395 if ac_fn_c_try_compile "$LINENO" 7396 then : 7397 xorg_cv_cc_flag_unused_command_line_argument=yes 7398 else $as_nop 7399 xorg_cv_cc_flag_unused_command_line_argument=no 7400 fi 7401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7402 fi 7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7404 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7406 CFLAGS="$xorg_testset_save_CFLAGS" 7407 fi 7408 7409 found="no" 7410 7411 if test $found = "no" ; then 7412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7414 fi 7415 7416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7418 fi 7419 7420 CFLAGS="$CFLAGS -Werror=implicit" 7421 7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7423 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7424 cacheid=xorg_cv_cc_flag__Werror_implicit 7425 if eval test \${$cacheid+y} 7426 then : 7427 printf %s "(cached) " >&6 7428 else $as_nop 7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7430 /* end confdefs.h. */ 7431 int i; 7432 int 7433 main (void) 7434 { 7435 7436 ; 7437 return 0; 7438 } 7439 _ACEOF 7440 if ac_fn_c_try_link "$LINENO" 7441 then : 7442 eval $cacheid=yes 7443 else $as_nop 7444 eval $cacheid=no 7445 fi 7446 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7447 conftest$ac_exeext conftest.$ac_ext 7448 fi 7449 7450 7451 CFLAGS="$xorg_testset_save_CFLAGS" 7452 7453 eval supported=\$$cacheid 7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7455 printf "%s\n" "$supported" >&6; } 7456 if test "$supported" = "yes" ; then 7457 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7458 found="yes" 7459 fi 7460 fi 7461 7462 if test $found = "no" ; then 7463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7465 fi 7466 7467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7469 fi 7470 7471 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7472 7473 { 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 7474 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7475 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7476 if eval test \${$cacheid+y} 7477 then : 7478 printf %s "(cached) " >&6 7479 else $as_nop 7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7481 /* end confdefs.h. */ 7482 int i; 7483 int 7484 main (void) 7485 { 7486 7487 ; 7488 return 0; 7489 } 7490 _ACEOF 7491 if ac_fn_c_try_link "$LINENO" 7492 then : 7493 eval $cacheid=yes 7494 else $as_nop 7495 eval $cacheid=no 7496 fi 7497 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7498 conftest$ac_exeext conftest.$ac_ext 7499 fi 7500 7501 7502 CFLAGS="$xorg_testset_save_CFLAGS" 7503 7504 eval supported=\$$cacheid 7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7506 printf "%s\n" "$supported" >&6; } 7507 if test "$supported" = "yes" ; then 7508 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7509 found="yes" 7510 fi 7511 fi 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 xorg_testset_save_CFLAGS="$CFLAGS" 7528 7529 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7532 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7533 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7534 then : 7535 printf %s "(cached) " >&6 7536 else $as_nop 7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7538 /* end confdefs.h. */ 7539 int i; 7540 _ACEOF 7541 if ac_fn_c_try_compile "$LINENO" 7542 then : 7543 xorg_cv_cc_flag_unknown_warning_option=yes 7544 else $as_nop 7545 xorg_cv_cc_flag_unknown_warning_option=no 7546 fi 7547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7548 fi 7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7550 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7552 CFLAGS="$xorg_testset_save_CFLAGS" 7553 fi 7554 7555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7558 fi 7559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7561 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7562 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7563 then : 7564 printf %s "(cached) " >&6 7565 else $as_nop 7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7567 /* end confdefs.h. */ 7568 int i; 7569 _ACEOF 7570 if ac_fn_c_try_compile "$LINENO" 7571 then : 7572 xorg_cv_cc_flag_unused_command_line_argument=yes 7573 else $as_nop 7574 xorg_cv_cc_flag_unused_command_line_argument=no 7575 fi 7576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7577 fi 7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7579 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7581 CFLAGS="$xorg_testset_save_CFLAGS" 7582 fi 7583 7584 found="no" 7585 7586 if test $found = "no" ; then 7587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7589 fi 7590 7591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7593 fi 7594 7595 CFLAGS="$CFLAGS -Werror=nonnull" 7596 7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7598 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7599 cacheid=xorg_cv_cc_flag__Werror_nonnull 7600 if eval test \${$cacheid+y} 7601 then : 7602 printf %s "(cached) " >&6 7603 else $as_nop 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605 /* end confdefs.h. */ 7606 int i; 7607 int 7608 main (void) 7609 { 7610 7611 ; 7612 return 0; 7613 } 7614 _ACEOF 7615 if ac_fn_c_try_link "$LINENO" 7616 then : 7617 eval $cacheid=yes 7618 else $as_nop 7619 eval $cacheid=no 7620 fi 7621 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7622 conftest$ac_exeext conftest.$ac_ext 7623 fi 7624 7625 7626 CFLAGS="$xorg_testset_save_CFLAGS" 7627 7628 eval supported=\$$cacheid 7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7630 printf "%s\n" "$supported" >&6; } 7631 if test "$supported" = "yes" ; then 7632 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7633 found="yes" 7634 fi 7635 fi 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 xorg_testset_save_CFLAGS="$CFLAGS" 7652 7653 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7656 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7657 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7658 then : 7659 printf %s "(cached) " >&6 7660 else $as_nop 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662 /* end confdefs.h. */ 7663 int i; 7664 _ACEOF 7665 if ac_fn_c_try_compile "$LINENO" 7666 then : 7667 xorg_cv_cc_flag_unknown_warning_option=yes 7668 else $as_nop 7669 xorg_cv_cc_flag_unknown_warning_option=no 7670 fi 7671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7672 fi 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7674 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7676 CFLAGS="$xorg_testset_save_CFLAGS" 7677 fi 7678 7679 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7682 fi 7683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7685 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7686 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7687 then : 7688 printf %s "(cached) " >&6 7689 else $as_nop 7690 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_unused_command_line_argument=yes 7697 else $as_nop 7698 xorg_cv_cc_flag_unused_command_line_argument=no 7699 fi 7700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7701 fi 7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7703 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7705 CFLAGS="$xorg_testset_save_CFLAGS" 7706 fi 7707 7708 found="no" 7709 7710 if test $found = "no" ; then 7711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7713 fi 7714 7715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7717 fi 7718 7719 CFLAGS="$CFLAGS -Werror=init-self" 7720 7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7722 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7723 cacheid=xorg_cv_cc_flag__Werror_init_self 7724 if eval test \${$cacheid+y} 7725 then : 7726 printf %s "(cached) " >&6 7727 else $as_nop 7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7729 /* end confdefs.h. */ 7730 int i; 7731 int 7732 main (void) 7733 { 7734 7735 ; 7736 return 0; 7737 } 7738 _ACEOF 7739 if ac_fn_c_try_link "$LINENO" 7740 then : 7741 eval $cacheid=yes 7742 else $as_nop 7743 eval $cacheid=no 7744 fi 7745 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7746 conftest$ac_exeext conftest.$ac_ext 7747 fi 7748 7749 7750 CFLAGS="$xorg_testset_save_CFLAGS" 7751 7752 eval supported=\$$cacheid 7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7754 printf "%s\n" "$supported" >&6; } 7755 if test "$supported" = "yes" ; then 7756 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7757 found="yes" 7758 fi 7759 fi 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 xorg_testset_save_CFLAGS="$CFLAGS" 7776 7777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7780 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7781 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7782 then : 7783 printf %s "(cached) " >&6 7784 else $as_nop 7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7786 /* end confdefs.h. */ 7787 int i; 7788 _ACEOF 7789 if ac_fn_c_try_compile "$LINENO" 7790 then : 7791 xorg_cv_cc_flag_unknown_warning_option=yes 7792 else $as_nop 7793 xorg_cv_cc_flag_unknown_warning_option=no 7794 fi 7795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7796 fi 7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7798 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7800 CFLAGS="$xorg_testset_save_CFLAGS" 7801 fi 7802 7803 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7806 fi 7807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7809 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7810 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7811 then : 7812 printf %s "(cached) " >&6 7813 else $as_nop 7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7815 /* end confdefs.h. */ 7816 int i; 7817 _ACEOF 7818 if ac_fn_c_try_compile "$LINENO" 7819 then : 7820 xorg_cv_cc_flag_unused_command_line_argument=yes 7821 else $as_nop 7822 xorg_cv_cc_flag_unused_command_line_argument=no 7823 fi 7824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7825 fi 7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7827 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7829 CFLAGS="$xorg_testset_save_CFLAGS" 7830 fi 7831 7832 found="no" 7833 7834 if test $found = "no" ; then 7835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7837 fi 7838 7839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7841 fi 7842 7843 CFLAGS="$CFLAGS -Werror=main" 7844 7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7846 printf %s "checking if $CC supports -Werror=main... " >&6; } 7847 cacheid=xorg_cv_cc_flag__Werror_main 7848 if eval test \${$cacheid+y} 7849 then : 7850 printf %s "(cached) " >&6 7851 else $as_nop 7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7853 /* end confdefs.h. */ 7854 int i; 7855 int 7856 main (void) 7857 { 7858 7859 ; 7860 return 0; 7861 } 7862 _ACEOF 7863 if ac_fn_c_try_link "$LINENO" 7864 then : 7865 eval $cacheid=yes 7866 else $as_nop 7867 eval $cacheid=no 7868 fi 7869 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7870 conftest$ac_exeext conftest.$ac_ext 7871 fi 7872 7873 7874 CFLAGS="$xorg_testset_save_CFLAGS" 7875 7876 eval supported=\$$cacheid 7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7878 printf "%s\n" "$supported" >&6; } 7879 if test "$supported" = "yes" ; then 7880 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7881 found="yes" 7882 fi 7883 fi 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 xorg_testset_save_CFLAGS="$CFLAGS" 7900 7901 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7904 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7905 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7906 then : 7907 printf %s "(cached) " >&6 7908 else $as_nop 7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7910 /* end confdefs.h. */ 7911 int i; 7912 _ACEOF 7913 if ac_fn_c_try_compile "$LINENO" 7914 then : 7915 xorg_cv_cc_flag_unknown_warning_option=yes 7916 else $as_nop 7917 xorg_cv_cc_flag_unknown_warning_option=no 7918 fi 7919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7920 fi 7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7922 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7924 CFLAGS="$xorg_testset_save_CFLAGS" 7925 fi 7926 7927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7930 fi 7931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7933 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7934 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7935 then : 7936 printf %s "(cached) " >&6 7937 else $as_nop 7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7939 /* end confdefs.h. */ 7940 int i; 7941 _ACEOF 7942 if ac_fn_c_try_compile "$LINENO" 7943 then : 7944 xorg_cv_cc_flag_unused_command_line_argument=yes 7945 else $as_nop 7946 xorg_cv_cc_flag_unused_command_line_argument=no 7947 fi 7948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7949 fi 7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7951 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7953 CFLAGS="$xorg_testset_save_CFLAGS" 7954 fi 7955 7956 found="no" 7957 7958 if test $found = "no" ; then 7959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7961 fi 7962 7963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7965 fi 7966 7967 CFLAGS="$CFLAGS -Werror=missing-braces" 7968 7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7970 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7971 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7972 if eval test \${$cacheid+y} 7973 then : 7974 printf %s "(cached) " >&6 7975 else $as_nop 7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7977 /* end confdefs.h. */ 7978 int i; 7979 int 7980 main (void) 7981 { 7982 7983 ; 7984 return 0; 7985 } 7986 _ACEOF 7987 if ac_fn_c_try_link "$LINENO" 7988 then : 7989 eval $cacheid=yes 7990 else $as_nop 7991 eval $cacheid=no 7992 fi 7993 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7994 conftest$ac_exeext conftest.$ac_ext 7995 fi 7996 7997 7998 CFLAGS="$xorg_testset_save_CFLAGS" 7999 8000 eval supported=\$$cacheid 8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8002 printf "%s\n" "$supported" >&6; } 8003 if test "$supported" = "yes" ; then 8004 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8005 found="yes" 8006 fi 8007 fi 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 xorg_testset_save_CFLAGS="$CFLAGS" 8024 8025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8028 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8029 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8030 then : 8031 printf %s "(cached) " >&6 8032 else $as_nop 8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8034 /* end confdefs.h. */ 8035 int i; 8036 _ACEOF 8037 if ac_fn_c_try_compile "$LINENO" 8038 then : 8039 xorg_cv_cc_flag_unknown_warning_option=yes 8040 else $as_nop 8041 xorg_cv_cc_flag_unknown_warning_option=no 8042 fi 8043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8044 fi 8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8046 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8048 CFLAGS="$xorg_testset_save_CFLAGS" 8049 fi 8050 8051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8054 fi 8055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8057 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8058 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8059 then : 8060 printf %s "(cached) " >&6 8061 else $as_nop 8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8063 /* end confdefs.h. */ 8064 int i; 8065 _ACEOF 8066 if ac_fn_c_try_compile "$LINENO" 8067 then : 8068 xorg_cv_cc_flag_unused_command_line_argument=yes 8069 else $as_nop 8070 xorg_cv_cc_flag_unused_command_line_argument=no 8071 fi 8072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8073 fi 8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8075 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8077 CFLAGS="$xorg_testset_save_CFLAGS" 8078 fi 8079 8080 found="no" 8081 8082 if test $found = "no" ; then 8083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8085 fi 8086 8087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8089 fi 8090 8091 CFLAGS="$CFLAGS -Werror=sequence-point" 8092 8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8094 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8095 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8096 if eval test \${$cacheid+y} 8097 then : 8098 printf %s "(cached) " >&6 8099 else $as_nop 8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8101 /* end confdefs.h. */ 8102 int i; 8103 int 8104 main (void) 8105 { 8106 8107 ; 8108 return 0; 8109 } 8110 _ACEOF 8111 if ac_fn_c_try_link "$LINENO" 8112 then : 8113 eval $cacheid=yes 8114 else $as_nop 8115 eval $cacheid=no 8116 fi 8117 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8118 conftest$ac_exeext conftest.$ac_ext 8119 fi 8120 8121 8122 CFLAGS="$xorg_testset_save_CFLAGS" 8123 8124 eval supported=\$$cacheid 8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8126 printf "%s\n" "$supported" >&6; } 8127 if test "$supported" = "yes" ; then 8128 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8129 found="yes" 8130 fi 8131 fi 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 xorg_testset_save_CFLAGS="$CFLAGS" 8148 8149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8152 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8153 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8154 then : 8155 printf %s "(cached) " >&6 8156 else $as_nop 8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8158 /* end confdefs.h. */ 8159 int i; 8160 _ACEOF 8161 if ac_fn_c_try_compile "$LINENO" 8162 then : 8163 xorg_cv_cc_flag_unknown_warning_option=yes 8164 else $as_nop 8165 xorg_cv_cc_flag_unknown_warning_option=no 8166 fi 8167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8168 fi 8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8170 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8172 CFLAGS="$xorg_testset_save_CFLAGS" 8173 fi 8174 8175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8178 fi 8179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8181 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8182 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8183 then : 8184 printf %s "(cached) " >&6 8185 else $as_nop 8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8187 /* end confdefs.h. */ 8188 int i; 8189 _ACEOF 8190 if ac_fn_c_try_compile "$LINENO" 8191 then : 8192 xorg_cv_cc_flag_unused_command_line_argument=yes 8193 else $as_nop 8194 xorg_cv_cc_flag_unused_command_line_argument=no 8195 fi 8196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8197 fi 8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8199 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8201 CFLAGS="$xorg_testset_save_CFLAGS" 8202 fi 8203 8204 found="no" 8205 8206 if test $found = "no" ; then 8207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8209 fi 8210 8211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8213 fi 8214 8215 CFLAGS="$CFLAGS -Werror=return-type" 8216 8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8218 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8219 cacheid=xorg_cv_cc_flag__Werror_return_type 8220 if eval test \${$cacheid+y} 8221 then : 8222 printf %s "(cached) " >&6 8223 else $as_nop 8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8225 /* end confdefs.h. */ 8226 int i; 8227 int 8228 main (void) 8229 { 8230 8231 ; 8232 return 0; 8233 } 8234 _ACEOF 8235 if ac_fn_c_try_link "$LINENO" 8236 then : 8237 eval $cacheid=yes 8238 else $as_nop 8239 eval $cacheid=no 8240 fi 8241 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8242 conftest$ac_exeext conftest.$ac_ext 8243 fi 8244 8245 8246 CFLAGS="$xorg_testset_save_CFLAGS" 8247 8248 eval supported=\$$cacheid 8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8250 printf "%s\n" "$supported" >&6; } 8251 if test "$supported" = "yes" ; then 8252 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8253 found="yes" 8254 fi 8255 fi 8256 8257 if test $found = "no" ; then 8258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8260 fi 8261 8262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8264 fi 8265 8266 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8267 8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8269 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8270 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8271 if eval test \${$cacheid+y} 8272 then : 8273 printf %s "(cached) " >&6 8274 else $as_nop 8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8276 /* end confdefs.h. */ 8277 int i; 8278 int 8279 main (void) 8280 { 8281 8282 ; 8283 return 0; 8284 } 8285 _ACEOF 8286 if ac_fn_c_try_link "$LINENO" 8287 then : 8288 eval $cacheid=yes 8289 else $as_nop 8290 eval $cacheid=no 8291 fi 8292 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8293 conftest$ac_exeext conftest.$ac_ext 8294 fi 8295 8296 8297 CFLAGS="$xorg_testset_save_CFLAGS" 8298 8299 eval supported=\$$cacheid 8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8301 printf "%s\n" "$supported" >&6; } 8302 if test "$supported" = "yes" ; then 8303 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8304 found="yes" 8305 fi 8306 fi 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 xorg_testset_save_CFLAGS="$CFLAGS" 8323 8324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8327 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8328 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8329 then : 8330 printf %s "(cached) " >&6 8331 else $as_nop 8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8333 /* end confdefs.h. */ 8334 int i; 8335 _ACEOF 8336 if ac_fn_c_try_compile "$LINENO" 8337 then : 8338 xorg_cv_cc_flag_unknown_warning_option=yes 8339 else $as_nop 8340 xorg_cv_cc_flag_unknown_warning_option=no 8341 fi 8342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8343 fi 8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8345 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8347 CFLAGS="$xorg_testset_save_CFLAGS" 8348 fi 8349 8350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8353 fi 8354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8356 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8357 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8358 then : 8359 printf %s "(cached) " >&6 8360 else $as_nop 8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8362 /* end confdefs.h. */ 8363 int i; 8364 _ACEOF 8365 if ac_fn_c_try_compile "$LINENO" 8366 then : 8367 xorg_cv_cc_flag_unused_command_line_argument=yes 8368 else $as_nop 8369 xorg_cv_cc_flag_unused_command_line_argument=no 8370 fi 8371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8372 fi 8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8374 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8376 CFLAGS="$xorg_testset_save_CFLAGS" 8377 fi 8378 8379 found="no" 8380 8381 if test $found = "no" ; then 8382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8384 fi 8385 8386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8388 fi 8389 8390 CFLAGS="$CFLAGS -Werror=trigraphs" 8391 8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8393 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8394 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8395 if eval test \${$cacheid+y} 8396 then : 8397 printf %s "(cached) " >&6 8398 else $as_nop 8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8400 /* end confdefs.h. */ 8401 int i; 8402 int 8403 main (void) 8404 { 8405 8406 ; 8407 return 0; 8408 } 8409 _ACEOF 8410 if ac_fn_c_try_link "$LINENO" 8411 then : 8412 eval $cacheid=yes 8413 else $as_nop 8414 eval $cacheid=no 8415 fi 8416 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8417 conftest$ac_exeext conftest.$ac_ext 8418 fi 8419 8420 8421 CFLAGS="$xorg_testset_save_CFLAGS" 8422 8423 eval supported=\$$cacheid 8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8425 printf "%s\n" "$supported" >&6; } 8426 if test "$supported" = "yes" ; then 8427 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8428 found="yes" 8429 fi 8430 fi 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 xorg_testset_save_CFLAGS="$CFLAGS" 8447 8448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8451 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8452 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8453 then : 8454 printf %s "(cached) " >&6 8455 else $as_nop 8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8457 /* end confdefs.h. */ 8458 int i; 8459 _ACEOF 8460 if ac_fn_c_try_compile "$LINENO" 8461 then : 8462 xorg_cv_cc_flag_unknown_warning_option=yes 8463 else $as_nop 8464 xorg_cv_cc_flag_unknown_warning_option=no 8465 fi 8466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8467 fi 8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8469 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8471 CFLAGS="$xorg_testset_save_CFLAGS" 8472 fi 8473 8474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8477 fi 8478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8480 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8481 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8482 then : 8483 printf %s "(cached) " >&6 8484 else $as_nop 8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8486 /* end confdefs.h. */ 8487 int i; 8488 _ACEOF 8489 if ac_fn_c_try_compile "$LINENO" 8490 then : 8491 xorg_cv_cc_flag_unused_command_line_argument=yes 8492 else $as_nop 8493 xorg_cv_cc_flag_unused_command_line_argument=no 8494 fi 8495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8496 fi 8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8498 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501 fi 8502 8503 found="no" 8504 8505 if test $found = "no" ; then 8506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8508 fi 8509 8510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8512 fi 8513 8514 CFLAGS="$CFLAGS -Werror=array-bounds" 8515 8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8517 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8518 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8519 if eval test \${$cacheid+y} 8520 then : 8521 printf %s "(cached) " >&6 8522 else $as_nop 8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8524 /* end confdefs.h. */ 8525 int i; 8526 int 8527 main (void) 8528 { 8529 8530 ; 8531 return 0; 8532 } 8533 _ACEOF 8534 if ac_fn_c_try_link "$LINENO" 8535 then : 8536 eval $cacheid=yes 8537 else $as_nop 8538 eval $cacheid=no 8539 fi 8540 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8541 conftest$ac_exeext conftest.$ac_ext 8542 fi 8543 8544 8545 CFLAGS="$xorg_testset_save_CFLAGS" 8546 8547 eval supported=\$$cacheid 8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8549 printf "%s\n" "$supported" >&6; } 8550 if test "$supported" = "yes" ; then 8551 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8552 found="yes" 8553 fi 8554 fi 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 xorg_testset_save_CFLAGS="$CFLAGS" 8571 8572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8575 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8576 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8577 then : 8578 printf %s "(cached) " >&6 8579 else $as_nop 8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8581 /* end confdefs.h. */ 8582 int i; 8583 _ACEOF 8584 if ac_fn_c_try_compile "$LINENO" 8585 then : 8586 xorg_cv_cc_flag_unknown_warning_option=yes 8587 else $as_nop 8588 xorg_cv_cc_flag_unknown_warning_option=no 8589 fi 8590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8591 fi 8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8593 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8595 CFLAGS="$xorg_testset_save_CFLAGS" 8596 fi 8597 8598 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8601 fi 8602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8604 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8605 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8606 then : 8607 printf %s "(cached) " >&6 8608 else $as_nop 8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8610 /* end confdefs.h. */ 8611 int i; 8612 _ACEOF 8613 if ac_fn_c_try_compile "$LINENO" 8614 then : 8615 xorg_cv_cc_flag_unused_command_line_argument=yes 8616 else $as_nop 8617 xorg_cv_cc_flag_unused_command_line_argument=no 8618 fi 8619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8620 fi 8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8622 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8624 CFLAGS="$xorg_testset_save_CFLAGS" 8625 fi 8626 8627 found="no" 8628 8629 if test $found = "no" ; then 8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8632 fi 8633 8634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8636 fi 8637 8638 CFLAGS="$CFLAGS -Werror=write-strings" 8639 8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8641 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8642 cacheid=xorg_cv_cc_flag__Werror_write_strings 8643 if eval test \${$cacheid+y} 8644 then : 8645 printf %s "(cached) " >&6 8646 else $as_nop 8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8648 /* end confdefs.h. */ 8649 int i; 8650 int 8651 main (void) 8652 { 8653 8654 ; 8655 return 0; 8656 } 8657 _ACEOF 8658 if ac_fn_c_try_link "$LINENO" 8659 then : 8660 eval $cacheid=yes 8661 else $as_nop 8662 eval $cacheid=no 8663 fi 8664 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8665 conftest$ac_exeext conftest.$ac_ext 8666 fi 8667 8668 8669 CFLAGS="$xorg_testset_save_CFLAGS" 8670 8671 eval supported=\$$cacheid 8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8673 printf "%s\n" "$supported" >&6; } 8674 if test "$supported" = "yes" ; then 8675 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8676 found="yes" 8677 fi 8678 fi 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 xorg_testset_save_CFLAGS="$CFLAGS" 8695 8696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8699 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8700 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8701 then : 8702 printf %s "(cached) " >&6 8703 else $as_nop 8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8705 /* end confdefs.h. */ 8706 int i; 8707 _ACEOF 8708 if ac_fn_c_try_compile "$LINENO" 8709 then : 8710 xorg_cv_cc_flag_unknown_warning_option=yes 8711 else $as_nop 8712 xorg_cv_cc_flag_unknown_warning_option=no 8713 fi 8714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8715 fi 8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8717 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8719 CFLAGS="$xorg_testset_save_CFLAGS" 8720 fi 8721 8722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8725 fi 8726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8728 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8729 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8730 then : 8731 printf %s "(cached) " >&6 8732 else $as_nop 8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734 /* end confdefs.h. */ 8735 int i; 8736 _ACEOF 8737 if ac_fn_c_try_compile "$LINENO" 8738 then : 8739 xorg_cv_cc_flag_unused_command_line_argument=yes 8740 else $as_nop 8741 xorg_cv_cc_flag_unused_command_line_argument=no 8742 fi 8743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8744 fi 8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8746 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8748 CFLAGS="$xorg_testset_save_CFLAGS" 8749 fi 8750 8751 found="no" 8752 8753 if test $found = "no" ; then 8754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8756 fi 8757 8758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8760 fi 8761 8762 CFLAGS="$CFLAGS -Werror=address" 8763 8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8765 printf %s "checking if $CC supports -Werror=address... " >&6; } 8766 cacheid=xorg_cv_cc_flag__Werror_address 8767 if eval test \${$cacheid+y} 8768 then : 8769 printf %s "(cached) " >&6 8770 else $as_nop 8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8772 /* end confdefs.h. */ 8773 int i; 8774 int 8775 main (void) 8776 { 8777 8778 ; 8779 return 0; 8780 } 8781 _ACEOF 8782 if ac_fn_c_try_link "$LINENO" 8783 then : 8784 eval $cacheid=yes 8785 else $as_nop 8786 eval $cacheid=no 8787 fi 8788 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8789 conftest$ac_exeext conftest.$ac_ext 8790 fi 8791 8792 8793 CFLAGS="$xorg_testset_save_CFLAGS" 8794 8795 eval supported=\$$cacheid 8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8797 printf "%s\n" "$supported" >&6; } 8798 if test "$supported" = "yes" ; then 8799 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8800 found="yes" 8801 fi 8802 fi 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 xorg_testset_save_CFLAGS="$CFLAGS" 8819 8820 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8823 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8824 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8825 then : 8826 printf %s "(cached) " >&6 8827 else $as_nop 8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8829 /* end confdefs.h. */ 8830 int i; 8831 _ACEOF 8832 if ac_fn_c_try_compile "$LINENO" 8833 then : 8834 xorg_cv_cc_flag_unknown_warning_option=yes 8835 else $as_nop 8836 xorg_cv_cc_flag_unknown_warning_option=no 8837 fi 8838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8839 fi 8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8841 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8843 CFLAGS="$xorg_testset_save_CFLAGS" 8844 fi 8845 8846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8849 fi 8850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8852 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8853 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8854 then : 8855 printf %s "(cached) " >&6 8856 else $as_nop 8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8858 /* end confdefs.h. */ 8859 int i; 8860 _ACEOF 8861 if ac_fn_c_try_compile "$LINENO" 8862 then : 8863 xorg_cv_cc_flag_unused_command_line_argument=yes 8864 else $as_nop 8865 xorg_cv_cc_flag_unused_command_line_argument=no 8866 fi 8867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8868 fi 8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8870 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8872 CFLAGS="$xorg_testset_save_CFLAGS" 8873 fi 8874 8875 found="no" 8876 8877 if test $found = "no" ; then 8878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8880 fi 8881 8882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8884 fi 8885 8886 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8887 8888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8889 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8890 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8891 if eval test \${$cacheid+y} 8892 then : 8893 printf %s "(cached) " >&6 8894 else $as_nop 8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8896 /* end confdefs.h. */ 8897 int i; 8898 int 8899 main (void) 8900 { 8901 8902 ; 8903 return 0; 8904 } 8905 _ACEOF 8906 if ac_fn_c_try_link "$LINENO" 8907 then : 8908 eval $cacheid=yes 8909 else $as_nop 8910 eval $cacheid=no 8911 fi 8912 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8913 conftest$ac_exeext conftest.$ac_ext 8914 fi 8915 8916 8917 CFLAGS="$xorg_testset_save_CFLAGS" 8918 8919 eval supported=\$$cacheid 8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8921 printf "%s\n" "$supported" >&6; } 8922 if test "$supported" = "yes" ; then 8923 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8924 found="yes" 8925 fi 8926 fi 8927 8928 if test $found = "no" ; then 8929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8931 fi 8932 8933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8935 fi 8936 8937 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8938 8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8940 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8941 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8942 if eval test \${$cacheid+y} 8943 then : 8944 printf %s "(cached) " >&6 8945 else $as_nop 8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8947 /* end confdefs.h. */ 8948 int i; 8949 int 8950 main (void) 8951 { 8952 8953 ; 8954 return 0; 8955 } 8956 _ACEOF 8957 if ac_fn_c_try_link "$LINENO" 8958 then : 8959 eval $cacheid=yes 8960 else $as_nop 8961 eval $cacheid=no 8962 fi 8963 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8964 conftest$ac_exeext conftest.$ac_ext 8965 fi 8966 8967 8968 CFLAGS="$xorg_testset_save_CFLAGS" 8969 8970 eval supported=\$$cacheid 8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8972 printf "%s\n" "$supported" >&6; } 8973 if test "$supported" = "yes" ; then 8974 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8975 found="yes" 8976 fi 8977 fi 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 xorg_testset_save_CFLAGS="$CFLAGS" 8994 8995 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8998 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8999 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9000 then : 9001 printf %s "(cached) " >&6 9002 else $as_nop 9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9004 /* end confdefs.h. */ 9005 int i; 9006 _ACEOF 9007 if ac_fn_c_try_compile "$LINENO" 9008 then : 9009 xorg_cv_cc_flag_unknown_warning_option=yes 9010 else $as_nop 9011 xorg_cv_cc_flag_unknown_warning_option=no 9012 fi 9013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9014 fi 9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9016 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9018 CFLAGS="$xorg_testset_save_CFLAGS" 9019 fi 9020 9021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9024 fi 9025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9027 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9028 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9029 then : 9030 printf %s "(cached) " >&6 9031 else $as_nop 9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9033 /* end confdefs.h. */ 9034 int i; 9035 _ACEOF 9036 if ac_fn_c_try_compile "$LINENO" 9037 then : 9038 xorg_cv_cc_flag_unused_command_line_argument=yes 9039 else $as_nop 9040 xorg_cv_cc_flag_unused_command_line_argument=no 9041 fi 9042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9043 fi 9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9045 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9047 CFLAGS="$xorg_testset_save_CFLAGS" 9048 fi 9049 9050 found="no" 9051 9052 if test $found = "no" ; then 9053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9055 fi 9056 9057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9059 fi 9060 9061 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9062 9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9064 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9065 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9066 if eval test \${$cacheid+y} 9067 then : 9068 printf %s "(cached) " >&6 9069 else $as_nop 9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071 /* end confdefs.h. */ 9072 int i; 9073 int 9074 main (void) 9075 { 9076 9077 ; 9078 return 0; 9079 } 9080 _ACEOF 9081 if ac_fn_c_try_link "$LINENO" 9082 then : 9083 eval $cacheid=yes 9084 else $as_nop 9085 eval $cacheid=no 9086 fi 9087 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9088 conftest$ac_exeext conftest.$ac_ext 9089 fi 9090 9091 9092 CFLAGS="$xorg_testset_save_CFLAGS" 9093 9094 eval supported=\$$cacheid 9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9096 printf "%s\n" "$supported" >&6; } 9097 if test "$supported" = "yes" ; then 9098 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9099 found="yes" 9100 fi 9101 fi 9102 9103 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9104 else 9105 { 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 9106 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;} 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 xorg_testset_save_CFLAGS="$CFLAGS" 9121 9122 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9125 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9126 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9127 then : 9128 printf %s "(cached) " >&6 9129 else $as_nop 9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9131 /* end confdefs.h. */ 9132 int i; 9133 _ACEOF 9134 if ac_fn_c_try_compile "$LINENO" 9135 then : 9136 xorg_cv_cc_flag_unknown_warning_option=yes 9137 else $as_nop 9138 xorg_cv_cc_flag_unknown_warning_option=no 9139 fi 9140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9141 fi 9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9143 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9145 CFLAGS="$xorg_testset_save_CFLAGS" 9146 fi 9147 9148 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9151 fi 9152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9154 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9155 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9156 then : 9157 printf %s "(cached) " >&6 9158 else $as_nop 9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9160 /* end confdefs.h. */ 9161 int i; 9162 _ACEOF 9163 if ac_fn_c_try_compile "$LINENO" 9164 then : 9165 xorg_cv_cc_flag_unused_command_line_argument=yes 9166 else $as_nop 9167 xorg_cv_cc_flag_unused_command_line_argument=no 9168 fi 9169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9170 fi 9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9172 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9174 CFLAGS="$xorg_testset_save_CFLAGS" 9175 fi 9176 9177 found="no" 9178 9179 if test $found = "no" ; then 9180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9182 fi 9183 9184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9186 fi 9187 9188 CFLAGS="$CFLAGS -Wimplicit" 9189 9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9191 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9192 cacheid=xorg_cv_cc_flag__Wimplicit 9193 if eval test \${$cacheid+y} 9194 then : 9195 printf %s "(cached) " >&6 9196 else $as_nop 9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9198 /* end confdefs.h. */ 9199 int i; 9200 int 9201 main (void) 9202 { 9203 9204 ; 9205 return 0; 9206 } 9207 _ACEOF 9208 if ac_fn_c_try_link "$LINENO" 9209 then : 9210 eval $cacheid=yes 9211 else $as_nop 9212 eval $cacheid=no 9213 fi 9214 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9215 conftest$ac_exeext conftest.$ac_ext 9216 fi 9217 9218 9219 CFLAGS="$xorg_testset_save_CFLAGS" 9220 9221 eval supported=\$$cacheid 9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9223 printf "%s\n" "$supported" >&6; } 9224 if test "$supported" = "yes" ; then 9225 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9226 found="yes" 9227 fi 9228 fi 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 xorg_testset_save_CFLAGS="$CFLAGS" 9245 9246 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9249 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9250 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9251 then : 9252 printf %s "(cached) " >&6 9253 else $as_nop 9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9255 /* end confdefs.h. */ 9256 int i; 9257 _ACEOF 9258 if ac_fn_c_try_compile "$LINENO" 9259 then : 9260 xorg_cv_cc_flag_unknown_warning_option=yes 9261 else $as_nop 9262 xorg_cv_cc_flag_unknown_warning_option=no 9263 fi 9264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9265 fi 9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9267 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9269 CFLAGS="$xorg_testset_save_CFLAGS" 9270 fi 9271 9272 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9275 fi 9276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9278 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9279 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9280 then : 9281 printf %s "(cached) " >&6 9282 else $as_nop 9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9284 /* end confdefs.h. */ 9285 int i; 9286 _ACEOF 9287 if ac_fn_c_try_compile "$LINENO" 9288 then : 9289 xorg_cv_cc_flag_unused_command_line_argument=yes 9290 else $as_nop 9291 xorg_cv_cc_flag_unused_command_line_argument=no 9292 fi 9293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9294 fi 9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9296 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9298 CFLAGS="$xorg_testset_save_CFLAGS" 9299 fi 9300 9301 found="no" 9302 9303 if test $found = "no" ; then 9304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9306 fi 9307 9308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9310 fi 9311 9312 CFLAGS="$CFLAGS -Wnonnull" 9313 9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9315 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9316 cacheid=xorg_cv_cc_flag__Wnonnull 9317 if eval test \${$cacheid+y} 9318 then : 9319 printf %s "(cached) " >&6 9320 else $as_nop 9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9322 /* end confdefs.h. */ 9323 int i; 9324 int 9325 main (void) 9326 { 9327 9328 ; 9329 return 0; 9330 } 9331 _ACEOF 9332 if ac_fn_c_try_link "$LINENO" 9333 then : 9334 eval $cacheid=yes 9335 else $as_nop 9336 eval $cacheid=no 9337 fi 9338 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9339 conftest$ac_exeext conftest.$ac_ext 9340 fi 9341 9342 9343 CFLAGS="$xorg_testset_save_CFLAGS" 9344 9345 eval supported=\$$cacheid 9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9347 printf "%s\n" "$supported" >&6; } 9348 if test "$supported" = "yes" ; then 9349 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9350 found="yes" 9351 fi 9352 fi 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 xorg_testset_save_CFLAGS="$CFLAGS" 9369 9370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9373 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9374 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9375 then : 9376 printf %s "(cached) " >&6 9377 else $as_nop 9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9379 /* end confdefs.h. */ 9380 int i; 9381 _ACEOF 9382 if ac_fn_c_try_compile "$LINENO" 9383 then : 9384 xorg_cv_cc_flag_unknown_warning_option=yes 9385 else $as_nop 9386 xorg_cv_cc_flag_unknown_warning_option=no 9387 fi 9388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9389 fi 9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9391 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9393 CFLAGS="$xorg_testset_save_CFLAGS" 9394 fi 9395 9396 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9399 fi 9400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9402 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9403 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9404 then : 9405 printf %s "(cached) " >&6 9406 else $as_nop 9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9408 /* end confdefs.h. */ 9409 int i; 9410 _ACEOF 9411 if ac_fn_c_try_compile "$LINENO" 9412 then : 9413 xorg_cv_cc_flag_unused_command_line_argument=yes 9414 else $as_nop 9415 xorg_cv_cc_flag_unused_command_line_argument=no 9416 fi 9417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9418 fi 9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9420 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9422 CFLAGS="$xorg_testset_save_CFLAGS" 9423 fi 9424 9425 found="no" 9426 9427 if test $found = "no" ; then 9428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9430 fi 9431 9432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9434 fi 9435 9436 CFLAGS="$CFLAGS -Winit-self" 9437 9438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9439 printf %s "checking if $CC supports -Winit-self... " >&6; } 9440 cacheid=xorg_cv_cc_flag__Winit_self 9441 if eval test \${$cacheid+y} 9442 then : 9443 printf %s "(cached) " >&6 9444 else $as_nop 9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9446 /* end confdefs.h. */ 9447 int i; 9448 int 9449 main (void) 9450 { 9451 9452 ; 9453 return 0; 9454 } 9455 _ACEOF 9456 if ac_fn_c_try_link "$LINENO" 9457 then : 9458 eval $cacheid=yes 9459 else $as_nop 9460 eval $cacheid=no 9461 fi 9462 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9463 conftest$ac_exeext conftest.$ac_ext 9464 fi 9465 9466 9467 CFLAGS="$xorg_testset_save_CFLAGS" 9468 9469 eval supported=\$$cacheid 9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9471 printf "%s\n" "$supported" >&6; } 9472 if test "$supported" = "yes" ; then 9473 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9474 found="yes" 9475 fi 9476 fi 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 xorg_testset_save_CFLAGS="$CFLAGS" 9493 9494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9497 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9498 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9499 then : 9500 printf %s "(cached) " >&6 9501 else $as_nop 9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9503 /* end confdefs.h. */ 9504 int i; 9505 _ACEOF 9506 if ac_fn_c_try_compile "$LINENO" 9507 then : 9508 xorg_cv_cc_flag_unknown_warning_option=yes 9509 else $as_nop 9510 xorg_cv_cc_flag_unknown_warning_option=no 9511 fi 9512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9513 fi 9514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9515 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9517 CFLAGS="$xorg_testset_save_CFLAGS" 9518 fi 9519 9520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9523 fi 9524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9526 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9527 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9528 then : 9529 printf %s "(cached) " >&6 9530 else $as_nop 9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9532 /* end confdefs.h. */ 9533 int i; 9534 _ACEOF 9535 if ac_fn_c_try_compile "$LINENO" 9536 then : 9537 xorg_cv_cc_flag_unused_command_line_argument=yes 9538 else $as_nop 9539 xorg_cv_cc_flag_unused_command_line_argument=no 9540 fi 9541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9542 fi 9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9546 CFLAGS="$xorg_testset_save_CFLAGS" 9547 fi 9548 9549 found="no" 9550 9551 if test $found = "no" ; then 9552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9554 fi 9555 9556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9558 fi 9559 9560 CFLAGS="$CFLAGS -Wmain" 9561 9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9563 printf %s "checking if $CC supports -Wmain... " >&6; } 9564 cacheid=xorg_cv_cc_flag__Wmain 9565 if eval test \${$cacheid+y} 9566 then : 9567 printf %s "(cached) " >&6 9568 else $as_nop 9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9570 /* end confdefs.h. */ 9571 int i; 9572 int 9573 main (void) 9574 { 9575 9576 ; 9577 return 0; 9578 } 9579 _ACEOF 9580 if ac_fn_c_try_link "$LINENO" 9581 then : 9582 eval $cacheid=yes 9583 else $as_nop 9584 eval $cacheid=no 9585 fi 9586 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9587 conftest$ac_exeext conftest.$ac_ext 9588 fi 9589 9590 9591 CFLAGS="$xorg_testset_save_CFLAGS" 9592 9593 eval supported=\$$cacheid 9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9595 printf "%s\n" "$supported" >&6; } 9596 if test "$supported" = "yes" ; then 9597 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9598 found="yes" 9599 fi 9600 fi 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 xorg_testset_save_CFLAGS="$CFLAGS" 9617 9618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9621 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9622 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9623 then : 9624 printf %s "(cached) " >&6 9625 else $as_nop 9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9627 /* end confdefs.h. */ 9628 int i; 9629 _ACEOF 9630 if ac_fn_c_try_compile "$LINENO" 9631 then : 9632 xorg_cv_cc_flag_unknown_warning_option=yes 9633 else $as_nop 9634 xorg_cv_cc_flag_unknown_warning_option=no 9635 fi 9636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9637 fi 9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9639 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9641 CFLAGS="$xorg_testset_save_CFLAGS" 9642 fi 9643 9644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9647 fi 9648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9650 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9651 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9652 then : 9653 printf %s "(cached) " >&6 9654 else $as_nop 9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9656 /* end confdefs.h. */ 9657 int i; 9658 _ACEOF 9659 if ac_fn_c_try_compile "$LINENO" 9660 then : 9661 xorg_cv_cc_flag_unused_command_line_argument=yes 9662 else $as_nop 9663 xorg_cv_cc_flag_unused_command_line_argument=no 9664 fi 9665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9666 fi 9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9668 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9670 CFLAGS="$xorg_testset_save_CFLAGS" 9671 fi 9672 9673 found="no" 9674 9675 if test $found = "no" ; then 9676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9678 fi 9679 9680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9682 fi 9683 9684 CFLAGS="$CFLAGS -Wmissing-braces" 9685 9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9687 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9688 cacheid=xorg_cv_cc_flag__Wmissing_braces 9689 if eval test \${$cacheid+y} 9690 then : 9691 printf %s "(cached) " >&6 9692 else $as_nop 9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9694 /* end confdefs.h. */ 9695 int i; 9696 int 9697 main (void) 9698 { 9699 9700 ; 9701 return 0; 9702 } 9703 _ACEOF 9704 if ac_fn_c_try_link "$LINENO" 9705 then : 9706 eval $cacheid=yes 9707 else $as_nop 9708 eval $cacheid=no 9709 fi 9710 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9711 conftest$ac_exeext conftest.$ac_ext 9712 fi 9713 9714 9715 CFLAGS="$xorg_testset_save_CFLAGS" 9716 9717 eval supported=\$$cacheid 9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9719 printf "%s\n" "$supported" >&6; } 9720 if test "$supported" = "yes" ; then 9721 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9722 found="yes" 9723 fi 9724 fi 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 xorg_testset_save_CFLAGS="$CFLAGS" 9741 9742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9745 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9746 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9747 then : 9748 printf %s "(cached) " >&6 9749 else $as_nop 9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9751 /* end confdefs.h. */ 9752 int i; 9753 _ACEOF 9754 if ac_fn_c_try_compile "$LINENO" 9755 then : 9756 xorg_cv_cc_flag_unknown_warning_option=yes 9757 else $as_nop 9758 xorg_cv_cc_flag_unknown_warning_option=no 9759 fi 9760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9761 fi 9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9763 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9765 CFLAGS="$xorg_testset_save_CFLAGS" 9766 fi 9767 9768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9771 fi 9772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9774 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9775 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9776 then : 9777 printf %s "(cached) " >&6 9778 else $as_nop 9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9780 /* end confdefs.h. */ 9781 int i; 9782 _ACEOF 9783 if ac_fn_c_try_compile "$LINENO" 9784 then : 9785 xorg_cv_cc_flag_unused_command_line_argument=yes 9786 else $as_nop 9787 xorg_cv_cc_flag_unused_command_line_argument=no 9788 fi 9789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9790 fi 9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9792 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9794 CFLAGS="$xorg_testset_save_CFLAGS" 9795 fi 9796 9797 found="no" 9798 9799 if test $found = "no" ; then 9800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9802 fi 9803 9804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9806 fi 9807 9808 CFLAGS="$CFLAGS -Wsequence-point" 9809 9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9811 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9812 cacheid=xorg_cv_cc_flag__Wsequence_point 9813 if eval test \${$cacheid+y} 9814 then : 9815 printf %s "(cached) " >&6 9816 else $as_nop 9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9818 /* end confdefs.h. */ 9819 int i; 9820 int 9821 main (void) 9822 { 9823 9824 ; 9825 return 0; 9826 } 9827 _ACEOF 9828 if ac_fn_c_try_link "$LINENO" 9829 then : 9830 eval $cacheid=yes 9831 else $as_nop 9832 eval $cacheid=no 9833 fi 9834 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9835 conftest$ac_exeext conftest.$ac_ext 9836 fi 9837 9838 9839 CFLAGS="$xorg_testset_save_CFLAGS" 9840 9841 eval supported=\$$cacheid 9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9843 printf "%s\n" "$supported" >&6; } 9844 if test "$supported" = "yes" ; then 9845 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9846 found="yes" 9847 fi 9848 fi 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 xorg_testset_save_CFLAGS="$CFLAGS" 9865 9866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9869 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9870 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9871 then : 9872 printf %s "(cached) " >&6 9873 else $as_nop 9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9875 /* end confdefs.h. */ 9876 int i; 9877 _ACEOF 9878 if ac_fn_c_try_compile "$LINENO" 9879 then : 9880 xorg_cv_cc_flag_unknown_warning_option=yes 9881 else $as_nop 9882 xorg_cv_cc_flag_unknown_warning_option=no 9883 fi 9884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9885 fi 9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9887 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9889 CFLAGS="$xorg_testset_save_CFLAGS" 9890 fi 9891 9892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9895 fi 9896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9898 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9899 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9900 then : 9901 printf %s "(cached) " >&6 9902 else $as_nop 9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9904 /* end confdefs.h. */ 9905 int i; 9906 _ACEOF 9907 if ac_fn_c_try_compile "$LINENO" 9908 then : 9909 xorg_cv_cc_flag_unused_command_line_argument=yes 9910 else $as_nop 9911 xorg_cv_cc_flag_unused_command_line_argument=no 9912 fi 9913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9914 fi 9915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9916 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9918 CFLAGS="$xorg_testset_save_CFLAGS" 9919 fi 9920 9921 found="no" 9922 9923 if test $found = "no" ; then 9924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9926 fi 9927 9928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9930 fi 9931 9932 CFLAGS="$CFLAGS -Wreturn-type" 9933 9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9935 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9936 cacheid=xorg_cv_cc_flag__Wreturn_type 9937 if eval test \${$cacheid+y} 9938 then : 9939 printf %s "(cached) " >&6 9940 else $as_nop 9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9942 /* end confdefs.h. */ 9943 int i; 9944 int 9945 main (void) 9946 { 9947 9948 ; 9949 return 0; 9950 } 9951 _ACEOF 9952 if ac_fn_c_try_link "$LINENO" 9953 then : 9954 eval $cacheid=yes 9955 else $as_nop 9956 eval $cacheid=no 9957 fi 9958 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9959 conftest$ac_exeext conftest.$ac_ext 9960 fi 9961 9962 9963 CFLAGS="$xorg_testset_save_CFLAGS" 9964 9965 eval supported=\$$cacheid 9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9967 printf "%s\n" "$supported" >&6; } 9968 if test "$supported" = "yes" ; then 9969 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9970 found="yes" 9971 fi 9972 fi 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 xorg_testset_save_CFLAGS="$CFLAGS" 9989 9990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9993 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9994 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9995 then : 9996 printf %s "(cached) " >&6 9997 else $as_nop 9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999 /* end confdefs.h. */ 10000 int i; 10001 _ACEOF 10002 if ac_fn_c_try_compile "$LINENO" 10003 then : 10004 xorg_cv_cc_flag_unknown_warning_option=yes 10005 else $as_nop 10006 xorg_cv_cc_flag_unknown_warning_option=no 10007 fi 10008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10009 fi 10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10011 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10013 CFLAGS="$xorg_testset_save_CFLAGS" 10014 fi 10015 10016 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10019 fi 10020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10022 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10023 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10024 then : 10025 printf %s "(cached) " >&6 10026 else $as_nop 10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10028 /* end confdefs.h. */ 10029 int i; 10030 _ACEOF 10031 if ac_fn_c_try_compile "$LINENO" 10032 then : 10033 xorg_cv_cc_flag_unused_command_line_argument=yes 10034 else $as_nop 10035 xorg_cv_cc_flag_unused_command_line_argument=no 10036 fi 10037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10038 fi 10039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10040 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10042 CFLAGS="$xorg_testset_save_CFLAGS" 10043 fi 10044 10045 found="no" 10046 10047 if test $found = "no" ; then 10048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10050 fi 10051 10052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10054 fi 10055 10056 CFLAGS="$CFLAGS -Wtrigraphs" 10057 10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10059 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10060 cacheid=xorg_cv_cc_flag__Wtrigraphs 10061 if eval test \${$cacheid+y} 10062 then : 10063 printf %s "(cached) " >&6 10064 else $as_nop 10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10066 /* end confdefs.h. */ 10067 int i; 10068 int 10069 main (void) 10070 { 10071 10072 ; 10073 return 0; 10074 } 10075 _ACEOF 10076 if ac_fn_c_try_link "$LINENO" 10077 then : 10078 eval $cacheid=yes 10079 else $as_nop 10080 eval $cacheid=no 10081 fi 10082 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10083 conftest$ac_exeext conftest.$ac_ext 10084 fi 10085 10086 10087 CFLAGS="$xorg_testset_save_CFLAGS" 10088 10089 eval supported=\$$cacheid 10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10091 printf "%s\n" "$supported" >&6; } 10092 if test "$supported" = "yes" ; then 10093 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10094 found="yes" 10095 fi 10096 fi 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 xorg_testset_save_CFLAGS="$CFLAGS" 10113 10114 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10117 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10118 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10119 then : 10120 printf %s "(cached) " >&6 10121 else $as_nop 10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10123 /* end confdefs.h. */ 10124 int i; 10125 _ACEOF 10126 if ac_fn_c_try_compile "$LINENO" 10127 then : 10128 xorg_cv_cc_flag_unknown_warning_option=yes 10129 else $as_nop 10130 xorg_cv_cc_flag_unknown_warning_option=no 10131 fi 10132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10133 fi 10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10135 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10137 CFLAGS="$xorg_testset_save_CFLAGS" 10138 fi 10139 10140 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10143 fi 10144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10146 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10147 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10148 then : 10149 printf %s "(cached) " >&6 10150 else $as_nop 10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10152 /* end confdefs.h. */ 10153 int i; 10154 _ACEOF 10155 if ac_fn_c_try_compile "$LINENO" 10156 then : 10157 xorg_cv_cc_flag_unused_command_line_argument=yes 10158 else $as_nop 10159 xorg_cv_cc_flag_unused_command_line_argument=no 10160 fi 10161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10162 fi 10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10164 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10166 CFLAGS="$xorg_testset_save_CFLAGS" 10167 fi 10168 10169 found="no" 10170 10171 if test $found = "no" ; then 10172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10174 fi 10175 10176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10178 fi 10179 10180 CFLAGS="$CFLAGS -Warray-bounds" 10181 10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10183 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10184 cacheid=xorg_cv_cc_flag__Warray_bounds 10185 if eval test \${$cacheid+y} 10186 then : 10187 printf %s "(cached) " >&6 10188 else $as_nop 10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10190 /* end confdefs.h. */ 10191 int i; 10192 int 10193 main (void) 10194 { 10195 10196 ; 10197 return 0; 10198 } 10199 _ACEOF 10200 if ac_fn_c_try_link "$LINENO" 10201 then : 10202 eval $cacheid=yes 10203 else $as_nop 10204 eval $cacheid=no 10205 fi 10206 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10207 conftest$ac_exeext conftest.$ac_ext 10208 fi 10209 10210 10211 CFLAGS="$xorg_testset_save_CFLAGS" 10212 10213 eval supported=\$$cacheid 10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10215 printf "%s\n" "$supported" >&6; } 10216 if test "$supported" = "yes" ; then 10217 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10218 found="yes" 10219 fi 10220 fi 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 xorg_testset_save_CFLAGS="$CFLAGS" 10237 10238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10241 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10242 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10243 then : 10244 printf %s "(cached) " >&6 10245 else $as_nop 10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10247 /* end confdefs.h. */ 10248 int i; 10249 _ACEOF 10250 if ac_fn_c_try_compile "$LINENO" 10251 then : 10252 xorg_cv_cc_flag_unknown_warning_option=yes 10253 else $as_nop 10254 xorg_cv_cc_flag_unknown_warning_option=no 10255 fi 10256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10257 fi 10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10259 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10261 CFLAGS="$xorg_testset_save_CFLAGS" 10262 fi 10263 10264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10267 fi 10268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10270 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10271 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10272 then : 10273 printf %s "(cached) " >&6 10274 else $as_nop 10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10276 /* end confdefs.h. */ 10277 int i; 10278 _ACEOF 10279 if ac_fn_c_try_compile "$LINENO" 10280 then : 10281 xorg_cv_cc_flag_unused_command_line_argument=yes 10282 else $as_nop 10283 xorg_cv_cc_flag_unused_command_line_argument=no 10284 fi 10285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10286 fi 10287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10288 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10290 CFLAGS="$xorg_testset_save_CFLAGS" 10291 fi 10292 10293 found="no" 10294 10295 if test $found = "no" ; then 10296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10298 fi 10299 10300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10302 fi 10303 10304 CFLAGS="$CFLAGS -Wwrite-strings" 10305 10306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10307 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10308 cacheid=xorg_cv_cc_flag__Wwrite_strings 10309 if eval test \${$cacheid+y} 10310 then : 10311 printf %s "(cached) " >&6 10312 else $as_nop 10313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10314 /* end confdefs.h. */ 10315 int i; 10316 int 10317 main (void) 10318 { 10319 10320 ; 10321 return 0; 10322 } 10323 _ACEOF 10324 if ac_fn_c_try_link "$LINENO" 10325 then : 10326 eval $cacheid=yes 10327 else $as_nop 10328 eval $cacheid=no 10329 fi 10330 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10331 conftest$ac_exeext conftest.$ac_ext 10332 fi 10333 10334 10335 CFLAGS="$xorg_testset_save_CFLAGS" 10336 10337 eval supported=\$$cacheid 10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10339 printf "%s\n" "$supported" >&6; } 10340 if test "$supported" = "yes" ; then 10341 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10342 found="yes" 10343 fi 10344 fi 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 xorg_testset_save_CFLAGS="$CFLAGS" 10361 10362 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10365 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10366 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10367 then : 10368 printf %s "(cached) " >&6 10369 else $as_nop 10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10371 /* end confdefs.h. */ 10372 int i; 10373 _ACEOF 10374 if ac_fn_c_try_compile "$LINENO" 10375 then : 10376 xorg_cv_cc_flag_unknown_warning_option=yes 10377 else $as_nop 10378 xorg_cv_cc_flag_unknown_warning_option=no 10379 fi 10380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10381 fi 10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10383 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10385 CFLAGS="$xorg_testset_save_CFLAGS" 10386 fi 10387 10388 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10391 fi 10392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10394 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10395 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10396 then : 10397 printf %s "(cached) " >&6 10398 else $as_nop 10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10400 /* end confdefs.h. */ 10401 int i; 10402 _ACEOF 10403 if ac_fn_c_try_compile "$LINENO" 10404 then : 10405 xorg_cv_cc_flag_unused_command_line_argument=yes 10406 else $as_nop 10407 xorg_cv_cc_flag_unused_command_line_argument=no 10408 fi 10409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10410 fi 10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10412 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10414 CFLAGS="$xorg_testset_save_CFLAGS" 10415 fi 10416 10417 found="no" 10418 10419 if test $found = "no" ; then 10420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10422 fi 10423 10424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10426 fi 10427 10428 CFLAGS="$CFLAGS -Waddress" 10429 10430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10431 printf %s "checking if $CC supports -Waddress... " >&6; } 10432 cacheid=xorg_cv_cc_flag__Waddress 10433 if eval test \${$cacheid+y} 10434 then : 10435 printf %s "(cached) " >&6 10436 else $as_nop 10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10438 /* end confdefs.h. */ 10439 int i; 10440 int 10441 main (void) 10442 { 10443 10444 ; 10445 return 0; 10446 } 10447 _ACEOF 10448 if ac_fn_c_try_link "$LINENO" 10449 then : 10450 eval $cacheid=yes 10451 else $as_nop 10452 eval $cacheid=no 10453 fi 10454 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10455 conftest$ac_exeext conftest.$ac_ext 10456 fi 10457 10458 10459 CFLAGS="$xorg_testset_save_CFLAGS" 10460 10461 eval supported=\$$cacheid 10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10463 printf "%s\n" "$supported" >&6; } 10464 if test "$supported" = "yes" ; then 10465 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10466 found="yes" 10467 fi 10468 fi 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 xorg_testset_save_CFLAGS="$CFLAGS" 10485 10486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10489 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10490 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10491 then : 10492 printf %s "(cached) " >&6 10493 else $as_nop 10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10495 /* end confdefs.h. */ 10496 int i; 10497 _ACEOF 10498 if ac_fn_c_try_compile "$LINENO" 10499 then : 10500 xorg_cv_cc_flag_unknown_warning_option=yes 10501 else $as_nop 10502 xorg_cv_cc_flag_unknown_warning_option=no 10503 fi 10504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10505 fi 10506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10507 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10509 CFLAGS="$xorg_testset_save_CFLAGS" 10510 fi 10511 10512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10515 fi 10516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10518 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10519 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10520 then : 10521 printf %s "(cached) " >&6 10522 else $as_nop 10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10524 /* end confdefs.h. */ 10525 int i; 10526 _ACEOF 10527 if ac_fn_c_try_compile "$LINENO" 10528 then : 10529 xorg_cv_cc_flag_unused_command_line_argument=yes 10530 else $as_nop 10531 xorg_cv_cc_flag_unused_command_line_argument=no 10532 fi 10533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10534 fi 10535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10536 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10538 CFLAGS="$xorg_testset_save_CFLAGS" 10539 fi 10540 10541 found="no" 10542 10543 if test $found = "no" ; then 10544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10546 fi 10547 10548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10550 fi 10551 10552 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10553 10554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10555 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10556 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10557 if eval test \${$cacheid+y} 10558 then : 10559 printf %s "(cached) " >&6 10560 else $as_nop 10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10562 /* end confdefs.h. */ 10563 int i; 10564 int 10565 main (void) 10566 { 10567 10568 ; 10569 return 0; 10570 } 10571 _ACEOF 10572 if ac_fn_c_try_link "$LINENO" 10573 then : 10574 eval $cacheid=yes 10575 else $as_nop 10576 eval $cacheid=no 10577 fi 10578 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10579 conftest$ac_exeext conftest.$ac_ext 10580 fi 10581 10582 10583 CFLAGS="$xorg_testset_save_CFLAGS" 10584 10585 eval supported=\$$cacheid 10586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10587 printf "%s\n" "$supported" >&6; } 10588 if test "$supported" = "yes" ; then 10589 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10590 found="yes" 10591 fi 10592 fi 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 xorg_testset_save_CFLAGS="$CFLAGS" 10609 10610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10613 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10614 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10615 then : 10616 printf %s "(cached) " >&6 10617 else $as_nop 10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10619 /* end confdefs.h. */ 10620 int i; 10621 _ACEOF 10622 if ac_fn_c_try_compile "$LINENO" 10623 then : 10624 xorg_cv_cc_flag_unknown_warning_option=yes 10625 else $as_nop 10626 xorg_cv_cc_flag_unknown_warning_option=no 10627 fi 10628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10629 fi 10630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10631 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10633 CFLAGS="$xorg_testset_save_CFLAGS" 10634 fi 10635 10636 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10639 fi 10640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10642 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10643 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10644 then : 10645 printf %s "(cached) " >&6 10646 else $as_nop 10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10648 /* end confdefs.h. */ 10649 int i; 10650 _ACEOF 10651 if ac_fn_c_try_compile "$LINENO" 10652 then : 10653 xorg_cv_cc_flag_unused_command_line_argument=yes 10654 else $as_nop 10655 xorg_cv_cc_flag_unused_command_line_argument=no 10656 fi 10657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10658 fi 10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10660 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10662 CFLAGS="$xorg_testset_save_CFLAGS" 10663 fi 10664 10665 found="no" 10666 10667 if test $found = "no" ; then 10668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10670 fi 10671 10672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10674 fi 10675 10676 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10677 10678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10679 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10680 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10681 if eval test \${$cacheid+y} 10682 then : 10683 printf %s "(cached) " >&6 10684 else $as_nop 10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10686 /* end confdefs.h. */ 10687 int i; 10688 int 10689 main (void) 10690 { 10691 10692 ; 10693 return 0; 10694 } 10695 _ACEOF 10696 if ac_fn_c_try_link "$LINENO" 10697 then : 10698 eval $cacheid=yes 10699 else $as_nop 10700 eval $cacheid=no 10701 fi 10702 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10703 conftest$ac_exeext conftest.$ac_ext 10704 fi 10705 10706 10707 CFLAGS="$xorg_testset_save_CFLAGS" 10708 10709 eval supported=\$$cacheid 10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10711 printf "%s\n" "$supported" >&6; } 10712 if test "$supported" = "yes" ; then 10713 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10714 found="yes" 10715 fi 10716 fi 10717 10718 10719 fi 10720 10721 10722 10723 10724 10725 10726 10727 CWARNFLAGS="$BASE_CFLAGS" 10728 if test "x$GCC" = xyes ; then 10729 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10730 fi 10731 10732 10733 10734 10735 10736 10737 10738 10739 # Check whether --enable-strict-compilation was given. 10740 if test ${enable_strict_compilation+y} 10741 then : 10742 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10743 else $as_nop 10744 STRICT_COMPILE=no 10745 fi 10746 10747 10748 10749 10750 10751 10752 STRICT_CFLAGS="" 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 xorg_testset_save_CFLAGS="$CFLAGS" 10767 10768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10771 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10772 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10773 then : 10774 printf %s "(cached) " >&6 10775 else $as_nop 10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10777 /* end confdefs.h. */ 10778 int i; 10779 _ACEOF 10780 if ac_fn_c_try_compile "$LINENO" 10781 then : 10782 xorg_cv_cc_flag_unknown_warning_option=yes 10783 else $as_nop 10784 xorg_cv_cc_flag_unknown_warning_option=no 10785 fi 10786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10787 fi 10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10789 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10791 CFLAGS="$xorg_testset_save_CFLAGS" 10792 fi 10793 10794 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10797 fi 10798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10800 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10801 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10802 then : 10803 printf %s "(cached) " >&6 10804 else $as_nop 10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10806 /* end confdefs.h. */ 10807 int i; 10808 _ACEOF 10809 if ac_fn_c_try_compile "$LINENO" 10810 then : 10811 xorg_cv_cc_flag_unused_command_line_argument=yes 10812 else $as_nop 10813 xorg_cv_cc_flag_unused_command_line_argument=no 10814 fi 10815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10816 fi 10817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10818 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10820 CFLAGS="$xorg_testset_save_CFLAGS" 10821 fi 10822 10823 found="no" 10824 10825 if test $found = "no" ; then 10826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10828 fi 10829 10830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10832 fi 10833 10834 CFLAGS="$CFLAGS -pedantic" 10835 10836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10837 printf %s "checking if $CC supports -pedantic... " >&6; } 10838 cacheid=xorg_cv_cc_flag__pedantic 10839 if eval test \${$cacheid+y} 10840 then : 10841 printf %s "(cached) " >&6 10842 else $as_nop 10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10844 /* end confdefs.h. */ 10845 int i; 10846 int 10847 main (void) 10848 { 10849 10850 ; 10851 return 0; 10852 } 10853 _ACEOF 10854 if ac_fn_c_try_link "$LINENO" 10855 then : 10856 eval $cacheid=yes 10857 else $as_nop 10858 eval $cacheid=no 10859 fi 10860 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10861 conftest$ac_exeext conftest.$ac_ext 10862 fi 10863 10864 10865 CFLAGS="$xorg_testset_save_CFLAGS" 10866 10867 eval supported=\$$cacheid 10868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10869 printf "%s\n" "$supported" >&6; } 10870 if test "$supported" = "yes" ; then 10871 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10872 found="yes" 10873 fi 10874 fi 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 xorg_testset_save_CFLAGS="$CFLAGS" 10891 10892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10895 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10896 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10897 then : 10898 printf %s "(cached) " >&6 10899 else $as_nop 10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10901 /* end confdefs.h. */ 10902 int i; 10903 _ACEOF 10904 if ac_fn_c_try_compile "$LINENO" 10905 then : 10906 xorg_cv_cc_flag_unknown_warning_option=yes 10907 else $as_nop 10908 xorg_cv_cc_flag_unknown_warning_option=no 10909 fi 10910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10911 fi 10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10913 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10915 CFLAGS="$xorg_testset_save_CFLAGS" 10916 fi 10917 10918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10921 fi 10922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10924 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10925 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10926 then : 10927 printf %s "(cached) " >&6 10928 else $as_nop 10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10930 /* end confdefs.h. */ 10931 int i; 10932 _ACEOF 10933 if ac_fn_c_try_compile "$LINENO" 10934 then : 10935 xorg_cv_cc_flag_unused_command_line_argument=yes 10936 else $as_nop 10937 xorg_cv_cc_flag_unused_command_line_argument=no 10938 fi 10939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10940 fi 10941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10942 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10944 CFLAGS="$xorg_testset_save_CFLAGS" 10945 fi 10946 10947 found="no" 10948 10949 if test $found = "no" ; then 10950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10952 fi 10953 10954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10956 fi 10957 10958 CFLAGS="$CFLAGS -Werror" 10959 10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10961 printf %s "checking if $CC supports -Werror... " >&6; } 10962 cacheid=xorg_cv_cc_flag__Werror 10963 if eval test \${$cacheid+y} 10964 then : 10965 printf %s "(cached) " >&6 10966 else $as_nop 10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10968 /* end confdefs.h. */ 10969 int i; 10970 int 10971 main (void) 10972 { 10973 10974 ; 10975 return 0; 10976 } 10977 _ACEOF 10978 if ac_fn_c_try_link "$LINENO" 10979 then : 10980 eval $cacheid=yes 10981 else $as_nop 10982 eval $cacheid=no 10983 fi 10984 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10985 conftest$ac_exeext conftest.$ac_ext 10986 fi 10987 10988 10989 CFLAGS="$xorg_testset_save_CFLAGS" 10990 10991 eval supported=\$$cacheid 10992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10993 printf "%s\n" "$supported" >&6; } 10994 if test "$supported" = "yes" ; then 10995 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10996 found="yes" 10997 fi 10998 fi 10999 11000 if test $found = "no" ; then 11001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11003 fi 11004 11005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11007 fi 11008 11009 CFLAGS="$CFLAGS -errwarn" 11010 11011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11012 printf %s "checking if $CC supports -errwarn... " >&6; } 11013 cacheid=xorg_cv_cc_flag__errwarn 11014 if eval test \${$cacheid+y} 11015 then : 11016 printf %s "(cached) " >&6 11017 else $as_nop 11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11019 /* end confdefs.h. */ 11020 int i; 11021 int 11022 main (void) 11023 { 11024 11025 ; 11026 return 0; 11027 } 11028 _ACEOF 11029 if ac_fn_c_try_link "$LINENO" 11030 then : 11031 eval $cacheid=yes 11032 else $as_nop 11033 eval $cacheid=no 11034 fi 11035 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11036 conftest$ac_exeext conftest.$ac_ext 11037 fi 11038 11039 11040 CFLAGS="$xorg_testset_save_CFLAGS" 11041 11042 eval supported=\$$cacheid 11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11044 printf "%s\n" "$supported" >&6; } 11045 if test "$supported" = "yes" ; then 11046 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11047 found="yes" 11048 fi 11049 fi 11050 11051 11052 11053 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11054 # activate it with -Werror, so we add it here explicitly. 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 xorg_testset_save_CFLAGS="$CFLAGS" 11069 11070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11073 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11074 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11075 then : 11076 printf %s "(cached) " >&6 11077 else $as_nop 11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11079 /* end confdefs.h. */ 11080 int i; 11081 _ACEOF 11082 if ac_fn_c_try_compile "$LINENO" 11083 then : 11084 xorg_cv_cc_flag_unknown_warning_option=yes 11085 else $as_nop 11086 xorg_cv_cc_flag_unknown_warning_option=no 11087 fi 11088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11089 fi 11090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11091 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11093 CFLAGS="$xorg_testset_save_CFLAGS" 11094 fi 11095 11096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11099 fi 11100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11102 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11103 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11104 then : 11105 printf %s "(cached) " >&6 11106 else $as_nop 11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11108 /* end confdefs.h. */ 11109 int i; 11110 _ACEOF 11111 if ac_fn_c_try_compile "$LINENO" 11112 then : 11113 xorg_cv_cc_flag_unused_command_line_argument=yes 11114 else $as_nop 11115 xorg_cv_cc_flag_unused_command_line_argument=no 11116 fi 11117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11118 fi 11119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11120 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11122 CFLAGS="$xorg_testset_save_CFLAGS" 11123 fi 11124 11125 found="no" 11126 11127 if test $found = "no" ; then 11128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11130 fi 11131 11132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11134 fi 11135 11136 CFLAGS="$CFLAGS -Werror=attributes" 11137 11138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11139 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11140 cacheid=xorg_cv_cc_flag__Werror_attributes 11141 if eval test \${$cacheid+y} 11142 then : 11143 printf %s "(cached) " >&6 11144 else $as_nop 11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11146 /* end confdefs.h. */ 11147 int i; 11148 int 11149 main (void) 11150 { 11151 11152 ; 11153 return 0; 11154 } 11155 _ACEOF 11156 if ac_fn_c_try_link "$LINENO" 11157 then : 11158 eval $cacheid=yes 11159 else $as_nop 11160 eval $cacheid=no 11161 fi 11162 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11163 conftest$ac_exeext conftest.$ac_ext 11164 fi 11165 11166 11167 CFLAGS="$xorg_testset_save_CFLAGS" 11168 11169 eval supported=\$$cacheid 11170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11171 printf "%s\n" "$supported" >&6; } 11172 if test "$supported" = "yes" ; then 11173 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11174 found="yes" 11175 fi 11176 fi 11177 11178 11179 11180 if test "x$STRICT_COMPILE" = "xyes"; then 11181 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11182 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11183 fi 11184 11185 11186 11187 11188 11189 11190 11191 11192 cat >>confdefs.h <<_ACEOF 11193 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11194 _ACEOF 11195 11196 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11197 if test "x$PVM" = "x"; then 11198 PVM="0" 11199 fi 11200 11201 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11202 11203 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11204 if test "x$PVP" = "x"; then 11205 PVP="0" 11206 fi 11207 11208 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11209 11210 11211 11212 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11213 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11214 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11215 touch \$(top_srcdir)/ChangeLog; \ 11216 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11217 11218 11219 11220 11221 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11222 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11223 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11224 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11225 touch \$(top_srcdir)/INSTALL; \ 11226 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11227 11228 11229 11230 11231 11232 11233 case $host_os in 11234 solaris*) 11235 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11236 # check for a man page file found in later versions that use 11237 # traditional section numbers instead 11238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11239 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11240 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11241 then : 11242 printf %s "(cached) " >&6 11243 else $as_nop 11244 test "$cross_compiling" = yes && 11245 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11246 if test -r "/usr/share/man/man7/attributes.7"; then 11247 ac_cv_file__usr_share_man_man7_attributes_7=yes 11248 else 11249 ac_cv_file__usr_share_man_man7_attributes_7=no 11250 fi 11251 fi 11252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11253 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11254 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11255 then : 11256 SYSV_MAN_SECTIONS=false 11257 else $as_nop 11258 SYSV_MAN_SECTIONS=true 11259 fi 11260 11261 ;; 11262 *) SYSV_MAN_SECTIONS=false ;; 11263 esac 11264 11265 if test x$APP_MAN_SUFFIX = x ; then 11266 APP_MAN_SUFFIX=1 11267 fi 11268 if test x$APP_MAN_DIR = x ; then 11269 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11270 fi 11271 11272 if test x$LIB_MAN_SUFFIX = x ; then 11273 LIB_MAN_SUFFIX=3 11274 fi 11275 if test x$LIB_MAN_DIR = x ; then 11276 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11277 fi 11278 11279 if test x$FILE_MAN_SUFFIX = x ; then 11280 case $SYSV_MAN_SECTIONS in 11281 true) FILE_MAN_SUFFIX=4 ;; 11282 *) FILE_MAN_SUFFIX=5 ;; 11283 esac 11284 fi 11285 if test x$FILE_MAN_DIR = x ; then 11286 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11287 fi 11288 11289 if test x$MISC_MAN_SUFFIX = x ; then 11290 case $SYSV_MAN_SECTIONS in 11291 true) MISC_MAN_SUFFIX=5 ;; 11292 *) MISC_MAN_SUFFIX=7 ;; 11293 esac 11294 fi 11295 if test x$MISC_MAN_DIR = x ; then 11296 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11297 fi 11298 11299 if test x$DRIVER_MAN_SUFFIX = x ; then 11300 case $SYSV_MAN_SECTIONS in 11301 true) DRIVER_MAN_SUFFIX=7 ;; 11302 *) DRIVER_MAN_SUFFIX=4 ;; 11303 esac 11304 fi 11305 if test x$DRIVER_MAN_DIR = x ; then 11306 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11307 fi 11308 11309 if test x$ADMIN_MAN_SUFFIX = x ; then 11310 case $SYSV_MAN_SECTIONS in 11311 true) ADMIN_MAN_SUFFIX=1m ;; 11312 *) ADMIN_MAN_SUFFIX=8 ;; 11313 esac 11314 fi 11315 if test x$ADMIN_MAN_DIR = x ; then 11316 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11317 fi 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 XORG_MAN_PAGE="X Version 11" 11334 11335 MAN_SUBSTS="\ 11336 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11337 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11338 -e 's|__xservername__|Xorg|g' \ 11339 -e 's|__xconfigfile__|xorg.conf|g' \ 11340 -e 's|__projectroot__|\$(prefix)|g' \ 11341 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11342 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11343 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11344 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11345 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11346 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11347 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11348 11349 11350 11351 # Check whether --enable-silent-rules was given. 11352 if test ${enable_silent_rules+y} 11353 then : 11354 enableval=$enable_silent_rules; 11355 fi 11356 11357 case $enable_silent_rules in # ((( 11358 yes) AM_DEFAULT_VERBOSITY=0;; 11359 no) AM_DEFAULT_VERBOSITY=1;; 11360 *) AM_DEFAULT_VERBOSITY=0;; 11361 esac 11362 am_make=${MAKE-make} 11363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11364 printf %s "checking whether $am_make supports nested variables... " >&6; } 11365 if test ${am_cv_make_support_nested_variables+y} 11366 then : 11367 printf %s "(cached) " >&6 11368 else $as_nop 11369 if printf "%s\n" 'TRUE=$(BAR$(V)) 11370 BAR0=false 11371 BAR1=true 11372 V=1 11373 am__doit: 11374 @$(TRUE) 11375 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11376 am_cv_make_support_nested_variables=yes 11377 else 11378 am_cv_make_support_nested_variables=no 11379 fi 11380 fi 11381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11382 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11383 if test $am_cv_make_support_nested_variables = yes; then 11384 AM_V='$(V)' 11385 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11386 else 11387 AM_V=$AM_DEFAULT_VERBOSITY 11388 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11389 fi 11390 AM_BACKSLASH='\' 11391 11392 11393 11394 11395 ac_ext=c 11396 ac_cpp='$CPP $CPPFLAGS' 11397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11399 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 11401 printf %s "checking how to run the C preprocessor... " >&6; } 11402 # On Suns, sometimes $CPP names a directory. 11403 if test -n "$CPP" && test -d "$CPP"; then 11404 CPP= 11405 fi 11406 if test -z "$CPP"; then 11407 if test ${ac_cv_prog_CPP+y} 11408 then : 11409 printf %s "(cached) " >&6 11410 else $as_nop 11411 # Double quotes because $CC needs to be expanded 11412 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 11413 do 11414 ac_preproc_ok=false 11415 for ac_c_preproc_warn_flag in '' yes 11416 do 11417 # Use a header file that comes with gcc, so configuring glibc 11418 # with a fresh cross-compiler works. 11419 # On the NeXT, cc -E runs the code through the compiler's parser, 11420 # not just through cpp. "Syntax error" is here to catch this case. 11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11422 /* end confdefs.h. */ 11423 #include <limits.h> 11424 Syntax error 11425 _ACEOF 11426 if ac_fn_c_try_cpp "$LINENO" 11427 then : 11428 11429 else $as_nop 11430 # Broken: fails on valid input. 11431 continue 11432 fi 11433 rm -f conftest.err conftest.i conftest.$ac_ext 11434 11435 # OK, works on sane cases. Now check whether nonexistent headers 11436 # can be detected and how. 11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11438 /* end confdefs.h. */ 11439 #include <ac_nonexistent.h> 11440 _ACEOF 11441 if ac_fn_c_try_cpp "$LINENO" 11442 then : 11443 # Broken: success on invalid input. 11444 continue 11445 else $as_nop 11446 # Passes both tests. 11447 ac_preproc_ok=: 11448 break 11449 fi 11450 rm -f conftest.err conftest.i conftest.$ac_ext 11451 11452 done 11453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11454 rm -f conftest.i conftest.err conftest.$ac_ext 11455 if $ac_preproc_ok 11456 then : 11457 break 11458 fi 11459 11460 done 11461 ac_cv_prog_CPP=$CPP 11462 11463 fi 11464 CPP=$ac_cv_prog_CPP 11465 else 11466 ac_cv_prog_CPP=$CPP 11467 fi 11468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 11469 printf "%s\n" "$CPP" >&6; } 11470 ac_preproc_ok=false 11471 for ac_c_preproc_warn_flag in '' yes 11472 do 11473 # Use a header file that comes with gcc, so configuring glibc 11474 # with a fresh cross-compiler works. 11475 # On the NeXT, cc -E runs the code through the compiler's parser, 11476 # not just through cpp. "Syntax error" is here to catch this case. 11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11478 /* end confdefs.h. */ 11479 #include <limits.h> 11480 Syntax error 11481 _ACEOF 11482 if ac_fn_c_try_cpp "$LINENO" 11483 then : 11484 11485 else $as_nop 11486 # Broken: fails on valid input. 11487 continue 11488 fi 11489 rm -f conftest.err conftest.i conftest.$ac_ext 11490 11491 # OK, works on sane cases. Now check whether nonexistent headers 11492 # can be detected and how. 11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11494 /* end confdefs.h. */ 11495 #include <ac_nonexistent.h> 11496 _ACEOF 11497 if ac_fn_c_try_cpp "$LINENO" 11498 then : 11499 # Broken: success on invalid input. 11500 continue 11501 else $as_nop 11502 # Passes both tests. 11503 ac_preproc_ok=: 11504 break 11505 fi 11506 rm -f conftest.err conftest.i conftest.$ac_ext 11507 11508 done 11509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11510 rm -f conftest.i conftest.err conftest.$ac_ext 11511 if $ac_preproc_ok 11512 then : 11513 11514 else $as_nop 11515 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11516 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11517 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 11518 See \`config.log' for more details" "$LINENO" 5; } 11519 fi 11520 11521 ac_ext=c 11522 ac_cpp='$CPP $CPPFLAGS' 11523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11525 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11526 11527 11528 11529 if test -n "$ac_tool_prefix"; then 11530 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 11531 set dummy ${ac_tool_prefix}cpp; ac_word=$2 11532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11533 printf %s "checking for $ac_word... " >&6; } 11534 if test ${ac_cv_path_RAWCPP+y} 11535 then : 11536 printf %s "(cached) " >&6 11537 else $as_nop 11538 case $RAWCPP in 11539 [\\/]* | ?:[\\/]*) 11540 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 11541 ;; 11542 *) 11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11544 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 11545 for as_dir in $as_dummy 11546 do 11547 IFS=$as_save_IFS 11548 case $as_dir in #((( 11549 '') as_dir=./ ;; 11550 */) ;; 11551 *) as_dir=$as_dir/ ;; 11552 esac 11553 for ac_exec_ext in '' $ac_executable_extensions; do 11554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11555 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext" 11556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11557 break 2 11558 fi 11559 done 11560 done 11561 IFS=$as_save_IFS 11562 11563 ;; 11564 esac 11565 fi 11566 RAWCPP=$ac_cv_path_RAWCPP 11567 if test -n "$RAWCPP"; then 11568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 11569 printf "%s\n" "$RAWCPP" >&6; } 11570 else 11571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11572 printf "%s\n" "no" >&6; } 11573 fi 11574 11575 11576 fi 11577 if test -z "$ac_cv_path_RAWCPP"; then 11578 ac_pt_RAWCPP=$RAWCPP 11579 # Extract the first word of "cpp", so it can be a program name with args. 11580 set dummy cpp; ac_word=$2 11581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11582 printf %s "checking for $ac_word... " >&6; } 11583 if test ${ac_cv_path_ac_pt_RAWCPP+y} 11584 then : 11585 printf %s "(cached) " >&6 11586 else $as_nop 11587 case $ac_pt_RAWCPP in 11588 [\\/]* | ?:[\\/]*) 11589 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 11590 ;; 11591 *) 11592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11593 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 11594 for as_dir in $as_dummy 11595 do 11596 IFS=$as_save_IFS 11597 case $as_dir in #((( 11598 '') as_dir=./ ;; 11599 */) ;; 11600 *) as_dir=$as_dir/ ;; 11601 esac 11602 for ac_exec_ext in '' $ac_executable_extensions; do 11603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11604 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext" 11605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11606 break 2 11607 fi 11608 done 11609 done 11610 IFS=$as_save_IFS 11611 11612 ;; 11613 esac 11614 fi 11615 ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 11616 if test -n "$ac_pt_RAWCPP"; then 11617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 11618 printf "%s\n" "$ac_pt_RAWCPP" >&6; } 11619 else 11620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11621 printf "%s\n" "no" >&6; } 11622 fi 11623 11624 if test "x$ac_pt_RAWCPP" = x; then 11625 RAWCPP="${CPP}" 11626 else 11627 case $cross_compiling:$ac_tool_warned in 11628 yes:) 11629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11630 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11631 ac_tool_warned=yes ;; 11632 esac 11633 RAWCPP=$ac_pt_RAWCPP 11634 fi 11635 else 11636 RAWCPP="$ac_cv_path_RAWCPP" 11637 fi 11638 11639 11640 # Check for flag to avoid builtin definitions - assumes unix is predefined, 11641 # which is not the best choice for supporting other OS'es, but covers most 11642 # of the ones we need for now. 11643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 11644 printf %s "checking if $RAWCPP requires -undef... " >&6; } 11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11646 /* end confdefs.h. */ 11647 Does cpp redefine unix ? 11648 _ACEOF 11649 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 11650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11651 printf "%s\n" "no" >&6; } 11652 else 11653 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 11654 RAWCPPFLAGS=-undef 11655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11656 printf "%s\n" "yes" >&6; } 11657 # under Cygwin unix is still defined even with -undef 11658 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 11659 RAWCPPFLAGS="-undef -ansi" 11660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 11661 printf "%s\n" "yes, with -ansi" >&6; } 11662 else 11663 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 11664 fi 11665 fi 11666 rm -f conftest.$ac_ext 11667 11668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 11669 printf %s "checking if $RAWCPP requires -traditional... " >&6; } 11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11671 /* end confdefs.h. */ 11672 Does cpp preserve "whitespace"? 11673 _ACEOF 11674 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 11675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11676 printf "%s\n" "no" >&6; } 11677 else 11678 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 11679 TRADITIONALCPPFLAGS="-traditional" 11680 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11682 printf "%s\n" "yes" >&6; } 11683 else 11684 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 11685 fi 11686 fi 11687 rm -f conftest.$ac_ext 11688 11689 11690 11691 11692 11693 # Build options 11694 DEFAULT_XRDB=xrdb 11695 DEFAULT_XMODMAP=xmodmap 11696 DEFAULT_TWM=twm 11697 DEFAULT_XCLOCK=xclock 11698 DEFAULT_XTERM=xterm 11699 # You always want to specify the full path to the X server 11700 DEFAULT_XSERVER=${bindir}/X 11701 DEFAULT_XAUTH=xauth 11702 DEFAULT_XINIT=xinit 11703 DEFAULT_XINITDIR=${sysconfdir}/X11/xinit 11704 11705 11706 # Check whether --with-xrdb was given. 11707 if test ${with_xrdb+y} 11708 then : 11709 withval=$with_xrdb; XRDB="$withval" 11710 else $as_nop 11711 XRDB="$DEFAULT_XRDB" 11712 fi 11713 11714 11715 11716 # Check whether --with-xmodmap was given. 11717 if test ${with_xmodmap+y} 11718 then : 11719 withval=$with_xmodmap; XMODMAP="$withval" 11720 else $as_nop 11721 XMODMAP="$DEFAULT_XMODMAP" 11722 fi 11723 11724 11725 11726 # Check whether --with-twm was given. 11727 if test ${with_twm+y} 11728 then : 11729 withval=$with_twm; TWM="$withval" 11730 else $as_nop 11731 TWM="$DEFAULT_TWM" 11732 fi 11733 11734 11735 11736 # Check whether --with-xclock was given. 11737 if test ${with_xclock+y} 11738 then : 11739 withval=$with_xclock; XCLOCK="$withval" 11740 else $as_nop 11741 XCLOCK="$DEFAULT_XCLOCK" 11742 fi 11743 11744 11745 11746 # Check whether --with-xterm was given. 11747 if test ${with_xterm+y} 11748 then : 11749 withval=$with_xterm; XTERM="$withval" 11750 else $as_nop 11751 XTERM="$DEFAULT_XTERM" 11752 fi 11753 11754 11755 11756 # Check whether --with-xserver was given. 11757 if test ${with_xserver+y} 11758 then : 11759 withval=$with_xserver; XSERVER="$withval" 11760 else $as_nop 11761 XSERVER="$DEFAULT_XSERVER" 11762 fi 11763 11764 11765 11766 # Check whether --with-xauth was given. 11767 if test ${with_xauth+y} 11768 then : 11769 withval=$with_xauth; XAUTH="$withval" 11770 else $as_nop 11771 XAUTH="$DEFAULT_XAUTH" 11772 fi 11773 11774 11775 11776 # Check whether --with-xinit was given. 11777 if test ${with_xinit+y} 11778 then : 11779 withval=$with_xinit; XINIT="$withval" 11780 else $as_nop 11781 XINIT="$DEFAULT_XINIT" 11782 fi 11783 11784 11785 11786 # Check whether --with-xinitdir was given. 11787 if test ${with_xinitdir+y} 11788 then : 11789 withval=$with_xinitdir; XINITDIR="$withval" 11790 else $as_nop 11791 XINITDIR="$DEFAULT_XINITDIR" 11792 fi 11793 11794 11795 11796 # Check whether --with-launchd was given. 11797 if test ${with_launchd+y} 11798 then : 11799 withval=$with_launchd; LAUNCHD=$withval 11800 else $as_nop 11801 LAUNCHD=auto 11802 fi 11803 11804 11805 # Check whether --with-launchagents-dir was given. 11806 if test ${with_launchagents_dir+y} 11807 then : 11808 withval=$with_launchagents_dir; launchagentsdir="${withval}" 11809 else $as_nop 11810 launchagentsdir="/Library/LaunchAgents" 11811 fi 11812 11813 11814 # Check whether --with-launchagent-xserver was given. 11815 if test ${with_launchagent_xserver+y} 11816 then : 11817 withval=$with_launchagent_xserver; launchagentxserver="${withval}" 11818 else $as_nop 11819 launchagentxserver="no" 11820 fi 11821 11822 11823 # Check whether --with-launchdaemons-dir was given. 11824 if test ${with_launchdaemons_dir+y} 11825 then : 11826 withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}" 11827 else $as_nop 11828 launchdaemonsdir="/Library/LaunchDaemons" 11829 fi 11830 11831 11832 # Check whether --with-launchd-id-prefix was given. 11833 if test ${with_launchd_id_prefix+y} 11834 then : 11835 withval=$with_launchd_id_prefix; bundleidprefix="${withval}" 11836 else $as_nop 11837 bundleidprefix="org.x" 11838 fi 11839 11840 11841 # Check whether --with-bundle-id-prefix was given. 11842 if test ${with_bundle_id_prefix+y} 11843 then : 11844 withval=$with_bundle_id_prefix; bundleidprefix="${withval}" 11845 fi 11846 11847 11848 if test "x$LAUNCHD" = "xauto"; then 11849 unset LAUNCHD 11850 # Extract the first word of "launchd", so it can be a program name with args. 11851 set dummy launchd; ac_word=$2 11852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11853 printf %s "checking for $ac_word... " >&6; } 11854 if test ${ac_cv_prog_LAUNCHD+y} 11855 then : 11856 printf %s "(cached) " >&6 11857 else $as_nop 11858 if test -n "$LAUNCHD"; then 11859 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 11860 else 11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11862 for as_dir in $PATH$PATH_SEPARATOR/sbin 11863 do 11864 IFS=$as_save_IFS 11865 case $as_dir in #((( 11866 '') as_dir=./ ;; 11867 */) ;; 11868 *) as_dir=$as_dir/ ;; 11869 esac 11870 for ac_exec_ext in '' $ac_executable_extensions; do 11871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11872 ac_cv_prog_LAUNCHD="yes" 11873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11874 break 2 11875 fi 11876 done 11877 done 11878 IFS=$as_save_IFS 11879 11880 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 11881 fi 11882 fi 11883 LAUNCHD=$ac_cv_prog_LAUNCHD 11884 if test -n "$LAUNCHD"; then 11885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 11886 printf "%s\n" "$LAUNCHD" >&6; } 11887 else 11888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11889 printf "%s\n" "no" >&6; } 11890 fi 11891 11892 11893 fi 11894 11895 11896 printf "%s\n" "#define BUNDLE_ID_PREFIX \"$bundleidprefix\"" >>confdefs.h 11897 11898 11899 11900 11901 11902 if test "x$LAUNCHD" = "xyes"; then 11903 LAUNCHD_TRUE= 11904 LAUNCHD_FALSE='#' 11905 else 11906 LAUNCHD_TRUE='#' 11907 LAUNCHD_FALSE= 11908 fi 11909 11910 if test "x$launchagentxserver" != "xno"; then 11911 LAUNCHAGENT_XSERVER_TRUE= 11912 LAUNCHAGENT_XSERVER_FALSE='#' 11913 else 11914 LAUNCHAGENT_XSERVER_TRUE='#' 11915 LAUNCHAGENT_XSERVER_FALSE= 11916 fi 11917 11918 11919 # Checks for library functions. 11920 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 11921 if test "x$ac_cv_func_asprintf" = xyes 11922 then : 11923 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 11924 11925 fi 11926 11927 11928 # Checks for pkg-config packages 11929 11930 pkg_failed=no 11931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5 11932 printf %s "checking for XINIT... " >&6; } 11933 11934 if test -n "$XINIT_CFLAGS"; then 11935 pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS" 11936 elif test -n "$PKG_CONFIG"; then 11937 if test -n "$PKG_CONFIG" && \ 11938 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.22\""; } >&5 11939 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.22") 2>&5 11940 ac_status=$? 11941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11942 test $ac_status = 0; }; then 11943 pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.22" 2>/dev/null` 11944 test "x$?" != "x0" && pkg_failed=yes 11945 else 11946 pkg_failed=yes 11947 fi 11948 else 11949 pkg_failed=untried 11950 fi 11951 if test -n "$XINIT_LIBS"; then 11952 pkg_cv_XINIT_LIBS="$XINIT_LIBS" 11953 elif test -n "$PKG_CONFIG"; then 11954 if test -n "$PKG_CONFIG" && \ 11955 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.22\""; } >&5 11956 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.22") 2>&5 11957 ac_status=$? 11958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11959 test $ac_status = 0; }; then 11960 pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.22" 2>/dev/null` 11961 test "x$?" != "x0" && pkg_failed=yes 11962 else 11963 pkg_failed=yes 11964 fi 11965 else 11966 pkg_failed=untried 11967 fi 11968 11969 11970 11971 if test $pkg_failed = yes; then 11972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11973 printf "%s\n" "no" >&6; } 11974 11975 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11976 _pkg_short_errors_supported=yes 11977 else 11978 _pkg_short_errors_supported=no 11979 fi 11980 if test $_pkg_short_errors_supported = yes; then 11981 XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.22" 2>&1` 11982 else 11983 XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.22" 2>&1` 11984 fi 11985 # Put the nasty error message in config.log where it belongs 11986 echo "$XINIT_PKG_ERRORS" >&5 11987 11988 as_fn_error $? "Package requirements (x11 xproto >= 7.0.22) were not met: 11989 11990 $XINIT_PKG_ERRORS 11991 11992 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11993 installed software in a non-standard prefix. 11994 11995 Alternatively, you may set the environment variables XINIT_CFLAGS 11996 and XINIT_LIBS to avoid the need to call pkg-config. 11997 See the pkg-config man page for more details." "$LINENO" 5 11998 elif test $pkg_failed = untried; then 11999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12000 printf "%s\n" "no" >&6; } 12001 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12002 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12003 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12004 is in your PATH or set the PKG_CONFIG environment variable to the full 12005 path to pkg-config. 12006 12007 Alternatively, you may set the environment variables XINIT_CFLAGS 12008 and XINIT_LIBS to avoid the need to call pkg-config. 12009 See the pkg-config man page for more details. 12010 12011 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12012 See \`config.log' for more details" "$LINENO" 5; } 12013 else 12014 XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS 12015 XINIT_LIBS=$pkg_cv_XINIT_LIBS 12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12017 printf "%s\n" "yes" >&6; } 12018 12019 fi 12020 12021 case $host_os in 12022 *bsd*) 12023 XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED" 12024 ;; 12025 esac 12026 12027 12028 for ac_prog in mcookie 12029 do 12030 # Extract the first word of "$ac_prog", so it can be a program name with args. 12031 set dummy $ac_prog; ac_word=$2 12032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12033 printf %s "checking for $ac_word... " >&6; } 12034 if test ${ac_cv_path_MCOOKIE+y} 12035 then : 12036 printf %s "(cached) " >&6 12037 else $as_nop 12038 case $MCOOKIE in 12039 [\\/]* | ?:[\\/]*) 12040 ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path. 12041 ;; 12042 *) 12043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12044 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin" 12045 for as_dir in $as_dummy 12046 do 12047 IFS=$as_save_IFS 12048 case $as_dir in #((( 12049 '') as_dir=./ ;; 12050 */) ;; 12051 *) as_dir=$as_dir/ ;; 12052 esac 12053 for ac_exec_ext in '' $ac_executable_extensions; do 12054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12055 ac_cv_path_MCOOKIE="$as_dir$ac_word$ac_exec_ext" 12056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12057 break 2 12058 fi 12059 done 12060 done 12061 IFS=$as_save_IFS 12062 12063 ;; 12064 esac 12065 fi 12066 MCOOKIE=$ac_cv_path_MCOOKIE 12067 if test -n "$MCOOKIE"; then 12068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5 12069 printf "%s\n" "$MCOOKIE" >&6; } 12070 else 12071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12072 printf "%s\n" "no" >&6; } 12073 fi 12074 12075 12076 test -n "$MCOOKIE" && break 12077 done 12078 test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE" 12079 12080 12081 # If mcookie not found, try openssl, else per-system fallbacks 12082 if test "x$MCOOKIE" = x ; then 12083 for ac_prog in openssl 12084 do 12085 # Extract the first word of "$ac_prog", so it can be a program name with args. 12086 set dummy $ac_prog; ac_word=$2 12087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12088 printf %s "checking for $ac_word... " >&6; } 12089 if test ${ac_cv_path_OPENSSL+y} 12090 then : 12091 printf %s "(cached) " >&6 12092 else $as_nop 12093 case $OPENSSL in 12094 [\\/]* | ?:[\\/]*) 12095 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path. 12096 ;; 12097 *) 12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12099 as_dummy="$PATH:/bin:/usr/bin:/usr/sbin:/usr/lib:/usr/libexec:/usr/local/bin" 12100 for as_dir in $as_dummy 12101 do 12102 IFS=$as_save_IFS 12103 case $as_dir in #((( 12104 '') as_dir=./ ;; 12105 */) ;; 12106 *) as_dir=$as_dir/ ;; 12107 esac 12108 for ac_exec_ext in '' $ac_executable_extensions; do 12109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12110 ac_cv_path_OPENSSL="$as_dir$ac_word$ac_exec_ext" 12111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12112 break 2 12113 fi 12114 done 12115 done 12116 IFS=$as_save_IFS 12117 12118 ;; 12119 esac 12120 fi 12121 OPENSSL=$ac_cv_path_OPENSSL 12122 if test -n "$OPENSSL"; then 12123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5 12124 printf "%s\n" "$OPENSSL" >&6; } 12125 else 12126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12127 printf "%s\n" "no" >&6; } 12128 fi 12129 12130 12131 test -n "$OPENSSL" && break 12132 done 12133 test -n "$OPENSSL" || OPENSSL="$OPENSSL" 12134 12135 if test "x$OPENSSL" != x ; then 12136 MCOOKIE="$OPENSSL rand -hex 16" 12137 else 12138 case $host_os in 12139 *solaris*) 12140 MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '" 12141 ;; 12142 esac 12143 fi 12144 fi 12145 if test "x$MCOOKIE" != x ; then 12146 STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"' 12147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&5 12148 printf "%s\n" "$as_me: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&6;} 12149 fi 12150 12151 12152 # Additional substitutions in startx, xinitrc & man pages 12153 SHELL_CMD="/bin/sh" 12154 XSERVERNAME="Xorg" 12155 XCONFIGFILE="xorg.conf" 12156 XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})' 12157 case $host_os in 12158 cygwin*) 12159 XSERVERNAME="XWin" 12160 XCONFIGFILE="XWinrc" 12161 ;; 12162 darwin*) 12163 XSERVERNAME="Xquartz" 12164 XCONFIGFILE="defaults" 12165 XCONFIGFILEMAN='defaults (1)' 12166 ;; 12167 *solaris*) 12168 SHELL_CMD="/bin/ksh" 12169 ;; 12170 esac 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 ac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile" 12187 12188 cat >confcache <<\_ACEOF 12189 # This file is a shell script that caches the results of configure 12190 # tests run on this system so they can be shared between configure 12191 # scripts and configure runs, see configure's option --config-cache. 12192 # It is not useful on other systems. If it contains results you don't 12193 # want to keep, you may remove or edit it. 12194 # 12195 # config.status only pays attention to the cache file if you give it 12196 # the --recheck option to rerun configure. 12197 # 12198 # `ac_cv_env_foo' variables (set or unset) will be overridden when 12199 # loading this file, other *unset* `ac_cv_foo' will be assigned the 12200 # following values. 12201 12202 _ACEOF 12203 12204 # The following way of writing the cache mishandles newlines in values, 12205 # but we know of no workaround that is simple, portable, and efficient. 12206 # So, we kill variables containing newlines. 12207 # Ultrix sh set writes to stderr and can't be redirected directly, 12208 # and sets the high bit in the cache file unless we assign to the vars. 12209 ( 12210 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12211 eval ac_val=\$$ac_var 12212 case $ac_val in #( 12213 *${as_nl}*) 12214 case $ac_var in #( 12215 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12216 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12217 esac 12218 case $ac_var in #( 12219 _ | IFS | as_nl) ;; #( 12220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12221 *) { eval $ac_var=; unset $ac_var;} ;; 12222 esac ;; 12223 esac 12224 done 12225 12226 (set) 2>&1 | 12227 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12228 *${as_nl}ac_space=\ *) 12229 # `set' does not quote correctly, so add quotes: double-quote 12230 # substitution turns \\\\ into \\, and sed turns \\ into \. 12231 sed -n \ 12232 "s/'/'\\\\''/g; 12233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12234 ;; #( 12235 *) 12236 # `set' quotes correctly as required by POSIX, so do not add quotes. 12237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12238 ;; 12239 esac | 12240 sort 12241 ) | 12242 sed ' 12243 /^ac_cv_env_/b end 12244 t clear 12245 :clear 12246 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12247 t end 12248 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12249 :end' >>confcache 12250 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12251 if test -w "$cache_file"; then 12252 if test "x$cache_file" != "x/dev/null"; then 12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12254 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12255 if test ! -f "$cache_file" || test -h "$cache_file"; then 12256 cat confcache >"$cache_file" 12257 else 12258 case $cache_file in #( 12259 */* | ?:*) 12260 mv -f confcache "$cache_file"$$ && 12261 mv -f "$cache_file"$$ "$cache_file" ;; #( 12262 *) 12263 mv -f confcache "$cache_file" ;; 12264 esac 12265 fi 12266 fi 12267 else 12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12269 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12270 fi 12271 fi 12272 rm -f confcache 12273 12274 test "x$prefix" = xNONE && prefix=$ac_default_prefix 12275 # Let make expand exec_prefix. 12276 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12277 12278 DEFS=-DHAVE_CONFIG_H 12279 12280 ac_libobjs= 12281 ac_ltlibobjs= 12282 U= 12283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12284 # 1. Remove the extension, and $U if already installed. 12285 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12286 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12288 # will be set to the directory where LIBOBJS objects are built. 12289 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12290 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12291 done 12292 LIBOBJS=$ac_libobjs 12293 12294 LTLIBOBJS=$ac_ltlibobjs 12295 12296 12297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12298 printf %s "checking that generated files are newer than configure... " >&6; } 12299 if test -n "$am_sleep_pid"; then 12300 # Hide warnings about reused PIDs. 12301 wait $am_sleep_pid 2>/dev/null 12302 fi 12303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12304 printf "%s\n" "done" >&6; } 12305 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12306 as_fn_error $? "conditional \"AMDEP\" was never defined. 12307 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12308 fi 12309 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12310 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12311 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12312 fi 12313 if test -n "$EXEEXT"; then 12314 am__EXEEXT_TRUE= 12315 am__EXEEXT_FALSE='#' 12316 else 12317 am__EXEEXT_TRUE='#' 12318 am__EXEEXT_FALSE= 12319 fi 12320 12321 if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then 12322 as_fn_error $? "conditional \"LAUNCHD\" was never defined. 12323 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12324 fi 12325 if test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then 12326 as_fn_error $? "conditional \"LAUNCHAGENT_XSERVER\" was never defined. 12327 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12328 fi 12329 12330 : "${CONFIG_STATUS=./config.status}" 12331 ac_write_fail=0 12332 ac_clean_files_save=$ac_clean_files 12333 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12335 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12336 as_write_fail=0 12337 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12338 #! $SHELL 12339 # Generated by $as_me. 12340 # Run this file to recreate the current configuration. 12341 # Compiler output produced by configure, useful for debugging 12342 # configure, is in config.log if it exists. 12343 12344 debug=false 12345 ac_cs_recheck=false 12346 ac_cs_silent=false 12347 12348 SHELL=\${CONFIG_SHELL-$SHELL} 12349 export SHELL 12350 _ASEOF 12351 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12352 ## -------------------- ## 12353 ## M4sh Initialization. ## 12354 ## -------------------- ## 12355 12356 # Be more Bourne compatible 12357 DUALCASE=1; export DUALCASE # for MKS sh 12358 as_nop=: 12359 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12360 then : 12361 emulate sh 12362 NULLCMD=: 12363 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12364 # is contrary to our usage. Disable this feature. 12365 alias -g '${1+"$@"}'='"$@"' 12366 setopt NO_GLOB_SUBST 12367 else $as_nop 12368 case `(set -o) 2>/dev/null` in #( 12369 *posix*) : 12370 set -o posix ;; #( 12371 *) : 12372 ;; 12373 esac 12374 fi 12375 12376 12377 12378 # Reset variables that may have inherited troublesome values from 12379 # the environment. 12380 12381 # IFS needs to be set, to space, tab, and newline, in precisely that order. 12382 # (If _AS_PATH_WALK were called with IFS unset, it would have the 12383 # side effect of setting IFS to empty, thus disabling word splitting.) 12384 # Quoting is to prevent editors from complaining about space-tab. 12385 as_nl=' 12386 ' 12387 export as_nl 12388 IFS=" "" $as_nl" 12389 12390 PS1='$ ' 12391 PS2='> ' 12392 PS4='+ ' 12393 12394 # Ensure predictable behavior from utilities with locale-dependent output. 12395 LC_ALL=C 12396 export LC_ALL 12397 LANGUAGE=C 12398 export LANGUAGE 12399 12400 # We cannot yet rely on "unset" to work, but we need these variables 12401 # to be unset--not just set to an empty or harmless value--now, to 12402 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12403 # also avoids known problems related to "unset" and subshell syntax 12404 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12405 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12406 do eval test \${$as_var+y} \ 12407 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12408 done 12409 12410 # Ensure that fds 0, 1, and 2 are open. 12411 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12412 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12413 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12414 12415 # The user is always right. 12416 if ${PATH_SEPARATOR+false} :; then 12417 PATH_SEPARATOR=: 12418 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12419 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12420 PATH_SEPARATOR=';' 12421 } 12422 fi 12423 12424 12425 # Find who we are. Look in the path if we contain no directory separator. 12426 as_myself= 12427 case $0 in #(( 12428 *[\\/]* ) as_myself=$0 ;; 12429 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12430 for as_dir in $PATH 12431 do 12432 IFS=$as_save_IFS 12433 case $as_dir in #((( 12434 '') as_dir=./ ;; 12435 */) ;; 12436 *) as_dir=$as_dir/ ;; 12437 esac 12438 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12439 done 12440 IFS=$as_save_IFS 12441 12442 ;; 12443 esac 12444 # We did not find ourselves, most probably we were run as `sh COMMAND' 12445 # in which case we are not to be found in the path. 12446 if test "x$as_myself" = x; then 12447 as_myself=$0 12448 fi 12449 if test ! -f "$as_myself"; then 12450 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12451 exit 1 12452 fi 12453 12454 12455 12456 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12457 # ---------------------------------------- 12458 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12459 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12460 # script with STATUS, using 1 if that was 0. 12461 as_fn_error () 12462 { 12463 as_status=$1; test $as_status -eq 0 && as_status=1 12464 if test "$4"; then 12465 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12467 fi 12468 printf "%s\n" "$as_me: error: $2" >&2 12469 as_fn_exit $as_status 12470 } # as_fn_error 12471 12472 12473 12474 # as_fn_set_status STATUS 12475 # ----------------------- 12476 # Set $? to STATUS, without forking. 12477 as_fn_set_status () 12478 { 12479 return $1 12480 } # as_fn_set_status 12481 12482 # as_fn_exit STATUS 12483 # ----------------- 12484 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12485 as_fn_exit () 12486 { 12487 set +e 12488 as_fn_set_status $1 12489 exit $1 12490 } # as_fn_exit 12491 12492 # as_fn_unset VAR 12493 # --------------- 12494 # Portably unset VAR. 12495 as_fn_unset () 12496 { 12497 { eval $1=; unset $1;} 12498 } 12499 as_unset=as_fn_unset 12500 12501 # as_fn_append VAR VALUE 12502 # ---------------------- 12503 # Append the text in VALUE to the end of the definition contained in VAR. Take 12504 # advantage of any shell optimizations that allow amortized linear growth over 12505 # repeated appends, instead of the typical quadratic growth present in naive 12506 # implementations. 12507 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12508 then : 12509 eval 'as_fn_append () 12510 { 12511 eval $1+=\$2 12512 }' 12513 else $as_nop 12514 as_fn_append () 12515 { 12516 eval $1=\$$1\$2 12517 } 12518 fi # as_fn_append 12519 12520 # as_fn_arith ARG... 12521 # ------------------ 12522 # Perform arithmetic evaluation on the ARGs, and store the result in the 12523 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12524 # must be portable across $(()) and expr. 12525 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12526 then : 12527 eval 'as_fn_arith () 12528 { 12529 as_val=$(( $* )) 12530 }' 12531 else $as_nop 12532 as_fn_arith () 12533 { 12534 as_val=`expr "$@" || test $? -eq 1` 12535 } 12536 fi # as_fn_arith 12537 12538 12539 if expr a : '\(a\)' >/dev/null 2>&1 && 12540 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12541 as_expr=expr 12542 else 12543 as_expr=false 12544 fi 12545 12546 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12547 as_basename=basename 12548 else 12549 as_basename=false 12550 fi 12551 12552 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12553 as_dirname=dirname 12554 else 12555 as_dirname=false 12556 fi 12557 12558 as_me=`$as_basename -- "$0" || 12559 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12560 X"$0" : 'X\(//\)$' \| \ 12561 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12562 printf "%s\n" X/"$0" | 12563 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12564 s//\1/ 12565 q 12566 } 12567 /^X\/\(\/\/\)$/{ 12568 s//\1/ 12569 q 12570 } 12571 /^X\/\(\/\).*/{ 12572 s//\1/ 12573 q 12574 } 12575 s/.*/./; q'` 12576 12577 # Avoid depending upon Character Ranges. 12578 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12579 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12580 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12581 as_cr_digits='0123456789' 12582 as_cr_alnum=$as_cr_Letters$as_cr_digits 12583 12584 12585 # Determine whether it's possible to make 'echo' print without a newline. 12586 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12587 # for compatibility with existing Makefiles. 12588 ECHO_C= ECHO_N= ECHO_T= 12589 case `echo -n x` in #((((( 12590 -n*) 12591 case `echo 'xy\c'` in 12592 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12593 xy) ECHO_C='\c';; 12594 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12595 ECHO_T=' ';; 12596 esac;; 12597 *) 12598 ECHO_N='-n';; 12599 esac 12600 12601 # For backward compatibility with old third-party macros, we provide 12602 # the shell variables $as_echo and $as_echo_n. New code should use 12603 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12604 as_echo='printf %s\n' 12605 as_echo_n='printf %s' 12606 12607 rm -f conf$$ conf$$.exe conf$$.file 12608 if test -d conf$$.dir; then 12609 rm -f conf$$.dir/conf$$.file 12610 else 12611 rm -f conf$$.dir 12612 mkdir conf$$.dir 2>/dev/null 12613 fi 12614 if (echo >conf$$.file) 2>/dev/null; then 12615 if ln -s conf$$.file conf$$ 2>/dev/null; then 12616 as_ln_s='ln -s' 12617 # ... but there are two gotchas: 12618 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12619 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12620 # In both cases, we have to default to `cp -pR'. 12621 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12622 as_ln_s='cp -pR' 12623 elif ln conf$$.file conf$$ 2>/dev/null; then 12624 as_ln_s=ln 12625 else 12626 as_ln_s='cp -pR' 12627 fi 12628 else 12629 as_ln_s='cp -pR' 12630 fi 12631 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12632 rmdir conf$$.dir 2>/dev/null 12633 12634 12635 # as_fn_mkdir_p 12636 # ------------- 12637 # Create "$as_dir" as a directory, including parents if necessary. 12638 as_fn_mkdir_p () 12639 { 12640 12641 case $as_dir in #( 12642 -*) as_dir=./$as_dir;; 12643 esac 12644 test -d "$as_dir" || eval $as_mkdir_p || { 12645 as_dirs= 12646 while :; do 12647 case $as_dir in #( 12648 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12649 *) as_qdir=$as_dir;; 12650 esac 12651 as_dirs="'$as_qdir' $as_dirs" 12652 as_dir=`$as_dirname -- "$as_dir" || 12653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12654 X"$as_dir" : 'X\(//\)[^/]' \| \ 12655 X"$as_dir" : 'X\(//\)$' \| \ 12656 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12657 printf "%s\n" X"$as_dir" | 12658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12659 s//\1/ 12660 q 12661 } 12662 /^X\(\/\/\)[^/].*/{ 12663 s//\1/ 12664 q 12665 } 12666 /^X\(\/\/\)$/{ 12667 s//\1/ 12668 q 12669 } 12670 /^X\(\/\).*/{ 12671 s//\1/ 12672 q 12673 } 12674 s/.*/./; q'` 12675 test -d "$as_dir" && break 12676 done 12677 test -z "$as_dirs" || eval "mkdir $as_dirs" 12678 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12679 12680 12681 } # as_fn_mkdir_p 12682 if mkdir -p . 2>/dev/null; then 12683 as_mkdir_p='mkdir -p "$as_dir"' 12684 else 12685 test -d ./-p && rmdir ./-p 12686 as_mkdir_p=false 12687 fi 12688 12689 12690 # as_fn_executable_p FILE 12691 # ----------------------- 12692 # Test if FILE is an executable regular file. 12693 as_fn_executable_p () 12694 { 12695 test -f "$1" && test -x "$1" 12696 } # as_fn_executable_p 12697 as_test_x='test -x' 12698 as_executable_p=as_fn_executable_p 12699 12700 # Sed expression to map a string onto a valid CPP name. 12701 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12702 12703 # Sed expression to map a string onto a valid variable name. 12704 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12705 12706 12707 exec 6>&1 12708 ## ----------------------------------- ## 12709 ## Main body of $CONFIG_STATUS script. ## 12710 ## ----------------------------------- ## 12711 _ASEOF 12712 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12713 12714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12715 # Save the log message, to keep $0 and so on meaningful, and to 12716 # report actual input values of CONFIG_FILES etc. instead of their 12717 # values after options handling. 12718 ac_log=" 12719 This file was extended by xinit $as_me 1.4.3, which was 12720 generated by GNU Autoconf 2.71. Invocation command line was 12721 12722 CONFIG_FILES = $CONFIG_FILES 12723 CONFIG_HEADERS = $CONFIG_HEADERS 12724 CONFIG_LINKS = $CONFIG_LINKS 12725 CONFIG_COMMANDS = $CONFIG_COMMANDS 12726 $ $0 $@ 12727 12728 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12729 " 12730 12731 _ACEOF 12732 12733 case $ac_config_files in *" 12734 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12735 esac 12736 12737 case $ac_config_headers in *" 12738 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12739 esac 12740 12741 12742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12743 # Files that config.status was made for. 12744 config_files="$ac_config_files" 12745 config_headers="$ac_config_headers" 12746 config_commands="$ac_config_commands" 12747 12748 _ACEOF 12749 12750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12751 ac_cs_usage="\ 12752 \`$as_me' instantiates files and other configuration actions 12753 from templates according to the current configuration. Unless the files 12754 and actions are specified as TAGs, all are instantiated by default. 12755 12756 Usage: $0 [OPTION]... [TAG]... 12757 12758 -h, --help print this help, then exit 12759 -V, --version print version number and configuration settings, then exit 12760 --config print configuration, then exit 12761 -q, --quiet, --silent 12762 do not print progress messages 12763 -d, --debug don't remove temporary files 12764 --recheck update $as_me by reconfiguring in the same conditions 12765 --file=FILE[:TEMPLATE] 12766 instantiate the configuration file FILE 12767 --header=FILE[:TEMPLATE] 12768 instantiate the configuration header FILE 12769 12770 Configuration files: 12771 $config_files 12772 12773 Configuration headers: 12774 $config_headers 12775 12776 Configuration commands: 12777 $config_commands 12778 12779 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>." 12780 12781 _ACEOF 12782 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12783 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12785 ac_cs_config='$ac_cs_config_escaped' 12786 ac_cs_version="\\ 12787 xinit config.status 1.4.3 12788 configured by $0, generated by GNU Autoconf 2.71, 12789 with options \\"\$ac_cs_config\\" 12790 12791 Copyright (C) 2021 Free Software Foundation, Inc. 12792 This config.status script is free software; the Free Software Foundation 12793 gives unlimited permission to copy, distribute and modify it." 12794 12795 ac_pwd='$ac_pwd' 12796 srcdir='$srcdir' 12797 INSTALL='$INSTALL' 12798 MKDIR_P='$MKDIR_P' 12799 AWK='$AWK' 12800 test -n "\$AWK" || AWK=awk 12801 _ACEOF 12802 12803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12804 # The default lists apply if the user does not specify any file. 12805 ac_need_defaults=: 12806 while test $# != 0 12807 do 12808 case $1 in 12809 --*=?*) 12810 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12812 ac_shift=: 12813 ;; 12814 --*=) 12815 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12816 ac_optarg= 12817 ac_shift=: 12818 ;; 12819 *) 12820 ac_option=$1 12821 ac_optarg=$2 12822 ac_shift=shift 12823 ;; 12824 esac 12825 12826 case $ac_option in 12827 # Handling of the options. 12828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12829 ac_cs_recheck=: ;; 12830 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12831 printf "%s\n" "$ac_cs_version"; exit ;; 12832 --config | --confi | --conf | --con | --co | --c ) 12833 printf "%s\n" "$ac_cs_config"; exit ;; 12834 --debug | --debu | --deb | --de | --d | -d ) 12835 debug=: ;; 12836 --file | --fil | --fi | --f ) 12837 $ac_shift 12838 case $ac_optarg in 12839 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12840 '') as_fn_error $? "missing file argument" ;; 12841 esac 12842 as_fn_append CONFIG_FILES " '$ac_optarg'" 12843 ac_need_defaults=false;; 12844 --header | --heade | --head | --hea ) 12845 $ac_shift 12846 case $ac_optarg in 12847 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12848 esac 12849 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12850 ac_need_defaults=false;; 12851 --he | --h) 12852 # Conflict between --help and --header 12853 as_fn_error $? "ambiguous option: \`$1' 12854 Try \`$0 --help' for more information.";; 12855 --help | --hel | -h ) 12856 printf "%s\n" "$ac_cs_usage"; exit ;; 12857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12858 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12859 ac_cs_silent=: ;; 12860 12861 # This is an error. 12862 -*) as_fn_error $? "unrecognized option: \`$1' 12863 Try \`$0 --help' for more information." ;; 12864 12865 *) as_fn_append ac_config_targets " $1" 12866 ac_need_defaults=false ;; 12867 12868 esac 12869 shift 12870 done 12871 12872 ac_configure_extra_args= 12873 12874 if $ac_cs_silent; then 12875 exec 6>/dev/null 12876 ac_configure_extra_args="$ac_configure_extra_args --silent" 12877 fi 12878 12879 _ACEOF 12880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12881 if \$ac_cs_recheck; then 12882 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12883 shift 12884 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12885 CONFIG_SHELL='$SHELL' 12886 export CONFIG_SHELL 12887 exec "\$@" 12888 fi 12889 12890 _ACEOF 12891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12892 exec 5>>config.log 12893 { 12894 echo 12895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12896 ## Running $as_me. ## 12897 _ASBOX 12898 printf "%s\n" "$ac_log" 12899 } >&5 12900 12901 _ACEOF 12902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12903 # 12904 # INIT-COMMANDS 12905 # 12906 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12907 12908 _ACEOF 12909 12910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12911 12912 # Handling of arguments. 12913 for ac_config_target in $ac_config_targets 12914 do 12915 case $ac_config_target in 12916 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12917 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12918 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12919 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12920 "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;; 12921 "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;; 12922 "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;; 12923 12924 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12925 esac 12926 done 12927 12928 12929 # If the user did not use the arguments to specify the items to instantiate, 12930 # then the envvar interface is used. Set only those that are not. 12931 # We use the long form for the default assignment because of an extremely 12932 # bizarre bug on SunOS 4.1.3. 12933 if $ac_need_defaults; then 12934 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12935 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12936 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12937 fi 12938 12939 # Have a temporary directory for convenience. Make it in the build tree 12940 # simply because there is no reason against having it here, and in addition, 12941 # creating and moving files from /tmp can sometimes cause problems. 12942 # Hook for its removal unless debugging. 12943 # Note that there is a small window in which the directory will not be cleaned: 12944 # after its creation but before its name has been assigned to `$tmp'. 12945 $debug || 12946 { 12947 tmp= ac_tmp= 12948 trap 'exit_status=$? 12949 : "${ac_tmp:=$tmp}" 12950 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12951 ' 0 12952 trap 'as_fn_exit 1' 1 2 13 15 12953 } 12954 # Create a (secure) tmp directory for tmp files. 12955 12956 { 12957 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12958 test -d "$tmp" 12959 } || 12960 { 12961 tmp=./conf$$-$RANDOM 12962 (umask 077 && mkdir "$tmp") 12963 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12964 ac_tmp=$tmp 12965 12966 # Set up the scripts for CONFIG_FILES section. 12967 # No need to generate them if there are no CONFIG_FILES. 12968 # This happens for instance with `./config.status config.h'. 12969 if test -n "$CONFIG_FILES"; then 12970 12971 12972 ac_cr=`echo X | tr X '\015'` 12973 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12974 # But we know of no other shell where ac_cr would be empty at this 12975 # point, so we can use a bashism as a fallback. 12976 if test "x$ac_cr" = x; then 12977 eval ac_cr=\$\'\\r\' 12978 fi 12979 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12980 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12981 ac_cs_awk_cr='\\r' 12982 else 12983 ac_cs_awk_cr=$ac_cr 12984 fi 12985 12986 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12987 _ACEOF 12988 12989 12990 { 12991 echo "cat >conf$$subs.awk <<_ACEOF" && 12992 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12993 echo "_ACEOF" 12994 } >conf$$subs.sh || 12995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12996 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12997 ac_delim='%!_!# ' 12998 for ac_last_try in false false false false false :; do 12999 . ./conf$$subs.sh || 13000 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13001 13002 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13003 if test $ac_delim_n = $ac_delim_num; then 13004 break 13005 elif $ac_last_try; then 13006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13007 else 13008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13009 fi 13010 done 13011 rm -f conf$$subs.sh 13012 13013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13014 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13015 _ACEOF 13016 sed -n ' 13017 h 13018 s/^/S["/; s/!.*/"]=/ 13019 p 13020 g 13021 s/^[^!]*!// 13022 :repl 13023 t repl 13024 s/'"$ac_delim"'$// 13025 t delim 13026 :nl 13027 h 13028 s/\(.\{148\}\)..*/\1/ 13029 t more1 13030 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13031 p 13032 n 13033 b repl 13034 :more1 13035 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13036 p 13037 g 13038 s/.\{148\}// 13039 t nl 13040 :delim 13041 h 13042 s/\(.\{148\}\)..*/\1/ 13043 t more2 13044 s/["\\]/\\&/g; s/^/"/; s/$/"/ 13045 p 13046 b 13047 :more2 13048 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13049 p 13050 g 13051 s/.\{148\}// 13052 t delim 13053 ' <conf$$subs.awk | sed ' 13054 /^[^""]/{ 13055 N 13056 s/\n// 13057 } 13058 ' >>$CONFIG_STATUS || ac_write_fail=1 13059 rm -f conf$$subs.awk 13060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13061 _ACAWK 13062 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13063 for (key in S) S_is_set[key] = 1 13064 FS = "" 13065 13066 } 13067 { 13068 line = $ 0 13069 nfields = split(line, field, "@") 13070 substed = 0 13071 len = length(field[1]) 13072 for (i = 2; i < nfields; i++) { 13073 key = field[i] 13074 keylen = length(key) 13075 if (S_is_set[key]) { 13076 value = S[key] 13077 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13078 len += length(value) + length(field[++i]) 13079 substed = 1 13080 } else 13081 len += 1 + keylen 13082 } 13083 13084 print line 13085 } 13086 13087 _ACAWK 13088 _ACEOF 13089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13090 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13091 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13092 else 13093 cat 13094 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13095 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13096 _ACEOF 13097 13098 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13099 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13100 # trailing colons and then remove the whole line if VPATH becomes empty 13101 # (actually we leave an empty line to preserve line numbers). 13102 if test "x$srcdir" = x.; then 13103 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13104 h 13105 s/// 13106 s/^/:/ 13107 s/[ ]*$/:/ 13108 s/:\$(srcdir):/:/g 13109 s/:\${srcdir}:/:/g 13110 s/:@srcdir@:/:/g 13111 s/^:*// 13112 s/:*$// 13113 x 13114 s/\(=[ ]*\).*/\1/ 13115 G 13116 s/\n// 13117 s/^[^=]*=[ ]*$// 13118 }' 13119 fi 13120 13121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13122 fi # test -n "$CONFIG_FILES" 13123 13124 # Set up the scripts for CONFIG_HEADERS section. 13125 # No need to generate them if there are no CONFIG_HEADERS. 13126 # This happens for instance with `./config.status Makefile'. 13127 if test -n "$CONFIG_HEADERS"; then 13128 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13129 BEGIN { 13130 _ACEOF 13131 13132 # Transform confdefs.h into an awk script `defines.awk', embedded as 13133 # here-document in config.status, that substitutes the proper values into 13134 # config.h.in to produce config.h. 13135 13136 # Create a delimiter string that does not exist in confdefs.h, to ease 13137 # handling of long lines. 13138 ac_delim='%!_!# ' 13139 for ac_last_try in false false :; do 13140 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13141 if test -z "$ac_tt"; then 13142 break 13143 elif $ac_last_try; then 13144 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13145 else 13146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13147 fi 13148 done 13149 13150 # For the awk script, D is an array of macro values keyed by name, 13151 # likewise P contains macro parameters if any. Preserve backslash 13152 # newline sequences. 13153 13154 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13155 sed -n ' 13156 s/.\{148\}/&'"$ac_delim"'/g 13157 t rset 13158 :rset 13159 s/^[ ]*#[ ]*define[ ][ ]*/ / 13160 t def 13161 d 13162 :def 13163 s/\\$// 13164 t bsnl 13165 s/["\\]/\\&/g 13166 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13167 D["\1"]=" \3"/p 13168 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13169 d 13170 :bsnl 13171 s/["\\]/\\&/g 13172 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13173 D["\1"]=" \3\\\\\\n"\\/p 13174 t cont 13175 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13176 t cont 13177 d 13178 :cont 13179 n 13180 s/.\{148\}/&'"$ac_delim"'/g 13181 t clear 13182 :clear 13183 s/\\$// 13184 t bsnlc 13185 s/["\\]/\\&/g; s/^/"/; s/$/"/p 13186 d 13187 :bsnlc 13188 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13189 b cont 13190 ' <confdefs.h | sed ' 13191 s/'"$ac_delim"'/"\\\ 13192 "/g' >>$CONFIG_STATUS || ac_write_fail=1 13193 13194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13195 for (key in D) D_is_set[key] = 1 13196 FS = "" 13197 } 13198 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13199 line = \$ 0 13200 split(line, arg, " ") 13201 if (arg[1] == "#") { 13202 defundef = arg[2] 13203 mac1 = arg[3] 13204 } else { 13205 defundef = substr(arg[1], 2) 13206 mac1 = arg[2] 13207 } 13208 split(mac1, mac2, "(") #) 13209 macro = mac2[1] 13210 prefix = substr(line, 1, index(line, defundef) - 1) 13211 if (D_is_set[macro]) { 13212 # Preserve the white space surrounding the "#". 13213 print prefix "define", macro P[macro] D[macro] 13214 next 13215 } else { 13216 # Replace #undef with comments. This is necessary, for example, 13217 # in the case of _POSIX_SOURCE, which is predefined and required 13218 # on some systems where configure will not decide to define it. 13219 if (defundef == "undef") { 13220 print "/*", prefix defundef, macro, "*/" 13221 next 13222 } 13223 } 13224 } 13225 { print } 13226 _ACAWK 13227 _ACEOF 13228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13229 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13230 fi # test -n "$CONFIG_HEADERS" 13231 13232 13233 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13234 shift 13235 for ac_tag 13236 do 13237 case $ac_tag in 13238 :[FHLC]) ac_mode=$ac_tag; continue;; 13239 esac 13240 case $ac_mode$ac_tag in 13241 :[FHL]*:*);; 13242 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13243 :[FH]-) ac_tag=-:-;; 13244 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13245 esac 13246 ac_save_IFS=$IFS 13247 IFS=: 13248 set x $ac_tag 13249 IFS=$ac_save_IFS 13250 shift 13251 ac_file=$1 13252 shift 13253 13254 case $ac_mode in 13255 :L) ac_source=$1;; 13256 :[FH]) 13257 ac_file_inputs= 13258 for ac_f 13259 do 13260 case $ac_f in 13261 -) ac_f="$ac_tmp/stdin";; 13262 *) # Look for the file first in the build tree, then in the source tree 13263 # (if the path is not absolute). The absolute path cannot be DOS-style, 13264 # because $ac_f cannot contain `:'. 13265 test -f "$ac_f" || 13266 case $ac_f in 13267 [\\/$]*) false;; 13268 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13269 esac || 13270 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13271 esac 13272 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13273 as_fn_append ac_file_inputs " '$ac_f'" 13274 done 13275 13276 # Let's still pretend it is `configure' which instantiates (i.e., don't 13277 # use $as_me), people would be surprised to read: 13278 # /* config.h. Generated by config.status. */ 13279 configure_input='Generated from '` 13280 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13281 `' by configure.' 13282 if test x"$ac_file" != x-; then 13283 configure_input="$ac_file. $configure_input" 13284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13285 printf "%s\n" "$as_me: creating $ac_file" >&6;} 13286 fi 13287 # Neutralize special characters interpreted by sed in replacement strings. 13288 case $configure_input in #( 13289 *\&* | *\|* | *\\* ) 13290 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13291 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13292 *) ac_sed_conf_input=$configure_input;; 13293 esac 13294 13295 case $ac_tag in 13296 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13298 esac 13299 ;; 13300 esac 13301 13302 ac_dir=`$as_dirname -- "$ac_file" || 13303 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13304 X"$ac_file" : 'X\(//\)[^/]' \| \ 13305 X"$ac_file" : 'X\(//\)$' \| \ 13306 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13307 printf "%s\n" X"$ac_file" | 13308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13309 s//\1/ 13310 q 13311 } 13312 /^X\(\/\/\)[^/].*/{ 13313 s//\1/ 13314 q 13315 } 13316 /^X\(\/\/\)$/{ 13317 s//\1/ 13318 q 13319 } 13320 /^X\(\/\).*/{ 13321 s//\1/ 13322 q 13323 } 13324 s/.*/./; q'` 13325 as_dir="$ac_dir"; as_fn_mkdir_p 13326 ac_builddir=. 13327 13328 case "$ac_dir" in 13329 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13330 *) 13331 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13332 # A ".." for each directory in $ac_dir_suffix. 13333 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13334 case $ac_top_builddir_sub in 13335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13337 esac ;; 13338 esac 13339 ac_abs_top_builddir=$ac_pwd 13340 ac_abs_builddir=$ac_pwd$ac_dir_suffix 13341 # for backward compatibility: 13342 ac_top_builddir=$ac_top_build_prefix 13343 13344 case $srcdir in 13345 .) # We are building in place. 13346 ac_srcdir=. 13347 ac_top_srcdir=$ac_top_builddir_sub 13348 ac_abs_top_srcdir=$ac_pwd ;; 13349 [\\/]* | ?:[\\/]* ) # Absolute name. 13350 ac_srcdir=$srcdir$ac_dir_suffix; 13351 ac_top_srcdir=$srcdir 13352 ac_abs_top_srcdir=$srcdir ;; 13353 *) # Relative name. 13354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13355 ac_top_srcdir=$ac_top_build_prefix$srcdir 13356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13357 esac 13358 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13359 13360 13361 case $ac_mode in 13362 :F) 13363 # 13364 # CONFIG_FILE 13365 # 13366 13367 case $INSTALL in 13368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13369 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13370 esac 13371 ac_MKDIR_P=$MKDIR_P 13372 case $MKDIR_P in 13373 [\\/$]* | ?:[\\/]* ) ;; 13374 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13375 esac 13376 _ACEOF 13377 13378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13379 # If the template does not know about datarootdir, expand it. 13380 # FIXME: This hack should be removed a few years after 2.60. 13381 ac_datarootdir_hack=; ac_datarootdir_seen= 13382 ac_sed_dataroot=' 13383 /datarootdir/ { 13384 p 13385 q 13386 } 13387 /@datadir@/p 13388 /@docdir@/p 13389 /@infodir@/p 13390 /@localedir@/p 13391 /@mandir@/p' 13392 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13393 *datarootdir*) ac_datarootdir_seen=yes;; 13394 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13396 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13397 _ACEOF 13398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13399 ac_datarootdir_hack=' 13400 s&@datadir@&$datadir&g 13401 s&@docdir@&$docdir&g 13402 s&@infodir@&$infodir&g 13403 s&@localedir@&$localedir&g 13404 s&@mandir@&$mandir&g 13405 s&\\\${datarootdir}&$datarootdir&g' ;; 13406 esac 13407 _ACEOF 13408 13409 # Neutralize VPATH when `$srcdir' = `.'. 13410 # Shell code in configure.ac might set extrasub. 13411 # FIXME: do we really want to maintain this feature? 13412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13413 ac_sed_extra="$ac_vpsub 13414 $extrasub 13415 _ACEOF 13416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13417 :t 13418 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13419 s|@configure_input@|$ac_sed_conf_input|;t t 13420 s&@top_builddir@&$ac_top_builddir_sub&;t t 13421 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13422 s&@srcdir@&$ac_srcdir&;t t 13423 s&@abs_srcdir@&$ac_abs_srcdir&;t t 13424 s&@top_srcdir@&$ac_top_srcdir&;t t 13425 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13426 s&@builddir@&$ac_builddir&;t t 13427 s&@abs_builddir@&$ac_abs_builddir&;t t 13428 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13429 s&@INSTALL@&$ac_INSTALL&;t t 13430 s&@MKDIR_P@&$ac_MKDIR_P&;t t 13431 $ac_datarootdir_hack 13432 " 13433 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13434 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13435 13436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13437 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13439 "$ac_tmp/out"`; test -z "$ac_out"; } && 13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13441 which seems to be undefined. Please make sure it is defined" >&5 13442 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13443 which seems to be undefined. Please make sure it is defined" >&2;} 13444 13445 rm -f "$ac_tmp/stdin" 13446 case $ac_file in 13447 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13448 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13449 esac \ 13450 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13451 ;; 13452 :H) 13453 # 13454 # CONFIG_HEADER 13455 # 13456 if test x"$ac_file" != x-; then 13457 { 13458 printf "%s\n" "/* $configure_input */" >&1 \ 13459 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13460 } >"$ac_tmp/config.h" \ 13461 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13462 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13464 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13465 else 13466 rm -f "$ac_file" 13467 mv "$ac_tmp/config.h" "$ac_file" \ 13468 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13469 fi 13470 else 13471 printf "%s\n" "/* $configure_input */" >&1 \ 13472 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13473 || as_fn_error $? "could not create -" "$LINENO" 5 13474 fi 13475 # Compute "$ac_file"'s index in $config_headers. 13476 _am_arg="$ac_file" 13477 _am_stamp_count=1 13478 for _am_header in $config_headers :; do 13479 case $_am_header in 13480 $_am_arg | $_am_arg:* ) 13481 break ;; 13482 * ) 13483 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13484 esac 13485 done 13486 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13487 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13488 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13489 X"$_am_arg" : 'X\(//\)$' \| \ 13490 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13491 printf "%s\n" X"$_am_arg" | 13492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13493 s//\1/ 13494 q 13495 } 13496 /^X\(\/\/\)[^/].*/{ 13497 s//\1/ 13498 q 13499 } 13500 /^X\(\/\/\)$/{ 13501 s//\1/ 13502 q 13503 } 13504 /^X\(\/\).*/{ 13505 s//\1/ 13506 q 13507 } 13508 s/.*/./; q'`/stamp-h$_am_stamp_count 13509 ;; 13510 13511 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13512 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13513 ;; 13514 esac 13515 13516 13517 case $ac_file$ac_mode in 13518 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13519 # Older Autoconf quotes --file arguments for eval, but not when files 13520 # are listed without --file. Let's play safe and only enable the eval 13521 # if we detect the quoting. 13522 # TODO: see whether this extra hack can be removed once we start 13523 # requiring Autoconf 2.70 or later. 13524 case $CONFIG_FILES in #( 13525 *\'*) : 13526 eval set x "$CONFIG_FILES" ;; #( 13527 *) : 13528 set x $CONFIG_FILES ;; #( 13529 *) : 13530 ;; 13531 esac 13532 shift 13533 # Used to flag and report bootstrapping failures. 13534 am_rc=0 13535 for am_mf 13536 do 13537 # Strip MF so we end up with the name of the file. 13538 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13539 # Check whether this is an Automake generated Makefile which includes 13540 # dependency-tracking related rules and includes. 13541 # Grep'ing the whole file directly is not great: AIX grep has a line 13542 # limit of 2048, but all sed's we know have understand at least 4000. 13543 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13544 || continue 13545 am_dirpart=`$as_dirname -- "$am_mf" || 13546 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13547 X"$am_mf" : 'X\(//\)[^/]' \| \ 13548 X"$am_mf" : 'X\(//\)$' \| \ 13549 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13550 printf "%s\n" X"$am_mf" | 13551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13552 s//\1/ 13553 q 13554 } 13555 /^X\(\/\/\)[^/].*/{ 13556 s//\1/ 13557 q 13558 } 13559 /^X\(\/\/\)$/{ 13560 s//\1/ 13561 q 13562 } 13563 /^X\(\/\).*/{ 13564 s//\1/ 13565 q 13566 } 13567 s/.*/./; q'` 13568 am_filepart=`$as_basename -- "$am_mf" || 13569 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13570 X"$am_mf" : 'X\(//\)$' \| \ 13571 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13572 printf "%s\n" X/"$am_mf" | 13573 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13574 s//\1/ 13575 q 13576 } 13577 /^X\/\(\/\/\)$/{ 13578 s//\1/ 13579 q 13580 } 13581 /^X\/\(\/\).*/{ 13582 s//\1/ 13583 q 13584 } 13585 s/.*/./; q'` 13586 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13587 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13588 | $MAKE -f - am--depfiles" >&5 13589 (cd "$am_dirpart" \ 13590 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13591 | $MAKE -f - am--depfiles) >&5 2>&5 13592 ac_status=$? 13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13594 (exit $ac_status); } || am_rc=$? 13595 done 13596 if test $am_rc -ne 0; then 13597 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13598 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13599 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13600 for automatic dependency tracking. If GNU make was not used, consider 13601 re-running the configure script with MAKE=\"gmake\" (or whatever is 13602 necessary). You can also try re-running configure with the 13603 '--disable-dependency-tracking' option to at least be able to build 13604 the package (albeit without support for automatic dependency tracking). 13605 See \`config.log' for more details" "$LINENO" 5; } 13606 fi 13607 { am_dirpart=; unset am_dirpart;} 13608 { am_filepart=; unset am_filepart;} 13609 { am_mf=; unset am_mf;} 13610 { am_rc=; unset am_rc;} 13611 rm -f conftest-deps.mk 13612 } 13613 ;; 13614 13615 esac 13616 done # for ac_tag 13617 13618 13619 as_fn_exit 0 13620 _ACEOF 13621 ac_clean_files=$ac_clean_files_save 13622 13623 test $ac_write_fail = 0 || 13624 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13625 13626 13627 # configure is writing to config.log, and then calls config.status. 13628 # config.status does its own redirection, appending to config.log. 13629 # Unfortunately, on DOS this fails, as config.log is still kept open 13630 # by configure, so config.status won't be able to write to it; its 13631 # output is simply discarded. So we exec the FD to /dev/null, 13632 # effectively closing config.log, so it can be properly (re)opened and 13633 # appended to by config.status. When coming back to configure, we 13634 # need to make the FD available again. 13635 if test "$no_create" != yes; then 13636 ac_cs_success=: 13637 ac_config_status_args= 13638 test "$silent" = yes && 13639 ac_config_status_args="$ac_config_status_args --quiet" 13640 exec 5>/dev/null 13641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13642 exec 5>>config.log 13643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13644 # would make configure fail if this is the last instruction. 13645 $ac_cs_success || as_fn_exit 1 13646 fi 13647 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13649 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13650 fi 13651 13652 13653