1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for xdriinfo 1.0.8. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdriinfo/-/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/xdriinfo/-/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='xdriinfo' 607 PACKAGE_TARNAME='xdriinfo' 608 PACKAGE_VERSION='1.0.8' 609 PACKAGE_STRING='xdriinfo 1.0.8' 610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xdriinfo/-/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 XDRIINFO_LIBS 651 XDRIINFO_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__xargs_n 700 am__rm_f_notfound 701 AM_BACKSLASH 702 AM_DEFAULT_VERBOSITY 703 AM_DEFAULT_V 704 AM_V 705 CSCOPE 706 ETAGS 707 CTAGS 708 am__untar 709 am__tar 710 AMTAR 711 am__leading_dot 712 SET_MAKE 713 AWK 714 mkdir_p 715 MKDIR_P 716 INSTALL_STRIP_PROGRAM 717 STRIP 718 install_sh 719 MAKEINFO 720 AUTOHEADER 721 AUTOMAKE 722 AUTOCONF 723 ACLOCAL 724 VERSION 725 PACKAGE 726 CYGPATH_W 727 am__isrc 728 INSTALL_DATA 729 INSTALL_SCRIPT 730 INSTALL_PROGRAM 731 target_alias 732 host_alias 733 build_alias 734 LIBS 735 ECHO_T 736 ECHO_N 737 ECHO_C 738 DEFS 739 mandir 740 localedir 741 libdir 742 psdir 743 pdfdir 744 dvidir 745 htmldir 746 infodir 747 docdir 748 oldincludedir 749 includedir 750 runstatedir 751 localstatedir 752 sharedstatedir 753 sysconfdir 754 datadir 755 datarootdir 756 libexecdir 757 sbindir 758 bindir 759 program_transform_name 760 prefix 761 exec_prefix 762 PACKAGE_URL 763 PACKAGE_BUGREPORT 764 PACKAGE_STRING 765 PACKAGE_VERSION 766 PACKAGE_TARNAME 767 PACKAGE_NAME 768 PATH_SEPARATOR 769 SHELL 770 am__quote' 771 ac_subst_files='' 772 ac_user_opts=' 773 enable_option_checking 774 enable_silent_rules 775 enable_dependency_tracking 776 enable_selective_werror 777 enable_strict_compilation 778 ' 779 ac_precious_vars='build_alias 780 host_alias 781 target_alias 782 CC 783 CFLAGS 784 LDFLAGS 785 LIBS 786 CPPFLAGS 787 PKG_CONFIG 788 PKG_CONFIG_PATH 789 PKG_CONFIG_LIBDIR 790 XDRIINFO_CFLAGS 791 XDRIINFO_LIBS' 792 793 794 # Initialize some variables set by options. 795 ac_init_help= 796 ac_init_version=false 797 ac_unrecognized_opts= 798 ac_unrecognized_sep= 799 # The variables have the same names as the options, with 800 # dashes changed to underlines. 801 cache_file=/dev/null 802 exec_prefix=NONE 803 no_create= 804 no_recursion= 805 prefix=NONE 806 program_prefix=NONE 807 program_suffix=NONE 808 program_transform_name=s,x,x, 809 silent= 810 site= 811 srcdir= 812 verbose= 813 x_includes=NONE 814 x_libraries=NONE 815 816 # Installation directory options. 817 # These are left unexpanded so users can "make install exec_prefix=/foo" 818 # and all the variables that are supposed to be based on exec_prefix 819 # by default will actually change. 820 # Use braces instead of parens because sh, perl, etc. also accept them. 821 # (The list follows the same order as the GNU Coding Standards.) 822 bindir='${exec_prefix}/bin' 823 sbindir='${exec_prefix}/sbin' 824 libexecdir='${exec_prefix}/libexec' 825 datarootdir='${prefix}/share' 826 datadir='${datarootdir}' 827 sysconfdir='${prefix}/etc' 828 sharedstatedir='${prefix}/com' 829 localstatedir='${prefix}/var' 830 runstatedir='${localstatedir}/run' 831 includedir='${prefix}/include' 832 oldincludedir='/usr/include' 833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 834 infodir='${datarootdir}/info' 835 htmldir='${docdir}' 836 dvidir='${docdir}' 837 pdfdir='${docdir}' 838 psdir='${docdir}' 839 libdir='${exec_prefix}/lib' 840 localedir='${datarootdir}/locale' 841 mandir='${datarootdir}/man' 842 843 ac_prev= 844 ac_dashdash= 845 for ac_option 846 do 847 # If the previous option needs an argument, assign it. 848 if test -n "$ac_prev"; then 849 eval $ac_prev=\$ac_option 850 ac_prev= 851 continue 852 fi 853 854 case $ac_option in 855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 856 *=) ac_optarg= ;; 857 *) ac_optarg=yes ;; 858 esac 859 860 case $ac_dashdash$ac_option in 861 --) 862 ac_dashdash=yes ;; 863 864 -bindir | --bindir | --bindi | --bind | --bin | --bi) 865 ac_prev=bindir ;; 866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867 bindir=$ac_optarg ;; 868 869 -build | --build | --buil | --bui | --bu) 870 ac_prev=build_alias ;; 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872 build_alias=$ac_optarg ;; 873 874 -cache-file | --cache-file | --cache-fil | --cache-fi \ 875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 876 ac_prev=cache_file ;; 877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879 cache_file=$ac_optarg ;; 880 881 --config-cache | -C) 882 cache_file=config.cache ;; 883 884 -datadir | --datadir | --datadi | --datad) 885 ac_prev=datadir ;; 886 -datadir=* | --datadir=* | --datadi=* | --datad=*) 887 datadir=$ac_optarg ;; 888 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890 | --dataroo | --dataro | --datar) 891 ac_prev=datarootdir ;; 892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894 datarootdir=$ac_optarg ;; 895 896 -disable-* | --disable-*) 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 898 # Reject names that are not valid shell variable names. 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900 as_fn_error $? "invalid feature name: '$ac_useropt'" 901 ac_useropt_orig=$ac_useropt 902 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 903 case $ac_user_opts in 904 *" 905 "enable_$ac_useropt" 906 "*) ;; 907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908 ac_unrecognized_sep=', ';; 909 esac 910 eval enable_$ac_useropt=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: '$ac_useropt'" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931 "enable_$ac_useropt" 932 "*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=\$ac_optarg ;; 937 938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 940 | --exec | --exe | --ex) 941 ac_prev=exec_prefix ;; 942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 944 | --exec=* | --exe=* | --ex=*) 945 exec_prefix=$ac_optarg ;; 946 947 -gas | --gas | --ga | --g) 948 # Obsolete; use --with-gas. 949 with_gas=yes ;; 950 951 -help | --help | --hel | --he | -h) 952 ac_init_help=long ;; 953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954 ac_init_help=recursive ;; 955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956 ac_init_help=short ;; 957 958 -host | --host | --hos | --ho) 959 ac_prev=host_alias ;; 960 -host=* | --host=* | --hos=* | --ho=*) 961 host_alias=$ac_optarg ;; 962 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964 ac_prev=htmldir ;; 965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966 | --ht=*) 967 htmldir=$ac_optarg ;; 968 969 -includedir | --includedir | --includedi | --included | --include \ 970 | --includ | --inclu | --incl | --inc) 971 ac_prev=includedir ;; 972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 973 | --includ=* | --inclu=* | --incl=* | --inc=*) 974 includedir=$ac_optarg ;; 975 976 -infodir | --infodir | --infodi | --infod | --info | --inf) 977 ac_prev=infodir ;; 978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979 infodir=$ac_optarg ;; 980 981 -libdir | --libdir | --libdi | --libd) 982 ac_prev=libdir ;; 983 -libdir=* | --libdir=* | --libdi=* | --libd=*) 984 libdir=$ac_optarg ;; 985 986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 987 | --libexe | --libex | --libe) 988 ac_prev=libexecdir ;; 989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 990 | --libexe=* | --libex=* | --libe=*) 991 libexecdir=$ac_optarg ;; 992 993 -localedir | --localedir | --localedi | --localed | --locale) 994 ac_prev=localedir ;; 995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996 localedir=$ac_optarg ;; 997 998 -localstatedir | --localstatedir | --localstatedi | --localstated \ 999 | --localstate | --localstat | --localsta | --localst | --locals) 1000 ac_prev=localstatedir ;; 1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003 localstatedir=$ac_optarg ;; 1004 1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1006 ac_prev=mandir ;; 1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008 mandir=$ac_optarg ;; 1009 1010 -nfp | --nfp | --nf) 1011 # Obsolete; use --without-fp. 1012 with_fp=no ;; 1013 1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015 | --no-cr | --no-c | -n) 1016 no_create=yes ;; 1017 1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1020 no_recursion=yes ;; 1021 1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1024 | --oldin | --oldi | --old | --ol | --o) 1025 ac_prev=oldincludedir ;; 1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029 oldincludedir=$ac_optarg ;; 1030 1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1032 ac_prev=prefix ;; 1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034 prefix=$ac_optarg ;; 1035 1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1037 | --program-pre | --program-pr | --program-p) 1038 ac_prev=program_prefix ;; 1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041 program_prefix=$ac_optarg ;; 1042 1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1044 | --program-suf | --program-su | --program-s) 1045 ac_prev=program_suffix ;; 1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048 program_suffix=$ac_optarg ;; 1049 1050 -program-transform-name | --program-transform-name \ 1051 | --program-transform-nam | --program-transform-na \ 1052 | --program-transform-n | --program-transform- \ 1053 | --program-transform | --program-transfor \ 1054 | --program-transfo | --program-transf \ 1055 | --program-trans | --program-tran \ 1056 | --progr-tra | --program-tr | --program-t) 1057 ac_prev=program_transform_name ;; 1058 -program-transform-name=* | --program-transform-name=* \ 1059 | --program-transform-nam=* | --program-transform-na=* \ 1060 | --program-transform-n=* | --program-transform-=* \ 1061 | --program-transform=* | --program-transfor=* \ 1062 | --program-transfo=* | --program-transf=* \ 1063 | --program-trans=* | --program-tran=* \ 1064 | --progr-tra=* | --program-tr=* | --program-t=*) 1065 program_transform_name=$ac_optarg ;; 1066 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068 ac_prev=pdfdir ;; 1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070 pdfdir=$ac_optarg ;; 1071 1072 -psdir | --psdir | --psdi | --psd | --ps) 1073 ac_prev=psdir ;; 1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075 psdir=$ac_optarg ;; 1076 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1078 | -silent | --silent | --silen | --sile | --sil) 1079 silent=yes ;; 1080 1081 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1082 | --runstate | --runstat | --runsta | --runst | --runs \ 1083 | --run | --ru | --r) 1084 ac_prev=runstatedir ;; 1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1087 | --run=* | --ru=* | --r=*) 1088 runstatedir=$ac_optarg ;; 1089 1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1091 ac_prev=sbindir ;; 1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1093 | --sbi=* | --sb=*) 1094 sbindir=$ac_optarg ;; 1095 1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1098 | --sharedst | --shareds | --shared | --share | --shar \ 1099 | --sha | --sh) 1100 ac_prev=sharedstatedir ;; 1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1104 | --sha=* | --sh=*) 1105 sharedstatedir=$ac_optarg ;; 1106 1107 -site | --site | --sit) 1108 ac_prev=site ;; 1109 -site=* | --site=* | --sit=*) 1110 site=$ac_optarg ;; 1111 1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1113 ac_prev=srcdir ;; 1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1115 srcdir=$ac_optarg ;; 1116 1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1118 | --syscon | --sysco | --sysc | --sys | --sy) 1119 ac_prev=sysconfdir ;; 1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1122 sysconfdir=$ac_optarg ;; 1123 1124 -target | --target | --targe | --targ | --tar | --ta | --t) 1125 ac_prev=target_alias ;; 1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1127 target_alias=$ac_optarg ;; 1128 1129 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1130 verbose=yes ;; 1131 1132 -version | --version | --versio | --versi | --vers | -V) 1133 ac_init_version=: ;; 1134 1135 -with-* | --with-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: '$ac_useropt'" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144 "with_$ac_useropt" 1145 "*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=\$ac_optarg ;; 1150 1151 -without-* | --without-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: '$ac_useropt'" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160 "with_$ac_useropt" 1161 "*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=no ;; 1166 1167 --x) 1168 # Obsolete; use --with-x. 1169 with_x=yes ;; 1170 1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1172 | --x-incl | --x-inc | --x-in | --x-i) 1173 ac_prev=x_includes ;; 1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1176 x_includes=$ac_optarg ;; 1177 1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1180 ac_prev=x_libraries ;; 1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1183 x_libraries=$ac_optarg ;; 1184 1185 -*) as_fn_error $? "unrecognized option: '$ac_option' 1186 Try '$0 --help' for more information" 1187 ;; 1188 1189 *=*) 1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1191 # Reject names that are not valid shell variable names. 1192 case $ac_envvar in #( 1193 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1194 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1195 esac 1196 eval $ac_envvar=\$ac_optarg 1197 export $ac_envvar ;; 1198 1199 *) 1200 # FIXME: should be removed in autoconf 3.0. 1201 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1203 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1205 ;; 1206 1207 esac 1208 done 1209 1210 if test -n "$ac_prev"; then 1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1212 as_fn_error $? "missing argument to $ac_option" 1213 fi 1214 1215 if test -n "$ac_unrecognized_opts"; then 1216 case $enable_option_checking in 1217 no) ;; 1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1219 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1220 esac 1221 fi 1222 1223 # Check all directory arguments for consistency. 1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1225 datadir sysconfdir sharedstatedir localstatedir includedir \ 1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1227 libdir localedir mandir runstatedir 1228 do 1229 eval ac_val=\$$ac_var 1230 # Remove trailing slashes. 1231 case $ac_val in 1232 */ ) 1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1234 eval $ac_var=\$ac_val;; 1235 esac 1236 # Be sure to have absolute directory names. 1237 case $ac_val in 1238 [\\/$]* | ?:[\\/]* ) continue;; 1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1240 esac 1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1242 done 1243 1244 # There might be people who depend on the old broken behavior: '$host' 1245 # used to hold the argument of --host etc. 1246 # FIXME: To remove some day. 1247 build=$build_alias 1248 host=$host_alias 1249 target=$target_alias 1250 1251 # FIXME: To remove some day. 1252 if test "x$host_alias" != x; then 1253 if test "x$build_alias" = x; then 1254 cross_compiling=maybe 1255 elif test "x$build_alias" != "x$host_alias"; then 1256 cross_compiling=yes 1257 fi 1258 fi 1259 1260 ac_tool_prefix= 1261 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1262 1263 test "$silent" = yes && exec 6>/dev/null 1264 1265 1266 ac_pwd=`pwd` && test -n "$ac_pwd" && 1267 ac_ls_di=`ls -di .` && 1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1269 as_fn_error $? "working directory cannot be determined" 1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1271 as_fn_error $? "pwd does not report name of working directory" 1272 1273 1274 # Find the source files, if location was not specified. 1275 if test -z "$srcdir"; then 1276 ac_srcdir_defaulted=yes 1277 # Try the directory containing this script, then the parent directory. 1278 ac_confdir=`$as_dirname -- "$as_myself" || 1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1280 X"$as_myself" : 'X\(//\)[^/]' \| \ 1281 X"$as_myself" : 'X\(//\)$' \| \ 1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1283 printf "%s\n" X"$as_myself" | 1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\/\)[^/].*/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\/\)$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\).*/{ 1297 s//\1/ 1298 q 1299 } 1300 s/.*/./; q'` 1301 srcdir=$ac_confdir 1302 if test ! -r "$srcdir/$ac_unique_file"; then 1303 srcdir=.. 1304 fi 1305 else 1306 ac_srcdir_defaulted=no 1307 fi 1308 if test ! -r "$srcdir/$ac_unique_file"; then 1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1311 fi 1312 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1313 ac_abs_confdir=`( 1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1315 pwd)` 1316 # When building in place, set srcdir=. 1317 if test "$ac_abs_confdir" = "$ac_pwd"; then 1318 srcdir=. 1319 fi 1320 # Remove unnecessary trailing slashes from srcdir. 1321 # Double slashes in file names in object file debugging info 1322 # mess up M-x gdb in Emacs. 1323 case $srcdir in 1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1325 esac 1326 for ac_var in $ac_precious_vars; do 1327 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_env_${ac_var}_value=\$${ac_var} 1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1331 done 1332 1333 # 1334 # Report the --help message. 1335 # 1336 if test "$ac_init_help" = "long"; then 1337 # Omit some internal or obsolete options to make the list less imposing. 1338 # This message is too long to be a string in the A/UX 3.1 sh. 1339 cat <<_ACEOF 1340 'configure' configures xdriinfo 1.0.8 to adapt to many kinds of systems. 1341 1342 Usage: $0 [OPTION]... [VAR=VALUE]... 1343 1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1345 VAR=VALUE. See below for descriptions of some of the useful variables. 1346 1347 Defaults for the options are specified in brackets. 1348 1349 Configuration: 1350 -h, --help display this help and exit 1351 --help=short display options specific to this package 1352 --help=recursive display the short help of all the included packages 1353 -V, --version display version information and exit 1354 -q, --quiet, --silent do not print 'checking ...' messages 1355 --cache-file=FILE cache test results in FILE [disabled] 1356 -C, --config-cache alias for '--cache-file=config.cache' 1357 -n, --no-create do not create output files 1358 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1359 1360 Installation directories: 1361 --prefix=PREFIX install architecture-independent files in PREFIX 1362 [$ac_default_prefix] 1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1364 [PREFIX] 1365 1366 By default, 'make install' will install all the files in 1367 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1368 an installation prefix other than '$ac_default_prefix' using '--prefix', 1369 for instance '--prefix=\$HOME'. 1370 1371 For better control, use the options below. 1372 1373 Fine tuning of the installation directories: 1374 --bindir=DIR user executables [EPREFIX/bin] 1375 --sbindir=DIR system admin executables [EPREFIX/sbin] 1376 --libexecdir=DIR program executables [EPREFIX/libexec] 1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1381 --libdir=DIR object code libraries [EPREFIX/lib] 1382 --includedir=DIR C header files [PREFIX/include] 1383 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1386 --infodir=DIR info documentation [DATAROOTDIR/info] 1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1388 --mandir=DIR man documentation [DATAROOTDIR/man] 1389 --docdir=DIR documentation root [DATAROOTDIR/doc/xdriinfo] 1390 --htmldir=DIR html documentation [DOCDIR] 1391 --dvidir=DIR dvi documentation [DOCDIR] 1392 --pdfdir=DIR pdf documentation [DOCDIR] 1393 --psdir=DIR ps documentation [DOCDIR] 1394 _ACEOF 1395 1396 cat <<\_ACEOF 1397 1398 Program names: 1399 --program-prefix=PREFIX prepend PREFIX to installed program names 1400 --program-suffix=SUFFIX append SUFFIX to installed program names 1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1402 1403 System types: 1404 --build=BUILD configure for building on BUILD [guessed] 1405 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1406 _ACEOF 1407 fi 1408 1409 if test -n "$ac_init_help"; then 1410 case $ac_init_help in 1411 short | recursive ) echo "Configuration of xdriinfo 1.0.8:";; 1412 esac 1413 cat <<\_ACEOF 1414 1415 Optional Features: 1416 --disable-option-checking ignore unrecognized --enable/--with options 1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1419 --enable-silent-rules less verbose build output (undo: "make V=1") 1420 --disable-silent-rules verbose build output (undo: "make V=0") 1421 --enable-dependency-tracking 1422 do not reject slow dependency extractors 1423 --disable-dependency-tracking 1424 speeds up one-time build 1425 --disable-selective-werror 1426 Turn off selective compiler errors. (default: 1427 enabled) 1428 --enable-strict-compilation 1429 Enable all warnings from compiler and make them 1430 errors (default: disabled) 1431 1432 Some influential environment variables: 1433 CC C compiler command 1434 CFLAGS C compiler flags 1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1436 nonstandard directory <lib dir> 1437 LIBS libraries to pass to the linker, e.g. -l<library> 1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1439 you have headers in a nonstandard directory <include dir> 1440 PKG_CONFIG path to pkg-config utility 1441 PKG_CONFIG_PATH 1442 directories to add to pkg-config's search path 1443 PKG_CONFIG_LIBDIR 1444 path overriding pkg-config's built-in search path 1445 XDRIINFO_CFLAGS 1446 C compiler flags for XDRIINFO, overriding pkg-config 1447 XDRIINFO_LIBS 1448 linker flags for XDRIINFO, overriding pkg-config 1449 1450 Use these variables to override the choices made by 'configure' or to help 1451 it to find libraries and programs with nonstandard names/locations. 1452 1453 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdriinfo/-/issues>. 1454 _ACEOF 1455 ac_status=$? 1456 fi 1457 1458 if test "$ac_init_help" = "recursive"; then 1459 # If there are subdirs, report their specific --help. 1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1461 test -d "$ac_dir" || 1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1463 continue 1464 ac_builddir=. 1465 1466 case "$ac_dir" in 1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468 *) 1469 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1470 # A ".." for each directory in $ac_dir_suffix. 1471 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1472 case $ac_top_builddir_sub in 1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1475 esac ;; 1476 esac 1477 ac_abs_top_builddir=$ac_pwd 1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1479 # for backward compatibility: 1480 ac_top_builddir=$ac_top_build_prefix 1481 1482 case $srcdir in 1483 .) # We are building in place. 1484 ac_srcdir=. 1485 ac_top_srcdir=$ac_top_builddir_sub 1486 ac_abs_top_srcdir=$ac_pwd ;; 1487 [\\/]* | ?:[\\/]* ) # Absolute name. 1488 ac_srcdir=$srcdir$ac_dir_suffix; 1489 ac_top_srcdir=$srcdir 1490 ac_abs_top_srcdir=$srcdir ;; 1491 *) # Relative name. 1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1493 ac_top_srcdir=$ac_top_build_prefix$srcdir 1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1495 esac 1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1497 1498 cd "$ac_dir" || { ac_status=$?; continue; } 1499 # Check for configure.gnu first; this name is used for a wrapper for 1500 # Metaconfig's "Configure" on case-insensitive file systems. 1501 if test -f "$ac_srcdir/configure.gnu"; then 1502 echo && 1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1504 elif test -f "$ac_srcdir/configure"; then 1505 echo && 1506 $SHELL "$ac_srcdir/configure" --help=recursive 1507 else 1508 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1509 fi || ac_status=$? 1510 cd "$ac_pwd" || { ac_status=$?; break; } 1511 done 1512 fi 1513 1514 test -n "$ac_init_help" && exit $ac_status 1515 if $ac_init_version; then 1516 cat <<\_ACEOF 1517 xdriinfo configure 1.0.8 1518 generated by GNU Autoconf 2.72 1519 1520 Copyright (C) 2023 Free Software Foundation, Inc. 1521 This configure script is free software; the Free Software Foundation 1522 gives unlimited permission to copy, distribute and modify it. 1523 _ACEOF 1524 exit 1525 fi 1526 1527 ## ------------------------ ## 1528 ## Autoconf initialization. ## 1529 ## ------------------------ ## 1530 1531 # ac_fn_c_try_compile LINENO 1532 # -------------------------- 1533 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1534 ac_fn_c_try_compile () 1535 { 1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1537 rm -f conftest.$ac_objext conftest.beam 1538 if { { ac_try="$ac_compile" 1539 case "(($ac_try" in 1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1541 *) ac_try_echo=$ac_try;; 1542 esac 1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1544 printf "%s\n" "$ac_try_echo"; } >&5 1545 (eval "$ac_compile") 2>conftest.err 1546 ac_status=$? 1547 if test -s conftest.err; then 1548 grep -v '^ *+' conftest.err >conftest.er1 1549 cat conftest.er1 >&5 1550 mv -f conftest.er1 conftest.err 1551 fi 1552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1553 test $ac_status = 0; } && { 1554 test -z "$ac_c_werror_flag" || 1555 test ! -s conftest.err 1556 } && test -s conftest.$ac_objext 1557 then : 1558 ac_retval=0 1559 else case e in #( 1560 e) printf "%s\n" "$as_me: failed program was:" >&5 1561 sed 's/^/| /' conftest.$ac_ext >&5 1562 1563 ac_retval=1 ;; 1564 esac 1565 fi 1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1567 as_fn_set_status $ac_retval 1568 1569 } # ac_fn_c_try_compile 1570 1571 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1572 # ------------------------------------------------------------------ 1573 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1574 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1575 ac_fn_check_decl () 1576 { 1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1578 as_decl_name=`echo $2|sed 's/ *(.*//'` 1579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1580 printf %s "checking whether $as_decl_name is declared... " >&6; } 1581 if eval test \${$3+y} 1582 then : 1583 printf %s "(cached) " >&6 1584 else case e in #( 1585 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1586 eval ac_save_FLAGS=\$$6 1587 as_fn_append $6 " $5" 1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1589 /* end confdefs.h. */ 1590 $4 1591 int 1592 main (void) 1593 { 1594 #ifndef $as_decl_name 1595 #ifdef __cplusplus 1596 (void) $as_decl_use; 1597 #else 1598 (void) $as_decl_name; 1599 #endif 1600 #endif 1601 1602 ; 1603 return 0; 1604 } 1605 _ACEOF 1606 if ac_fn_c_try_compile "$LINENO" 1607 then : 1608 eval "$3=yes" 1609 else case e in #( 1610 e) eval "$3=no" ;; 1611 esac 1612 fi 1613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1614 eval $6=\$ac_save_FLAGS 1615 ;; 1616 esac 1617 fi 1618 eval ac_res=\$$3 1619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1620 printf "%s\n" "$ac_res" >&6; } 1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1622 1623 } # ac_fn_check_decl 1624 1625 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1626 # ------------------------------------------------------- 1627 # Tests whether HEADER exists and can be compiled using the include files in 1628 # INCLUDES, setting the cache variable VAR accordingly. 1629 ac_fn_c_check_header_compile () 1630 { 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1633 printf %s "checking for $2... " >&6; } 1634 if eval test \${$3+y} 1635 then : 1636 printf %s "(cached) " >&6 1637 else case e in #( 1638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1639 /* end confdefs.h. */ 1640 $4 1641 #include <$2> 1642 _ACEOF 1643 if ac_fn_c_try_compile "$LINENO" 1644 then : 1645 eval "$3=yes" 1646 else case e in #( 1647 e) eval "$3=no" ;; 1648 esac 1649 fi 1650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1651 esac 1652 fi 1653 eval ac_res=\$$3 1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1655 printf "%s\n" "$ac_res" >&6; } 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 1658 } # ac_fn_c_check_header_compile 1659 1660 # ac_fn_c_try_link LINENO 1661 # ----------------------- 1662 # Try to link conftest.$ac_ext, and return whether this succeeded. 1663 ac_fn_c_try_link () 1664 { 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1667 if { { ac_try="$ac_link" 1668 case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671 esac 1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673 printf "%s\n" "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest$ac_exeext && { 1686 test "$cross_compiling" = yes || 1687 test -x conftest$ac_exeext 1688 } 1689 then : 1690 ac_retval=0 1691 else case e in #( 1692 e) printf "%s\n" "$as_me: failed program was:" >&5 1693 sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=1 ;; 1696 esac 1697 fi 1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1700 # interfere with the next link command; also delete a directory that is 1701 # left behind by Apple's compiler. We do this before executing the actions. 1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 as_fn_set_status $ac_retval 1705 1706 } # ac_fn_c_try_link 1707 ac_configure_args_raw= 1708 for ac_arg 1709 do 1710 case $ac_arg in 1711 *\'*) 1712 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1713 esac 1714 as_fn_append ac_configure_args_raw " '$ac_arg'" 1715 done 1716 1717 case $ac_configure_args_raw in 1718 *$as_nl*) 1719 ac_safe_unquote= ;; 1720 *) 1721 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1722 ac_unsafe_a="$ac_unsafe_z#~" 1723 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1724 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1725 esac 1726 1727 cat >config.log <<_ACEOF 1728 This file contains any messages produced by compilers while 1729 running configure, to aid debugging if configure makes a mistake. 1730 1731 It was created by xdriinfo $as_me 1.0.8, which was 1732 generated by GNU Autoconf 2.72. Invocation command line was 1733 1734 $ $0$ac_configure_args_raw 1735 1736 _ACEOF 1737 exec 5>>config.log 1738 { 1739 cat <<_ASUNAME 1740 ## --------- ## 1741 ## Platform. ## 1742 ## --------- ## 1743 1744 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1745 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1746 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1747 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1748 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1749 1750 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1751 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1752 1753 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1754 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1755 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1756 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1757 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1758 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1759 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1760 1761 _ASUNAME 1762 1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1764 for as_dir in $PATH 1765 do 1766 IFS=$as_save_IFS 1767 case $as_dir in #((( 1768 '') as_dir=./ ;; 1769 */) ;; 1770 *) as_dir=$as_dir/ ;; 1771 esac 1772 printf "%s\n" "PATH: $as_dir" 1773 done 1774 IFS=$as_save_IFS 1775 1776 } >&5 1777 1778 cat >&5 <<_ACEOF 1779 1780 1781 ## ----------- ## 1782 ## Core tests. ## 1783 ## ----------- ## 1784 1785 _ACEOF 1786 1787 1788 # Keep a trace of the command line. 1789 # Strip out --no-create and --no-recursion so they do not pile up. 1790 # Strip out --silent because we don't want to record it for future runs. 1791 # Also quote any args containing shell meta-characters. 1792 # Make two passes to allow for proper duplicate-argument suppression. 1793 ac_configure_args= 1794 ac_configure_args0= 1795 ac_configure_args1= 1796 ac_must_keep_next=false 1797 for ac_pass in 1 2 1798 do 1799 for ac_arg 1800 do 1801 case $ac_arg in 1802 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1804 | -silent | --silent | --silen | --sile | --sil) 1805 continue ;; 1806 *\'*) 1807 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1808 esac 1809 case $ac_pass in 1810 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1811 2) 1812 as_fn_append ac_configure_args1 " '$ac_arg'" 1813 if test $ac_must_keep_next = true; then 1814 ac_must_keep_next=false # Got value, back to normal. 1815 else 1816 case $ac_arg in 1817 *=* | --config-cache | -C | -disable-* | --disable-* \ 1818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1820 | -with-* | --with-* | -without-* | --without-* | --x) 1821 case "$ac_configure_args0 " in 1822 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1823 esac 1824 ;; 1825 -* ) ac_must_keep_next=true ;; 1826 esac 1827 fi 1828 as_fn_append ac_configure_args " '$ac_arg'" 1829 ;; 1830 esac 1831 done 1832 done 1833 { ac_configure_args0=; unset ac_configure_args0;} 1834 { ac_configure_args1=; unset ac_configure_args1;} 1835 1836 # When interrupted or exit'd, cleanup temporary files, and complete 1837 # config.log. We remove comments because anyway the quotes in there 1838 # would cause problems or look ugly. 1839 # WARNING: Use '\'' to represent an apostrophe within the trap. 1840 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1841 trap 'exit_status=$? 1842 # Sanitize IFS. 1843 IFS=" "" $as_nl" 1844 # Save into config.log some information that might help in debugging. 1845 { 1846 echo 1847 1848 printf "%s\n" "## ---------------- ## 1849 ## Cache variables. ## 1850 ## ---------------- ##" 1851 echo 1852 # The following way of writing the cache mishandles newlines in values, 1853 ( 1854 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1855 eval ac_val=\$$ac_var 1856 case $ac_val in #( 1857 *${as_nl}*) 1858 case $ac_var in #( 1859 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1860 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1861 esac 1862 case $ac_var in #( 1863 _ | IFS | as_nl) ;; #( 1864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1865 *) { eval $ac_var=; unset $ac_var;} ;; 1866 esac ;; 1867 esac 1868 done 1869 (set) 2>&1 | 1870 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1871 *${as_nl}ac_space=\ *) 1872 sed -n \ 1873 "s/'\''/'\''\\\\'\'''\''/g; 1874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1875 ;; #( 1876 *) 1877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1878 ;; 1879 esac | 1880 sort 1881 ) 1882 echo 1883 1884 printf "%s\n" "## ----------------- ## 1885 ## Output variables. ## 1886 ## ----------------- ##" 1887 echo 1888 for ac_var in $ac_subst_vars 1889 do 1890 eval ac_val=\$$ac_var 1891 case $ac_val in 1892 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1893 esac 1894 printf "%s\n" "$ac_var='\''$ac_val'\''" 1895 done | sort 1896 echo 1897 1898 if test -n "$ac_subst_files"; then 1899 printf "%s\n" "## ------------------- ## 1900 ## File substitutions. ## 1901 ## ------------------- ##" 1902 echo 1903 for ac_var in $ac_subst_files 1904 do 1905 eval ac_val=\$$ac_var 1906 case $ac_val in 1907 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1908 esac 1909 printf "%s\n" "$ac_var='\''$ac_val'\''" 1910 done | sort 1911 echo 1912 fi 1913 1914 if test -s confdefs.h; then 1915 printf "%s\n" "## ----------- ## 1916 ## confdefs.h. ## 1917 ## ----------- ##" 1918 echo 1919 cat confdefs.h 1920 echo 1921 fi 1922 test "$ac_signal" != 0 && 1923 printf "%s\n" "$as_me: caught signal $ac_signal" 1924 printf "%s\n" "$as_me: exit $exit_status" 1925 } >&5 1926 rm -f core *.core core.conftest.* && 1927 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1928 exit $exit_status 1929 ' 0 1930 for ac_signal in 1 2 13 15; do 1931 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1932 done 1933 ac_signal=0 1934 1935 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1936 rm -f -r conftest* confdefs.h 1937 1938 printf "%s\n" "/* confdefs.h */" > confdefs.h 1939 1940 # Predefined preprocessor variables. 1941 1942 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1943 1944 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1945 1946 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1947 1948 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1949 1950 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1951 1952 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1953 1954 1955 # Let the site file select an alternate cache file if it wants to. 1956 # Prefer an explicitly selected file to automatically selected ones. 1957 if test -n "$CONFIG_SITE"; then 1958 ac_site_files="$CONFIG_SITE" 1959 elif test "x$prefix" != xNONE; then 1960 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1961 else 1962 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1963 fi 1964 1965 for ac_site_file in $ac_site_files 1966 do 1967 case $ac_site_file in #( 1968 */*) : 1969 ;; #( 1970 *) : 1971 ac_site_file=./$ac_site_file ;; 1972 esac 1973 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1975 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1976 sed 's/^/| /' "$ac_site_file" >&5 1977 . "$ac_site_file" \ 1978 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1979 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1980 as_fn_error $? "failed to load site script $ac_site_file 1981 See 'config.log' for more details" "$LINENO" 5; } 1982 fi 1983 done 1984 1985 if test -r "$cache_file"; then 1986 # Some versions of bash will fail to source /dev/null (special files 1987 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1988 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1990 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1991 case $cache_file in 1992 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1993 *) . "./$cache_file";; 1994 esac 1995 fi 1996 else 1997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1998 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 1999 >$cache_file 2000 fi 2001 2002 # Test code for whether the C compiler supports C89 (global declarations) 2003 ac_c_conftest_c89_globals=' 2004 /* Does the compiler advertise C89 conformance? 2005 Do not test the value of __STDC__, because some compilers set it to 0 2006 while being otherwise adequately conformant. */ 2007 #if !defined __STDC__ 2008 # error "Compiler does not advertise C89 conformance" 2009 #endif 2010 2011 #include <stddef.h> 2012 #include <stdarg.h> 2013 struct stat; 2014 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2015 struct buf { int x; }; 2016 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2017 static char *e (char **p, int i) 2018 { 2019 return p[i]; 2020 } 2021 static char *f (char * (*g) (char **, int), char **p, ...) 2022 { 2023 char *s; 2024 va_list v; 2025 va_start (v,p); 2026 s = g (p, va_arg (v,int)); 2027 va_end (v); 2028 return s; 2029 } 2030 2031 /* C89 style stringification. */ 2032 #define noexpand_stringify(a) #a 2033 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2034 2035 /* C89 style token pasting. Exercises some of the corner cases that 2036 e.g. old MSVC gets wrong, but not very hard. */ 2037 #define noexpand_concat(a,b) a##b 2038 #define expand_concat(a,b) noexpand_concat(a,b) 2039 extern int vA; 2040 extern int vbee; 2041 #define aye A 2042 #define bee B 2043 int *pvA = &expand_concat(v,aye); 2044 int *pvbee = &noexpand_concat(v,bee); 2045 2046 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2047 function prototypes and stuff, but not \xHH hex character constants. 2048 These do not provoke an error unfortunately, instead are silently treated 2049 as an "x". The following induces an error, until -std is added to get 2050 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2051 array size at least. It is necessary to write \x00 == 0 to get something 2052 that is true only with -std. */ 2053 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2054 2055 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2056 inside strings and character constants. */ 2057 #define FOO(x) '\''x'\'' 2058 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2059 2060 int test (int i, double x); 2061 struct s1 {int (*f) (int a);}; 2062 struct s2 {int (*f) (double a);}; 2063 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2064 int, int);' 2065 2066 # Test code for whether the C compiler supports C89 (body of main). 2067 ac_c_conftest_c89_main=' 2068 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2069 ' 2070 2071 # Test code for whether the C compiler supports C99 (global declarations) 2072 ac_c_conftest_c99_globals=' 2073 /* Does the compiler advertise C99 conformance? */ 2074 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2075 # error "Compiler does not advertise C99 conformance" 2076 #endif 2077 2078 // See if C++-style comments work. 2079 2080 #include <stdbool.h> 2081 extern int puts (const char *); 2082 extern int printf (const char *, ...); 2083 extern int dprintf (int, const char *, ...); 2084 extern void *malloc (size_t); 2085 extern void free (void *); 2086 2087 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2088 // dprintf is used instead of fprintf to avoid needing to declare 2089 // FILE and stderr. 2090 #define debug(...) dprintf (2, __VA_ARGS__) 2091 #define showlist(...) puts (#__VA_ARGS__) 2092 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2093 static void 2094 test_varargs_macros (void) 2095 { 2096 int x = 1234; 2097 int y = 5678; 2098 debug ("Flag"); 2099 debug ("X = %d\n", x); 2100 showlist (The first, second, and third items.); 2101 report (x>y, "x is %d but y is %d", x, y); 2102 } 2103 2104 // Check long long types. 2105 #define BIG64 18446744073709551615ull 2106 #define BIG32 4294967295ul 2107 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2108 #if !BIG_OK 2109 #error "your preprocessor is broken" 2110 #endif 2111 #if BIG_OK 2112 #else 2113 #error "your preprocessor is broken" 2114 #endif 2115 static long long int bignum = -9223372036854775807LL; 2116 static unsigned long long int ubignum = BIG64; 2117 2118 struct incomplete_array 2119 { 2120 int datasize; 2121 double data[]; 2122 }; 2123 2124 struct named_init { 2125 int number; 2126 const wchar_t *name; 2127 double average; 2128 }; 2129 2130 typedef const char *ccp; 2131 2132 static inline int 2133 test_restrict (ccp restrict text) 2134 { 2135 // Iterate through items via the restricted pointer. 2136 // Also check for declarations in for loops. 2137 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2138 continue; 2139 return 0; 2140 } 2141 2142 // Check varargs and va_copy. 2143 static bool 2144 test_varargs (const char *format, ...) 2145 { 2146 va_list args; 2147 va_start (args, format); 2148 va_list args_copy; 2149 va_copy (args_copy, args); 2150 2151 const char *str = ""; 2152 int number = 0; 2153 float fnumber = 0; 2154 2155 while (*format) 2156 { 2157 switch (*format++) 2158 { 2159 case '\''s'\'': // string 2160 str = va_arg (args_copy, const char *); 2161 break; 2162 case '\''d'\'': // int 2163 number = va_arg (args_copy, int); 2164 break; 2165 case '\''f'\'': // float 2166 fnumber = va_arg (args_copy, double); 2167 break; 2168 default: 2169 break; 2170 } 2171 } 2172 va_end (args_copy); 2173 va_end (args); 2174 2175 return *str && number && fnumber; 2176 } 2177 ' 2178 2179 # Test code for whether the C compiler supports C99 (body of main). 2180 ac_c_conftest_c99_main=' 2181 // Check bool. 2182 _Bool success = false; 2183 success |= (argc != 0); 2184 2185 // Check restrict. 2186 if (test_restrict ("String literal") == 0) 2187 success = true; 2188 char *restrict newvar = "Another string"; 2189 2190 // Check varargs. 2191 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2192 test_varargs_macros (); 2193 2194 // Check flexible array members. 2195 struct incomplete_array *ia = 2196 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2197 ia->datasize = 10; 2198 for (int i = 0; i < ia->datasize; ++i) 2199 ia->data[i] = i * 1.234; 2200 // Work around memory leak warnings. 2201 free (ia); 2202 2203 // Check named initializers. 2204 struct named_init ni = { 2205 .number = 34, 2206 .name = L"Test wide string", 2207 .average = 543.34343, 2208 }; 2209 2210 ni.number = 58; 2211 2212 int dynamic_array[ni.number]; 2213 dynamic_array[0] = argv[0][0]; 2214 dynamic_array[ni.number - 1] = 543; 2215 2216 // work around unused variable warnings 2217 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2218 || dynamic_array[ni.number - 1] != 543); 2219 ' 2220 2221 # Test code for whether the C compiler supports C11 (global declarations) 2222 ac_c_conftest_c11_globals=' 2223 /* Does the compiler advertise C11 conformance? */ 2224 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2225 # error "Compiler does not advertise C11 conformance" 2226 #endif 2227 2228 // Check _Alignas. 2229 char _Alignas (double) aligned_as_double; 2230 char _Alignas (0) no_special_alignment; 2231 extern char aligned_as_int; 2232 char _Alignas (0) _Alignas (int) aligned_as_int; 2233 2234 // Check _Alignof. 2235 enum 2236 { 2237 int_alignment = _Alignof (int), 2238 int_array_alignment = _Alignof (int[100]), 2239 char_alignment = _Alignof (char) 2240 }; 2241 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2242 2243 // Check _Noreturn. 2244 int _Noreturn does_not_return (void) { for (;;) continue; } 2245 2246 // Check _Static_assert. 2247 struct test_static_assert 2248 { 2249 int x; 2250 _Static_assert (sizeof (int) <= sizeof (long int), 2251 "_Static_assert does not work in struct"); 2252 long int y; 2253 }; 2254 2255 // Check UTF-8 literals. 2256 #define u8 syntax error! 2257 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2258 2259 // Check duplicate typedefs. 2260 typedef long *long_ptr; 2261 typedef long int *long_ptr; 2262 typedef long_ptr long_ptr; 2263 2264 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2265 struct anonymous 2266 { 2267 union { 2268 struct { int i; int j; }; 2269 struct { int k; long int l; } w; 2270 }; 2271 int m; 2272 } v1; 2273 ' 2274 2275 # Test code for whether the C compiler supports C11 (body of main). 2276 ac_c_conftest_c11_main=' 2277 _Static_assert ((offsetof (struct anonymous, i) 2278 == offsetof (struct anonymous, w.k)), 2279 "Anonymous union alignment botch"); 2280 v1.i = 2; 2281 v1.w.k = 5; 2282 ok |= v1.i != 5; 2283 ' 2284 2285 # Test code for whether the C compiler supports C11 (complete). 2286 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2287 ${ac_c_conftest_c99_globals} 2288 ${ac_c_conftest_c11_globals} 2289 2290 int 2291 main (int argc, char **argv) 2292 { 2293 int ok = 0; 2294 ${ac_c_conftest_c89_main} 2295 ${ac_c_conftest_c99_main} 2296 ${ac_c_conftest_c11_main} 2297 return ok; 2298 } 2299 " 2300 2301 # Test code for whether the C compiler supports C99 (complete). 2302 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2303 ${ac_c_conftest_c99_globals} 2304 2305 int 2306 main (int argc, char **argv) 2307 { 2308 int ok = 0; 2309 ${ac_c_conftest_c89_main} 2310 ${ac_c_conftest_c99_main} 2311 return ok; 2312 } 2313 " 2314 2315 # Test code for whether the C compiler supports C89 (complete). 2316 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2317 2318 int 2319 main (int argc, char **argv) 2320 { 2321 int ok = 0; 2322 ${ac_c_conftest_c89_main} 2323 return ok; 2324 } 2325 " 2326 2327 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2328 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2329 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2330 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2331 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2332 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2333 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2334 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2335 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2336 2337 # Auxiliary files required by this configure script. 2338 ac_aux_files="config.guess config.sub compile missing install-sh" 2339 2340 # Locations in which to look for auxiliary files. 2341 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2342 2343 # Search for a directory containing all of the required auxiliary files, 2344 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2345 # If we don't find one directory that contains all the files we need, 2346 # we report the set of missing files from the *first* directory in 2347 # $ac_aux_dir_candidates and give up. 2348 ac_missing_aux_files="" 2349 ac_first_candidate=: 2350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352 as_found=false 2353 for as_dir in $ac_aux_dir_candidates 2354 do 2355 IFS=$as_save_IFS 2356 case $as_dir in #((( 2357 '') as_dir=./ ;; 2358 */) ;; 2359 *) as_dir=$as_dir/ ;; 2360 esac 2361 as_found=: 2362 2363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2364 ac_aux_dir_found=yes 2365 ac_install_sh= 2366 for ac_aux in $ac_aux_files 2367 do 2368 # As a special case, if "install-sh" is required, that requirement 2369 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2370 # and $ac_install_sh is set appropriately for whichever one is found. 2371 if test x"$ac_aux" = x"install-sh" 2372 then 2373 if 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}install.sh"; then 2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2378 ac_install_sh="${as_dir}install.sh -c" 2379 elif test -f "${as_dir}shtool"; then 2380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2381 ac_install_sh="${as_dir}shtool install -c" 2382 else 2383 ac_aux_dir_found=no 2384 if $ac_first_candidate; then 2385 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2386 else 2387 break 2388 fi 2389 fi 2390 else 2391 if test -f "${as_dir}${ac_aux}"; then 2392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2393 else 2394 ac_aux_dir_found=no 2395 if $ac_first_candidate; then 2396 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2397 else 2398 break 2399 fi 2400 fi 2401 fi 2402 done 2403 if test "$ac_aux_dir_found" = yes; then 2404 ac_aux_dir="$as_dir" 2405 break 2406 fi 2407 ac_first_candidate=false 2408 2409 as_found=false 2410 done 2411 IFS=$as_save_IFS 2412 if $as_found 2413 then : 2414 2415 else case e in #( 2416 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2417 esac 2418 fi 2419 2420 2421 # These three variables are undocumented and unsupported, 2422 # and are intended to be withdrawn in a future Autoconf release. 2423 # They can cause serious problems if a builder's source tree is in a directory 2424 # whose full name contains unusual characters. 2425 if test -f "${ac_aux_dir}config.guess"; then 2426 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2427 fi 2428 if test -f "${ac_aux_dir}config.sub"; then 2429 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2430 fi 2431 if test -f "$ac_aux_dir/configure"; then 2432 ac_configure="$SHELL ${ac_aux_dir}configure" 2433 fi 2434 2435 # Check that the precious variables saved in the cache have kept the same 2436 # value. 2437 ac_cache_corrupted=false 2438 for ac_var in $ac_precious_vars; do 2439 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2440 eval ac_new_set=\$ac_env_${ac_var}_set 2441 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2442 eval ac_new_val=\$ac_env_${ac_var}_value 2443 case $ac_old_set,$ac_new_set in 2444 set,) 2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2446 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2447 ac_cache_corrupted=: ;; 2448 ,set) 2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2450 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2451 ac_cache_corrupted=: ;; 2452 ,);; 2453 *) 2454 if test "x$ac_old_val" != "x$ac_new_val"; then 2455 # differences in whitespace do not lead to failure. 2456 ac_old_val_w=`echo x $ac_old_val` 2457 ac_new_val_w=`echo x $ac_new_val` 2458 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2460 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2461 ac_cache_corrupted=: 2462 else 2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2464 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2465 eval $ac_var=\$ac_old_val 2466 fi 2467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2468 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2470 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2471 fi;; 2472 esac 2473 # Pass precious variables to config.status. 2474 if test "$ac_new_set" = set; then 2475 case $ac_new_val in 2476 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2477 *) ac_arg=$ac_var=$ac_new_val ;; 2478 esac 2479 case " $ac_configure_args " in 2480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2481 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2482 esac 2483 fi 2484 done 2485 if $ac_cache_corrupted; then 2486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2487 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2489 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2490 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2491 and start over" "$LINENO" 5 2492 fi 2493 ## -------------------- ## 2494 ## Main body of script. ## 2495 ## -------------------- ## 2496 2497 ac_ext=c 2498 ac_cpp='$CPP $CPPFLAGS' 2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2502 2503 2504 2505 ac_config_headers="$ac_config_headers config.h" 2506 2507 2508 # Initialize Automake 2509 am__api_version='1.18' 2510 2511 2512 2513 # Find a good install program. We prefer a C program (faster), 2514 # so one script is as good as another. But avoid the broken or 2515 # incompatible versions: 2516 # SysV /etc/install, /usr/sbin/install 2517 # SunOS /usr/etc/install 2518 # IRIX /sbin/install 2519 # AIX /bin/install 2520 # AmigaOS /C/install, which installs bootblocks on floppy discs 2521 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2522 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2523 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2524 # OS/2's system install, which has a completely different semantic 2525 # ./install, which can be erroneously created by make from ./install.sh. 2526 # Reject install programs that cannot install multiple files. 2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2528 printf %s "checking for a BSD-compatible install... " >&6; } 2529 if test -z "$INSTALL"; then 2530 if test ${ac_cv_path_install+y} 2531 then : 2532 printf %s "(cached) " >&6 2533 else case e in #( 2534 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2535 for as_dir in $PATH 2536 do 2537 IFS=$as_save_IFS 2538 case $as_dir in #((( 2539 '') as_dir=./ ;; 2540 */) ;; 2541 *) as_dir=$as_dir/ ;; 2542 esac 2543 # Account for fact that we put trailing slashes in our PATH walk. 2544 case $as_dir in #(( 2545 ./ | /[cC]/* | \ 2546 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2547 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2548 /usr/ucb/* ) ;; 2549 *) 2550 # OSF1 and SCO ODT 3.0 have their own names for install. 2551 # Don't use installbsd from OSF since it installs stuff as root 2552 # by default. 2553 for ac_prog in ginstall scoinst install; do 2554 for ac_exec_ext in '' $ac_executable_extensions; do 2555 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2556 if test $ac_prog = install && 2557 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2558 # AIX install. It has an incompatible calling convention. 2559 : 2560 elif test $ac_prog = install && 2561 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2562 # program-specific install script used by HP pwplus--don't use. 2563 : 2564 else 2565 rm -rf conftest.one conftest.two conftest.dir 2566 echo one > conftest.one 2567 echo two > conftest.two 2568 mkdir conftest.dir 2569 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2570 test -s conftest.one && test -s conftest.two && 2571 test -s conftest.dir/conftest.one && 2572 test -s conftest.dir/conftest.two 2573 then 2574 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2575 break 3 2576 fi 2577 fi 2578 fi 2579 done 2580 done 2581 ;; 2582 esac 2583 2584 done 2585 IFS=$as_save_IFS 2586 2587 rm -rf conftest.one conftest.two conftest.dir 2588 ;; 2589 esac 2590 fi 2591 if test ${ac_cv_path_install+y}; then 2592 INSTALL=$ac_cv_path_install 2593 else 2594 # As a last resort, use the slow shell script. Don't cache a 2595 # value for INSTALL within a source directory, because that will 2596 # break other packages using the cache if that directory is 2597 # removed, or if the value is a relative name. 2598 INSTALL=$ac_install_sh 2599 fi 2600 fi 2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2602 printf "%s\n" "$INSTALL" >&6; } 2603 2604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2605 # It thinks the first close brace ends the variable substitution. 2606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2607 2608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2609 2610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2611 2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2613 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2614 if test ${am_cv_sleep_fractional_seconds+y} 2615 then : 2616 printf %s "(cached) " >&6 2617 else case e in #( 2618 e) if sleep 0.001 2>/dev/null 2619 then : 2620 am_cv_sleep_fractional_seconds=yes 2621 else case e in #( 2622 e) am_cv_sleep_fractional_seconds=no ;; 2623 esac 2624 fi 2625 ;; 2626 esac 2627 fi 2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2629 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2630 2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2632 printf %s "checking filesystem timestamp resolution... " >&6; } 2633 if test ${am_cv_filesystem_timestamp_resolution+y} 2634 then : 2635 printf %s "(cached) " >&6 2636 else case e in #( 2637 e) # Default to the worst case. 2638 am_cv_filesystem_timestamp_resolution=2 2639 2640 # Only try to go finer than 1 sec if sleep can do it. 2641 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2642 # - 1 sec is not much of a win compared to 2 sec, and 2643 # - it takes 2 seconds to perform the test whether 1 sec works. 2644 # 2645 # Instead, just use the default 2s on platforms that have 1s resolution, 2646 # accept the extra 1s delay when using $sleep in the Automake tests, in 2647 # exchange for not incurring the 2s delay for running the test for all 2648 # packages. 2649 # 2650 am_try_resolutions= 2651 if test "$am_cv_sleep_fractional_seconds" = yes; then 2652 # Even a millisecond often causes a bunch of false positives, 2653 # so just try a hundredth of a second. The time saved between .001 and 2654 # .01 is not terribly consequential. 2655 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2656 fi 2657 2658 # In order to catch current-generation FAT out, we must *modify* files 2659 # that already exist; the *creation* timestamp is finer. Use names 2660 # that make ls -t sort them differently when they have equal 2661 # timestamps than when they have distinct timestamps, keeping 2662 # in mind that ls -t prints the *newest* file first. 2663 rm -f conftest.ts? 2664 : > conftest.ts1 2665 : > conftest.ts2 2666 : > conftest.ts3 2667 2668 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2669 # clobber the current shell's arguments. (Outer-level square brackets 2670 # are removed by m4; they're present so that m4 does not expand 2671 # <dollar><star>; be careful, easy to get confused.) 2672 if ( 2673 set X `ls -t conftest.ts[12]` && 2674 { 2675 test "$*" != "X conftest.ts1 conftest.ts2" || 2676 test "$*" != "X conftest.ts2 conftest.ts1"; 2677 } 2678 ); then :; else 2679 # If neither matched, then we have a broken ls. This can happen 2680 # if, for instance, CONFIG_SHELL is bash and it inherits a 2681 # broken ls alias from the environment. This has actually 2682 # happened. Such a system could not be considered "sane". 2683 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2684 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2685 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2686 as_fn_error $? "ls -t produces unexpected output. 2687 Make sure there is not a broken ls alias in your environment. 2688 See 'config.log' for more details" "$LINENO" 5; } 2689 fi 2690 2691 for am_try_res in $am_try_resolutions; do 2692 # Any one fine-grained sleep might happen to cross the boundary 2693 # between two values of a coarser actual resolution, but if we do 2694 # two fine-grained sleeps in a row, at least one of them will fall 2695 # entirely within a coarse interval. 2696 echo alpha > conftest.ts1 2697 sleep $am_try_res 2698 echo beta > conftest.ts2 2699 sleep $am_try_res 2700 echo gamma > conftest.ts3 2701 2702 # We assume that 'ls -t' will make use of high-resolution 2703 # timestamps if the operating system supports them at all. 2704 if (set X `ls -t conftest.ts?` && 2705 test "$2" = conftest.ts3 && 2706 test "$3" = conftest.ts2 && 2707 test "$4" = conftest.ts1); then 2708 # 2709 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2710 # because we don't need to test make. 2711 make_ok=true 2712 if test $am_try_res != 1; then 2713 # But if we've succeeded so far with a subsecond resolution, we 2714 # have one more thing to check: make. It can happen that 2715 # everything else supports the subsecond mtimes, but make doesn't; 2716 # notably on macOS, which ships make 3.81 from 2006 (the last one 2717 # released under GPLv2). https://bugs.gnu.org/68808 2718 # 2719 # We test $MAKE if it is defined in the environment, else "make". 2720 # It might get overridden later, but our hope is that in practice 2721 # it does not matter: it is the system "make" which is (by far) 2722 # the most likely to be broken, whereas if the user overrides it, 2723 # probably they did so with a better, or at least not worse, make. 2724 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2725 # 2726 # Create a Makefile (real tab character here): 2727 rm -f conftest.mk 2728 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2729 echo ' touch conftest.ts2' >>conftest.mk 2730 # 2731 # Now, running 2732 # touch conftest.ts1; touch conftest.ts2; make 2733 # should touch ts1 because ts2 is newer. This could happen by luck, 2734 # but most often, it will fail if make's support is insufficient. So 2735 # test for several consecutive successes. 2736 # 2737 # (We reuse conftest.ts[12] because we still want to modify existing 2738 # files, not create new ones, per above.) 2739 n=0 2740 make=${MAKE-make} 2741 until test $n -eq 3; do 2742 echo one > conftest.ts1 2743 sleep $am_try_res 2744 echo two > conftest.ts2 # ts2 should now be newer than ts1 2745 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2746 make_ok=false 2747 break # out of $n loop 2748 fi 2749 n=`expr $n + 1` 2750 done 2751 fi 2752 # 2753 if $make_ok; then 2754 # Everything we know to check worked out, so call this resolution good. 2755 am_cv_filesystem_timestamp_resolution=$am_try_res 2756 break # out of $am_try_res loop 2757 fi 2758 # Otherwise, we'll go on to check the next resolution. 2759 fi 2760 done 2761 rm -f conftest.ts? 2762 # (end _am_filesystem_timestamp_resolution) 2763 ;; 2764 esac 2765 fi 2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2767 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2768 2769 # This check should not be cached, as it may vary across builds of 2770 # different projects. 2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2772 printf %s "checking whether build environment is sane... " >&6; } 2773 # Reject unsafe characters in $srcdir or the absolute working directory 2774 # name. Accept space and tab only in the latter. 2775 am_lf=' 2776 ' 2777 case `pwd` in 2778 *[\\\"\#\$\&\'\`$am_lf]*) 2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2780 printf "%s\n" "no" >&6; } 2781 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2782 esac 2783 case $srcdir in 2784 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2786 printf "%s\n" "no" >&6; } 2787 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2788 esac 2789 2790 # Do 'set' in a subshell so we don't clobber the current shell's 2791 # arguments. Must try -L first in case configure is actually a 2792 # symlink; some systems play weird games with the mod time of symlinks 2793 # (eg FreeBSD returns the mod time of the symlink's containing 2794 # directory). 2795 am_build_env_is_sane=no 2796 am_has_slept=no 2797 rm -f conftest.file 2798 for am_try in 1 2; do 2799 echo "timestamp, slept: $am_has_slept" > conftest.file 2800 if ( 2801 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2802 if test "$*" = "X"; then 2803 # -L didn't work. 2804 set X `ls -t "$srcdir/configure" conftest.file` 2805 fi 2806 test "$2" = conftest.file 2807 ); then 2808 am_build_env_is_sane=yes 2809 break 2810 fi 2811 # Just in case. 2812 sleep "$am_cv_filesystem_timestamp_resolution" 2813 am_has_slept=yes 2814 done 2815 2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2817 printf "%s\n" "$am_build_env_is_sane" >&6; } 2818 if test "$am_build_env_is_sane" = no; then 2819 as_fn_error $? "newly created file is older than distributed files! 2820 Check your system clock" "$LINENO" 5 2821 fi 2822 2823 # If we didn't sleep, we still need to ensure time stamps of config.status and 2824 # generated files are strictly newer. 2825 am_sleep_pid= 2826 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2827 then : 2828 2829 else case e in #( 2830 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2831 am_sleep_pid=$! 2832 ;; 2833 esac 2834 fi 2835 2836 rm -f conftest.file 2837 2838 test "$program_prefix" != NONE && 2839 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2840 # Use a double $ so make ignores it. 2841 test "$program_suffix" != NONE && 2842 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2843 # Double any \ or $. 2844 # By default was 's,x,x', remove it if useless. 2845 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2846 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2847 2848 2849 # Expand $ac_aux_dir to an absolute path. 2850 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2851 2852 2853 if test x"${MISSING+set}" != xset; then 2854 MISSING="\${SHELL} '$am_aux_dir/missing'" 2855 fi 2856 # Use eval to expand $SHELL 2857 if eval "$MISSING --is-lightweight"; then 2858 am_missing_run="$MISSING " 2859 else 2860 am_missing_run= 2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2862 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2863 fi 2864 2865 if test x"${install_sh+set}" != xset; then 2866 case $am_aux_dir in 2867 *\ * | *\ *) 2868 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2869 *) 2870 install_sh="\${SHELL} $am_aux_dir/install-sh" 2871 esac 2872 fi 2873 2874 # Installed binaries are usually stripped using 'strip' when the user 2875 # run "make install-strip". However 'strip' might not be the right 2876 # tool to use in cross-compilation environments, therefore Automake 2877 # will honor the 'STRIP' environment variable to overrule this program. 2878 if test "$cross_compiling" != no; then 2879 if test -n "$ac_tool_prefix"; then 2880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2881 set dummy ${ac_tool_prefix}strip; ac_word=$2 2882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2883 printf %s "checking for $ac_word... " >&6; } 2884 if test ${ac_cv_prog_STRIP+y} 2885 then : 2886 printf %s "(cached) " >&6 2887 else case e in #( 2888 e) if test -n "$STRIP"; then 2889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2890 else 2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2892 for as_dir in $PATH 2893 do 2894 IFS=$as_save_IFS 2895 case $as_dir in #((( 2896 '') as_dir=./ ;; 2897 */) ;; 2898 *) as_dir=$as_dir/ ;; 2899 esac 2900 for ac_exec_ext in '' $ac_executable_extensions; do 2901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2902 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2904 break 2 2905 fi 2906 done 2907 done 2908 IFS=$as_save_IFS 2909 2910 fi ;; 2911 esac 2912 fi 2913 STRIP=$ac_cv_prog_STRIP 2914 if test -n "$STRIP"; then 2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2916 printf "%s\n" "$STRIP" >&6; } 2917 else 2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919 printf "%s\n" "no" >&6; } 2920 fi 2921 2922 2923 fi 2924 if test -z "$ac_cv_prog_STRIP"; then 2925 ac_ct_STRIP=$STRIP 2926 # Extract the first word of "strip", so it can be a program name with args. 2927 set dummy strip; ac_word=$2 2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2929 printf %s "checking for $ac_word... " >&6; } 2930 if test ${ac_cv_prog_ac_ct_STRIP+y} 2931 then : 2932 printf %s "(cached) " >&6 2933 else case e in #( 2934 e) if test -n "$ac_ct_STRIP"; then 2935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2936 else 2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938 for as_dir in $PATH 2939 do 2940 IFS=$as_save_IFS 2941 case $as_dir in #((( 2942 '') as_dir=./ ;; 2943 */) ;; 2944 *) as_dir=$as_dir/ ;; 2945 esac 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2948 ac_cv_prog_ac_ct_STRIP="strip" 2949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2950 break 2 2951 fi 2952 done 2953 done 2954 IFS=$as_save_IFS 2955 2956 fi ;; 2957 esac 2958 fi 2959 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2960 if test -n "$ac_ct_STRIP"; then 2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2962 printf "%s\n" "$ac_ct_STRIP" >&6; } 2963 else 2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2965 printf "%s\n" "no" >&6; } 2966 fi 2967 2968 if test "x$ac_ct_STRIP" = x; then 2969 STRIP=":" 2970 else 2971 case $cross_compiling:$ac_tool_warned in 2972 yes:) 2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2974 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2975 ac_tool_warned=yes ;; 2976 esac 2977 STRIP=$ac_ct_STRIP 2978 fi 2979 else 2980 STRIP="$ac_cv_prog_STRIP" 2981 fi 2982 2983 fi 2984 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2985 2986 2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2988 printf %s "checking for a race-free mkdir -p... " >&6; } 2989 if test -z "$MKDIR_P"; then 2990 if test ${ac_cv_path_mkdir+y} 2991 then : 2992 printf %s "(cached) " >&6 2993 else case e in #( 2994 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2995 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2996 do 2997 IFS=$as_save_IFS 2998 case $as_dir in #((( 2999 '') as_dir=./ ;; 3000 */) ;; 3001 *) as_dir=$as_dir/ ;; 3002 esac 3003 for ac_prog in mkdir gmkdir; do 3004 for ac_exec_ext in '' $ac_executable_extensions; do 3005 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3006 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3007 'mkdir ('*'coreutils) '* | \ 3008 *'BusyBox '* | \ 3009 'mkdir (fileutils) '4.1*) 3010 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3011 break 3;; 3012 esac 3013 done 3014 done 3015 done 3016 IFS=$as_save_IFS 3017 ;; 3018 esac 3019 fi 3020 3021 test -d ./--version && rmdir ./--version 3022 if test ${ac_cv_path_mkdir+y}; then 3023 MKDIR_P="$ac_cv_path_mkdir -p" 3024 else 3025 # As a last resort, use plain mkdir -p, 3026 # in the hope it doesn't have the bugs of ancient mkdir. 3027 MKDIR_P='mkdir -p' 3028 fi 3029 fi 3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3031 printf "%s\n" "$MKDIR_P" >&6; } 3032 3033 for ac_prog in gawk mawk nawk awk 3034 do 3035 # Extract the first word of "$ac_prog", so it can be a program name with args. 3036 set dummy $ac_prog; ac_word=$2 3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3038 printf %s "checking for $ac_word... " >&6; } 3039 if test ${ac_cv_prog_AWK+y} 3040 then : 3041 printf %s "(cached) " >&6 3042 else case e in #( 3043 e) if test -n "$AWK"; then 3044 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3045 else 3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3047 for as_dir in $PATH 3048 do 3049 IFS=$as_save_IFS 3050 case $as_dir in #((( 3051 '') as_dir=./ ;; 3052 */) ;; 3053 *) as_dir=$as_dir/ ;; 3054 esac 3055 for ac_exec_ext in '' $ac_executable_extensions; do 3056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3057 ac_cv_prog_AWK="$ac_prog" 3058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3059 break 2 3060 fi 3061 done 3062 done 3063 IFS=$as_save_IFS 3064 3065 fi ;; 3066 esac 3067 fi 3068 AWK=$ac_cv_prog_AWK 3069 if test -n "$AWK"; then 3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3071 printf "%s\n" "$AWK" >&6; } 3072 else 3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3074 printf "%s\n" "no" >&6; } 3075 fi 3076 3077 3078 test -n "$AWK" && break 3079 done 3080 3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3082 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3083 set x ${MAKE-make} 3084 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3085 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3086 then : 3087 printf %s "(cached) " >&6 3088 else case e in #( 3089 e) cat >conftest.make <<\_ACEOF 3090 SHELL = /bin/sh 3091 all: 3092 @echo '@@@%%%=$(MAKE)=@@@%%%' 3093 _ACEOF 3094 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3095 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3096 *@@@%%%=?*=@@@%%%*) 3097 eval ac_cv_prog_make_${ac_make}_set=yes;; 3098 *) 3099 eval ac_cv_prog_make_${ac_make}_set=no;; 3100 esac 3101 rm -f conftest.make ;; 3102 esac 3103 fi 3104 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3106 printf "%s\n" "yes" >&6; } 3107 SET_MAKE= 3108 else 3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3110 printf "%s\n" "no" >&6; } 3111 SET_MAKE="MAKE=${MAKE-make}" 3112 fi 3113 3114 rm -rf .tst 2>/dev/null 3115 mkdir .tst 2>/dev/null 3116 if test -d .tst; then 3117 am__leading_dot=. 3118 else 3119 am__leading_dot=_ 3120 fi 3121 rmdir .tst 2>/dev/null 3122 3123 AM_DEFAULT_VERBOSITY=1 3124 # Check whether --enable-silent-rules was given. 3125 if test ${enable_silent_rules+y} 3126 then : 3127 enableval=$enable_silent_rules; 3128 fi 3129 3130 am_make=${MAKE-make} 3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3132 printf %s "checking whether $am_make supports nested variables... " >&6; } 3133 if test ${am_cv_make_support_nested_variables+y} 3134 then : 3135 printf %s "(cached) " >&6 3136 else case e in #( 3137 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3138 BAR0=false 3139 BAR1=true 3140 V=1 3141 am__doit: 3142 @$(TRUE) 3143 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3144 am_cv_make_support_nested_variables=yes 3145 else 3146 am_cv_make_support_nested_variables=no 3147 fi ;; 3148 esac 3149 fi 3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3151 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3152 AM_BACKSLASH='\' 3153 3154 am__rm_f_notfound= 3155 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3156 then : 3157 3158 else case e in #( 3159 e) am__rm_f_notfound='""' ;; 3160 esac 3161 fi 3162 3163 3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3165 printf %s "checking xargs -n works... " >&6; } 3166 if test ${am_cv_xargs_n_works+y} 3167 then : 3168 printf %s "(cached) " >&6 3169 else case e in #( 3170 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3171 3" 3172 then : 3173 am_cv_xargs_n_works=yes 3174 else case e in #( 3175 e) am_cv_xargs_n_works=no ;; 3176 esac 3177 fi ;; 3178 esac 3179 fi 3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3181 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3182 if test "$am_cv_xargs_n_works" = yes 3183 then : 3184 am__xargs_n='xargs -n' 3185 else case e in #( 3186 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3187 ;; 3188 esac 3189 fi 3190 3191 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3192 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3193 # is not polluted with repeated "-I." 3194 am__isrc=' -I$(srcdir)' 3195 # test to see if srcdir already configured 3196 if test -f $srcdir/config.status; then 3197 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3198 fi 3199 fi 3200 3201 # test whether we have cygpath 3202 if test -z "$CYGPATH_W"; then 3203 if (cygpath --version) >/dev/null 2>/dev/null; then 3204 CYGPATH_W='cygpath -w' 3205 else 3206 CYGPATH_W=echo 3207 fi 3208 fi 3209 3210 3211 # Define the identity of the package. 3212 PACKAGE='xdriinfo' 3213 VERSION='1.0.8' 3214 3215 3216 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3217 3218 3219 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3220 3221 # Some tools Automake needs. 3222 3223 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3224 3225 3226 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3227 3228 3229 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3230 3231 3232 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3233 3234 3235 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3236 3237 # For better backward compatibility. To be removed once Automake 1.9.x 3238 # dies out for good. For more background, see: 3239 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3240 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3241 mkdir_p='$(MKDIR_P)' 3242 3243 # We need awk for the "check" target (and possibly the TAP driver). The 3244 # system "awk" is bad on some platforms. 3245 # Always define AMTAR for backward compatibility. Yes, it's still used 3246 # in the wild :-( We should find a proper way to deprecate it ... 3247 AMTAR='$${TAR-tar}' 3248 3249 3250 # We'll loop over all known methods to create a tar archive until one works. 3251 _am_tools='gnutar plaintar pax cpio none' 3252 3253 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 3254 # There is notably a 21 bits limit for the UID and the GID. In fact, 3255 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3256 # and bug#13588). 3257 am_max_uid=2097151 # 2^21 - 1 3258 am_max_gid=$am_max_uid 3259 # The $UID and $GID variables are not portable, so we need to resort 3260 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3261 # below are definitely unexpected, so allow the users to see them 3262 # (that is, avoid stderr redirection). 3263 am_uid=`id -u || echo unknown` 3264 am_gid=`id -g || echo unknown` 3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3266 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3267 if test x$am_uid = xunknown; then 3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 3269 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 3270 elif test $am_uid -le $am_max_uid; then 3271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3272 printf "%s\n" "yes" >&6; } 3273 else 3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3275 printf "%s\n" "no" >&6; } 3276 _am_tools=none 3277 fi 3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3279 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3280 if test x$gm_gid = xunknown; then 3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 3282 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 3283 elif test $am_gid -le $am_max_gid; then 3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3285 printf "%s\n" "yes" >&6; } 3286 else 3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3288 printf "%s\n" "no" >&6; } 3289 _am_tools=none 3290 fi 3291 3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3293 printf %s "checking how to create a ustar tar archive... " >&6; } 3294 3295 # Go ahead even if we have the value already cached. We do so because we 3296 # need to set the values for the 'am__tar' and 'am__untar' variables. 3297 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3298 3299 for _am_tool in $_am_tools; do 3300 case $_am_tool in 3301 gnutar) 3302 for _am_tar in tar gnutar gtar; do 3303 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3304 ($_am_tar --version) >&5 2>&5 3305 ac_status=$? 3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3307 (exit $ac_status); } && break 3308 done 3309 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3310 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3311 am__untar="$_am_tar -xf -" 3312 ;; 3313 plaintar) 3314 # Must skip GNU tar: if it does not support --format= it doesn't create 3315 # ustar tarball either. 3316 (tar --version) >/dev/null 2>&1 && continue 3317 am__tar='tar chf - "$$tardir"' 3318 am__tar_='tar chf - "$tardir"' 3319 am__untar='tar xf -' 3320 ;; 3321 pax) 3322 am__tar='pax -L -x ustar -w "$$tardir"' 3323 am__tar_='pax -L -x ustar -w "$tardir"' 3324 am__untar='pax -r' 3325 ;; 3326 cpio) 3327 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3328 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3329 am__untar='cpio -i -H ustar -d' 3330 ;; 3331 none) 3332 am__tar=false 3333 am__tar_=false 3334 am__untar=false 3335 ;; 3336 esac 3337 3338 # If the value was cached, stop now. We just wanted to have am__tar 3339 # and am__untar set. 3340 test -n "${am_cv_prog_tar_ustar}" && break 3341 3342 # tar/untar a dummy directory, and stop if the command works. 3343 rm -rf conftest.dir 3344 mkdir conftest.dir 3345 echo GrepMe > conftest.dir/file 3346 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3347 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3348 ac_status=$? 3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3350 (exit $ac_status); } 3351 rm -rf conftest.dir 3352 if test -s conftest.tar; then 3353 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3354 ($am__untar <conftest.tar) >&5 2>&5 3355 ac_status=$? 3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); } 3358 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3359 (cat conftest.dir/file) >&5 2>&5 3360 ac_status=$? 3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3362 (exit $ac_status); } 3363 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3364 fi 3365 done 3366 rm -rf conftest.dir 3367 3368 if test ${am_cv_prog_tar_ustar+y} 3369 then : 3370 printf %s "(cached) " >&6 3371 else case e in #( 3372 e) am_cv_prog_tar_ustar=$_am_tool ;; 3373 esac 3374 fi 3375 3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3377 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 3378 3379 3380 3381 3382 3383 # Variables for tags utilities; see am/tags.am 3384 if test -z "$CTAGS"; then 3385 CTAGS=ctags 3386 fi 3387 3388 if test -z "$ETAGS"; then 3389 ETAGS=etags 3390 fi 3391 3392 if test -z "$CSCOPE"; then 3393 CSCOPE=cscope 3394 fi 3395 3396 3397 3398 3399 3400 3401 3402 3403 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 DEPDIR="${am__leading_dot}deps" 3425 3426 ac_config_commands="$ac_config_commands depfiles" 3427 3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3429 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3430 cat > confinc.mk << 'END' 3431 am__doit: 3432 @echo this is the am__doit target >confinc.out 3433 .PHONY: am__doit 3434 END 3435 am__include="#" 3436 am__quote= 3437 # BSD make does it like this. 3438 echo '.include "confinc.mk" # ignored' > confmf.BSD 3439 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3440 echo 'include confinc.mk # ignored' > confmf.GNU 3441 _am_result=no 3442 for s in GNU BSD; do 3443 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3444 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3445 ac_status=$? 3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3447 (exit $ac_status); } 3448 case $?:`cat confinc.out 2>/dev/null` in #( 3449 '0:this is the am__doit target') : 3450 case $s in #( 3451 BSD) : 3452 am__include='.include' am__quote='"' ;; #( 3453 *) : 3454 am__include='include' am__quote='' ;; 3455 esac ;; #( 3456 *) : 3457 ;; 3458 esac 3459 if test "$am__include" != "#"; then 3460 _am_result="yes ($s style)" 3461 break 3462 fi 3463 done 3464 rm -f confinc.* confmf.* 3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3466 printf "%s\n" "${_am_result}" >&6; } 3467 3468 # Check whether --enable-dependency-tracking was given. 3469 if test ${enable_dependency_tracking+y} 3470 then : 3471 enableval=$enable_dependency_tracking; 3472 fi 3473 3474 if test "x$enable_dependency_tracking" != xno; then 3475 am_depcomp="$ac_aux_dir/depcomp" 3476 AMDEPBACKSLASH='\' 3477 am__nodep='_no' 3478 fi 3479 if test "x$enable_dependency_tracking" != xno; then 3480 AMDEP_TRUE= 3481 AMDEP_FALSE='#' 3482 else 3483 AMDEP_TRUE='#' 3484 AMDEP_FALSE= 3485 fi 3486 3487 3488 ac_ext=c 3489 ac_cpp='$CPP $CPPFLAGS' 3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3493 if test -n "$ac_tool_prefix"; then 3494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3495 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3497 printf %s "checking for $ac_word... " >&6; } 3498 if test ${ac_cv_prog_CC+y} 3499 then : 3500 printf %s "(cached) " >&6 3501 else case e in #( 3502 e) if test -n "$CC"; then 3503 ac_cv_prog_CC="$CC" # Let the user override the test. 3504 else 3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3506 for as_dir in $PATH 3507 do 3508 IFS=$as_save_IFS 3509 case $as_dir in #((( 3510 '') as_dir=./ ;; 3511 */) ;; 3512 *) as_dir=$as_dir/ ;; 3513 esac 3514 for ac_exec_ext in '' $ac_executable_extensions; do 3515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3516 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3518 break 2 3519 fi 3520 done 3521 done 3522 IFS=$as_save_IFS 3523 3524 fi ;; 3525 esac 3526 fi 3527 CC=$ac_cv_prog_CC 3528 if test -n "$CC"; then 3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3530 printf "%s\n" "$CC" >&6; } 3531 else 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3533 printf "%s\n" "no" >&6; } 3534 fi 3535 3536 3537 fi 3538 if test -z "$ac_cv_prog_CC"; then 3539 ac_ct_CC=$CC 3540 # Extract the first word of "gcc", so it can be a program name with args. 3541 set dummy gcc; ac_word=$2 3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3543 printf %s "checking for $ac_word... " >&6; } 3544 if test ${ac_cv_prog_ac_ct_CC+y} 3545 then : 3546 printf %s "(cached) " >&6 3547 else case e in #( 3548 e) if test -n "$ac_ct_CC"; then 3549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3550 else 3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3552 for as_dir in $PATH 3553 do 3554 IFS=$as_save_IFS 3555 case $as_dir in #((( 3556 '') as_dir=./ ;; 3557 */) ;; 3558 *) as_dir=$as_dir/ ;; 3559 esac 3560 for ac_exec_ext in '' $ac_executable_extensions; do 3561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3562 ac_cv_prog_ac_ct_CC="gcc" 3563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3564 break 2 3565 fi 3566 done 3567 done 3568 IFS=$as_save_IFS 3569 3570 fi ;; 3571 esac 3572 fi 3573 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3574 if test -n "$ac_ct_CC"; then 3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3576 printf "%s\n" "$ac_ct_CC" >&6; } 3577 else 3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3579 printf "%s\n" "no" >&6; } 3580 fi 3581 3582 if test "x$ac_ct_CC" = x; then 3583 CC="" 3584 else 3585 case $cross_compiling:$ac_tool_warned in 3586 yes:) 3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3588 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3589 ac_tool_warned=yes ;; 3590 esac 3591 CC=$ac_ct_CC 3592 fi 3593 else 3594 CC="$ac_cv_prog_CC" 3595 fi 3596 3597 if test -z "$CC"; then 3598 if test -n "$ac_tool_prefix"; then 3599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3600 set dummy ${ac_tool_prefix}cc; ac_word=$2 3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3602 printf %s "checking for $ac_word... " >&6; } 3603 if test ${ac_cv_prog_CC+y} 3604 then : 3605 printf %s "(cached) " >&6 3606 else case e in #( 3607 e) if test -n "$CC"; then 3608 ac_cv_prog_CC="$CC" # Let the user override the test. 3609 else 3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3611 for as_dir in $PATH 3612 do 3613 IFS=$as_save_IFS 3614 case $as_dir in #((( 3615 '') as_dir=./ ;; 3616 */) ;; 3617 *) as_dir=$as_dir/ ;; 3618 esac 3619 for ac_exec_ext in '' $ac_executable_extensions; do 3620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3621 ac_cv_prog_CC="${ac_tool_prefix}cc" 3622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3623 break 2 3624 fi 3625 done 3626 done 3627 IFS=$as_save_IFS 3628 3629 fi ;; 3630 esac 3631 fi 3632 CC=$ac_cv_prog_CC 3633 if test -n "$CC"; then 3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3635 printf "%s\n" "$CC" >&6; } 3636 else 3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3638 printf "%s\n" "no" >&6; } 3639 fi 3640 3641 3642 fi 3643 fi 3644 if test -z "$CC"; then 3645 # Extract the first word of "cc", so it can be a program name with args. 3646 set dummy cc; ac_word=$2 3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3648 printf %s "checking for $ac_word... " >&6; } 3649 if test ${ac_cv_prog_CC+y} 3650 then : 3651 printf %s "(cached) " >&6 3652 else case e in #( 3653 e) if test -n "$CC"; then 3654 ac_cv_prog_CC="$CC" # Let the user override the test. 3655 else 3656 ac_prog_rejected=no 3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3658 for as_dir in $PATH 3659 do 3660 IFS=$as_save_IFS 3661 case $as_dir in #((( 3662 '') as_dir=./ ;; 3663 */) ;; 3664 *) as_dir=$as_dir/ ;; 3665 esac 3666 for ac_exec_ext in '' $ac_executable_extensions; do 3667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3668 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3669 ac_prog_rejected=yes 3670 continue 3671 fi 3672 ac_cv_prog_CC="cc" 3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3674 break 2 3675 fi 3676 done 3677 done 3678 IFS=$as_save_IFS 3679 3680 if test $ac_prog_rejected = yes; then 3681 # We found a bogon in the path, so make sure we never use it. 3682 set dummy $ac_cv_prog_CC 3683 shift 3684 if test $# != 0; then 3685 # We chose a different compiler from the bogus one. 3686 # However, it has the same basename, so the bogon will be chosen 3687 # first if we set CC to just the basename; use the full file name. 3688 shift 3689 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3690 fi 3691 fi 3692 fi ;; 3693 esac 3694 fi 3695 CC=$ac_cv_prog_CC 3696 if test -n "$CC"; then 3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3698 printf "%s\n" "$CC" >&6; } 3699 else 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3701 printf "%s\n" "no" >&6; } 3702 fi 3703 3704 3705 fi 3706 if test -z "$CC"; then 3707 if test -n "$ac_tool_prefix"; then 3708 for ac_prog in cl.exe 3709 do 3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3713 printf %s "checking for $ac_word... " >&6; } 3714 if test ${ac_cv_prog_CC+y} 3715 then : 3716 printf %s "(cached) " >&6 3717 else case e in #( 3718 e) if test -n "$CC"; then 3719 ac_cv_prog_CC="$CC" # Let the user override the test. 3720 else 3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3722 for as_dir in $PATH 3723 do 3724 IFS=$as_save_IFS 3725 case $as_dir in #((( 3726 '') as_dir=./ ;; 3727 */) ;; 3728 *) as_dir=$as_dir/ ;; 3729 esac 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3734 break 2 3735 fi 3736 done 3737 done 3738 IFS=$as_save_IFS 3739 3740 fi ;; 3741 esac 3742 fi 3743 CC=$ac_cv_prog_CC 3744 if test -n "$CC"; then 3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3746 printf "%s\n" "$CC" >&6; } 3747 else 3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3749 printf "%s\n" "no" >&6; } 3750 fi 3751 3752 3753 test -n "$CC" && break 3754 done 3755 fi 3756 if test -z "$CC"; then 3757 ac_ct_CC=$CC 3758 for ac_prog in cl.exe 3759 do 3760 # Extract the first word of "$ac_prog", so it can be a program name with args. 3761 set dummy $ac_prog; ac_word=$2 3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3763 printf %s "checking for $ac_word... " >&6; } 3764 if test ${ac_cv_prog_ac_ct_CC+y} 3765 then : 3766 printf %s "(cached) " >&6 3767 else case e in #( 3768 e) if test -n "$ac_ct_CC"; then 3769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3770 else 3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3772 for as_dir in $PATH 3773 do 3774 IFS=$as_save_IFS 3775 case $as_dir in #((( 3776 '') as_dir=./ ;; 3777 */) ;; 3778 *) as_dir=$as_dir/ ;; 3779 esac 3780 for ac_exec_ext in '' $ac_executable_extensions; do 3781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3782 ac_cv_prog_ac_ct_CC="$ac_prog" 3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3784 break 2 3785 fi 3786 done 3787 done 3788 IFS=$as_save_IFS 3789 3790 fi ;; 3791 esac 3792 fi 3793 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3794 if test -n "$ac_ct_CC"; then 3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3796 printf "%s\n" "$ac_ct_CC" >&6; } 3797 else 3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3799 printf "%s\n" "no" >&6; } 3800 fi 3801 3802 3803 test -n "$ac_ct_CC" && break 3804 done 3805 3806 if test "x$ac_ct_CC" = x; then 3807 CC="" 3808 else 3809 case $cross_compiling:$ac_tool_warned in 3810 yes:) 3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3812 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3813 ac_tool_warned=yes ;; 3814 esac 3815 CC=$ac_ct_CC 3816 fi 3817 fi 3818 3819 fi 3820 if test -z "$CC"; then 3821 if test -n "$ac_tool_prefix"; then 3822 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3823 set dummy ${ac_tool_prefix}clang; ac_word=$2 3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3825 printf %s "checking for $ac_word... " >&6; } 3826 if test ${ac_cv_prog_CC+y} 3827 then : 3828 printf %s "(cached) " >&6 3829 else case e in #( 3830 e) if test -n "$CC"; then 3831 ac_cv_prog_CC="$CC" # Let the user override the test. 3832 else 3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3834 for as_dir in $PATH 3835 do 3836 IFS=$as_save_IFS 3837 case $as_dir in #((( 3838 '') as_dir=./ ;; 3839 */) ;; 3840 *) as_dir=$as_dir/ ;; 3841 esac 3842 for ac_exec_ext in '' $ac_executable_extensions; do 3843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3844 ac_cv_prog_CC="${ac_tool_prefix}clang" 3845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3846 break 2 3847 fi 3848 done 3849 done 3850 IFS=$as_save_IFS 3851 3852 fi ;; 3853 esac 3854 fi 3855 CC=$ac_cv_prog_CC 3856 if test -n "$CC"; then 3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3858 printf "%s\n" "$CC" >&6; } 3859 else 3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3861 printf "%s\n" "no" >&6; } 3862 fi 3863 3864 3865 fi 3866 if test -z "$ac_cv_prog_CC"; then 3867 ac_ct_CC=$CC 3868 # Extract the first word of "clang", so it can be a program name with args. 3869 set dummy clang; ac_word=$2 3870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3871 printf %s "checking for $ac_word... " >&6; } 3872 if test ${ac_cv_prog_ac_ct_CC+y} 3873 then : 3874 printf %s "(cached) " >&6 3875 else case e in #( 3876 e) if test -n "$ac_ct_CC"; then 3877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3878 else 3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3880 for as_dir in $PATH 3881 do 3882 IFS=$as_save_IFS 3883 case $as_dir in #((( 3884 '') as_dir=./ ;; 3885 */) ;; 3886 *) as_dir=$as_dir/ ;; 3887 esac 3888 for ac_exec_ext in '' $ac_executable_extensions; do 3889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3890 ac_cv_prog_ac_ct_CC="clang" 3891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3892 break 2 3893 fi 3894 done 3895 done 3896 IFS=$as_save_IFS 3897 3898 fi ;; 3899 esac 3900 fi 3901 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3902 if test -n "$ac_ct_CC"; then 3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3904 printf "%s\n" "$ac_ct_CC" >&6; } 3905 else 3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3907 printf "%s\n" "no" >&6; } 3908 fi 3909 3910 if test "x$ac_ct_CC" = x; then 3911 CC="" 3912 else 3913 case $cross_compiling:$ac_tool_warned in 3914 yes:) 3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3916 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3917 ac_tool_warned=yes ;; 3918 esac 3919 CC=$ac_ct_CC 3920 fi 3921 else 3922 CC="$ac_cv_prog_CC" 3923 fi 3924 3925 fi 3926 3927 3928 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3929 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3930 as_fn_error $? "no acceptable C compiler found in \$PATH 3931 See 'config.log' for more details" "$LINENO" 5; } 3932 3933 # Provide some information about the compiler. 3934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3935 set X $ac_compile 3936 ac_compiler=$2 3937 for ac_option in --version -v -V -qversion -version; do 3938 { { ac_try="$ac_compiler $ac_option >&5" 3939 case "(($ac_try" in 3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3941 *) ac_try_echo=$ac_try;; 3942 esac 3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3944 printf "%s\n" "$ac_try_echo"; } >&5 3945 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3946 ac_status=$? 3947 if test -s conftest.err; then 3948 sed '10a\ 3949 ... rest of stderr output deleted ... 3950 10q' conftest.err >conftest.er1 3951 cat conftest.er1 >&5 3952 fi 3953 rm -f conftest.er1 conftest.err 3954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3955 test $ac_status = 0; } 3956 done 3957 3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3959 /* end confdefs.h. */ 3960 3961 int 3962 main (void) 3963 { 3964 3965 ; 3966 return 0; 3967 } 3968 _ACEOF 3969 ac_clean_files_save=$ac_clean_files 3970 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3971 # Try to create an executable without -o first, disregard a.out. 3972 # It will help us diagnose broken compilers, and finding out an intuition 3973 # of exeext. 3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3975 printf %s "checking whether the C compiler works... " >&6; } 3976 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3977 3978 # The possible output files: 3979 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3980 3981 ac_rmfiles= 3982 for ac_file in $ac_files 3983 do 3984 case $ac_file in 3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3986 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3987 esac 3988 done 3989 rm -f $ac_rmfiles 3990 3991 if { { ac_try="$ac_link_default" 3992 case "(($ac_try" in 3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3994 *) ac_try_echo=$ac_try;; 3995 esac 3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3997 printf "%s\n" "$ac_try_echo"; } >&5 3998 (eval "$ac_link_default") 2>&5 3999 ac_status=$? 4000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4001 test $ac_status = 0; } 4002 then : 4003 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4004 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4005 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4006 # so that the user can short-circuit this test for compilers unknown to 4007 # Autoconf. 4008 for ac_file in $ac_files '' 4009 do 4010 test -f "$ac_file" || continue 4011 case $ac_file in 4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4013 ;; 4014 [ab].out ) 4015 # We found the default executable, but exeext='' is most 4016 # certainly right. 4017 break;; 4018 *.* ) 4019 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4020 then :; else 4021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4022 fi 4023 # We set ac_cv_exeext here because the later test for it is not 4024 # safe: cross compilers may not add the suffix if given an '-o' 4025 # argument, so we may need to know it at that point already. 4026 # Even if this section looks crufty: it has the advantage of 4027 # actually working. 4028 break;; 4029 * ) 4030 break;; 4031 esac 4032 done 4033 test "$ac_cv_exeext" = no && ac_cv_exeext= 4034 4035 else case e in #( 4036 e) ac_file='' ;; 4037 esac 4038 fi 4039 if test -z "$ac_file" 4040 then : 4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4042 printf "%s\n" "no" >&6; } 4043 printf "%s\n" "$as_me: failed program was:" >&5 4044 sed 's/^/| /' conftest.$ac_ext >&5 4045 4046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4047 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4048 as_fn_error 77 "C compiler cannot create executables 4049 See 'config.log' for more details" "$LINENO" 5; } 4050 else case e in #( 4051 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4052 printf "%s\n" "yes" >&6; } ;; 4053 esac 4054 fi 4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4056 printf %s "checking for C compiler default output file name... " >&6; } 4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4058 printf "%s\n" "$ac_file" >&6; } 4059 ac_exeext=$ac_cv_exeext 4060 4061 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4062 ac_clean_files=$ac_clean_files_save 4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4064 printf %s "checking for suffix of executables... " >&6; } 4065 if { { ac_try="$ac_link" 4066 case "(($ac_try" in 4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4068 *) ac_try_echo=$ac_try;; 4069 esac 4070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4071 printf "%s\n" "$ac_try_echo"; } >&5 4072 (eval "$ac_link") 2>&5 4073 ac_status=$? 4074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4075 test $ac_status = 0; } 4076 then : 4077 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4078 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4079 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4080 # 'rm'. 4081 for ac_file in conftest.exe conftest conftest.*; do 4082 test -f "$ac_file" || continue 4083 case $ac_file in 4084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4085 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4086 break;; 4087 * ) break;; 4088 esac 4089 done 4090 else case e in #( 4091 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4092 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4093 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4094 See 'config.log' for more details" "$LINENO" 5; } ;; 4095 esac 4096 fi 4097 rm -f conftest conftest$ac_cv_exeext 4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4099 printf "%s\n" "$ac_cv_exeext" >&6; } 4100 4101 rm -f conftest.$ac_ext 4102 EXEEXT=$ac_cv_exeext 4103 ac_exeext=$EXEEXT 4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105 /* end confdefs.h. */ 4106 #include <stdio.h> 4107 int 4108 main (void) 4109 { 4110 FILE *f = fopen ("conftest.out", "w"); 4111 if (!f) 4112 return 1; 4113 return ferror (f) || fclose (f) != 0; 4114 4115 ; 4116 return 0; 4117 } 4118 _ACEOF 4119 ac_clean_files="$ac_clean_files conftest.out" 4120 # Check that the compiler produces executables we can run. If not, either 4121 # the compiler is broken, or we cross compile. 4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4123 printf %s "checking whether we are cross compiling... " >&6; } 4124 if test "$cross_compiling" != yes; then 4125 { { ac_try="$ac_link" 4126 case "(($ac_try" in 4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4128 *) ac_try_echo=$ac_try;; 4129 esac 4130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4131 printf "%s\n" "$ac_try_echo"; } >&5 4132 (eval "$ac_link") 2>&5 4133 ac_status=$? 4134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4135 test $ac_status = 0; } 4136 if { ac_try='./conftest$ac_cv_exeext' 4137 { { case "(($ac_try" in 4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4139 *) ac_try_echo=$ac_try;; 4140 esac 4141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4142 printf "%s\n" "$ac_try_echo"; } >&5 4143 (eval "$ac_try") 2>&5 4144 ac_status=$? 4145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4146 test $ac_status = 0; }; }; then 4147 cross_compiling=no 4148 else 4149 if test "$cross_compiling" = maybe; then 4150 cross_compiling=yes 4151 else 4152 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4153 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4154 as_fn_error 77 "cannot run C compiled programs. 4155 If you meant to cross compile, use '--host'. 4156 See 'config.log' for more details" "$LINENO" 5; } 4157 fi 4158 fi 4159 fi 4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4161 printf "%s\n" "$cross_compiling" >&6; } 4162 4163 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4164 conftest.o conftest.obj conftest.out 4165 ac_clean_files=$ac_clean_files_save 4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4167 printf %s "checking for suffix of object files... " >&6; } 4168 if test ${ac_cv_objext+y} 4169 then : 4170 printf %s "(cached) " >&6 4171 else case e in #( 4172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4173 /* end confdefs.h. */ 4174 4175 int 4176 main (void) 4177 { 4178 4179 ; 4180 return 0; 4181 } 4182 _ACEOF 4183 rm -f conftest.o conftest.obj 4184 if { { ac_try="$ac_compile" 4185 case "(($ac_try" in 4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4187 *) ac_try_echo=$ac_try;; 4188 esac 4189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4190 printf "%s\n" "$ac_try_echo"; } >&5 4191 (eval "$ac_compile") 2>&5 4192 ac_status=$? 4193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4194 test $ac_status = 0; } 4195 then : 4196 for ac_file in conftest.o conftest.obj conftest.*; do 4197 test -f "$ac_file" || continue; 4198 case $ac_file in 4199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4201 break;; 4202 esac 4203 done 4204 else case e in #( 4205 e) printf "%s\n" "$as_me: failed program was:" >&5 4206 sed 's/^/| /' conftest.$ac_ext >&5 4207 4208 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4209 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4210 as_fn_error $? "cannot compute suffix of object files: cannot compile 4211 See 'config.log' for more details" "$LINENO" 5; } ;; 4212 esac 4213 fi 4214 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4215 esac 4216 fi 4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4218 printf "%s\n" "$ac_cv_objext" >&6; } 4219 OBJEXT=$ac_cv_objext 4220 ac_objext=$OBJEXT 4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4222 printf %s "checking whether the compiler supports GNU C... " >&6; } 4223 if test ${ac_cv_c_compiler_gnu+y} 4224 then : 4225 printf %s "(cached) " >&6 4226 else case e in #( 4227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4228 /* end confdefs.h. */ 4229 4230 int 4231 main (void) 4232 { 4233 #ifndef __GNUC__ 4234 choke me 4235 #endif 4236 4237 ; 4238 return 0; 4239 } 4240 _ACEOF 4241 if ac_fn_c_try_compile "$LINENO" 4242 then : 4243 ac_compiler_gnu=yes 4244 else case e in #( 4245 e) ac_compiler_gnu=no ;; 4246 esac 4247 fi 4248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4249 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4250 ;; 4251 esac 4252 fi 4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4254 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4256 4257 if test $ac_compiler_gnu = yes; then 4258 GCC=yes 4259 else 4260 GCC= 4261 fi 4262 ac_test_CFLAGS=${CFLAGS+y} 4263 ac_save_CFLAGS=$CFLAGS 4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4265 printf %s "checking whether $CC accepts -g... " >&6; } 4266 if test ${ac_cv_prog_cc_g+y} 4267 then : 4268 printf %s "(cached) " >&6 4269 else case e in #( 4270 e) ac_save_c_werror_flag=$ac_c_werror_flag 4271 ac_c_werror_flag=yes 4272 ac_cv_prog_cc_g=no 4273 CFLAGS="-g" 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4275 /* end confdefs.h. */ 4276 4277 int 4278 main (void) 4279 { 4280 4281 ; 4282 return 0; 4283 } 4284 _ACEOF 4285 if ac_fn_c_try_compile "$LINENO" 4286 then : 4287 ac_cv_prog_cc_g=yes 4288 else case e in #( 4289 e) CFLAGS="" 4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4291 /* end confdefs.h. */ 4292 4293 int 4294 main (void) 4295 { 4296 4297 ; 4298 return 0; 4299 } 4300 _ACEOF 4301 if ac_fn_c_try_compile "$LINENO" 4302 then : 4303 4304 else case e in #( 4305 e) ac_c_werror_flag=$ac_save_c_werror_flag 4306 CFLAGS="-g" 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308 /* end confdefs.h. */ 4309 4310 int 4311 main (void) 4312 { 4313 4314 ; 4315 return 0; 4316 } 4317 _ACEOF 4318 if ac_fn_c_try_compile "$LINENO" 4319 then : 4320 ac_cv_prog_cc_g=yes 4321 fi 4322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4323 esac 4324 fi 4325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4326 esac 4327 fi 4328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4329 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4330 esac 4331 fi 4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4333 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4334 if test $ac_test_CFLAGS; then 4335 CFLAGS=$ac_save_CFLAGS 4336 elif test $ac_cv_prog_cc_g = yes; then 4337 if test "$GCC" = yes; then 4338 CFLAGS="-g -O2" 4339 else 4340 CFLAGS="-g" 4341 fi 4342 else 4343 if test "$GCC" = yes; then 4344 CFLAGS="-O2" 4345 else 4346 CFLAGS= 4347 fi 4348 fi 4349 ac_prog_cc_stdc=no 4350 if test x$ac_prog_cc_stdc = xno 4351 then : 4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4353 printf %s "checking for $CC option to enable C11 features... " >&6; } 4354 if test ${ac_cv_prog_cc_c11+y} 4355 then : 4356 printf %s "(cached) " >&6 4357 else case e in #( 4358 e) ac_cv_prog_cc_c11=no 4359 ac_save_CC=$CC 4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361 /* end confdefs.h. */ 4362 $ac_c_conftest_c11_program 4363 _ACEOF 4364 for ac_arg in '' -std=gnu11 4365 do 4366 CC="$ac_save_CC $ac_arg" 4367 if ac_fn_c_try_compile "$LINENO" 4368 then : 4369 ac_cv_prog_cc_c11=$ac_arg 4370 fi 4371 rm -f core conftest.err conftest.$ac_objext conftest.beam 4372 test "x$ac_cv_prog_cc_c11" != "xno" && break 4373 done 4374 rm -f conftest.$ac_ext 4375 CC=$ac_save_CC ;; 4376 esac 4377 fi 4378 4379 if test "x$ac_cv_prog_cc_c11" = xno 4380 then : 4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4382 printf "%s\n" "unsupported" >&6; } 4383 else case e in #( 4384 e) if test "x$ac_cv_prog_cc_c11" = x 4385 then : 4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4387 printf "%s\n" "none needed" >&6; } 4388 else case e in #( 4389 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4390 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4391 CC="$CC $ac_cv_prog_cc_c11" ;; 4392 esac 4393 fi 4394 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4395 ac_prog_cc_stdc=c11 ;; 4396 esac 4397 fi 4398 fi 4399 if test x$ac_prog_cc_stdc = xno 4400 then : 4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4402 printf %s "checking for $CC option to enable C99 features... " >&6; } 4403 if test ${ac_cv_prog_cc_c99+y} 4404 then : 4405 printf %s "(cached) " >&6 4406 else case e in #( 4407 e) ac_cv_prog_cc_c99=no 4408 ac_save_CC=$CC 4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4410 /* end confdefs.h. */ 4411 $ac_c_conftest_c99_program 4412 _ACEOF 4413 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4414 do 4415 CC="$ac_save_CC $ac_arg" 4416 if ac_fn_c_try_compile "$LINENO" 4417 then : 4418 ac_cv_prog_cc_c99=$ac_arg 4419 fi 4420 rm -f core conftest.err conftest.$ac_objext conftest.beam 4421 test "x$ac_cv_prog_cc_c99" != "xno" && break 4422 done 4423 rm -f conftest.$ac_ext 4424 CC=$ac_save_CC ;; 4425 esac 4426 fi 4427 4428 if test "x$ac_cv_prog_cc_c99" = xno 4429 then : 4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4431 printf "%s\n" "unsupported" >&6; } 4432 else case e in #( 4433 e) if test "x$ac_cv_prog_cc_c99" = x 4434 then : 4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4436 printf "%s\n" "none needed" >&6; } 4437 else case e in #( 4438 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4439 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4440 CC="$CC $ac_cv_prog_cc_c99" ;; 4441 esac 4442 fi 4443 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4444 ac_prog_cc_stdc=c99 ;; 4445 esac 4446 fi 4447 fi 4448 if test x$ac_prog_cc_stdc = xno 4449 then : 4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4451 printf %s "checking for $CC option to enable C89 features... " >&6; } 4452 if test ${ac_cv_prog_cc_c89+y} 4453 then : 4454 printf %s "(cached) " >&6 4455 else case e in #( 4456 e) ac_cv_prog_cc_c89=no 4457 ac_save_CC=$CC 4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4459 /* end confdefs.h. */ 4460 $ac_c_conftest_c89_program 4461 _ACEOF 4462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4463 do 4464 CC="$ac_save_CC $ac_arg" 4465 if ac_fn_c_try_compile "$LINENO" 4466 then : 4467 ac_cv_prog_cc_c89=$ac_arg 4468 fi 4469 rm -f core conftest.err conftest.$ac_objext conftest.beam 4470 test "x$ac_cv_prog_cc_c89" != "xno" && break 4471 done 4472 rm -f conftest.$ac_ext 4473 CC=$ac_save_CC ;; 4474 esac 4475 fi 4476 4477 if test "x$ac_cv_prog_cc_c89" = xno 4478 then : 4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4480 printf "%s\n" "unsupported" >&6; } 4481 else case e in #( 4482 e) if test "x$ac_cv_prog_cc_c89" = x 4483 then : 4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4485 printf "%s\n" "none needed" >&6; } 4486 else case e in #( 4487 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4488 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4489 CC="$CC $ac_cv_prog_cc_c89" ;; 4490 esac 4491 fi 4492 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4493 ac_prog_cc_stdc=c89 ;; 4494 esac 4495 fi 4496 fi 4497 4498 ac_ext=c 4499 ac_cpp='$CPP $CPPFLAGS' 4500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4502 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4503 4504 4505 ac_ext=c 4506 ac_cpp='$CPP $CPPFLAGS' 4507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4509 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4511 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4512 if test ${am_cv_prog_cc_c_o+y} 4513 then : 4514 printf %s "(cached) " >&6 4515 else case e in #( 4516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4517 /* end confdefs.h. */ 4518 4519 int 4520 main (void) 4521 { 4522 4523 ; 4524 return 0; 4525 } 4526 _ACEOF 4527 # Make sure it works both with $CC and with simple cc. 4528 # Following AC_PROG_CC_C_O, we do the test twice because some 4529 # compilers refuse to overwrite an existing .o file with -o, 4530 # though they will create one. 4531 am_cv_prog_cc_c_o=yes 4532 for am_i in 1 2; do 4533 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4534 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4535 ac_status=$? 4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4537 (exit $ac_status); } \ 4538 && test -f conftest2.$ac_objext; then 4539 : OK 4540 else 4541 am_cv_prog_cc_c_o=no 4542 break 4543 fi 4544 done 4545 # aligned with autoconf, so not including core; see bug#72225. 4546 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 4547 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 4548 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 4549 unset am_i ;; 4550 esac 4551 fi 4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4553 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4554 if test "$am_cv_prog_cc_c_o" != yes; then 4555 # Losing compiler, so override with the script. 4556 # FIXME: It is wrong to rewrite CC. 4557 # But if we don't then we get into trouble of one sort or another. 4558 # A longer-term fix would be to have automake use am__CC in this case, 4559 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4560 CC="$am_aux_dir/compile $CC" 4561 fi 4562 ac_ext=c 4563 ac_cpp='$CPP $CPPFLAGS' 4564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4566 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4567 4568 4569 depcc="$CC" am_compiler_list= 4570 4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4572 printf %s "checking dependency style of $depcc... " >&6; } 4573 if test ${am_cv_CC_dependencies_compiler_type+y} 4574 then : 4575 printf %s "(cached) " >&6 4576 else case e in #( 4577 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4578 # We make a subdir and do the tests there. Otherwise we can end up 4579 # making bogus files that we don't know about and never remove. For 4580 # instance it was reported that on HP-UX the gcc test will end up 4581 # making a dummy file named 'D' -- because '-MD' means "put the output 4582 # in D". 4583 rm -rf conftest.dir 4584 mkdir conftest.dir 4585 # Copy depcomp to subdir because otherwise we won't find it if we're 4586 # using a relative directory. 4587 cp "$am_depcomp" conftest.dir 4588 cd conftest.dir 4589 # We will build objects and dependencies in a subdirectory because 4590 # it helps to detect inapplicable dependency modes. For instance 4591 # both Tru64's cc and ICC support -MD to output dependencies as a 4592 # side effect of compilation, but ICC will put the dependencies in 4593 # the current directory while Tru64 will put them in the object 4594 # directory. 4595 mkdir sub 4596 4597 am_cv_CC_dependencies_compiler_type=none 4598 if test "$am_compiler_list" = ""; then 4599 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4600 fi 4601 am__universal=false 4602 case " $depcc " in #( 4603 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4604 esac 4605 4606 for depmode in $am_compiler_list; do 4607 # Setup a source with many dependencies, because some compilers 4608 # like to wrap large dependency lists on column 80 (with \), and 4609 # we should not choose a depcomp mode which is confused by this. 4610 # 4611 # We need to recreate these files for each test, as the compiler may 4612 # overwrite some of them when testing with obscure command lines. 4613 # This happens at least with the AIX C compiler. 4614 : > sub/conftest.c 4615 for i in 1 2 3 4 5 6; do 4616 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4617 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4618 # Solaris 10 /bin/sh. 4619 echo '/* dummy */' > sub/conftst$i.h 4620 done 4621 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4622 4623 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4624 # mode. It turns out that the SunPro C++ compiler does not properly 4625 # handle '-M -o', and we need to detect this. Also, some Intel 4626 # versions had trouble with output in subdirs. 4627 am__obj=sub/conftest.${OBJEXT-o} 4628 am__minus_obj="-o $am__obj" 4629 case $depmode in 4630 gcc) 4631 # This depmode causes a compiler race in universal mode. 4632 test "$am__universal" = false || continue 4633 ;; 4634 nosideeffect) 4635 # After this tag, mechanisms are not by side-effect, so they'll 4636 # only be used when explicitly requested. 4637 if test "x$enable_dependency_tracking" = xyes; then 4638 continue 4639 else 4640 break 4641 fi 4642 ;; 4643 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4644 # This compiler won't grok '-c -o', but also, the minuso test has 4645 # not run yet. These depmodes are late enough in the game, and 4646 # so weak that their functioning should not be impacted. 4647 am__obj=conftest.${OBJEXT-o} 4648 am__minus_obj= 4649 ;; 4650 none) break ;; 4651 esac 4652 if depmode=$depmode \ 4653 source=sub/conftest.c object=$am__obj \ 4654 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4655 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4656 >/dev/null 2>conftest.err && 4657 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4658 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4659 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4660 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4661 # icc doesn't choke on unknown options, it will just issue warnings 4662 # or remarks (even with -Werror). So we grep stderr for any message 4663 # that says an option was ignored or not supported. 4664 # When given -MP, icc 7.0 and 7.1 complain thus: 4665 # icc: Command line warning: ignoring option '-M'; no argument required 4666 # The diagnosis changed in icc 8.0: 4667 # icc: Command line remark: option '-MP' not supported 4668 if (grep 'ignoring option' conftest.err || 4669 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4670 am_cv_CC_dependencies_compiler_type=$depmode 4671 break 4672 fi 4673 fi 4674 done 4675 4676 cd .. 4677 rm -rf conftest.dir 4678 else 4679 am_cv_CC_dependencies_compiler_type=none 4680 fi 4681 ;; 4682 esac 4683 fi 4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4685 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4686 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4687 4688 if 4689 test "x$enable_dependency_tracking" != xno \ 4690 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4691 am__fastdepCC_TRUE= 4692 am__fastdepCC_FALSE='#' 4693 else 4694 am__fastdepCC_TRUE='#' 4695 am__fastdepCC_FALSE= 4696 fi 4697 4698 4699 4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4701 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4702 if test ${ac_cv_c_undeclared_builtin_options+y} 4703 then : 4704 printf %s "(cached) " >&6 4705 else case e in #( 4706 e) ac_save_CFLAGS=$CFLAGS 4707 ac_cv_c_undeclared_builtin_options='cannot detect' 4708 for ac_arg in '' -fno-builtin; do 4709 CFLAGS="$ac_save_CFLAGS $ac_arg" 4710 # This test program should *not* compile successfully. 4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4712 /* end confdefs.h. */ 4713 4714 int 4715 main (void) 4716 { 4717 (void) strchr; 4718 ; 4719 return 0; 4720 } 4721 _ACEOF 4722 if ac_fn_c_try_compile "$LINENO" 4723 then : 4724 4725 else case e in #( 4726 e) # This test program should compile successfully. 4727 # No library function is consistently available on 4728 # freestanding implementations, so test against a dummy 4729 # declaration. Include always-available headers on the 4730 # off chance that they somehow elicit warnings. 4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4732 /* end confdefs.h. */ 4733 #include <float.h> 4734 #include <limits.h> 4735 #include <stdarg.h> 4736 #include <stddef.h> 4737 extern void ac_decl (int, char *); 4738 4739 int 4740 main (void) 4741 { 4742 (void) ac_decl (0, (char *) 0); 4743 (void) ac_decl; 4744 4745 ; 4746 return 0; 4747 } 4748 _ACEOF 4749 if ac_fn_c_try_compile "$LINENO" 4750 then : 4751 if test x"$ac_arg" = x 4752 then : 4753 ac_cv_c_undeclared_builtin_options='none needed' 4754 else case e in #( 4755 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4756 esac 4757 fi 4758 break 4759 fi 4760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4761 esac 4762 fi 4763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4764 done 4765 CFLAGS=$ac_save_CFLAGS 4766 ;; 4767 esac 4768 fi 4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4770 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4771 case $ac_cv_c_undeclared_builtin_options in #( 4772 'cannot detect') : 4773 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4774 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4775 as_fn_error $? "cannot make $CC report undeclared builtins 4776 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4777 'none needed') : 4778 ac_c_undeclared_builtin_options='' ;; #( 4779 *) : 4780 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4781 esac 4782 4783 ac_header= ac_cache= 4784 for ac_item in $ac_header_c_list 4785 do 4786 if test $ac_cache; then 4787 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4788 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4789 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4790 fi 4791 ac_header= ac_cache= 4792 elif test $ac_header; then 4793 ac_cache=$ac_item 4794 else 4795 ac_header=$ac_item 4796 fi 4797 done 4798 4799 4800 4801 4802 4803 4804 4805 4806 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4807 then : 4808 4809 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4810 4811 fi 4812 4813 4814 4815 4816 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4817 if test "x$ac_cv_have_decl___clang__" = xyes 4818 then : 4819 CLANGCC="yes" 4820 else case e in #( 4821 e) CLANGCC="no" ;; 4822 esac 4823 fi 4824 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4825 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4826 then : 4827 INTELCC="yes" 4828 else case e in #( 4829 e) INTELCC="no" ;; 4830 esac 4831 fi 4832 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4833 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4834 then : 4835 SUNCC="yes" 4836 else case e in #( 4837 e) SUNCC="no" ;; 4838 esac 4839 fi 4840 4841 4842 4843 4844 4845 4846 4847 4848 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4849 if test -n "$ac_tool_prefix"; then 4850 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4851 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4853 printf %s "checking for $ac_word... " >&6; } 4854 if test ${ac_cv_path_PKG_CONFIG+y} 4855 then : 4856 printf %s "(cached) " >&6 4857 else case e in #( 4858 e) case $PKG_CONFIG in 4859 [\\/]* | ?:[\\/]*) 4860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4861 ;; 4862 *) 4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4864 for as_dir in $PATH 4865 do 4866 IFS=$as_save_IFS 4867 case $as_dir in #((( 4868 '') as_dir=./ ;; 4869 */) ;; 4870 *) as_dir=$as_dir/ ;; 4871 esac 4872 for ac_exec_ext in '' $ac_executable_extensions; do 4873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4874 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4876 break 2 4877 fi 4878 done 4879 done 4880 IFS=$as_save_IFS 4881 4882 ;; 4883 esac ;; 4884 esac 4885 fi 4886 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4887 if test -n "$PKG_CONFIG"; then 4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4889 printf "%s\n" "$PKG_CONFIG" >&6; } 4890 else 4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4892 printf "%s\n" "no" >&6; } 4893 fi 4894 4895 4896 fi 4897 if test -z "$ac_cv_path_PKG_CONFIG"; then 4898 ac_pt_PKG_CONFIG=$PKG_CONFIG 4899 # Extract the first word of "pkg-config", so it can be a program name with args. 4900 set dummy pkg-config; ac_word=$2 4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4902 printf %s "checking for $ac_word... " >&6; } 4903 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4904 then : 4905 printf %s "(cached) " >&6 4906 else case e in #( 4907 e) case $ac_pt_PKG_CONFIG in 4908 [\\/]* | ?:[\\/]*) 4909 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4910 ;; 4911 *) 4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4913 for as_dir in $PATH 4914 do 4915 IFS=$as_save_IFS 4916 case $as_dir in #((( 4917 '') as_dir=./ ;; 4918 */) ;; 4919 *) as_dir=$as_dir/ ;; 4920 esac 4921 for ac_exec_ext in '' $ac_executable_extensions; do 4922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4923 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4925 break 2 4926 fi 4927 done 4928 done 4929 IFS=$as_save_IFS 4930 4931 ;; 4932 esac ;; 4933 esac 4934 fi 4935 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4936 if test -n "$ac_pt_PKG_CONFIG"; then 4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4938 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4939 else 4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4941 printf "%s\n" "no" >&6; } 4942 fi 4943 4944 if test "x$ac_pt_PKG_CONFIG" = x; then 4945 PKG_CONFIG="" 4946 else 4947 case $cross_compiling:$ac_tool_warned in 4948 yes:) 4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4950 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4951 ac_tool_warned=yes ;; 4952 esac 4953 PKG_CONFIG=$ac_pt_PKG_CONFIG 4954 fi 4955 else 4956 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4957 fi 4958 4959 fi 4960 if test -n "$PKG_CONFIG"; then 4961 _pkg_min_version=0.9.0 4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4963 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4964 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4966 printf "%s\n" "yes" >&6; } 4967 else 4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4969 printf "%s\n" "no" >&6; } 4970 PKG_CONFIG="" 4971 fi 4972 fi 4973 4974 4975 # Make sure we can run config.sub. 4976 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4977 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4978 4979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4980 printf %s "checking build system type... " >&6; } 4981 if test ${ac_cv_build+y} 4982 then : 4983 printf %s "(cached) " >&6 4984 else case e in #( 4985 e) ac_build_alias=$build_alias 4986 test "x$ac_build_alias" = x && 4987 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4988 test "x$ac_build_alias" = x && 4989 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4990 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4991 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4992 ;; 4993 esac 4994 fi 4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4996 printf "%s\n" "$ac_cv_build" >&6; } 4997 case $ac_cv_build in 4998 *-*-*) ;; 4999 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5000 esac 5001 build=$ac_cv_build 5002 ac_save_IFS=$IFS; IFS='-' 5003 set x $ac_cv_build 5004 shift 5005 build_cpu=$1 5006 build_vendor=$2 5007 shift; shift 5008 # Remember, the first character of IFS is used to create $*, 5009 # except with old shells: 5010 build_os=$* 5011 IFS=$ac_save_IFS 5012 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5013 5014 5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5016 printf %s "checking host system type... " >&6; } 5017 if test ${ac_cv_host+y} 5018 then : 5019 printf %s "(cached) " >&6 5020 else case e in #( 5021 e) if test "x$host_alias" = x; then 5022 ac_cv_host=$ac_cv_build 5023 else 5024 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5025 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5026 fi 5027 ;; 5028 esac 5029 fi 5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5031 printf "%s\n" "$ac_cv_host" >&6; } 5032 case $ac_cv_host in 5033 *-*-*) ;; 5034 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5035 esac 5036 host=$ac_cv_host 5037 ac_save_IFS=$IFS; IFS='-' 5038 set x $ac_cv_host 5039 shift 5040 host_cpu=$1 5041 host_vendor=$2 5042 shift; shift 5043 # Remember, the first character of IFS is used to create $*, 5044 # except with old shells: 5045 host_os=$* 5046 IFS=$ac_save_IFS 5047 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5048 5049 5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5051 printf %s "checking for a sed that does not truncate output... " >&6; } 5052 if test ${ac_cv_path_SED+y} 5053 then : 5054 printf %s "(cached) " >&6 5055 else case e in #( 5056 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5057 for ac_i in 1 2 3 4 5 6 7; do 5058 ac_script="$ac_script$as_nl$ac_script" 5059 done 5060 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5061 { ac_script=; unset ac_script;} 5062 if test -z "$SED"; then 5063 ac_path_SED_found=false 5064 # Loop through the user's path and test for each of PROGNAME-LIST 5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5066 for as_dir in $PATH 5067 do 5068 IFS=$as_save_IFS 5069 case $as_dir in #((( 5070 '') as_dir=./ ;; 5071 */) ;; 5072 *) as_dir=$as_dir/ ;; 5073 esac 5074 for ac_prog in sed gsed 5075 do 5076 for ac_exec_ext in '' $ac_executable_extensions; do 5077 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5078 as_fn_executable_p "$ac_path_SED" || continue 5079 # Check for GNU ac_path_SED and select it if it is found. 5080 # Check for GNU $ac_path_SED 5081 case `"$ac_path_SED" --version 2>&1` in #( 5082 *GNU*) 5083 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5084 #( 5085 *) 5086 ac_count=0 5087 printf %s 0123456789 >"conftest.in" 5088 while : 5089 do 5090 cat "conftest.in" "conftest.in" >"conftest.tmp" 5091 mv "conftest.tmp" "conftest.in" 5092 cp "conftest.in" "conftest.nl" 5093 printf "%s\n" '' >> "conftest.nl" 5094 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5096 as_fn_arith $ac_count + 1 && ac_count=$as_val 5097 if test $ac_count -gt ${ac_path_SED_max-0}; then 5098 # Best one so far, save it but keep looking for a better one 5099 ac_cv_path_SED="$ac_path_SED" 5100 ac_path_SED_max=$ac_count 5101 fi 5102 # 10*(2^10) chars as input seems more than enough 5103 test $ac_count -gt 10 && break 5104 done 5105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5106 esac 5107 5108 $ac_path_SED_found && break 3 5109 done 5110 done 5111 done 5112 IFS=$as_save_IFS 5113 if test -z "$ac_cv_path_SED"; then 5114 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5115 fi 5116 else 5117 ac_cv_path_SED=$SED 5118 fi 5119 ;; 5120 esac 5121 fi 5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5123 printf "%s\n" "$ac_cv_path_SED" >&6; } 5124 SED="$ac_cv_path_SED" 5125 rm -f conftest.sed 5126 5127 5128 5129 5130 5131 5132 # Check whether --enable-selective-werror was given. 5133 if test ${enable_selective_werror+y} 5134 then : 5135 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5136 else case e in #( 5137 e) SELECTIVE_WERROR=yes ;; 5138 esac 5139 fi 5140 5141 5142 5143 5144 5145 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5146 if test "x$SUNCC" = "xyes"; then 5147 BASE_CFLAGS="-v" 5148 else 5149 BASE_CFLAGS="" 5150 fi 5151 5152 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 xorg_testset_save_CFLAGS="$CFLAGS" 5167 5168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5171 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5172 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5173 then : 5174 printf %s "(cached) " >&6 5175 else case e in #( 5176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5177 /* end confdefs.h. */ 5178 int i; 5179 _ACEOF 5180 if ac_fn_c_try_compile "$LINENO" 5181 then : 5182 xorg_cv_cc_flag_unknown_warning_option=yes 5183 else case e in #( 5184 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5185 esac 5186 fi 5187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5188 esac 5189 fi 5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5191 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5193 CFLAGS="$xorg_testset_save_CFLAGS" 5194 fi 5195 5196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5199 fi 5200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5202 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5203 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5204 then : 5205 printf %s "(cached) " >&6 5206 else case e in #( 5207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5208 /* end confdefs.h. */ 5209 int i; 5210 _ACEOF 5211 if ac_fn_c_try_compile "$LINENO" 5212 then : 5213 xorg_cv_cc_flag_unused_command_line_argument=yes 5214 else case e in #( 5215 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5216 esac 5217 fi 5218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5219 esac 5220 fi 5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5222 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5224 CFLAGS="$xorg_testset_save_CFLAGS" 5225 fi 5226 5227 found="no" 5228 5229 if test $found = "no" ; then 5230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5232 fi 5233 5234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5236 fi 5237 5238 CFLAGS="$CFLAGS -Wall" 5239 5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5241 printf %s "checking if $CC supports -Wall... " >&6; } 5242 cacheid=xorg_cv_cc_flag__Wall 5243 if eval test \${$cacheid+y} 5244 then : 5245 printf %s "(cached) " >&6 5246 else case e in #( 5247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248 /* end confdefs.h. */ 5249 int i; 5250 int 5251 main (void) 5252 { 5253 5254 ; 5255 return 0; 5256 } 5257 _ACEOF 5258 if ac_fn_c_try_link "$LINENO" 5259 then : 5260 eval $cacheid=yes 5261 else case e in #( 5262 e) eval $cacheid=no ;; 5263 esac 5264 fi 5265 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5266 conftest$ac_exeext conftest.$ac_ext ;; 5267 esac 5268 fi 5269 5270 5271 CFLAGS="$xorg_testset_save_CFLAGS" 5272 5273 eval supported=\$$cacheid 5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5275 printf "%s\n" "$supported" >&6; } 5276 if test "$supported" = "yes" ; then 5277 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5278 found="yes" 5279 fi 5280 fi 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 xorg_testset_save_CFLAGS="$CFLAGS" 5297 5298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5301 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5302 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5303 then : 5304 printf %s "(cached) " >&6 5305 else case e in #( 5306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5307 /* end confdefs.h. */ 5308 int i; 5309 _ACEOF 5310 if ac_fn_c_try_compile "$LINENO" 5311 then : 5312 xorg_cv_cc_flag_unknown_warning_option=yes 5313 else case e in #( 5314 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5315 esac 5316 fi 5317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5318 esac 5319 fi 5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5321 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5323 CFLAGS="$xorg_testset_save_CFLAGS" 5324 fi 5325 5326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5329 fi 5330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5332 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5333 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5334 then : 5335 printf %s "(cached) " >&6 5336 else case e in #( 5337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5338 /* end confdefs.h. */ 5339 int i; 5340 _ACEOF 5341 if ac_fn_c_try_compile "$LINENO" 5342 then : 5343 xorg_cv_cc_flag_unused_command_line_argument=yes 5344 else case e in #( 5345 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5346 esac 5347 fi 5348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5349 esac 5350 fi 5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5352 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5354 CFLAGS="$xorg_testset_save_CFLAGS" 5355 fi 5356 5357 found="no" 5358 5359 if test $found = "no" ; then 5360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5362 fi 5363 5364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5366 fi 5367 5368 CFLAGS="$CFLAGS -Wpointer-arith" 5369 5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5371 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5372 cacheid=xorg_cv_cc_flag__Wpointer_arith 5373 if eval test \${$cacheid+y} 5374 then : 5375 printf %s "(cached) " >&6 5376 else case e in #( 5377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5378 /* end confdefs.h. */ 5379 int i; 5380 int 5381 main (void) 5382 { 5383 5384 ; 5385 return 0; 5386 } 5387 _ACEOF 5388 if ac_fn_c_try_link "$LINENO" 5389 then : 5390 eval $cacheid=yes 5391 else case e in #( 5392 e) eval $cacheid=no ;; 5393 esac 5394 fi 5395 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5396 conftest$ac_exeext conftest.$ac_ext ;; 5397 esac 5398 fi 5399 5400 5401 CFLAGS="$xorg_testset_save_CFLAGS" 5402 5403 eval supported=\$$cacheid 5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5405 printf "%s\n" "$supported" >&6; } 5406 if test "$supported" = "yes" ; then 5407 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5408 found="yes" 5409 fi 5410 fi 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 xorg_testset_save_CFLAGS="$CFLAGS" 5427 5428 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5431 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5432 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5433 then : 5434 printf %s "(cached) " >&6 5435 else case e in #( 5436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5437 /* end confdefs.h. */ 5438 int i; 5439 _ACEOF 5440 if ac_fn_c_try_compile "$LINENO" 5441 then : 5442 xorg_cv_cc_flag_unknown_warning_option=yes 5443 else case e in #( 5444 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5445 esac 5446 fi 5447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5448 esac 5449 fi 5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5451 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5453 CFLAGS="$xorg_testset_save_CFLAGS" 5454 fi 5455 5456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5459 fi 5460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5462 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5463 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5464 then : 5465 printf %s "(cached) " >&6 5466 else case e in #( 5467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5468 /* end confdefs.h. */ 5469 int i; 5470 _ACEOF 5471 if ac_fn_c_try_compile "$LINENO" 5472 then : 5473 xorg_cv_cc_flag_unused_command_line_argument=yes 5474 else case e in #( 5475 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5476 esac 5477 fi 5478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5479 esac 5480 fi 5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5482 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5484 CFLAGS="$xorg_testset_save_CFLAGS" 5485 fi 5486 5487 found="no" 5488 5489 if test $found = "no" ; then 5490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5492 fi 5493 5494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5496 fi 5497 5498 CFLAGS="$CFLAGS -Wmissing-declarations" 5499 5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5501 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5502 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5503 if eval test \${$cacheid+y} 5504 then : 5505 printf %s "(cached) " >&6 5506 else case e in #( 5507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5508 /* end confdefs.h. */ 5509 int i; 5510 int 5511 main (void) 5512 { 5513 5514 ; 5515 return 0; 5516 } 5517 _ACEOF 5518 if ac_fn_c_try_link "$LINENO" 5519 then : 5520 eval $cacheid=yes 5521 else case e in #( 5522 e) eval $cacheid=no ;; 5523 esac 5524 fi 5525 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5526 conftest$ac_exeext conftest.$ac_ext ;; 5527 esac 5528 fi 5529 5530 5531 CFLAGS="$xorg_testset_save_CFLAGS" 5532 5533 eval supported=\$$cacheid 5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5535 printf "%s\n" "$supported" >&6; } 5536 if test "$supported" = "yes" ; then 5537 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5538 found="yes" 5539 fi 5540 fi 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 xorg_testset_save_CFLAGS="$CFLAGS" 5557 5558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5561 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5562 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5563 then : 5564 printf %s "(cached) " >&6 5565 else case e in #( 5566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5567 /* end confdefs.h. */ 5568 int i; 5569 _ACEOF 5570 if ac_fn_c_try_compile "$LINENO" 5571 then : 5572 xorg_cv_cc_flag_unknown_warning_option=yes 5573 else case e in #( 5574 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5575 esac 5576 fi 5577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5578 esac 5579 fi 5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5581 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5583 CFLAGS="$xorg_testset_save_CFLAGS" 5584 fi 5585 5586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5589 fi 5590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5592 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5593 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5594 then : 5595 printf %s "(cached) " >&6 5596 else case e in #( 5597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5598 /* end confdefs.h. */ 5599 int i; 5600 _ACEOF 5601 if ac_fn_c_try_compile "$LINENO" 5602 then : 5603 xorg_cv_cc_flag_unused_command_line_argument=yes 5604 else case e in #( 5605 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5606 esac 5607 fi 5608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5609 esac 5610 fi 5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5612 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5614 CFLAGS="$xorg_testset_save_CFLAGS" 5615 fi 5616 5617 found="no" 5618 5619 if test $found = "no" ; then 5620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5622 fi 5623 5624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5626 fi 5627 5628 CFLAGS="$CFLAGS -Wformat=2" 5629 5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5631 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5632 cacheid=xorg_cv_cc_flag__Wformat_2 5633 if eval test \${$cacheid+y} 5634 then : 5635 printf %s "(cached) " >&6 5636 else case e in #( 5637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5638 /* end confdefs.h. */ 5639 int i; 5640 int 5641 main (void) 5642 { 5643 5644 ; 5645 return 0; 5646 } 5647 _ACEOF 5648 if ac_fn_c_try_link "$LINENO" 5649 then : 5650 eval $cacheid=yes 5651 else case e in #( 5652 e) eval $cacheid=no ;; 5653 esac 5654 fi 5655 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5656 conftest$ac_exeext conftest.$ac_ext ;; 5657 esac 5658 fi 5659 5660 5661 CFLAGS="$xorg_testset_save_CFLAGS" 5662 5663 eval supported=\$$cacheid 5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5665 printf "%s\n" "$supported" >&6; } 5666 if test "$supported" = "yes" ; then 5667 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5668 found="yes" 5669 fi 5670 fi 5671 5672 if test $found = "no" ; then 5673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5675 fi 5676 5677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5679 fi 5680 5681 CFLAGS="$CFLAGS -Wformat" 5682 5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5684 printf %s "checking if $CC supports -Wformat... " >&6; } 5685 cacheid=xorg_cv_cc_flag__Wformat 5686 if eval test \${$cacheid+y} 5687 then : 5688 printf %s "(cached) " >&6 5689 else case e in #( 5690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5691 /* end confdefs.h. */ 5692 int i; 5693 int 5694 main (void) 5695 { 5696 5697 ; 5698 return 0; 5699 } 5700 _ACEOF 5701 if ac_fn_c_try_link "$LINENO" 5702 then : 5703 eval $cacheid=yes 5704 else case e in #( 5705 e) eval $cacheid=no ;; 5706 esac 5707 fi 5708 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5709 conftest$ac_exeext conftest.$ac_ext ;; 5710 esac 5711 fi 5712 5713 5714 CFLAGS="$xorg_testset_save_CFLAGS" 5715 5716 eval supported=\$$cacheid 5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5718 printf "%s\n" "$supported" >&6; } 5719 if test "$supported" = "yes" ; then 5720 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5721 found="yes" 5722 fi 5723 fi 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 xorg_testset_save_CFLAGS="$CFLAGS" 5742 5743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5746 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5747 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5748 then : 5749 printf %s "(cached) " >&6 5750 else case e in #( 5751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5752 /* end confdefs.h. */ 5753 int i; 5754 _ACEOF 5755 if ac_fn_c_try_compile "$LINENO" 5756 then : 5757 xorg_cv_cc_flag_unknown_warning_option=yes 5758 else case e in #( 5759 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5760 esac 5761 fi 5762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5763 esac 5764 fi 5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5766 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5768 CFLAGS="$xorg_testset_save_CFLAGS" 5769 fi 5770 5771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5774 fi 5775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5777 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5778 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5779 then : 5780 printf %s "(cached) " >&6 5781 else case e in #( 5782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5783 /* end confdefs.h. */ 5784 int i; 5785 _ACEOF 5786 if ac_fn_c_try_compile "$LINENO" 5787 then : 5788 xorg_cv_cc_flag_unused_command_line_argument=yes 5789 else case e in #( 5790 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5791 esac 5792 fi 5793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5794 esac 5795 fi 5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5797 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5799 CFLAGS="$xorg_testset_save_CFLAGS" 5800 fi 5801 5802 found="no" 5803 5804 if test $found = "no" ; then 5805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5807 fi 5808 5809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5811 fi 5812 5813 CFLAGS="$CFLAGS -Wstrict-prototypes" 5814 5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5816 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5817 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5818 if eval test \${$cacheid+y} 5819 then : 5820 printf %s "(cached) " >&6 5821 else case e in #( 5822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5823 /* end confdefs.h. */ 5824 int i; 5825 int 5826 main (void) 5827 { 5828 5829 ; 5830 return 0; 5831 } 5832 _ACEOF 5833 if ac_fn_c_try_link "$LINENO" 5834 then : 5835 eval $cacheid=yes 5836 else case e in #( 5837 e) eval $cacheid=no ;; 5838 esac 5839 fi 5840 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5841 conftest$ac_exeext conftest.$ac_ext ;; 5842 esac 5843 fi 5844 5845 5846 CFLAGS="$xorg_testset_save_CFLAGS" 5847 5848 eval supported=\$$cacheid 5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5850 printf "%s\n" "$supported" >&6; } 5851 if test "$supported" = "yes" ; then 5852 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5853 found="yes" 5854 fi 5855 fi 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 xorg_testset_save_CFLAGS="$CFLAGS" 5872 5873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5876 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5877 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5878 then : 5879 printf %s "(cached) " >&6 5880 else case e in #( 5881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5882 /* end confdefs.h. */ 5883 int i; 5884 _ACEOF 5885 if ac_fn_c_try_compile "$LINENO" 5886 then : 5887 xorg_cv_cc_flag_unknown_warning_option=yes 5888 else case e in #( 5889 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5890 esac 5891 fi 5892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5893 esac 5894 fi 5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5896 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5898 CFLAGS="$xorg_testset_save_CFLAGS" 5899 fi 5900 5901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5904 fi 5905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5907 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5908 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5909 then : 5910 printf %s "(cached) " >&6 5911 else case e in #( 5912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5913 /* end confdefs.h. */ 5914 int i; 5915 _ACEOF 5916 if ac_fn_c_try_compile "$LINENO" 5917 then : 5918 xorg_cv_cc_flag_unused_command_line_argument=yes 5919 else case e in #( 5920 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5921 esac 5922 fi 5923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5924 esac 5925 fi 5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5927 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5929 CFLAGS="$xorg_testset_save_CFLAGS" 5930 fi 5931 5932 found="no" 5933 5934 if test $found = "no" ; then 5935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5937 fi 5938 5939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5941 fi 5942 5943 CFLAGS="$CFLAGS -Wmissing-prototypes" 5944 5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5946 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5947 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5948 if eval test \${$cacheid+y} 5949 then : 5950 printf %s "(cached) " >&6 5951 else case e in #( 5952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5953 /* end confdefs.h. */ 5954 int i; 5955 int 5956 main (void) 5957 { 5958 5959 ; 5960 return 0; 5961 } 5962 _ACEOF 5963 if ac_fn_c_try_link "$LINENO" 5964 then : 5965 eval $cacheid=yes 5966 else case e in #( 5967 e) eval $cacheid=no ;; 5968 esac 5969 fi 5970 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5971 conftest$ac_exeext conftest.$ac_ext ;; 5972 esac 5973 fi 5974 5975 5976 CFLAGS="$xorg_testset_save_CFLAGS" 5977 5978 eval supported=\$$cacheid 5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5980 printf "%s\n" "$supported" >&6; } 5981 if test "$supported" = "yes" ; then 5982 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5983 found="yes" 5984 fi 5985 fi 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 xorg_testset_save_CFLAGS="$CFLAGS" 6002 6003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6006 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6007 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6008 then : 6009 printf %s "(cached) " >&6 6010 else case e in #( 6011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6012 /* end confdefs.h. */ 6013 int i; 6014 _ACEOF 6015 if ac_fn_c_try_compile "$LINENO" 6016 then : 6017 xorg_cv_cc_flag_unknown_warning_option=yes 6018 else case e in #( 6019 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6020 esac 6021 fi 6022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6023 esac 6024 fi 6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6026 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6028 CFLAGS="$xorg_testset_save_CFLAGS" 6029 fi 6030 6031 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6034 fi 6035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6037 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6038 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6039 then : 6040 printf %s "(cached) " >&6 6041 else case e in #( 6042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6043 /* end confdefs.h. */ 6044 int i; 6045 _ACEOF 6046 if ac_fn_c_try_compile "$LINENO" 6047 then : 6048 xorg_cv_cc_flag_unused_command_line_argument=yes 6049 else case e in #( 6050 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6051 esac 6052 fi 6053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6054 esac 6055 fi 6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6059 CFLAGS="$xorg_testset_save_CFLAGS" 6060 fi 6061 6062 found="no" 6063 6064 if test $found = "no" ; then 6065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6067 fi 6068 6069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6071 fi 6072 6073 CFLAGS="$CFLAGS -Wnested-externs" 6074 6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6076 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6077 cacheid=xorg_cv_cc_flag__Wnested_externs 6078 if eval test \${$cacheid+y} 6079 then : 6080 printf %s "(cached) " >&6 6081 else case e in #( 6082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6083 /* end confdefs.h. */ 6084 int i; 6085 int 6086 main (void) 6087 { 6088 6089 ; 6090 return 0; 6091 } 6092 _ACEOF 6093 if ac_fn_c_try_link "$LINENO" 6094 then : 6095 eval $cacheid=yes 6096 else case e in #( 6097 e) eval $cacheid=no ;; 6098 esac 6099 fi 6100 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6101 conftest$ac_exeext conftest.$ac_ext ;; 6102 esac 6103 fi 6104 6105 6106 CFLAGS="$xorg_testset_save_CFLAGS" 6107 6108 eval supported=\$$cacheid 6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6110 printf "%s\n" "$supported" >&6; } 6111 if test "$supported" = "yes" ; then 6112 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6113 found="yes" 6114 fi 6115 fi 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 xorg_testset_save_CFLAGS="$CFLAGS" 6132 6133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6136 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6137 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6138 then : 6139 printf %s "(cached) " >&6 6140 else case e in #( 6141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6142 /* end confdefs.h. */ 6143 int i; 6144 _ACEOF 6145 if ac_fn_c_try_compile "$LINENO" 6146 then : 6147 xorg_cv_cc_flag_unknown_warning_option=yes 6148 else case e in #( 6149 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6150 esac 6151 fi 6152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6153 esac 6154 fi 6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6156 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6158 CFLAGS="$xorg_testset_save_CFLAGS" 6159 fi 6160 6161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6164 fi 6165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6167 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6168 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6169 then : 6170 printf %s "(cached) " >&6 6171 else case e in #( 6172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6173 /* end confdefs.h. */ 6174 int i; 6175 _ACEOF 6176 if ac_fn_c_try_compile "$LINENO" 6177 then : 6178 xorg_cv_cc_flag_unused_command_line_argument=yes 6179 else case e in #( 6180 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6181 esac 6182 fi 6183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6184 esac 6185 fi 6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6187 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6189 CFLAGS="$xorg_testset_save_CFLAGS" 6190 fi 6191 6192 found="no" 6193 6194 if test $found = "no" ; then 6195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6197 fi 6198 6199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6201 fi 6202 6203 CFLAGS="$CFLAGS -Wbad-function-cast" 6204 6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6206 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6207 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6208 if eval test \${$cacheid+y} 6209 then : 6210 printf %s "(cached) " >&6 6211 else case e in #( 6212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6213 /* end confdefs.h. */ 6214 int i; 6215 int 6216 main (void) 6217 { 6218 6219 ; 6220 return 0; 6221 } 6222 _ACEOF 6223 if ac_fn_c_try_link "$LINENO" 6224 then : 6225 eval $cacheid=yes 6226 else case e in #( 6227 e) eval $cacheid=no ;; 6228 esac 6229 fi 6230 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6231 conftest$ac_exeext conftest.$ac_ext ;; 6232 esac 6233 fi 6234 6235 6236 CFLAGS="$xorg_testset_save_CFLAGS" 6237 6238 eval supported=\$$cacheid 6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6240 printf "%s\n" "$supported" >&6; } 6241 if test "$supported" = "yes" ; then 6242 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6243 found="yes" 6244 fi 6245 fi 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 xorg_testset_save_CFLAGS="$CFLAGS" 6262 6263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6266 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6267 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6268 then : 6269 printf %s "(cached) " >&6 6270 else case e in #( 6271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6272 /* end confdefs.h. */ 6273 int i; 6274 _ACEOF 6275 if ac_fn_c_try_compile "$LINENO" 6276 then : 6277 xorg_cv_cc_flag_unknown_warning_option=yes 6278 else case e in #( 6279 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6280 esac 6281 fi 6282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6283 esac 6284 fi 6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6286 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6288 CFLAGS="$xorg_testset_save_CFLAGS" 6289 fi 6290 6291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6294 fi 6295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6297 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6298 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6299 then : 6300 printf %s "(cached) " >&6 6301 else case e in #( 6302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303 /* end confdefs.h. */ 6304 int i; 6305 _ACEOF 6306 if ac_fn_c_try_compile "$LINENO" 6307 then : 6308 xorg_cv_cc_flag_unused_command_line_argument=yes 6309 else case e in #( 6310 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6311 esac 6312 fi 6313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6314 esac 6315 fi 6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6317 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6319 CFLAGS="$xorg_testset_save_CFLAGS" 6320 fi 6321 6322 found="no" 6323 6324 if test $found = "no" ; then 6325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6327 fi 6328 6329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6331 fi 6332 6333 CFLAGS="$CFLAGS -Wold-style-definition" 6334 6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6336 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6337 cacheid=xorg_cv_cc_flag__Wold_style_definition 6338 if eval test \${$cacheid+y} 6339 then : 6340 printf %s "(cached) " >&6 6341 else case e in #( 6342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6343 /* end confdefs.h. */ 6344 int i; 6345 int 6346 main (void) 6347 { 6348 6349 ; 6350 return 0; 6351 } 6352 _ACEOF 6353 if ac_fn_c_try_link "$LINENO" 6354 then : 6355 eval $cacheid=yes 6356 else case e in #( 6357 e) eval $cacheid=no ;; 6358 esac 6359 fi 6360 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6361 conftest$ac_exeext conftest.$ac_ext ;; 6362 esac 6363 fi 6364 6365 6366 CFLAGS="$xorg_testset_save_CFLAGS" 6367 6368 eval supported=\$$cacheid 6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6370 printf "%s\n" "$supported" >&6; } 6371 if test "$supported" = "yes" ; then 6372 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6373 found="yes" 6374 fi 6375 fi 6376 6377 if test $found = "no" ; then 6378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6380 fi 6381 6382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6384 fi 6385 6386 CFLAGS="$CFLAGS -fd" 6387 6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6389 printf %s "checking if $CC supports -fd... " >&6; } 6390 cacheid=xorg_cv_cc_flag__fd 6391 if eval test \${$cacheid+y} 6392 then : 6393 printf %s "(cached) " >&6 6394 else case e in #( 6395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6396 /* end confdefs.h. */ 6397 int i; 6398 int 6399 main (void) 6400 { 6401 6402 ; 6403 return 0; 6404 } 6405 _ACEOF 6406 if ac_fn_c_try_link "$LINENO" 6407 then : 6408 eval $cacheid=yes 6409 else case e in #( 6410 e) eval $cacheid=no ;; 6411 esac 6412 fi 6413 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6414 conftest$ac_exeext conftest.$ac_ext ;; 6415 esac 6416 fi 6417 6418 6419 CFLAGS="$xorg_testset_save_CFLAGS" 6420 6421 eval supported=\$$cacheid 6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6423 printf "%s\n" "$supported" >&6; } 6424 if test "$supported" = "yes" ; then 6425 BASE_CFLAGS="$BASE_CFLAGS -fd" 6426 found="yes" 6427 fi 6428 fi 6429 6430 6431 6432 6433 6434 # This chunk adds additional warnings that could catch undesired effects. 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 xorg_testset_save_CFLAGS="$CFLAGS" 6449 6450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6453 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6454 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6455 then : 6456 printf %s "(cached) " >&6 6457 else case e in #( 6458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6459 /* end confdefs.h. */ 6460 int i; 6461 _ACEOF 6462 if ac_fn_c_try_compile "$LINENO" 6463 then : 6464 xorg_cv_cc_flag_unknown_warning_option=yes 6465 else case e in #( 6466 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6467 esac 6468 fi 6469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6470 esac 6471 fi 6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6473 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6475 CFLAGS="$xorg_testset_save_CFLAGS" 6476 fi 6477 6478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6481 fi 6482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6484 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6485 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6486 then : 6487 printf %s "(cached) " >&6 6488 else case e in #( 6489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6490 /* end confdefs.h. */ 6491 int i; 6492 _ACEOF 6493 if ac_fn_c_try_compile "$LINENO" 6494 then : 6495 xorg_cv_cc_flag_unused_command_line_argument=yes 6496 else case e in #( 6497 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6498 esac 6499 fi 6500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6501 esac 6502 fi 6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6504 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6506 CFLAGS="$xorg_testset_save_CFLAGS" 6507 fi 6508 6509 found="no" 6510 6511 if test $found = "no" ; then 6512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6514 fi 6515 6516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6518 fi 6519 6520 CFLAGS="$CFLAGS -Wunused" 6521 6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6523 printf %s "checking if $CC supports -Wunused... " >&6; } 6524 cacheid=xorg_cv_cc_flag__Wunused 6525 if eval test \${$cacheid+y} 6526 then : 6527 printf %s "(cached) " >&6 6528 else case e in #( 6529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6530 /* end confdefs.h. */ 6531 int i; 6532 int 6533 main (void) 6534 { 6535 6536 ; 6537 return 0; 6538 } 6539 _ACEOF 6540 if ac_fn_c_try_link "$LINENO" 6541 then : 6542 eval $cacheid=yes 6543 else case e in #( 6544 e) eval $cacheid=no ;; 6545 esac 6546 fi 6547 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6548 conftest$ac_exeext conftest.$ac_ext ;; 6549 esac 6550 fi 6551 6552 6553 CFLAGS="$xorg_testset_save_CFLAGS" 6554 6555 eval supported=\$$cacheid 6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6557 printf "%s\n" "$supported" >&6; } 6558 if test "$supported" = "yes" ; then 6559 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6560 found="yes" 6561 fi 6562 fi 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 xorg_testset_save_CFLAGS="$CFLAGS" 6579 6580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6583 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6584 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6585 then : 6586 printf %s "(cached) " >&6 6587 else case e in #( 6588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6589 /* end confdefs.h. */ 6590 int i; 6591 _ACEOF 6592 if ac_fn_c_try_compile "$LINENO" 6593 then : 6594 xorg_cv_cc_flag_unknown_warning_option=yes 6595 else case e in #( 6596 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6597 esac 6598 fi 6599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6600 esac 6601 fi 6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6603 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6605 CFLAGS="$xorg_testset_save_CFLAGS" 6606 fi 6607 6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6611 fi 6612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6614 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6615 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6616 then : 6617 printf %s "(cached) " >&6 6618 else case e in #( 6619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6620 /* end confdefs.h. */ 6621 int i; 6622 _ACEOF 6623 if ac_fn_c_try_compile "$LINENO" 6624 then : 6625 xorg_cv_cc_flag_unused_command_line_argument=yes 6626 else case e in #( 6627 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6628 esac 6629 fi 6630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6631 esac 6632 fi 6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6634 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6636 CFLAGS="$xorg_testset_save_CFLAGS" 6637 fi 6638 6639 found="no" 6640 6641 if test $found = "no" ; then 6642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6644 fi 6645 6646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6648 fi 6649 6650 CFLAGS="$CFLAGS -Wuninitialized" 6651 6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6653 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6654 cacheid=xorg_cv_cc_flag__Wuninitialized 6655 if eval test \${$cacheid+y} 6656 then : 6657 printf %s "(cached) " >&6 6658 else case e in #( 6659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6660 /* end confdefs.h. */ 6661 int i; 6662 int 6663 main (void) 6664 { 6665 6666 ; 6667 return 0; 6668 } 6669 _ACEOF 6670 if ac_fn_c_try_link "$LINENO" 6671 then : 6672 eval $cacheid=yes 6673 else case e in #( 6674 e) eval $cacheid=no ;; 6675 esac 6676 fi 6677 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6678 conftest$ac_exeext conftest.$ac_ext ;; 6679 esac 6680 fi 6681 6682 6683 CFLAGS="$xorg_testset_save_CFLAGS" 6684 6685 eval supported=\$$cacheid 6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6687 printf "%s\n" "$supported" >&6; } 6688 if test "$supported" = "yes" ; then 6689 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6690 found="yes" 6691 fi 6692 fi 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 xorg_testset_save_CFLAGS="$CFLAGS" 6709 6710 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6713 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6714 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6715 then : 6716 printf %s "(cached) " >&6 6717 else case e in #( 6718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6719 /* end confdefs.h. */ 6720 int i; 6721 _ACEOF 6722 if ac_fn_c_try_compile "$LINENO" 6723 then : 6724 xorg_cv_cc_flag_unknown_warning_option=yes 6725 else case e in #( 6726 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6727 esac 6728 fi 6729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6730 esac 6731 fi 6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6733 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6735 CFLAGS="$xorg_testset_save_CFLAGS" 6736 fi 6737 6738 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6741 fi 6742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6744 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6745 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6746 then : 6747 printf %s "(cached) " >&6 6748 else case e in #( 6749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6750 /* end confdefs.h. */ 6751 int i; 6752 _ACEOF 6753 if ac_fn_c_try_compile "$LINENO" 6754 then : 6755 xorg_cv_cc_flag_unused_command_line_argument=yes 6756 else case e in #( 6757 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6758 esac 6759 fi 6760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6761 esac 6762 fi 6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6764 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6766 CFLAGS="$xorg_testset_save_CFLAGS" 6767 fi 6768 6769 found="no" 6770 6771 if test $found = "no" ; then 6772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6774 fi 6775 6776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6778 fi 6779 6780 CFLAGS="$CFLAGS -Wshadow" 6781 6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6783 printf %s "checking if $CC supports -Wshadow... " >&6; } 6784 cacheid=xorg_cv_cc_flag__Wshadow 6785 if eval test \${$cacheid+y} 6786 then : 6787 printf %s "(cached) " >&6 6788 else case e in #( 6789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6790 /* end confdefs.h. */ 6791 int i; 6792 int 6793 main (void) 6794 { 6795 6796 ; 6797 return 0; 6798 } 6799 _ACEOF 6800 if ac_fn_c_try_link "$LINENO" 6801 then : 6802 eval $cacheid=yes 6803 else case e in #( 6804 e) eval $cacheid=no ;; 6805 esac 6806 fi 6807 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6808 conftest$ac_exeext conftest.$ac_ext ;; 6809 esac 6810 fi 6811 6812 6813 CFLAGS="$xorg_testset_save_CFLAGS" 6814 6815 eval supported=\$$cacheid 6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6817 printf "%s\n" "$supported" >&6; } 6818 if test "$supported" = "yes" ; then 6819 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6820 found="yes" 6821 fi 6822 fi 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 xorg_testset_save_CFLAGS="$CFLAGS" 6839 6840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6843 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6844 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6845 then : 6846 printf %s "(cached) " >&6 6847 else case e in #( 6848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6849 /* end confdefs.h. */ 6850 int i; 6851 _ACEOF 6852 if ac_fn_c_try_compile "$LINENO" 6853 then : 6854 xorg_cv_cc_flag_unknown_warning_option=yes 6855 else case e in #( 6856 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6857 esac 6858 fi 6859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6860 esac 6861 fi 6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6863 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6865 CFLAGS="$xorg_testset_save_CFLAGS" 6866 fi 6867 6868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6871 fi 6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6874 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6875 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6876 then : 6877 printf %s "(cached) " >&6 6878 else case e in #( 6879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6880 /* end confdefs.h. */ 6881 int i; 6882 _ACEOF 6883 if ac_fn_c_try_compile "$LINENO" 6884 then : 6885 xorg_cv_cc_flag_unused_command_line_argument=yes 6886 else case e in #( 6887 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6888 esac 6889 fi 6890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6891 esac 6892 fi 6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6894 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6896 CFLAGS="$xorg_testset_save_CFLAGS" 6897 fi 6898 6899 found="no" 6900 6901 if test $found = "no" ; then 6902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6904 fi 6905 6906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6908 fi 6909 6910 CFLAGS="$CFLAGS -Wmissing-noreturn" 6911 6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6913 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6914 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6915 if eval test \${$cacheid+y} 6916 then : 6917 printf %s "(cached) " >&6 6918 else case e in #( 6919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920 /* end confdefs.h. */ 6921 int i; 6922 int 6923 main (void) 6924 { 6925 6926 ; 6927 return 0; 6928 } 6929 _ACEOF 6930 if ac_fn_c_try_link "$LINENO" 6931 then : 6932 eval $cacheid=yes 6933 else case e in #( 6934 e) eval $cacheid=no ;; 6935 esac 6936 fi 6937 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6938 conftest$ac_exeext conftest.$ac_ext ;; 6939 esac 6940 fi 6941 6942 6943 CFLAGS="$xorg_testset_save_CFLAGS" 6944 6945 eval supported=\$$cacheid 6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6947 printf "%s\n" "$supported" >&6; } 6948 if test "$supported" = "yes" ; then 6949 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6950 found="yes" 6951 fi 6952 fi 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 xorg_testset_save_CFLAGS="$CFLAGS" 6969 6970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6973 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6974 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6975 then : 6976 printf %s "(cached) " >&6 6977 else case e in #( 6978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6979 /* end confdefs.h. */ 6980 int i; 6981 _ACEOF 6982 if ac_fn_c_try_compile "$LINENO" 6983 then : 6984 xorg_cv_cc_flag_unknown_warning_option=yes 6985 else case e in #( 6986 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6987 esac 6988 fi 6989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6990 esac 6991 fi 6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6993 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6995 CFLAGS="$xorg_testset_save_CFLAGS" 6996 fi 6997 6998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7001 fi 7002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7004 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7005 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7006 then : 7007 printf %s "(cached) " >&6 7008 else case e in #( 7009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7010 /* end confdefs.h. */ 7011 int i; 7012 _ACEOF 7013 if ac_fn_c_try_compile "$LINENO" 7014 then : 7015 xorg_cv_cc_flag_unused_command_line_argument=yes 7016 else case e in #( 7017 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7018 esac 7019 fi 7020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7021 esac 7022 fi 7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7024 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7026 CFLAGS="$xorg_testset_save_CFLAGS" 7027 fi 7028 7029 found="no" 7030 7031 if test $found = "no" ; then 7032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7034 fi 7035 7036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7038 fi 7039 7040 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7041 7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7043 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7044 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7045 if eval test \${$cacheid+y} 7046 then : 7047 printf %s "(cached) " >&6 7048 else case e in #( 7049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050 /* end confdefs.h. */ 7051 int i; 7052 int 7053 main (void) 7054 { 7055 7056 ; 7057 return 0; 7058 } 7059 _ACEOF 7060 if ac_fn_c_try_link "$LINENO" 7061 then : 7062 eval $cacheid=yes 7063 else case e in #( 7064 e) eval $cacheid=no ;; 7065 esac 7066 fi 7067 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7068 conftest$ac_exeext conftest.$ac_ext ;; 7069 esac 7070 fi 7071 7072 7073 CFLAGS="$xorg_testset_save_CFLAGS" 7074 7075 eval supported=\$$cacheid 7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7077 printf "%s\n" "$supported" >&6; } 7078 if test "$supported" = "yes" ; then 7079 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7080 found="yes" 7081 fi 7082 fi 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 xorg_testset_save_CFLAGS="$CFLAGS" 7099 7100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7103 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7104 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7105 then : 7106 printf %s "(cached) " >&6 7107 else case e in #( 7108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7109 /* end confdefs.h. */ 7110 int i; 7111 _ACEOF 7112 if ac_fn_c_try_compile "$LINENO" 7113 then : 7114 xorg_cv_cc_flag_unknown_warning_option=yes 7115 else case e in #( 7116 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7117 esac 7118 fi 7119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7120 esac 7121 fi 7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7123 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7125 CFLAGS="$xorg_testset_save_CFLAGS" 7126 fi 7127 7128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7131 fi 7132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7134 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7135 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7136 then : 7137 printf %s "(cached) " >&6 7138 else case e in #( 7139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7140 /* end confdefs.h. */ 7141 int i; 7142 _ACEOF 7143 if ac_fn_c_try_compile "$LINENO" 7144 then : 7145 xorg_cv_cc_flag_unused_command_line_argument=yes 7146 else case e in #( 7147 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7148 esac 7149 fi 7150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7151 esac 7152 fi 7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7154 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7156 CFLAGS="$xorg_testset_save_CFLAGS" 7157 fi 7158 7159 found="no" 7160 7161 if test $found = "no" ; then 7162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7164 fi 7165 7166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7168 fi 7169 7170 CFLAGS="$CFLAGS -Wredundant-decls" 7171 7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7173 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7174 cacheid=xorg_cv_cc_flag__Wredundant_decls 7175 if eval test \${$cacheid+y} 7176 then : 7177 printf %s "(cached) " >&6 7178 else case e in #( 7179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180 /* end confdefs.h. */ 7181 int i; 7182 int 7183 main (void) 7184 { 7185 7186 ; 7187 return 0; 7188 } 7189 _ACEOF 7190 if ac_fn_c_try_link "$LINENO" 7191 then : 7192 eval $cacheid=yes 7193 else case e in #( 7194 e) eval $cacheid=no ;; 7195 esac 7196 fi 7197 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7198 conftest$ac_exeext conftest.$ac_ext ;; 7199 esac 7200 fi 7201 7202 7203 CFLAGS="$xorg_testset_save_CFLAGS" 7204 7205 eval supported=\$$cacheid 7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7207 printf "%s\n" "$supported" >&6; } 7208 if test "$supported" = "yes" ; then 7209 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7210 found="yes" 7211 fi 7212 fi 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 xorg_testset_save_CFLAGS="$CFLAGS" 7229 7230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7233 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7234 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7235 then : 7236 printf %s "(cached) " >&6 7237 else case e in #( 7238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7239 /* end confdefs.h. */ 7240 int i; 7241 _ACEOF 7242 if ac_fn_c_try_compile "$LINENO" 7243 then : 7244 xorg_cv_cc_flag_unknown_warning_option=yes 7245 else case e in #( 7246 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7247 esac 7248 fi 7249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7250 esac 7251 fi 7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7253 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7255 CFLAGS="$xorg_testset_save_CFLAGS" 7256 fi 7257 7258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7261 fi 7262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7265 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7266 then : 7267 printf %s "(cached) " >&6 7268 else case e in #( 7269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7270 /* end confdefs.h. */ 7271 int i; 7272 _ACEOF 7273 if ac_fn_c_try_compile "$LINENO" 7274 then : 7275 xorg_cv_cc_flag_unused_command_line_argument=yes 7276 else case e in #( 7277 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7278 esac 7279 fi 7280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7281 esac 7282 fi 7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7284 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7286 CFLAGS="$xorg_testset_save_CFLAGS" 7287 fi 7288 7289 found="no" 7290 7291 if test $found = "no" ; then 7292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7294 fi 7295 7296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7298 fi 7299 7300 CFLAGS="$CFLAGS -Wlogical-op" 7301 7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7303 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7304 cacheid=xorg_cv_cc_flag__Wlogical_op 7305 if eval test \${$cacheid+y} 7306 then : 7307 printf %s "(cached) " >&6 7308 else case e in #( 7309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7310 /* end confdefs.h. */ 7311 int i; 7312 int 7313 main (void) 7314 { 7315 7316 ; 7317 return 0; 7318 } 7319 _ACEOF 7320 if ac_fn_c_try_link "$LINENO" 7321 then : 7322 eval $cacheid=yes 7323 else case e in #( 7324 e) eval $cacheid=no ;; 7325 esac 7326 fi 7327 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7328 conftest$ac_exeext conftest.$ac_ext ;; 7329 esac 7330 fi 7331 7332 7333 CFLAGS="$xorg_testset_save_CFLAGS" 7334 7335 eval supported=\$$cacheid 7336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7337 printf "%s\n" "$supported" >&6; } 7338 if test "$supported" = "yes" ; then 7339 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7340 found="yes" 7341 fi 7342 fi 7343 7344 7345 7346 # These are currently disabled because they are noisy. They will be enabled 7347 # in the future once the codebase is sufficiently modernized to silence 7348 # them. For now, I don't want them to drown out the other warnings. 7349 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7350 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7351 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7352 7353 # Turn some warnings into errors, so we don't accidentally get successful builds 7354 # when there are problems that should be fixed. 7355 7356 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 xorg_testset_save_CFLAGS="$CFLAGS" 7371 7372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7375 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7376 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7377 then : 7378 printf %s "(cached) " >&6 7379 else case e in #( 7380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7381 /* end confdefs.h. */ 7382 int i; 7383 _ACEOF 7384 if ac_fn_c_try_compile "$LINENO" 7385 then : 7386 xorg_cv_cc_flag_unknown_warning_option=yes 7387 else case e in #( 7388 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7389 esac 7390 fi 7391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7392 esac 7393 fi 7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7395 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7397 CFLAGS="$xorg_testset_save_CFLAGS" 7398 fi 7399 7400 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7403 fi 7404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7406 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7407 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7408 then : 7409 printf %s "(cached) " >&6 7410 else case e in #( 7411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7412 /* end confdefs.h. */ 7413 int i; 7414 _ACEOF 7415 if ac_fn_c_try_compile "$LINENO" 7416 then : 7417 xorg_cv_cc_flag_unused_command_line_argument=yes 7418 else case e in #( 7419 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7420 esac 7421 fi 7422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7423 esac 7424 fi 7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7426 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7428 CFLAGS="$xorg_testset_save_CFLAGS" 7429 fi 7430 7431 found="no" 7432 7433 if test $found = "no" ; then 7434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7436 fi 7437 7438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7440 fi 7441 7442 CFLAGS="$CFLAGS -Werror=implicit" 7443 7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7445 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7446 cacheid=xorg_cv_cc_flag__Werror_implicit 7447 if eval test \${$cacheid+y} 7448 then : 7449 printf %s "(cached) " >&6 7450 else case e in #( 7451 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7452 /* end confdefs.h. */ 7453 int i; 7454 int 7455 main (void) 7456 { 7457 7458 ; 7459 return 0; 7460 } 7461 _ACEOF 7462 if ac_fn_c_try_link "$LINENO" 7463 then : 7464 eval $cacheid=yes 7465 else case e in #( 7466 e) eval $cacheid=no ;; 7467 esac 7468 fi 7469 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7470 conftest$ac_exeext conftest.$ac_ext ;; 7471 esac 7472 fi 7473 7474 7475 CFLAGS="$xorg_testset_save_CFLAGS" 7476 7477 eval supported=\$$cacheid 7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7479 printf "%s\n" "$supported" >&6; } 7480 if test "$supported" = "yes" ; then 7481 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7482 found="yes" 7483 fi 7484 fi 7485 7486 if test $found = "no" ; then 7487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7489 fi 7490 7491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7493 fi 7494 7495 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7496 7497 { 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 7498 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7499 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7500 if eval test \${$cacheid+y} 7501 then : 7502 printf %s "(cached) " >&6 7503 else case e in #( 7504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7505 /* end confdefs.h. */ 7506 int i; 7507 int 7508 main (void) 7509 { 7510 7511 ; 7512 return 0; 7513 } 7514 _ACEOF 7515 if ac_fn_c_try_link "$LINENO" 7516 then : 7517 eval $cacheid=yes 7518 else case e in #( 7519 e) eval $cacheid=no ;; 7520 esac 7521 fi 7522 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7523 conftest$ac_exeext conftest.$ac_ext ;; 7524 esac 7525 fi 7526 7527 7528 CFLAGS="$xorg_testset_save_CFLAGS" 7529 7530 eval supported=\$$cacheid 7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7532 printf "%s\n" "$supported" >&6; } 7533 if test "$supported" = "yes" ; then 7534 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7535 found="yes" 7536 fi 7537 fi 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 xorg_testset_save_CFLAGS="$CFLAGS" 7554 7555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7558 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7559 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7560 then : 7561 printf %s "(cached) " >&6 7562 else case e in #( 7563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7564 /* end confdefs.h. */ 7565 int i; 7566 _ACEOF 7567 if ac_fn_c_try_compile "$LINENO" 7568 then : 7569 xorg_cv_cc_flag_unknown_warning_option=yes 7570 else case e in #( 7571 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7572 esac 7573 fi 7574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7575 esac 7576 fi 7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7578 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7580 CFLAGS="$xorg_testset_save_CFLAGS" 7581 fi 7582 7583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7586 fi 7587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7589 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7590 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7591 then : 7592 printf %s "(cached) " >&6 7593 else case e in #( 7594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7595 /* end confdefs.h. */ 7596 int i; 7597 _ACEOF 7598 if ac_fn_c_try_compile "$LINENO" 7599 then : 7600 xorg_cv_cc_flag_unused_command_line_argument=yes 7601 else case e in #( 7602 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7603 esac 7604 fi 7605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7606 esac 7607 fi 7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7609 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7611 CFLAGS="$xorg_testset_save_CFLAGS" 7612 fi 7613 7614 found="no" 7615 7616 if test $found = "no" ; then 7617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7619 fi 7620 7621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7623 fi 7624 7625 CFLAGS="$CFLAGS -Werror=nonnull" 7626 7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7628 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7629 cacheid=xorg_cv_cc_flag__Werror_nonnull 7630 if eval test \${$cacheid+y} 7631 then : 7632 printf %s "(cached) " >&6 7633 else case e in #( 7634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7635 /* end confdefs.h. */ 7636 int i; 7637 int 7638 main (void) 7639 { 7640 7641 ; 7642 return 0; 7643 } 7644 _ACEOF 7645 if ac_fn_c_try_link "$LINENO" 7646 then : 7647 eval $cacheid=yes 7648 else case e in #( 7649 e) eval $cacheid=no ;; 7650 esac 7651 fi 7652 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7653 conftest$ac_exeext conftest.$ac_ext ;; 7654 esac 7655 fi 7656 7657 7658 CFLAGS="$xorg_testset_save_CFLAGS" 7659 7660 eval supported=\$$cacheid 7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7662 printf "%s\n" "$supported" >&6; } 7663 if test "$supported" = "yes" ; then 7664 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7665 found="yes" 7666 fi 7667 fi 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 xorg_testset_save_CFLAGS="$CFLAGS" 7684 7685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7688 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7689 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7690 then : 7691 printf %s "(cached) " >&6 7692 else case e in #( 7693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7694 /* end confdefs.h. */ 7695 int i; 7696 _ACEOF 7697 if ac_fn_c_try_compile "$LINENO" 7698 then : 7699 xorg_cv_cc_flag_unknown_warning_option=yes 7700 else case e in #( 7701 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7702 esac 7703 fi 7704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7705 esac 7706 fi 7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7708 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7710 CFLAGS="$xorg_testset_save_CFLAGS" 7711 fi 7712 7713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7716 fi 7717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7719 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7720 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7721 then : 7722 printf %s "(cached) " >&6 7723 else case e in #( 7724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725 /* end confdefs.h. */ 7726 int i; 7727 _ACEOF 7728 if ac_fn_c_try_compile "$LINENO" 7729 then : 7730 xorg_cv_cc_flag_unused_command_line_argument=yes 7731 else case e in #( 7732 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7733 esac 7734 fi 7735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7736 esac 7737 fi 7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7739 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7741 CFLAGS="$xorg_testset_save_CFLAGS" 7742 fi 7743 7744 found="no" 7745 7746 if test $found = "no" ; then 7747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7749 fi 7750 7751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7753 fi 7754 7755 CFLAGS="$CFLAGS -Werror=init-self" 7756 7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7758 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7759 cacheid=xorg_cv_cc_flag__Werror_init_self 7760 if eval test \${$cacheid+y} 7761 then : 7762 printf %s "(cached) " >&6 7763 else case e in #( 7764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7765 /* end confdefs.h. */ 7766 int i; 7767 int 7768 main (void) 7769 { 7770 7771 ; 7772 return 0; 7773 } 7774 _ACEOF 7775 if ac_fn_c_try_link "$LINENO" 7776 then : 7777 eval $cacheid=yes 7778 else case e in #( 7779 e) eval $cacheid=no ;; 7780 esac 7781 fi 7782 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7783 conftest$ac_exeext conftest.$ac_ext ;; 7784 esac 7785 fi 7786 7787 7788 CFLAGS="$xorg_testset_save_CFLAGS" 7789 7790 eval supported=\$$cacheid 7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7792 printf "%s\n" "$supported" >&6; } 7793 if test "$supported" = "yes" ; then 7794 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7795 found="yes" 7796 fi 7797 fi 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 xorg_testset_save_CFLAGS="$CFLAGS" 7814 7815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7818 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7819 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7820 then : 7821 printf %s "(cached) " >&6 7822 else case e in #( 7823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7824 /* end confdefs.h. */ 7825 int i; 7826 _ACEOF 7827 if ac_fn_c_try_compile "$LINENO" 7828 then : 7829 xorg_cv_cc_flag_unknown_warning_option=yes 7830 else case e in #( 7831 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7832 esac 7833 fi 7834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7835 esac 7836 fi 7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7838 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7840 CFLAGS="$xorg_testset_save_CFLAGS" 7841 fi 7842 7843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7846 fi 7847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7849 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7850 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7851 then : 7852 printf %s "(cached) " >&6 7853 else case e in #( 7854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7855 /* end confdefs.h. */ 7856 int i; 7857 _ACEOF 7858 if ac_fn_c_try_compile "$LINENO" 7859 then : 7860 xorg_cv_cc_flag_unused_command_line_argument=yes 7861 else case e in #( 7862 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7863 esac 7864 fi 7865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7866 esac 7867 fi 7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7869 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7871 CFLAGS="$xorg_testset_save_CFLAGS" 7872 fi 7873 7874 found="no" 7875 7876 if test $found = "no" ; then 7877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7879 fi 7880 7881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7883 fi 7884 7885 CFLAGS="$CFLAGS -Werror=main" 7886 7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7888 printf %s "checking if $CC supports -Werror=main... " >&6; } 7889 cacheid=xorg_cv_cc_flag__Werror_main 7890 if eval test \${$cacheid+y} 7891 then : 7892 printf %s "(cached) " >&6 7893 else case e in #( 7894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7895 /* end confdefs.h. */ 7896 int i; 7897 int 7898 main (void) 7899 { 7900 7901 ; 7902 return 0; 7903 } 7904 _ACEOF 7905 if ac_fn_c_try_link "$LINENO" 7906 then : 7907 eval $cacheid=yes 7908 else case e in #( 7909 e) eval $cacheid=no ;; 7910 esac 7911 fi 7912 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7913 conftest$ac_exeext conftest.$ac_ext ;; 7914 esac 7915 fi 7916 7917 7918 CFLAGS="$xorg_testset_save_CFLAGS" 7919 7920 eval supported=\$$cacheid 7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7922 printf "%s\n" "$supported" >&6; } 7923 if test "$supported" = "yes" ; then 7924 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7925 found="yes" 7926 fi 7927 fi 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 xorg_testset_save_CFLAGS="$CFLAGS" 7944 7945 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7948 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7949 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7950 then : 7951 printf %s "(cached) " >&6 7952 else case e in #( 7953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7954 /* end confdefs.h. */ 7955 int i; 7956 _ACEOF 7957 if ac_fn_c_try_compile "$LINENO" 7958 then : 7959 xorg_cv_cc_flag_unknown_warning_option=yes 7960 else case e in #( 7961 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7962 esac 7963 fi 7964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7965 esac 7966 fi 7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7968 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7970 CFLAGS="$xorg_testset_save_CFLAGS" 7971 fi 7972 7973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7976 fi 7977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7979 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7980 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7981 then : 7982 printf %s "(cached) " >&6 7983 else case e in #( 7984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7985 /* end confdefs.h. */ 7986 int i; 7987 _ACEOF 7988 if ac_fn_c_try_compile "$LINENO" 7989 then : 7990 xorg_cv_cc_flag_unused_command_line_argument=yes 7991 else case e in #( 7992 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7993 esac 7994 fi 7995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7996 esac 7997 fi 7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7999 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8001 CFLAGS="$xorg_testset_save_CFLAGS" 8002 fi 8003 8004 found="no" 8005 8006 if test $found = "no" ; then 8007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8009 fi 8010 8011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8013 fi 8014 8015 CFLAGS="$CFLAGS -Werror=missing-braces" 8016 8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8018 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8019 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8020 if eval test \${$cacheid+y} 8021 then : 8022 printf %s "(cached) " >&6 8023 else case e in #( 8024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8025 /* end confdefs.h. */ 8026 int i; 8027 int 8028 main (void) 8029 { 8030 8031 ; 8032 return 0; 8033 } 8034 _ACEOF 8035 if ac_fn_c_try_link "$LINENO" 8036 then : 8037 eval $cacheid=yes 8038 else case e in #( 8039 e) eval $cacheid=no ;; 8040 esac 8041 fi 8042 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8043 conftest$ac_exeext conftest.$ac_ext ;; 8044 esac 8045 fi 8046 8047 8048 CFLAGS="$xorg_testset_save_CFLAGS" 8049 8050 eval supported=\$$cacheid 8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8052 printf "%s\n" "$supported" >&6; } 8053 if test "$supported" = "yes" ; then 8054 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8055 found="yes" 8056 fi 8057 fi 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 xorg_testset_save_CFLAGS="$CFLAGS" 8074 8075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8078 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8079 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8080 then : 8081 printf %s "(cached) " >&6 8082 else case e in #( 8083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084 /* end confdefs.h. */ 8085 int i; 8086 _ACEOF 8087 if ac_fn_c_try_compile "$LINENO" 8088 then : 8089 xorg_cv_cc_flag_unknown_warning_option=yes 8090 else case e in #( 8091 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8092 esac 8093 fi 8094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8095 esac 8096 fi 8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8098 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8100 CFLAGS="$xorg_testset_save_CFLAGS" 8101 fi 8102 8103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8106 fi 8107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8109 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8110 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8111 then : 8112 printf %s "(cached) " >&6 8113 else case e in #( 8114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8115 /* end confdefs.h. */ 8116 int i; 8117 _ACEOF 8118 if ac_fn_c_try_compile "$LINENO" 8119 then : 8120 xorg_cv_cc_flag_unused_command_line_argument=yes 8121 else case e in #( 8122 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8123 esac 8124 fi 8125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8126 esac 8127 fi 8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8129 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8131 CFLAGS="$xorg_testset_save_CFLAGS" 8132 fi 8133 8134 found="no" 8135 8136 if test $found = "no" ; then 8137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8139 fi 8140 8141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8143 fi 8144 8145 CFLAGS="$CFLAGS -Werror=sequence-point" 8146 8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8148 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8149 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8150 if eval test \${$cacheid+y} 8151 then : 8152 printf %s "(cached) " >&6 8153 else case e in #( 8154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8155 /* end confdefs.h. */ 8156 int i; 8157 int 8158 main (void) 8159 { 8160 8161 ; 8162 return 0; 8163 } 8164 _ACEOF 8165 if ac_fn_c_try_link "$LINENO" 8166 then : 8167 eval $cacheid=yes 8168 else case e in #( 8169 e) eval $cacheid=no ;; 8170 esac 8171 fi 8172 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8173 conftest$ac_exeext conftest.$ac_ext ;; 8174 esac 8175 fi 8176 8177 8178 CFLAGS="$xorg_testset_save_CFLAGS" 8179 8180 eval supported=\$$cacheid 8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8182 printf "%s\n" "$supported" >&6; } 8183 if test "$supported" = "yes" ; then 8184 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8185 found="yes" 8186 fi 8187 fi 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 xorg_testset_save_CFLAGS="$CFLAGS" 8204 8205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8208 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8209 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8210 then : 8211 printf %s "(cached) " >&6 8212 else case e in #( 8213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8214 /* end confdefs.h. */ 8215 int i; 8216 _ACEOF 8217 if ac_fn_c_try_compile "$LINENO" 8218 then : 8219 xorg_cv_cc_flag_unknown_warning_option=yes 8220 else case e in #( 8221 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8222 esac 8223 fi 8224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8225 esac 8226 fi 8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8228 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8230 CFLAGS="$xorg_testset_save_CFLAGS" 8231 fi 8232 8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8236 fi 8237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8239 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8240 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8241 then : 8242 printf %s "(cached) " >&6 8243 else case e in #( 8244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245 /* end confdefs.h. */ 8246 int i; 8247 _ACEOF 8248 if ac_fn_c_try_compile "$LINENO" 8249 then : 8250 xorg_cv_cc_flag_unused_command_line_argument=yes 8251 else case e in #( 8252 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8253 esac 8254 fi 8255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8256 esac 8257 fi 8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8259 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8261 CFLAGS="$xorg_testset_save_CFLAGS" 8262 fi 8263 8264 found="no" 8265 8266 if test $found = "no" ; then 8267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8269 fi 8270 8271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8273 fi 8274 8275 CFLAGS="$CFLAGS -Werror=return-type" 8276 8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8278 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8279 cacheid=xorg_cv_cc_flag__Werror_return_type 8280 if eval test \${$cacheid+y} 8281 then : 8282 printf %s "(cached) " >&6 8283 else case e in #( 8284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285 /* end confdefs.h. */ 8286 int i; 8287 int 8288 main (void) 8289 { 8290 8291 ; 8292 return 0; 8293 } 8294 _ACEOF 8295 if ac_fn_c_try_link "$LINENO" 8296 then : 8297 eval $cacheid=yes 8298 else case e in #( 8299 e) eval $cacheid=no ;; 8300 esac 8301 fi 8302 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8303 conftest$ac_exeext conftest.$ac_ext ;; 8304 esac 8305 fi 8306 8307 8308 CFLAGS="$xorg_testset_save_CFLAGS" 8309 8310 eval supported=\$$cacheid 8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8312 printf "%s\n" "$supported" >&6; } 8313 if test "$supported" = "yes" ; then 8314 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8315 found="yes" 8316 fi 8317 fi 8318 8319 if test $found = "no" ; then 8320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8322 fi 8323 8324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8326 fi 8327 8328 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8329 8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8331 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8332 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8333 if eval test \${$cacheid+y} 8334 then : 8335 printf %s "(cached) " >&6 8336 else case e in #( 8337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8338 /* end confdefs.h. */ 8339 int i; 8340 int 8341 main (void) 8342 { 8343 8344 ; 8345 return 0; 8346 } 8347 _ACEOF 8348 if ac_fn_c_try_link "$LINENO" 8349 then : 8350 eval $cacheid=yes 8351 else case e in #( 8352 e) eval $cacheid=no ;; 8353 esac 8354 fi 8355 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8356 conftest$ac_exeext conftest.$ac_ext ;; 8357 esac 8358 fi 8359 8360 8361 CFLAGS="$xorg_testset_save_CFLAGS" 8362 8363 eval supported=\$$cacheid 8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8365 printf "%s\n" "$supported" >&6; } 8366 if test "$supported" = "yes" ; then 8367 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8368 found="yes" 8369 fi 8370 fi 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 xorg_testset_save_CFLAGS="$CFLAGS" 8387 8388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8391 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8392 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8393 then : 8394 printf %s "(cached) " >&6 8395 else case e in #( 8396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8397 /* end confdefs.h. */ 8398 int i; 8399 _ACEOF 8400 if ac_fn_c_try_compile "$LINENO" 8401 then : 8402 xorg_cv_cc_flag_unknown_warning_option=yes 8403 else case e in #( 8404 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8405 esac 8406 fi 8407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8408 esac 8409 fi 8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8411 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8413 CFLAGS="$xorg_testset_save_CFLAGS" 8414 fi 8415 8416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8419 fi 8420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8422 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8423 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8424 then : 8425 printf %s "(cached) " >&6 8426 else case e in #( 8427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8428 /* end confdefs.h. */ 8429 int i; 8430 _ACEOF 8431 if ac_fn_c_try_compile "$LINENO" 8432 then : 8433 xorg_cv_cc_flag_unused_command_line_argument=yes 8434 else case e in #( 8435 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8436 esac 8437 fi 8438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8439 esac 8440 fi 8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8442 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8444 CFLAGS="$xorg_testset_save_CFLAGS" 8445 fi 8446 8447 found="no" 8448 8449 if test $found = "no" ; then 8450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8452 fi 8453 8454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8456 fi 8457 8458 CFLAGS="$CFLAGS -Werror=trigraphs" 8459 8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8461 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8462 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8463 if eval test \${$cacheid+y} 8464 then : 8465 printf %s "(cached) " >&6 8466 else case e in #( 8467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8468 /* end confdefs.h. */ 8469 int i; 8470 int 8471 main (void) 8472 { 8473 8474 ; 8475 return 0; 8476 } 8477 _ACEOF 8478 if ac_fn_c_try_link "$LINENO" 8479 then : 8480 eval $cacheid=yes 8481 else case e in #( 8482 e) eval $cacheid=no ;; 8483 esac 8484 fi 8485 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8486 conftest$ac_exeext conftest.$ac_ext ;; 8487 esac 8488 fi 8489 8490 8491 CFLAGS="$xorg_testset_save_CFLAGS" 8492 8493 eval supported=\$$cacheid 8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8495 printf "%s\n" "$supported" >&6; } 8496 if test "$supported" = "yes" ; then 8497 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8498 found="yes" 8499 fi 8500 fi 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 xorg_testset_save_CFLAGS="$CFLAGS" 8517 8518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8521 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8522 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8523 then : 8524 printf %s "(cached) " >&6 8525 else case e in #( 8526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8527 /* end confdefs.h. */ 8528 int i; 8529 _ACEOF 8530 if ac_fn_c_try_compile "$LINENO" 8531 then : 8532 xorg_cv_cc_flag_unknown_warning_option=yes 8533 else case e in #( 8534 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8535 esac 8536 fi 8537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8538 esac 8539 fi 8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8541 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8543 CFLAGS="$xorg_testset_save_CFLAGS" 8544 fi 8545 8546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8549 fi 8550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8552 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8553 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8554 then : 8555 printf %s "(cached) " >&6 8556 else case e in #( 8557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8558 /* end confdefs.h. */ 8559 int i; 8560 _ACEOF 8561 if ac_fn_c_try_compile "$LINENO" 8562 then : 8563 xorg_cv_cc_flag_unused_command_line_argument=yes 8564 else case e in #( 8565 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8566 esac 8567 fi 8568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8569 esac 8570 fi 8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8572 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8574 CFLAGS="$xorg_testset_save_CFLAGS" 8575 fi 8576 8577 found="no" 8578 8579 if test $found = "no" ; then 8580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8582 fi 8583 8584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8586 fi 8587 8588 CFLAGS="$CFLAGS -Werror=array-bounds" 8589 8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8591 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8592 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8593 if eval test \${$cacheid+y} 8594 then : 8595 printf %s "(cached) " >&6 8596 else case e in #( 8597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8598 /* end confdefs.h. */ 8599 int i; 8600 int 8601 main (void) 8602 { 8603 8604 ; 8605 return 0; 8606 } 8607 _ACEOF 8608 if ac_fn_c_try_link "$LINENO" 8609 then : 8610 eval $cacheid=yes 8611 else case e in #( 8612 e) eval $cacheid=no ;; 8613 esac 8614 fi 8615 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8616 conftest$ac_exeext conftest.$ac_ext ;; 8617 esac 8618 fi 8619 8620 8621 CFLAGS="$xorg_testset_save_CFLAGS" 8622 8623 eval supported=\$$cacheid 8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8625 printf "%s\n" "$supported" >&6; } 8626 if test "$supported" = "yes" ; then 8627 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8628 found="yes" 8629 fi 8630 fi 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 xorg_testset_save_CFLAGS="$CFLAGS" 8647 8648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8651 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8652 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8653 then : 8654 printf %s "(cached) " >&6 8655 else case e in #( 8656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8657 /* end confdefs.h. */ 8658 int i; 8659 _ACEOF 8660 if ac_fn_c_try_compile "$LINENO" 8661 then : 8662 xorg_cv_cc_flag_unknown_warning_option=yes 8663 else case e in #( 8664 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8665 esac 8666 fi 8667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8668 esac 8669 fi 8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8671 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8673 CFLAGS="$xorg_testset_save_CFLAGS" 8674 fi 8675 8676 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8679 fi 8680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8682 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8683 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8684 then : 8685 printf %s "(cached) " >&6 8686 else case e in #( 8687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8688 /* end confdefs.h. */ 8689 int i; 8690 _ACEOF 8691 if ac_fn_c_try_compile "$LINENO" 8692 then : 8693 xorg_cv_cc_flag_unused_command_line_argument=yes 8694 else case e in #( 8695 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8696 esac 8697 fi 8698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8699 esac 8700 fi 8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8702 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8704 CFLAGS="$xorg_testset_save_CFLAGS" 8705 fi 8706 8707 found="no" 8708 8709 if test $found = "no" ; then 8710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8712 fi 8713 8714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8716 fi 8717 8718 CFLAGS="$CFLAGS -Werror=write-strings" 8719 8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8721 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8722 cacheid=xorg_cv_cc_flag__Werror_write_strings 8723 if eval test \${$cacheid+y} 8724 then : 8725 printf %s "(cached) " >&6 8726 else case e in #( 8727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8728 /* end confdefs.h. */ 8729 int i; 8730 int 8731 main (void) 8732 { 8733 8734 ; 8735 return 0; 8736 } 8737 _ACEOF 8738 if ac_fn_c_try_link "$LINENO" 8739 then : 8740 eval $cacheid=yes 8741 else case e in #( 8742 e) eval $cacheid=no ;; 8743 esac 8744 fi 8745 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8746 conftest$ac_exeext conftest.$ac_ext ;; 8747 esac 8748 fi 8749 8750 8751 CFLAGS="$xorg_testset_save_CFLAGS" 8752 8753 eval supported=\$$cacheid 8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8755 printf "%s\n" "$supported" >&6; } 8756 if test "$supported" = "yes" ; then 8757 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8758 found="yes" 8759 fi 8760 fi 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 xorg_testset_save_CFLAGS="$CFLAGS" 8777 8778 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8781 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8782 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8783 then : 8784 printf %s "(cached) " >&6 8785 else case e in #( 8786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8787 /* end confdefs.h. */ 8788 int i; 8789 _ACEOF 8790 if ac_fn_c_try_compile "$LINENO" 8791 then : 8792 xorg_cv_cc_flag_unknown_warning_option=yes 8793 else case e in #( 8794 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8795 esac 8796 fi 8797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8798 esac 8799 fi 8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8801 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8803 CFLAGS="$xorg_testset_save_CFLAGS" 8804 fi 8805 8806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8809 fi 8810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8812 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8813 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8814 then : 8815 printf %s "(cached) " >&6 8816 else case e in #( 8817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8818 /* end confdefs.h. */ 8819 int i; 8820 _ACEOF 8821 if ac_fn_c_try_compile "$LINENO" 8822 then : 8823 xorg_cv_cc_flag_unused_command_line_argument=yes 8824 else case e in #( 8825 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8826 esac 8827 fi 8828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8829 esac 8830 fi 8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8832 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8834 CFLAGS="$xorg_testset_save_CFLAGS" 8835 fi 8836 8837 found="no" 8838 8839 if test $found = "no" ; then 8840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8842 fi 8843 8844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8846 fi 8847 8848 CFLAGS="$CFLAGS -Werror=address" 8849 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8851 printf %s "checking if $CC supports -Werror=address... " >&6; } 8852 cacheid=xorg_cv_cc_flag__Werror_address 8853 if eval test \${$cacheid+y} 8854 then : 8855 printf %s "(cached) " >&6 8856 else case e in #( 8857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8858 /* end confdefs.h. */ 8859 int i; 8860 int 8861 main (void) 8862 { 8863 8864 ; 8865 return 0; 8866 } 8867 _ACEOF 8868 if ac_fn_c_try_link "$LINENO" 8869 then : 8870 eval $cacheid=yes 8871 else case e in #( 8872 e) eval $cacheid=no ;; 8873 esac 8874 fi 8875 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8876 conftest$ac_exeext conftest.$ac_ext ;; 8877 esac 8878 fi 8879 8880 8881 CFLAGS="$xorg_testset_save_CFLAGS" 8882 8883 eval supported=\$$cacheid 8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8885 printf "%s\n" "$supported" >&6; } 8886 if test "$supported" = "yes" ; then 8887 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8888 found="yes" 8889 fi 8890 fi 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 xorg_testset_save_CFLAGS="$CFLAGS" 8907 8908 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8911 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8912 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8913 then : 8914 printf %s "(cached) " >&6 8915 else case e in #( 8916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8917 /* end confdefs.h. */ 8918 int i; 8919 _ACEOF 8920 if ac_fn_c_try_compile "$LINENO" 8921 then : 8922 xorg_cv_cc_flag_unknown_warning_option=yes 8923 else case e in #( 8924 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8925 esac 8926 fi 8927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8928 esac 8929 fi 8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8931 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8933 CFLAGS="$xorg_testset_save_CFLAGS" 8934 fi 8935 8936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8939 fi 8940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8942 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8943 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8944 then : 8945 printf %s "(cached) " >&6 8946 else case e in #( 8947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8948 /* end confdefs.h. */ 8949 int i; 8950 _ACEOF 8951 if ac_fn_c_try_compile "$LINENO" 8952 then : 8953 xorg_cv_cc_flag_unused_command_line_argument=yes 8954 else case e in #( 8955 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8956 esac 8957 fi 8958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8959 esac 8960 fi 8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8962 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8964 CFLAGS="$xorg_testset_save_CFLAGS" 8965 fi 8966 8967 found="no" 8968 8969 if test $found = "no" ; then 8970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8972 fi 8973 8974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8976 fi 8977 8978 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8979 8980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8981 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8982 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8983 if eval test \${$cacheid+y} 8984 then : 8985 printf %s "(cached) " >&6 8986 else case e in #( 8987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8988 /* end confdefs.h. */ 8989 int i; 8990 int 8991 main (void) 8992 { 8993 8994 ; 8995 return 0; 8996 } 8997 _ACEOF 8998 if ac_fn_c_try_link "$LINENO" 8999 then : 9000 eval $cacheid=yes 9001 else case e in #( 9002 e) eval $cacheid=no ;; 9003 esac 9004 fi 9005 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9006 conftest$ac_exeext conftest.$ac_ext ;; 9007 esac 9008 fi 9009 9010 9011 CFLAGS="$xorg_testset_save_CFLAGS" 9012 9013 eval supported=\$$cacheid 9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9015 printf "%s\n" "$supported" >&6; } 9016 if test "$supported" = "yes" ; then 9017 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9018 found="yes" 9019 fi 9020 fi 9021 9022 if test $found = "no" ; then 9023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9025 fi 9026 9027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9029 fi 9030 9031 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9032 9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9034 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9035 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9036 if eval test \${$cacheid+y} 9037 then : 9038 printf %s "(cached) " >&6 9039 else case e in #( 9040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9041 /* end confdefs.h. */ 9042 int i; 9043 int 9044 main (void) 9045 { 9046 9047 ; 9048 return 0; 9049 } 9050 _ACEOF 9051 if ac_fn_c_try_link "$LINENO" 9052 then : 9053 eval $cacheid=yes 9054 else case e in #( 9055 e) eval $cacheid=no ;; 9056 esac 9057 fi 9058 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9059 conftest$ac_exeext conftest.$ac_ext ;; 9060 esac 9061 fi 9062 9063 9064 CFLAGS="$xorg_testset_save_CFLAGS" 9065 9066 eval supported=\$$cacheid 9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9068 printf "%s\n" "$supported" >&6; } 9069 if test "$supported" = "yes" ; then 9070 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9071 found="yes" 9072 fi 9073 fi 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 xorg_testset_save_CFLAGS="$CFLAGS" 9090 9091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9094 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9095 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9096 then : 9097 printf %s "(cached) " >&6 9098 else case e in #( 9099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9100 /* end confdefs.h. */ 9101 int i; 9102 _ACEOF 9103 if ac_fn_c_try_compile "$LINENO" 9104 then : 9105 xorg_cv_cc_flag_unknown_warning_option=yes 9106 else case e in #( 9107 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9108 esac 9109 fi 9110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9111 esac 9112 fi 9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9114 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9116 CFLAGS="$xorg_testset_save_CFLAGS" 9117 fi 9118 9119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9122 fi 9123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9125 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9126 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9127 then : 9128 printf %s "(cached) " >&6 9129 else case e in #( 9130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9131 /* end confdefs.h. */ 9132 int i; 9133 _ACEOF 9134 if ac_fn_c_try_compile "$LINENO" 9135 then : 9136 xorg_cv_cc_flag_unused_command_line_argument=yes 9137 else case e in #( 9138 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9139 esac 9140 fi 9141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9142 esac 9143 fi 9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9145 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9147 CFLAGS="$xorg_testset_save_CFLAGS" 9148 fi 9149 9150 found="no" 9151 9152 if test $found = "no" ; then 9153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9155 fi 9156 9157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9159 fi 9160 9161 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9162 9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9164 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9165 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9166 if eval test \${$cacheid+y} 9167 then : 9168 printf %s "(cached) " >&6 9169 else case e in #( 9170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9171 /* end confdefs.h. */ 9172 int i; 9173 int 9174 main (void) 9175 { 9176 9177 ; 9178 return 0; 9179 } 9180 _ACEOF 9181 if ac_fn_c_try_link "$LINENO" 9182 then : 9183 eval $cacheid=yes 9184 else case e in #( 9185 e) eval $cacheid=no ;; 9186 esac 9187 fi 9188 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9189 conftest$ac_exeext conftest.$ac_ext ;; 9190 esac 9191 fi 9192 9193 9194 CFLAGS="$xorg_testset_save_CFLAGS" 9195 9196 eval supported=\$$cacheid 9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9198 printf "%s\n" "$supported" >&6; } 9199 if test "$supported" = "yes" ; then 9200 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9201 found="yes" 9202 fi 9203 fi 9204 9205 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9206 else 9207 { 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 9208 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;} 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 xorg_testset_save_CFLAGS="$CFLAGS" 9223 9224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9227 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9228 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9229 then : 9230 printf %s "(cached) " >&6 9231 else case e in #( 9232 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9233 /* end confdefs.h. */ 9234 int i; 9235 _ACEOF 9236 if ac_fn_c_try_compile "$LINENO" 9237 then : 9238 xorg_cv_cc_flag_unknown_warning_option=yes 9239 else case e in #( 9240 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9241 esac 9242 fi 9243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9244 esac 9245 fi 9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9247 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9249 CFLAGS="$xorg_testset_save_CFLAGS" 9250 fi 9251 9252 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9255 fi 9256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9258 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9259 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9260 then : 9261 printf %s "(cached) " >&6 9262 else case e in #( 9263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9264 /* end confdefs.h. */ 9265 int i; 9266 _ACEOF 9267 if ac_fn_c_try_compile "$LINENO" 9268 then : 9269 xorg_cv_cc_flag_unused_command_line_argument=yes 9270 else case e in #( 9271 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9272 esac 9273 fi 9274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9275 esac 9276 fi 9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9278 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9280 CFLAGS="$xorg_testset_save_CFLAGS" 9281 fi 9282 9283 found="no" 9284 9285 if test $found = "no" ; then 9286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9288 fi 9289 9290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9292 fi 9293 9294 CFLAGS="$CFLAGS -Wimplicit" 9295 9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9297 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9298 cacheid=xorg_cv_cc_flag__Wimplicit 9299 if eval test \${$cacheid+y} 9300 then : 9301 printf %s "(cached) " >&6 9302 else case e in #( 9303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9304 /* end confdefs.h. */ 9305 int i; 9306 int 9307 main (void) 9308 { 9309 9310 ; 9311 return 0; 9312 } 9313 _ACEOF 9314 if ac_fn_c_try_link "$LINENO" 9315 then : 9316 eval $cacheid=yes 9317 else case e in #( 9318 e) eval $cacheid=no ;; 9319 esac 9320 fi 9321 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9322 conftest$ac_exeext conftest.$ac_ext ;; 9323 esac 9324 fi 9325 9326 9327 CFLAGS="$xorg_testset_save_CFLAGS" 9328 9329 eval supported=\$$cacheid 9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9331 printf "%s\n" "$supported" >&6; } 9332 if test "$supported" = "yes" ; then 9333 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9334 found="yes" 9335 fi 9336 fi 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 xorg_testset_save_CFLAGS="$CFLAGS" 9353 9354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9357 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9358 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9359 then : 9360 printf %s "(cached) " >&6 9361 else case e in #( 9362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9363 /* end confdefs.h. */ 9364 int i; 9365 _ACEOF 9366 if ac_fn_c_try_compile "$LINENO" 9367 then : 9368 xorg_cv_cc_flag_unknown_warning_option=yes 9369 else case e in #( 9370 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9371 esac 9372 fi 9373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9374 esac 9375 fi 9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9377 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9379 CFLAGS="$xorg_testset_save_CFLAGS" 9380 fi 9381 9382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9385 fi 9386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9388 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9389 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9390 then : 9391 printf %s "(cached) " >&6 9392 else case e in #( 9393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9394 /* end confdefs.h. */ 9395 int i; 9396 _ACEOF 9397 if ac_fn_c_try_compile "$LINENO" 9398 then : 9399 xorg_cv_cc_flag_unused_command_line_argument=yes 9400 else case e in #( 9401 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9402 esac 9403 fi 9404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9405 esac 9406 fi 9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9408 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9410 CFLAGS="$xorg_testset_save_CFLAGS" 9411 fi 9412 9413 found="no" 9414 9415 if test $found = "no" ; then 9416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9418 fi 9419 9420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9422 fi 9423 9424 CFLAGS="$CFLAGS -Wnonnull" 9425 9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9427 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9428 cacheid=xorg_cv_cc_flag__Wnonnull 9429 if eval test \${$cacheid+y} 9430 then : 9431 printf %s "(cached) " >&6 9432 else case e in #( 9433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9434 /* end confdefs.h. */ 9435 int i; 9436 int 9437 main (void) 9438 { 9439 9440 ; 9441 return 0; 9442 } 9443 _ACEOF 9444 if ac_fn_c_try_link "$LINENO" 9445 then : 9446 eval $cacheid=yes 9447 else case e in #( 9448 e) eval $cacheid=no ;; 9449 esac 9450 fi 9451 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9452 conftest$ac_exeext conftest.$ac_ext ;; 9453 esac 9454 fi 9455 9456 9457 CFLAGS="$xorg_testset_save_CFLAGS" 9458 9459 eval supported=\$$cacheid 9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9461 printf "%s\n" "$supported" >&6; } 9462 if test "$supported" = "yes" ; then 9463 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9464 found="yes" 9465 fi 9466 fi 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 xorg_testset_save_CFLAGS="$CFLAGS" 9483 9484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9487 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9488 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9489 then : 9490 printf %s "(cached) " >&6 9491 else case e in #( 9492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9493 /* end confdefs.h. */ 9494 int i; 9495 _ACEOF 9496 if ac_fn_c_try_compile "$LINENO" 9497 then : 9498 xorg_cv_cc_flag_unknown_warning_option=yes 9499 else case e in #( 9500 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9501 esac 9502 fi 9503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9504 esac 9505 fi 9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9507 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9509 CFLAGS="$xorg_testset_save_CFLAGS" 9510 fi 9511 9512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9515 fi 9516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9518 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9519 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9520 then : 9521 printf %s "(cached) " >&6 9522 else case e in #( 9523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9524 /* end confdefs.h. */ 9525 int i; 9526 _ACEOF 9527 if ac_fn_c_try_compile "$LINENO" 9528 then : 9529 xorg_cv_cc_flag_unused_command_line_argument=yes 9530 else case e in #( 9531 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9532 esac 9533 fi 9534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9535 esac 9536 fi 9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9538 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9540 CFLAGS="$xorg_testset_save_CFLAGS" 9541 fi 9542 9543 found="no" 9544 9545 if test $found = "no" ; then 9546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9548 fi 9549 9550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9552 fi 9553 9554 CFLAGS="$CFLAGS -Winit-self" 9555 9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9557 printf %s "checking if $CC supports -Winit-self... " >&6; } 9558 cacheid=xorg_cv_cc_flag__Winit_self 9559 if eval test \${$cacheid+y} 9560 then : 9561 printf %s "(cached) " >&6 9562 else case e in #( 9563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9564 /* end confdefs.h. */ 9565 int i; 9566 int 9567 main (void) 9568 { 9569 9570 ; 9571 return 0; 9572 } 9573 _ACEOF 9574 if ac_fn_c_try_link "$LINENO" 9575 then : 9576 eval $cacheid=yes 9577 else case e in #( 9578 e) eval $cacheid=no ;; 9579 esac 9580 fi 9581 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9582 conftest$ac_exeext conftest.$ac_ext ;; 9583 esac 9584 fi 9585 9586 9587 CFLAGS="$xorg_testset_save_CFLAGS" 9588 9589 eval supported=\$$cacheid 9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9591 printf "%s\n" "$supported" >&6; } 9592 if test "$supported" = "yes" ; then 9593 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9594 found="yes" 9595 fi 9596 fi 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 xorg_testset_save_CFLAGS="$CFLAGS" 9613 9614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9617 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9618 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9619 then : 9620 printf %s "(cached) " >&6 9621 else case e in #( 9622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9623 /* end confdefs.h. */ 9624 int i; 9625 _ACEOF 9626 if ac_fn_c_try_compile "$LINENO" 9627 then : 9628 xorg_cv_cc_flag_unknown_warning_option=yes 9629 else case e in #( 9630 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9631 esac 9632 fi 9633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9634 esac 9635 fi 9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9639 CFLAGS="$xorg_testset_save_CFLAGS" 9640 fi 9641 9642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9645 fi 9646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9650 then : 9651 printf %s "(cached) " >&6 9652 else case e in #( 9653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9654 /* end confdefs.h. */ 9655 int i; 9656 _ACEOF 9657 if ac_fn_c_try_compile "$LINENO" 9658 then : 9659 xorg_cv_cc_flag_unused_command_line_argument=yes 9660 else case e in #( 9661 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9662 esac 9663 fi 9664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9665 esac 9666 fi 9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9668 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9670 CFLAGS="$xorg_testset_save_CFLAGS" 9671 fi 9672 9673 found="no" 9674 9675 if test $found = "no" ; then 9676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9678 fi 9679 9680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9682 fi 9683 9684 CFLAGS="$CFLAGS -Wmain" 9685 9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9687 printf %s "checking if $CC supports -Wmain... " >&6; } 9688 cacheid=xorg_cv_cc_flag__Wmain 9689 if eval test \${$cacheid+y} 9690 then : 9691 printf %s "(cached) " >&6 9692 else case e in #( 9693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9694 /* end confdefs.h. */ 9695 int i; 9696 int 9697 main (void) 9698 { 9699 9700 ; 9701 return 0; 9702 } 9703 _ACEOF 9704 if ac_fn_c_try_link "$LINENO" 9705 then : 9706 eval $cacheid=yes 9707 else case e in #( 9708 e) eval $cacheid=no ;; 9709 esac 9710 fi 9711 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9712 conftest$ac_exeext conftest.$ac_ext ;; 9713 esac 9714 fi 9715 9716 9717 CFLAGS="$xorg_testset_save_CFLAGS" 9718 9719 eval supported=\$$cacheid 9720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9721 printf "%s\n" "$supported" >&6; } 9722 if test "$supported" = "yes" ; then 9723 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9724 found="yes" 9725 fi 9726 fi 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 xorg_testset_save_CFLAGS="$CFLAGS" 9743 9744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9747 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9748 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9749 then : 9750 printf %s "(cached) " >&6 9751 else case e in #( 9752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9753 /* end confdefs.h. */ 9754 int i; 9755 _ACEOF 9756 if ac_fn_c_try_compile "$LINENO" 9757 then : 9758 xorg_cv_cc_flag_unknown_warning_option=yes 9759 else case e in #( 9760 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9761 esac 9762 fi 9763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9764 esac 9765 fi 9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9767 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9769 CFLAGS="$xorg_testset_save_CFLAGS" 9770 fi 9771 9772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9775 fi 9776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9778 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9779 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9780 then : 9781 printf %s "(cached) " >&6 9782 else case e in #( 9783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9784 /* end confdefs.h. */ 9785 int i; 9786 _ACEOF 9787 if ac_fn_c_try_compile "$LINENO" 9788 then : 9789 xorg_cv_cc_flag_unused_command_line_argument=yes 9790 else case e in #( 9791 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9792 esac 9793 fi 9794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9795 esac 9796 fi 9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9798 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9800 CFLAGS="$xorg_testset_save_CFLAGS" 9801 fi 9802 9803 found="no" 9804 9805 if test $found = "no" ; then 9806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9808 fi 9809 9810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9812 fi 9813 9814 CFLAGS="$CFLAGS -Wmissing-braces" 9815 9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9817 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9818 cacheid=xorg_cv_cc_flag__Wmissing_braces 9819 if eval test \${$cacheid+y} 9820 then : 9821 printf %s "(cached) " >&6 9822 else case e in #( 9823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9824 /* end confdefs.h. */ 9825 int i; 9826 int 9827 main (void) 9828 { 9829 9830 ; 9831 return 0; 9832 } 9833 _ACEOF 9834 if ac_fn_c_try_link "$LINENO" 9835 then : 9836 eval $cacheid=yes 9837 else case e in #( 9838 e) eval $cacheid=no ;; 9839 esac 9840 fi 9841 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9842 conftest$ac_exeext conftest.$ac_ext ;; 9843 esac 9844 fi 9845 9846 9847 CFLAGS="$xorg_testset_save_CFLAGS" 9848 9849 eval supported=\$$cacheid 9850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9851 printf "%s\n" "$supported" >&6; } 9852 if test "$supported" = "yes" ; then 9853 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9854 found="yes" 9855 fi 9856 fi 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 xorg_testset_save_CFLAGS="$CFLAGS" 9873 9874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9877 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9878 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9879 then : 9880 printf %s "(cached) " >&6 9881 else case e in #( 9882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9883 /* end confdefs.h. */ 9884 int i; 9885 _ACEOF 9886 if ac_fn_c_try_compile "$LINENO" 9887 then : 9888 xorg_cv_cc_flag_unknown_warning_option=yes 9889 else case e in #( 9890 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9891 esac 9892 fi 9893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9894 esac 9895 fi 9896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9897 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9899 CFLAGS="$xorg_testset_save_CFLAGS" 9900 fi 9901 9902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9905 fi 9906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9908 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9909 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9910 then : 9911 printf %s "(cached) " >&6 9912 else case e in #( 9913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9914 /* end confdefs.h. */ 9915 int i; 9916 _ACEOF 9917 if ac_fn_c_try_compile "$LINENO" 9918 then : 9919 xorg_cv_cc_flag_unused_command_line_argument=yes 9920 else case e in #( 9921 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9922 esac 9923 fi 9924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9925 esac 9926 fi 9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9928 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9930 CFLAGS="$xorg_testset_save_CFLAGS" 9931 fi 9932 9933 found="no" 9934 9935 if test $found = "no" ; then 9936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9938 fi 9939 9940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9942 fi 9943 9944 CFLAGS="$CFLAGS -Wsequence-point" 9945 9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9947 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9948 cacheid=xorg_cv_cc_flag__Wsequence_point 9949 if eval test \${$cacheid+y} 9950 then : 9951 printf %s "(cached) " >&6 9952 else case e in #( 9953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9954 /* end confdefs.h. */ 9955 int i; 9956 int 9957 main (void) 9958 { 9959 9960 ; 9961 return 0; 9962 } 9963 _ACEOF 9964 if ac_fn_c_try_link "$LINENO" 9965 then : 9966 eval $cacheid=yes 9967 else case e in #( 9968 e) eval $cacheid=no ;; 9969 esac 9970 fi 9971 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9972 conftest$ac_exeext conftest.$ac_ext ;; 9973 esac 9974 fi 9975 9976 9977 CFLAGS="$xorg_testset_save_CFLAGS" 9978 9979 eval supported=\$$cacheid 9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9981 printf "%s\n" "$supported" >&6; } 9982 if test "$supported" = "yes" ; then 9983 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9984 found="yes" 9985 fi 9986 fi 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 xorg_testset_save_CFLAGS="$CFLAGS" 10003 10004 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10007 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10008 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10009 then : 10010 printf %s "(cached) " >&6 10011 else case e in #( 10012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10013 /* end confdefs.h. */ 10014 int i; 10015 _ACEOF 10016 if ac_fn_c_try_compile "$LINENO" 10017 then : 10018 xorg_cv_cc_flag_unknown_warning_option=yes 10019 else case e in #( 10020 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10021 esac 10022 fi 10023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10024 esac 10025 fi 10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10027 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10029 CFLAGS="$xorg_testset_save_CFLAGS" 10030 fi 10031 10032 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10035 fi 10036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10038 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10039 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10040 then : 10041 printf %s "(cached) " >&6 10042 else case e in #( 10043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10044 /* end confdefs.h. */ 10045 int i; 10046 _ACEOF 10047 if ac_fn_c_try_compile "$LINENO" 10048 then : 10049 xorg_cv_cc_flag_unused_command_line_argument=yes 10050 else case e in #( 10051 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10052 esac 10053 fi 10054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10055 esac 10056 fi 10057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10058 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10060 CFLAGS="$xorg_testset_save_CFLAGS" 10061 fi 10062 10063 found="no" 10064 10065 if test $found = "no" ; then 10066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10068 fi 10069 10070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10072 fi 10073 10074 CFLAGS="$CFLAGS -Wreturn-type" 10075 10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10077 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10078 cacheid=xorg_cv_cc_flag__Wreturn_type 10079 if eval test \${$cacheid+y} 10080 then : 10081 printf %s "(cached) " >&6 10082 else case e in #( 10083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10084 /* end confdefs.h. */ 10085 int i; 10086 int 10087 main (void) 10088 { 10089 10090 ; 10091 return 0; 10092 } 10093 _ACEOF 10094 if ac_fn_c_try_link "$LINENO" 10095 then : 10096 eval $cacheid=yes 10097 else case e in #( 10098 e) eval $cacheid=no ;; 10099 esac 10100 fi 10101 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10102 conftest$ac_exeext conftest.$ac_ext ;; 10103 esac 10104 fi 10105 10106 10107 CFLAGS="$xorg_testset_save_CFLAGS" 10108 10109 eval supported=\$$cacheid 10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10111 printf "%s\n" "$supported" >&6; } 10112 if test "$supported" = "yes" ; then 10113 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10114 found="yes" 10115 fi 10116 fi 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 xorg_testset_save_CFLAGS="$CFLAGS" 10133 10134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10137 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10138 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10139 then : 10140 printf %s "(cached) " >&6 10141 else case e in #( 10142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10143 /* end confdefs.h. */ 10144 int i; 10145 _ACEOF 10146 if ac_fn_c_try_compile "$LINENO" 10147 then : 10148 xorg_cv_cc_flag_unknown_warning_option=yes 10149 else case e in #( 10150 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10151 esac 10152 fi 10153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10154 esac 10155 fi 10156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10157 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10159 CFLAGS="$xorg_testset_save_CFLAGS" 10160 fi 10161 10162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10165 fi 10166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10168 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10169 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10170 then : 10171 printf %s "(cached) " >&6 10172 else case e in #( 10173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10174 /* end confdefs.h. */ 10175 int i; 10176 _ACEOF 10177 if ac_fn_c_try_compile "$LINENO" 10178 then : 10179 xorg_cv_cc_flag_unused_command_line_argument=yes 10180 else case e in #( 10181 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10182 esac 10183 fi 10184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10185 esac 10186 fi 10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10188 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10190 CFLAGS="$xorg_testset_save_CFLAGS" 10191 fi 10192 10193 found="no" 10194 10195 if test $found = "no" ; then 10196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10198 fi 10199 10200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10202 fi 10203 10204 CFLAGS="$CFLAGS -Wtrigraphs" 10205 10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10207 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10208 cacheid=xorg_cv_cc_flag__Wtrigraphs 10209 if eval test \${$cacheid+y} 10210 then : 10211 printf %s "(cached) " >&6 10212 else case e in #( 10213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10214 /* end confdefs.h. */ 10215 int i; 10216 int 10217 main (void) 10218 { 10219 10220 ; 10221 return 0; 10222 } 10223 _ACEOF 10224 if ac_fn_c_try_link "$LINENO" 10225 then : 10226 eval $cacheid=yes 10227 else case e in #( 10228 e) eval $cacheid=no ;; 10229 esac 10230 fi 10231 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10232 conftest$ac_exeext conftest.$ac_ext ;; 10233 esac 10234 fi 10235 10236 10237 CFLAGS="$xorg_testset_save_CFLAGS" 10238 10239 eval supported=\$$cacheid 10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10241 printf "%s\n" "$supported" >&6; } 10242 if test "$supported" = "yes" ; then 10243 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10244 found="yes" 10245 fi 10246 fi 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 xorg_testset_save_CFLAGS="$CFLAGS" 10263 10264 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10267 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10268 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10269 then : 10270 printf %s "(cached) " >&6 10271 else case e in #( 10272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10273 /* end confdefs.h. */ 10274 int i; 10275 _ACEOF 10276 if ac_fn_c_try_compile "$LINENO" 10277 then : 10278 xorg_cv_cc_flag_unknown_warning_option=yes 10279 else case e in #( 10280 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10281 esac 10282 fi 10283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10284 esac 10285 fi 10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10287 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10289 CFLAGS="$xorg_testset_save_CFLAGS" 10290 fi 10291 10292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10295 fi 10296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10298 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10299 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10300 then : 10301 printf %s "(cached) " >&6 10302 else case e in #( 10303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10304 /* end confdefs.h. */ 10305 int i; 10306 _ACEOF 10307 if ac_fn_c_try_compile "$LINENO" 10308 then : 10309 xorg_cv_cc_flag_unused_command_line_argument=yes 10310 else case e in #( 10311 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10312 esac 10313 fi 10314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10315 esac 10316 fi 10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10318 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10320 CFLAGS="$xorg_testset_save_CFLAGS" 10321 fi 10322 10323 found="no" 10324 10325 if test $found = "no" ; then 10326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10328 fi 10329 10330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10332 fi 10333 10334 CFLAGS="$CFLAGS -Warray-bounds" 10335 10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10337 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10338 cacheid=xorg_cv_cc_flag__Warray_bounds 10339 if eval test \${$cacheid+y} 10340 then : 10341 printf %s "(cached) " >&6 10342 else case e in #( 10343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10344 /* end confdefs.h. */ 10345 int i; 10346 int 10347 main (void) 10348 { 10349 10350 ; 10351 return 0; 10352 } 10353 _ACEOF 10354 if ac_fn_c_try_link "$LINENO" 10355 then : 10356 eval $cacheid=yes 10357 else case e in #( 10358 e) eval $cacheid=no ;; 10359 esac 10360 fi 10361 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10362 conftest$ac_exeext conftest.$ac_ext ;; 10363 esac 10364 fi 10365 10366 10367 CFLAGS="$xorg_testset_save_CFLAGS" 10368 10369 eval supported=\$$cacheid 10370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10371 printf "%s\n" "$supported" >&6; } 10372 if test "$supported" = "yes" ; then 10373 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10374 found="yes" 10375 fi 10376 fi 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 xorg_testset_save_CFLAGS="$CFLAGS" 10393 10394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10397 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10398 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10399 then : 10400 printf %s "(cached) " >&6 10401 else case e in #( 10402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10403 /* end confdefs.h. */ 10404 int i; 10405 _ACEOF 10406 if ac_fn_c_try_compile "$LINENO" 10407 then : 10408 xorg_cv_cc_flag_unknown_warning_option=yes 10409 else case e in #( 10410 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10411 esac 10412 fi 10413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10414 esac 10415 fi 10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10417 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10419 CFLAGS="$xorg_testset_save_CFLAGS" 10420 fi 10421 10422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10425 fi 10426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10428 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10429 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10430 then : 10431 printf %s "(cached) " >&6 10432 else case e in #( 10433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10434 /* end confdefs.h. */ 10435 int i; 10436 _ACEOF 10437 if ac_fn_c_try_compile "$LINENO" 10438 then : 10439 xorg_cv_cc_flag_unused_command_line_argument=yes 10440 else case e in #( 10441 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10442 esac 10443 fi 10444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10445 esac 10446 fi 10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10448 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10450 CFLAGS="$xorg_testset_save_CFLAGS" 10451 fi 10452 10453 found="no" 10454 10455 if test $found = "no" ; then 10456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10458 fi 10459 10460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10462 fi 10463 10464 CFLAGS="$CFLAGS -Wwrite-strings" 10465 10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10467 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10468 cacheid=xorg_cv_cc_flag__Wwrite_strings 10469 if eval test \${$cacheid+y} 10470 then : 10471 printf %s "(cached) " >&6 10472 else case e in #( 10473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10474 /* end confdefs.h. */ 10475 int i; 10476 int 10477 main (void) 10478 { 10479 10480 ; 10481 return 0; 10482 } 10483 _ACEOF 10484 if ac_fn_c_try_link "$LINENO" 10485 then : 10486 eval $cacheid=yes 10487 else case e in #( 10488 e) eval $cacheid=no ;; 10489 esac 10490 fi 10491 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10492 conftest$ac_exeext conftest.$ac_ext ;; 10493 esac 10494 fi 10495 10496 10497 CFLAGS="$xorg_testset_save_CFLAGS" 10498 10499 eval supported=\$$cacheid 10500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10501 printf "%s\n" "$supported" >&6; } 10502 if test "$supported" = "yes" ; then 10503 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10504 found="yes" 10505 fi 10506 fi 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 xorg_testset_save_CFLAGS="$CFLAGS" 10523 10524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10527 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10528 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10529 then : 10530 printf %s "(cached) " >&6 10531 else case e in #( 10532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10533 /* end confdefs.h. */ 10534 int i; 10535 _ACEOF 10536 if ac_fn_c_try_compile "$LINENO" 10537 then : 10538 xorg_cv_cc_flag_unknown_warning_option=yes 10539 else case e in #( 10540 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10541 esac 10542 fi 10543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10544 esac 10545 fi 10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10547 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10549 CFLAGS="$xorg_testset_save_CFLAGS" 10550 fi 10551 10552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10555 fi 10556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10558 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10559 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10560 then : 10561 printf %s "(cached) " >&6 10562 else case e in #( 10563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10564 /* end confdefs.h. */ 10565 int i; 10566 _ACEOF 10567 if ac_fn_c_try_compile "$LINENO" 10568 then : 10569 xorg_cv_cc_flag_unused_command_line_argument=yes 10570 else case e in #( 10571 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10572 esac 10573 fi 10574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10575 esac 10576 fi 10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10578 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10580 CFLAGS="$xorg_testset_save_CFLAGS" 10581 fi 10582 10583 found="no" 10584 10585 if test $found = "no" ; then 10586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10588 fi 10589 10590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10592 fi 10593 10594 CFLAGS="$CFLAGS -Waddress" 10595 10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10597 printf %s "checking if $CC supports -Waddress... " >&6; } 10598 cacheid=xorg_cv_cc_flag__Waddress 10599 if eval test \${$cacheid+y} 10600 then : 10601 printf %s "(cached) " >&6 10602 else case e in #( 10603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10604 /* end confdefs.h. */ 10605 int i; 10606 int 10607 main (void) 10608 { 10609 10610 ; 10611 return 0; 10612 } 10613 _ACEOF 10614 if ac_fn_c_try_link "$LINENO" 10615 then : 10616 eval $cacheid=yes 10617 else case e in #( 10618 e) eval $cacheid=no ;; 10619 esac 10620 fi 10621 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10622 conftest$ac_exeext conftest.$ac_ext ;; 10623 esac 10624 fi 10625 10626 10627 CFLAGS="$xorg_testset_save_CFLAGS" 10628 10629 eval supported=\$$cacheid 10630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10631 printf "%s\n" "$supported" >&6; } 10632 if test "$supported" = "yes" ; then 10633 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10634 found="yes" 10635 fi 10636 fi 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 xorg_testset_save_CFLAGS="$CFLAGS" 10653 10654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10657 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10658 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10659 then : 10660 printf %s "(cached) " >&6 10661 else case e in #( 10662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10663 /* end confdefs.h. */ 10664 int i; 10665 _ACEOF 10666 if ac_fn_c_try_compile "$LINENO" 10667 then : 10668 xorg_cv_cc_flag_unknown_warning_option=yes 10669 else case e in #( 10670 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10671 esac 10672 fi 10673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10674 esac 10675 fi 10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10677 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10679 CFLAGS="$xorg_testset_save_CFLAGS" 10680 fi 10681 10682 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10685 fi 10686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10688 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10689 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10690 then : 10691 printf %s "(cached) " >&6 10692 else case e in #( 10693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10694 /* end confdefs.h. */ 10695 int i; 10696 _ACEOF 10697 if ac_fn_c_try_compile "$LINENO" 10698 then : 10699 xorg_cv_cc_flag_unused_command_line_argument=yes 10700 else case e in #( 10701 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10702 esac 10703 fi 10704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10705 esac 10706 fi 10707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10708 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10710 CFLAGS="$xorg_testset_save_CFLAGS" 10711 fi 10712 10713 found="no" 10714 10715 if test $found = "no" ; then 10716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10718 fi 10719 10720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10722 fi 10723 10724 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10725 10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10727 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10728 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10729 if eval test \${$cacheid+y} 10730 then : 10731 printf %s "(cached) " >&6 10732 else case e in #( 10733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10734 /* end confdefs.h. */ 10735 int i; 10736 int 10737 main (void) 10738 { 10739 10740 ; 10741 return 0; 10742 } 10743 _ACEOF 10744 if ac_fn_c_try_link "$LINENO" 10745 then : 10746 eval $cacheid=yes 10747 else case e in #( 10748 e) eval $cacheid=no ;; 10749 esac 10750 fi 10751 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10752 conftest$ac_exeext conftest.$ac_ext ;; 10753 esac 10754 fi 10755 10756 10757 CFLAGS="$xorg_testset_save_CFLAGS" 10758 10759 eval supported=\$$cacheid 10760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10761 printf "%s\n" "$supported" >&6; } 10762 if test "$supported" = "yes" ; then 10763 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10764 found="yes" 10765 fi 10766 fi 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 xorg_testset_save_CFLAGS="$CFLAGS" 10783 10784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10787 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10788 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10789 then : 10790 printf %s "(cached) " >&6 10791 else case e in #( 10792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10793 /* end confdefs.h. */ 10794 int i; 10795 _ACEOF 10796 if ac_fn_c_try_compile "$LINENO" 10797 then : 10798 xorg_cv_cc_flag_unknown_warning_option=yes 10799 else case e in #( 10800 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10801 esac 10802 fi 10803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10804 esac 10805 fi 10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10807 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10809 CFLAGS="$xorg_testset_save_CFLAGS" 10810 fi 10811 10812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10815 fi 10816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10818 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10819 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10820 then : 10821 printf %s "(cached) " >&6 10822 else case e in #( 10823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10824 /* end confdefs.h. */ 10825 int i; 10826 _ACEOF 10827 if ac_fn_c_try_compile "$LINENO" 10828 then : 10829 xorg_cv_cc_flag_unused_command_line_argument=yes 10830 else case e in #( 10831 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10832 esac 10833 fi 10834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10835 esac 10836 fi 10837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10838 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10840 CFLAGS="$xorg_testset_save_CFLAGS" 10841 fi 10842 10843 found="no" 10844 10845 if test $found = "no" ; then 10846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10848 fi 10849 10850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10852 fi 10853 10854 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10855 10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10857 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10858 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10859 if eval test \${$cacheid+y} 10860 then : 10861 printf %s "(cached) " >&6 10862 else case e in #( 10863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10864 /* end confdefs.h. */ 10865 int i; 10866 int 10867 main (void) 10868 { 10869 10870 ; 10871 return 0; 10872 } 10873 _ACEOF 10874 if ac_fn_c_try_link "$LINENO" 10875 then : 10876 eval $cacheid=yes 10877 else case e in #( 10878 e) eval $cacheid=no ;; 10879 esac 10880 fi 10881 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10882 conftest$ac_exeext conftest.$ac_ext ;; 10883 esac 10884 fi 10885 10886 10887 CFLAGS="$xorg_testset_save_CFLAGS" 10888 10889 eval supported=\$$cacheid 10890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10891 printf "%s\n" "$supported" >&6; } 10892 if test "$supported" = "yes" ; then 10893 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10894 found="yes" 10895 fi 10896 fi 10897 10898 10899 fi 10900 10901 10902 10903 10904 10905 10906 10907 CWARNFLAGS="$BASE_CFLAGS" 10908 if test "x$GCC" = xyes ; then 10909 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10910 fi 10911 10912 10913 10914 10915 10916 10917 10918 10919 # Check whether --enable-strict-compilation was given. 10920 if test ${enable_strict_compilation+y} 10921 then : 10922 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10923 else case e in #( 10924 e) STRICT_COMPILE=no ;; 10925 esac 10926 fi 10927 10928 10929 10930 10931 10932 10933 STRICT_CFLAGS="" 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 xorg_testset_save_CFLAGS="$CFLAGS" 10948 10949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10952 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10953 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10954 then : 10955 printf %s "(cached) " >&6 10956 else case e in #( 10957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10958 /* end confdefs.h. */ 10959 int i; 10960 _ACEOF 10961 if ac_fn_c_try_compile "$LINENO" 10962 then : 10963 xorg_cv_cc_flag_unknown_warning_option=yes 10964 else case e in #( 10965 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10966 esac 10967 fi 10968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10969 esac 10970 fi 10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10972 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10974 CFLAGS="$xorg_testset_save_CFLAGS" 10975 fi 10976 10977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10980 fi 10981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10983 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10984 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10985 then : 10986 printf %s "(cached) " >&6 10987 else case e in #( 10988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10989 /* end confdefs.h. */ 10990 int i; 10991 _ACEOF 10992 if ac_fn_c_try_compile "$LINENO" 10993 then : 10994 xorg_cv_cc_flag_unused_command_line_argument=yes 10995 else case e in #( 10996 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10997 esac 10998 fi 10999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11000 esac 11001 fi 11002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11003 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11005 CFLAGS="$xorg_testset_save_CFLAGS" 11006 fi 11007 11008 found="no" 11009 11010 if test $found = "no" ; then 11011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11013 fi 11014 11015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11017 fi 11018 11019 CFLAGS="$CFLAGS -pedantic" 11020 11021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11022 printf %s "checking if $CC supports -pedantic... " >&6; } 11023 cacheid=xorg_cv_cc_flag__pedantic 11024 if eval test \${$cacheid+y} 11025 then : 11026 printf %s "(cached) " >&6 11027 else case e in #( 11028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11029 /* end confdefs.h. */ 11030 int i; 11031 int 11032 main (void) 11033 { 11034 11035 ; 11036 return 0; 11037 } 11038 _ACEOF 11039 if ac_fn_c_try_link "$LINENO" 11040 then : 11041 eval $cacheid=yes 11042 else case e in #( 11043 e) eval $cacheid=no ;; 11044 esac 11045 fi 11046 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11047 conftest$ac_exeext conftest.$ac_ext ;; 11048 esac 11049 fi 11050 11051 11052 CFLAGS="$xorg_testset_save_CFLAGS" 11053 11054 eval supported=\$$cacheid 11055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11056 printf "%s\n" "$supported" >&6; } 11057 if test "$supported" = "yes" ; then 11058 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11059 found="yes" 11060 fi 11061 fi 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 xorg_testset_save_CFLAGS="$CFLAGS" 11078 11079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11082 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11083 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11084 then : 11085 printf %s "(cached) " >&6 11086 else case e in #( 11087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11088 /* end confdefs.h. */ 11089 int i; 11090 _ACEOF 11091 if ac_fn_c_try_compile "$LINENO" 11092 then : 11093 xorg_cv_cc_flag_unknown_warning_option=yes 11094 else case e in #( 11095 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11096 esac 11097 fi 11098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11099 esac 11100 fi 11101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11102 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11104 CFLAGS="$xorg_testset_save_CFLAGS" 11105 fi 11106 11107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11110 fi 11111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11113 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11114 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11115 then : 11116 printf %s "(cached) " >&6 11117 else case e in #( 11118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11119 /* end confdefs.h. */ 11120 int i; 11121 _ACEOF 11122 if ac_fn_c_try_compile "$LINENO" 11123 then : 11124 xorg_cv_cc_flag_unused_command_line_argument=yes 11125 else case e in #( 11126 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11127 esac 11128 fi 11129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11130 esac 11131 fi 11132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11133 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11135 CFLAGS="$xorg_testset_save_CFLAGS" 11136 fi 11137 11138 found="no" 11139 11140 if test $found = "no" ; then 11141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11143 fi 11144 11145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11147 fi 11148 11149 CFLAGS="$CFLAGS -Werror" 11150 11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11152 printf %s "checking if $CC supports -Werror... " >&6; } 11153 cacheid=xorg_cv_cc_flag__Werror 11154 if eval test \${$cacheid+y} 11155 then : 11156 printf %s "(cached) " >&6 11157 else case e in #( 11158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11159 /* end confdefs.h. */ 11160 int i; 11161 int 11162 main (void) 11163 { 11164 11165 ; 11166 return 0; 11167 } 11168 _ACEOF 11169 if ac_fn_c_try_link "$LINENO" 11170 then : 11171 eval $cacheid=yes 11172 else case e in #( 11173 e) eval $cacheid=no ;; 11174 esac 11175 fi 11176 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11177 conftest$ac_exeext conftest.$ac_ext ;; 11178 esac 11179 fi 11180 11181 11182 CFLAGS="$xorg_testset_save_CFLAGS" 11183 11184 eval supported=\$$cacheid 11185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11186 printf "%s\n" "$supported" >&6; } 11187 if test "$supported" = "yes" ; then 11188 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11189 found="yes" 11190 fi 11191 fi 11192 11193 if test $found = "no" ; then 11194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11196 fi 11197 11198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11200 fi 11201 11202 CFLAGS="$CFLAGS -errwarn" 11203 11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11205 printf %s "checking if $CC supports -errwarn... " >&6; } 11206 cacheid=xorg_cv_cc_flag__errwarn 11207 if eval test \${$cacheid+y} 11208 then : 11209 printf %s "(cached) " >&6 11210 else case e in #( 11211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11212 /* end confdefs.h. */ 11213 int i; 11214 int 11215 main (void) 11216 { 11217 11218 ; 11219 return 0; 11220 } 11221 _ACEOF 11222 if ac_fn_c_try_link "$LINENO" 11223 then : 11224 eval $cacheid=yes 11225 else case e in #( 11226 e) eval $cacheid=no ;; 11227 esac 11228 fi 11229 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11230 conftest$ac_exeext conftest.$ac_ext ;; 11231 esac 11232 fi 11233 11234 11235 CFLAGS="$xorg_testset_save_CFLAGS" 11236 11237 eval supported=\$$cacheid 11238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11239 printf "%s\n" "$supported" >&6; } 11240 if test "$supported" = "yes" ; then 11241 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11242 found="yes" 11243 fi 11244 fi 11245 11246 11247 11248 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11249 # activate it with -Werror, so we add it here explicitly. 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 xorg_testset_save_CFLAGS="$CFLAGS" 11264 11265 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11268 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11269 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11270 then : 11271 printf %s "(cached) " >&6 11272 else case e in #( 11273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11274 /* end confdefs.h. */ 11275 int i; 11276 _ACEOF 11277 if ac_fn_c_try_compile "$LINENO" 11278 then : 11279 xorg_cv_cc_flag_unknown_warning_option=yes 11280 else case e in #( 11281 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11282 esac 11283 fi 11284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11285 esac 11286 fi 11287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11288 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11290 CFLAGS="$xorg_testset_save_CFLAGS" 11291 fi 11292 11293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11296 fi 11297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11299 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11300 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11301 then : 11302 printf %s "(cached) " >&6 11303 else case e in #( 11304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11305 /* end confdefs.h. */ 11306 int i; 11307 _ACEOF 11308 if ac_fn_c_try_compile "$LINENO" 11309 then : 11310 xorg_cv_cc_flag_unused_command_line_argument=yes 11311 else case e in #( 11312 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11313 esac 11314 fi 11315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11316 esac 11317 fi 11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11319 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11321 CFLAGS="$xorg_testset_save_CFLAGS" 11322 fi 11323 11324 found="no" 11325 11326 if test $found = "no" ; then 11327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11329 fi 11330 11331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11333 fi 11334 11335 CFLAGS="$CFLAGS -Werror=attributes" 11336 11337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11338 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11339 cacheid=xorg_cv_cc_flag__Werror_attributes 11340 if eval test \${$cacheid+y} 11341 then : 11342 printf %s "(cached) " >&6 11343 else case e in #( 11344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11345 /* end confdefs.h. */ 11346 int i; 11347 int 11348 main (void) 11349 { 11350 11351 ; 11352 return 0; 11353 } 11354 _ACEOF 11355 if ac_fn_c_try_link "$LINENO" 11356 then : 11357 eval $cacheid=yes 11358 else case e in #( 11359 e) eval $cacheid=no ;; 11360 esac 11361 fi 11362 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11363 conftest$ac_exeext conftest.$ac_ext ;; 11364 esac 11365 fi 11366 11367 11368 CFLAGS="$xorg_testset_save_CFLAGS" 11369 11370 eval supported=\$$cacheid 11371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11372 printf "%s\n" "$supported" >&6; } 11373 if test "$supported" = "yes" ; then 11374 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11375 found="yes" 11376 fi 11377 fi 11378 11379 11380 11381 if test "x$STRICT_COMPILE" = "xyes"; then 11382 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11383 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11384 fi 11385 11386 11387 11388 11389 11390 11391 11392 11393 cat >>confdefs.h <<_ACEOF 11394 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11395 _ACEOF 11396 11397 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11398 if test "x$PVM" = "x"; then 11399 PVM="0" 11400 fi 11401 11402 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11403 11404 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11405 if test "x$PVP" = "x"; then 11406 PVP="0" 11407 fi 11408 11409 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11410 11411 11412 11413 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11414 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11415 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11416 touch \$(top_srcdir)/ChangeLog; \ 11417 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11418 11419 11420 11421 11422 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11423 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11424 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11425 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11426 touch \$(top_srcdir)/INSTALL; \ 11427 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11428 11429 11430 11431 11432 11433 11434 case $host_os in 11435 solaris*) 11436 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11437 # check for a man page file found in later versions that use 11438 # traditional section numbers instead 11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11440 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11441 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11442 then : 11443 printf %s "(cached) " >&6 11444 else case e in #( 11445 e) test "$cross_compiling" = yes && 11446 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11447 if test -r "/usr/share/man/man7/attributes.7"; then 11448 ac_cv_file__usr_share_man_man7_attributes_7=yes 11449 else 11450 ac_cv_file__usr_share_man_man7_attributes_7=no 11451 fi ;; 11452 esac 11453 fi 11454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11455 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11456 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11457 then : 11458 SYSV_MAN_SECTIONS=false 11459 else case e in #( 11460 e) SYSV_MAN_SECTIONS=true ;; 11461 esac 11462 fi 11463 11464 ;; 11465 *) SYSV_MAN_SECTIONS=false ;; 11466 esac 11467 11468 if test x$APP_MAN_SUFFIX = x ; then 11469 APP_MAN_SUFFIX=1 11470 fi 11471 if test x$APP_MAN_DIR = x ; then 11472 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11473 fi 11474 11475 if test x$LIB_MAN_SUFFIX = x ; then 11476 LIB_MAN_SUFFIX=3 11477 fi 11478 if test x$LIB_MAN_DIR = x ; then 11479 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11480 fi 11481 11482 if test x$FILE_MAN_SUFFIX = x ; then 11483 case $SYSV_MAN_SECTIONS in 11484 true) FILE_MAN_SUFFIX=4 ;; 11485 *) FILE_MAN_SUFFIX=5 ;; 11486 esac 11487 fi 11488 if test x$FILE_MAN_DIR = x ; then 11489 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11490 fi 11491 11492 if test x$MISC_MAN_SUFFIX = x ; then 11493 case $SYSV_MAN_SECTIONS in 11494 true) MISC_MAN_SUFFIX=5 ;; 11495 *) MISC_MAN_SUFFIX=7 ;; 11496 esac 11497 fi 11498 if test x$MISC_MAN_DIR = x ; then 11499 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11500 fi 11501 11502 if test x$DRIVER_MAN_SUFFIX = x ; then 11503 case $SYSV_MAN_SECTIONS in 11504 true) DRIVER_MAN_SUFFIX=7 ;; 11505 *) DRIVER_MAN_SUFFIX=4 ;; 11506 esac 11507 fi 11508 if test x$DRIVER_MAN_DIR = x ; then 11509 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11510 fi 11511 11512 if test x$ADMIN_MAN_SUFFIX = x ; then 11513 case $SYSV_MAN_SECTIONS in 11514 true) ADMIN_MAN_SUFFIX=1m ;; 11515 *) ADMIN_MAN_SUFFIX=8 ;; 11516 esac 11517 fi 11518 if test x$ADMIN_MAN_DIR = x ; then 11519 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11520 fi 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 XORG_MAN_PAGE="X Version 11" 11537 11538 MAN_SUBSTS="\ 11539 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11540 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11541 -e 's|__xservername__|Xorg|g' \ 11542 -e 's|__xconfigfile__|xorg.conf|g' \ 11543 -e 's|__projectroot__|\$(prefix)|g' \ 11544 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11545 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11546 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11547 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11548 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11549 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11550 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11551 11552 11553 11554 11555 AM_DEFAULT_VERBOSITY=0 11556 11557 11558 11559 11560 11561 # Checks for pkg-config packages 11562 11563 pkg_failed=no 11564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDRIINFO" >&5 11565 printf %s "checking for XDRIINFO... " >&6; } 11566 11567 if test -n "$XDRIINFO_CFLAGS"; then 11568 pkg_cv_XDRIINFO_CFLAGS="$XDRIINFO_CFLAGS" 11569 elif test -n "$PKG_CONFIG"; then 11570 if test -n "$PKG_CONFIG" && \ 11571 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 glproto\""; } >&5 11572 ($PKG_CONFIG --exists --print-errors "x11 glproto") 2>&5 11573 ac_status=$? 11574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11575 test $ac_status = 0; }; then 11576 pkg_cv_XDRIINFO_CFLAGS=`$PKG_CONFIG --cflags "x11 glproto" 2>/dev/null` 11577 test "x$?" != "x0" && pkg_failed=yes 11578 else 11579 pkg_failed=yes 11580 fi 11581 else 11582 pkg_failed=untried 11583 fi 11584 if test -n "$XDRIINFO_LIBS"; then 11585 pkg_cv_XDRIINFO_LIBS="$XDRIINFO_LIBS" 11586 elif test -n "$PKG_CONFIG"; then 11587 if test -n "$PKG_CONFIG" && \ 11588 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 glproto\""; } >&5 11589 ($PKG_CONFIG --exists --print-errors "x11 glproto") 2>&5 11590 ac_status=$? 11591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11592 test $ac_status = 0; }; then 11593 pkg_cv_XDRIINFO_LIBS=`$PKG_CONFIG --libs "x11 glproto" 2>/dev/null` 11594 test "x$?" != "x0" && pkg_failed=yes 11595 else 11596 pkg_failed=yes 11597 fi 11598 else 11599 pkg_failed=untried 11600 fi 11601 11602 11603 11604 if test $pkg_failed = yes; then 11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11606 printf "%s\n" "no" >&6; } 11607 11608 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11609 _pkg_short_errors_supported=yes 11610 else 11611 _pkg_short_errors_supported=no 11612 fi 11613 if test $_pkg_short_errors_supported = yes; then 11614 XDRIINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 glproto" 2>&1` 11615 else 11616 XDRIINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 glproto" 2>&1` 11617 fi 11618 # Put the nasty error message in config.log where it belongs 11619 echo "$XDRIINFO_PKG_ERRORS" >&5 11620 11621 as_fn_error $? "Package requirements (x11 glproto) were not met: 11622 11623 $XDRIINFO_PKG_ERRORS 11624 11625 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11626 installed software in a non-standard prefix. 11627 11628 Alternatively, you may set the environment variables XDRIINFO_CFLAGS 11629 and XDRIINFO_LIBS to avoid the need to call pkg-config. 11630 See the pkg-config man page for more details." "$LINENO" 5 11631 elif test $pkg_failed = untried; then 11632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11633 printf "%s\n" "no" >&6; } 11634 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11635 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11636 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11637 is in your PATH or set the PKG_CONFIG environment variable to the full 11638 path to pkg-config. 11639 11640 Alternatively, you may set the environment variables XDRIINFO_CFLAGS 11641 and XDRIINFO_LIBS to avoid the need to call pkg-config. 11642 See the pkg-config man page for more details. 11643 11644 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11645 See 'config.log' for more details" "$LINENO" 5; } 11646 else 11647 XDRIINFO_CFLAGS=$pkg_cv_XDRIINFO_CFLAGS 11648 XDRIINFO_LIBS=$pkg_cv_XDRIINFO_LIBS 11649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11650 printf "%s\n" "yes" >&6; } 11651 11652 fi 11653 11654 # Checks for non-pkg-config packages (Mesa or vendor OpenGL) 11655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing glXGetProcAddressARB" >&5 11656 printf %s "checking for library containing glXGetProcAddressARB... " >&6; } 11657 if test ${ac_cv_search_glXGetProcAddressARB+y} 11658 then : 11659 printf %s "(cached) " >&6 11660 else case e in #( 11661 e) ac_func_search_save_LIBS=$LIBS 11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11663 /* end confdefs.h. */ 11664 11665 /* Override any GCC internal prototype to avoid an error. 11666 Use char because int might match the return type of a GCC 11667 builtin and then its argument prototype would still apply. 11668 The 'extern "C"' is for builds by C++ compilers; 11669 although this is not generally supported in C code supporting it here 11670 has little cost and some practical benefit (sr 110532). */ 11671 #ifdef __cplusplus 11672 extern "C" 11673 #endif 11674 char glXGetProcAddressARB (void); 11675 int 11676 main (void) 11677 { 11678 return glXGetProcAddressARB (); 11679 ; 11680 return 0; 11681 } 11682 _ACEOF 11683 for ac_lib in '' GL 11684 do 11685 if test -z "$ac_lib"; then 11686 ac_res="none required" 11687 else 11688 ac_res=-l$ac_lib 11689 LIBS="-l$ac_lib $XDRIINFO_LIBS $ac_func_search_save_LIBS" 11690 fi 11691 if ac_fn_c_try_link "$LINENO" 11692 then : 11693 ac_cv_search_glXGetProcAddressARB=$ac_res 11694 fi 11695 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11696 conftest$ac_exeext 11697 if test ${ac_cv_search_glXGetProcAddressARB+y} 11698 then : 11699 break 11700 fi 11701 done 11702 if test ${ac_cv_search_glXGetProcAddressARB+y} 11703 then : 11704 11705 else case e in #( 11706 e) ac_cv_search_glXGetProcAddressARB=no ;; 11707 esac 11708 fi 11709 rm conftest.$ac_ext 11710 LIBS=$ac_func_search_save_LIBS ;; 11711 esac 11712 fi 11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glXGetProcAddressARB" >&5 11714 printf "%s\n" "$ac_cv_search_glXGetProcAddressARB" >&6; } 11715 ac_res=$ac_cv_search_glXGetProcAddressARB 11716 if test "$ac_res" != no 11717 then : 11718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11719 11720 else case e in #( 11721 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11722 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11723 as_fn_error $? "cannot find GL library - make sure Mesa or other OpenGL package is installed 11724 See 'config.log' for more details" "$LINENO" 5; } ;; 11725 esac 11726 fi 11727 11728 11729 ac_config_files="$ac_config_files Makefile man/Makefile" 11730 11731 cat >confcache <<\_ACEOF 11732 # This file is a shell script that caches the results of configure 11733 # tests run on this system so they can be shared between configure 11734 # scripts and configure runs, see configure's option --config-cache. 11735 # It is not useful on other systems. If it contains results you don't 11736 # want to keep, you may remove or edit it. 11737 # 11738 # config.status only pays attention to the cache file if you give it 11739 # the --recheck option to rerun configure. 11740 # 11741 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 11742 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 11743 # following values. 11744 11745 _ACEOF 11746 11747 # The following way of writing the cache mishandles newlines in values, 11748 # but we know of no workaround that is simple, portable, and efficient. 11749 # So, we kill variables containing newlines. 11750 # Ultrix sh set writes to stderr and can't be redirected directly, 11751 # and sets the high bit in the cache file unless we assign to the vars. 11752 ( 11753 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11754 eval ac_val=\$$ac_var 11755 case $ac_val in #( 11756 *${as_nl}*) 11757 case $ac_var in #( 11758 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11759 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11760 esac 11761 case $ac_var in #( 11762 _ | IFS | as_nl) ;; #( 11763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11764 *) { eval $ac_var=; unset $ac_var;} ;; 11765 esac ;; 11766 esac 11767 done 11768 11769 (set) 2>&1 | 11770 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11771 *${as_nl}ac_space=\ *) 11772 # 'set' does not quote correctly, so add quotes: double-quote 11773 # substitution turns \\\\ into \\, and sed turns \\ into \. 11774 sed -n \ 11775 "s/'/'\\\\''/g; 11776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11777 ;; #( 11778 *) 11779 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11781 ;; 11782 esac | 11783 sort 11784 ) | 11785 sed ' 11786 /^ac_cv_env_/b end 11787 t clear 11788 :clear 11789 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11790 t end 11791 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11792 :end' >>confcache 11793 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11794 if test -w "$cache_file"; then 11795 if test "x$cache_file" != "x/dev/null"; then 11796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11797 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11798 if test ! -f "$cache_file" || test -h "$cache_file"; then 11799 cat confcache >"$cache_file" 11800 else 11801 case $cache_file in #( 11802 */* | ?:*) 11803 mv -f confcache "$cache_file"$$ && 11804 mv -f "$cache_file"$$ "$cache_file" ;; #( 11805 *) 11806 mv -f confcache "$cache_file" ;; 11807 esac 11808 fi 11809 fi 11810 else 11811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11812 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11813 fi 11814 fi 11815 rm -f confcache 11816 11817 test "x$prefix" = xNONE && prefix=$ac_default_prefix 11818 # Let make expand exec_prefix. 11819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11820 11821 DEFS=-DHAVE_CONFIG_H 11822 11823 ac_libobjs= 11824 ac_ltlibobjs= 11825 U= 11826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11827 # 1. Remove the extension, and $U if already installed. 11828 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11829 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11830 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11831 # will be set to the directory where LIBOBJS objects are built. 11832 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11833 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11834 done 11835 LIBOBJS=$ac_libobjs 11836 11837 LTLIBOBJS=$ac_ltlibobjs 11838 11839 11840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11841 printf %s "checking that generated files are newer than configure... " >&6; } 11842 if test -n "$am_sleep_pid"; then 11843 # Hide warnings about reused PIDs. 11844 wait $am_sleep_pid 2>/dev/null 11845 fi 11846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11847 printf "%s\n" "done" >&6; } 11848 case $enable_silent_rules in # ((( 11849 yes) AM_DEFAULT_VERBOSITY=0;; 11850 no) AM_DEFAULT_VERBOSITY=1;; 11851 esac 11852 if test $am_cv_make_support_nested_variables = yes; then 11853 AM_V='$(V)' 11854 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11855 else 11856 AM_V=$AM_DEFAULT_VERBOSITY 11857 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11858 fi 11859 11860 if test -n "$EXEEXT"; then 11861 am__EXEEXT_TRUE= 11862 am__EXEEXT_FALSE='#' 11863 else 11864 am__EXEEXT_TRUE='#' 11865 am__EXEEXT_FALSE= 11866 fi 11867 11868 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11869 as_fn_error $? "conditional \"AMDEP\" was never defined. 11870 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11871 fi 11872 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11873 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11874 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11875 fi 11876 11877 : "${CONFIG_STATUS=./config.status}" 11878 ac_write_fail=0 11879 ac_clean_files_save=$ac_clean_files 11880 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11882 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11883 as_write_fail=0 11884 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11885 #! $SHELL 11886 # Generated by $as_me. 11887 # Run this file to recreate the current configuration. 11888 # Compiler output produced by configure, useful for debugging 11889 # configure, is in config.log if it exists. 11890 11891 debug=false 11892 ac_cs_recheck=false 11893 ac_cs_silent=false 11894 11895 SHELL=\${CONFIG_SHELL-$SHELL} 11896 export SHELL 11897 _ASEOF 11898 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11899 ## -------------------- ## 11900 ## M4sh Initialization. ## 11901 ## -------------------- ## 11902 11903 # Be more Bourne compatible 11904 DUALCASE=1; export DUALCASE # for MKS sh 11905 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11906 then : 11907 emulate sh 11908 NULLCMD=: 11909 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11910 # is contrary to our usage. Disable this feature. 11911 alias -g '${1+"$@"}'='"$@"' 11912 setopt NO_GLOB_SUBST 11913 else case e in #( 11914 e) case `(set -o) 2>/dev/null` in #( 11915 *posix*) : 11916 set -o posix ;; #( 11917 *) : 11918 ;; 11919 esac ;; 11920 esac 11921 fi 11922 11923 11924 11925 # Reset variables that may have inherited troublesome values from 11926 # the environment. 11927 11928 # IFS needs to be set, to space, tab, and newline, in precisely that order. 11929 # (If _AS_PATH_WALK were called with IFS unset, it would have the 11930 # side effect of setting IFS to empty, thus disabling word splitting.) 11931 # Quoting is to prevent editors from complaining about space-tab. 11932 as_nl=' 11933 ' 11934 export as_nl 11935 IFS=" "" $as_nl" 11936 11937 PS1='$ ' 11938 PS2='> ' 11939 PS4='+ ' 11940 11941 # Ensure predictable behavior from utilities with locale-dependent output. 11942 LC_ALL=C 11943 export LC_ALL 11944 LANGUAGE=C 11945 export LANGUAGE 11946 11947 # We cannot yet rely on "unset" to work, but we need these variables 11948 # to be unset--not just set to an empty or harmless value--now, to 11949 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11950 # also avoids known problems related to "unset" and subshell syntax 11951 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11952 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11953 do eval test \${$as_var+y} \ 11954 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11955 done 11956 11957 # Ensure that fds 0, 1, and 2 are open. 11958 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11959 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11960 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11961 11962 # The user is always right. 11963 if ${PATH_SEPARATOR+false} :; then 11964 PATH_SEPARATOR=: 11965 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11966 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11967 PATH_SEPARATOR=';' 11968 } 11969 fi 11970 11971 11972 # Find who we are. Look in the path if we contain no directory separator. 11973 as_myself= 11974 case $0 in #(( 11975 *[\\/]* ) as_myself=$0 ;; 11976 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11977 for as_dir in $PATH 11978 do 11979 IFS=$as_save_IFS 11980 case $as_dir in #((( 11981 '') as_dir=./ ;; 11982 */) ;; 11983 *) as_dir=$as_dir/ ;; 11984 esac 11985 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11986 done 11987 IFS=$as_save_IFS 11988 11989 ;; 11990 esac 11991 # We did not find ourselves, most probably we were run as 'sh COMMAND' 11992 # in which case we are not to be found in the path. 11993 if test "x$as_myself" = x; then 11994 as_myself=$0 11995 fi 11996 if test ! -f "$as_myself"; then 11997 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11998 exit 1 11999 fi 12000 12001 12002 12003 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12004 # ---------------------------------------- 12005 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12006 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12007 # script with STATUS, using 1 if that was 0. 12008 as_fn_error () 12009 { 12010 as_status=$1; test $as_status -eq 0 && as_status=1 12011 if test "$4"; then 12012 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12014 fi 12015 printf "%s\n" "$as_me: error: $2" >&2 12016 as_fn_exit $as_status 12017 } # as_fn_error 12018 12019 12020 # as_fn_set_status STATUS 12021 # ----------------------- 12022 # Set $? to STATUS, without forking. 12023 as_fn_set_status () 12024 { 12025 return $1 12026 } # as_fn_set_status 12027 12028 # as_fn_exit STATUS 12029 # ----------------- 12030 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12031 as_fn_exit () 12032 { 12033 set +e 12034 as_fn_set_status $1 12035 exit $1 12036 } # as_fn_exit 12037 12038 # as_fn_unset VAR 12039 # --------------- 12040 # Portably unset VAR. 12041 as_fn_unset () 12042 { 12043 { eval $1=; unset $1;} 12044 } 12045 as_unset=as_fn_unset 12046 12047 # as_fn_append VAR VALUE 12048 # ---------------------- 12049 # Append the text in VALUE to the end of the definition contained in VAR. Take 12050 # advantage of any shell optimizations that allow amortized linear growth over 12051 # repeated appends, instead of the typical quadratic growth present in naive 12052 # implementations. 12053 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12054 then : 12055 eval 'as_fn_append () 12056 { 12057 eval $1+=\$2 12058 }' 12059 else case e in #( 12060 e) as_fn_append () 12061 { 12062 eval $1=\$$1\$2 12063 } ;; 12064 esac 12065 fi # as_fn_append 12066 12067 # as_fn_arith ARG... 12068 # ------------------ 12069 # Perform arithmetic evaluation on the ARGs, and store the result in the 12070 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12071 # must be portable across $(()) and expr. 12072 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12073 then : 12074 eval 'as_fn_arith () 12075 { 12076 as_val=$(( $* )) 12077 }' 12078 else case e in #( 12079 e) as_fn_arith () 12080 { 12081 as_val=`expr "$@" || test $? -eq 1` 12082 } ;; 12083 esac 12084 fi # as_fn_arith 12085 12086 12087 if expr a : '\(a\)' >/dev/null 2>&1 && 12088 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12089 as_expr=expr 12090 else 12091 as_expr=false 12092 fi 12093 12094 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12095 as_basename=basename 12096 else 12097 as_basename=false 12098 fi 12099 12100 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12101 as_dirname=dirname 12102 else 12103 as_dirname=false 12104 fi 12105 12106 as_me=`$as_basename -- "$0" || 12107 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12108 X"$0" : 'X\(//\)$' \| \ 12109 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12110 printf "%s\n" X/"$0" | 12111 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12112 s//\1/ 12113 q 12114 } 12115 /^X\/\(\/\/\)$/{ 12116 s//\1/ 12117 q 12118 } 12119 /^X\/\(\/\).*/{ 12120 s//\1/ 12121 q 12122 } 12123 s/.*/./; q'` 12124 12125 # Avoid depending upon Character Ranges. 12126 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12127 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12128 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12129 as_cr_digits='0123456789' 12130 as_cr_alnum=$as_cr_Letters$as_cr_digits 12131 12132 12133 # Determine whether it's possible to make 'echo' print without a newline. 12134 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12135 # for compatibility with existing Makefiles. 12136 ECHO_C= ECHO_N= ECHO_T= 12137 case `echo -n x` in #((((( 12138 -n*) 12139 case `echo 'xy\c'` in 12140 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12141 xy) ECHO_C='\c';; 12142 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12143 ECHO_T=' ';; 12144 esac;; 12145 *) 12146 ECHO_N='-n';; 12147 esac 12148 12149 # For backward compatibility with old third-party macros, we provide 12150 # the shell variables $as_echo and $as_echo_n. New code should use 12151 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12152 as_echo='printf %s\n' 12153 as_echo_n='printf %s' 12154 12155 rm -f conf$$ conf$$.exe conf$$.file 12156 if test -d conf$$.dir; then 12157 rm -f conf$$.dir/conf$$.file 12158 else 12159 rm -f conf$$.dir 12160 mkdir conf$$.dir 2>/dev/null 12161 fi 12162 if (echo >conf$$.file) 2>/dev/null; then 12163 if ln -s conf$$.file conf$$ 2>/dev/null; then 12164 as_ln_s='ln -s' 12165 # ... but there are two gotchas: 12166 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12167 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12168 # In both cases, we have to default to 'cp -pR'. 12169 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12170 as_ln_s='cp -pR' 12171 elif ln conf$$.file conf$$ 2>/dev/null; then 12172 as_ln_s=ln 12173 else 12174 as_ln_s='cp -pR' 12175 fi 12176 else 12177 as_ln_s='cp -pR' 12178 fi 12179 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12180 rmdir conf$$.dir 2>/dev/null 12181 12182 12183 # as_fn_mkdir_p 12184 # ------------- 12185 # Create "$as_dir" as a directory, including parents if necessary. 12186 as_fn_mkdir_p () 12187 { 12188 12189 case $as_dir in #( 12190 -*) as_dir=./$as_dir;; 12191 esac 12192 test -d "$as_dir" || eval $as_mkdir_p || { 12193 as_dirs= 12194 while :; do 12195 case $as_dir in #( 12196 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12197 *) as_qdir=$as_dir;; 12198 esac 12199 as_dirs="'$as_qdir' $as_dirs" 12200 as_dir=`$as_dirname -- "$as_dir" || 12201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12202 X"$as_dir" : 'X\(//\)[^/]' \| \ 12203 X"$as_dir" : 'X\(//\)$' \| \ 12204 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12205 printf "%s\n" X"$as_dir" | 12206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12207 s//\1/ 12208 q 12209 } 12210 /^X\(\/\/\)[^/].*/{ 12211 s//\1/ 12212 q 12213 } 12214 /^X\(\/\/\)$/{ 12215 s//\1/ 12216 q 12217 } 12218 /^X\(\/\).*/{ 12219 s//\1/ 12220 q 12221 } 12222 s/.*/./; q'` 12223 test -d "$as_dir" && break 12224 done 12225 test -z "$as_dirs" || eval "mkdir $as_dirs" 12226 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12227 12228 12229 } # as_fn_mkdir_p 12230 if mkdir -p . 2>/dev/null; then 12231 as_mkdir_p='mkdir -p "$as_dir"' 12232 else 12233 test -d ./-p && rmdir ./-p 12234 as_mkdir_p=false 12235 fi 12236 12237 12238 # as_fn_executable_p FILE 12239 # ----------------------- 12240 # Test if FILE is an executable regular file. 12241 as_fn_executable_p () 12242 { 12243 test -f "$1" && test -x "$1" 12244 } # as_fn_executable_p 12245 as_test_x='test -x' 12246 as_executable_p=as_fn_executable_p 12247 12248 # Sed expression to map a string onto a valid CPP name. 12249 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12250 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12251 12252 # Sed expression to map a string onto a valid variable name. 12253 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12254 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12255 12256 12257 exec 6>&1 12258 ## ----------------------------------- ## 12259 ## Main body of $CONFIG_STATUS script. ## 12260 ## ----------------------------------- ## 12261 _ASEOF 12262 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12263 12264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12265 # Save the log message, to keep $0 and so on meaningful, and to 12266 # report actual input values of CONFIG_FILES etc. instead of their 12267 # values after options handling. 12268 ac_log=" 12269 This file was extended by xdriinfo $as_me 1.0.8, which was 12270 generated by GNU Autoconf 2.72. Invocation command line was 12271 12272 CONFIG_FILES = $CONFIG_FILES 12273 CONFIG_HEADERS = $CONFIG_HEADERS 12274 CONFIG_LINKS = $CONFIG_LINKS 12275 CONFIG_COMMANDS = $CONFIG_COMMANDS 12276 $ $0 $@ 12277 12278 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12279 " 12280 12281 _ACEOF 12282 12283 case $ac_config_files in *" 12284 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12285 esac 12286 12287 case $ac_config_headers in *" 12288 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12289 esac 12290 12291 12292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12293 # Files that config.status was made for. 12294 config_files="$ac_config_files" 12295 config_headers="$ac_config_headers" 12296 config_commands="$ac_config_commands" 12297 12298 _ACEOF 12299 12300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12301 ac_cs_usage="\ 12302 '$as_me' instantiates files and other configuration actions 12303 from templates according to the current configuration. Unless the files 12304 and actions are specified as TAGs, all are instantiated by default. 12305 12306 Usage: $0 [OPTION]... [TAG]... 12307 12308 -h, --help print this help, then exit 12309 -V, --version print version number and configuration settings, then exit 12310 --config print configuration, then exit 12311 -q, --quiet, --silent 12312 do not print progress messages 12313 -d, --debug don't remove temporary files 12314 --recheck update $as_me by reconfiguring in the same conditions 12315 --file=FILE[:TEMPLATE] 12316 instantiate the configuration file FILE 12317 --header=FILE[:TEMPLATE] 12318 instantiate the configuration header FILE 12319 12320 Configuration files: 12321 $config_files 12322 12323 Configuration headers: 12324 $config_headers 12325 12326 Configuration commands: 12327 $config_commands 12328 12329 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdriinfo/-/issues>." 12330 12331 _ACEOF 12332 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12333 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12335 ac_cs_config='$ac_cs_config_escaped' 12336 ac_cs_version="\\ 12337 xdriinfo config.status 1.0.8 12338 configured by $0, generated by GNU Autoconf 2.72, 12339 with options \\"\$ac_cs_config\\" 12340 12341 Copyright (C) 2023 Free Software Foundation, Inc. 12342 This config.status script is free software; the Free Software Foundation 12343 gives unlimited permission to copy, distribute and modify it." 12344 12345 ac_pwd='$ac_pwd' 12346 srcdir='$srcdir' 12347 INSTALL='$INSTALL' 12348 MKDIR_P='$MKDIR_P' 12349 AWK='$AWK' 12350 test -n "\$AWK" || AWK=awk 12351 _ACEOF 12352 12353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12354 # The default lists apply if the user does not specify any file. 12355 ac_need_defaults=: 12356 while test $# != 0 12357 do 12358 case $1 in 12359 --*=?*) 12360 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12361 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12362 ac_shift=: 12363 ;; 12364 --*=) 12365 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12366 ac_optarg= 12367 ac_shift=: 12368 ;; 12369 *) 12370 ac_option=$1 12371 ac_optarg=$2 12372 ac_shift=shift 12373 ;; 12374 esac 12375 12376 case $ac_option in 12377 # Handling of the options. 12378 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12379 ac_cs_recheck=: ;; 12380 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12381 printf "%s\n" "$ac_cs_version"; exit ;; 12382 --config | --confi | --conf | --con | --co | --c ) 12383 printf "%s\n" "$ac_cs_config"; exit ;; 12384 --debug | --debu | --deb | --de | --d | -d ) 12385 debug=: ;; 12386 --file | --fil | --fi | --f ) 12387 $ac_shift 12388 case $ac_optarg in 12389 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12390 '') as_fn_error $? "missing file argument" ;; 12391 esac 12392 as_fn_append CONFIG_FILES " '$ac_optarg'" 12393 ac_need_defaults=false;; 12394 --header | --heade | --head | --hea ) 12395 $ac_shift 12396 case $ac_optarg in 12397 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12398 esac 12399 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12400 ac_need_defaults=false;; 12401 --he | --h) 12402 # Conflict between --help and --header 12403 as_fn_error $? "ambiguous option: '$1' 12404 Try '$0 --help' for more information.";; 12405 --help | --hel | -h ) 12406 printf "%s\n" "$ac_cs_usage"; exit ;; 12407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12408 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12409 ac_cs_silent=: ;; 12410 12411 # This is an error. 12412 -*) as_fn_error $? "unrecognized option: '$1' 12413 Try '$0 --help' for more information." ;; 12414 12415 *) as_fn_append ac_config_targets " $1" 12416 ac_need_defaults=false ;; 12417 12418 esac 12419 shift 12420 done 12421 12422 ac_configure_extra_args= 12423 12424 if $ac_cs_silent; then 12425 exec 6>/dev/null 12426 ac_configure_extra_args="$ac_configure_extra_args --silent" 12427 fi 12428 12429 _ACEOF 12430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12431 if \$ac_cs_recheck; then 12432 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12433 shift 12434 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12435 CONFIG_SHELL='$SHELL' 12436 export CONFIG_SHELL 12437 exec "\$@" 12438 fi 12439 12440 _ACEOF 12441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12442 exec 5>>config.log 12443 { 12444 echo 12445 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12446 ## Running $as_me. ## 12447 _ASBOX 12448 printf "%s\n" "$ac_log" 12449 } >&5 12450 12451 _ACEOF 12452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12453 # 12454 # INIT-COMMANDS 12455 # 12456 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12457 12458 _ACEOF 12459 12460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12461 12462 # Handling of arguments. 12463 for ac_config_target in $ac_config_targets 12464 do 12465 case $ac_config_target in 12466 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12467 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12468 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12469 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12470 12471 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12472 esac 12473 done 12474 12475 12476 # If the user did not use the arguments to specify the items to instantiate, 12477 # then the envvar interface is used. Set only those that are not. 12478 # We use the long form for the default assignment because of an extremely 12479 # bizarre bug on SunOS 4.1.3. 12480 if $ac_need_defaults; then 12481 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12482 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12483 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12484 fi 12485 12486 # Have a temporary directory for convenience. Make it in the build tree 12487 # simply because there is no reason against having it here, and in addition, 12488 # creating and moving files from /tmp can sometimes cause problems. 12489 # Hook for its removal unless debugging. 12490 # Note that there is a small window in which the directory will not be cleaned: 12491 # after its creation but before its name has been assigned to '$tmp'. 12492 $debug || 12493 { 12494 tmp= ac_tmp= 12495 trap 'exit_status=$? 12496 : "${ac_tmp:=$tmp}" 12497 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12498 ' 0 12499 trap 'as_fn_exit 1' 1 2 13 15 12500 } 12501 # Create a (secure) tmp directory for tmp files. 12502 12503 { 12504 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12505 test -d "$tmp" 12506 } || 12507 { 12508 tmp=./conf$$-$RANDOM 12509 (umask 077 && mkdir "$tmp") 12510 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12511 ac_tmp=$tmp 12512 12513 # Set up the scripts for CONFIG_FILES section. 12514 # No need to generate them if there are no CONFIG_FILES. 12515 # This happens for instance with './config.status config.h'. 12516 if test -n "$CONFIG_FILES"; then 12517 12518 12519 ac_cr=`echo X | tr X '\015'` 12520 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12521 # But we know of no other shell where ac_cr would be empty at this 12522 # point, so we can use a bashism as a fallback. 12523 if test "x$ac_cr" = x; then 12524 eval ac_cr=\$\'\\r\' 12525 fi 12526 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12527 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12528 ac_cs_awk_cr='\\r' 12529 else 12530 ac_cs_awk_cr=$ac_cr 12531 fi 12532 12533 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12534 _ACEOF 12535 12536 12537 { 12538 echo "cat >conf$$subs.awk <<_ACEOF" && 12539 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12540 echo "_ACEOF" 12541 } >conf$$subs.sh || 12542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12543 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12544 ac_delim='%!_!# ' 12545 for ac_last_try in false false false false false :; do 12546 . ./conf$$subs.sh || 12547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12548 12549 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12550 if test $ac_delim_n = $ac_delim_num; then 12551 break 12552 elif $ac_last_try; then 12553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12554 else 12555 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12556 fi 12557 done 12558 rm -f conf$$subs.sh 12559 12560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12561 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12562 _ACEOF 12563 sed -n ' 12564 h 12565 s/^/S["/; s/!.*/"]=/ 12566 p 12567 g 12568 s/^[^!]*!// 12569 :repl 12570 t repl 12571 s/'"$ac_delim"'$// 12572 t delim 12573 :nl 12574 h 12575 s/\(.\{148\}\)..*/\1/ 12576 t more1 12577 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12578 p 12579 n 12580 b repl 12581 :more1 12582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12583 p 12584 g 12585 s/.\{148\}// 12586 t nl 12587 :delim 12588 h 12589 s/\(.\{148\}\)..*/\1/ 12590 t more2 12591 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12592 p 12593 b 12594 :more2 12595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12596 p 12597 g 12598 s/.\{148\}// 12599 t delim 12600 ' <conf$$subs.awk | sed ' 12601 /^[^""]/{ 12602 N 12603 s/\n// 12604 } 12605 ' >>$CONFIG_STATUS || ac_write_fail=1 12606 rm -f conf$$subs.awk 12607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12608 _ACAWK 12609 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12610 for (key in S) S_is_set[key] = 1 12611 FS = "" 12612 12613 } 12614 { 12615 line = $ 0 12616 nfields = split(line, field, "@") 12617 substed = 0 12618 len = length(field[1]) 12619 for (i = 2; i < nfields; i++) { 12620 key = field[i] 12621 keylen = length(key) 12622 if (S_is_set[key]) { 12623 value = S[key] 12624 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12625 len += length(value) + length(field[++i]) 12626 substed = 1 12627 } else 12628 len += 1 + keylen 12629 } 12630 12631 print line 12632 } 12633 12634 _ACAWK 12635 _ACEOF 12636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12637 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12638 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12639 else 12640 cat 12641 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12642 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12643 _ACEOF 12644 12645 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12646 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12647 # trailing colons and then remove the whole line if VPATH becomes empty 12648 # (actually we leave an empty line to preserve line numbers). 12649 if test "x$srcdir" = x.; then 12650 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12651 h 12652 s/// 12653 s/^/:/ 12654 s/[ ]*$/:/ 12655 s/:\$(srcdir):/:/g 12656 s/:\${srcdir}:/:/g 12657 s/:@srcdir@:/:/g 12658 s/^:*// 12659 s/:*$// 12660 x 12661 s/\(=[ ]*\).*/\1/ 12662 G 12663 s/\n// 12664 s/^[^=]*=[ ]*$// 12665 }' 12666 fi 12667 12668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12669 fi # test -n "$CONFIG_FILES" 12670 12671 # Set up the scripts for CONFIG_HEADERS section. 12672 # No need to generate them if there are no CONFIG_HEADERS. 12673 # This happens for instance with './config.status Makefile'. 12674 if test -n "$CONFIG_HEADERS"; then 12675 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12676 BEGIN { 12677 _ACEOF 12678 12679 # Transform confdefs.h into an awk script 'defines.awk', embedded as 12680 # here-document in config.status, that substitutes the proper values into 12681 # config.h.in to produce config.h. 12682 12683 # Create a delimiter string that does not exist in confdefs.h, to ease 12684 # handling of long lines. 12685 ac_delim='%!_!# ' 12686 for ac_last_try in false false :; do 12687 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12688 if test -z "$ac_tt"; then 12689 break 12690 elif $ac_last_try; then 12691 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12692 else 12693 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12694 fi 12695 done 12696 12697 # For the awk script, D is an array of macro values keyed by name, 12698 # likewise P contains macro parameters if any. Preserve backslash 12699 # newline sequences. 12700 12701 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12702 sed -n ' 12703 s/.\{148\}/&'"$ac_delim"'/g 12704 t rset 12705 :rset 12706 s/^[ ]*#[ ]*define[ ][ ]*/ / 12707 t def 12708 d 12709 :def 12710 s/\\$// 12711 t bsnl 12712 s/["\\]/\\&/g 12713 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12714 D["\1"]=" \3"/p 12715 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12716 d 12717 :bsnl 12718 s/["\\]/\\&/g 12719 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12720 D["\1"]=" \3\\\\\\n"\\/p 12721 t cont 12722 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12723 t cont 12724 d 12725 :cont 12726 n 12727 s/.\{148\}/&'"$ac_delim"'/g 12728 t clear 12729 :clear 12730 s/\\$// 12731 t bsnlc 12732 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12733 d 12734 :bsnlc 12735 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12736 b cont 12737 ' <confdefs.h | sed ' 12738 s/'"$ac_delim"'/"\\\ 12739 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12740 12741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12742 for (key in D) D_is_set[key] = 1 12743 FS = "" 12744 } 12745 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12746 line = \$ 0 12747 split(line, arg, " ") 12748 if (arg[1] == "#") { 12749 defundef = arg[2] 12750 mac1 = arg[3] 12751 } else { 12752 defundef = substr(arg[1], 2) 12753 mac1 = arg[2] 12754 } 12755 split(mac1, mac2, "(") #) 12756 macro = mac2[1] 12757 prefix = substr(line, 1, index(line, defundef) - 1) 12758 if (D_is_set[macro]) { 12759 # Preserve the white space surrounding the "#". 12760 print prefix "define", macro P[macro] D[macro] 12761 next 12762 } else { 12763 # Replace #undef with comments. This is necessary, for example, 12764 # in the case of _POSIX_SOURCE, which is predefined and required 12765 # on some systems where configure will not decide to define it. 12766 if (defundef == "undef") { 12767 print "/*", prefix defundef, macro, "*/" 12768 next 12769 } 12770 } 12771 } 12772 { print } 12773 _ACAWK 12774 _ACEOF 12775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12776 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12777 fi # test -n "$CONFIG_HEADERS" 12778 12779 12780 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12781 shift 12782 for ac_tag 12783 do 12784 case $ac_tag in 12785 :[FHLC]) ac_mode=$ac_tag; continue;; 12786 esac 12787 case $ac_mode$ac_tag in 12788 :[FHL]*:*);; 12789 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12790 :[FH]-) ac_tag=-:-;; 12791 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12792 esac 12793 ac_save_IFS=$IFS 12794 IFS=: 12795 set x $ac_tag 12796 IFS=$ac_save_IFS 12797 shift 12798 ac_file=$1 12799 shift 12800 12801 case $ac_mode in 12802 :L) ac_source=$1;; 12803 :[FH]) 12804 ac_file_inputs= 12805 for ac_f 12806 do 12807 case $ac_f in 12808 -) ac_f="$ac_tmp/stdin";; 12809 *) # Look for the file first in the build tree, then in the source tree 12810 # (if the path is not absolute). The absolute path cannot be DOS-style, 12811 # because $ac_f cannot contain ':'. 12812 test -f "$ac_f" || 12813 case $ac_f in 12814 [\\/$]*) false;; 12815 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12816 esac || 12817 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12818 esac 12819 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12820 as_fn_append ac_file_inputs " '$ac_f'" 12821 done 12822 12823 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12824 # use $as_me), people would be surprised to read: 12825 # /* config.h. Generated by config.status. */ 12826 configure_input='Generated from '` 12827 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12828 `' by configure.' 12829 if test x"$ac_file" != x-; then 12830 configure_input="$ac_file. $configure_input" 12831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12832 printf "%s\n" "$as_me: creating $ac_file" >&6;} 12833 fi 12834 # Neutralize special characters interpreted by sed in replacement strings. 12835 case $configure_input in #( 12836 *\&* | *\|* | *\\* ) 12837 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12838 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12839 *) ac_sed_conf_input=$configure_input;; 12840 esac 12841 12842 case $ac_tag in 12843 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12845 esac 12846 ;; 12847 esac 12848 12849 ac_dir=`$as_dirname -- "$ac_file" || 12850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12851 X"$ac_file" : 'X\(//\)[^/]' \| \ 12852 X"$ac_file" : 'X\(//\)$' \| \ 12853 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12854 printf "%s\n" X"$ac_file" | 12855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12856 s//\1/ 12857 q 12858 } 12859 /^X\(\/\/\)[^/].*/{ 12860 s//\1/ 12861 q 12862 } 12863 /^X\(\/\/\)$/{ 12864 s//\1/ 12865 q 12866 } 12867 /^X\(\/\).*/{ 12868 s//\1/ 12869 q 12870 } 12871 s/.*/./; q'` 12872 as_dir="$ac_dir"; as_fn_mkdir_p 12873 ac_builddir=. 12874 12875 case "$ac_dir" in 12876 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12877 *) 12878 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12879 # A ".." for each directory in $ac_dir_suffix. 12880 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12881 case $ac_top_builddir_sub in 12882 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12883 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12884 esac ;; 12885 esac 12886 ac_abs_top_builddir=$ac_pwd 12887 ac_abs_builddir=$ac_pwd$ac_dir_suffix 12888 # for backward compatibility: 12889 ac_top_builddir=$ac_top_build_prefix 12890 12891 case $srcdir in 12892 .) # We are building in place. 12893 ac_srcdir=. 12894 ac_top_srcdir=$ac_top_builddir_sub 12895 ac_abs_top_srcdir=$ac_pwd ;; 12896 [\\/]* | ?:[\\/]* ) # Absolute name. 12897 ac_srcdir=$srcdir$ac_dir_suffix; 12898 ac_top_srcdir=$srcdir 12899 ac_abs_top_srcdir=$srcdir ;; 12900 *) # Relative name. 12901 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12902 ac_top_srcdir=$ac_top_build_prefix$srcdir 12903 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12904 esac 12905 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12906 12907 12908 case $ac_mode in 12909 :F) 12910 # 12911 # CONFIG_FILE 12912 # 12913 12914 case $INSTALL in 12915 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12916 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12917 esac 12918 ac_MKDIR_P=$MKDIR_P 12919 case $MKDIR_P in 12920 [\\/$]* | ?:[\\/]* ) ;; 12921 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12922 esac 12923 _ACEOF 12924 12925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12926 # If the template does not know about datarootdir, expand it. 12927 # FIXME: This hack should be removed a few years after 2.60. 12928 ac_datarootdir_hack=; ac_datarootdir_seen= 12929 ac_sed_dataroot=' 12930 /datarootdir/ { 12931 p 12932 q 12933 } 12934 /@datadir@/p 12935 /@docdir@/p 12936 /@infodir@/p 12937 /@localedir@/p 12938 /@mandir@/p' 12939 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12940 *datarootdir*) ac_datarootdir_seen=yes;; 12941 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12943 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12944 _ACEOF 12945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12946 ac_datarootdir_hack=' 12947 s&@datadir@&$datadir&g 12948 s&@docdir@&$docdir&g 12949 s&@infodir@&$infodir&g 12950 s&@localedir@&$localedir&g 12951 s&@mandir@&$mandir&g 12952 s&\\\${datarootdir}&$datarootdir&g' ;; 12953 esac 12954 _ACEOF 12955 12956 # Neutralize VPATH when '$srcdir' = '.'. 12957 # Shell code in configure.ac might set extrasub. 12958 # FIXME: do we really want to maintain this feature? 12959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12960 ac_sed_extra="$ac_vpsub 12961 $extrasub 12962 _ACEOF 12963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12964 :t 12965 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12966 s|@configure_input@|$ac_sed_conf_input|;t t 12967 s&@top_builddir@&$ac_top_builddir_sub&;t t 12968 s&@top_build_prefix@&$ac_top_build_prefix&;t t 12969 s&@srcdir@&$ac_srcdir&;t t 12970 s&@abs_srcdir@&$ac_abs_srcdir&;t t 12971 s&@top_srcdir@&$ac_top_srcdir&;t t 12972 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12973 s&@builddir@&$ac_builddir&;t t 12974 s&@abs_builddir@&$ac_abs_builddir&;t t 12975 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12976 s&@INSTALL@&$ac_INSTALL&;t t 12977 s&@MKDIR_P@&$ac_MKDIR_P&;t t 12978 $ac_datarootdir_hack 12979 " 12980 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12981 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12982 12983 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12984 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12985 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12986 "$ac_tmp/out"`; test -z "$ac_out"; } && 12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12988 which seems to be undefined. Please make sure it is defined" >&5 12989 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12990 which seems to be undefined. Please make sure it is defined" >&2;} 12991 12992 rm -f "$ac_tmp/stdin" 12993 case $ac_file in 12994 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12995 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12996 esac \ 12997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12998 ;; 12999 :H) 13000 # 13001 # CONFIG_HEADER 13002 # 13003 if test x"$ac_file" != x-; then 13004 { 13005 printf "%s\n" "/* $configure_input */" >&1 \ 13006 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13007 } >"$ac_tmp/config.h" \ 13008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13009 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13011 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13012 else 13013 rm -f "$ac_file" 13014 mv "$ac_tmp/config.h" "$ac_file" \ 13015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13016 fi 13017 else 13018 printf "%s\n" "/* $configure_input */" >&1 \ 13019 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13020 || as_fn_error $? "could not create -" "$LINENO" 5 13021 fi 13022 # Compute "$ac_file"'s index in $config_headers. 13023 _am_arg="$ac_file" 13024 _am_stamp_count=1 13025 for _am_header in $config_headers :; do 13026 case $_am_header in 13027 $_am_arg | $_am_arg:* ) 13028 break ;; 13029 * ) 13030 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13031 esac 13032 done 13033 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13034 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13035 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13036 X"$_am_arg" : 'X\(//\)$' \| \ 13037 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13038 printf "%s\n" X"$_am_arg" | 13039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13040 s//\1/ 13041 q 13042 } 13043 /^X\(\/\/\)[^/].*/{ 13044 s//\1/ 13045 q 13046 } 13047 /^X\(\/\/\)$/{ 13048 s//\1/ 13049 q 13050 } 13051 /^X\(\/\).*/{ 13052 s//\1/ 13053 q 13054 } 13055 s/.*/./; q'`/stamp-h$_am_stamp_count 13056 ;; 13057 13058 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13059 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13060 ;; 13061 esac 13062 13063 13064 case $ac_file$ac_mode in 13065 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13066 # Older Autoconf quotes --file arguments for eval, but not when files 13067 # are listed without --file. Let's play safe and only enable the eval 13068 # if we detect the quoting. 13069 # TODO: see whether this extra hack can be removed once we start 13070 # requiring Autoconf 2.70 or later. 13071 case $CONFIG_FILES in #( 13072 *\'*) : 13073 eval set x "$CONFIG_FILES" ;; #( 13074 *) : 13075 set x $CONFIG_FILES ;; #( 13076 *) : 13077 ;; 13078 esac 13079 shift 13080 # Used to flag and report bootstrapping failures. 13081 am_rc=0 13082 for am_mf 13083 do 13084 # Strip MF so we end up with the name of the file. 13085 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13086 # Check whether this is an Automake generated Makefile which includes 13087 # dependency-tracking related rules and includes. 13088 # Grep'ing the whole file directly is not great: AIX grep has a line 13089 # limit of 2048, but all sed's we know have understand at least 4000. 13090 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13091 || continue 13092 am_dirpart=`$as_dirname -- "$am_mf" || 13093 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13094 X"$am_mf" : 'X\(//\)[^/]' \| \ 13095 X"$am_mf" : 'X\(//\)$' \| \ 13096 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13097 printf "%s\n" X"$am_mf" | 13098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13099 s//\1/ 13100 q 13101 } 13102 /^X\(\/\/\)[^/].*/{ 13103 s//\1/ 13104 q 13105 } 13106 /^X\(\/\/\)$/{ 13107 s//\1/ 13108 q 13109 } 13110 /^X\(\/\).*/{ 13111 s//\1/ 13112 q 13113 } 13114 s/.*/./; q'` 13115 am_filepart=`$as_basename -- "$am_mf" || 13116 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13117 X"$am_mf" : 'X\(//\)$' \| \ 13118 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13119 printf "%s\n" X/"$am_mf" | 13120 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13121 s//\1/ 13122 q 13123 } 13124 /^X\/\(\/\/\)$/{ 13125 s//\1/ 13126 q 13127 } 13128 /^X\/\(\/\).*/{ 13129 s//\1/ 13130 q 13131 } 13132 s/.*/./; q'` 13133 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13134 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13135 | $MAKE -f - am--depfiles" >&5 13136 (cd "$am_dirpart" \ 13137 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13138 | $MAKE -f - am--depfiles) >&5 2>&5 13139 ac_status=$? 13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13141 (exit $ac_status); } || am_rc=$? 13142 done 13143 if test $am_rc -ne 0; then 13144 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13145 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13146 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13147 for automatic dependency tracking. If GNU make was not used, consider 13148 re-running the configure script with MAKE=\"gmake\" (or whatever is 13149 necessary). You can also try re-running configure with the 13150 '--disable-dependency-tracking' option to at least be able to build 13151 the package (albeit without support for automatic dependency tracking). 13152 See 'config.log' for more details" "$LINENO" 5; } 13153 fi 13154 { am_dirpart=; unset am_dirpart;} 13155 { am_filepart=; unset am_filepart;} 13156 { am_mf=; unset am_mf;} 13157 { am_rc=; unset am_rc;} 13158 rm -f conftest-deps.mk 13159 } 13160 ;; 13161 13162 esac 13163 done # for ac_tag 13164 13165 13166 as_fn_exit 0 13167 _ACEOF 13168 ac_clean_files=$ac_clean_files_save 13169 13170 test $ac_write_fail = 0 || 13171 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13172 13173 13174 # configure is writing to config.log, and then calls config.status. 13175 # config.status does its own redirection, appending to config.log. 13176 # Unfortunately, on DOS this fails, as config.log is still kept open 13177 # by configure, so config.status won't be able to write to it; its 13178 # output is simply discarded. So we exec the FD to /dev/null, 13179 # effectively closing config.log, so it can be properly (re)opened and 13180 # appended to by config.status. When coming back to configure, we 13181 # need to make the FD available again. 13182 if test "$no_create" != yes; then 13183 ac_cs_success=: 13184 ac_config_status_args= 13185 test "$silent" = yes && 13186 ac_config_status_args="$ac_config_status_args --quiet" 13187 exec 5>/dev/null 13188 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13189 exec 5>>config.log 13190 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13191 # would make configure fail if this is the last instruction. 13192 $ac_cs_success || as_fn_exit 1 13193 fi 13194 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13196 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13197 fi 13198 13199 13200