1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for xrandr 1.5.3. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as 'sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 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 case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189 then : 190 as_have_required=yes 191 else case e in #( 192 e) as_have_required=no ;; 193 esac 194 fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196 then : 197 198 else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200 as_found=false 201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202 do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217 then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220 then : 221 break 2 222 fi 223 fi 224 done;; 225 esac 226 as_found=false 227 done 228 IFS=$as_save_IFS 229 if $as_found 230 then : 231 232 else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235 then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237 fi ;; 238 esac 239 fi 240 241 242 if test "x$CONFIG_SHELL" != x 243 then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246 # neutralization value for shells without unset; and this also 247 # works around shells that cannot unset nonexistent variables. 248 # Preserve -v and -x to the replacement shell. 249 BASH_ENV=/dev/null 250 ENV=/dev/null 251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252 case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257 esac 258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259 # Admittedly, this is quite paranoid, since all the known shells bail 260 # out after a failed 'exec'. 261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262 exit 255 263 fi 264 265 if test x$as_have_required = xno 266 then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 274 $0: https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues 275 $0: about your system, including any error possibly output 276 $0: before this message. Then install a modern shell, or 277 $0: manually run the script under such a shell if you do 278 $0: have one." 279 fi 280 exit 1 281 fi ;; 282 esac 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 304 # as_fn_set_status STATUS 305 # ----------------------- 306 # Set $? to STATUS, without forking. 307 as_fn_set_status () 308 { 309 return $1 310 } # as_fn_set_status 311 312 # as_fn_exit STATUS 313 # ----------------- 314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315 as_fn_exit () 316 { 317 set +e 318 as_fn_set_status $1 319 exit $1 320 } # as_fn_exit 321 322 # as_fn_mkdir_p 323 # ------------- 324 # Create "$as_dir" as a directory, including parents if necessary. 325 as_fn_mkdir_p () 326 { 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344 printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368 } # as_fn_mkdir_p 369 370 # as_fn_executable_p FILE 371 # ----------------------- 372 # Test if FILE is an executable regular file. 373 as_fn_executable_p () 374 { 375 test -f "$1" && test -x "$1" 376 } # as_fn_executable_p 377 # as_fn_append VAR VALUE 378 # ---------------------- 379 # Append the text in VALUE to the end of the definition contained in VAR. Take 380 # advantage of any shell optimizations that allow amortized linear growth over 381 # repeated appends, instead of the typical quadratic growth present in naive 382 # implementations. 383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384 then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389 else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394 esac 395 fi # as_fn_append 396 397 # as_fn_arith ARG... 398 # ------------------ 399 # Perform arithmetic evaluation on the ARGs, and store the result in the 400 # global $as_val. Take advantage of shells that can avoid forks. The arguments 401 # must be portable across $(()) and expr. 402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403 then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408 else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413 esac 414 fi # as_fn_arith 415 416 417 # as_fn_error STATUS ERROR [LINENO LOG_FD] 418 # ---------------------------------------- 419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421 # script with STATUS, using 1 if that was 0. 422 as_fn_error () 423 { 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431 } # as_fn_error 432 433 if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436 else 437 as_expr=false 438 fi 439 440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442 else 443 as_basename=false 444 fi 445 446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448 else 449 as_dirname=false 450 fi 451 452 as_me=`$as_basename -- "$0" || 453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456 printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471 # Avoid depending upon Character Ranges. 472 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475 as_cr_digits='0123456789' 476 as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514 } 515 516 517 # Determine whether it's possible to make 'echo' print without a newline. 518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519 # for compatibility with existing Makefiles. 520 ECHO_C= ECHO_N= ECHO_T= 521 case `echo -n x` in #((((( 522 -n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529 *) 530 ECHO_N='-n';; 531 esac 532 533 # For backward compatibility with old third-party macros, we provide 534 # the shell variables $as_echo and $as_echo_n. New code should use 535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536 as_echo='printf %s\n' 537 as_echo_n='printf %s' 538 539 rm -f conf$$ conf$$.exe conf$$.file 540 if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542 else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545 fi 546 if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560 else 561 as_ln_s='cp -pR' 562 fi 563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564 rmdir conf$$.dir 2>/dev/null 565 566 if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568 else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571 fi 572 573 as_test_x='test -x' 574 as_executable_p=as_fn_executable_p 575 576 # Sed expression to map a string onto a valid CPP name. 577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580 # Sed expression to map a string onto a valid variable name. 581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 585 test -n "$DJDIR" || exec 7<&0 </dev/null 586 exec 6>&1 587 588 # Name of the host. 589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590 # so uname gets run too. 591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593 # 594 # Initializations. 595 # 596 ac_default_prefix=/usr/local 597 ac_clean_files= 598 ac_config_libobj_dir=. 599 LIBOBJS= 600 cross_compiling=no 601 subdirs= 602 MFLAGS= 603 MAKEFLAGS= 604 605 # Identity of this package. 606 PACKAGE_NAME='xrandr' 607 PACKAGE_TARNAME='xrandr' 608 PACKAGE_VERSION='1.5.3' 609 PACKAGE_STRING='xrandr 1.5.3' 610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues' 611 PACKAGE_URL='' 612 613 ac_unique_file="Makefile.am" 614 # Factoring default headers for most tests. 615 ac_includes_default="\ 616 #include <stddef.h> 617 #ifdef HAVE_STDIO_H 618 # include <stdio.h> 619 #endif 620 #ifdef HAVE_STDLIB_H 621 # include <stdlib.h> 622 #endif 623 #ifdef HAVE_STRING_H 624 # include <string.h> 625 #endif 626 #ifdef HAVE_INTTYPES_H 627 # include <inttypes.h> 628 #endif 629 #ifdef HAVE_STDINT_H 630 # include <stdint.h> 631 #endif 632 #ifdef HAVE_STRINGS_H 633 # include <strings.h> 634 #endif 635 #ifdef HAVE_SYS_TYPES_H 636 # include <sys/types.h> 637 #endif 638 #ifdef HAVE_SYS_STAT_H 639 # include <sys/stat.h> 640 #endif 641 #ifdef HAVE_UNISTD_H 642 # include <unistd.h> 643 #endif" 644 645 ac_header_c_list= 646 ac_subst_vars='am__EXEEXT_FALSE 647 am__EXEEXT_TRUE 648 LTLIBOBJS 649 LIBOBJS 650 XRANDR_LIBS 651 XRANDR_CFLAGS 652 MAN_SUBSTS 653 XORG_MAN_PAGE 654 ADMIN_MAN_DIR 655 DRIVER_MAN_DIR 656 MISC_MAN_DIR 657 FILE_MAN_DIR 658 LIB_MAN_DIR 659 APP_MAN_DIR 660 ADMIN_MAN_SUFFIX 661 DRIVER_MAN_SUFFIX 662 MISC_MAN_SUFFIX 663 FILE_MAN_SUFFIX 664 LIB_MAN_SUFFIX 665 APP_MAN_SUFFIX 666 SED 667 host_os 668 host_vendor 669 host_cpu 670 host 671 build_os 672 build_vendor 673 build_cpu 674 build 675 INSTALL_CMD 676 PKG_CONFIG_LIBDIR 677 PKG_CONFIG_PATH 678 PKG_CONFIG 679 CHANGELOG_CMD 680 STRICT_CFLAGS 681 CWARNFLAGS 682 BASE_CFLAGS 683 am__fastdepCC_FALSE 684 am__fastdepCC_TRUE 685 CCDEPMODE 686 am__nodep 687 AMDEPBACKSLASH 688 AMDEP_FALSE 689 AMDEP_TRUE 690 am__include 691 DEPDIR 692 OBJEXT 693 EXEEXT 694 ac_ct_CC 695 CPPFLAGS 696 LDFLAGS 697 CFLAGS 698 CC 699 AM_BACKSLASH 700 AM_DEFAULT_VERBOSITY 701 AM_DEFAULT_V 702 AM_V 703 CSCOPE 704 ETAGS 705 CTAGS 706 am__untar 707 am__tar 708 AMTAR 709 am__leading_dot 710 SET_MAKE 711 AWK 712 mkdir_p 713 MKDIR_P 714 INSTALL_STRIP_PROGRAM 715 STRIP 716 install_sh 717 MAKEINFO 718 AUTOHEADER 719 AUTOMAKE 720 AUTOCONF 721 ACLOCAL 722 VERSION 723 PACKAGE 724 CYGPATH_W 725 am__isrc 726 INSTALL_DATA 727 INSTALL_SCRIPT 728 INSTALL_PROGRAM 729 target_alias 730 host_alias 731 build_alias 732 LIBS 733 ECHO_T 734 ECHO_N 735 ECHO_C 736 DEFS 737 mandir 738 localedir 739 libdir 740 psdir 741 pdfdir 742 dvidir 743 htmldir 744 infodir 745 docdir 746 oldincludedir 747 includedir 748 runstatedir 749 localstatedir 750 sharedstatedir 751 sysconfdir 752 datadir 753 datarootdir 754 libexecdir 755 sbindir 756 bindir 757 program_transform_name 758 prefix 759 exec_prefix 760 PACKAGE_URL 761 PACKAGE_BUGREPORT 762 PACKAGE_STRING 763 PACKAGE_VERSION 764 PACKAGE_TARNAME 765 PACKAGE_NAME 766 PATH_SEPARATOR 767 SHELL 768 am__quote' 769 ac_subst_files='' 770 ac_user_opts=' 771 enable_option_checking 772 enable_silent_rules 773 enable_dependency_tracking 774 enable_selective_werror 775 enable_strict_compilation 776 ' 777 ac_precious_vars='build_alias 778 host_alias 779 target_alias 780 CC 781 CFLAGS 782 LDFLAGS 783 LIBS 784 CPPFLAGS 785 PKG_CONFIG 786 PKG_CONFIG_PATH 787 PKG_CONFIG_LIBDIR 788 XRANDR_CFLAGS 789 XRANDR_LIBS' 790 791 792 # Initialize some variables set by options. 793 ac_init_help= 794 ac_init_version=false 795 ac_unrecognized_opts= 796 ac_unrecognized_sep= 797 # The variables have the same names as the options, with 798 # dashes changed to underlines. 799 cache_file=/dev/null 800 exec_prefix=NONE 801 no_create= 802 no_recursion= 803 prefix=NONE 804 program_prefix=NONE 805 program_suffix=NONE 806 program_transform_name=s,x,x, 807 silent= 808 site= 809 srcdir= 810 verbose= 811 x_includes=NONE 812 x_libraries=NONE 813 814 # Installation directory options. 815 # These are left unexpanded so users can "make install exec_prefix=/foo" 816 # and all the variables that are supposed to be based on exec_prefix 817 # by default will actually change. 818 # Use braces instead of parens because sh, perl, etc. also accept them. 819 # (The list follows the same order as the GNU Coding Standards.) 820 bindir='${exec_prefix}/bin' 821 sbindir='${exec_prefix}/sbin' 822 libexecdir='${exec_prefix}/libexec' 823 datarootdir='${prefix}/share' 824 datadir='${datarootdir}' 825 sysconfdir='${prefix}/etc' 826 sharedstatedir='${prefix}/com' 827 localstatedir='${prefix}/var' 828 runstatedir='${localstatedir}/run' 829 includedir='${prefix}/include' 830 oldincludedir='/usr/include' 831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832 infodir='${datarootdir}/info' 833 htmldir='${docdir}' 834 dvidir='${docdir}' 835 pdfdir='${docdir}' 836 psdir='${docdir}' 837 libdir='${exec_prefix}/lib' 838 localedir='${datarootdir}/locale' 839 mandir='${datarootdir}/man' 840 841 ac_prev= 842 ac_dashdash= 843 for ac_option 844 do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *=) ac_optarg= ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 case $ac_dashdash$ac_option in 859 --) 860 ac_dashdash=yes ;; 861 862 -bindir | --bindir | --bindi | --bind | --bin | --bi) 863 ac_prev=bindir ;; 864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 865 bindir=$ac_optarg ;; 866 867 -build | --build | --buil | --bui | --bu) 868 ac_prev=build_alias ;; 869 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 870 build_alias=$ac_optarg ;; 871 872 -cache-file | --cache-file | --cache-fil | --cache-fi \ 873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 874 ac_prev=cache_file ;; 875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 877 cache_file=$ac_optarg ;; 878 879 --config-cache | -C) 880 cache_file=config.cache ;; 881 882 -datadir | --datadir | --datadi | --datad) 883 ac_prev=datadir ;; 884 -datadir=* | --datadir=* | --datadi=* | --datad=*) 885 datadir=$ac_optarg ;; 886 887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 888 | --dataroo | --dataro | --datar) 889 ac_prev=datarootdir ;; 890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 892 datarootdir=$ac_optarg ;; 893 894 -disable-* | --disable-*) 895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 896 # Reject names that are not valid shell variable names. 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 898 as_fn_error $? "invalid feature name: '$ac_useropt'" 899 ac_useropt_orig=$ac_useropt 900 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 901 case $ac_user_opts in 902 *" 903 "enable_$ac_useropt" 904 "*) ;; 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 906 ac_unrecognized_sep=', ';; 907 esac 908 eval enable_$ac_useropt=no ;; 909 910 -docdir | --docdir | --docdi | --doc | --do) 911 ac_prev=docdir ;; 912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 913 docdir=$ac_optarg ;; 914 915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 916 ac_prev=dvidir ;; 917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 918 dvidir=$ac_optarg ;; 919 920 -enable-* | --enable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: '$ac_useropt'" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929 "enable_$ac_useropt" 930 "*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=\$ac_optarg ;; 935 936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 938 | --exec | --exe | --ex) 939 ac_prev=exec_prefix ;; 940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 942 | --exec=* | --exe=* | --ex=*) 943 exec_prefix=$ac_optarg ;; 944 945 -gas | --gas | --ga | --g) 946 # Obsolete; use --with-gas. 947 with_gas=yes ;; 948 949 -help | --help | --hel | --he | -h) 950 ac_init_help=long ;; 951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 952 ac_init_help=recursive ;; 953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 954 ac_init_help=short ;; 955 956 -host | --host | --hos | --ho) 957 ac_prev=host_alias ;; 958 -host=* | --host=* | --hos=* | --ho=*) 959 host_alias=$ac_optarg ;; 960 961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 962 ac_prev=htmldir ;; 963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 964 | --ht=*) 965 htmldir=$ac_optarg ;; 966 967 -includedir | --includedir | --includedi | --included | --include \ 968 | --includ | --inclu | --incl | --inc) 969 ac_prev=includedir ;; 970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 971 | --includ=* | --inclu=* | --incl=* | --inc=*) 972 includedir=$ac_optarg ;; 973 974 -infodir | --infodir | --infodi | --infod | --info | --inf) 975 ac_prev=infodir ;; 976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 977 infodir=$ac_optarg ;; 978 979 -libdir | --libdir | --libdi | --libd) 980 ac_prev=libdir ;; 981 -libdir=* | --libdir=* | --libdi=* | --libd=*) 982 libdir=$ac_optarg ;; 983 984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 985 | --libexe | --libex | --libe) 986 ac_prev=libexecdir ;; 987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 988 | --libexe=* | --libex=* | --libe=*) 989 libexecdir=$ac_optarg ;; 990 991 -localedir | --localedir | --localedi | --localed | --locale) 992 ac_prev=localedir ;; 993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 994 localedir=$ac_optarg ;; 995 996 -localstatedir | --localstatedir | --localstatedi | --localstated \ 997 | --localstate | --localstat | --localsta | --localst | --locals) 998 ac_prev=localstatedir ;; 999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1001 localstatedir=$ac_optarg ;; 1002 1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1004 ac_prev=mandir ;; 1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1006 mandir=$ac_optarg ;; 1007 1008 -nfp | --nfp | --nf) 1009 # Obsolete; use --without-fp. 1010 with_fp=no ;; 1011 1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1013 | --no-cr | --no-c | -n) 1014 no_create=yes ;; 1015 1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1018 no_recursion=yes ;; 1019 1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1022 | --oldin | --oldi | --old | --ol | --o) 1023 ac_prev=oldincludedir ;; 1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1027 oldincludedir=$ac_optarg ;; 1028 1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1030 ac_prev=prefix ;; 1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1032 prefix=$ac_optarg ;; 1033 1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1035 | --program-pre | --program-pr | --program-p) 1036 ac_prev=program_prefix ;; 1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1039 program_prefix=$ac_optarg ;; 1040 1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1042 | --program-suf | --program-su | --program-s) 1043 ac_prev=program_suffix ;; 1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1046 program_suffix=$ac_optarg ;; 1047 1048 -program-transform-name | --program-transform-name \ 1049 | --program-transform-nam | --program-transform-na \ 1050 | --program-transform-n | --program-transform- \ 1051 | --program-transform | --program-transfor \ 1052 | --program-transfo | --program-transf \ 1053 | --program-trans | --program-tran \ 1054 | --progr-tra | --program-tr | --program-t) 1055 ac_prev=program_transform_name ;; 1056 -program-transform-name=* | --program-transform-name=* \ 1057 | --program-transform-nam=* | --program-transform-na=* \ 1058 | --program-transform-n=* | --program-transform-=* \ 1059 | --program-transform=* | --program-transfor=* \ 1060 | --program-transfo=* | --program-transf=* \ 1061 | --program-trans=* | --program-tran=* \ 1062 | --progr-tra=* | --program-tr=* | --program-t=*) 1063 program_transform_name=$ac_optarg ;; 1064 1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1066 ac_prev=pdfdir ;; 1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1068 pdfdir=$ac_optarg ;; 1069 1070 -psdir | --psdir | --psdi | --psd | --ps) 1071 ac_prev=psdir ;; 1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1073 psdir=$ac_optarg ;; 1074 1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1076 | -silent | --silent | --silen | --sile | --sil) 1077 silent=yes ;; 1078 1079 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1080 | --runstate | --runstat | --runsta | --runst | --runs \ 1081 | --run | --ru | --r) 1082 ac_prev=runstatedir ;; 1083 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1084 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1085 | --run=* | --ru=* | --r=*) 1086 runstatedir=$ac_optarg ;; 1087 1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1089 ac_prev=sbindir ;; 1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1091 | --sbi=* | --sb=*) 1092 sbindir=$ac_optarg ;; 1093 1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1096 | --sharedst | --shareds | --shared | --share | --shar \ 1097 | --sha | --sh) 1098 ac_prev=sharedstatedir ;; 1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1102 | --sha=* | --sh=*) 1103 sharedstatedir=$ac_optarg ;; 1104 1105 -site | --site | --sit) 1106 ac_prev=site ;; 1107 -site=* | --site=* | --sit=*) 1108 site=$ac_optarg ;; 1109 1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1111 ac_prev=srcdir ;; 1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1113 srcdir=$ac_optarg ;; 1114 1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1116 | --syscon | --sysco | --sysc | --sys | --sy) 1117 ac_prev=sysconfdir ;; 1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1120 sysconfdir=$ac_optarg ;; 1121 1122 -target | --target | --targe | --targ | --tar | --ta | --t) 1123 ac_prev=target_alias ;; 1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1125 target_alias=$ac_optarg ;; 1126 1127 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1128 verbose=yes ;; 1129 1130 -version | --version | --versio | --versi | --vers | -V) 1131 ac_init_version=: ;; 1132 1133 -with-* | --with-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: '$ac_useropt'" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142 "with_$ac_useropt" 1143 "*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=\$ac_optarg ;; 1148 1149 -without-* | --without-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: '$ac_useropt'" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158 "with_$ac_useropt" 1159 "*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=no ;; 1164 1165 --x) 1166 # Obsolete; use --with-x. 1167 with_x=yes ;; 1168 1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1170 | --x-incl | --x-inc | --x-in | --x-i) 1171 ac_prev=x_includes ;; 1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1174 x_includes=$ac_optarg ;; 1175 1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1178 ac_prev=x_libraries ;; 1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1181 x_libraries=$ac_optarg ;; 1182 1183 -*) as_fn_error $? "unrecognized option: '$ac_option' 1184 Try '$0 --help' for more information" 1185 ;; 1186 1187 *=*) 1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1189 # Reject names that are not valid shell variable names. 1190 case $ac_envvar in #( 1191 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1192 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1193 esac 1194 eval $ac_envvar=\$ac_optarg 1195 export $ac_envvar ;; 1196 1197 *) 1198 # FIXME: should be removed in autoconf 3.0. 1199 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1201 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1203 ;; 1204 1205 esac 1206 done 1207 1208 if test -n "$ac_prev"; then 1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1210 as_fn_error $? "missing argument to $ac_option" 1211 fi 1212 1213 if test -n "$ac_unrecognized_opts"; then 1214 case $enable_option_checking in 1215 no) ;; 1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1217 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1218 esac 1219 fi 1220 1221 # Check all directory arguments for consistency. 1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1223 datadir sysconfdir sharedstatedir localstatedir includedir \ 1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1225 libdir localedir mandir runstatedir 1226 do 1227 eval ac_val=\$$ac_var 1228 # Remove trailing slashes. 1229 case $ac_val in 1230 */ ) 1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1232 eval $ac_var=\$ac_val;; 1233 esac 1234 # Be sure to have absolute directory names. 1235 case $ac_val in 1236 [\\/$]* | ?:[\\/]* ) continue;; 1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1238 esac 1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1240 done 1241 1242 # There might be people who depend on the old broken behavior: '$host' 1243 # used to hold the argument of --host etc. 1244 # FIXME: To remove some day. 1245 build=$build_alias 1246 host=$host_alias 1247 target=$target_alias 1248 1249 # FIXME: To remove some day. 1250 if test "x$host_alias" != x; then 1251 if test "x$build_alias" = x; then 1252 cross_compiling=maybe 1253 elif test "x$build_alias" != "x$host_alias"; then 1254 cross_compiling=yes 1255 fi 1256 fi 1257 1258 ac_tool_prefix= 1259 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1260 1261 test "$silent" = yes && exec 6>/dev/null 1262 1263 1264 ac_pwd=`pwd` && test -n "$ac_pwd" && 1265 ac_ls_di=`ls -di .` && 1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1267 as_fn_error $? "working directory cannot be determined" 1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1269 as_fn_error $? "pwd does not report name of working directory" 1270 1271 1272 # Find the source files, if location was not specified. 1273 if test -z "$srcdir"; then 1274 ac_srcdir_defaulted=yes 1275 # Try the directory containing this script, then the parent directory. 1276 ac_confdir=`$as_dirname -- "$as_myself" || 1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1278 X"$as_myself" : 'X\(//\)[^/]' \| \ 1279 X"$as_myself" : 'X\(//\)$' \| \ 1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1281 printf "%s\n" X"$as_myself" | 1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)[^/].*/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\).*/{ 1295 s//\1/ 1296 q 1297 } 1298 s/.*/./; q'` 1299 srcdir=$ac_confdir 1300 if test ! -r "$srcdir/$ac_unique_file"; then 1301 srcdir=.. 1302 fi 1303 else 1304 ac_srcdir_defaulted=no 1305 fi 1306 if test ! -r "$srcdir/$ac_unique_file"; then 1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1309 fi 1310 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1311 ac_abs_confdir=`( 1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1313 pwd)` 1314 # When building in place, set srcdir=. 1315 if test "$ac_abs_confdir" = "$ac_pwd"; then 1316 srcdir=. 1317 fi 1318 # Remove unnecessary trailing slashes from srcdir. 1319 # Double slashes in file names in object file debugging info 1320 # mess up M-x gdb in Emacs. 1321 case $srcdir in 1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1323 esac 1324 for ac_var in $ac_precious_vars; do 1325 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1326 eval ac_env_${ac_var}_value=\$${ac_var} 1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1329 done 1330 1331 # 1332 # Report the --help message. 1333 # 1334 if test "$ac_init_help" = "long"; then 1335 # Omit some internal or obsolete options to make the list less imposing. 1336 # This message is too long to be a string in the A/UX 3.1 sh. 1337 cat <<_ACEOF 1338 'configure' configures xrandr 1.5.3 to adapt to many kinds of systems. 1339 1340 Usage: $0 [OPTION]... [VAR=VALUE]... 1341 1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1343 VAR=VALUE. See below for descriptions of some of the useful variables. 1344 1345 Defaults for the options are specified in brackets. 1346 1347 Configuration: 1348 -h, --help display this help and exit 1349 --help=short display options specific to this package 1350 --help=recursive display the short help of all the included packages 1351 -V, --version display version information and exit 1352 -q, --quiet, --silent do not print 'checking ...' messages 1353 --cache-file=FILE cache test results in FILE [disabled] 1354 -C, --config-cache alias for '--cache-file=config.cache' 1355 -n, --no-create do not create output files 1356 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1357 1358 Installation directories: 1359 --prefix=PREFIX install architecture-independent files in PREFIX 1360 [$ac_default_prefix] 1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1362 [PREFIX] 1363 1364 By default, 'make install' will install all the files in 1365 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1366 an installation prefix other than '$ac_default_prefix' using '--prefix', 1367 for instance '--prefix=\$HOME'. 1368 1369 For better control, use the options below. 1370 1371 Fine tuning of the installation directories: 1372 --bindir=DIR user executables [EPREFIX/bin] 1373 --sbindir=DIR system admin executables [EPREFIX/sbin] 1374 --libexecdir=DIR program executables [EPREFIX/libexec] 1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1378 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1379 --libdir=DIR object code libraries [EPREFIX/lib] 1380 --includedir=DIR C header files [PREFIX/include] 1381 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1384 --infodir=DIR info documentation [DATAROOTDIR/info] 1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1386 --mandir=DIR man documentation [DATAROOTDIR/man] 1387 --docdir=DIR documentation root [DATAROOTDIR/doc/xrandr] 1388 --htmldir=DIR html documentation [DOCDIR] 1389 --dvidir=DIR dvi documentation [DOCDIR] 1390 --pdfdir=DIR pdf documentation [DOCDIR] 1391 --psdir=DIR ps documentation [DOCDIR] 1392 _ACEOF 1393 1394 cat <<\_ACEOF 1395 1396 Program names: 1397 --program-prefix=PREFIX prepend PREFIX to installed program names 1398 --program-suffix=SUFFIX append SUFFIX to installed program names 1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1400 1401 System types: 1402 --build=BUILD configure for building on BUILD [guessed] 1403 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1404 _ACEOF 1405 fi 1406 1407 if test -n "$ac_init_help"; then 1408 case $ac_init_help in 1409 short | recursive ) echo "Configuration of xrandr 1.5.3:";; 1410 esac 1411 cat <<\_ACEOF 1412 1413 Optional Features: 1414 --disable-option-checking ignore unrecognized --enable/--with options 1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1417 --enable-silent-rules less verbose build output (undo: "make V=1") 1418 --disable-silent-rules verbose build output (undo: "make V=0") 1419 --enable-dependency-tracking 1420 do not reject slow dependency extractors 1421 --disable-dependency-tracking 1422 speeds up one-time build 1423 --disable-selective-werror 1424 Turn off selective compiler errors. (default: 1425 enabled) 1426 --enable-strict-compilation 1427 Enable all warnings from compiler and make them 1428 errors (default: disabled) 1429 1430 Some influential environment variables: 1431 CC C compiler command 1432 CFLAGS C compiler flags 1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1434 nonstandard directory <lib dir> 1435 LIBS libraries to pass to the linker, e.g. -l<library> 1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1437 you have headers in a nonstandard directory <include dir> 1438 PKG_CONFIG path to pkg-config utility 1439 PKG_CONFIG_PATH 1440 directories to add to pkg-config's search path 1441 PKG_CONFIG_LIBDIR 1442 path overriding pkg-config's built-in search path 1443 XRANDR_CFLAGS 1444 C compiler flags for XRANDR, overriding pkg-config 1445 XRANDR_LIBS linker flags for XRANDR, overriding pkg-config 1446 1447 Use these variables to override the choices made by 'configure' or to help 1448 it to find libraries and programs with nonstandard names/locations. 1449 1450 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues>. 1451 _ACEOF 1452 ac_status=$? 1453 fi 1454 1455 if test "$ac_init_help" = "recursive"; then 1456 # If there are subdirs, report their specific --help. 1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1458 test -d "$ac_dir" || 1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1460 continue 1461 ac_builddir=. 1462 1463 case "$ac_dir" in 1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1465 *) 1466 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1467 # A ".." for each directory in $ac_dir_suffix. 1468 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1469 case $ac_top_builddir_sub in 1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1472 esac ;; 1473 esac 1474 ac_abs_top_builddir=$ac_pwd 1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1476 # for backward compatibility: 1477 ac_top_builddir=$ac_top_build_prefix 1478 1479 case $srcdir in 1480 .) # We are building in place. 1481 ac_srcdir=. 1482 ac_top_srcdir=$ac_top_builddir_sub 1483 ac_abs_top_srcdir=$ac_pwd ;; 1484 [\\/]* | ?:[\\/]* ) # Absolute name. 1485 ac_srcdir=$srcdir$ac_dir_suffix; 1486 ac_top_srcdir=$srcdir 1487 ac_abs_top_srcdir=$srcdir ;; 1488 *) # Relative name. 1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1490 ac_top_srcdir=$ac_top_build_prefix$srcdir 1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1492 esac 1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1494 1495 cd "$ac_dir" || { ac_status=$?; continue; } 1496 # Check for configure.gnu first; this name is used for a wrapper for 1497 # Metaconfig's "Configure" on case-insensitive file systems. 1498 if test -f "$ac_srcdir/configure.gnu"; then 1499 echo && 1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1501 elif test -f "$ac_srcdir/configure"; then 1502 echo && 1503 $SHELL "$ac_srcdir/configure" --help=recursive 1504 else 1505 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1506 fi || ac_status=$? 1507 cd "$ac_pwd" || { ac_status=$?; break; } 1508 done 1509 fi 1510 1511 test -n "$ac_init_help" && exit $ac_status 1512 if $ac_init_version; then 1513 cat <<\_ACEOF 1514 xrandr configure 1.5.3 1515 generated by GNU Autoconf 2.72 1516 1517 Copyright (C) 2023 Free Software Foundation, Inc. 1518 This configure script is free software; the Free Software Foundation 1519 gives unlimited permission to copy, distribute and modify it. 1520 _ACEOF 1521 exit 1522 fi 1523 1524 ## ------------------------ ## 1525 ## Autoconf initialization. ## 1526 ## ------------------------ ## 1527 1528 # ac_fn_c_try_compile LINENO 1529 # -------------------------- 1530 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1531 ac_fn_c_try_compile () 1532 { 1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1534 rm -f conftest.$ac_objext conftest.beam 1535 if { { ac_try="$ac_compile" 1536 case "(($ac_try" in 1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1538 *) ac_try_echo=$ac_try;; 1539 esac 1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1541 printf "%s\n" "$ac_try_echo"; } >&5 1542 (eval "$ac_compile") 2>conftest.err 1543 ac_status=$? 1544 if test -s conftest.err; then 1545 grep -v '^ *+' conftest.err >conftest.er1 1546 cat conftest.er1 >&5 1547 mv -f conftest.er1 conftest.err 1548 fi 1549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1550 test $ac_status = 0; } && { 1551 test -z "$ac_c_werror_flag" || 1552 test ! -s conftest.err 1553 } && test -s conftest.$ac_objext 1554 then : 1555 ac_retval=0 1556 else case e in #( 1557 e) printf "%s\n" "$as_me: failed program was:" >&5 1558 sed 's/^/| /' conftest.$ac_ext >&5 1559 1560 ac_retval=1 ;; 1561 esac 1562 fi 1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1564 as_fn_set_status $ac_retval 1565 1566 } # ac_fn_c_try_compile 1567 1568 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1569 # ------------------------------------------------------------------ 1570 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1571 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1572 ac_fn_check_decl () 1573 { 1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1575 as_decl_name=`echo $2|sed 's/ *(.*//'` 1576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1577 printf %s "checking whether $as_decl_name is declared... " >&6; } 1578 if eval test \${$3+y} 1579 then : 1580 printf %s "(cached) " >&6 1581 else case e in #( 1582 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1583 eval ac_save_FLAGS=\$$6 1584 as_fn_append $6 " $5" 1585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1586 /* end confdefs.h. */ 1587 $4 1588 int 1589 main (void) 1590 { 1591 #ifndef $as_decl_name 1592 #ifdef __cplusplus 1593 (void) $as_decl_use; 1594 #else 1595 (void) $as_decl_name; 1596 #endif 1597 #endif 1598 1599 ; 1600 return 0; 1601 } 1602 _ACEOF 1603 if ac_fn_c_try_compile "$LINENO" 1604 then : 1605 eval "$3=yes" 1606 else case e in #( 1607 e) eval "$3=no" ;; 1608 esac 1609 fi 1610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1611 eval $6=\$ac_save_FLAGS 1612 ;; 1613 esac 1614 fi 1615 eval ac_res=\$$3 1616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1617 printf "%s\n" "$ac_res" >&6; } 1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1619 1620 } # ac_fn_check_decl 1621 1622 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1623 # ------------------------------------------------------- 1624 # Tests whether HEADER exists and can be compiled using the include files in 1625 # INCLUDES, setting the cache variable VAR accordingly. 1626 ac_fn_c_check_header_compile () 1627 { 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1630 printf %s "checking for $2... " >&6; } 1631 if eval test \${$3+y} 1632 then : 1633 printf %s "(cached) " >&6 1634 else case e in #( 1635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1636 /* end confdefs.h. */ 1637 $4 1638 #include <$2> 1639 _ACEOF 1640 if ac_fn_c_try_compile "$LINENO" 1641 then : 1642 eval "$3=yes" 1643 else case e in #( 1644 e) eval "$3=no" ;; 1645 esac 1646 fi 1647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1648 esac 1649 fi 1650 eval ac_res=\$$3 1651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1652 printf "%s\n" "$ac_res" >&6; } 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 1655 } # ac_fn_c_check_header_compile 1656 1657 # ac_fn_c_try_link LINENO 1658 # ----------------------- 1659 # Try to link conftest.$ac_ext, and return whether this succeeded. 1660 ac_fn_c_try_link () 1661 { 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1664 if { { ac_try="$ac_link" 1665 case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668 esac 1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670 printf "%s\n" "$ac_try_echo"; } >&5 1671 (eval "$ac_link") 2>conftest.err 1672 ac_status=$? 1673 if test -s conftest.err; then 1674 grep -v '^ *+' conftest.err >conftest.er1 1675 cat conftest.er1 >&5 1676 mv -f conftest.er1 conftest.err 1677 fi 1678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1679 test $ac_status = 0; } && { 1680 test -z "$ac_c_werror_flag" || 1681 test ! -s conftest.err 1682 } && test -s conftest$ac_exeext && { 1683 test "$cross_compiling" = yes || 1684 test -x conftest$ac_exeext 1685 } 1686 then : 1687 ac_retval=0 1688 else case e in #( 1689 e) printf "%s\n" "$as_me: failed program was:" >&5 1690 sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=1 ;; 1693 esac 1694 fi 1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1697 # interfere with the next link command; also delete a directory that is 1698 # left behind by Apple's compiler. We do this before executing the actions. 1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1701 as_fn_set_status $ac_retval 1702 1703 } # ac_fn_c_try_link 1704 ac_configure_args_raw= 1705 for ac_arg 1706 do 1707 case $ac_arg in 1708 *\'*) 1709 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1710 esac 1711 as_fn_append ac_configure_args_raw " '$ac_arg'" 1712 done 1713 1714 case $ac_configure_args_raw in 1715 *$as_nl*) 1716 ac_safe_unquote= ;; 1717 *) 1718 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1719 ac_unsafe_a="$ac_unsafe_z#~" 1720 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1721 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1722 esac 1723 1724 cat >config.log <<_ACEOF 1725 This file contains any messages produced by compilers while 1726 running configure, to aid debugging if configure makes a mistake. 1727 1728 It was created by xrandr $as_me 1.5.3, which was 1729 generated by GNU Autoconf 2.72. Invocation command line was 1730 1731 $ $0$ac_configure_args_raw 1732 1733 _ACEOF 1734 exec 5>>config.log 1735 { 1736 cat <<_ASUNAME 1737 ## --------- ## 1738 ## Platform. ## 1739 ## --------- ## 1740 1741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1742 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1743 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1744 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1745 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1746 1747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1748 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1749 1750 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1751 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1753 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1754 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1755 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1756 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1757 1758 _ASUNAME 1759 1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1761 for as_dir in $PATH 1762 do 1763 IFS=$as_save_IFS 1764 case $as_dir in #((( 1765 '') as_dir=./ ;; 1766 */) ;; 1767 *) as_dir=$as_dir/ ;; 1768 esac 1769 printf "%s\n" "PATH: $as_dir" 1770 done 1771 IFS=$as_save_IFS 1772 1773 } >&5 1774 1775 cat >&5 <<_ACEOF 1776 1777 1778 ## ----------- ## 1779 ## Core tests. ## 1780 ## ----------- ## 1781 1782 _ACEOF 1783 1784 1785 # Keep a trace of the command line. 1786 # Strip out --no-create and --no-recursion so they do not pile up. 1787 # Strip out --silent because we don't want to record it for future runs. 1788 # Also quote any args containing shell meta-characters. 1789 # Make two passes to allow for proper duplicate-argument suppression. 1790 ac_configure_args= 1791 ac_configure_args0= 1792 ac_configure_args1= 1793 ac_must_keep_next=false 1794 for ac_pass in 1 2 1795 do 1796 for ac_arg 1797 do 1798 case $ac_arg in 1799 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1801 | -silent | --silent | --silen | --sile | --sil) 1802 continue ;; 1803 *\'*) 1804 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1805 esac 1806 case $ac_pass in 1807 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1808 2) 1809 as_fn_append ac_configure_args1 " '$ac_arg'" 1810 if test $ac_must_keep_next = true; then 1811 ac_must_keep_next=false # Got value, back to normal. 1812 else 1813 case $ac_arg in 1814 *=* | --config-cache | -C | -disable-* | --disable-* \ 1815 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1816 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1817 | -with-* | --with-* | -without-* | --without-* | --x) 1818 case "$ac_configure_args0 " in 1819 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1820 esac 1821 ;; 1822 -* ) ac_must_keep_next=true ;; 1823 esac 1824 fi 1825 as_fn_append ac_configure_args " '$ac_arg'" 1826 ;; 1827 esac 1828 done 1829 done 1830 { ac_configure_args0=; unset ac_configure_args0;} 1831 { ac_configure_args1=; unset ac_configure_args1;} 1832 1833 # When interrupted or exit'd, cleanup temporary files, and complete 1834 # config.log. We remove comments because anyway the quotes in there 1835 # would cause problems or look ugly. 1836 # WARNING: Use '\'' to represent an apostrophe within the trap. 1837 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1838 trap 'exit_status=$? 1839 # Sanitize IFS. 1840 IFS=" "" $as_nl" 1841 # Save into config.log some information that might help in debugging. 1842 { 1843 echo 1844 1845 printf "%s\n" "## ---------------- ## 1846 ## Cache variables. ## 1847 ## ---------------- ##" 1848 echo 1849 # The following way of writing the cache mishandles newlines in values, 1850 ( 1851 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1852 eval ac_val=\$$ac_var 1853 case $ac_val in #( 1854 *${as_nl}*) 1855 case $ac_var in #( 1856 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1857 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1858 esac 1859 case $ac_var in #( 1860 _ | IFS | as_nl) ;; #( 1861 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1862 *) { eval $ac_var=; unset $ac_var;} ;; 1863 esac ;; 1864 esac 1865 done 1866 (set) 2>&1 | 1867 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1868 *${as_nl}ac_space=\ *) 1869 sed -n \ 1870 "s/'\''/'\''\\\\'\'''\''/g; 1871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1872 ;; #( 1873 *) 1874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1875 ;; 1876 esac | 1877 sort 1878 ) 1879 echo 1880 1881 printf "%s\n" "## ----------------- ## 1882 ## Output variables. ## 1883 ## ----------------- ##" 1884 echo 1885 for ac_var in $ac_subst_vars 1886 do 1887 eval ac_val=\$$ac_var 1888 case $ac_val in 1889 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1890 esac 1891 printf "%s\n" "$ac_var='\''$ac_val'\''" 1892 done | sort 1893 echo 1894 1895 if test -n "$ac_subst_files"; then 1896 printf "%s\n" "## ------------------- ## 1897 ## File substitutions. ## 1898 ## ------------------- ##" 1899 echo 1900 for ac_var in $ac_subst_files 1901 do 1902 eval ac_val=\$$ac_var 1903 case $ac_val in 1904 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1905 esac 1906 printf "%s\n" "$ac_var='\''$ac_val'\''" 1907 done | sort 1908 echo 1909 fi 1910 1911 if test -s confdefs.h; then 1912 printf "%s\n" "## ----------- ## 1913 ## confdefs.h. ## 1914 ## ----------- ##" 1915 echo 1916 cat confdefs.h 1917 echo 1918 fi 1919 test "$ac_signal" != 0 && 1920 printf "%s\n" "$as_me: caught signal $ac_signal" 1921 printf "%s\n" "$as_me: exit $exit_status" 1922 } >&5 1923 rm -f core *.core core.conftest.* && 1924 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1925 exit $exit_status 1926 ' 0 1927 for ac_signal in 1 2 13 15; do 1928 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1929 done 1930 ac_signal=0 1931 1932 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1933 rm -f -r conftest* confdefs.h 1934 1935 printf "%s\n" "/* confdefs.h */" > confdefs.h 1936 1937 # Predefined preprocessor variables. 1938 1939 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1940 1941 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1942 1943 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1944 1945 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1946 1947 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1948 1949 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1950 1951 1952 # Let the site file select an alternate cache file if it wants to. 1953 # Prefer an explicitly selected file to automatically selected ones. 1954 if test -n "$CONFIG_SITE"; then 1955 ac_site_files="$CONFIG_SITE" 1956 elif test "x$prefix" != xNONE; then 1957 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1958 else 1959 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1960 fi 1961 1962 for ac_site_file in $ac_site_files 1963 do 1964 case $ac_site_file in #( 1965 */*) : 1966 ;; #( 1967 *) : 1968 ac_site_file=./$ac_site_file ;; 1969 esac 1970 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1972 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1973 sed 's/^/| /' "$ac_site_file" >&5 1974 . "$ac_site_file" \ 1975 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1976 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1977 as_fn_error $? "failed to load site script $ac_site_file 1978 See 'config.log' for more details" "$LINENO" 5; } 1979 fi 1980 done 1981 1982 if test -r "$cache_file"; then 1983 # Some versions of bash will fail to source /dev/null (special files 1984 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1985 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1987 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1988 case $cache_file in 1989 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1990 *) . "./$cache_file";; 1991 esac 1992 fi 1993 else 1994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1995 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 1996 >$cache_file 1997 fi 1998 1999 # Test code for whether the C compiler supports C89 (global declarations) 2000 ac_c_conftest_c89_globals=' 2001 /* Does the compiler advertise C89 conformance? 2002 Do not test the value of __STDC__, because some compilers set it to 0 2003 while being otherwise adequately conformant. */ 2004 #if !defined __STDC__ 2005 # error "Compiler does not advertise C89 conformance" 2006 #endif 2007 2008 #include <stddef.h> 2009 #include <stdarg.h> 2010 struct stat; 2011 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2012 struct buf { int x; }; 2013 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2014 static char *e (char **p, int i) 2015 { 2016 return p[i]; 2017 } 2018 static char *f (char * (*g) (char **, int), char **p, ...) 2019 { 2020 char *s; 2021 va_list v; 2022 va_start (v,p); 2023 s = g (p, va_arg (v,int)); 2024 va_end (v); 2025 return s; 2026 } 2027 2028 /* C89 style stringification. */ 2029 #define noexpand_stringify(a) #a 2030 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2031 2032 /* C89 style token pasting. Exercises some of the corner cases that 2033 e.g. old MSVC gets wrong, but not very hard. */ 2034 #define noexpand_concat(a,b) a##b 2035 #define expand_concat(a,b) noexpand_concat(a,b) 2036 extern int vA; 2037 extern int vbee; 2038 #define aye A 2039 #define bee B 2040 int *pvA = &expand_concat(v,aye); 2041 int *pvbee = &noexpand_concat(v,bee); 2042 2043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2044 function prototypes and stuff, but not \xHH hex character constants. 2045 These do not provoke an error unfortunately, instead are silently treated 2046 as an "x". The following induces an error, until -std is added to get 2047 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2048 array size at least. It is necessary to write \x00 == 0 to get something 2049 that is true only with -std. */ 2050 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2051 2052 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2053 inside strings and character constants. */ 2054 #define FOO(x) '\''x'\'' 2055 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2056 2057 int test (int i, double x); 2058 struct s1 {int (*f) (int a);}; 2059 struct s2 {int (*f) (double a);}; 2060 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2061 int, int);' 2062 2063 # Test code for whether the C compiler supports C89 (body of main). 2064 ac_c_conftest_c89_main=' 2065 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2066 ' 2067 2068 # Test code for whether the C compiler supports C99 (global declarations) 2069 ac_c_conftest_c99_globals=' 2070 /* Does the compiler advertise C99 conformance? */ 2071 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2072 # error "Compiler does not advertise C99 conformance" 2073 #endif 2074 2075 // See if C++-style comments work. 2076 2077 #include <stdbool.h> 2078 extern int puts (const char *); 2079 extern int printf (const char *, ...); 2080 extern int dprintf (int, const char *, ...); 2081 extern void *malloc (size_t); 2082 extern void free (void *); 2083 2084 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2085 // dprintf is used instead of fprintf to avoid needing to declare 2086 // FILE and stderr. 2087 #define debug(...) dprintf (2, __VA_ARGS__) 2088 #define showlist(...) puts (#__VA_ARGS__) 2089 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2090 static void 2091 test_varargs_macros (void) 2092 { 2093 int x = 1234; 2094 int y = 5678; 2095 debug ("Flag"); 2096 debug ("X = %d\n", x); 2097 showlist (The first, second, and third items.); 2098 report (x>y, "x is %d but y is %d", x, y); 2099 } 2100 2101 // Check long long types. 2102 #define BIG64 18446744073709551615ull 2103 #define BIG32 4294967295ul 2104 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2105 #if !BIG_OK 2106 #error "your preprocessor is broken" 2107 #endif 2108 #if BIG_OK 2109 #else 2110 #error "your preprocessor is broken" 2111 #endif 2112 static long long int bignum = -9223372036854775807LL; 2113 static unsigned long long int ubignum = BIG64; 2114 2115 struct incomplete_array 2116 { 2117 int datasize; 2118 double data[]; 2119 }; 2120 2121 struct named_init { 2122 int number; 2123 const wchar_t *name; 2124 double average; 2125 }; 2126 2127 typedef const char *ccp; 2128 2129 static inline int 2130 test_restrict (ccp restrict text) 2131 { 2132 // Iterate through items via the restricted pointer. 2133 // Also check for declarations in for loops. 2134 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2135 continue; 2136 return 0; 2137 } 2138 2139 // Check varargs and va_copy. 2140 static bool 2141 test_varargs (const char *format, ...) 2142 { 2143 va_list args; 2144 va_start (args, format); 2145 va_list args_copy; 2146 va_copy (args_copy, args); 2147 2148 const char *str = ""; 2149 int number = 0; 2150 float fnumber = 0; 2151 2152 while (*format) 2153 { 2154 switch (*format++) 2155 { 2156 case '\''s'\'': // string 2157 str = va_arg (args_copy, const char *); 2158 break; 2159 case '\''d'\'': // int 2160 number = va_arg (args_copy, int); 2161 break; 2162 case '\''f'\'': // float 2163 fnumber = va_arg (args_copy, double); 2164 break; 2165 default: 2166 break; 2167 } 2168 } 2169 va_end (args_copy); 2170 va_end (args); 2171 2172 return *str && number && fnumber; 2173 } 2174 ' 2175 2176 # Test code for whether the C compiler supports C99 (body of main). 2177 ac_c_conftest_c99_main=' 2178 // Check bool. 2179 _Bool success = false; 2180 success |= (argc != 0); 2181 2182 // Check restrict. 2183 if (test_restrict ("String literal") == 0) 2184 success = true; 2185 char *restrict newvar = "Another string"; 2186 2187 // Check varargs. 2188 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2189 test_varargs_macros (); 2190 2191 // Check flexible array members. 2192 struct incomplete_array *ia = 2193 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2194 ia->datasize = 10; 2195 for (int i = 0; i < ia->datasize; ++i) 2196 ia->data[i] = i * 1.234; 2197 // Work around memory leak warnings. 2198 free (ia); 2199 2200 // Check named initializers. 2201 struct named_init ni = { 2202 .number = 34, 2203 .name = L"Test wide string", 2204 .average = 543.34343, 2205 }; 2206 2207 ni.number = 58; 2208 2209 int dynamic_array[ni.number]; 2210 dynamic_array[0] = argv[0][0]; 2211 dynamic_array[ni.number - 1] = 543; 2212 2213 // work around unused variable warnings 2214 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2215 || dynamic_array[ni.number - 1] != 543); 2216 ' 2217 2218 # Test code for whether the C compiler supports C11 (global declarations) 2219 ac_c_conftest_c11_globals=' 2220 /* Does the compiler advertise C11 conformance? */ 2221 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2222 # error "Compiler does not advertise C11 conformance" 2223 #endif 2224 2225 // Check _Alignas. 2226 char _Alignas (double) aligned_as_double; 2227 char _Alignas (0) no_special_alignment; 2228 extern char aligned_as_int; 2229 char _Alignas (0) _Alignas (int) aligned_as_int; 2230 2231 // Check _Alignof. 2232 enum 2233 { 2234 int_alignment = _Alignof (int), 2235 int_array_alignment = _Alignof (int[100]), 2236 char_alignment = _Alignof (char) 2237 }; 2238 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2239 2240 // Check _Noreturn. 2241 int _Noreturn does_not_return (void) { for (;;) continue; } 2242 2243 // Check _Static_assert. 2244 struct test_static_assert 2245 { 2246 int x; 2247 _Static_assert (sizeof (int) <= sizeof (long int), 2248 "_Static_assert does not work in struct"); 2249 long int y; 2250 }; 2251 2252 // Check UTF-8 literals. 2253 #define u8 syntax error! 2254 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2255 2256 // Check duplicate typedefs. 2257 typedef long *long_ptr; 2258 typedef long int *long_ptr; 2259 typedef long_ptr long_ptr; 2260 2261 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2262 struct anonymous 2263 { 2264 union { 2265 struct { int i; int j; }; 2266 struct { int k; long int l; } w; 2267 }; 2268 int m; 2269 } v1; 2270 ' 2271 2272 # Test code for whether the C compiler supports C11 (body of main). 2273 ac_c_conftest_c11_main=' 2274 _Static_assert ((offsetof (struct anonymous, i) 2275 == offsetof (struct anonymous, w.k)), 2276 "Anonymous union alignment botch"); 2277 v1.i = 2; 2278 v1.w.k = 5; 2279 ok |= v1.i != 5; 2280 ' 2281 2282 # Test code for whether the C compiler supports C11 (complete). 2283 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2284 ${ac_c_conftest_c99_globals} 2285 ${ac_c_conftest_c11_globals} 2286 2287 int 2288 main (int argc, char **argv) 2289 { 2290 int ok = 0; 2291 ${ac_c_conftest_c89_main} 2292 ${ac_c_conftest_c99_main} 2293 ${ac_c_conftest_c11_main} 2294 return ok; 2295 } 2296 " 2297 2298 # Test code for whether the C compiler supports C99 (complete). 2299 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2300 ${ac_c_conftest_c99_globals} 2301 2302 int 2303 main (int argc, char **argv) 2304 { 2305 int ok = 0; 2306 ${ac_c_conftest_c89_main} 2307 ${ac_c_conftest_c99_main} 2308 return ok; 2309 } 2310 " 2311 2312 # Test code for whether the C compiler supports C89 (complete). 2313 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2314 2315 int 2316 main (int argc, char **argv) 2317 { 2318 int ok = 0; 2319 ${ac_c_conftest_c89_main} 2320 return ok; 2321 } 2322 " 2323 2324 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2325 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2326 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2327 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2328 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2329 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2330 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2331 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2332 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2333 2334 # Auxiliary files required by this configure script. 2335 ac_aux_files="config.guess config.sub compile missing install-sh" 2336 2337 # Locations in which to look for auxiliary files. 2338 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2339 2340 # Search for a directory containing all of the required auxiliary files, 2341 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2342 # If we don't find one directory that contains all the files we need, 2343 # we report the set of missing files from the *first* directory in 2344 # $ac_aux_dir_candidates and give up. 2345 ac_missing_aux_files="" 2346 ac_first_candidate=: 2347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2349 as_found=false 2350 for as_dir in $ac_aux_dir_candidates 2351 do 2352 IFS=$as_save_IFS 2353 case $as_dir in #((( 2354 '') as_dir=./ ;; 2355 */) ;; 2356 *) as_dir=$as_dir/ ;; 2357 esac 2358 as_found=: 2359 2360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2361 ac_aux_dir_found=yes 2362 ac_install_sh= 2363 for ac_aux in $ac_aux_files 2364 do 2365 # As a special case, if "install-sh" is required, that requirement 2366 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2367 # and $ac_install_sh is set appropriately for whichever one is found. 2368 if test x"$ac_aux" = x"install-sh" 2369 then 2370 if test -f "${as_dir}install-sh"; then 2371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2372 ac_install_sh="${as_dir}install-sh -c" 2373 elif test -f "${as_dir}install.sh"; then 2374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2375 ac_install_sh="${as_dir}install.sh -c" 2376 elif test -f "${as_dir}shtool"; then 2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2378 ac_install_sh="${as_dir}shtool install -c" 2379 else 2380 ac_aux_dir_found=no 2381 if $ac_first_candidate; then 2382 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2383 else 2384 break 2385 fi 2386 fi 2387 else 2388 if test -f "${as_dir}${ac_aux}"; then 2389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2390 else 2391 ac_aux_dir_found=no 2392 if $ac_first_candidate; then 2393 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2394 else 2395 break 2396 fi 2397 fi 2398 fi 2399 done 2400 if test "$ac_aux_dir_found" = yes; then 2401 ac_aux_dir="$as_dir" 2402 break 2403 fi 2404 ac_first_candidate=false 2405 2406 as_found=false 2407 done 2408 IFS=$as_save_IFS 2409 if $as_found 2410 then : 2411 2412 else case e in #( 2413 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2414 esac 2415 fi 2416 2417 2418 # These three variables are undocumented and unsupported, 2419 # and are intended to be withdrawn in a future Autoconf release. 2420 # They can cause serious problems if a builder's source tree is in a directory 2421 # whose full name contains unusual characters. 2422 if test -f "${ac_aux_dir}config.guess"; then 2423 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2424 fi 2425 if test -f "${ac_aux_dir}config.sub"; then 2426 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2427 fi 2428 if test -f "$ac_aux_dir/configure"; then 2429 ac_configure="$SHELL ${ac_aux_dir}configure" 2430 fi 2431 2432 # Check that the precious variables saved in the cache have kept the same 2433 # value. 2434 ac_cache_corrupted=false 2435 for ac_var in $ac_precious_vars; do 2436 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2437 eval ac_new_set=\$ac_env_${ac_var}_set 2438 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2439 eval ac_new_val=\$ac_env_${ac_var}_value 2440 case $ac_old_set,$ac_new_set in 2441 set,) 2442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2443 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2444 ac_cache_corrupted=: ;; 2445 ,set) 2446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2447 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2448 ac_cache_corrupted=: ;; 2449 ,);; 2450 *) 2451 if test "x$ac_old_val" != "x$ac_new_val"; then 2452 # differences in whitespace do not lead to failure. 2453 ac_old_val_w=`echo x $ac_old_val` 2454 ac_new_val_w=`echo x $ac_new_val` 2455 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2457 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2458 ac_cache_corrupted=: 2459 else 2460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2461 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2462 eval $ac_var=\$ac_old_val 2463 fi 2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2465 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2467 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2468 fi;; 2469 esac 2470 # Pass precious variables to config.status. 2471 if test "$ac_new_set" = set; then 2472 case $ac_new_val in 2473 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2474 *) ac_arg=$ac_var=$ac_new_val ;; 2475 esac 2476 case " $ac_configure_args " in 2477 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2478 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2479 esac 2480 fi 2481 done 2482 if $ac_cache_corrupted; then 2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2484 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2486 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2487 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2488 and start over" "$LINENO" 5 2489 fi 2490 ## -------------------- ## 2491 ## Main body of script. ## 2492 ## -------------------- ## 2493 2494 ac_ext=c 2495 ac_cpp='$CPP $CPPFLAGS' 2496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2498 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2499 2500 2501 2502 ac_config_headers="$ac_config_headers config.h" 2503 2504 2505 # Initialize Automake 2506 am__api_version='1.16' 2507 2508 2509 2510 # Find a good install program. We prefer a C program (faster), 2511 # so one script is as good as another. But avoid the broken or 2512 # incompatible versions: 2513 # SysV /etc/install, /usr/sbin/install 2514 # SunOS /usr/etc/install 2515 # IRIX /sbin/install 2516 # AIX /bin/install 2517 # AmigaOS /C/install, which installs bootblocks on floppy discs 2518 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2519 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2520 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2521 # OS/2's system install, which has a completely different semantic 2522 # ./install, which can be erroneously created by make from ./install.sh. 2523 # Reject install programs that cannot install multiple files. 2524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2525 printf %s "checking for a BSD-compatible install... " >&6; } 2526 if test -z "$INSTALL"; then 2527 if test ${ac_cv_path_install+y} 2528 then : 2529 printf %s "(cached) " >&6 2530 else case e in #( 2531 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2532 for as_dir in $PATH 2533 do 2534 IFS=$as_save_IFS 2535 case $as_dir in #((( 2536 '') as_dir=./ ;; 2537 */) ;; 2538 *) as_dir=$as_dir/ ;; 2539 esac 2540 # Account for fact that we put trailing slashes in our PATH walk. 2541 case $as_dir in #(( 2542 ./ | /[cC]/* | \ 2543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2544 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2545 /usr/ucb/* ) ;; 2546 *) 2547 # OSF1 and SCO ODT 3.0 have their own names for install. 2548 # Don't use installbsd from OSF since it installs stuff as root 2549 # by default. 2550 for ac_prog in ginstall scoinst install; do 2551 for ac_exec_ext in '' $ac_executable_extensions; do 2552 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2553 if test $ac_prog = install && 2554 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2555 # AIX install. It has an incompatible calling convention. 2556 : 2557 elif test $ac_prog = install && 2558 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2559 # program-specific install script used by HP pwplus--don't use. 2560 : 2561 else 2562 rm -rf conftest.one conftest.two conftest.dir 2563 echo one > conftest.one 2564 echo two > conftest.two 2565 mkdir conftest.dir 2566 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2567 test -s conftest.one && test -s conftest.two && 2568 test -s conftest.dir/conftest.one && 2569 test -s conftest.dir/conftest.two 2570 then 2571 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2572 break 3 2573 fi 2574 fi 2575 fi 2576 done 2577 done 2578 ;; 2579 esac 2580 2581 done 2582 IFS=$as_save_IFS 2583 2584 rm -rf conftest.one conftest.two conftest.dir 2585 ;; 2586 esac 2587 fi 2588 if test ${ac_cv_path_install+y}; then 2589 INSTALL=$ac_cv_path_install 2590 else 2591 # As a last resort, use the slow shell script. Don't cache a 2592 # value for INSTALL within a source directory, because that will 2593 # break other packages using the cache if that directory is 2594 # removed, or if the value is a relative name. 2595 INSTALL=$ac_install_sh 2596 fi 2597 fi 2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2599 printf "%s\n" "$INSTALL" >&6; } 2600 2601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2602 # It thinks the first close brace ends the variable substitution. 2603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2604 2605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2606 2607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2608 2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2610 printf %s "checking whether build environment is sane... " >&6; } 2611 # Reject unsafe characters in $srcdir or the absolute working directory 2612 # name. Accept space and tab only in the latter. 2613 am_lf=' 2614 ' 2615 case `pwd` in 2616 *[\\\"\#\$\&\'\`$am_lf]*) 2617 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2618 esac 2619 case $srcdir in 2620 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2621 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2622 esac 2623 2624 # Do 'set' in a subshell so we don't clobber the current shell's 2625 # arguments. Must try -L first in case configure is actually a 2626 # symlink; some systems play weird games with the mod time of symlinks 2627 # (eg FreeBSD returns the mod time of the symlink's containing 2628 # directory). 2629 if ( 2630 am_has_slept=no 2631 for am_try in 1 2; do 2632 echo "timestamp, slept: $am_has_slept" > conftest.file 2633 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2634 if test "$*" = "X"; then 2635 # -L didn't work. 2636 set X `ls -t "$srcdir/configure" conftest.file` 2637 fi 2638 if test "$*" != "X $srcdir/configure conftest.file" \ 2639 && test "$*" != "X conftest.file $srcdir/configure"; then 2640 2641 # If neither matched, then we have a broken ls. This can happen 2642 # if, for instance, CONFIG_SHELL is bash and it inherits a 2643 # broken ls alias from the environment. This has actually 2644 # happened. Such a system could not be considered "sane". 2645 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2646 alias in your environment" "$LINENO" 5 2647 fi 2648 if test "$2" = conftest.file || test $am_try -eq 2; then 2649 break 2650 fi 2651 # Just in case. 2652 sleep 1 2653 am_has_slept=yes 2654 done 2655 test "$2" = conftest.file 2656 ) 2657 then 2658 # Ok. 2659 : 2660 else 2661 as_fn_error $? "newly created file is older than distributed files! 2662 Check your system clock" "$LINENO" 5 2663 fi 2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2665 printf "%s\n" "yes" >&6; } 2666 # If we didn't sleep, we still need to ensure time stamps of config.status and 2667 # generated files are strictly newer. 2668 am_sleep_pid= 2669 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2670 ( sleep 1 ) & 2671 am_sleep_pid=$! 2672 fi 2673 2674 rm -f conftest.file 2675 2676 test "$program_prefix" != NONE && 2677 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2678 # Use a double $ so make ignores it. 2679 test "$program_suffix" != NONE && 2680 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2681 # Double any \ or $. 2682 # By default was 's,x,x', remove it if useless. 2683 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2684 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2685 2686 2687 # Expand $ac_aux_dir to an absolute path. 2688 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2689 2690 2691 if test x"${MISSING+set}" != xset; then 2692 MISSING="\${SHELL} '$am_aux_dir/missing'" 2693 fi 2694 # Use eval to expand $SHELL 2695 if eval "$MISSING --is-lightweight"; then 2696 am_missing_run="$MISSING " 2697 else 2698 am_missing_run= 2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2700 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2701 fi 2702 2703 if test x"${install_sh+set}" != xset; then 2704 case $am_aux_dir in 2705 *\ * | *\ *) 2706 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2707 *) 2708 install_sh="\${SHELL} $am_aux_dir/install-sh" 2709 esac 2710 fi 2711 2712 # Installed binaries are usually stripped using 'strip' when the user 2713 # run "make install-strip". However 'strip' might not be the right 2714 # tool to use in cross-compilation environments, therefore Automake 2715 # will honor the 'STRIP' environment variable to overrule this program. 2716 if test "$cross_compiling" != no; then 2717 if test -n "$ac_tool_prefix"; then 2718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2719 set dummy ${ac_tool_prefix}strip; ac_word=$2 2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2721 printf %s "checking for $ac_word... " >&6; } 2722 if test ${ac_cv_prog_STRIP+y} 2723 then : 2724 printf %s "(cached) " >&6 2725 else case e in #( 2726 e) if test -n "$STRIP"; then 2727 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2728 else 2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2730 for as_dir in $PATH 2731 do 2732 IFS=$as_save_IFS 2733 case $as_dir in #((( 2734 '') as_dir=./ ;; 2735 */) ;; 2736 *) as_dir=$as_dir/ ;; 2737 esac 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2740 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2742 break 2 2743 fi 2744 done 2745 done 2746 IFS=$as_save_IFS 2747 2748 fi ;; 2749 esac 2750 fi 2751 STRIP=$ac_cv_prog_STRIP 2752 if test -n "$STRIP"; then 2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2754 printf "%s\n" "$STRIP" >&6; } 2755 else 2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2757 printf "%s\n" "no" >&6; } 2758 fi 2759 2760 2761 fi 2762 if test -z "$ac_cv_prog_STRIP"; then 2763 ac_ct_STRIP=$STRIP 2764 # Extract the first word of "strip", so it can be a program name with args. 2765 set dummy strip; ac_word=$2 2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2767 printf %s "checking for $ac_word... " >&6; } 2768 if test ${ac_cv_prog_ac_ct_STRIP+y} 2769 then : 2770 printf %s "(cached) " >&6 2771 else case e in #( 2772 e) if test -n "$ac_ct_STRIP"; then 2773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2774 else 2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776 for as_dir in $PATH 2777 do 2778 IFS=$as_save_IFS 2779 case $as_dir in #((( 2780 '') as_dir=./ ;; 2781 */) ;; 2782 *) as_dir=$as_dir/ ;; 2783 esac 2784 for ac_exec_ext in '' $ac_executable_extensions; do 2785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2786 ac_cv_prog_ac_ct_STRIP="strip" 2787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2788 break 2 2789 fi 2790 done 2791 done 2792 IFS=$as_save_IFS 2793 2794 fi ;; 2795 esac 2796 fi 2797 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2798 if test -n "$ac_ct_STRIP"; then 2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2800 printf "%s\n" "$ac_ct_STRIP" >&6; } 2801 else 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803 printf "%s\n" "no" >&6; } 2804 fi 2805 2806 if test "x$ac_ct_STRIP" = x; then 2807 STRIP=":" 2808 else 2809 case $cross_compiling:$ac_tool_warned in 2810 yes:) 2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2812 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2813 ac_tool_warned=yes ;; 2814 esac 2815 STRIP=$ac_ct_STRIP 2816 fi 2817 else 2818 STRIP="$ac_cv_prog_STRIP" 2819 fi 2820 2821 fi 2822 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2823 2824 2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2826 printf %s "checking for a race-free mkdir -p... " >&6; } 2827 if test -z "$MKDIR_P"; then 2828 if test ${ac_cv_path_mkdir+y} 2829 then : 2830 printf %s "(cached) " >&6 2831 else case e in #( 2832 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2833 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2834 do 2835 IFS=$as_save_IFS 2836 case $as_dir in #((( 2837 '') as_dir=./ ;; 2838 */) ;; 2839 *) as_dir=$as_dir/ ;; 2840 esac 2841 for ac_prog in mkdir gmkdir; do 2842 for ac_exec_ext in '' $ac_executable_extensions; do 2843 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2844 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2845 'mkdir ('*'coreutils) '* | \ 2846 *'BusyBox '* | \ 2847 'mkdir (fileutils) '4.1*) 2848 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2849 break 3;; 2850 esac 2851 done 2852 done 2853 done 2854 IFS=$as_save_IFS 2855 ;; 2856 esac 2857 fi 2858 2859 test -d ./--version && rmdir ./--version 2860 if test ${ac_cv_path_mkdir+y}; then 2861 MKDIR_P="$ac_cv_path_mkdir -p" 2862 else 2863 # As a last resort, use plain mkdir -p, 2864 # in the hope it doesn't have the bugs of ancient mkdir. 2865 MKDIR_P='mkdir -p' 2866 fi 2867 fi 2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2869 printf "%s\n" "$MKDIR_P" >&6; } 2870 2871 for ac_prog in gawk mawk nawk awk 2872 do 2873 # Extract the first word of "$ac_prog", so it can be a program name with args. 2874 set dummy $ac_prog; ac_word=$2 2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876 printf %s "checking for $ac_word... " >&6; } 2877 if test ${ac_cv_prog_AWK+y} 2878 then : 2879 printf %s "(cached) " >&6 2880 else case e in #( 2881 e) if test -n "$AWK"; then 2882 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2883 else 2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2885 for as_dir in $PATH 2886 do 2887 IFS=$as_save_IFS 2888 case $as_dir in #((( 2889 '') as_dir=./ ;; 2890 */) ;; 2891 *) as_dir=$as_dir/ ;; 2892 esac 2893 for ac_exec_ext in '' $ac_executable_extensions; do 2894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2895 ac_cv_prog_AWK="$ac_prog" 2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2897 break 2 2898 fi 2899 done 2900 done 2901 IFS=$as_save_IFS 2902 2903 fi ;; 2904 esac 2905 fi 2906 AWK=$ac_cv_prog_AWK 2907 if test -n "$AWK"; then 2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2909 printf "%s\n" "$AWK" >&6; } 2910 else 2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2912 printf "%s\n" "no" >&6; } 2913 fi 2914 2915 2916 test -n "$AWK" && break 2917 done 2918 2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2920 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2921 set x ${MAKE-make} 2922 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2923 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2924 then : 2925 printf %s "(cached) " >&6 2926 else case e in #( 2927 e) cat >conftest.make <<\_ACEOF 2928 SHELL = /bin/sh 2929 all: 2930 @echo '@@@%%%=$(MAKE)=@@@%%%' 2931 _ACEOF 2932 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2933 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2934 *@@@%%%=?*=@@@%%%*) 2935 eval ac_cv_prog_make_${ac_make}_set=yes;; 2936 *) 2937 eval ac_cv_prog_make_${ac_make}_set=no;; 2938 esac 2939 rm -f conftest.make ;; 2940 esac 2941 fi 2942 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2944 printf "%s\n" "yes" >&6; } 2945 SET_MAKE= 2946 else 2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2948 printf "%s\n" "no" >&6; } 2949 SET_MAKE="MAKE=${MAKE-make}" 2950 fi 2951 2952 rm -rf .tst 2>/dev/null 2953 mkdir .tst 2>/dev/null 2954 if test -d .tst; then 2955 am__leading_dot=. 2956 else 2957 am__leading_dot=_ 2958 fi 2959 rmdir .tst 2>/dev/null 2960 2961 # Check whether --enable-silent-rules was given. 2962 if test ${enable_silent_rules+y} 2963 then : 2964 enableval=$enable_silent_rules; 2965 fi 2966 2967 case $enable_silent_rules in # ((( 2968 yes) AM_DEFAULT_VERBOSITY=0;; 2969 no) AM_DEFAULT_VERBOSITY=1;; 2970 *) AM_DEFAULT_VERBOSITY=1;; 2971 esac 2972 am_make=${MAKE-make} 2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2974 printf %s "checking whether $am_make supports nested variables... " >&6; } 2975 if test ${am_cv_make_support_nested_variables+y} 2976 then : 2977 printf %s "(cached) " >&6 2978 else case e in #( 2979 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 2980 BAR0=false 2981 BAR1=true 2982 V=1 2983 am__doit: 2984 @$(TRUE) 2985 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2986 am_cv_make_support_nested_variables=yes 2987 else 2988 am_cv_make_support_nested_variables=no 2989 fi ;; 2990 esac 2991 fi 2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2993 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2994 if test $am_cv_make_support_nested_variables = yes; then 2995 AM_V='$(V)' 2996 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2997 else 2998 AM_V=$AM_DEFAULT_VERBOSITY 2999 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3000 fi 3001 AM_BACKSLASH='\' 3002 3003 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3004 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3005 # is not polluted with repeated "-I." 3006 am__isrc=' -I$(srcdir)' 3007 # test to see if srcdir already configured 3008 if test -f $srcdir/config.status; then 3009 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3010 fi 3011 fi 3012 3013 # test whether we have cygpath 3014 if test -z "$CYGPATH_W"; then 3015 if (cygpath --version) >/dev/null 2>/dev/null; then 3016 CYGPATH_W='cygpath -w' 3017 else 3018 CYGPATH_W=echo 3019 fi 3020 fi 3021 3022 3023 # Define the identity of the package. 3024 PACKAGE='xrandr' 3025 VERSION='1.5.3' 3026 3027 3028 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3029 3030 3031 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3032 3033 # Some tools Automake needs. 3034 3035 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3036 3037 3038 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3039 3040 3041 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3042 3043 3044 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3045 3046 3047 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3048 3049 # For better backward compatibility. To be removed once Automake 1.9.x 3050 # dies out for good. For more background, see: 3051 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3052 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3053 mkdir_p='$(MKDIR_P)' 3054 3055 # We need awk for the "check" target (and possibly the TAP driver). The 3056 # system "awk" is bad on some platforms. 3057 # Always define AMTAR for backward compatibility. Yes, it's still used 3058 # in the wild :-( We should find a proper way to deprecate it ... 3059 AMTAR='$${TAR-tar}' 3060 3061 3062 # We'll loop over all known methods to create a tar archive until one works. 3063 _am_tools='gnutar pax cpio none' 3064 3065 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3066 3067 3068 3069 3070 3071 # Variables for tags utilities; see am/tags.am 3072 if test -z "$CTAGS"; then 3073 CTAGS=ctags 3074 fi 3075 3076 if test -z "$ETAGS"; then 3077 ETAGS=etags 3078 fi 3079 3080 if test -z "$CSCOPE"; then 3081 CSCOPE=cscope 3082 fi 3083 3084 3085 3086 # POSIX will say in a future version that running "rm -f" with no argument 3087 # is OK; and we want to be able to make that assumption in our Makefile 3088 # recipes. So use an aggressive probe to check that the usage we want is 3089 # actually supported "in the wild" to an acceptable degree. 3090 # See automake bug#10828. 3091 # To make any issue more visible, cause the running configure to be aborted 3092 # by default if the 'rm' program in use doesn't match our expectations; the 3093 # user can still override this though. 3094 if rm -f && rm -fr && rm -rf; then : OK; else 3095 cat >&2 <<'END' 3096 Oops! 3097 3098 Your 'rm' program seems unable to run without file operands specified 3099 on the command line, even when the '-f' option is present. This is contrary 3100 to the behaviour of most rm programs out there, and not conforming with 3101 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3102 3103 Please tell bug-automake@gnu.org about your system, including the value 3104 of your $PATH and any error possibly output before this message. This 3105 can help us improve future automake versions. 3106 3107 END 3108 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3109 echo 'Configuration will proceed anyway, since you have set the' >&2 3110 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3111 echo >&2 3112 else 3113 cat >&2 <<'END' 3114 Aborting the configuration process, to ensure you take notice of the issue. 3115 3116 You can download and install GNU coreutils to get an 'rm' implementation 3117 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3118 3119 If you want to complete the configuration process using your problematic 3120 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3121 to "yes", and re-run configure. 3122 3123 END 3124 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3125 fi 3126 fi 3127 3128 3129 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 DEPDIR="${am__leading_dot}deps" 3151 3152 ac_config_commands="$ac_config_commands depfiles" 3153 3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3155 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3156 cat > confinc.mk << 'END' 3157 am__doit: 3158 @echo this is the am__doit target >confinc.out 3159 .PHONY: am__doit 3160 END 3161 am__include="#" 3162 am__quote= 3163 # BSD make does it like this. 3164 echo '.include "confinc.mk" # ignored' > confmf.BSD 3165 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3166 echo 'include confinc.mk # ignored' > confmf.GNU 3167 _am_result=no 3168 for s in GNU BSD; do 3169 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3170 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3171 ac_status=$? 3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3173 (exit $ac_status); } 3174 case $?:`cat confinc.out 2>/dev/null` in #( 3175 '0:this is the am__doit target') : 3176 case $s in #( 3177 BSD) : 3178 am__include='.include' am__quote='"' ;; #( 3179 *) : 3180 am__include='include' am__quote='' ;; 3181 esac ;; #( 3182 *) : 3183 ;; 3184 esac 3185 if test "$am__include" != "#"; then 3186 _am_result="yes ($s style)" 3187 break 3188 fi 3189 done 3190 rm -f confinc.* confmf.* 3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3192 printf "%s\n" "${_am_result}" >&6; } 3193 3194 # Check whether --enable-dependency-tracking was given. 3195 if test ${enable_dependency_tracking+y} 3196 then : 3197 enableval=$enable_dependency_tracking; 3198 fi 3199 3200 if test "x$enable_dependency_tracking" != xno; then 3201 am_depcomp="$ac_aux_dir/depcomp" 3202 AMDEPBACKSLASH='\' 3203 am__nodep='_no' 3204 fi 3205 if test "x$enable_dependency_tracking" != xno; then 3206 AMDEP_TRUE= 3207 AMDEP_FALSE='#' 3208 else 3209 AMDEP_TRUE='#' 3210 AMDEP_FALSE= 3211 fi 3212 3213 3214 ac_ext=c 3215 ac_cpp='$CPP $CPPFLAGS' 3216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3218 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3219 if test -n "$ac_tool_prefix"; then 3220 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3221 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3223 printf %s "checking for $ac_word... " >&6; } 3224 if test ${ac_cv_prog_CC+y} 3225 then : 3226 printf %s "(cached) " >&6 3227 else case e in #( 3228 e) if test -n "$CC"; then 3229 ac_cv_prog_CC="$CC" # Let the user override the test. 3230 else 3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3232 for as_dir in $PATH 3233 do 3234 IFS=$as_save_IFS 3235 case $as_dir in #((( 3236 '') as_dir=./ ;; 3237 */) ;; 3238 *) as_dir=$as_dir/ ;; 3239 esac 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3242 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3244 break 2 3245 fi 3246 done 3247 done 3248 IFS=$as_save_IFS 3249 3250 fi ;; 3251 esac 3252 fi 3253 CC=$ac_cv_prog_CC 3254 if test -n "$CC"; then 3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3256 printf "%s\n" "$CC" >&6; } 3257 else 3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3259 printf "%s\n" "no" >&6; } 3260 fi 3261 3262 3263 fi 3264 if test -z "$ac_cv_prog_CC"; then 3265 ac_ct_CC=$CC 3266 # Extract the first word of "gcc", so it can be a program name with args. 3267 set dummy gcc; ac_word=$2 3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3269 printf %s "checking for $ac_word... " >&6; } 3270 if test ${ac_cv_prog_ac_ct_CC+y} 3271 then : 3272 printf %s "(cached) " >&6 3273 else case e in #( 3274 e) if test -n "$ac_ct_CC"; then 3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3276 else 3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3278 for as_dir in $PATH 3279 do 3280 IFS=$as_save_IFS 3281 case $as_dir in #((( 3282 '') as_dir=./ ;; 3283 */) ;; 3284 *) as_dir=$as_dir/ ;; 3285 esac 3286 for ac_exec_ext in '' $ac_executable_extensions; do 3287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3288 ac_cv_prog_ac_ct_CC="gcc" 3289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3290 break 2 3291 fi 3292 done 3293 done 3294 IFS=$as_save_IFS 3295 3296 fi ;; 3297 esac 3298 fi 3299 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3300 if test -n "$ac_ct_CC"; then 3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3302 printf "%s\n" "$ac_ct_CC" >&6; } 3303 else 3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305 printf "%s\n" "no" >&6; } 3306 fi 3307 3308 if test "x$ac_ct_CC" = x; then 3309 CC="" 3310 else 3311 case $cross_compiling:$ac_tool_warned in 3312 yes:) 3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3314 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3315 ac_tool_warned=yes ;; 3316 esac 3317 CC=$ac_ct_CC 3318 fi 3319 else 3320 CC="$ac_cv_prog_CC" 3321 fi 3322 3323 if test -z "$CC"; then 3324 if test -n "$ac_tool_prefix"; then 3325 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3326 set dummy ${ac_tool_prefix}cc; ac_word=$2 3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3328 printf %s "checking for $ac_word... " >&6; } 3329 if test ${ac_cv_prog_CC+y} 3330 then : 3331 printf %s "(cached) " >&6 3332 else case e in #( 3333 e) if test -n "$CC"; then 3334 ac_cv_prog_CC="$CC" # Let the user override the test. 3335 else 3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3337 for as_dir in $PATH 3338 do 3339 IFS=$as_save_IFS 3340 case $as_dir in #((( 3341 '') as_dir=./ ;; 3342 */) ;; 3343 *) as_dir=$as_dir/ ;; 3344 esac 3345 for ac_exec_ext in '' $ac_executable_extensions; do 3346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3347 ac_cv_prog_CC="${ac_tool_prefix}cc" 3348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3349 break 2 3350 fi 3351 done 3352 done 3353 IFS=$as_save_IFS 3354 3355 fi ;; 3356 esac 3357 fi 3358 CC=$ac_cv_prog_CC 3359 if test -n "$CC"; then 3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3361 printf "%s\n" "$CC" >&6; } 3362 else 3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3364 printf "%s\n" "no" >&6; } 3365 fi 3366 3367 3368 fi 3369 fi 3370 if test -z "$CC"; then 3371 # Extract the first word of "cc", so it can be a program name with args. 3372 set dummy cc; ac_word=$2 3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3374 printf %s "checking for $ac_word... " >&6; } 3375 if test ${ac_cv_prog_CC+y} 3376 then : 3377 printf %s "(cached) " >&6 3378 else case e in #( 3379 e) if test -n "$CC"; then 3380 ac_cv_prog_CC="$CC" # Let the user override the test. 3381 else 3382 ac_prog_rejected=no 3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3384 for as_dir in $PATH 3385 do 3386 IFS=$as_save_IFS 3387 case $as_dir in #((( 3388 '') as_dir=./ ;; 3389 */) ;; 3390 *) as_dir=$as_dir/ ;; 3391 esac 3392 for ac_exec_ext in '' $ac_executable_extensions; do 3393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3394 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3395 ac_prog_rejected=yes 3396 continue 3397 fi 3398 ac_cv_prog_CC="cc" 3399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3400 break 2 3401 fi 3402 done 3403 done 3404 IFS=$as_save_IFS 3405 3406 if test $ac_prog_rejected = yes; then 3407 # We found a bogon in the path, so make sure we never use it. 3408 set dummy $ac_cv_prog_CC 3409 shift 3410 if test $# != 0; then 3411 # We chose a different compiler from the bogus one. 3412 # However, it has the same basename, so the bogon will be chosen 3413 # first if we set CC to just the basename; use the full file name. 3414 shift 3415 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3416 fi 3417 fi 3418 fi ;; 3419 esac 3420 fi 3421 CC=$ac_cv_prog_CC 3422 if test -n "$CC"; then 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3424 printf "%s\n" "$CC" >&6; } 3425 else 3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3427 printf "%s\n" "no" >&6; } 3428 fi 3429 3430 3431 fi 3432 if test -z "$CC"; then 3433 if test -n "$ac_tool_prefix"; then 3434 for ac_prog in cl.exe 3435 do 3436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3439 printf %s "checking for $ac_word... " >&6; } 3440 if test ${ac_cv_prog_CC+y} 3441 then : 3442 printf %s "(cached) " >&6 3443 else case e in #( 3444 e) if test -n "$CC"; then 3445 ac_cv_prog_CC="$CC" # Let the user override the test. 3446 else 3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3448 for as_dir in $PATH 3449 do 3450 IFS=$as_save_IFS 3451 case $as_dir in #((( 3452 '') as_dir=./ ;; 3453 */) ;; 3454 *) as_dir=$as_dir/ ;; 3455 esac 3456 for ac_exec_ext in '' $ac_executable_extensions; do 3457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3458 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3460 break 2 3461 fi 3462 done 3463 done 3464 IFS=$as_save_IFS 3465 3466 fi ;; 3467 esac 3468 fi 3469 CC=$ac_cv_prog_CC 3470 if test -n "$CC"; then 3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3472 printf "%s\n" "$CC" >&6; } 3473 else 3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3475 printf "%s\n" "no" >&6; } 3476 fi 3477 3478 3479 test -n "$CC" && break 3480 done 3481 fi 3482 if test -z "$CC"; then 3483 ac_ct_CC=$CC 3484 for ac_prog in cl.exe 3485 do 3486 # Extract the first word of "$ac_prog", so it can be a program name with args. 3487 set dummy $ac_prog; ac_word=$2 3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3489 printf %s "checking for $ac_word... " >&6; } 3490 if test ${ac_cv_prog_ac_ct_CC+y} 3491 then : 3492 printf %s "(cached) " >&6 3493 else case e in #( 3494 e) if test -n "$ac_ct_CC"; then 3495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3496 else 3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3498 for as_dir in $PATH 3499 do 3500 IFS=$as_save_IFS 3501 case $as_dir in #((( 3502 '') as_dir=./ ;; 3503 */) ;; 3504 *) as_dir=$as_dir/ ;; 3505 esac 3506 for ac_exec_ext in '' $ac_executable_extensions; do 3507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3508 ac_cv_prog_ac_ct_CC="$ac_prog" 3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3510 break 2 3511 fi 3512 done 3513 done 3514 IFS=$as_save_IFS 3515 3516 fi ;; 3517 esac 3518 fi 3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3520 if test -n "$ac_ct_CC"; then 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3522 printf "%s\n" "$ac_ct_CC" >&6; } 3523 else 3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3525 printf "%s\n" "no" >&6; } 3526 fi 3527 3528 3529 test -n "$ac_ct_CC" && break 3530 done 3531 3532 if test "x$ac_ct_CC" = x; then 3533 CC="" 3534 else 3535 case $cross_compiling:$ac_tool_warned in 3536 yes:) 3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3538 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3539 ac_tool_warned=yes ;; 3540 esac 3541 CC=$ac_ct_CC 3542 fi 3543 fi 3544 3545 fi 3546 if test -z "$CC"; then 3547 if test -n "$ac_tool_prefix"; then 3548 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3549 set dummy ${ac_tool_prefix}clang; ac_word=$2 3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3551 printf %s "checking for $ac_word... " >&6; } 3552 if test ${ac_cv_prog_CC+y} 3553 then : 3554 printf %s "(cached) " >&6 3555 else case e in #( 3556 e) if test -n "$CC"; then 3557 ac_cv_prog_CC="$CC" # Let the user override the test. 3558 else 3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3560 for as_dir in $PATH 3561 do 3562 IFS=$as_save_IFS 3563 case $as_dir in #((( 3564 '') as_dir=./ ;; 3565 */) ;; 3566 *) as_dir=$as_dir/ ;; 3567 esac 3568 for ac_exec_ext in '' $ac_executable_extensions; do 3569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3570 ac_cv_prog_CC="${ac_tool_prefix}clang" 3571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3572 break 2 3573 fi 3574 done 3575 done 3576 IFS=$as_save_IFS 3577 3578 fi ;; 3579 esac 3580 fi 3581 CC=$ac_cv_prog_CC 3582 if test -n "$CC"; then 3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3584 printf "%s\n" "$CC" >&6; } 3585 else 3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3587 printf "%s\n" "no" >&6; } 3588 fi 3589 3590 3591 fi 3592 if test -z "$ac_cv_prog_CC"; then 3593 ac_ct_CC=$CC 3594 # Extract the first word of "clang", so it can be a program name with args. 3595 set dummy clang; ac_word=$2 3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3597 printf %s "checking for $ac_word... " >&6; } 3598 if test ${ac_cv_prog_ac_ct_CC+y} 3599 then : 3600 printf %s "(cached) " >&6 3601 else case e in #( 3602 e) if test -n "$ac_ct_CC"; then 3603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3604 else 3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3606 for as_dir in $PATH 3607 do 3608 IFS=$as_save_IFS 3609 case $as_dir in #((( 3610 '') as_dir=./ ;; 3611 */) ;; 3612 *) as_dir=$as_dir/ ;; 3613 esac 3614 for ac_exec_ext in '' $ac_executable_extensions; do 3615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3616 ac_cv_prog_ac_ct_CC="clang" 3617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3618 break 2 3619 fi 3620 done 3621 done 3622 IFS=$as_save_IFS 3623 3624 fi ;; 3625 esac 3626 fi 3627 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3628 if test -n "$ac_ct_CC"; then 3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3630 printf "%s\n" "$ac_ct_CC" >&6; } 3631 else 3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3633 printf "%s\n" "no" >&6; } 3634 fi 3635 3636 if test "x$ac_ct_CC" = x; then 3637 CC="" 3638 else 3639 case $cross_compiling:$ac_tool_warned in 3640 yes:) 3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3642 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3643 ac_tool_warned=yes ;; 3644 esac 3645 CC=$ac_ct_CC 3646 fi 3647 else 3648 CC="$ac_cv_prog_CC" 3649 fi 3650 3651 fi 3652 3653 3654 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3655 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3656 as_fn_error $? "no acceptable C compiler found in \$PATH 3657 See 'config.log' for more details" "$LINENO" 5; } 3658 3659 # Provide some information about the compiler. 3660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3661 set X $ac_compile 3662 ac_compiler=$2 3663 for ac_option in --version -v -V -qversion -version; do 3664 { { ac_try="$ac_compiler $ac_option >&5" 3665 case "(($ac_try" in 3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3667 *) ac_try_echo=$ac_try;; 3668 esac 3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3670 printf "%s\n" "$ac_try_echo"; } >&5 3671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3672 ac_status=$? 3673 if test -s conftest.err; then 3674 sed '10a\ 3675 ... rest of stderr output deleted ... 3676 10q' conftest.err >conftest.er1 3677 cat conftest.er1 >&5 3678 fi 3679 rm -f conftest.er1 conftest.err 3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3681 test $ac_status = 0; } 3682 done 3683 3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685 /* end confdefs.h. */ 3686 3687 int 3688 main (void) 3689 { 3690 3691 ; 3692 return 0; 3693 } 3694 _ACEOF 3695 ac_clean_files_save=$ac_clean_files 3696 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3697 # Try to create an executable without -o first, disregard a.out. 3698 # It will help us diagnose broken compilers, and finding out an intuition 3699 # of exeext. 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3701 printf %s "checking whether the C compiler works... " >&6; } 3702 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3703 3704 # The possible output files: 3705 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3706 3707 ac_rmfiles= 3708 for ac_file in $ac_files 3709 do 3710 case $ac_file in 3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3712 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3713 esac 3714 done 3715 rm -f $ac_rmfiles 3716 3717 if { { ac_try="$ac_link_default" 3718 case "(($ac_try" in 3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3720 *) ac_try_echo=$ac_try;; 3721 esac 3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3723 printf "%s\n" "$ac_try_echo"; } >&5 3724 (eval "$ac_link_default") 2>&5 3725 ac_status=$? 3726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3727 test $ac_status = 0; } 3728 then : 3729 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3730 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3731 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3732 # so that the user can short-circuit this test for compilers unknown to 3733 # Autoconf. 3734 for ac_file in $ac_files '' 3735 do 3736 test -f "$ac_file" || continue 3737 case $ac_file in 3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3739 ;; 3740 [ab].out ) 3741 # We found the default executable, but exeext='' is most 3742 # certainly right. 3743 break;; 3744 *.* ) 3745 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3746 then :; else 3747 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3748 fi 3749 # We set ac_cv_exeext here because the later test for it is not 3750 # safe: cross compilers may not add the suffix if given an '-o' 3751 # argument, so we may need to know it at that point already. 3752 # Even if this section looks crufty: it has the advantage of 3753 # actually working. 3754 break;; 3755 * ) 3756 break;; 3757 esac 3758 done 3759 test "$ac_cv_exeext" = no && ac_cv_exeext= 3760 3761 else case e in #( 3762 e) ac_file='' ;; 3763 esac 3764 fi 3765 if test -z "$ac_file" 3766 then : 3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3768 printf "%s\n" "no" >&6; } 3769 printf "%s\n" "$as_me: failed program was:" >&5 3770 sed 's/^/| /' conftest.$ac_ext >&5 3771 3772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3773 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3774 as_fn_error 77 "C compiler cannot create executables 3775 See 'config.log' for more details" "$LINENO" 5; } 3776 else case e in #( 3777 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3778 printf "%s\n" "yes" >&6; } ;; 3779 esac 3780 fi 3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3782 printf %s "checking for C compiler default output file name... " >&6; } 3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3784 printf "%s\n" "$ac_file" >&6; } 3785 ac_exeext=$ac_cv_exeext 3786 3787 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3788 ac_clean_files=$ac_clean_files_save 3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3790 printf %s "checking for suffix of executables... " >&6; } 3791 if { { ac_try="$ac_link" 3792 case "(($ac_try" in 3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3794 *) ac_try_echo=$ac_try;; 3795 esac 3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3797 printf "%s\n" "$ac_try_echo"; } >&5 3798 (eval "$ac_link") 2>&5 3799 ac_status=$? 3800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3801 test $ac_status = 0; } 3802 then : 3803 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3804 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3805 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3806 # 'rm'. 3807 for ac_file in conftest.exe conftest conftest.*; do 3808 test -f "$ac_file" || continue 3809 case $ac_file in 3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3811 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3812 break;; 3813 * ) break;; 3814 esac 3815 done 3816 else case e in #( 3817 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3818 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3819 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3820 See 'config.log' for more details" "$LINENO" 5; } ;; 3821 esac 3822 fi 3823 rm -f conftest conftest$ac_cv_exeext 3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3825 printf "%s\n" "$ac_cv_exeext" >&6; } 3826 3827 rm -f conftest.$ac_ext 3828 EXEEXT=$ac_cv_exeext 3829 ac_exeext=$EXEEXT 3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3831 /* end confdefs.h. */ 3832 #include <stdio.h> 3833 int 3834 main (void) 3835 { 3836 FILE *f = fopen ("conftest.out", "w"); 3837 if (!f) 3838 return 1; 3839 return ferror (f) || fclose (f) != 0; 3840 3841 ; 3842 return 0; 3843 } 3844 _ACEOF 3845 ac_clean_files="$ac_clean_files conftest.out" 3846 # Check that the compiler produces executables we can run. If not, either 3847 # the compiler is broken, or we cross compile. 3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3849 printf %s "checking whether we are cross compiling... " >&6; } 3850 if test "$cross_compiling" != yes; then 3851 { { ac_try="$ac_link" 3852 case "(($ac_try" in 3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3854 *) ac_try_echo=$ac_try;; 3855 esac 3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3857 printf "%s\n" "$ac_try_echo"; } >&5 3858 (eval "$ac_link") 2>&5 3859 ac_status=$? 3860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3861 test $ac_status = 0; } 3862 if { ac_try='./conftest$ac_cv_exeext' 3863 { { case "(($ac_try" in 3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3865 *) ac_try_echo=$ac_try;; 3866 esac 3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3868 printf "%s\n" "$ac_try_echo"; } >&5 3869 (eval "$ac_try") 2>&5 3870 ac_status=$? 3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3872 test $ac_status = 0; }; }; then 3873 cross_compiling=no 3874 else 3875 if test "$cross_compiling" = maybe; then 3876 cross_compiling=yes 3877 else 3878 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3879 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3880 as_fn_error 77 "cannot run C compiled programs. 3881 If you meant to cross compile, use '--host'. 3882 See 'config.log' for more details" "$LINENO" 5; } 3883 fi 3884 fi 3885 fi 3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3887 printf "%s\n" "$cross_compiling" >&6; } 3888 3889 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3890 conftest.o conftest.obj conftest.out 3891 ac_clean_files=$ac_clean_files_save 3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3893 printf %s "checking for suffix of object files... " >&6; } 3894 if test ${ac_cv_objext+y} 3895 then : 3896 printf %s "(cached) " >&6 3897 else case e in #( 3898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3899 /* end confdefs.h. */ 3900 3901 int 3902 main (void) 3903 { 3904 3905 ; 3906 return 0; 3907 } 3908 _ACEOF 3909 rm -f conftest.o conftest.obj 3910 if { { ac_try="$ac_compile" 3911 case "(($ac_try" in 3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3913 *) ac_try_echo=$ac_try;; 3914 esac 3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3916 printf "%s\n" "$ac_try_echo"; } >&5 3917 (eval "$ac_compile") 2>&5 3918 ac_status=$? 3919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3920 test $ac_status = 0; } 3921 then : 3922 for ac_file in conftest.o conftest.obj conftest.*; do 3923 test -f "$ac_file" || continue; 3924 case $ac_file in 3925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3926 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3927 break;; 3928 esac 3929 done 3930 else case e in #( 3931 e) printf "%s\n" "$as_me: failed program was:" >&5 3932 sed 's/^/| /' conftest.$ac_ext >&5 3933 3934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3935 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3936 as_fn_error $? "cannot compute suffix of object files: cannot compile 3937 See 'config.log' for more details" "$LINENO" 5; } ;; 3938 esac 3939 fi 3940 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3941 esac 3942 fi 3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3944 printf "%s\n" "$ac_cv_objext" >&6; } 3945 OBJEXT=$ac_cv_objext 3946 ac_objext=$OBJEXT 3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3948 printf %s "checking whether the compiler supports GNU C... " >&6; } 3949 if test ${ac_cv_c_compiler_gnu+y} 3950 then : 3951 printf %s "(cached) " >&6 3952 else case e in #( 3953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3954 /* end confdefs.h. */ 3955 3956 int 3957 main (void) 3958 { 3959 #ifndef __GNUC__ 3960 choke me 3961 #endif 3962 3963 ; 3964 return 0; 3965 } 3966 _ACEOF 3967 if ac_fn_c_try_compile "$LINENO" 3968 then : 3969 ac_compiler_gnu=yes 3970 else case e in #( 3971 e) ac_compiler_gnu=no ;; 3972 esac 3973 fi 3974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3975 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3976 ;; 3977 esac 3978 fi 3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3980 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3982 3983 if test $ac_compiler_gnu = yes; then 3984 GCC=yes 3985 else 3986 GCC= 3987 fi 3988 ac_test_CFLAGS=${CFLAGS+y} 3989 ac_save_CFLAGS=$CFLAGS 3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3991 printf %s "checking whether $CC accepts -g... " >&6; } 3992 if test ${ac_cv_prog_cc_g+y} 3993 then : 3994 printf %s "(cached) " >&6 3995 else case e in #( 3996 e) ac_save_c_werror_flag=$ac_c_werror_flag 3997 ac_c_werror_flag=yes 3998 ac_cv_prog_cc_g=no 3999 CFLAGS="-g" 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001 /* end confdefs.h. */ 4002 4003 int 4004 main (void) 4005 { 4006 4007 ; 4008 return 0; 4009 } 4010 _ACEOF 4011 if ac_fn_c_try_compile "$LINENO" 4012 then : 4013 ac_cv_prog_cc_g=yes 4014 else case e in #( 4015 e) CFLAGS="" 4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017 /* end confdefs.h. */ 4018 4019 int 4020 main (void) 4021 { 4022 4023 ; 4024 return 0; 4025 } 4026 _ACEOF 4027 if ac_fn_c_try_compile "$LINENO" 4028 then : 4029 4030 else case e in #( 4031 e) ac_c_werror_flag=$ac_save_c_werror_flag 4032 CFLAGS="-g" 4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034 /* end confdefs.h. */ 4035 4036 int 4037 main (void) 4038 { 4039 4040 ; 4041 return 0; 4042 } 4043 _ACEOF 4044 if ac_fn_c_try_compile "$LINENO" 4045 then : 4046 ac_cv_prog_cc_g=yes 4047 fi 4048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4049 esac 4050 fi 4051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4052 esac 4053 fi 4054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4055 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4056 esac 4057 fi 4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4059 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4060 if test $ac_test_CFLAGS; then 4061 CFLAGS=$ac_save_CFLAGS 4062 elif test $ac_cv_prog_cc_g = yes; then 4063 if test "$GCC" = yes; then 4064 CFLAGS="-g -O2" 4065 else 4066 CFLAGS="-g" 4067 fi 4068 else 4069 if test "$GCC" = yes; then 4070 CFLAGS="-O2" 4071 else 4072 CFLAGS= 4073 fi 4074 fi 4075 ac_prog_cc_stdc=no 4076 if test x$ac_prog_cc_stdc = xno 4077 then : 4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4079 printf %s "checking for $CC option to enable C11 features... " >&6; } 4080 if test ${ac_cv_prog_cc_c11+y} 4081 then : 4082 printf %s "(cached) " >&6 4083 else case e in #( 4084 e) ac_cv_prog_cc_c11=no 4085 ac_save_CC=$CC 4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4087 /* end confdefs.h. */ 4088 $ac_c_conftest_c11_program 4089 _ACEOF 4090 for ac_arg in '' -std=gnu11 4091 do 4092 CC="$ac_save_CC $ac_arg" 4093 if ac_fn_c_try_compile "$LINENO" 4094 then : 4095 ac_cv_prog_cc_c11=$ac_arg 4096 fi 4097 rm -f core conftest.err conftest.$ac_objext conftest.beam 4098 test "x$ac_cv_prog_cc_c11" != "xno" && break 4099 done 4100 rm -f conftest.$ac_ext 4101 CC=$ac_save_CC ;; 4102 esac 4103 fi 4104 4105 if test "x$ac_cv_prog_cc_c11" = xno 4106 then : 4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4108 printf "%s\n" "unsupported" >&6; } 4109 else case e in #( 4110 e) if test "x$ac_cv_prog_cc_c11" = x 4111 then : 4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4113 printf "%s\n" "none needed" >&6; } 4114 else case e in #( 4115 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4116 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4117 CC="$CC $ac_cv_prog_cc_c11" ;; 4118 esac 4119 fi 4120 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4121 ac_prog_cc_stdc=c11 ;; 4122 esac 4123 fi 4124 fi 4125 if test x$ac_prog_cc_stdc = xno 4126 then : 4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4128 printf %s "checking for $CC option to enable C99 features... " >&6; } 4129 if test ${ac_cv_prog_cc_c99+y} 4130 then : 4131 printf %s "(cached) " >&6 4132 else case e in #( 4133 e) ac_cv_prog_cc_c99=no 4134 ac_save_CC=$CC 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136 /* end confdefs.h. */ 4137 $ac_c_conftest_c99_program 4138 _ACEOF 4139 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4140 do 4141 CC="$ac_save_CC $ac_arg" 4142 if ac_fn_c_try_compile "$LINENO" 4143 then : 4144 ac_cv_prog_cc_c99=$ac_arg 4145 fi 4146 rm -f core conftest.err conftest.$ac_objext conftest.beam 4147 test "x$ac_cv_prog_cc_c99" != "xno" && break 4148 done 4149 rm -f conftest.$ac_ext 4150 CC=$ac_save_CC ;; 4151 esac 4152 fi 4153 4154 if test "x$ac_cv_prog_cc_c99" = xno 4155 then : 4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4157 printf "%s\n" "unsupported" >&6; } 4158 else case e in #( 4159 e) if test "x$ac_cv_prog_cc_c99" = x 4160 then : 4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4162 printf "%s\n" "none needed" >&6; } 4163 else case e in #( 4164 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4165 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4166 CC="$CC $ac_cv_prog_cc_c99" ;; 4167 esac 4168 fi 4169 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4170 ac_prog_cc_stdc=c99 ;; 4171 esac 4172 fi 4173 fi 4174 if test x$ac_prog_cc_stdc = xno 4175 then : 4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4177 printf %s "checking for $CC option to enable C89 features... " >&6; } 4178 if test ${ac_cv_prog_cc_c89+y} 4179 then : 4180 printf %s "(cached) " >&6 4181 else case e in #( 4182 e) ac_cv_prog_cc_c89=no 4183 ac_save_CC=$CC 4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4185 /* end confdefs.h. */ 4186 $ac_c_conftest_c89_program 4187 _ACEOF 4188 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4189 do 4190 CC="$ac_save_CC $ac_arg" 4191 if ac_fn_c_try_compile "$LINENO" 4192 then : 4193 ac_cv_prog_cc_c89=$ac_arg 4194 fi 4195 rm -f core conftest.err conftest.$ac_objext conftest.beam 4196 test "x$ac_cv_prog_cc_c89" != "xno" && break 4197 done 4198 rm -f conftest.$ac_ext 4199 CC=$ac_save_CC ;; 4200 esac 4201 fi 4202 4203 if test "x$ac_cv_prog_cc_c89" = xno 4204 then : 4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4206 printf "%s\n" "unsupported" >&6; } 4207 else case e in #( 4208 e) if test "x$ac_cv_prog_cc_c89" = x 4209 then : 4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4211 printf "%s\n" "none needed" >&6; } 4212 else case e in #( 4213 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4214 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4215 CC="$CC $ac_cv_prog_cc_c89" ;; 4216 esac 4217 fi 4218 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4219 ac_prog_cc_stdc=c89 ;; 4220 esac 4221 fi 4222 fi 4223 4224 ac_ext=c 4225 ac_cpp='$CPP $CPPFLAGS' 4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4229 4230 4231 ac_ext=c 4232 ac_cpp='$CPP $CPPFLAGS' 4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4237 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4238 if test ${am_cv_prog_cc_c_o+y} 4239 then : 4240 printf %s "(cached) " >&6 4241 else case e in #( 4242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243 /* end confdefs.h. */ 4244 4245 int 4246 main (void) 4247 { 4248 4249 ; 4250 return 0; 4251 } 4252 _ACEOF 4253 # Make sure it works both with $CC and with simple cc. 4254 # Following AC_PROG_CC_C_O, we do the test twice because some 4255 # compilers refuse to overwrite an existing .o file with -o, 4256 # though they will create one. 4257 am_cv_prog_cc_c_o=yes 4258 for am_i in 1 2; do 4259 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4260 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4261 ac_status=$? 4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4263 (exit $ac_status); } \ 4264 && test -f conftest2.$ac_objext; then 4265 : OK 4266 else 4267 am_cv_prog_cc_c_o=no 4268 break 4269 fi 4270 done 4271 rm -f core conftest* 4272 unset am_i ;; 4273 esac 4274 fi 4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4276 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4277 if test "$am_cv_prog_cc_c_o" != yes; then 4278 # Losing compiler, so override with the script. 4279 # FIXME: It is wrong to rewrite CC. 4280 # But if we don't then we get into trouble of one sort or another. 4281 # A longer-term fix would be to have automake use am__CC in this case, 4282 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4283 CC="$am_aux_dir/compile $CC" 4284 fi 4285 ac_ext=c 4286 ac_cpp='$CPP $CPPFLAGS' 4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4290 4291 4292 depcc="$CC" am_compiler_list= 4293 4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4295 printf %s "checking dependency style of $depcc... " >&6; } 4296 if test ${am_cv_CC_dependencies_compiler_type+y} 4297 then : 4298 printf %s "(cached) " >&6 4299 else case e in #( 4300 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4301 # We make a subdir and do the tests there. Otherwise we can end up 4302 # making bogus files that we don't know about and never remove. For 4303 # instance it was reported that on HP-UX the gcc test will end up 4304 # making a dummy file named 'D' -- because '-MD' means "put the output 4305 # in D". 4306 rm -rf conftest.dir 4307 mkdir conftest.dir 4308 # Copy depcomp to subdir because otherwise we won't find it if we're 4309 # using a relative directory. 4310 cp "$am_depcomp" conftest.dir 4311 cd conftest.dir 4312 # We will build objects and dependencies in a subdirectory because 4313 # it helps to detect inapplicable dependency modes. For instance 4314 # both Tru64's cc and ICC support -MD to output dependencies as a 4315 # side effect of compilation, but ICC will put the dependencies in 4316 # the current directory while Tru64 will put them in the object 4317 # directory. 4318 mkdir sub 4319 4320 am_cv_CC_dependencies_compiler_type=none 4321 if test "$am_compiler_list" = ""; then 4322 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4323 fi 4324 am__universal=false 4325 case " $depcc " in #( 4326 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4327 esac 4328 4329 for depmode in $am_compiler_list; do 4330 # Setup a source with many dependencies, because some compilers 4331 # like to wrap large dependency lists on column 80 (with \), and 4332 # we should not choose a depcomp mode which is confused by this. 4333 # 4334 # We need to recreate these files for each test, as the compiler may 4335 # overwrite some of them when testing with obscure command lines. 4336 # This happens at least with the AIX C compiler. 4337 : > sub/conftest.c 4338 for i in 1 2 3 4 5 6; do 4339 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4340 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4341 # Solaris 10 /bin/sh. 4342 echo '/* dummy */' > sub/conftst$i.h 4343 done 4344 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4345 4346 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4347 # mode. It turns out that the SunPro C++ compiler does not properly 4348 # handle '-M -o', and we need to detect this. Also, some Intel 4349 # versions had trouble with output in subdirs. 4350 am__obj=sub/conftest.${OBJEXT-o} 4351 am__minus_obj="-o $am__obj" 4352 case $depmode in 4353 gcc) 4354 # This depmode causes a compiler race in universal mode. 4355 test "$am__universal" = false || continue 4356 ;; 4357 nosideeffect) 4358 # After this tag, mechanisms are not by side-effect, so they'll 4359 # only be used when explicitly requested. 4360 if test "x$enable_dependency_tracking" = xyes; then 4361 continue 4362 else 4363 break 4364 fi 4365 ;; 4366 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4367 # This compiler won't grok '-c -o', but also, the minuso test has 4368 # not run yet. These depmodes are late enough in the game, and 4369 # so weak that their functioning should not be impacted. 4370 am__obj=conftest.${OBJEXT-o} 4371 am__minus_obj= 4372 ;; 4373 none) break ;; 4374 esac 4375 if depmode=$depmode \ 4376 source=sub/conftest.c object=$am__obj \ 4377 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4378 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4379 >/dev/null 2>conftest.err && 4380 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4381 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4382 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4383 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4384 # icc doesn't choke on unknown options, it will just issue warnings 4385 # or remarks (even with -Werror). So we grep stderr for any message 4386 # that says an option was ignored or not supported. 4387 # When given -MP, icc 7.0 and 7.1 complain thusly: 4388 # icc: Command line warning: ignoring option '-M'; no argument required 4389 # The diagnosis changed in icc 8.0: 4390 # icc: Command line remark: option '-MP' not supported 4391 if (grep 'ignoring option' conftest.err || 4392 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4393 am_cv_CC_dependencies_compiler_type=$depmode 4394 break 4395 fi 4396 fi 4397 done 4398 4399 cd .. 4400 rm -rf conftest.dir 4401 else 4402 am_cv_CC_dependencies_compiler_type=none 4403 fi 4404 ;; 4405 esac 4406 fi 4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4408 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4409 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4410 4411 if 4412 test "x$enable_dependency_tracking" != xno \ 4413 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4414 am__fastdepCC_TRUE= 4415 am__fastdepCC_FALSE='#' 4416 else 4417 am__fastdepCC_TRUE='#' 4418 am__fastdepCC_FALSE= 4419 fi 4420 4421 4422 4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4424 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4425 if test ${ac_cv_c_undeclared_builtin_options+y} 4426 then : 4427 printf %s "(cached) " >&6 4428 else case e in #( 4429 e) ac_save_CFLAGS=$CFLAGS 4430 ac_cv_c_undeclared_builtin_options='cannot detect' 4431 for ac_arg in '' -fno-builtin; do 4432 CFLAGS="$ac_save_CFLAGS $ac_arg" 4433 # This test program should *not* compile successfully. 4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4435 /* end confdefs.h. */ 4436 4437 int 4438 main (void) 4439 { 4440 (void) strchr; 4441 ; 4442 return 0; 4443 } 4444 _ACEOF 4445 if ac_fn_c_try_compile "$LINENO" 4446 then : 4447 4448 else case e in #( 4449 e) # This test program should compile successfully. 4450 # No library function is consistently available on 4451 # freestanding implementations, so test against a dummy 4452 # declaration. Include always-available headers on the 4453 # off chance that they somehow elicit warnings. 4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455 /* end confdefs.h. */ 4456 #include <float.h> 4457 #include <limits.h> 4458 #include <stdarg.h> 4459 #include <stddef.h> 4460 extern void ac_decl (int, char *); 4461 4462 int 4463 main (void) 4464 { 4465 (void) ac_decl (0, (char *) 0); 4466 (void) ac_decl; 4467 4468 ; 4469 return 0; 4470 } 4471 _ACEOF 4472 if ac_fn_c_try_compile "$LINENO" 4473 then : 4474 if test x"$ac_arg" = x 4475 then : 4476 ac_cv_c_undeclared_builtin_options='none needed' 4477 else case e in #( 4478 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4479 esac 4480 fi 4481 break 4482 fi 4483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4484 esac 4485 fi 4486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4487 done 4488 CFLAGS=$ac_save_CFLAGS 4489 ;; 4490 esac 4491 fi 4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4493 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4494 case $ac_cv_c_undeclared_builtin_options in #( 4495 'cannot detect') : 4496 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4497 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4498 as_fn_error $? "cannot make $CC report undeclared builtins 4499 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4500 'none needed') : 4501 ac_c_undeclared_builtin_options='' ;; #( 4502 *) : 4503 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4504 esac 4505 4506 ac_header= ac_cache= 4507 for ac_item in $ac_header_c_list 4508 do 4509 if test $ac_cache; then 4510 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4511 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4512 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4513 fi 4514 ac_header= ac_cache= 4515 elif test $ac_header; then 4516 ac_cache=$ac_item 4517 else 4518 ac_header=$ac_item 4519 fi 4520 done 4521 4522 4523 4524 4525 4526 4527 4528 4529 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4530 then : 4531 4532 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4533 4534 fi 4535 4536 4537 4538 4539 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4540 if test "x$ac_cv_have_decl___clang__" = xyes 4541 then : 4542 CLANGCC="yes" 4543 else case e in #( 4544 e) CLANGCC="no" ;; 4545 esac 4546 fi 4547 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4548 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4549 then : 4550 INTELCC="yes" 4551 else case e in #( 4552 e) INTELCC="no" ;; 4553 esac 4554 fi 4555 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4556 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4557 then : 4558 SUNCC="yes" 4559 else case e in #( 4560 e) SUNCC="no" ;; 4561 esac 4562 fi 4563 4564 4565 4566 4567 4568 4569 4570 4571 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4572 if test -n "$ac_tool_prefix"; then 4573 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4574 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4576 printf %s "checking for $ac_word... " >&6; } 4577 if test ${ac_cv_path_PKG_CONFIG+y} 4578 then : 4579 printf %s "(cached) " >&6 4580 else case e in #( 4581 e) case $PKG_CONFIG in 4582 [\\/]* | ?:[\\/]*) 4583 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4584 ;; 4585 *) 4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587 for as_dir in $PATH 4588 do 4589 IFS=$as_save_IFS 4590 case $as_dir in #((( 4591 '') as_dir=./ ;; 4592 */) ;; 4593 *) as_dir=$as_dir/ ;; 4594 esac 4595 for ac_exec_ext in '' $ac_executable_extensions; do 4596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4597 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4599 break 2 4600 fi 4601 done 4602 done 4603 IFS=$as_save_IFS 4604 4605 ;; 4606 esac ;; 4607 esac 4608 fi 4609 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4610 if test -n "$PKG_CONFIG"; then 4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4612 printf "%s\n" "$PKG_CONFIG" >&6; } 4613 else 4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4615 printf "%s\n" "no" >&6; } 4616 fi 4617 4618 4619 fi 4620 if test -z "$ac_cv_path_PKG_CONFIG"; then 4621 ac_pt_PKG_CONFIG=$PKG_CONFIG 4622 # Extract the first word of "pkg-config", so it can be a program name with args. 4623 set dummy pkg-config; ac_word=$2 4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4625 printf %s "checking for $ac_word... " >&6; } 4626 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4627 then : 4628 printf %s "(cached) " >&6 4629 else case e in #( 4630 e) case $ac_pt_PKG_CONFIG in 4631 [\\/]* | ?:[\\/]*) 4632 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4633 ;; 4634 *) 4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4636 for as_dir in $PATH 4637 do 4638 IFS=$as_save_IFS 4639 case $as_dir in #((( 4640 '') as_dir=./ ;; 4641 */) ;; 4642 *) as_dir=$as_dir/ ;; 4643 esac 4644 for ac_exec_ext in '' $ac_executable_extensions; do 4645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4646 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4648 break 2 4649 fi 4650 done 4651 done 4652 IFS=$as_save_IFS 4653 4654 ;; 4655 esac ;; 4656 esac 4657 fi 4658 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4659 if test -n "$ac_pt_PKG_CONFIG"; then 4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4661 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4662 else 4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4664 printf "%s\n" "no" >&6; } 4665 fi 4666 4667 if test "x$ac_pt_PKG_CONFIG" = x; then 4668 PKG_CONFIG="" 4669 else 4670 case $cross_compiling:$ac_tool_warned in 4671 yes:) 4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4673 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4674 ac_tool_warned=yes ;; 4675 esac 4676 PKG_CONFIG=$ac_pt_PKG_CONFIG 4677 fi 4678 else 4679 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4680 fi 4681 4682 fi 4683 if test -n "$PKG_CONFIG"; then 4684 _pkg_min_version=0.9.0 4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4686 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4687 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4689 printf "%s\n" "yes" >&6; } 4690 else 4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4692 printf "%s\n" "no" >&6; } 4693 PKG_CONFIG="" 4694 fi 4695 fi 4696 if test -z "$PKG_CONFIG"; then 4697 as_fn_error $? "pkg-config not found" "$LINENO" 5 4698 fi 4699 4700 4701 # Make sure we can run config.sub. 4702 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4703 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4704 4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4706 printf %s "checking build system type... " >&6; } 4707 if test ${ac_cv_build+y} 4708 then : 4709 printf %s "(cached) " >&6 4710 else case e in #( 4711 e) ac_build_alias=$build_alias 4712 test "x$ac_build_alias" = x && 4713 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4714 test "x$ac_build_alias" = x && 4715 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4716 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4717 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4718 ;; 4719 esac 4720 fi 4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4722 printf "%s\n" "$ac_cv_build" >&6; } 4723 case $ac_cv_build in 4724 *-*-*) ;; 4725 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4726 esac 4727 build=$ac_cv_build 4728 ac_save_IFS=$IFS; IFS='-' 4729 set x $ac_cv_build 4730 shift 4731 build_cpu=$1 4732 build_vendor=$2 4733 shift; shift 4734 # Remember, the first character of IFS is used to create $*, 4735 # except with old shells: 4736 build_os=$* 4737 IFS=$ac_save_IFS 4738 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4739 4740 4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4742 printf %s "checking host system type... " >&6; } 4743 if test ${ac_cv_host+y} 4744 then : 4745 printf %s "(cached) " >&6 4746 else case e in #( 4747 e) if test "x$host_alias" = x; then 4748 ac_cv_host=$ac_cv_build 4749 else 4750 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4751 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4752 fi 4753 ;; 4754 esac 4755 fi 4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4757 printf "%s\n" "$ac_cv_host" >&6; } 4758 case $ac_cv_host in 4759 *-*-*) ;; 4760 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4761 esac 4762 host=$ac_cv_host 4763 ac_save_IFS=$IFS; IFS='-' 4764 set x $ac_cv_host 4765 shift 4766 host_cpu=$1 4767 host_vendor=$2 4768 shift; shift 4769 # Remember, the first character of IFS is used to create $*, 4770 # except with old shells: 4771 host_os=$* 4772 IFS=$ac_save_IFS 4773 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4774 4775 4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4777 printf %s "checking for a sed that does not truncate output... " >&6; } 4778 if test ${ac_cv_path_SED+y} 4779 then : 4780 printf %s "(cached) " >&6 4781 else case e in #( 4782 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4783 for ac_i in 1 2 3 4 5 6 7; do 4784 ac_script="$ac_script$as_nl$ac_script" 4785 done 4786 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4787 { ac_script=; unset ac_script;} 4788 if test -z "$SED"; then 4789 ac_path_SED_found=false 4790 # Loop through the user's path and test for each of PROGNAME-LIST 4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4792 for as_dir in $PATH 4793 do 4794 IFS=$as_save_IFS 4795 case $as_dir in #((( 4796 '') as_dir=./ ;; 4797 */) ;; 4798 *) as_dir=$as_dir/ ;; 4799 esac 4800 for ac_prog in sed gsed 4801 do 4802 for ac_exec_ext in '' $ac_executable_extensions; do 4803 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4804 as_fn_executable_p "$ac_path_SED" || continue 4805 # Check for GNU ac_path_SED and select it if it is found. 4806 # Check for GNU $ac_path_SED 4807 case `"$ac_path_SED" --version 2>&1` in #( 4808 *GNU*) 4809 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4810 #( 4811 *) 4812 ac_count=0 4813 printf %s 0123456789 >"conftest.in" 4814 while : 4815 do 4816 cat "conftest.in" "conftest.in" >"conftest.tmp" 4817 mv "conftest.tmp" "conftest.in" 4818 cp "conftest.in" "conftest.nl" 4819 printf "%s\n" '' >> "conftest.nl" 4820 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4822 as_fn_arith $ac_count + 1 && ac_count=$as_val 4823 if test $ac_count -gt ${ac_path_SED_max-0}; then 4824 # Best one so far, save it but keep looking for a better one 4825 ac_cv_path_SED="$ac_path_SED" 4826 ac_path_SED_max=$ac_count 4827 fi 4828 # 10*(2^10) chars as input seems more than enough 4829 test $ac_count -gt 10 && break 4830 done 4831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4832 esac 4833 4834 $ac_path_SED_found && break 3 4835 done 4836 done 4837 done 4838 IFS=$as_save_IFS 4839 if test -z "$ac_cv_path_SED"; then 4840 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4841 fi 4842 else 4843 ac_cv_path_SED=$SED 4844 fi 4845 ;; 4846 esac 4847 fi 4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4849 printf "%s\n" "$ac_cv_path_SED" >&6; } 4850 SED="$ac_cv_path_SED" 4851 rm -f conftest.sed 4852 4853 4854 4855 4856 4857 4858 # Check whether --enable-selective-werror was given. 4859 if test ${enable_selective_werror+y} 4860 then : 4861 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4862 else case e in #( 4863 e) SELECTIVE_WERROR=yes ;; 4864 esac 4865 fi 4866 4867 4868 4869 4870 4871 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4872 if test "x$SUNCC" = "xyes"; then 4873 BASE_CFLAGS="-v" 4874 else 4875 BASE_CFLAGS="" 4876 fi 4877 4878 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 xorg_testset_save_CFLAGS="$CFLAGS" 4893 4894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4897 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4898 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4899 then : 4900 printf %s "(cached) " >&6 4901 else case e in #( 4902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4903 /* end confdefs.h. */ 4904 int i; 4905 _ACEOF 4906 if ac_fn_c_try_compile "$LINENO" 4907 then : 4908 xorg_cv_cc_flag_unknown_warning_option=yes 4909 else case e in #( 4910 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 4911 esac 4912 fi 4913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4914 esac 4915 fi 4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4917 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4919 CFLAGS="$xorg_testset_save_CFLAGS" 4920 fi 4921 4922 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4925 fi 4926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4928 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4929 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4930 then : 4931 printf %s "(cached) " >&6 4932 else case e in #( 4933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4934 /* end confdefs.h. */ 4935 int i; 4936 _ACEOF 4937 if ac_fn_c_try_compile "$LINENO" 4938 then : 4939 xorg_cv_cc_flag_unused_command_line_argument=yes 4940 else case e in #( 4941 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 4942 esac 4943 fi 4944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4945 esac 4946 fi 4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4948 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4950 CFLAGS="$xorg_testset_save_CFLAGS" 4951 fi 4952 4953 found="no" 4954 4955 if test $found = "no" ; then 4956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4958 fi 4959 4960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4962 fi 4963 4964 CFLAGS="$CFLAGS -Wall" 4965 4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4967 printf %s "checking if $CC supports -Wall... " >&6; } 4968 cacheid=xorg_cv_cc_flag__Wall 4969 if eval test \${$cacheid+y} 4970 then : 4971 printf %s "(cached) " >&6 4972 else case e in #( 4973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4974 /* end confdefs.h. */ 4975 int i; 4976 int 4977 main (void) 4978 { 4979 4980 ; 4981 return 0; 4982 } 4983 _ACEOF 4984 if ac_fn_c_try_link "$LINENO" 4985 then : 4986 eval $cacheid=yes 4987 else case e in #( 4988 e) eval $cacheid=no ;; 4989 esac 4990 fi 4991 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4992 conftest$ac_exeext conftest.$ac_ext ;; 4993 esac 4994 fi 4995 4996 4997 CFLAGS="$xorg_testset_save_CFLAGS" 4998 4999 eval supported=\$$cacheid 5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5001 printf "%s\n" "$supported" >&6; } 5002 if test "$supported" = "yes" ; then 5003 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5004 found="yes" 5005 fi 5006 fi 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 xorg_testset_save_CFLAGS="$CFLAGS" 5023 5024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5027 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5028 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5029 then : 5030 printf %s "(cached) " >&6 5031 else case e in #( 5032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5033 /* end confdefs.h. */ 5034 int i; 5035 _ACEOF 5036 if ac_fn_c_try_compile "$LINENO" 5037 then : 5038 xorg_cv_cc_flag_unknown_warning_option=yes 5039 else case e in #( 5040 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5041 esac 5042 fi 5043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5044 esac 5045 fi 5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5047 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5049 CFLAGS="$xorg_testset_save_CFLAGS" 5050 fi 5051 5052 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5055 fi 5056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5058 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5059 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5060 then : 5061 printf %s "(cached) " >&6 5062 else case e in #( 5063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5064 /* end confdefs.h. */ 5065 int i; 5066 _ACEOF 5067 if ac_fn_c_try_compile "$LINENO" 5068 then : 5069 xorg_cv_cc_flag_unused_command_line_argument=yes 5070 else case e in #( 5071 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5072 esac 5073 fi 5074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5075 esac 5076 fi 5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5078 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5080 CFLAGS="$xorg_testset_save_CFLAGS" 5081 fi 5082 5083 found="no" 5084 5085 if test $found = "no" ; then 5086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5088 fi 5089 5090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5092 fi 5093 5094 CFLAGS="$CFLAGS -Wpointer-arith" 5095 5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5097 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5098 cacheid=xorg_cv_cc_flag__Wpointer_arith 5099 if eval test \${$cacheid+y} 5100 then : 5101 printf %s "(cached) " >&6 5102 else case e in #( 5103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5104 /* end confdefs.h. */ 5105 int i; 5106 int 5107 main (void) 5108 { 5109 5110 ; 5111 return 0; 5112 } 5113 _ACEOF 5114 if ac_fn_c_try_link "$LINENO" 5115 then : 5116 eval $cacheid=yes 5117 else case e in #( 5118 e) eval $cacheid=no ;; 5119 esac 5120 fi 5121 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5122 conftest$ac_exeext conftest.$ac_ext ;; 5123 esac 5124 fi 5125 5126 5127 CFLAGS="$xorg_testset_save_CFLAGS" 5128 5129 eval supported=\$$cacheid 5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5131 printf "%s\n" "$supported" >&6; } 5132 if test "$supported" = "yes" ; then 5133 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5134 found="yes" 5135 fi 5136 fi 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 xorg_testset_save_CFLAGS="$CFLAGS" 5153 5154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5157 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5158 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5159 then : 5160 printf %s "(cached) " >&6 5161 else case e in #( 5162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5163 /* end confdefs.h. */ 5164 int i; 5165 _ACEOF 5166 if ac_fn_c_try_compile "$LINENO" 5167 then : 5168 xorg_cv_cc_flag_unknown_warning_option=yes 5169 else case e in #( 5170 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5171 esac 5172 fi 5173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5174 esac 5175 fi 5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5177 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5179 CFLAGS="$xorg_testset_save_CFLAGS" 5180 fi 5181 5182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5185 fi 5186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5188 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5189 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5190 then : 5191 printf %s "(cached) " >&6 5192 else case e in #( 5193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5194 /* end confdefs.h. */ 5195 int i; 5196 _ACEOF 5197 if ac_fn_c_try_compile "$LINENO" 5198 then : 5199 xorg_cv_cc_flag_unused_command_line_argument=yes 5200 else case e in #( 5201 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5202 esac 5203 fi 5204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5205 esac 5206 fi 5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5208 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5210 CFLAGS="$xorg_testset_save_CFLAGS" 5211 fi 5212 5213 found="no" 5214 5215 if test $found = "no" ; then 5216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5218 fi 5219 5220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5222 fi 5223 5224 CFLAGS="$CFLAGS -Wmissing-declarations" 5225 5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5227 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5228 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5229 if eval test \${$cacheid+y} 5230 then : 5231 printf %s "(cached) " >&6 5232 else case e in #( 5233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5234 /* end confdefs.h. */ 5235 int i; 5236 int 5237 main (void) 5238 { 5239 5240 ; 5241 return 0; 5242 } 5243 _ACEOF 5244 if ac_fn_c_try_link "$LINENO" 5245 then : 5246 eval $cacheid=yes 5247 else case e in #( 5248 e) eval $cacheid=no ;; 5249 esac 5250 fi 5251 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5252 conftest$ac_exeext conftest.$ac_ext ;; 5253 esac 5254 fi 5255 5256 5257 CFLAGS="$xorg_testset_save_CFLAGS" 5258 5259 eval supported=\$$cacheid 5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5261 printf "%s\n" "$supported" >&6; } 5262 if test "$supported" = "yes" ; then 5263 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5264 found="yes" 5265 fi 5266 fi 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 xorg_testset_save_CFLAGS="$CFLAGS" 5283 5284 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5287 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5288 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5289 then : 5290 printf %s "(cached) " >&6 5291 else case e in #( 5292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293 /* end confdefs.h. */ 5294 int i; 5295 _ACEOF 5296 if ac_fn_c_try_compile "$LINENO" 5297 then : 5298 xorg_cv_cc_flag_unknown_warning_option=yes 5299 else case e in #( 5300 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5301 esac 5302 fi 5303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5304 esac 5305 fi 5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5307 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5309 CFLAGS="$xorg_testset_save_CFLAGS" 5310 fi 5311 5312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5315 fi 5316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5318 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5319 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5320 then : 5321 printf %s "(cached) " >&6 5322 else case e in #( 5323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5324 /* end confdefs.h. */ 5325 int i; 5326 _ACEOF 5327 if ac_fn_c_try_compile "$LINENO" 5328 then : 5329 xorg_cv_cc_flag_unused_command_line_argument=yes 5330 else case e in #( 5331 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5332 esac 5333 fi 5334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5335 esac 5336 fi 5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5338 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5340 CFLAGS="$xorg_testset_save_CFLAGS" 5341 fi 5342 5343 found="no" 5344 5345 if test $found = "no" ; then 5346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5348 fi 5349 5350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5352 fi 5353 5354 CFLAGS="$CFLAGS -Wformat=2" 5355 5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5357 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5358 cacheid=xorg_cv_cc_flag__Wformat_2 5359 if eval test \${$cacheid+y} 5360 then : 5361 printf %s "(cached) " >&6 5362 else case e in #( 5363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5364 /* end confdefs.h. */ 5365 int i; 5366 int 5367 main (void) 5368 { 5369 5370 ; 5371 return 0; 5372 } 5373 _ACEOF 5374 if ac_fn_c_try_link "$LINENO" 5375 then : 5376 eval $cacheid=yes 5377 else case e in #( 5378 e) eval $cacheid=no ;; 5379 esac 5380 fi 5381 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5382 conftest$ac_exeext conftest.$ac_ext ;; 5383 esac 5384 fi 5385 5386 5387 CFLAGS="$xorg_testset_save_CFLAGS" 5388 5389 eval supported=\$$cacheid 5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5391 printf "%s\n" "$supported" >&6; } 5392 if test "$supported" = "yes" ; then 5393 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5394 found="yes" 5395 fi 5396 fi 5397 5398 if test $found = "no" ; then 5399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5401 fi 5402 5403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5405 fi 5406 5407 CFLAGS="$CFLAGS -Wformat" 5408 5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5410 printf %s "checking if $CC supports -Wformat... " >&6; } 5411 cacheid=xorg_cv_cc_flag__Wformat 5412 if eval test \${$cacheid+y} 5413 then : 5414 printf %s "(cached) " >&6 5415 else case e in #( 5416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417 /* end confdefs.h. */ 5418 int i; 5419 int 5420 main (void) 5421 { 5422 5423 ; 5424 return 0; 5425 } 5426 _ACEOF 5427 if ac_fn_c_try_link "$LINENO" 5428 then : 5429 eval $cacheid=yes 5430 else case e in #( 5431 e) eval $cacheid=no ;; 5432 esac 5433 fi 5434 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5435 conftest$ac_exeext conftest.$ac_ext ;; 5436 esac 5437 fi 5438 5439 5440 CFLAGS="$xorg_testset_save_CFLAGS" 5441 5442 eval supported=\$$cacheid 5443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5444 printf "%s\n" "$supported" >&6; } 5445 if test "$supported" = "yes" ; then 5446 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5447 found="yes" 5448 fi 5449 fi 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 xorg_testset_save_CFLAGS="$CFLAGS" 5468 5469 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5472 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5473 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5474 then : 5475 printf %s "(cached) " >&6 5476 else case e in #( 5477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5478 /* end confdefs.h. */ 5479 int i; 5480 _ACEOF 5481 if ac_fn_c_try_compile "$LINENO" 5482 then : 5483 xorg_cv_cc_flag_unknown_warning_option=yes 5484 else case e in #( 5485 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5486 esac 5487 fi 5488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5489 esac 5490 fi 5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5492 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5494 CFLAGS="$xorg_testset_save_CFLAGS" 5495 fi 5496 5497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5500 fi 5501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5503 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5504 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5505 then : 5506 printf %s "(cached) " >&6 5507 else case e in #( 5508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5509 /* end confdefs.h. */ 5510 int i; 5511 _ACEOF 5512 if ac_fn_c_try_compile "$LINENO" 5513 then : 5514 xorg_cv_cc_flag_unused_command_line_argument=yes 5515 else case e in #( 5516 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5517 esac 5518 fi 5519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5520 esac 5521 fi 5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5523 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5525 CFLAGS="$xorg_testset_save_CFLAGS" 5526 fi 5527 5528 found="no" 5529 5530 if test $found = "no" ; then 5531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5533 fi 5534 5535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5537 fi 5538 5539 CFLAGS="$CFLAGS -Wstrict-prototypes" 5540 5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5542 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5543 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5544 if eval test \${$cacheid+y} 5545 then : 5546 printf %s "(cached) " >&6 5547 else case e in #( 5548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5549 /* end confdefs.h. */ 5550 int i; 5551 int 5552 main (void) 5553 { 5554 5555 ; 5556 return 0; 5557 } 5558 _ACEOF 5559 if ac_fn_c_try_link "$LINENO" 5560 then : 5561 eval $cacheid=yes 5562 else case e in #( 5563 e) eval $cacheid=no ;; 5564 esac 5565 fi 5566 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5567 conftest$ac_exeext conftest.$ac_ext ;; 5568 esac 5569 fi 5570 5571 5572 CFLAGS="$xorg_testset_save_CFLAGS" 5573 5574 eval supported=\$$cacheid 5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5576 printf "%s\n" "$supported" >&6; } 5577 if test "$supported" = "yes" ; then 5578 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5579 found="yes" 5580 fi 5581 fi 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 xorg_testset_save_CFLAGS="$CFLAGS" 5598 5599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5602 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5603 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5604 then : 5605 printf %s "(cached) " >&6 5606 else case e in #( 5607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5608 /* end confdefs.h. */ 5609 int i; 5610 _ACEOF 5611 if ac_fn_c_try_compile "$LINENO" 5612 then : 5613 xorg_cv_cc_flag_unknown_warning_option=yes 5614 else case e in #( 5615 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5616 esac 5617 fi 5618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5619 esac 5620 fi 5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5622 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5624 CFLAGS="$xorg_testset_save_CFLAGS" 5625 fi 5626 5627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5630 fi 5631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5633 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5634 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5635 then : 5636 printf %s "(cached) " >&6 5637 else case e in #( 5638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5639 /* end confdefs.h. */ 5640 int i; 5641 _ACEOF 5642 if ac_fn_c_try_compile "$LINENO" 5643 then : 5644 xorg_cv_cc_flag_unused_command_line_argument=yes 5645 else case e in #( 5646 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5647 esac 5648 fi 5649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5650 esac 5651 fi 5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5653 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5655 CFLAGS="$xorg_testset_save_CFLAGS" 5656 fi 5657 5658 found="no" 5659 5660 if test $found = "no" ; then 5661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5663 fi 5664 5665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5667 fi 5668 5669 CFLAGS="$CFLAGS -Wmissing-prototypes" 5670 5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5672 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5673 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5674 if eval test \${$cacheid+y} 5675 then : 5676 printf %s "(cached) " >&6 5677 else case e in #( 5678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5679 /* end confdefs.h. */ 5680 int i; 5681 int 5682 main (void) 5683 { 5684 5685 ; 5686 return 0; 5687 } 5688 _ACEOF 5689 if ac_fn_c_try_link "$LINENO" 5690 then : 5691 eval $cacheid=yes 5692 else case e in #( 5693 e) eval $cacheid=no ;; 5694 esac 5695 fi 5696 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5697 conftest$ac_exeext conftest.$ac_ext ;; 5698 esac 5699 fi 5700 5701 5702 CFLAGS="$xorg_testset_save_CFLAGS" 5703 5704 eval supported=\$$cacheid 5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5706 printf "%s\n" "$supported" >&6; } 5707 if test "$supported" = "yes" ; then 5708 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5709 found="yes" 5710 fi 5711 fi 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 xorg_testset_save_CFLAGS="$CFLAGS" 5728 5729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5732 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5733 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5734 then : 5735 printf %s "(cached) " >&6 5736 else case e in #( 5737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5738 /* end confdefs.h. */ 5739 int i; 5740 _ACEOF 5741 if ac_fn_c_try_compile "$LINENO" 5742 then : 5743 xorg_cv_cc_flag_unknown_warning_option=yes 5744 else case e in #( 5745 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5746 esac 5747 fi 5748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5749 esac 5750 fi 5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5752 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5754 CFLAGS="$xorg_testset_save_CFLAGS" 5755 fi 5756 5757 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5760 fi 5761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5763 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5764 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5765 then : 5766 printf %s "(cached) " >&6 5767 else case e in #( 5768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5769 /* end confdefs.h. */ 5770 int i; 5771 _ACEOF 5772 if ac_fn_c_try_compile "$LINENO" 5773 then : 5774 xorg_cv_cc_flag_unused_command_line_argument=yes 5775 else case e in #( 5776 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5777 esac 5778 fi 5779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5780 esac 5781 fi 5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5783 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5785 CFLAGS="$xorg_testset_save_CFLAGS" 5786 fi 5787 5788 found="no" 5789 5790 if test $found = "no" ; then 5791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5793 fi 5794 5795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5797 fi 5798 5799 CFLAGS="$CFLAGS -Wnested-externs" 5800 5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5802 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5803 cacheid=xorg_cv_cc_flag__Wnested_externs 5804 if eval test \${$cacheid+y} 5805 then : 5806 printf %s "(cached) " >&6 5807 else case e in #( 5808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5809 /* end confdefs.h. */ 5810 int i; 5811 int 5812 main (void) 5813 { 5814 5815 ; 5816 return 0; 5817 } 5818 _ACEOF 5819 if ac_fn_c_try_link "$LINENO" 5820 then : 5821 eval $cacheid=yes 5822 else case e in #( 5823 e) eval $cacheid=no ;; 5824 esac 5825 fi 5826 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5827 conftest$ac_exeext conftest.$ac_ext ;; 5828 esac 5829 fi 5830 5831 5832 CFLAGS="$xorg_testset_save_CFLAGS" 5833 5834 eval supported=\$$cacheid 5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5836 printf "%s\n" "$supported" >&6; } 5837 if test "$supported" = "yes" ; then 5838 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5839 found="yes" 5840 fi 5841 fi 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 xorg_testset_save_CFLAGS="$CFLAGS" 5858 5859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5862 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5863 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5864 then : 5865 printf %s "(cached) " >&6 5866 else case e in #( 5867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868 /* end confdefs.h. */ 5869 int i; 5870 _ACEOF 5871 if ac_fn_c_try_compile "$LINENO" 5872 then : 5873 xorg_cv_cc_flag_unknown_warning_option=yes 5874 else case e in #( 5875 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5876 esac 5877 fi 5878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5879 esac 5880 fi 5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5882 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5884 CFLAGS="$xorg_testset_save_CFLAGS" 5885 fi 5886 5887 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5890 fi 5891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5893 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5894 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5895 then : 5896 printf %s "(cached) " >&6 5897 else case e in #( 5898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5899 /* end confdefs.h. */ 5900 int i; 5901 _ACEOF 5902 if ac_fn_c_try_compile "$LINENO" 5903 then : 5904 xorg_cv_cc_flag_unused_command_line_argument=yes 5905 else case e in #( 5906 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5907 esac 5908 fi 5909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5910 esac 5911 fi 5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5913 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5915 CFLAGS="$xorg_testset_save_CFLAGS" 5916 fi 5917 5918 found="no" 5919 5920 if test $found = "no" ; then 5921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5923 fi 5924 5925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5927 fi 5928 5929 CFLAGS="$CFLAGS -Wbad-function-cast" 5930 5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5932 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5933 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5934 if eval test \${$cacheid+y} 5935 then : 5936 printf %s "(cached) " >&6 5937 else case e in #( 5938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5939 /* end confdefs.h. */ 5940 int i; 5941 int 5942 main (void) 5943 { 5944 5945 ; 5946 return 0; 5947 } 5948 _ACEOF 5949 if ac_fn_c_try_link "$LINENO" 5950 then : 5951 eval $cacheid=yes 5952 else case e in #( 5953 e) eval $cacheid=no ;; 5954 esac 5955 fi 5956 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5957 conftest$ac_exeext conftest.$ac_ext ;; 5958 esac 5959 fi 5960 5961 5962 CFLAGS="$xorg_testset_save_CFLAGS" 5963 5964 eval supported=\$$cacheid 5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5966 printf "%s\n" "$supported" >&6; } 5967 if test "$supported" = "yes" ; then 5968 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5969 found="yes" 5970 fi 5971 fi 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 xorg_testset_save_CFLAGS="$CFLAGS" 5988 5989 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5992 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5993 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5994 then : 5995 printf %s "(cached) " >&6 5996 else case e in #( 5997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998 /* end confdefs.h. */ 5999 int i; 6000 _ACEOF 6001 if ac_fn_c_try_compile "$LINENO" 6002 then : 6003 xorg_cv_cc_flag_unknown_warning_option=yes 6004 else case e in #( 6005 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6006 esac 6007 fi 6008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6009 esac 6010 fi 6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6012 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6014 CFLAGS="$xorg_testset_save_CFLAGS" 6015 fi 6016 6017 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6020 fi 6021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6023 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6024 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6025 then : 6026 printf %s "(cached) " >&6 6027 else case e in #( 6028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6029 /* end confdefs.h. */ 6030 int i; 6031 _ACEOF 6032 if ac_fn_c_try_compile "$LINENO" 6033 then : 6034 xorg_cv_cc_flag_unused_command_line_argument=yes 6035 else case e in #( 6036 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6037 esac 6038 fi 6039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6040 esac 6041 fi 6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6043 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6045 CFLAGS="$xorg_testset_save_CFLAGS" 6046 fi 6047 6048 found="no" 6049 6050 if test $found = "no" ; then 6051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6053 fi 6054 6055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6057 fi 6058 6059 CFLAGS="$CFLAGS -Wold-style-definition" 6060 6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6062 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6063 cacheid=xorg_cv_cc_flag__Wold_style_definition 6064 if eval test \${$cacheid+y} 6065 then : 6066 printf %s "(cached) " >&6 6067 else case e in #( 6068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6069 /* end confdefs.h. */ 6070 int i; 6071 int 6072 main (void) 6073 { 6074 6075 ; 6076 return 0; 6077 } 6078 _ACEOF 6079 if ac_fn_c_try_link "$LINENO" 6080 then : 6081 eval $cacheid=yes 6082 else case e in #( 6083 e) eval $cacheid=no ;; 6084 esac 6085 fi 6086 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6087 conftest$ac_exeext conftest.$ac_ext ;; 6088 esac 6089 fi 6090 6091 6092 CFLAGS="$xorg_testset_save_CFLAGS" 6093 6094 eval supported=\$$cacheid 6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6096 printf "%s\n" "$supported" >&6; } 6097 if test "$supported" = "yes" ; then 6098 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6099 found="yes" 6100 fi 6101 fi 6102 6103 if test $found = "no" ; then 6104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6106 fi 6107 6108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6110 fi 6111 6112 CFLAGS="$CFLAGS -fd" 6113 6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6115 printf %s "checking if $CC supports -fd... " >&6; } 6116 cacheid=xorg_cv_cc_flag__fd 6117 if eval test \${$cacheid+y} 6118 then : 6119 printf %s "(cached) " >&6 6120 else case e in #( 6121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6122 /* end confdefs.h. */ 6123 int i; 6124 int 6125 main (void) 6126 { 6127 6128 ; 6129 return 0; 6130 } 6131 _ACEOF 6132 if ac_fn_c_try_link "$LINENO" 6133 then : 6134 eval $cacheid=yes 6135 else case e in #( 6136 e) eval $cacheid=no ;; 6137 esac 6138 fi 6139 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6140 conftest$ac_exeext conftest.$ac_ext ;; 6141 esac 6142 fi 6143 6144 6145 CFLAGS="$xorg_testset_save_CFLAGS" 6146 6147 eval supported=\$$cacheid 6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6149 printf "%s\n" "$supported" >&6; } 6150 if test "$supported" = "yes" ; then 6151 BASE_CFLAGS="$BASE_CFLAGS -fd" 6152 found="yes" 6153 fi 6154 fi 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 xorg_testset_save_CFLAGS="$CFLAGS" 6171 6172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6175 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6176 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6177 then : 6178 printf %s "(cached) " >&6 6179 else case e in #( 6180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6181 /* end confdefs.h. */ 6182 int i; 6183 _ACEOF 6184 if ac_fn_c_try_compile "$LINENO" 6185 then : 6186 xorg_cv_cc_flag_unknown_warning_option=yes 6187 else case e in #( 6188 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6189 esac 6190 fi 6191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6192 esac 6193 fi 6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6195 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6197 CFLAGS="$xorg_testset_save_CFLAGS" 6198 fi 6199 6200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6203 fi 6204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6206 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6207 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6208 then : 6209 printf %s "(cached) " >&6 6210 else case e in #( 6211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212 /* end confdefs.h. */ 6213 int i; 6214 _ACEOF 6215 if ac_fn_c_try_compile "$LINENO" 6216 then : 6217 xorg_cv_cc_flag_unused_command_line_argument=yes 6218 else case e in #( 6219 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6220 esac 6221 fi 6222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6223 esac 6224 fi 6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6226 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6228 CFLAGS="$xorg_testset_save_CFLAGS" 6229 fi 6230 6231 found="no" 6232 6233 if test $found = "no" ; then 6234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6236 fi 6237 6238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6240 fi 6241 6242 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6243 6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6245 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6246 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6247 if eval test \${$cacheid+y} 6248 then : 6249 printf %s "(cached) " >&6 6250 else case e in #( 6251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252 /* end confdefs.h. */ 6253 int i; 6254 int 6255 main (void) 6256 { 6257 6258 ; 6259 return 0; 6260 } 6261 _ACEOF 6262 if ac_fn_c_try_link "$LINENO" 6263 then : 6264 eval $cacheid=yes 6265 else case e in #( 6266 e) eval $cacheid=no ;; 6267 esac 6268 fi 6269 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6270 conftest$ac_exeext conftest.$ac_ext ;; 6271 esac 6272 fi 6273 6274 6275 CFLAGS="$xorg_testset_save_CFLAGS" 6276 6277 eval supported=\$$cacheid 6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6279 printf "%s\n" "$supported" >&6; } 6280 if test "$supported" = "yes" ; then 6281 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6282 found="yes" 6283 fi 6284 fi 6285 6286 6287 6288 6289 6290 # This chunk adds additional warnings that could catch undesired effects. 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 xorg_testset_save_CFLAGS="$CFLAGS" 6305 6306 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6309 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6310 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6311 then : 6312 printf %s "(cached) " >&6 6313 else case e in #( 6314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6315 /* end confdefs.h. */ 6316 int i; 6317 _ACEOF 6318 if ac_fn_c_try_compile "$LINENO" 6319 then : 6320 xorg_cv_cc_flag_unknown_warning_option=yes 6321 else case e in #( 6322 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6323 esac 6324 fi 6325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6326 esac 6327 fi 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6329 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6331 CFLAGS="$xorg_testset_save_CFLAGS" 6332 fi 6333 6334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6337 fi 6338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6340 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6341 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6342 then : 6343 printf %s "(cached) " >&6 6344 else case e in #( 6345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6346 /* end confdefs.h. */ 6347 int i; 6348 _ACEOF 6349 if ac_fn_c_try_compile "$LINENO" 6350 then : 6351 xorg_cv_cc_flag_unused_command_line_argument=yes 6352 else case e in #( 6353 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6354 esac 6355 fi 6356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6357 esac 6358 fi 6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6360 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6362 CFLAGS="$xorg_testset_save_CFLAGS" 6363 fi 6364 6365 found="no" 6366 6367 if test $found = "no" ; then 6368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6370 fi 6371 6372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6374 fi 6375 6376 CFLAGS="$CFLAGS -Wunused" 6377 6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6379 printf %s "checking if $CC supports -Wunused... " >&6; } 6380 cacheid=xorg_cv_cc_flag__Wunused 6381 if eval test \${$cacheid+y} 6382 then : 6383 printf %s "(cached) " >&6 6384 else case e in #( 6385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6386 /* end confdefs.h. */ 6387 int i; 6388 int 6389 main (void) 6390 { 6391 6392 ; 6393 return 0; 6394 } 6395 _ACEOF 6396 if ac_fn_c_try_link "$LINENO" 6397 then : 6398 eval $cacheid=yes 6399 else case e in #( 6400 e) eval $cacheid=no ;; 6401 esac 6402 fi 6403 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6404 conftest$ac_exeext conftest.$ac_ext ;; 6405 esac 6406 fi 6407 6408 6409 CFLAGS="$xorg_testset_save_CFLAGS" 6410 6411 eval supported=\$$cacheid 6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6413 printf "%s\n" "$supported" >&6; } 6414 if test "$supported" = "yes" ; then 6415 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6416 found="yes" 6417 fi 6418 fi 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 xorg_testset_save_CFLAGS="$CFLAGS" 6435 6436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6439 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6440 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6441 then : 6442 printf %s "(cached) " >&6 6443 else case e in #( 6444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445 /* end confdefs.h. */ 6446 int i; 6447 _ACEOF 6448 if ac_fn_c_try_compile "$LINENO" 6449 then : 6450 xorg_cv_cc_flag_unknown_warning_option=yes 6451 else case e in #( 6452 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6453 esac 6454 fi 6455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6456 esac 6457 fi 6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6459 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6461 CFLAGS="$xorg_testset_save_CFLAGS" 6462 fi 6463 6464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6467 fi 6468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6470 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6471 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6472 then : 6473 printf %s "(cached) " >&6 6474 else case e in #( 6475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6476 /* end confdefs.h. */ 6477 int i; 6478 _ACEOF 6479 if ac_fn_c_try_compile "$LINENO" 6480 then : 6481 xorg_cv_cc_flag_unused_command_line_argument=yes 6482 else case e in #( 6483 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6484 esac 6485 fi 6486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6487 esac 6488 fi 6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6490 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6492 CFLAGS="$xorg_testset_save_CFLAGS" 6493 fi 6494 6495 found="no" 6496 6497 if test $found = "no" ; then 6498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6500 fi 6501 6502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6504 fi 6505 6506 CFLAGS="$CFLAGS -Wuninitialized" 6507 6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6509 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6510 cacheid=xorg_cv_cc_flag__Wuninitialized 6511 if eval test \${$cacheid+y} 6512 then : 6513 printf %s "(cached) " >&6 6514 else case e in #( 6515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6516 /* end confdefs.h. */ 6517 int i; 6518 int 6519 main (void) 6520 { 6521 6522 ; 6523 return 0; 6524 } 6525 _ACEOF 6526 if ac_fn_c_try_link "$LINENO" 6527 then : 6528 eval $cacheid=yes 6529 else case e in #( 6530 e) eval $cacheid=no ;; 6531 esac 6532 fi 6533 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6534 conftest$ac_exeext conftest.$ac_ext ;; 6535 esac 6536 fi 6537 6538 6539 CFLAGS="$xorg_testset_save_CFLAGS" 6540 6541 eval supported=\$$cacheid 6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6543 printf "%s\n" "$supported" >&6; } 6544 if test "$supported" = "yes" ; then 6545 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6546 found="yes" 6547 fi 6548 fi 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 xorg_testset_save_CFLAGS="$CFLAGS" 6565 6566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6569 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6570 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6571 then : 6572 printf %s "(cached) " >&6 6573 else case e in #( 6574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6575 /* end confdefs.h. */ 6576 int i; 6577 _ACEOF 6578 if ac_fn_c_try_compile "$LINENO" 6579 then : 6580 xorg_cv_cc_flag_unknown_warning_option=yes 6581 else case e in #( 6582 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6583 esac 6584 fi 6585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6586 esac 6587 fi 6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6589 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6591 CFLAGS="$xorg_testset_save_CFLAGS" 6592 fi 6593 6594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6597 fi 6598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6600 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6601 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6602 then : 6603 printf %s "(cached) " >&6 6604 else case e in #( 6605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6606 /* end confdefs.h. */ 6607 int i; 6608 _ACEOF 6609 if ac_fn_c_try_compile "$LINENO" 6610 then : 6611 xorg_cv_cc_flag_unused_command_line_argument=yes 6612 else case e in #( 6613 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6614 esac 6615 fi 6616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6617 esac 6618 fi 6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6620 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6622 CFLAGS="$xorg_testset_save_CFLAGS" 6623 fi 6624 6625 found="no" 6626 6627 if test $found = "no" ; then 6628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6630 fi 6631 6632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6634 fi 6635 6636 CFLAGS="$CFLAGS -Wshadow" 6637 6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6639 printf %s "checking if $CC supports -Wshadow... " >&6; } 6640 cacheid=xorg_cv_cc_flag__Wshadow 6641 if eval test \${$cacheid+y} 6642 then : 6643 printf %s "(cached) " >&6 6644 else case e in #( 6645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6646 /* end confdefs.h. */ 6647 int i; 6648 int 6649 main (void) 6650 { 6651 6652 ; 6653 return 0; 6654 } 6655 _ACEOF 6656 if ac_fn_c_try_link "$LINENO" 6657 then : 6658 eval $cacheid=yes 6659 else case e in #( 6660 e) eval $cacheid=no ;; 6661 esac 6662 fi 6663 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6664 conftest$ac_exeext conftest.$ac_ext ;; 6665 esac 6666 fi 6667 6668 6669 CFLAGS="$xorg_testset_save_CFLAGS" 6670 6671 eval supported=\$$cacheid 6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6673 printf "%s\n" "$supported" >&6; } 6674 if test "$supported" = "yes" ; then 6675 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6676 found="yes" 6677 fi 6678 fi 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 xorg_testset_save_CFLAGS="$CFLAGS" 6695 6696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6699 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6700 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6701 then : 6702 printf %s "(cached) " >&6 6703 else case e in #( 6704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6705 /* end confdefs.h. */ 6706 int i; 6707 _ACEOF 6708 if ac_fn_c_try_compile "$LINENO" 6709 then : 6710 xorg_cv_cc_flag_unknown_warning_option=yes 6711 else case e in #( 6712 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6713 esac 6714 fi 6715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6716 esac 6717 fi 6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6719 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6721 CFLAGS="$xorg_testset_save_CFLAGS" 6722 fi 6723 6724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6727 fi 6728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6730 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6731 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6732 then : 6733 printf %s "(cached) " >&6 6734 else case e in #( 6735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6736 /* end confdefs.h. */ 6737 int i; 6738 _ACEOF 6739 if ac_fn_c_try_compile "$LINENO" 6740 then : 6741 xorg_cv_cc_flag_unused_command_line_argument=yes 6742 else case e in #( 6743 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6744 esac 6745 fi 6746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6747 esac 6748 fi 6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6750 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6752 CFLAGS="$xorg_testset_save_CFLAGS" 6753 fi 6754 6755 found="no" 6756 6757 if test $found = "no" ; then 6758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6760 fi 6761 6762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6764 fi 6765 6766 CFLAGS="$CFLAGS -Wmissing-noreturn" 6767 6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6769 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6770 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6771 if eval test \${$cacheid+y} 6772 then : 6773 printf %s "(cached) " >&6 6774 else case e in #( 6775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6776 /* end confdefs.h. */ 6777 int i; 6778 int 6779 main (void) 6780 { 6781 6782 ; 6783 return 0; 6784 } 6785 _ACEOF 6786 if ac_fn_c_try_link "$LINENO" 6787 then : 6788 eval $cacheid=yes 6789 else case e in #( 6790 e) eval $cacheid=no ;; 6791 esac 6792 fi 6793 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6794 conftest$ac_exeext conftest.$ac_ext ;; 6795 esac 6796 fi 6797 6798 6799 CFLAGS="$xorg_testset_save_CFLAGS" 6800 6801 eval supported=\$$cacheid 6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6803 printf "%s\n" "$supported" >&6; } 6804 if test "$supported" = "yes" ; then 6805 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6806 found="yes" 6807 fi 6808 fi 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 xorg_testset_save_CFLAGS="$CFLAGS" 6825 6826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6829 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6830 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6831 then : 6832 printf %s "(cached) " >&6 6833 else case e in #( 6834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6835 /* end confdefs.h. */ 6836 int i; 6837 _ACEOF 6838 if ac_fn_c_try_compile "$LINENO" 6839 then : 6840 xorg_cv_cc_flag_unknown_warning_option=yes 6841 else case e in #( 6842 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6843 esac 6844 fi 6845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6846 esac 6847 fi 6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6849 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6851 CFLAGS="$xorg_testset_save_CFLAGS" 6852 fi 6853 6854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6857 fi 6858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6860 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6861 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6862 then : 6863 printf %s "(cached) " >&6 6864 else case e in #( 6865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6866 /* end confdefs.h. */ 6867 int i; 6868 _ACEOF 6869 if ac_fn_c_try_compile "$LINENO" 6870 then : 6871 xorg_cv_cc_flag_unused_command_line_argument=yes 6872 else case e in #( 6873 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6874 esac 6875 fi 6876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6877 esac 6878 fi 6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6880 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6882 CFLAGS="$xorg_testset_save_CFLAGS" 6883 fi 6884 6885 found="no" 6886 6887 if test $found = "no" ; then 6888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6890 fi 6891 6892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6894 fi 6895 6896 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6897 6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6899 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6900 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6901 if eval test \${$cacheid+y} 6902 then : 6903 printf %s "(cached) " >&6 6904 else case e in #( 6905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6906 /* end confdefs.h. */ 6907 int i; 6908 int 6909 main (void) 6910 { 6911 6912 ; 6913 return 0; 6914 } 6915 _ACEOF 6916 if ac_fn_c_try_link "$LINENO" 6917 then : 6918 eval $cacheid=yes 6919 else case e in #( 6920 e) eval $cacheid=no ;; 6921 esac 6922 fi 6923 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6924 conftest$ac_exeext conftest.$ac_ext ;; 6925 esac 6926 fi 6927 6928 6929 CFLAGS="$xorg_testset_save_CFLAGS" 6930 6931 eval supported=\$$cacheid 6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6933 printf "%s\n" "$supported" >&6; } 6934 if test "$supported" = "yes" ; then 6935 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6936 found="yes" 6937 fi 6938 fi 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 xorg_testset_save_CFLAGS="$CFLAGS" 6955 6956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6960 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6961 then : 6962 printf %s "(cached) " >&6 6963 else case e in #( 6964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965 /* end confdefs.h. */ 6966 int i; 6967 _ACEOF 6968 if ac_fn_c_try_compile "$LINENO" 6969 then : 6970 xorg_cv_cc_flag_unknown_warning_option=yes 6971 else case e in #( 6972 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6973 esac 6974 fi 6975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6976 esac 6977 fi 6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6979 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6981 CFLAGS="$xorg_testset_save_CFLAGS" 6982 fi 6983 6984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6987 fi 6988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6990 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6991 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6992 then : 6993 printf %s "(cached) " >&6 6994 else case e in #( 6995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996 /* end confdefs.h. */ 6997 int i; 6998 _ACEOF 6999 if ac_fn_c_try_compile "$LINENO" 7000 then : 7001 xorg_cv_cc_flag_unused_command_line_argument=yes 7002 else case e in #( 7003 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7004 esac 7005 fi 7006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7007 esac 7008 fi 7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7010 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7012 CFLAGS="$xorg_testset_save_CFLAGS" 7013 fi 7014 7015 found="no" 7016 7017 if test $found = "no" ; then 7018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7020 fi 7021 7022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7024 fi 7025 7026 CFLAGS="$CFLAGS -Wredundant-decls" 7027 7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7029 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7030 cacheid=xorg_cv_cc_flag__Wredundant_decls 7031 if eval test \${$cacheid+y} 7032 then : 7033 printf %s "(cached) " >&6 7034 else case e in #( 7035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7036 /* end confdefs.h. */ 7037 int i; 7038 int 7039 main (void) 7040 { 7041 7042 ; 7043 return 0; 7044 } 7045 _ACEOF 7046 if ac_fn_c_try_link "$LINENO" 7047 then : 7048 eval $cacheid=yes 7049 else case e in #( 7050 e) eval $cacheid=no ;; 7051 esac 7052 fi 7053 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7054 conftest$ac_exeext conftest.$ac_ext ;; 7055 esac 7056 fi 7057 7058 7059 CFLAGS="$xorg_testset_save_CFLAGS" 7060 7061 eval supported=\$$cacheid 7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7063 printf "%s\n" "$supported" >&6; } 7064 if test "$supported" = "yes" ; then 7065 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7066 found="yes" 7067 fi 7068 fi 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 xorg_testset_save_CFLAGS="$CFLAGS" 7085 7086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7089 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7090 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7091 then : 7092 printf %s "(cached) " >&6 7093 else case e in #( 7094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095 /* end confdefs.h. */ 7096 int i; 7097 _ACEOF 7098 if ac_fn_c_try_compile "$LINENO" 7099 then : 7100 xorg_cv_cc_flag_unknown_warning_option=yes 7101 else case e in #( 7102 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7103 esac 7104 fi 7105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7106 esac 7107 fi 7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7111 CFLAGS="$xorg_testset_save_CFLAGS" 7112 fi 7113 7114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7117 fi 7118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7122 then : 7123 printf %s "(cached) " >&6 7124 else case e in #( 7125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7126 /* end confdefs.h. */ 7127 int i; 7128 _ACEOF 7129 if ac_fn_c_try_compile "$LINENO" 7130 then : 7131 xorg_cv_cc_flag_unused_command_line_argument=yes 7132 else case e in #( 7133 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7134 esac 7135 fi 7136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7137 esac 7138 fi 7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7140 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7142 CFLAGS="$xorg_testset_save_CFLAGS" 7143 fi 7144 7145 found="no" 7146 7147 if test $found = "no" ; then 7148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7150 fi 7151 7152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7154 fi 7155 7156 CFLAGS="$CFLAGS -Wlogical-op" 7157 7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7159 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7160 cacheid=xorg_cv_cc_flag__Wlogical_op 7161 if eval test \${$cacheid+y} 7162 then : 7163 printf %s "(cached) " >&6 7164 else case e in #( 7165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7166 /* end confdefs.h. */ 7167 int i; 7168 int 7169 main (void) 7170 { 7171 7172 ; 7173 return 0; 7174 } 7175 _ACEOF 7176 if ac_fn_c_try_link "$LINENO" 7177 then : 7178 eval $cacheid=yes 7179 else case e in #( 7180 e) eval $cacheid=no ;; 7181 esac 7182 fi 7183 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7184 conftest$ac_exeext conftest.$ac_ext ;; 7185 esac 7186 fi 7187 7188 7189 CFLAGS="$xorg_testset_save_CFLAGS" 7190 7191 eval supported=\$$cacheid 7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7193 printf "%s\n" "$supported" >&6; } 7194 if test "$supported" = "yes" ; then 7195 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7196 found="yes" 7197 fi 7198 fi 7199 7200 7201 7202 # These are currently disabled because they are noisy. They will be enabled 7203 # in the future once the codebase is sufficiently modernized to silence 7204 # them. For now, I don't want them to drown out the other warnings. 7205 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7206 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7207 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7208 7209 # Turn some warnings into errors, so we don't accidentally get successful builds 7210 # when there are problems that should be fixed. 7211 7212 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 xorg_testset_save_CFLAGS="$CFLAGS" 7227 7228 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7231 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7232 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7233 then : 7234 printf %s "(cached) " >&6 7235 else case e in #( 7236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7237 /* end confdefs.h. */ 7238 int i; 7239 _ACEOF 7240 if ac_fn_c_try_compile "$LINENO" 7241 then : 7242 xorg_cv_cc_flag_unknown_warning_option=yes 7243 else case e in #( 7244 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7245 esac 7246 fi 7247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7248 esac 7249 fi 7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7251 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7253 CFLAGS="$xorg_testset_save_CFLAGS" 7254 fi 7255 7256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7259 fi 7260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7262 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7263 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7264 then : 7265 printf %s "(cached) " >&6 7266 else case e in #( 7267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7268 /* end confdefs.h. */ 7269 int i; 7270 _ACEOF 7271 if ac_fn_c_try_compile "$LINENO" 7272 then : 7273 xorg_cv_cc_flag_unused_command_line_argument=yes 7274 else case e in #( 7275 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7276 esac 7277 fi 7278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7279 esac 7280 fi 7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7284 CFLAGS="$xorg_testset_save_CFLAGS" 7285 fi 7286 7287 found="no" 7288 7289 if test $found = "no" ; then 7290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7292 fi 7293 7294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7296 fi 7297 7298 CFLAGS="$CFLAGS -Werror=implicit" 7299 7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7301 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7302 cacheid=xorg_cv_cc_flag__Werror_implicit 7303 if eval test \${$cacheid+y} 7304 then : 7305 printf %s "(cached) " >&6 7306 else case e in #( 7307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7308 /* end confdefs.h. */ 7309 int i; 7310 int 7311 main (void) 7312 { 7313 7314 ; 7315 return 0; 7316 } 7317 _ACEOF 7318 if ac_fn_c_try_link "$LINENO" 7319 then : 7320 eval $cacheid=yes 7321 else case e in #( 7322 e) eval $cacheid=no ;; 7323 esac 7324 fi 7325 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7326 conftest$ac_exeext conftest.$ac_ext ;; 7327 esac 7328 fi 7329 7330 7331 CFLAGS="$xorg_testset_save_CFLAGS" 7332 7333 eval supported=\$$cacheid 7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7335 printf "%s\n" "$supported" >&6; } 7336 if test "$supported" = "yes" ; then 7337 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7338 found="yes" 7339 fi 7340 fi 7341 7342 if test $found = "no" ; then 7343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7345 fi 7346 7347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7349 fi 7350 7351 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7352 7353 { 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 7354 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7355 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7356 if eval test \${$cacheid+y} 7357 then : 7358 printf %s "(cached) " >&6 7359 else case e in #( 7360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7361 /* end confdefs.h. */ 7362 int i; 7363 int 7364 main (void) 7365 { 7366 7367 ; 7368 return 0; 7369 } 7370 _ACEOF 7371 if ac_fn_c_try_link "$LINENO" 7372 then : 7373 eval $cacheid=yes 7374 else case e in #( 7375 e) eval $cacheid=no ;; 7376 esac 7377 fi 7378 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7379 conftest$ac_exeext conftest.$ac_ext ;; 7380 esac 7381 fi 7382 7383 7384 CFLAGS="$xorg_testset_save_CFLAGS" 7385 7386 eval supported=\$$cacheid 7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7388 printf "%s\n" "$supported" >&6; } 7389 if test "$supported" = "yes" ; then 7390 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7391 found="yes" 7392 fi 7393 fi 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 xorg_testset_save_CFLAGS="$CFLAGS" 7410 7411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7414 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7415 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7416 then : 7417 printf %s "(cached) " >&6 7418 else case e in #( 7419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7420 /* end confdefs.h. */ 7421 int i; 7422 _ACEOF 7423 if ac_fn_c_try_compile "$LINENO" 7424 then : 7425 xorg_cv_cc_flag_unknown_warning_option=yes 7426 else case e in #( 7427 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7428 esac 7429 fi 7430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7431 esac 7432 fi 7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7434 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7436 CFLAGS="$xorg_testset_save_CFLAGS" 7437 fi 7438 7439 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7442 fi 7443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7445 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7446 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7447 then : 7448 printf %s "(cached) " >&6 7449 else case e in #( 7450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451 /* end confdefs.h. */ 7452 int i; 7453 _ACEOF 7454 if ac_fn_c_try_compile "$LINENO" 7455 then : 7456 xorg_cv_cc_flag_unused_command_line_argument=yes 7457 else case e in #( 7458 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7459 esac 7460 fi 7461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7462 esac 7463 fi 7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7465 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7467 CFLAGS="$xorg_testset_save_CFLAGS" 7468 fi 7469 7470 found="no" 7471 7472 if test $found = "no" ; then 7473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7475 fi 7476 7477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7479 fi 7480 7481 CFLAGS="$CFLAGS -Werror=nonnull" 7482 7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7484 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7485 cacheid=xorg_cv_cc_flag__Werror_nonnull 7486 if eval test \${$cacheid+y} 7487 then : 7488 printf %s "(cached) " >&6 7489 else case e in #( 7490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7491 /* end confdefs.h. */ 7492 int i; 7493 int 7494 main (void) 7495 { 7496 7497 ; 7498 return 0; 7499 } 7500 _ACEOF 7501 if ac_fn_c_try_link "$LINENO" 7502 then : 7503 eval $cacheid=yes 7504 else case e in #( 7505 e) eval $cacheid=no ;; 7506 esac 7507 fi 7508 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7509 conftest$ac_exeext conftest.$ac_ext ;; 7510 esac 7511 fi 7512 7513 7514 CFLAGS="$xorg_testset_save_CFLAGS" 7515 7516 eval supported=\$$cacheid 7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7518 printf "%s\n" "$supported" >&6; } 7519 if test "$supported" = "yes" ; then 7520 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7521 found="yes" 7522 fi 7523 fi 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 xorg_testset_save_CFLAGS="$CFLAGS" 7540 7541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7544 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7545 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7546 then : 7547 printf %s "(cached) " >&6 7548 else case e in #( 7549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7550 /* end confdefs.h. */ 7551 int i; 7552 _ACEOF 7553 if ac_fn_c_try_compile "$LINENO" 7554 then : 7555 xorg_cv_cc_flag_unknown_warning_option=yes 7556 else case e in #( 7557 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7558 esac 7559 fi 7560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7561 esac 7562 fi 7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7564 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7566 CFLAGS="$xorg_testset_save_CFLAGS" 7567 fi 7568 7569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7572 fi 7573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7575 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7576 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7577 then : 7578 printf %s "(cached) " >&6 7579 else case e in #( 7580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7581 /* end confdefs.h. */ 7582 int i; 7583 _ACEOF 7584 if ac_fn_c_try_compile "$LINENO" 7585 then : 7586 xorg_cv_cc_flag_unused_command_line_argument=yes 7587 else case e in #( 7588 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7589 esac 7590 fi 7591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7592 esac 7593 fi 7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7595 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7597 CFLAGS="$xorg_testset_save_CFLAGS" 7598 fi 7599 7600 found="no" 7601 7602 if test $found = "no" ; then 7603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7605 fi 7606 7607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7609 fi 7610 7611 CFLAGS="$CFLAGS -Werror=init-self" 7612 7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7614 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7615 cacheid=xorg_cv_cc_flag__Werror_init_self 7616 if eval test \${$cacheid+y} 7617 then : 7618 printf %s "(cached) " >&6 7619 else case e in #( 7620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7621 /* end confdefs.h. */ 7622 int i; 7623 int 7624 main (void) 7625 { 7626 7627 ; 7628 return 0; 7629 } 7630 _ACEOF 7631 if ac_fn_c_try_link "$LINENO" 7632 then : 7633 eval $cacheid=yes 7634 else case e in #( 7635 e) eval $cacheid=no ;; 7636 esac 7637 fi 7638 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7639 conftest$ac_exeext conftest.$ac_ext ;; 7640 esac 7641 fi 7642 7643 7644 CFLAGS="$xorg_testset_save_CFLAGS" 7645 7646 eval supported=\$$cacheid 7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7648 printf "%s\n" "$supported" >&6; } 7649 if test "$supported" = "yes" ; then 7650 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7651 found="yes" 7652 fi 7653 fi 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 xorg_testset_save_CFLAGS="$CFLAGS" 7670 7671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7674 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7675 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7676 then : 7677 printf %s "(cached) " >&6 7678 else case e in #( 7679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7680 /* end confdefs.h. */ 7681 int i; 7682 _ACEOF 7683 if ac_fn_c_try_compile "$LINENO" 7684 then : 7685 xorg_cv_cc_flag_unknown_warning_option=yes 7686 else case e in #( 7687 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7688 esac 7689 fi 7690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7691 esac 7692 fi 7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7694 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7696 CFLAGS="$xorg_testset_save_CFLAGS" 7697 fi 7698 7699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7702 fi 7703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7705 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7706 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7707 then : 7708 printf %s "(cached) " >&6 7709 else case e in #( 7710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711 /* end confdefs.h. */ 7712 int i; 7713 _ACEOF 7714 if ac_fn_c_try_compile "$LINENO" 7715 then : 7716 xorg_cv_cc_flag_unused_command_line_argument=yes 7717 else case e in #( 7718 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7719 esac 7720 fi 7721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7722 esac 7723 fi 7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7725 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7727 CFLAGS="$xorg_testset_save_CFLAGS" 7728 fi 7729 7730 found="no" 7731 7732 if test $found = "no" ; then 7733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7735 fi 7736 7737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7739 fi 7740 7741 CFLAGS="$CFLAGS -Werror=main" 7742 7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7744 printf %s "checking if $CC supports -Werror=main... " >&6; } 7745 cacheid=xorg_cv_cc_flag__Werror_main 7746 if eval test \${$cacheid+y} 7747 then : 7748 printf %s "(cached) " >&6 7749 else case e in #( 7750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7751 /* end confdefs.h. */ 7752 int i; 7753 int 7754 main (void) 7755 { 7756 7757 ; 7758 return 0; 7759 } 7760 _ACEOF 7761 if ac_fn_c_try_link "$LINENO" 7762 then : 7763 eval $cacheid=yes 7764 else case e in #( 7765 e) eval $cacheid=no ;; 7766 esac 7767 fi 7768 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7769 conftest$ac_exeext conftest.$ac_ext ;; 7770 esac 7771 fi 7772 7773 7774 CFLAGS="$xorg_testset_save_CFLAGS" 7775 7776 eval supported=\$$cacheid 7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7778 printf "%s\n" "$supported" >&6; } 7779 if test "$supported" = "yes" ; then 7780 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7781 found="yes" 7782 fi 7783 fi 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 xorg_testset_save_CFLAGS="$CFLAGS" 7800 7801 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7804 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7805 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7806 then : 7807 printf %s "(cached) " >&6 7808 else case e in #( 7809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7810 /* end confdefs.h. */ 7811 int i; 7812 _ACEOF 7813 if ac_fn_c_try_compile "$LINENO" 7814 then : 7815 xorg_cv_cc_flag_unknown_warning_option=yes 7816 else case e in #( 7817 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7818 esac 7819 fi 7820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7821 esac 7822 fi 7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7824 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7826 CFLAGS="$xorg_testset_save_CFLAGS" 7827 fi 7828 7829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7832 fi 7833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7835 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7836 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7837 then : 7838 printf %s "(cached) " >&6 7839 else case e in #( 7840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7841 /* end confdefs.h. */ 7842 int i; 7843 _ACEOF 7844 if ac_fn_c_try_compile "$LINENO" 7845 then : 7846 xorg_cv_cc_flag_unused_command_line_argument=yes 7847 else case e in #( 7848 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7849 esac 7850 fi 7851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7852 esac 7853 fi 7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7855 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7857 CFLAGS="$xorg_testset_save_CFLAGS" 7858 fi 7859 7860 found="no" 7861 7862 if test $found = "no" ; then 7863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7865 fi 7866 7867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7869 fi 7870 7871 CFLAGS="$CFLAGS -Werror=missing-braces" 7872 7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7874 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7875 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7876 if eval test \${$cacheid+y} 7877 then : 7878 printf %s "(cached) " >&6 7879 else case e in #( 7880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7881 /* end confdefs.h. */ 7882 int i; 7883 int 7884 main (void) 7885 { 7886 7887 ; 7888 return 0; 7889 } 7890 _ACEOF 7891 if ac_fn_c_try_link "$LINENO" 7892 then : 7893 eval $cacheid=yes 7894 else case e in #( 7895 e) eval $cacheid=no ;; 7896 esac 7897 fi 7898 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7899 conftest$ac_exeext conftest.$ac_ext ;; 7900 esac 7901 fi 7902 7903 7904 CFLAGS="$xorg_testset_save_CFLAGS" 7905 7906 eval supported=\$$cacheid 7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7908 printf "%s\n" "$supported" >&6; } 7909 if test "$supported" = "yes" ; then 7910 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7911 found="yes" 7912 fi 7913 fi 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 xorg_testset_save_CFLAGS="$CFLAGS" 7930 7931 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7934 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7935 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7936 then : 7937 printf %s "(cached) " >&6 7938 else case e in #( 7939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940 /* end confdefs.h. */ 7941 int i; 7942 _ACEOF 7943 if ac_fn_c_try_compile "$LINENO" 7944 then : 7945 xorg_cv_cc_flag_unknown_warning_option=yes 7946 else case e in #( 7947 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7948 esac 7949 fi 7950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7951 esac 7952 fi 7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7954 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7956 CFLAGS="$xorg_testset_save_CFLAGS" 7957 fi 7958 7959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7962 fi 7963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7965 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7966 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7967 then : 7968 printf %s "(cached) " >&6 7969 else case e in #( 7970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7971 /* end confdefs.h. */ 7972 int i; 7973 _ACEOF 7974 if ac_fn_c_try_compile "$LINENO" 7975 then : 7976 xorg_cv_cc_flag_unused_command_line_argument=yes 7977 else case e in #( 7978 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7979 esac 7980 fi 7981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7982 esac 7983 fi 7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7985 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7987 CFLAGS="$xorg_testset_save_CFLAGS" 7988 fi 7989 7990 found="no" 7991 7992 if test $found = "no" ; then 7993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7995 fi 7996 7997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7999 fi 8000 8001 CFLAGS="$CFLAGS -Werror=sequence-point" 8002 8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8004 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8005 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8006 if eval test \${$cacheid+y} 8007 then : 8008 printf %s "(cached) " >&6 8009 else case e in #( 8010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8011 /* end confdefs.h. */ 8012 int i; 8013 int 8014 main (void) 8015 { 8016 8017 ; 8018 return 0; 8019 } 8020 _ACEOF 8021 if ac_fn_c_try_link "$LINENO" 8022 then : 8023 eval $cacheid=yes 8024 else case e in #( 8025 e) eval $cacheid=no ;; 8026 esac 8027 fi 8028 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8029 conftest$ac_exeext conftest.$ac_ext ;; 8030 esac 8031 fi 8032 8033 8034 CFLAGS="$xorg_testset_save_CFLAGS" 8035 8036 eval supported=\$$cacheid 8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8038 printf "%s\n" "$supported" >&6; } 8039 if test "$supported" = "yes" ; then 8040 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8041 found="yes" 8042 fi 8043 fi 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 xorg_testset_save_CFLAGS="$CFLAGS" 8060 8061 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8064 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8065 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8066 then : 8067 printf %s "(cached) " >&6 8068 else case e in #( 8069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070 /* end confdefs.h. */ 8071 int i; 8072 _ACEOF 8073 if ac_fn_c_try_compile "$LINENO" 8074 then : 8075 xorg_cv_cc_flag_unknown_warning_option=yes 8076 else case e in #( 8077 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8078 esac 8079 fi 8080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8081 esac 8082 fi 8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8084 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8086 CFLAGS="$xorg_testset_save_CFLAGS" 8087 fi 8088 8089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8092 fi 8093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8095 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8096 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8097 then : 8098 printf %s "(cached) " >&6 8099 else case e in #( 8100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8101 /* end confdefs.h. */ 8102 int i; 8103 _ACEOF 8104 if ac_fn_c_try_compile "$LINENO" 8105 then : 8106 xorg_cv_cc_flag_unused_command_line_argument=yes 8107 else case e in #( 8108 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8109 esac 8110 fi 8111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8112 esac 8113 fi 8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8115 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8117 CFLAGS="$xorg_testset_save_CFLAGS" 8118 fi 8119 8120 found="no" 8121 8122 if test $found = "no" ; then 8123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8125 fi 8126 8127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8129 fi 8130 8131 CFLAGS="$CFLAGS -Werror=return-type" 8132 8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8134 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8135 cacheid=xorg_cv_cc_flag__Werror_return_type 8136 if eval test \${$cacheid+y} 8137 then : 8138 printf %s "(cached) " >&6 8139 else case e in #( 8140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8141 /* end confdefs.h. */ 8142 int i; 8143 int 8144 main (void) 8145 { 8146 8147 ; 8148 return 0; 8149 } 8150 _ACEOF 8151 if ac_fn_c_try_link "$LINENO" 8152 then : 8153 eval $cacheid=yes 8154 else case e in #( 8155 e) eval $cacheid=no ;; 8156 esac 8157 fi 8158 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8159 conftest$ac_exeext conftest.$ac_ext ;; 8160 esac 8161 fi 8162 8163 8164 CFLAGS="$xorg_testset_save_CFLAGS" 8165 8166 eval supported=\$$cacheid 8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8168 printf "%s\n" "$supported" >&6; } 8169 if test "$supported" = "yes" ; then 8170 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8171 found="yes" 8172 fi 8173 fi 8174 8175 if test $found = "no" ; then 8176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8178 fi 8179 8180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8182 fi 8183 8184 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8185 8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8187 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8188 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8189 if eval test \${$cacheid+y} 8190 then : 8191 printf %s "(cached) " >&6 8192 else case e in #( 8193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8194 /* end confdefs.h. */ 8195 int i; 8196 int 8197 main (void) 8198 { 8199 8200 ; 8201 return 0; 8202 } 8203 _ACEOF 8204 if ac_fn_c_try_link "$LINENO" 8205 then : 8206 eval $cacheid=yes 8207 else case e in #( 8208 e) eval $cacheid=no ;; 8209 esac 8210 fi 8211 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8212 conftest$ac_exeext conftest.$ac_ext ;; 8213 esac 8214 fi 8215 8216 8217 CFLAGS="$xorg_testset_save_CFLAGS" 8218 8219 eval supported=\$$cacheid 8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8221 printf "%s\n" "$supported" >&6; } 8222 if test "$supported" = "yes" ; then 8223 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8224 found="yes" 8225 fi 8226 fi 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 xorg_testset_save_CFLAGS="$CFLAGS" 8243 8244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8247 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8248 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8249 then : 8250 printf %s "(cached) " >&6 8251 else case e in #( 8252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253 /* end confdefs.h. */ 8254 int i; 8255 _ACEOF 8256 if ac_fn_c_try_compile "$LINENO" 8257 then : 8258 xorg_cv_cc_flag_unknown_warning_option=yes 8259 else case e in #( 8260 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8261 esac 8262 fi 8263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8264 esac 8265 fi 8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8267 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8269 CFLAGS="$xorg_testset_save_CFLAGS" 8270 fi 8271 8272 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8275 fi 8276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8278 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8279 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8280 then : 8281 printf %s "(cached) " >&6 8282 else case e in #( 8283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8284 /* end confdefs.h. */ 8285 int i; 8286 _ACEOF 8287 if ac_fn_c_try_compile "$LINENO" 8288 then : 8289 xorg_cv_cc_flag_unused_command_line_argument=yes 8290 else case e in #( 8291 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8292 esac 8293 fi 8294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8295 esac 8296 fi 8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8298 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8300 CFLAGS="$xorg_testset_save_CFLAGS" 8301 fi 8302 8303 found="no" 8304 8305 if test $found = "no" ; then 8306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8308 fi 8309 8310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8312 fi 8313 8314 CFLAGS="$CFLAGS -Werror=trigraphs" 8315 8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8317 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8318 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8319 if eval test \${$cacheid+y} 8320 then : 8321 printf %s "(cached) " >&6 8322 else case e in #( 8323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8324 /* end confdefs.h. */ 8325 int i; 8326 int 8327 main (void) 8328 { 8329 8330 ; 8331 return 0; 8332 } 8333 _ACEOF 8334 if ac_fn_c_try_link "$LINENO" 8335 then : 8336 eval $cacheid=yes 8337 else case e in #( 8338 e) eval $cacheid=no ;; 8339 esac 8340 fi 8341 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8342 conftest$ac_exeext conftest.$ac_ext ;; 8343 esac 8344 fi 8345 8346 8347 CFLAGS="$xorg_testset_save_CFLAGS" 8348 8349 eval supported=\$$cacheid 8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8351 printf "%s\n" "$supported" >&6; } 8352 if test "$supported" = "yes" ; then 8353 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8354 found="yes" 8355 fi 8356 fi 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 xorg_testset_save_CFLAGS="$CFLAGS" 8373 8374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8377 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8378 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8379 then : 8380 printf %s "(cached) " >&6 8381 else case e in #( 8382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383 /* end confdefs.h. */ 8384 int i; 8385 _ACEOF 8386 if ac_fn_c_try_compile "$LINENO" 8387 then : 8388 xorg_cv_cc_flag_unknown_warning_option=yes 8389 else case e in #( 8390 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8391 esac 8392 fi 8393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8394 esac 8395 fi 8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8397 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8399 CFLAGS="$xorg_testset_save_CFLAGS" 8400 fi 8401 8402 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8405 fi 8406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8408 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8409 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8410 then : 8411 printf %s "(cached) " >&6 8412 else case e in #( 8413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8414 /* end confdefs.h. */ 8415 int i; 8416 _ACEOF 8417 if ac_fn_c_try_compile "$LINENO" 8418 then : 8419 xorg_cv_cc_flag_unused_command_line_argument=yes 8420 else case e in #( 8421 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8422 esac 8423 fi 8424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8425 esac 8426 fi 8427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8428 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8430 CFLAGS="$xorg_testset_save_CFLAGS" 8431 fi 8432 8433 found="no" 8434 8435 if test $found = "no" ; then 8436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8438 fi 8439 8440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8442 fi 8443 8444 CFLAGS="$CFLAGS -Werror=array-bounds" 8445 8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8447 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8448 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8449 if eval test \${$cacheid+y} 8450 then : 8451 printf %s "(cached) " >&6 8452 else case e in #( 8453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8454 /* end confdefs.h. */ 8455 int i; 8456 int 8457 main (void) 8458 { 8459 8460 ; 8461 return 0; 8462 } 8463 _ACEOF 8464 if ac_fn_c_try_link "$LINENO" 8465 then : 8466 eval $cacheid=yes 8467 else case e in #( 8468 e) eval $cacheid=no ;; 8469 esac 8470 fi 8471 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8472 conftest$ac_exeext conftest.$ac_ext ;; 8473 esac 8474 fi 8475 8476 8477 CFLAGS="$xorg_testset_save_CFLAGS" 8478 8479 eval supported=\$$cacheid 8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8481 printf "%s\n" "$supported" >&6; } 8482 if test "$supported" = "yes" ; then 8483 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8484 found="yes" 8485 fi 8486 fi 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 xorg_testset_save_CFLAGS="$CFLAGS" 8503 8504 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8507 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8508 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8509 then : 8510 printf %s "(cached) " >&6 8511 else case e in #( 8512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8513 /* end confdefs.h. */ 8514 int i; 8515 _ACEOF 8516 if ac_fn_c_try_compile "$LINENO" 8517 then : 8518 xorg_cv_cc_flag_unknown_warning_option=yes 8519 else case e in #( 8520 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8521 esac 8522 fi 8523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8524 esac 8525 fi 8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8527 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8529 CFLAGS="$xorg_testset_save_CFLAGS" 8530 fi 8531 8532 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8535 fi 8536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8538 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8539 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8540 then : 8541 printf %s "(cached) " >&6 8542 else case e in #( 8543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544 /* end confdefs.h. */ 8545 int i; 8546 _ACEOF 8547 if ac_fn_c_try_compile "$LINENO" 8548 then : 8549 xorg_cv_cc_flag_unused_command_line_argument=yes 8550 else case e in #( 8551 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8552 esac 8553 fi 8554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8555 esac 8556 fi 8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8558 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8560 CFLAGS="$xorg_testset_save_CFLAGS" 8561 fi 8562 8563 found="no" 8564 8565 if test $found = "no" ; then 8566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8568 fi 8569 8570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8572 fi 8573 8574 CFLAGS="$CFLAGS -Werror=write-strings" 8575 8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8577 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8578 cacheid=xorg_cv_cc_flag__Werror_write_strings 8579 if eval test \${$cacheid+y} 8580 then : 8581 printf %s "(cached) " >&6 8582 else case e in #( 8583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8584 /* end confdefs.h. */ 8585 int i; 8586 int 8587 main (void) 8588 { 8589 8590 ; 8591 return 0; 8592 } 8593 _ACEOF 8594 if ac_fn_c_try_link "$LINENO" 8595 then : 8596 eval $cacheid=yes 8597 else case e in #( 8598 e) eval $cacheid=no ;; 8599 esac 8600 fi 8601 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8602 conftest$ac_exeext conftest.$ac_ext ;; 8603 esac 8604 fi 8605 8606 8607 CFLAGS="$xorg_testset_save_CFLAGS" 8608 8609 eval supported=\$$cacheid 8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8611 printf "%s\n" "$supported" >&6; } 8612 if test "$supported" = "yes" ; then 8613 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8614 found="yes" 8615 fi 8616 fi 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 xorg_testset_save_CFLAGS="$CFLAGS" 8633 8634 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8637 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8638 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8639 then : 8640 printf %s "(cached) " >&6 8641 else case e in #( 8642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8643 /* end confdefs.h. */ 8644 int i; 8645 _ACEOF 8646 if ac_fn_c_try_compile "$LINENO" 8647 then : 8648 xorg_cv_cc_flag_unknown_warning_option=yes 8649 else case e in #( 8650 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8651 esac 8652 fi 8653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8654 esac 8655 fi 8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8657 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8659 CFLAGS="$xorg_testset_save_CFLAGS" 8660 fi 8661 8662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8665 fi 8666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8668 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8669 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8670 then : 8671 printf %s "(cached) " >&6 8672 else case e in #( 8673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8674 /* end confdefs.h. */ 8675 int i; 8676 _ACEOF 8677 if ac_fn_c_try_compile "$LINENO" 8678 then : 8679 xorg_cv_cc_flag_unused_command_line_argument=yes 8680 else case e in #( 8681 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8682 esac 8683 fi 8684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8685 esac 8686 fi 8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8688 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8690 CFLAGS="$xorg_testset_save_CFLAGS" 8691 fi 8692 8693 found="no" 8694 8695 if test $found = "no" ; then 8696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8698 fi 8699 8700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8702 fi 8703 8704 CFLAGS="$CFLAGS -Werror=address" 8705 8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8707 printf %s "checking if $CC supports -Werror=address... " >&6; } 8708 cacheid=xorg_cv_cc_flag__Werror_address 8709 if eval test \${$cacheid+y} 8710 then : 8711 printf %s "(cached) " >&6 8712 else case e in #( 8713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8714 /* end confdefs.h. */ 8715 int i; 8716 int 8717 main (void) 8718 { 8719 8720 ; 8721 return 0; 8722 } 8723 _ACEOF 8724 if ac_fn_c_try_link "$LINENO" 8725 then : 8726 eval $cacheid=yes 8727 else case e in #( 8728 e) eval $cacheid=no ;; 8729 esac 8730 fi 8731 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8732 conftest$ac_exeext conftest.$ac_ext ;; 8733 esac 8734 fi 8735 8736 8737 CFLAGS="$xorg_testset_save_CFLAGS" 8738 8739 eval supported=\$$cacheid 8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8741 printf "%s\n" "$supported" >&6; } 8742 if test "$supported" = "yes" ; then 8743 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8744 found="yes" 8745 fi 8746 fi 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 xorg_testset_save_CFLAGS="$CFLAGS" 8763 8764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8767 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8768 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8769 then : 8770 printf %s "(cached) " >&6 8771 else case e in #( 8772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8773 /* end confdefs.h. */ 8774 int i; 8775 _ACEOF 8776 if ac_fn_c_try_compile "$LINENO" 8777 then : 8778 xorg_cv_cc_flag_unknown_warning_option=yes 8779 else case e in #( 8780 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8781 esac 8782 fi 8783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8784 esac 8785 fi 8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8787 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8789 CFLAGS="$xorg_testset_save_CFLAGS" 8790 fi 8791 8792 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8795 fi 8796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8798 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8799 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8800 then : 8801 printf %s "(cached) " >&6 8802 else case e in #( 8803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8804 /* end confdefs.h. */ 8805 int i; 8806 _ACEOF 8807 if ac_fn_c_try_compile "$LINENO" 8808 then : 8809 xorg_cv_cc_flag_unused_command_line_argument=yes 8810 else case e in #( 8811 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8812 esac 8813 fi 8814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8815 esac 8816 fi 8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8818 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8820 CFLAGS="$xorg_testset_save_CFLAGS" 8821 fi 8822 8823 found="no" 8824 8825 if test $found = "no" ; then 8826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8828 fi 8829 8830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8832 fi 8833 8834 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8835 8836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8837 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8838 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8839 if eval test \${$cacheid+y} 8840 then : 8841 printf %s "(cached) " >&6 8842 else case e in #( 8843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8844 /* end confdefs.h. */ 8845 int i; 8846 int 8847 main (void) 8848 { 8849 8850 ; 8851 return 0; 8852 } 8853 _ACEOF 8854 if ac_fn_c_try_link "$LINENO" 8855 then : 8856 eval $cacheid=yes 8857 else case e in #( 8858 e) eval $cacheid=no ;; 8859 esac 8860 fi 8861 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8862 conftest$ac_exeext conftest.$ac_ext ;; 8863 esac 8864 fi 8865 8866 8867 CFLAGS="$xorg_testset_save_CFLAGS" 8868 8869 eval supported=\$$cacheid 8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8871 printf "%s\n" "$supported" >&6; } 8872 if test "$supported" = "yes" ; then 8873 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8874 found="yes" 8875 fi 8876 fi 8877 8878 if test $found = "no" ; then 8879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8881 fi 8882 8883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8885 fi 8886 8887 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8888 8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8890 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8891 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8892 if eval test \${$cacheid+y} 8893 then : 8894 printf %s "(cached) " >&6 8895 else case e in #( 8896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8897 /* end confdefs.h. */ 8898 int i; 8899 int 8900 main (void) 8901 { 8902 8903 ; 8904 return 0; 8905 } 8906 _ACEOF 8907 if ac_fn_c_try_link "$LINENO" 8908 then : 8909 eval $cacheid=yes 8910 else case e in #( 8911 e) eval $cacheid=no ;; 8912 esac 8913 fi 8914 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8915 conftest$ac_exeext conftest.$ac_ext ;; 8916 esac 8917 fi 8918 8919 8920 CFLAGS="$xorg_testset_save_CFLAGS" 8921 8922 eval supported=\$$cacheid 8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8924 printf "%s\n" "$supported" >&6; } 8925 if test "$supported" = "yes" ; then 8926 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8927 found="yes" 8928 fi 8929 fi 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 xorg_testset_save_CFLAGS="$CFLAGS" 8946 8947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8950 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8951 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8952 then : 8953 printf %s "(cached) " >&6 8954 else case e in #( 8955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8956 /* end confdefs.h. */ 8957 int i; 8958 _ACEOF 8959 if ac_fn_c_try_compile "$LINENO" 8960 then : 8961 xorg_cv_cc_flag_unknown_warning_option=yes 8962 else case e in #( 8963 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8964 esac 8965 fi 8966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8967 esac 8968 fi 8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8970 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8972 CFLAGS="$xorg_testset_save_CFLAGS" 8973 fi 8974 8975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8978 fi 8979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8981 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8982 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8983 then : 8984 printf %s "(cached) " >&6 8985 else case e in #( 8986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8987 /* end confdefs.h. */ 8988 int i; 8989 _ACEOF 8990 if ac_fn_c_try_compile "$LINENO" 8991 then : 8992 xorg_cv_cc_flag_unused_command_line_argument=yes 8993 else case e in #( 8994 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8995 esac 8996 fi 8997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8998 esac 8999 fi 9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9001 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9003 CFLAGS="$xorg_testset_save_CFLAGS" 9004 fi 9005 9006 found="no" 9007 9008 if test $found = "no" ; then 9009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9011 fi 9012 9013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9015 fi 9016 9017 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9018 9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9020 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9021 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9022 if eval test \${$cacheid+y} 9023 then : 9024 printf %s "(cached) " >&6 9025 else case e in #( 9026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9027 /* end confdefs.h. */ 9028 int i; 9029 int 9030 main (void) 9031 { 9032 9033 ; 9034 return 0; 9035 } 9036 _ACEOF 9037 if ac_fn_c_try_link "$LINENO" 9038 then : 9039 eval $cacheid=yes 9040 else case e in #( 9041 e) eval $cacheid=no ;; 9042 esac 9043 fi 9044 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9045 conftest$ac_exeext conftest.$ac_ext ;; 9046 esac 9047 fi 9048 9049 9050 CFLAGS="$xorg_testset_save_CFLAGS" 9051 9052 eval supported=\$$cacheid 9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9054 printf "%s\n" "$supported" >&6; } 9055 if test "$supported" = "yes" ; then 9056 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9057 found="yes" 9058 fi 9059 fi 9060 9061 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9062 else 9063 { 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 9064 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;} 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 xorg_testset_save_CFLAGS="$CFLAGS" 9079 9080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9083 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9084 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9085 then : 9086 printf %s "(cached) " >&6 9087 else case e in #( 9088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9089 /* end confdefs.h. */ 9090 int i; 9091 _ACEOF 9092 if ac_fn_c_try_compile "$LINENO" 9093 then : 9094 xorg_cv_cc_flag_unknown_warning_option=yes 9095 else case e in #( 9096 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9097 esac 9098 fi 9099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9100 esac 9101 fi 9102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9103 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9105 CFLAGS="$xorg_testset_save_CFLAGS" 9106 fi 9107 9108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9111 fi 9112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9114 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9115 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9116 then : 9117 printf %s "(cached) " >&6 9118 else case e in #( 9119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9120 /* end confdefs.h. */ 9121 int i; 9122 _ACEOF 9123 if ac_fn_c_try_compile "$LINENO" 9124 then : 9125 xorg_cv_cc_flag_unused_command_line_argument=yes 9126 else case e in #( 9127 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9128 esac 9129 fi 9130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9131 esac 9132 fi 9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9134 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9136 CFLAGS="$xorg_testset_save_CFLAGS" 9137 fi 9138 9139 found="no" 9140 9141 if test $found = "no" ; then 9142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9144 fi 9145 9146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9148 fi 9149 9150 CFLAGS="$CFLAGS -Wimplicit" 9151 9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9153 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9154 cacheid=xorg_cv_cc_flag__Wimplicit 9155 if eval test \${$cacheid+y} 9156 then : 9157 printf %s "(cached) " >&6 9158 else case e in #( 9159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9160 /* end confdefs.h. */ 9161 int i; 9162 int 9163 main (void) 9164 { 9165 9166 ; 9167 return 0; 9168 } 9169 _ACEOF 9170 if ac_fn_c_try_link "$LINENO" 9171 then : 9172 eval $cacheid=yes 9173 else case e in #( 9174 e) eval $cacheid=no ;; 9175 esac 9176 fi 9177 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9178 conftest$ac_exeext conftest.$ac_ext ;; 9179 esac 9180 fi 9181 9182 9183 CFLAGS="$xorg_testset_save_CFLAGS" 9184 9185 eval supported=\$$cacheid 9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9187 printf "%s\n" "$supported" >&6; } 9188 if test "$supported" = "yes" ; then 9189 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9190 found="yes" 9191 fi 9192 fi 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 xorg_testset_save_CFLAGS="$CFLAGS" 9209 9210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9213 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9214 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9215 then : 9216 printf %s "(cached) " >&6 9217 else case e in #( 9218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9219 /* end confdefs.h. */ 9220 int i; 9221 _ACEOF 9222 if ac_fn_c_try_compile "$LINENO" 9223 then : 9224 xorg_cv_cc_flag_unknown_warning_option=yes 9225 else case e in #( 9226 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9227 esac 9228 fi 9229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9230 esac 9231 fi 9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9233 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9235 CFLAGS="$xorg_testset_save_CFLAGS" 9236 fi 9237 9238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9241 fi 9242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9244 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9245 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9246 then : 9247 printf %s "(cached) " >&6 9248 else case e in #( 9249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9250 /* end confdefs.h. */ 9251 int i; 9252 _ACEOF 9253 if ac_fn_c_try_compile "$LINENO" 9254 then : 9255 xorg_cv_cc_flag_unused_command_line_argument=yes 9256 else case e in #( 9257 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9258 esac 9259 fi 9260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9261 esac 9262 fi 9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9264 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9266 CFLAGS="$xorg_testset_save_CFLAGS" 9267 fi 9268 9269 found="no" 9270 9271 if test $found = "no" ; then 9272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9274 fi 9275 9276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9278 fi 9279 9280 CFLAGS="$CFLAGS -Wnonnull" 9281 9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9283 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9284 cacheid=xorg_cv_cc_flag__Wnonnull 9285 if eval test \${$cacheid+y} 9286 then : 9287 printf %s "(cached) " >&6 9288 else case e in #( 9289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9290 /* end confdefs.h. */ 9291 int i; 9292 int 9293 main (void) 9294 { 9295 9296 ; 9297 return 0; 9298 } 9299 _ACEOF 9300 if ac_fn_c_try_link "$LINENO" 9301 then : 9302 eval $cacheid=yes 9303 else case e in #( 9304 e) eval $cacheid=no ;; 9305 esac 9306 fi 9307 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9308 conftest$ac_exeext conftest.$ac_ext ;; 9309 esac 9310 fi 9311 9312 9313 CFLAGS="$xorg_testset_save_CFLAGS" 9314 9315 eval supported=\$$cacheid 9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9317 printf "%s\n" "$supported" >&6; } 9318 if test "$supported" = "yes" ; then 9319 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9320 found="yes" 9321 fi 9322 fi 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 xorg_testset_save_CFLAGS="$CFLAGS" 9339 9340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9343 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9344 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9345 then : 9346 printf %s "(cached) " >&6 9347 else case e in #( 9348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9349 /* end confdefs.h. */ 9350 int i; 9351 _ACEOF 9352 if ac_fn_c_try_compile "$LINENO" 9353 then : 9354 xorg_cv_cc_flag_unknown_warning_option=yes 9355 else case e in #( 9356 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9357 esac 9358 fi 9359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9360 esac 9361 fi 9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9363 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9365 CFLAGS="$xorg_testset_save_CFLAGS" 9366 fi 9367 9368 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9371 fi 9372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9374 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9375 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9376 then : 9377 printf %s "(cached) " >&6 9378 else case e in #( 9379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9380 /* end confdefs.h. */ 9381 int i; 9382 _ACEOF 9383 if ac_fn_c_try_compile "$LINENO" 9384 then : 9385 xorg_cv_cc_flag_unused_command_line_argument=yes 9386 else case e in #( 9387 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9388 esac 9389 fi 9390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9391 esac 9392 fi 9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9394 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9396 CFLAGS="$xorg_testset_save_CFLAGS" 9397 fi 9398 9399 found="no" 9400 9401 if test $found = "no" ; then 9402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9404 fi 9405 9406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9408 fi 9409 9410 CFLAGS="$CFLAGS -Winit-self" 9411 9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9413 printf %s "checking if $CC supports -Winit-self... " >&6; } 9414 cacheid=xorg_cv_cc_flag__Winit_self 9415 if eval test \${$cacheid+y} 9416 then : 9417 printf %s "(cached) " >&6 9418 else case e in #( 9419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9420 /* end confdefs.h. */ 9421 int i; 9422 int 9423 main (void) 9424 { 9425 9426 ; 9427 return 0; 9428 } 9429 _ACEOF 9430 if ac_fn_c_try_link "$LINENO" 9431 then : 9432 eval $cacheid=yes 9433 else case e in #( 9434 e) eval $cacheid=no ;; 9435 esac 9436 fi 9437 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9438 conftest$ac_exeext conftest.$ac_ext ;; 9439 esac 9440 fi 9441 9442 9443 CFLAGS="$xorg_testset_save_CFLAGS" 9444 9445 eval supported=\$$cacheid 9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9447 printf "%s\n" "$supported" >&6; } 9448 if test "$supported" = "yes" ; then 9449 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9450 found="yes" 9451 fi 9452 fi 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 xorg_testset_save_CFLAGS="$CFLAGS" 9469 9470 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9473 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9474 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9475 then : 9476 printf %s "(cached) " >&6 9477 else case e in #( 9478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9479 /* end confdefs.h. */ 9480 int i; 9481 _ACEOF 9482 if ac_fn_c_try_compile "$LINENO" 9483 then : 9484 xorg_cv_cc_flag_unknown_warning_option=yes 9485 else case e in #( 9486 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9487 esac 9488 fi 9489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9490 esac 9491 fi 9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9493 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9495 CFLAGS="$xorg_testset_save_CFLAGS" 9496 fi 9497 9498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9501 fi 9502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9504 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9505 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9506 then : 9507 printf %s "(cached) " >&6 9508 else case e in #( 9509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9510 /* end confdefs.h. */ 9511 int i; 9512 _ACEOF 9513 if ac_fn_c_try_compile "$LINENO" 9514 then : 9515 xorg_cv_cc_flag_unused_command_line_argument=yes 9516 else case e in #( 9517 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9518 esac 9519 fi 9520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9521 esac 9522 fi 9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9524 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9525 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9526 CFLAGS="$xorg_testset_save_CFLAGS" 9527 fi 9528 9529 found="no" 9530 9531 if test $found = "no" ; then 9532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9534 fi 9535 9536 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9538 fi 9539 9540 CFLAGS="$CFLAGS -Wmain" 9541 9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9543 printf %s "checking if $CC supports -Wmain... " >&6; } 9544 cacheid=xorg_cv_cc_flag__Wmain 9545 if eval test \${$cacheid+y} 9546 then : 9547 printf %s "(cached) " >&6 9548 else case e in #( 9549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9550 /* end confdefs.h. */ 9551 int i; 9552 int 9553 main (void) 9554 { 9555 9556 ; 9557 return 0; 9558 } 9559 _ACEOF 9560 if ac_fn_c_try_link "$LINENO" 9561 then : 9562 eval $cacheid=yes 9563 else case e in #( 9564 e) eval $cacheid=no ;; 9565 esac 9566 fi 9567 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9568 conftest$ac_exeext conftest.$ac_ext ;; 9569 esac 9570 fi 9571 9572 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574 9575 eval supported=\$$cacheid 9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9577 printf "%s\n" "$supported" >&6; } 9578 if test "$supported" = "yes" ; then 9579 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9580 found="yes" 9581 fi 9582 fi 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 xorg_testset_save_CFLAGS="$CFLAGS" 9599 9600 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9603 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9604 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9605 then : 9606 printf %s "(cached) " >&6 9607 else case e in #( 9608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9609 /* end confdefs.h. */ 9610 int i; 9611 _ACEOF 9612 if ac_fn_c_try_compile "$LINENO" 9613 then : 9614 xorg_cv_cc_flag_unknown_warning_option=yes 9615 else case e in #( 9616 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9617 esac 9618 fi 9619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9620 esac 9621 fi 9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9623 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9625 CFLAGS="$xorg_testset_save_CFLAGS" 9626 fi 9627 9628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9631 fi 9632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9634 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9635 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9636 then : 9637 printf %s "(cached) " >&6 9638 else case e in #( 9639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9640 /* end confdefs.h. */ 9641 int i; 9642 _ACEOF 9643 if ac_fn_c_try_compile "$LINENO" 9644 then : 9645 xorg_cv_cc_flag_unused_command_line_argument=yes 9646 else case e in #( 9647 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9648 esac 9649 fi 9650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9651 esac 9652 fi 9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9654 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9656 CFLAGS="$xorg_testset_save_CFLAGS" 9657 fi 9658 9659 found="no" 9660 9661 if test $found = "no" ; then 9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9664 fi 9665 9666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9668 fi 9669 9670 CFLAGS="$CFLAGS -Wmissing-braces" 9671 9672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9673 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9674 cacheid=xorg_cv_cc_flag__Wmissing_braces 9675 if eval test \${$cacheid+y} 9676 then : 9677 printf %s "(cached) " >&6 9678 else case e in #( 9679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9680 /* end confdefs.h. */ 9681 int i; 9682 int 9683 main (void) 9684 { 9685 9686 ; 9687 return 0; 9688 } 9689 _ACEOF 9690 if ac_fn_c_try_link "$LINENO" 9691 then : 9692 eval $cacheid=yes 9693 else case e in #( 9694 e) eval $cacheid=no ;; 9695 esac 9696 fi 9697 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9698 conftest$ac_exeext conftest.$ac_ext ;; 9699 esac 9700 fi 9701 9702 9703 CFLAGS="$xorg_testset_save_CFLAGS" 9704 9705 eval supported=\$$cacheid 9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9707 printf "%s\n" "$supported" >&6; } 9708 if test "$supported" = "yes" ; then 9709 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9710 found="yes" 9711 fi 9712 fi 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 xorg_testset_save_CFLAGS="$CFLAGS" 9729 9730 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9733 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9734 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9735 then : 9736 printf %s "(cached) " >&6 9737 else case e in #( 9738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9739 /* end confdefs.h. */ 9740 int i; 9741 _ACEOF 9742 if ac_fn_c_try_compile "$LINENO" 9743 then : 9744 xorg_cv_cc_flag_unknown_warning_option=yes 9745 else case e in #( 9746 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9747 esac 9748 fi 9749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9750 esac 9751 fi 9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9753 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9755 CFLAGS="$xorg_testset_save_CFLAGS" 9756 fi 9757 9758 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9761 fi 9762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9764 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9765 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9766 then : 9767 printf %s "(cached) " >&6 9768 else case e in #( 9769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9770 /* end confdefs.h. */ 9771 int i; 9772 _ACEOF 9773 if ac_fn_c_try_compile "$LINENO" 9774 then : 9775 xorg_cv_cc_flag_unused_command_line_argument=yes 9776 else case e in #( 9777 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9778 esac 9779 fi 9780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9781 esac 9782 fi 9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9784 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9786 CFLAGS="$xorg_testset_save_CFLAGS" 9787 fi 9788 9789 found="no" 9790 9791 if test $found = "no" ; then 9792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9794 fi 9795 9796 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9798 fi 9799 9800 CFLAGS="$CFLAGS -Wsequence-point" 9801 9802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9803 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9804 cacheid=xorg_cv_cc_flag__Wsequence_point 9805 if eval test \${$cacheid+y} 9806 then : 9807 printf %s "(cached) " >&6 9808 else case e in #( 9809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9810 /* end confdefs.h. */ 9811 int i; 9812 int 9813 main (void) 9814 { 9815 9816 ; 9817 return 0; 9818 } 9819 _ACEOF 9820 if ac_fn_c_try_link "$LINENO" 9821 then : 9822 eval $cacheid=yes 9823 else case e in #( 9824 e) eval $cacheid=no ;; 9825 esac 9826 fi 9827 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9828 conftest$ac_exeext conftest.$ac_ext ;; 9829 esac 9830 fi 9831 9832 9833 CFLAGS="$xorg_testset_save_CFLAGS" 9834 9835 eval supported=\$$cacheid 9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9837 printf "%s\n" "$supported" >&6; } 9838 if test "$supported" = "yes" ; then 9839 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9840 found="yes" 9841 fi 9842 fi 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 xorg_testset_save_CFLAGS="$CFLAGS" 9859 9860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9863 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9864 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9865 then : 9866 printf %s "(cached) " >&6 9867 else case e in #( 9868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9869 /* end confdefs.h. */ 9870 int i; 9871 _ACEOF 9872 if ac_fn_c_try_compile "$LINENO" 9873 then : 9874 xorg_cv_cc_flag_unknown_warning_option=yes 9875 else case e in #( 9876 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9877 esac 9878 fi 9879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9880 esac 9881 fi 9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9883 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9885 CFLAGS="$xorg_testset_save_CFLAGS" 9886 fi 9887 9888 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9891 fi 9892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9894 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9895 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9896 then : 9897 printf %s "(cached) " >&6 9898 else case e in #( 9899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9900 /* end confdefs.h. */ 9901 int i; 9902 _ACEOF 9903 if ac_fn_c_try_compile "$LINENO" 9904 then : 9905 xorg_cv_cc_flag_unused_command_line_argument=yes 9906 else case e in #( 9907 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9908 esac 9909 fi 9910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9911 esac 9912 fi 9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9914 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9916 CFLAGS="$xorg_testset_save_CFLAGS" 9917 fi 9918 9919 found="no" 9920 9921 if test $found = "no" ; then 9922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9924 fi 9925 9926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9928 fi 9929 9930 CFLAGS="$CFLAGS -Wreturn-type" 9931 9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9933 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9934 cacheid=xorg_cv_cc_flag__Wreturn_type 9935 if eval test \${$cacheid+y} 9936 then : 9937 printf %s "(cached) " >&6 9938 else case e in #( 9939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9940 /* end confdefs.h. */ 9941 int i; 9942 int 9943 main (void) 9944 { 9945 9946 ; 9947 return 0; 9948 } 9949 _ACEOF 9950 if ac_fn_c_try_link "$LINENO" 9951 then : 9952 eval $cacheid=yes 9953 else case e in #( 9954 e) eval $cacheid=no ;; 9955 esac 9956 fi 9957 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9958 conftest$ac_exeext conftest.$ac_ext ;; 9959 esac 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 case e in #( 9998 e) 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 case e in #( 10006 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10007 esac 10008 fi 10009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10010 esac 10011 fi 10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10013 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10015 CFLAGS="$xorg_testset_save_CFLAGS" 10016 fi 10017 10018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10021 fi 10022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10024 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10025 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10026 then : 10027 printf %s "(cached) " >&6 10028 else case e in #( 10029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10030 /* end confdefs.h. */ 10031 int i; 10032 _ACEOF 10033 if ac_fn_c_try_compile "$LINENO" 10034 then : 10035 xorg_cv_cc_flag_unused_command_line_argument=yes 10036 else case e in #( 10037 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10038 esac 10039 fi 10040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10041 esac 10042 fi 10043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10044 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10046 CFLAGS="$xorg_testset_save_CFLAGS" 10047 fi 10048 10049 found="no" 10050 10051 if test $found = "no" ; then 10052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10054 fi 10055 10056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10058 fi 10059 10060 CFLAGS="$CFLAGS -Wtrigraphs" 10061 10062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10063 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10064 cacheid=xorg_cv_cc_flag__Wtrigraphs 10065 if eval test \${$cacheid+y} 10066 then : 10067 printf %s "(cached) " >&6 10068 else case e in #( 10069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10070 /* end confdefs.h. */ 10071 int i; 10072 int 10073 main (void) 10074 { 10075 10076 ; 10077 return 0; 10078 } 10079 _ACEOF 10080 if ac_fn_c_try_link "$LINENO" 10081 then : 10082 eval $cacheid=yes 10083 else case e in #( 10084 e) eval $cacheid=no ;; 10085 esac 10086 fi 10087 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10088 conftest$ac_exeext conftest.$ac_ext ;; 10089 esac 10090 fi 10091 10092 10093 CFLAGS="$xorg_testset_save_CFLAGS" 10094 10095 eval supported=\$$cacheid 10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10097 printf "%s\n" "$supported" >&6; } 10098 if test "$supported" = "yes" ; then 10099 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10100 found="yes" 10101 fi 10102 fi 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 xorg_testset_save_CFLAGS="$CFLAGS" 10119 10120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10123 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10124 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10125 then : 10126 printf %s "(cached) " >&6 10127 else case e in #( 10128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10129 /* end confdefs.h. */ 10130 int i; 10131 _ACEOF 10132 if ac_fn_c_try_compile "$LINENO" 10133 then : 10134 xorg_cv_cc_flag_unknown_warning_option=yes 10135 else case e in #( 10136 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10137 esac 10138 fi 10139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10140 esac 10141 fi 10142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10143 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10145 CFLAGS="$xorg_testset_save_CFLAGS" 10146 fi 10147 10148 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10151 fi 10152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10154 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10155 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10156 then : 10157 printf %s "(cached) " >&6 10158 else case e in #( 10159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10160 /* end confdefs.h. */ 10161 int i; 10162 _ACEOF 10163 if ac_fn_c_try_compile "$LINENO" 10164 then : 10165 xorg_cv_cc_flag_unused_command_line_argument=yes 10166 else case e in #( 10167 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10168 esac 10169 fi 10170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10171 esac 10172 fi 10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10174 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10176 CFLAGS="$xorg_testset_save_CFLAGS" 10177 fi 10178 10179 found="no" 10180 10181 if test $found = "no" ; then 10182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10184 fi 10185 10186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10188 fi 10189 10190 CFLAGS="$CFLAGS -Warray-bounds" 10191 10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10193 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10194 cacheid=xorg_cv_cc_flag__Warray_bounds 10195 if eval test \${$cacheid+y} 10196 then : 10197 printf %s "(cached) " >&6 10198 else case e in #( 10199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10200 /* end confdefs.h. */ 10201 int i; 10202 int 10203 main (void) 10204 { 10205 10206 ; 10207 return 0; 10208 } 10209 _ACEOF 10210 if ac_fn_c_try_link "$LINENO" 10211 then : 10212 eval $cacheid=yes 10213 else case e in #( 10214 e) eval $cacheid=no ;; 10215 esac 10216 fi 10217 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10218 conftest$ac_exeext conftest.$ac_ext ;; 10219 esac 10220 fi 10221 10222 10223 CFLAGS="$xorg_testset_save_CFLAGS" 10224 10225 eval supported=\$$cacheid 10226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10227 printf "%s\n" "$supported" >&6; } 10228 if test "$supported" = "yes" ; then 10229 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10230 found="yes" 10231 fi 10232 fi 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 xorg_testset_save_CFLAGS="$CFLAGS" 10249 10250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10253 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10254 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10255 then : 10256 printf %s "(cached) " >&6 10257 else case e in #( 10258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10259 /* end confdefs.h. */ 10260 int i; 10261 _ACEOF 10262 if ac_fn_c_try_compile "$LINENO" 10263 then : 10264 xorg_cv_cc_flag_unknown_warning_option=yes 10265 else case e in #( 10266 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10267 esac 10268 fi 10269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10270 esac 10271 fi 10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10273 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10275 CFLAGS="$xorg_testset_save_CFLAGS" 10276 fi 10277 10278 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10281 fi 10282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10284 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10285 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10286 then : 10287 printf %s "(cached) " >&6 10288 else case e in #( 10289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10290 /* end confdefs.h. */ 10291 int i; 10292 _ACEOF 10293 if ac_fn_c_try_compile "$LINENO" 10294 then : 10295 xorg_cv_cc_flag_unused_command_line_argument=yes 10296 else case e in #( 10297 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10298 esac 10299 fi 10300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10301 esac 10302 fi 10303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10304 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10306 CFLAGS="$xorg_testset_save_CFLAGS" 10307 fi 10308 10309 found="no" 10310 10311 if test $found = "no" ; then 10312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10314 fi 10315 10316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10318 fi 10319 10320 CFLAGS="$CFLAGS -Wwrite-strings" 10321 10322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10323 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10324 cacheid=xorg_cv_cc_flag__Wwrite_strings 10325 if eval test \${$cacheid+y} 10326 then : 10327 printf %s "(cached) " >&6 10328 else case e in #( 10329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10330 /* end confdefs.h. */ 10331 int i; 10332 int 10333 main (void) 10334 { 10335 10336 ; 10337 return 0; 10338 } 10339 _ACEOF 10340 if ac_fn_c_try_link "$LINENO" 10341 then : 10342 eval $cacheid=yes 10343 else case e in #( 10344 e) eval $cacheid=no ;; 10345 esac 10346 fi 10347 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10348 conftest$ac_exeext conftest.$ac_ext ;; 10349 esac 10350 fi 10351 10352 10353 CFLAGS="$xorg_testset_save_CFLAGS" 10354 10355 eval supported=\$$cacheid 10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10357 printf "%s\n" "$supported" >&6; } 10358 if test "$supported" = "yes" ; then 10359 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10360 found="yes" 10361 fi 10362 fi 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 xorg_testset_save_CFLAGS="$CFLAGS" 10379 10380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10383 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10384 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10385 then : 10386 printf %s "(cached) " >&6 10387 else case e in #( 10388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389 /* end confdefs.h. */ 10390 int i; 10391 _ACEOF 10392 if ac_fn_c_try_compile "$LINENO" 10393 then : 10394 xorg_cv_cc_flag_unknown_warning_option=yes 10395 else case e in #( 10396 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10397 esac 10398 fi 10399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10400 esac 10401 fi 10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10403 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10405 CFLAGS="$xorg_testset_save_CFLAGS" 10406 fi 10407 10408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10411 fi 10412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10414 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10415 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10416 then : 10417 printf %s "(cached) " >&6 10418 else case e in #( 10419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10420 /* end confdefs.h. */ 10421 int i; 10422 _ACEOF 10423 if ac_fn_c_try_compile "$LINENO" 10424 then : 10425 xorg_cv_cc_flag_unused_command_line_argument=yes 10426 else case e in #( 10427 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10428 esac 10429 fi 10430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10431 esac 10432 fi 10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10434 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10436 CFLAGS="$xorg_testset_save_CFLAGS" 10437 fi 10438 10439 found="no" 10440 10441 if test $found = "no" ; then 10442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10444 fi 10445 10446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10448 fi 10449 10450 CFLAGS="$CFLAGS -Waddress" 10451 10452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10453 printf %s "checking if $CC supports -Waddress... " >&6; } 10454 cacheid=xorg_cv_cc_flag__Waddress 10455 if eval test \${$cacheid+y} 10456 then : 10457 printf %s "(cached) " >&6 10458 else case e in #( 10459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10460 /* end confdefs.h. */ 10461 int i; 10462 int 10463 main (void) 10464 { 10465 10466 ; 10467 return 0; 10468 } 10469 _ACEOF 10470 if ac_fn_c_try_link "$LINENO" 10471 then : 10472 eval $cacheid=yes 10473 else case e in #( 10474 e) eval $cacheid=no ;; 10475 esac 10476 fi 10477 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10478 conftest$ac_exeext conftest.$ac_ext ;; 10479 esac 10480 fi 10481 10482 10483 CFLAGS="$xorg_testset_save_CFLAGS" 10484 10485 eval supported=\$$cacheid 10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10487 printf "%s\n" "$supported" >&6; } 10488 if test "$supported" = "yes" ; then 10489 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10490 found="yes" 10491 fi 10492 fi 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 xorg_testset_save_CFLAGS="$CFLAGS" 10509 10510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10513 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10514 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10515 then : 10516 printf %s "(cached) " >&6 10517 else case e in #( 10518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10519 /* end confdefs.h. */ 10520 int i; 10521 _ACEOF 10522 if ac_fn_c_try_compile "$LINENO" 10523 then : 10524 xorg_cv_cc_flag_unknown_warning_option=yes 10525 else case e in #( 10526 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10527 esac 10528 fi 10529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10530 esac 10531 fi 10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10533 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10535 CFLAGS="$xorg_testset_save_CFLAGS" 10536 fi 10537 10538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10541 fi 10542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10544 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10545 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10546 then : 10547 printf %s "(cached) " >&6 10548 else case e in #( 10549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10550 /* end confdefs.h. */ 10551 int i; 10552 _ACEOF 10553 if ac_fn_c_try_compile "$LINENO" 10554 then : 10555 xorg_cv_cc_flag_unused_command_line_argument=yes 10556 else case e in #( 10557 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10558 esac 10559 fi 10560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10561 esac 10562 fi 10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10564 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10566 CFLAGS="$xorg_testset_save_CFLAGS" 10567 fi 10568 10569 found="no" 10570 10571 if test $found = "no" ; then 10572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10574 fi 10575 10576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10578 fi 10579 10580 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10581 10582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10583 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10584 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10585 if eval test \${$cacheid+y} 10586 then : 10587 printf %s "(cached) " >&6 10588 else case e in #( 10589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10590 /* end confdefs.h. */ 10591 int i; 10592 int 10593 main (void) 10594 { 10595 10596 ; 10597 return 0; 10598 } 10599 _ACEOF 10600 if ac_fn_c_try_link "$LINENO" 10601 then : 10602 eval $cacheid=yes 10603 else case e in #( 10604 e) eval $cacheid=no ;; 10605 esac 10606 fi 10607 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10608 conftest$ac_exeext conftest.$ac_ext ;; 10609 esac 10610 fi 10611 10612 10613 CFLAGS="$xorg_testset_save_CFLAGS" 10614 10615 eval supported=\$$cacheid 10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10617 printf "%s\n" "$supported" >&6; } 10618 if test "$supported" = "yes" ; then 10619 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10620 found="yes" 10621 fi 10622 fi 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 xorg_testset_save_CFLAGS="$CFLAGS" 10639 10640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10643 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10644 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10645 then : 10646 printf %s "(cached) " >&6 10647 else case e in #( 10648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10649 /* end confdefs.h. */ 10650 int i; 10651 _ACEOF 10652 if ac_fn_c_try_compile "$LINENO" 10653 then : 10654 xorg_cv_cc_flag_unknown_warning_option=yes 10655 else case e in #( 10656 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10657 esac 10658 fi 10659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10660 esac 10661 fi 10662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10663 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10665 CFLAGS="$xorg_testset_save_CFLAGS" 10666 fi 10667 10668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10671 fi 10672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10674 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10675 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10676 then : 10677 printf %s "(cached) " >&6 10678 else case e in #( 10679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10680 /* end confdefs.h. */ 10681 int i; 10682 _ACEOF 10683 if ac_fn_c_try_compile "$LINENO" 10684 then : 10685 xorg_cv_cc_flag_unused_command_line_argument=yes 10686 else case e in #( 10687 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10688 esac 10689 fi 10690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10691 esac 10692 fi 10693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10694 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10696 CFLAGS="$xorg_testset_save_CFLAGS" 10697 fi 10698 10699 found="no" 10700 10701 if test $found = "no" ; then 10702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10704 fi 10705 10706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10708 fi 10709 10710 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10711 10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10713 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10714 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10715 if eval test \${$cacheid+y} 10716 then : 10717 printf %s "(cached) " >&6 10718 else case e in #( 10719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10720 /* end confdefs.h. */ 10721 int i; 10722 int 10723 main (void) 10724 { 10725 10726 ; 10727 return 0; 10728 } 10729 _ACEOF 10730 if ac_fn_c_try_link "$LINENO" 10731 then : 10732 eval $cacheid=yes 10733 else case e in #( 10734 e) eval $cacheid=no ;; 10735 esac 10736 fi 10737 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10738 conftest$ac_exeext conftest.$ac_ext ;; 10739 esac 10740 fi 10741 10742 10743 CFLAGS="$xorg_testset_save_CFLAGS" 10744 10745 eval supported=\$$cacheid 10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10747 printf "%s\n" "$supported" >&6; } 10748 if test "$supported" = "yes" ; then 10749 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10750 found="yes" 10751 fi 10752 fi 10753 10754 10755 fi 10756 10757 10758 10759 10760 10761 10762 10763 CWARNFLAGS="$BASE_CFLAGS" 10764 if test "x$GCC" = xyes ; then 10765 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10766 fi 10767 10768 10769 10770 10771 10772 10773 10774 10775 # Check whether --enable-strict-compilation was given. 10776 if test ${enable_strict_compilation+y} 10777 then : 10778 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10779 else case e in #( 10780 e) STRICT_COMPILE=no ;; 10781 esac 10782 fi 10783 10784 10785 10786 10787 10788 10789 STRICT_CFLAGS="" 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 xorg_testset_save_CFLAGS="$CFLAGS" 10804 10805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10808 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10809 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10810 then : 10811 printf %s "(cached) " >&6 10812 else case e in #( 10813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10814 /* end confdefs.h. */ 10815 int i; 10816 _ACEOF 10817 if ac_fn_c_try_compile "$LINENO" 10818 then : 10819 xorg_cv_cc_flag_unknown_warning_option=yes 10820 else case e in #( 10821 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10822 esac 10823 fi 10824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10825 esac 10826 fi 10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10828 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10830 CFLAGS="$xorg_testset_save_CFLAGS" 10831 fi 10832 10833 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10836 fi 10837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10839 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10840 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10841 then : 10842 printf %s "(cached) " >&6 10843 else case e in #( 10844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10845 /* end confdefs.h. */ 10846 int i; 10847 _ACEOF 10848 if ac_fn_c_try_compile "$LINENO" 10849 then : 10850 xorg_cv_cc_flag_unused_command_line_argument=yes 10851 else case e in #( 10852 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10853 esac 10854 fi 10855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10856 esac 10857 fi 10858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10859 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10861 CFLAGS="$xorg_testset_save_CFLAGS" 10862 fi 10863 10864 found="no" 10865 10866 if test $found = "no" ; then 10867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10869 fi 10870 10871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10873 fi 10874 10875 CFLAGS="$CFLAGS -pedantic" 10876 10877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10878 printf %s "checking if $CC supports -pedantic... " >&6; } 10879 cacheid=xorg_cv_cc_flag__pedantic 10880 if eval test \${$cacheid+y} 10881 then : 10882 printf %s "(cached) " >&6 10883 else case e in #( 10884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10885 /* end confdefs.h. */ 10886 int i; 10887 int 10888 main (void) 10889 { 10890 10891 ; 10892 return 0; 10893 } 10894 _ACEOF 10895 if ac_fn_c_try_link "$LINENO" 10896 then : 10897 eval $cacheid=yes 10898 else case e in #( 10899 e) eval $cacheid=no ;; 10900 esac 10901 fi 10902 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10903 conftest$ac_exeext conftest.$ac_ext ;; 10904 esac 10905 fi 10906 10907 10908 CFLAGS="$xorg_testset_save_CFLAGS" 10909 10910 eval supported=\$$cacheid 10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10912 printf "%s\n" "$supported" >&6; } 10913 if test "$supported" = "yes" ; then 10914 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10915 found="yes" 10916 fi 10917 fi 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 xorg_testset_save_CFLAGS="$CFLAGS" 10934 10935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10938 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10939 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10940 then : 10941 printf %s "(cached) " >&6 10942 else case e in #( 10943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10944 /* end confdefs.h. */ 10945 int i; 10946 _ACEOF 10947 if ac_fn_c_try_compile "$LINENO" 10948 then : 10949 xorg_cv_cc_flag_unknown_warning_option=yes 10950 else case e in #( 10951 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10952 esac 10953 fi 10954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10955 esac 10956 fi 10957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10958 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10960 CFLAGS="$xorg_testset_save_CFLAGS" 10961 fi 10962 10963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10966 fi 10967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10969 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10970 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10971 then : 10972 printf %s "(cached) " >&6 10973 else case e in #( 10974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10975 /* end confdefs.h. */ 10976 int i; 10977 _ACEOF 10978 if ac_fn_c_try_compile "$LINENO" 10979 then : 10980 xorg_cv_cc_flag_unused_command_line_argument=yes 10981 else case e in #( 10982 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10983 esac 10984 fi 10985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10986 esac 10987 fi 10988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10989 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10991 CFLAGS="$xorg_testset_save_CFLAGS" 10992 fi 10993 10994 found="no" 10995 10996 if test $found = "no" ; then 10997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10999 fi 11000 11001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11003 fi 11004 11005 CFLAGS="$CFLAGS -Werror" 11006 11007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11008 printf %s "checking if $CC supports -Werror... " >&6; } 11009 cacheid=xorg_cv_cc_flag__Werror 11010 if eval test \${$cacheid+y} 11011 then : 11012 printf %s "(cached) " >&6 11013 else case e in #( 11014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11015 /* end confdefs.h. */ 11016 int i; 11017 int 11018 main (void) 11019 { 11020 11021 ; 11022 return 0; 11023 } 11024 _ACEOF 11025 if ac_fn_c_try_link "$LINENO" 11026 then : 11027 eval $cacheid=yes 11028 else case e in #( 11029 e) eval $cacheid=no ;; 11030 esac 11031 fi 11032 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11033 conftest$ac_exeext conftest.$ac_ext ;; 11034 esac 11035 fi 11036 11037 11038 CFLAGS="$xorg_testset_save_CFLAGS" 11039 11040 eval supported=\$$cacheid 11041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11042 printf "%s\n" "$supported" >&6; } 11043 if test "$supported" = "yes" ; then 11044 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11045 found="yes" 11046 fi 11047 fi 11048 11049 if test $found = "no" ; then 11050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11052 fi 11053 11054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11056 fi 11057 11058 CFLAGS="$CFLAGS -errwarn" 11059 11060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11061 printf %s "checking if $CC supports -errwarn... " >&6; } 11062 cacheid=xorg_cv_cc_flag__errwarn 11063 if eval test \${$cacheid+y} 11064 then : 11065 printf %s "(cached) " >&6 11066 else case e in #( 11067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11068 /* end confdefs.h. */ 11069 int i; 11070 int 11071 main (void) 11072 { 11073 11074 ; 11075 return 0; 11076 } 11077 _ACEOF 11078 if ac_fn_c_try_link "$LINENO" 11079 then : 11080 eval $cacheid=yes 11081 else case e in #( 11082 e) eval $cacheid=no ;; 11083 esac 11084 fi 11085 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11086 conftest$ac_exeext conftest.$ac_ext ;; 11087 esac 11088 fi 11089 11090 11091 CFLAGS="$xorg_testset_save_CFLAGS" 11092 11093 eval supported=\$$cacheid 11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11095 printf "%s\n" "$supported" >&6; } 11096 if test "$supported" = "yes" ; then 11097 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11098 found="yes" 11099 fi 11100 fi 11101 11102 11103 11104 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11105 # activate it with -Werror, so we add it here explicitly. 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 xorg_testset_save_CFLAGS="$CFLAGS" 11120 11121 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11124 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11125 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11126 then : 11127 printf %s "(cached) " >&6 11128 else case e in #( 11129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11130 /* end confdefs.h. */ 11131 int i; 11132 _ACEOF 11133 if ac_fn_c_try_compile "$LINENO" 11134 then : 11135 xorg_cv_cc_flag_unknown_warning_option=yes 11136 else case e in #( 11137 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11138 esac 11139 fi 11140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11141 esac 11142 fi 11143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11144 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11146 CFLAGS="$xorg_testset_save_CFLAGS" 11147 fi 11148 11149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11152 fi 11153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11155 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11156 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11157 then : 11158 printf %s "(cached) " >&6 11159 else case e in #( 11160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11161 /* end confdefs.h. */ 11162 int i; 11163 _ACEOF 11164 if ac_fn_c_try_compile "$LINENO" 11165 then : 11166 xorg_cv_cc_flag_unused_command_line_argument=yes 11167 else case e in #( 11168 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11169 esac 11170 fi 11171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11172 esac 11173 fi 11174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11175 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11177 CFLAGS="$xorg_testset_save_CFLAGS" 11178 fi 11179 11180 found="no" 11181 11182 if test $found = "no" ; then 11183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11185 fi 11186 11187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11189 fi 11190 11191 CFLAGS="$CFLAGS -Werror=attributes" 11192 11193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11194 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11195 cacheid=xorg_cv_cc_flag__Werror_attributes 11196 if eval test \${$cacheid+y} 11197 then : 11198 printf %s "(cached) " >&6 11199 else case e in #( 11200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11201 /* end confdefs.h. */ 11202 int i; 11203 int 11204 main (void) 11205 { 11206 11207 ; 11208 return 0; 11209 } 11210 _ACEOF 11211 if ac_fn_c_try_link "$LINENO" 11212 then : 11213 eval $cacheid=yes 11214 else case e in #( 11215 e) eval $cacheid=no ;; 11216 esac 11217 fi 11218 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11219 conftest$ac_exeext conftest.$ac_ext ;; 11220 esac 11221 fi 11222 11223 11224 CFLAGS="$xorg_testset_save_CFLAGS" 11225 11226 eval supported=\$$cacheid 11227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11228 printf "%s\n" "$supported" >&6; } 11229 if test "$supported" = "yes" ; then 11230 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11231 found="yes" 11232 fi 11233 fi 11234 11235 11236 11237 if test "x$STRICT_COMPILE" = "xyes"; then 11238 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11239 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11240 fi 11241 11242 11243 11244 11245 11246 11247 11248 11249 cat >>confdefs.h <<_ACEOF 11250 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11251 _ACEOF 11252 11253 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11254 if test "x$PVM" = "x"; then 11255 PVM="0" 11256 fi 11257 11258 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11259 11260 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11261 if test "x$PVP" = "x"; then 11262 PVP="0" 11263 fi 11264 11265 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11266 11267 11268 11269 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11270 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11271 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11272 touch \$(top_srcdir)/ChangeLog; \ 11273 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11274 11275 11276 11277 11278 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11279 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11280 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11281 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11282 touch \$(top_srcdir)/INSTALL; \ 11283 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11284 11285 11286 11287 11288 11289 11290 case $host_os in 11291 solaris*) 11292 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11293 # check for a man page file found in later versions that use 11294 # traditional section numbers instead 11295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11296 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11297 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11298 then : 11299 printf %s "(cached) " >&6 11300 else case e in #( 11301 e) test "$cross_compiling" = yes && 11302 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11303 if test -r "/usr/share/man/man7/attributes.7"; then 11304 ac_cv_file__usr_share_man_man7_attributes_7=yes 11305 else 11306 ac_cv_file__usr_share_man_man7_attributes_7=no 11307 fi ;; 11308 esac 11309 fi 11310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11311 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11312 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11313 then : 11314 SYSV_MAN_SECTIONS=false 11315 else case e in #( 11316 e) SYSV_MAN_SECTIONS=true ;; 11317 esac 11318 fi 11319 11320 ;; 11321 *) SYSV_MAN_SECTIONS=false ;; 11322 esac 11323 11324 if test x$APP_MAN_SUFFIX = x ; then 11325 APP_MAN_SUFFIX=1 11326 fi 11327 if test x$APP_MAN_DIR = x ; then 11328 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11329 fi 11330 11331 if test x$LIB_MAN_SUFFIX = x ; then 11332 LIB_MAN_SUFFIX=3 11333 fi 11334 if test x$LIB_MAN_DIR = x ; then 11335 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11336 fi 11337 11338 if test x$FILE_MAN_SUFFIX = x ; then 11339 case $SYSV_MAN_SECTIONS in 11340 true) FILE_MAN_SUFFIX=4 ;; 11341 *) FILE_MAN_SUFFIX=5 ;; 11342 esac 11343 fi 11344 if test x$FILE_MAN_DIR = x ; then 11345 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11346 fi 11347 11348 if test x$MISC_MAN_SUFFIX = x ; then 11349 case $SYSV_MAN_SECTIONS in 11350 true) MISC_MAN_SUFFIX=5 ;; 11351 *) MISC_MAN_SUFFIX=7 ;; 11352 esac 11353 fi 11354 if test x$MISC_MAN_DIR = x ; then 11355 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11356 fi 11357 11358 if test x$DRIVER_MAN_SUFFIX = x ; then 11359 case $SYSV_MAN_SECTIONS in 11360 true) DRIVER_MAN_SUFFIX=7 ;; 11361 *) DRIVER_MAN_SUFFIX=4 ;; 11362 esac 11363 fi 11364 if test x$DRIVER_MAN_DIR = x ; then 11365 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11366 fi 11367 11368 if test x$ADMIN_MAN_SUFFIX = x ; then 11369 case $SYSV_MAN_SECTIONS in 11370 true) ADMIN_MAN_SUFFIX=1m ;; 11371 *) ADMIN_MAN_SUFFIX=8 ;; 11372 esac 11373 fi 11374 if test x$ADMIN_MAN_DIR = x ; then 11375 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11376 fi 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 XORG_MAN_PAGE="X Version 11" 11393 11394 MAN_SUBSTS="\ 11395 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11396 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11397 -e 's|__xservername__|Xorg|g' \ 11398 -e 's|__xconfigfile__|xorg.conf|g' \ 11399 -e 's|__projectroot__|\$(prefix)|g' \ 11400 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11401 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11402 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11403 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11404 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11405 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11406 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11407 11408 11409 11410 # Check whether --enable-silent-rules was given. 11411 if test ${enable_silent_rules+y} 11412 then : 11413 enableval=$enable_silent_rules; 11414 fi 11415 11416 case $enable_silent_rules in # ((( 11417 yes) AM_DEFAULT_VERBOSITY=0;; 11418 no) AM_DEFAULT_VERBOSITY=1;; 11419 *) AM_DEFAULT_VERBOSITY=0;; 11420 esac 11421 am_make=${MAKE-make} 11422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11423 printf %s "checking whether $am_make supports nested variables... " >&6; } 11424 if test ${am_cv_make_support_nested_variables+y} 11425 then : 11426 printf %s "(cached) " >&6 11427 else case e in #( 11428 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11429 BAR0=false 11430 BAR1=true 11431 V=1 11432 am__doit: 11433 @$(TRUE) 11434 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11435 am_cv_make_support_nested_variables=yes 11436 else 11437 am_cv_make_support_nested_variables=no 11438 fi ;; 11439 esac 11440 fi 11441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11442 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11443 if test $am_cv_make_support_nested_variables = yes; then 11444 AM_V='$(V)' 11445 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11446 else 11447 AM_V=$AM_DEFAULT_VERBOSITY 11448 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11449 fi 11450 AM_BACKSLASH='\' 11451 11452 11453 11454 11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 11456 printf %s "checking for floor in -lm... " >&6; } 11457 if test ${ac_cv_lib_m_floor+y} 11458 then : 11459 printf %s "(cached) " >&6 11460 else case e in #( 11461 e) ac_check_lib_save_LIBS=$LIBS 11462 LIBS="-lm $LIBS" 11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11464 /* end confdefs.h. */ 11465 11466 /* Override any GCC internal prototype to avoid an error. 11467 Use char because int might match the return type of a GCC 11468 builtin and then its argument prototype would still apply. 11469 The 'extern "C"' is for builds by C++ compilers; 11470 although this is not generally supported in C code supporting it here 11471 has little cost and some practical benefit (sr 110532). */ 11472 #ifdef __cplusplus 11473 extern "C" 11474 #endif 11475 char floor (void); 11476 int 11477 main (void) 11478 { 11479 return floor (); 11480 ; 11481 return 0; 11482 } 11483 _ACEOF 11484 if ac_fn_c_try_link "$LINENO" 11485 then : 11486 ac_cv_lib_m_floor=yes 11487 else case e in #( 11488 e) ac_cv_lib_m_floor=no ;; 11489 esac 11490 fi 11491 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11492 conftest$ac_exeext conftest.$ac_ext 11493 LIBS=$ac_check_lib_save_LIBS ;; 11494 esac 11495 fi 11496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 11497 printf "%s\n" "$ac_cv_lib_m_floor" >&6; } 11498 if test "x$ac_cv_lib_m_floor" = xyes 11499 then : 11500 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 11501 11502 LIBS="-lm $LIBS" 11503 11504 fi 11505 11506 11507 # Checks for pkg-config packages 11508 11509 pkg_failed=no 11510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrandr >= 1.5 xrender x11 xproto >= 7.0.17" >&5 11511 printf %s "checking for xrandr >= 1.5 xrender x11 xproto >= 7.0.17... " >&6; } 11512 11513 if test -n "$XRANDR_CFLAGS"; then 11514 pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS" 11515 elif test -n "$PKG_CONFIG"; then 11516 if test -n "$PKG_CONFIG" && \ 11517 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.5 xrender x11 xproto >= 7.0.17\""; } >&5 11518 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.5 xrender x11 xproto >= 7.0.17") 2>&5 11519 ac_status=$? 11520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11521 test $ac_status = 0; }; then 11522 pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.5 xrender x11 xproto >= 7.0.17" 2>/dev/null` 11523 test "x$?" != "x0" && pkg_failed=yes 11524 else 11525 pkg_failed=yes 11526 fi 11527 else 11528 pkg_failed=untried 11529 fi 11530 if test -n "$XRANDR_LIBS"; then 11531 pkg_cv_XRANDR_LIBS="$XRANDR_LIBS" 11532 elif test -n "$PKG_CONFIG"; then 11533 if test -n "$PKG_CONFIG" && \ 11534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.5 xrender x11 xproto >= 7.0.17\""; } >&5 11535 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.5 xrender x11 xproto >= 7.0.17") 2>&5 11536 ac_status=$? 11537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11538 test $ac_status = 0; }; then 11539 pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.5 xrender x11 xproto >= 7.0.17" 2>/dev/null` 11540 test "x$?" != "x0" && pkg_failed=yes 11541 else 11542 pkg_failed=yes 11543 fi 11544 else 11545 pkg_failed=untried 11546 fi 11547 11548 11549 11550 if test $pkg_failed = yes; then 11551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11552 printf "%s\n" "no" >&6; } 11553 11554 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11555 _pkg_short_errors_supported=yes 11556 else 11557 _pkg_short_errors_supported=no 11558 fi 11559 if test $_pkg_short_errors_supported = yes; then 11560 XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.5 xrender x11 xproto >= 7.0.17" 2>&1` 11561 else 11562 XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.5 xrender x11 xproto >= 7.0.17" 2>&1` 11563 fi 11564 # Put the nasty error message in config.log where it belongs 11565 echo "$XRANDR_PKG_ERRORS" >&5 11566 11567 as_fn_error $? "Package requirements (xrandr >= 1.5 xrender x11 xproto >= 7.0.17) were not met: 11568 11569 $XRANDR_PKG_ERRORS 11570 11571 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11572 installed software in a non-standard prefix. 11573 11574 Alternatively, you may set the environment variables XRANDR_CFLAGS 11575 and XRANDR_LIBS to avoid the need to call pkg-config. 11576 See the pkg-config man page for more details." "$LINENO" 5 11577 elif test $pkg_failed = untried; then 11578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11579 printf "%s\n" "no" >&6; } 11580 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11581 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11582 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11583 is in your PATH or set the PKG_CONFIG environment variable to the full 11584 path to pkg-config. 11585 11586 Alternatively, you may set the environment variables XRANDR_CFLAGS 11587 and XRANDR_LIBS to avoid the need to call pkg-config. 11588 See the pkg-config man page for more details. 11589 11590 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11591 See 'config.log' for more details" "$LINENO" 5; } 11592 else 11593 XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS 11594 XRANDR_LIBS=$pkg_cv_XRANDR_LIBS 11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11596 printf "%s\n" "yes" >&6; } 11597 11598 fi 11599 11600 ac_config_files="$ac_config_files Makefile man/Makefile" 11601 11602 cat >confcache <<\_ACEOF 11603 # This file is a shell script that caches the results of configure 11604 # tests run on this system so they can be shared between configure 11605 # scripts and configure runs, see configure's option --config-cache. 11606 # It is not useful on other systems. If it contains results you don't 11607 # want to keep, you may remove or edit it. 11608 # 11609 # config.status only pays attention to the cache file if you give it 11610 # the --recheck option to rerun configure. 11611 # 11612 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 11613 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 11614 # following values. 11615 11616 _ACEOF 11617 11618 # The following way of writing the cache mishandles newlines in values, 11619 # but we know of no workaround that is simple, portable, and efficient. 11620 # So, we kill variables containing newlines. 11621 # Ultrix sh set writes to stderr and can't be redirected directly, 11622 # and sets the high bit in the cache file unless we assign to the vars. 11623 ( 11624 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11625 eval ac_val=\$$ac_var 11626 case $ac_val in #( 11627 *${as_nl}*) 11628 case $ac_var in #( 11629 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11630 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11631 esac 11632 case $ac_var in #( 11633 _ | IFS | as_nl) ;; #( 11634 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11635 *) { eval $ac_var=; unset $ac_var;} ;; 11636 esac ;; 11637 esac 11638 done 11639 11640 (set) 2>&1 | 11641 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11642 *${as_nl}ac_space=\ *) 11643 # 'set' does not quote correctly, so add quotes: double-quote 11644 # substitution turns \\\\ into \\, and sed turns \\ into \. 11645 sed -n \ 11646 "s/'/'\\\\''/g; 11647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11648 ;; #( 11649 *) 11650 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11652 ;; 11653 esac | 11654 sort 11655 ) | 11656 sed ' 11657 /^ac_cv_env_/b end 11658 t clear 11659 :clear 11660 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11661 t end 11662 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11663 :end' >>confcache 11664 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11665 if test -w "$cache_file"; then 11666 if test "x$cache_file" != "x/dev/null"; then 11667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11668 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11669 if test ! -f "$cache_file" || test -h "$cache_file"; then 11670 cat confcache >"$cache_file" 11671 else 11672 case $cache_file in #( 11673 */* | ?:*) 11674 mv -f confcache "$cache_file"$$ && 11675 mv -f "$cache_file"$$ "$cache_file" ;; #( 11676 *) 11677 mv -f confcache "$cache_file" ;; 11678 esac 11679 fi 11680 fi 11681 else 11682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11683 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11684 fi 11685 fi 11686 rm -f confcache 11687 11688 test "x$prefix" = xNONE && prefix=$ac_default_prefix 11689 # Let make expand exec_prefix. 11690 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11691 11692 DEFS=-DHAVE_CONFIG_H 11693 11694 ac_libobjs= 11695 ac_ltlibobjs= 11696 U= 11697 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11698 # 1. Remove the extension, and $U if already installed. 11699 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11700 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11701 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11702 # will be set to the directory where LIBOBJS objects are built. 11703 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11704 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11705 done 11706 LIBOBJS=$ac_libobjs 11707 11708 LTLIBOBJS=$ac_ltlibobjs 11709 11710 11711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11712 printf %s "checking that generated files are newer than configure... " >&6; } 11713 if test -n "$am_sleep_pid"; then 11714 # Hide warnings about reused PIDs. 11715 wait $am_sleep_pid 2>/dev/null 11716 fi 11717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11718 printf "%s\n" "done" >&6; } 11719 if test -n "$EXEEXT"; then 11720 am__EXEEXT_TRUE= 11721 am__EXEEXT_FALSE='#' 11722 else 11723 am__EXEEXT_TRUE='#' 11724 am__EXEEXT_FALSE= 11725 fi 11726 11727 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11728 as_fn_error $? "conditional \"AMDEP\" was never defined. 11729 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11730 fi 11731 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11732 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11733 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11734 fi 11735 11736 : "${CONFIG_STATUS=./config.status}" 11737 ac_write_fail=0 11738 ac_clean_files_save=$ac_clean_files 11739 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11741 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11742 as_write_fail=0 11743 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11744 #! $SHELL 11745 # Generated by $as_me. 11746 # Run this file to recreate the current configuration. 11747 # Compiler output produced by configure, useful for debugging 11748 # configure, is in config.log if it exists. 11749 11750 debug=false 11751 ac_cs_recheck=false 11752 ac_cs_silent=false 11753 11754 SHELL=\${CONFIG_SHELL-$SHELL} 11755 export SHELL 11756 _ASEOF 11757 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11758 ## -------------------- ## 11759 ## M4sh Initialization. ## 11760 ## -------------------- ## 11761 11762 # Be more Bourne compatible 11763 DUALCASE=1; export DUALCASE # for MKS sh 11764 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11765 then : 11766 emulate sh 11767 NULLCMD=: 11768 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11769 # is contrary to our usage. Disable this feature. 11770 alias -g '${1+"$@"}'='"$@"' 11771 setopt NO_GLOB_SUBST 11772 else case e in #( 11773 e) case `(set -o) 2>/dev/null` in #( 11774 *posix*) : 11775 set -o posix ;; #( 11776 *) : 11777 ;; 11778 esac ;; 11779 esac 11780 fi 11781 11782 11783 11784 # Reset variables that may have inherited troublesome values from 11785 # the environment. 11786 11787 # IFS needs to be set, to space, tab, and newline, in precisely that order. 11788 # (If _AS_PATH_WALK were called with IFS unset, it would have the 11789 # side effect of setting IFS to empty, thus disabling word splitting.) 11790 # Quoting is to prevent editors from complaining about space-tab. 11791 as_nl=' 11792 ' 11793 export as_nl 11794 IFS=" "" $as_nl" 11795 11796 PS1='$ ' 11797 PS2='> ' 11798 PS4='+ ' 11799 11800 # Ensure predictable behavior from utilities with locale-dependent output. 11801 LC_ALL=C 11802 export LC_ALL 11803 LANGUAGE=C 11804 export LANGUAGE 11805 11806 # We cannot yet rely on "unset" to work, but we need these variables 11807 # to be unset--not just set to an empty or harmless value--now, to 11808 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11809 # also avoids known problems related to "unset" and subshell syntax 11810 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11811 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11812 do eval test \${$as_var+y} \ 11813 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11814 done 11815 11816 # Ensure that fds 0, 1, and 2 are open. 11817 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11818 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11819 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11820 11821 # The user is always right. 11822 if ${PATH_SEPARATOR+false} :; then 11823 PATH_SEPARATOR=: 11824 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11825 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11826 PATH_SEPARATOR=';' 11827 } 11828 fi 11829 11830 11831 # Find who we are. Look in the path if we contain no directory separator. 11832 as_myself= 11833 case $0 in #(( 11834 *[\\/]* ) as_myself=$0 ;; 11835 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11836 for as_dir in $PATH 11837 do 11838 IFS=$as_save_IFS 11839 case $as_dir in #((( 11840 '') as_dir=./ ;; 11841 */) ;; 11842 *) as_dir=$as_dir/ ;; 11843 esac 11844 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11845 done 11846 IFS=$as_save_IFS 11847 11848 ;; 11849 esac 11850 # We did not find ourselves, most probably we were run as 'sh COMMAND' 11851 # in which case we are not to be found in the path. 11852 if test "x$as_myself" = x; then 11853 as_myself=$0 11854 fi 11855 if test ! -f "$as_myself"; then 11856 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11857 exit 1 11858 fi 11859 11860 11861 11862 # as_fn_error STATUS ERROR [LINENO LOG_FD] 11863 # ---------------------------------------- 11864 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11865 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11866 # script with STATUS, using 1 if that was 0. 11867 as_fn_error () 11868 { 11869 as_status=$1; test $as_status -eq 0 && as_status=1 11870 if test "$4"; then 11871 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11873 fi 11874 printf "%s\n" "$as_me: error: $2" >&2 11875 as_fn_exit $as_status 11876 } # as_fn_error 11877 11878 11879 # as_fn_set_status STATUS 11880 # ----------------------- 11881 # Set $? to STATUS, without forking. 11882 as_fn_set_status () 11883 { 11884 return $1 11885 } # as_fn_set_status 11886 11887 # as_fn_exit STATUS 11888 # ----------------- 11889 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11890 as_fn_exit () 11891 { 11892 set +e 11893 as_fn_set_status $1 11894 exit $1 11895 } # as_fn_exit 11896 11897 # as_fn_unset VAR 11898 # --------------- 11899 # Portably unset VAR. 11900 as_fn_unset () 11901 { 11902 { eval $1=; unset $1;} 11903 } 11904 as_unset=as_fn_unset 11905 11906 # as_fn_append VAR VALUE 11907 # ---------------------- 11908 # Append the text in VALUE to the end of the definition contained in VAR. Take 11909 # advantage of any shell optimizations that allow amortized linear growth over 11910 # repeated appends, instead of the typical quadratic growth present in naive 11911 # implementations. 11912 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11913 then : 11914 eval 'as_fn_append () 11915 { 11916 eval $1+=\$2 11917 }' 11918 else case e in #( 11919 e) as_fn_append () 11920 { 11921 eval $1=\$$1\$2 11922 } ;; 11923 esac 11924 fi # as_fn_append 11925 11926 # as_fn_arith ARG... 11927 # ------------------ 11928 # Perform arithmetic evaluation on the ARGs, and store the result in the 11929 # global $as_val. Take advantage of shells that can avoid forks. The arguments 11930 # must be portable across $(()) and expr. 11931 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11932 then : 11933 eval 'as_fn_arith () 11934 { 11935 as_val=$(( $* )) 11936 }' 11937 else case e in #( 11938 e) as_fn_arith () 11939 { 11940 as_val=`expr "$@" || test $? -eq 1` 11941 } ;; 11942 esac 11943 fi # as_fn_arith 11944 11945 11946 if expr a : '\(a\)' >/dev/null 2>&1 && 11947 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11948 as_expr=expr 11949 else 11950 as_expr=false 11951 fi 11952 11953 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11954 as_basename=basename 11955 else 11956 as_basename=false 11957 fi 11958 11959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11960 as_dirname=dirname 11961 else 11962 as_dirname=false 11963 fi 11964 11965 as_me=`$as_basename -- "$0" || 11966 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11967 X"$0" : 'X\(//\)$' \| \ 11968 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11969 printf "%s\n" X/"$0" | 11970 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11971 s//\1/ 11972 q 11973 } 11974 /^X\/\(\/\/\)$/{ 11975 s//\1/ 11976 q 11977 } 11978 /^X\/\(\/\).*/{ 11979 s//\1/ 11980 q 11981 } 11982 s/.*/./; q'` 11983 11984 # Avoid depending upon Character Ranges. 11985 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11986 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11987 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11988 as_cr_digits='0123456789' 11989 as_cr_alnum=$as_cr_Letters$as_cr_digits 11990 11991 11992 # Determine whether it's possible to make 'echo' print without a newline. 11993 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11994 # for compatibility with existing Makefiles. 11995 ECHO_C= ECHO_N= ECHO_T= 11996 case `echo -n x` in #((((( 11997 -n*) 11998 case `echo 'xy\c'` in 11999 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12000 xy) ECHO_C='\c';; 12001 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12002 ECHO_T=' ';; 12003 esac;; 12004 *) 12005 ECHO_N='-n';; 12006 esac 12007 12008 # For backward compatibility with old third-party macros, we provide 12009 # the shell variables $as_echo and $as_echo_n. New code should use 12010 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12011 as_echo='printf %s\n' 12012 as_echo_n='printf %s' 12013 12014 rm -f conf$$ conf$$.exe conf$$.file 12015 if test -d conf$$.dir; then 12016 rm -f conf$$.dir/conf$$.file 12017 else 12018 rm -f conf$$.dir 12019 mkdir conf$$.dir 2>/dev/null 12020 fi 12021 if (echo >conf$$.file) 2>/dev/null; then 12022 if ln -s conf$$.file conf$$ 2>/dev/null; then 12023 as_ln_s='ln -s' 12024 # ... but there are two gotchas: 12025 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12026 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12027 # In both cases, we have to default to 'cp -pR'. 12028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12029 as_ln_s='cp -pR' 12030 elif ln conf$$.file conf$$ 2>/dev/null; then 12031 as_ln_s=ln 12032 else 12033 as_ln_s='cp -pR' 12034 fi 12035 else 12036 as_ln_s='cp -pR' 12037 fi 12038 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12039 rmdir conf$$.dir 2>/dev/null 12040 12041 12042 # as_fn_mkdir_p 12043 # ------------- 12044 # Create "$as_dir" as a directory, including parents if necessary. 12045 as_fn_mkdir_p () 12046 { 12047 12048 case $as_dir in #( 12049 -*) as_dir=./$as_dir;; 12050 esac 12051 test -d "$as_dir" || eval $as_mkdir_p || { 12052 as_dirs= 12053 while :; do 12054 case $as_dir in #( 12055 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12056 *) as_qdir=$as_dir;; 12057 esac 12058 as_dirs="'$as_qdir' $as_dirs" 12059 as_dir=`$as_dirname -- "$as_dir" || 12060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12061 X"$as_dir" : 'X\(//\)[^/]' \| \ 12062 X"$as_dir" : 'X\(//\)$' \| \ 12063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12064 printf "%s\n" X"$as_dir" | 12065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12066 s//\1/ 12067 q 12068 } 12069 /^X\(\/\/\)[^/].*/{ 12070 s//\1/ 12071 q 12072 } 12073 /^X\(\/\/\)$/{ 12074 s//\1/ 12075 q 12076 } 12077 /^X\(\/\).*/{ 12078 s//\1/ 12079 q 12080 } 12081 s/.*/./; q'` 12082 test -d "$as_dir" && break 12083 done 12084 test -z "$as_dirs" || eval "mkdir $as_dirs" 12085 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12086 12087 12088 } # as_fn_mkdir_p 12089 if mkdir -p . 2>/dev/null; then 12090 as_mkdir_p='mkdir -p "$as_dir"' 12091 else 12092 test -d ./-p && rmdir ./-p 12093 as_mkdir_p=false 12094 fi 12095 12096 12097 # as_fn_executable_p FILE 12098 # ----------------------- 12099 # Test if FILE is an executable regular file. 12100 as_fn_executable_p () 12101 { 12102 test -f "$1" && test -x "$1" 12103 } # as_fn_executable_p 12104 as_test_x='test -x' 12105 as_executable_p=as_fn_executable_p 12106 12107 # Sed expression to map a string onto a valid CPP name. 12108 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12109 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12110 12111 # Sed expression to map a string onto a valid variable name. 12112 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12113 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12114 12115 12116 exec 6>&1 12117 ## ----------------------------------- ## 12118 ## Main body of $CONFIG_STATUS script. ## 12119 ## ----------------------------------- ## 12120 _ASEOF 12121 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12122 12123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12124 # Save the log message, to keep $0 and so on meaningful, and to 12125 # report actual input values of CONFIG_FILES etc. instead of their 12126 # values after options handling. 12127 ac_log=" 12128 This file was extended by xrandr $as_me 1.5.3, which was 12129 generated by GNU Autoconf 2.72. Invocation command line was 12130 12131 CONFIG_FILES = $CONFIG_FILES 12132 CONFIG_HEADERS = $CONFIG_HEADERS 12133 CONFIG_LINKS = $CONFIG_LINKS 12134 CONFIG_COMMANDS = $CONFIG_COMMANDS 12135 $ $0 $@ 12136 12137 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12138 " 12139 12140 _ACEOF 12141 12142 case $ac_config_files in *" 12143 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12144 esac 12145 12146 case $ac_config_headers in *" 12147 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12148 esac 12149 12150 12151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12152 # Files that config.status was made for. 12153 config_files="$ac_config_files" 12154 config_headers="$ac_config_headers" 12155 config_commands="$ac_config_commands" 12156 12157 _ACEOF 12158 12159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12160 ac_cs_usage="\ 12161 '$as_me' instantiates files and other configuration actions 12162 from templates according to the current configuration. Unless the files 12163 and actions are specified as TAGs, all are instantiated by default. 12164 12165 Usage: $0 [OPTION]... [TAG]... 12166 12167 -h, --help print this help, then exit 12168 -V, --version print version number and configuration settings, then exit 12169 --config print configuration, then exit 12170 -q, --quiet, --silent 12171 do not print progress messages 12172 -d, --debug don't remove temporary files 12173 --recheck update $as_me by reconfiguring in the same conditions 12174 --file=FILE[:TEMPLATE] 12175 instantiate the configuration file FILE 12176 --header=FILE[:TEMPLATE] 12177 instantiate the configuration header FILE 12178 12179 Configuration files: 12180 $config_files 12181 12182 Configuration headers: 12183 $config_headers 12184 12185 Configuration commands: 12186 $config_commands 12187 12188 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues>." 12189 12190 _ACEOF 12191 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12192 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12194 ac_cs_config='$ac_cs_config_escaped' 12195 ac_cs_version="\\ 12196 xrandr config.status 1.5.3 12197 configured by $0, generated by GNU Autoconf 2.72, 12198 with options \\"\$ac_cs_config\\" 12199 12200 Copyright (C) 2023 Free Software Foundation, Inc. 12201 This config.status script is free software; the Free Software Foundation 12202 gives unlimited permission to copy, distribute and modify it." 12203 12204 ac_pwd='$ac_pwd' 12205 srcdir='$srcdir' 12206 INSTALL='$INSTALL' 12207 MKDIR_P='$MKDIR_P' 12208 AWK='$AWK' 12209 test -n "\$AWK" || AWK=awk 12210 _ACEOF 12211 12212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12213 # The default lists apply if the user does not specify any file. 12214 ac_need_defaults=: 12215 while test $# != 0 12216 do 12217 case $1 in 12218 --*=?*) 12219 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12220 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12221 ac_shift=: 12222 ;; 12223 --*=) 12224 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12225 ac_optarg= 12226 ac_shift=: 12227 ;; 12228 *) 12229 ac_option=$1 12230 ac_optarg=$2 12231 ac_shift=shift 12232 ;; 12233 esac 12234 12235 case $ac_option in 12236 # Handling of the options. 12237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12238 ac_cs_recheck=: ;; 12239 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12240 printf "%s\n" "$ac_cs_version"; exit ;; 12241 --config | --confi | --conf | --con | --co | --c ) 12242 printf "%s\n" "$ac_cs_config"; exit ;; 12243 --debug | --debu | --deb | --de | --d | -d ) 12244 debug=: ;; 12245 --file | --fil | --fi | --f ) 12246 $ac_shift 12247 case $ac_optarg in 12248 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12249 '') as_fn_error $? "missing file argument" ;; 12250 esac 12251 as_fn_append CONFIG_FILES " '$ac_optarg'" 12252 ac_need_defaults=false;; 12253 --header | --heade | --head | --hea ) 12254 $ac_shift 12255 case $ac_optarg in 12256 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12257 esac 12258 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12259 ac_need_defaults=false;; 12260 --he | --h) 12261 # Conflict between --help and --header 12262 as_fn_error $? "ambiguous option: '$1' 12263 Try '$0 --help' for more information.";; 12264 --help | --hel | -h ) 12265 printf "%s\n" "$ac_cs_usage"; exit ;; 12266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12267 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12268 ac_cs_silent=: ;; 12269 12270 # This is an error. 12271 -*) as_fn_error $? "unrecognized option: '$1' 12272 Try '$0 --help' for more information." ;; 12273 12274 *) as_fn_append ac_config_targets " $1" 12275 ac_need_defaults=false ;; 12276 12277 esac 12278 shift 12279 done 12280 12281 ac_configure_extra_args= 12282 12283 if $ac_cs_silent; then 12284 exec 6>/dev/null 12285 ac_configure_extra_args="$ac_configure_extra_args --silent" 12286 fi 12287 12288 _ACEOF 12289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12290 if \$ac_cs_recheck; then 12291 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12292 shift 12293 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12294 CONFIG_SHELL='$SHELL' 12295 export CONFIG_SHELL 12296 exec "\$@" 12297 fi 12298 12299 _ACEOF 12300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12301 exec 5>>config.log 12302 { 12303 echo 12304 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12305 ## Running $as_me. ## 12306 _ASBOX 12307 printf "%s\n" "$ac_log" 12308 } >&5 12309 12310 _ACEOF 12311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12312 # 12313 # INIT-COMMANDS 12314 # 12315 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12316 12317 _ACEOF 12318 12319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12320 12321 # Handling of arguments. 12322 for ac_config_target in $ac_config_targets 12323 do 12324 case $ac_config_target in 12325 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12326 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12327 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12328 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12329 12330 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12331 esac 12332 done 12333 12334 12335 # If the user did not use the arguments to specify the items to instantiate, 12336 # then the envvar interface is used. Set only those that are not. 12337 # We use the long form for the default assignment because of an extremely 12338 # bizarre bug on SunOS 4.1.3. 12339 if $ac_need_defaults; then 12340 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12341 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12342 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12343 fi 12344 12345 # Have a temporary directory for convenience. Make it in the build tree 12346 # simply because there is no reason against having it here, and in addition, 12347 # creating and moving files from /tmp can sometimes cause problems. 12348 # Hook for its removal unless debugging. 12349 # Note that there is a small window in which the directory will not be cleaned: 12350 # after its creation but before its name has been assigned to '$tmp'. 12351 $debug || 12352 { 12353 tmp= ac_tmp= 12354 trap 'exit_status=$? 12355 : "${ac_tmp:=$tmp}" 12356 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12357 ' 0 12358 trap 'as_fn_exit 1' 1 2 13 15 12359 } 12360 # Create a (secure) tmp directory for tmp files. 12361 12362 { 12363 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12364 test -d "$tmp" 12365 } || 12366 { 12367 tmp=./conf$$-$RANDOM 12368 (umask 077 && mkdir "$tmp") 12369 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12370 ac_tmp=$tmp 12371 12372 # Set up the scripts for CONFIG_FILES section. 12373 # No need to generate them if there are no CONFIG_FILES. 12374 # This happens for instance with './config.status config.h'. 12375 if test -n "$CONFIG_FILES"; then 12376 12377 12378 ac_cr=`echo X | tr X '\015'` 12379 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12380 # But we know of no other shell where ac_cr would be empty at this 12381 # point, so we can use a bashism as a fallback. 12382 if test "x$ac_cr" = x; then 12383 eval ac_cr=\$\'\\r\' 12384 fi 12385 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12386 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12387 ac_cs_awk_cr='\\r' 12388 else 12389 ac_cs_awk_cr=$ac_cr 12390 fi 12391 12392 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12393 _ACEOF 12394 12395 12396 { 12397 echo "cat >conf$$subs.awk <<_ACEOF" && 12398 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12399 echo "_ACEOF" 12400 } >conf$$subs.sh || 12401 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12402 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12403 ac_delim='%!_!# ' 12404 for ac_last_try in false false false false false :; do 12405 . ./conf$$subs.sh || 12406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12407 12408 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12409 if test $ac_delim_n = $ac_delim_num; then 12410 break 12411 elif $ac_last_try; then 12412 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12413 else 12414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12415 fi 12416 done 12417 rm -f conf$$subs.sh 12418 12419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12420 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12421 _ACEOF 12422 sed -n ' 12423 h 12424 s/^/S["/; s/!.*/"]=/ 12425 p 12426 g 12427 s/^[^!]*!// 12428 :repl 12429 t repl 12430 s/'"$ac_delim"'$// 12431 t delim 12432 :nl 12433 h 12434 s/\(.\{148\}\)..*/\1/ 12435 t more1 12436 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12437 p 12438 n 12439 b repl 12440 :more1 12441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12442 p 12443 g 12444 s/.\{148\}// 12445 t nl 12446 :delim 12447 h 12448 s/\(.\{148\}\)..*/\1/ 12449 t more2 12450 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12451 p 12452 b 12453 :more2 12454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12455 p 12456 g 12457 s/.\{148\}// 12458 t delim 12459 ' <conf$$subs.awk | sed ' 12460 /^[^""]/{ 12461 N 12462 s/\n// 12463 } 12464 ' >>$CONFIG_STATUS || ac_write_fail=1 12465 rm -f conf$$subs.awk 12466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12467 _ACAWK 12468 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12469 for (key in S) S_is_set[key] = 1 12470 FS = "" 12471 12472 } 12473 { 12474 line = $ 0 12475 nfields = split(line, field, "@") 12476 substed = 0 12477 len = length(field[1]) 12478 for (i = 2; i < nfields; i++) { 12479 key = field[i] 12480 keylen = length(key) 12481 if (S_is_set[key]) { 12482 value = S[key] 12483 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12484 len += length(value) + length(field[++i]) 12485 substed = 1 12486 } else 12487 len += 1 + keylen 12488 } 12489 12490 print line 12491 } 12492 12493 _ACAWK 12494 _ACEOF 12495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12496 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12497 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12498 else 12499 cat 12500 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12501 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12502 _ACEOF 12503 12504 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12505 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12506 # trailing colons and then remove the whole line if VPATH becomes empty 12507 # (actually we leave an empty line to preserve line numbers). 12508 if test "x$srcdir" = x.; then 12509 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12510 h 12511 s/// 12512 s/^/:/ 12513 s/[ ]*$/:/ 12514 s/:\$(srcdir):/:/g 12515 s/:\${srcdir}:/:/g 12516 s/:@srcdir@:/:/g 12517 s/^:*// 12518 s/:*$// 12519 x 12520 s/\(=[ ]*\).*/\1/ 12521 G 12522 s/\n// 12523 s/^[^=]*=[ ]*$// 12524 }' 12525 fi 12526 12527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12528 fi # test -n "$CONFIG_FILES" 12529 12530 # Set up the scripts for CONFIG_HEADERS section. 12531 # No need to generate them if there are no CONFIG_HEADERS. 12532 # This happens for instance with './config.status Makefile'. 12533 if test -n "$CONFIG_HEADERS"; then 12534 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12535 BEGIN { 12536 _ACEOF 12537 12538 # Transform confdefs.h into an awk script 'defines.awk', embedded as 12539 # here-document in config.status, that substitutes the proper values into 12540 # config.h.in to produce config.h. 12541 12542 # Create a delimiter string that does not exist in confdefs.h, to ease 12543 # handling of long lines. 12544 ac_delim='%!_!# ' 12545 for ac_last_try in false false :; do 12546 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12547 if test -z "$ac_tt"; then 12548 break 12549 elif $ac_last_try; then 12550 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12551 else 12552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12553 fi 12554 done 12555 12556 # For the awk script, D is an array of macro values keyed by name, 12557 # likewise P contains macro parameters if any. Preserve backslash 12558 # newline sequences. 12559 12560 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12561 sed -n ' 12562 s/.\{148\}/&'"$ac_delim"'/g 12563 t rset 12564 :rset 12565 s/^[ ]*#[ ]*define[ ][ ]*/ / 12566 t def 12567 d 12568 :def 12569 s/\\$// 12570 t bsnl 12571 s/["\\]/\\&/g 12572 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12573 D["\1"]=" \3"/p 12574 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12575 d 12576 :bsnl 12577 s/["\\]/\\&/g 12578 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12579 D["\1"]=" \3\\\\\\n"\\/p 12580 t cont 12581 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12582 t cont 12583 d 12584 :cont 12585 n 12586 s/.\{148\}/&'"$ac_delim"'/g 12587 t clear 12588 :clear 12589 s/\\$// 12590 t bsnlc 12591 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12592 d 12593 :bsnlc 12594 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12595 b cont 12596 ' <confdefs.h | sed ' 12597 s/'"$ac_delim"'/"\\\ 12598 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12599 12600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12601 for (key in D) D_is_set[key] = 1 12602 FS = "" 12603 } 12604 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12605 line = \$ 0 12606 split(line, arg, " ") 12607 if (arg[1] == "#") { 12608 defundef = arg[2] 12609 mac1 = arg[3] 12610 } else { 12611 defundef = substr(arg[1], 2) 12612 mac1 = arg[2] 12613 } 12614 split(mac1, mac2, "(") #) 12615 macro = mac2[1] 12616 prefix = substr(line, 1, index(line, defundef) - 1) 12617 if (D_is_set[macro]) { 12618 # Preserve the white space surrounding the "#". 12619 print prefix "define", macro P[macro] D[macro] 12620 next 12621 } else { 12622 # Replace #undef with comments. This is necessary, for example, 12623 # in the case of _POSIX_SOURCE, which is predefined and required 12624 # on some systems where configure will not decide to define it. 12625 if (defundef == "undef") { 12626 print "/*", prefix defundef, macro, "*/" 12627 next 12628 } 12629 } 12630 } 12631 { print } 12632 _ACAWK 12633 _ACEOF 12634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12635 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12636 fi # test -n "$CONFIG_HEADERS" 12637 12638 12639 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12640 shift 12641 for ac_tag 12642 do 12643 case $ac_tag in 12644 :[FHLC]) ac_mode=$ac_tag; continue;; 12645 esac 12646 case $ac_mode$ac_tag in 12647 :[FHL]*:*);; 12648 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12649 :[FH]-) ac_tag=-:-;; 12650 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12651 esac 12652 ac_save_IFS=$IFS 12653 IFS=: 12654 set x $ac_tag 12655 IFS=$ac_save_IFS 12656 shift 12657 ac_file=$1 12658 shift 12659 12660 case $ac_mode in 12661 :L) ac_source=$1;; 12662 :[FH]) 12663 ac_file_inputs= 12664 for ac_f 12665 do 12666 case $ac_f in 12667 -) ac_f="$ac_tmp/stdin";; 12668 *) # Look for the file first in the build tree, then in the source tree 12669 # (if the path is not absolute). The absolute path cannot be DOS-style, 12670 # because $ac_f cannot contain ':'. 12671 test -f "$ac_f" || 12672 case $ac_f in 12673 [\\/$]*) false;; 12674 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12675 esac || 12676 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12677 esac 12678 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12679 as_fn_append ac_file_inputs " '$ac_f'" 12680 done 12681 12682 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12683 # use $as_me), people would be surprised to read: 12684 # /* config.h. Generated by config.status. */ 12685 configure_input='Generated from '` 12686 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12687 `' by configure.' 12688 if test x"$ac_file" != x-; then 12689 configure_input="$ac_file. $configure_input" 12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12691 printf "%s\n" "$as_me: creating $ac_file" >&6;} 12692 fi 12693 # Neutralize special characters interpreted by sed in replacement strings. 12694 case $configure_input in #( 12695 *\&* | *\|* | *\\* ) 12696 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12697 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12698 *) ac_sed_conf_input=$configure_input;; 12699 esac 12700 12701 case $ac_tag in 12702 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12704 esac 12705 ;; 12706 esac 12707 12708 ac_dir=`$as_dirname -- "$ac_file" || 12709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12710 X"$ac_file" : 'X\(//\)[^/]' \| \ 12711 X"$ac_file" : 'X\(//\)$' \| \ 12712 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12713 printf "%s\n" X"$ac_file" | 12714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12715 s//\1/ 12716 q 12717 } 12718 /^X\(\/\/\)[^/].*/{ 12719 s//\1/ 12720 q 12721 } 12722 /^X\(\/\/\)$/{ 12723 s//\1/ 12724 q 12725 } 12726 /^X\(\/\).*/{ 12727 s//\1/ 12728 q 12729 } 12730 s/.*/./; q'` 12731 as_dir="$ac_dir"; as_fn_mkdir_p 12732 ac_builddir=. 12733 12734 case "$ac_dir" in 12735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12736 *) 12737 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12738 # A ".." for each directory in $ac_dir_suffix. 12739 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12740 case $ac_top_builddir_sub in 12741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12743 esac ;; 12744 esac 12745 ac_abs_top_builddir=$ac_pwd 12746 ac_abs_builddir=$ac_pwd$ac_dir_suffix 12747 # for backward compatibility: 12748 ac_top_builddir=$ac_top_build_prefix 12749 12750 case $srcdir in 12751 .) # We are building in place. 12752 ac_srcdir=. 12753 ac_top_srcdir=$ac_top_builddir_sub 12754 ac_abs_top_srcdir=$ac_pwd ;; 12755 [\\/]* | ?:[\\/]* ) # Absolute name. 12756 ac_srcdir=$srcdir$ac_dir_suffix; 12757 ac_top_srcdir=$srcdir 12758 ac_abs_top_srcdir=$srcdir ;; 12759 *) # Relative name. 12760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12761 ac_top_srcdir=$ac_top_build_prefix$srcdir 12762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12763 esac 12764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12765 12766 12767 case $ac_mode in 12768 :F) 12769 # 12770 # CONFIG_FILE 12771 # 12772 12773 case $INSTALL in 12774 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12775 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12776 esac 12777 ac_MKDIR_P=$MKDIR_P 12778 case $MKDIR_P in 12779 [\\/$]* | ?:[\\/]* ) ;; 12780 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12781 esac 12782 _ACEOF 12783 12784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12785 # If the template does not know about datarootdir, expand it. 12786 # FIXME: This hack should be removed a few years after 2.60. 12787 ac_datarootdir_hack=; ac_datarootdir_seen= 12788 ac_sed_dataroot=' 12789 /datarootdir/ { 12790 p 12791 q 12792 } 12793 /@datadir@/p 12794 /@docdir@/p 12795 /@infodir@/p 12796 /@localedir@/p 12797 /@mandir@/p' 12798 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12799 *datarootdir*) ac_datarootdir_seen=yes;; 12800 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12802 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12803 _ACEOF 12804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12805 ac_datarootdir_hack=' 12806 s&@datadir@&$datadir&g 12807 s&@docdir@&$docdir&g 12808 s&@infodir@&$infodir&g 12809 s&@localedir@&$localedir&g 12810 s&@mandir@&$mandir&g 12811 s&\\\${datarootdir}&$datarootdir&g' ;; 12812 esac 12813 _ACEOF 12814 12815 # Neutralize VPATH when '$srcdir' = '.'. 12816 # Shell code in configure.ac might set extrasub. 12817 # FIXME: do we really want to maintain this feature? 12818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12819 ac_sed_extra="$ac_vpsub 12820 $extrasub 12821 _ACEOF 12822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12823 :t 12824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12825 s|@configure_input@|$ac_sed_conf_input|;t t 12826 s&@top_builddir@&$ac_top_builddir_sub&;t t 12827 s&@top_build_prefix@&$ac_top_build_prefix&;t t 12828 s&@srcdir@&$ac_srcdir&;t t 12829 s&@abs_srcdir@&$ac_abs_srcdir&;t t 12830 s&@top_srcdir@&$ac_top_srcdir&;t t 12831 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12832 s&@builddir@&$ac_builddir&;t t 12833 s&@abs_builddir@&$ac_abs_builddir&;t t 12834 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12835 s&@INSTALL@&$ac_INSTALL&;t t 12836 s&@MKDIR_P@&$ac_MKDIR_P&;t t 12837 $ac_datarootdir_hack 12838 " 12839 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12840 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12841 12842 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12843 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12844 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12845 "$ac_tmp/out"`; test -z "$ac_out"; } && 12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12847 which seems to be undefined. Please make sure it is defined" >&5 12848 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12849 which seems to be undefined. Please make sure it is defined" >&2;} 12850 12851 rm -f "$ac_tmp/stdin" 12852 case $ac_file in 12853 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12854 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12855 esac \ 12856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12857 ;; 12858 :H) 12859 # 12860 # CONFIG_HEADER 12861 # 12862 if test x"$ac_file" != x-; then 12863 { 12864 printf "%s\n" "/* $configure_input */" >&1 \ 12865 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12866 } >"$ac_tmp/config.h" \ 12867 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12868 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12870 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12871 else 12872 rm -f "$ac_file" 12873 mv "$ac_tmp/config.h" "$ac_file" \ 12874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12875 fi 12876 else 12877 printf "%s\n" "/* $configure_input */" >&1 \ 12878 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12879 || as_fn_error $? "could not create -" "$LINENO" 5 12880 fi 12881 # Compute "$ac_file"'s index in $config_headers. 12882 _am_arg="$ac_file" 12883 _am_stamp_count=1 12884 for _am_header in $config_headers :; do 12885 case $_am_header in 12886 $_am_arg | $_am_arg:* ) 12887 break ;; 12888 * ) 12889 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12890 esac 12891 done 12892 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12893 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12894 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12895 X"$_am_arg" : 'X\(//\)$' \| \ 12896 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12897 printf "%s\n" X"$_am_arg" | 12898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12899 s//\1/ 12900 q 12901 } 12902 /^X\(\/\/\)[^/].*/{ 12903 s//\1/ 12904 q 12905 } 12906 /^X\(\/\/\)$/{ 12907 s//\1/ 12908 q 12909 } 12910 /^X\(\/\).*/{ 12911 s//\1/ 12912 q 12913 } 12914 s/.*/./; q'`/stamp-h$_am_stamp_count 12915 ;; 12916 12917 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12918 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12919 ;; 12920 esac 12921 12922 12923 case $ac_file$ac_mode in 12924 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12925 # Older Autoconf quotes --file arguments for eval, but not when files 12926 # are listed without --file. Let's play safe and only enable the eval 12927 # if we detect the quoting. 12928 # TODO: see whether this extra hack can be removed once we start 12929 # requiring Autoconf 2.70 or later. 12930 case $CONFIG_FILES in #( 12931 *\'*) : 12932 eval set x "$CONFIG_FILES" ;; #( 12933 *) : 12934 set x $CONFIG_FILES ;; #( 12935 *) : 12936 ;; 12937 esac 12938 shift 12939 # Used to flag and report bootstrapping failures. 12940 am_rc=0 12941 for am_mf 12942 do 12943 # Strip MF so we end up with the name of the file. 12944 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12945 # Check whether this is an Automake generated Makefile which includes 12946 # dependency-tracking related rules and includes. 12947 # Grep'ing the whole file directly is not great: AIX grep has a line 12948 # limit of 2048, but all sed's we know have understand at least 4000. 12949 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12950 || continue 12951 am_dirpart=`$as_dirname -- "$am_mf" || 12952 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12953 X"$am_mf" : 'X\(//\)[^/]' \| \ 12954 X"$am_mf" : 'X\(//\)$' \| \ 12955 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12956 printf "%s\n" X"$am_mf" | 12957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12958 s//\1/ 12959 q 12960 } 12961 /^X\(\/\/\)[^/].*/{ 12962 s//\1/ 12963 q 12964 } 12965 /^X\(\/\/\)$/{ 12966 s//\1/ 12967 q 12968 } 12969 /^X\(\/\).*/{ 12970 s//\1/ 12971 q 12972 } 12973 s/.*/./; q'` 12974 am_filepart=`$as_basename -- "$am_mf" || 12975 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12976 X"$am_mf" : 'X\(//\)$' \| \ 12977 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12978 printf "%s\n" X/"$am_mf" | 12979 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12980 s//\1/ 12981 q 12982 } 12983 /^X\/\(\/\/\)$/{ 12984 s//\1/ 12985 q 12986 } 12987 /^X\/\(\/\).*/{ 12988 s//\1/ 12989 q 12990 } 12991 s/.*/./; q'` 12992 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12993 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12994 | $MAKE -f - am--depfiles" >&5 12995 (cd "$am_dirpart" \ 12996 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12997 | $MAKE -f - am--depfiles) >&5 2>&5 12998 ac_status=$? 12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13000 (exit $ac_status); } || am_rc=$? 13001 done 13002 if test $am_rc -ne 0; then 13003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13004 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13005 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13006 for automatic dependency tracking. If GNU make was not used, consider 13007 re-running the configure script with MAKE=\"gmake\" (or whatever is 13008 necessary). You can also try re-running configure with the 13009 '--disable-dependency-tracking' option to at least be able to build 13010 the package (albeit without support for automatic dependency tracking). 13011 See 'config.log' for more details" "$LINENO" 5; } 13012 fi 13013 { am_dirpart=; unset am_dirpart;} 13014 { am_filepart=; unset am_filepart;} 13015 { am_mf=; unset am_mf;} 13016 { am_rc=; unset am_rc;} 13017 rm -f conftest-deps.mk 13018 } 13019 ;; 13020 13021 esac 13022 done # for ac_tag 13023 13024 13025 as_fn_exit 0 13026 _ACEOF 13027 ac_clean_files=$ac_clean_files_save 13028 13029 test $ac_write_fail = 0 || 13030 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13031 13032 13033 # configure is writing to config.log, and then calls config.status. 13034 # config.status does its own redirection, appending to config.log. 13035 # Unfortunately, on DOS this fails, as config.log is still kept open 13036 # by configure, so config.status won't be able to write to it; its 13037 # output is simply discarded. So we exec the FD to /dev/null, 13038 # effectively closing config.log, so it can be properly (re)opened and 13039 # appended to by config.status. When coming back to configure, we 13040 # need to make the FD available again. 13041 if test "$no_create" != yes; then 13042 ac_cs_success=: 13043 ac_config_status_args= 13044 test "$silent" = yes && 13045 ac_config_status_args="$ac_config_status_args --quiet" 13046 exec 5>/dev/null 13047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13048 exec 5>>config.log 13049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13050 # would make configure fail if this is the last instruction. 13051 $ac_cs_success || as_fn_exit 1 13052 fi 13053 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13055 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13056 fi 13057 13058 13059